MonitorGroupArgs

data class MonitorGroupArgs(val contactGroups: Output<List<String>>? = null, val monitorGroupName: Output<String>? = null, val resourceGroupId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, Any>>? = null) : ConvertibleToJava<MonitorGroupArgs>

Provides a Cloud Monitor Service Monitor Group resource. For information about Cloud Monitor Service Monitor Group and how to use it, see What is Monitor Group.

NOTE: Available since v1.113.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cms.MonitorGroup;
import com.pulumi.alicloud.cms.MonitorGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new MonitorGroup("example", MonitorGroupArgs.builder()
.monitorGroupName("tf-example-accmonitorgroup")
.build());
var default2 = new MonitorGroup("default2", MonitorGroupArgs.builder()
.contactGroups("your_contact_groups")
.resourceGroupId("your_resource_group_id")
.resourceGroupName("resource_group_name")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "Acceptance-example")
))
.build());
}
}

Import

Cloud Monitor Service Monitor Group can be imported using the id, e.g.

$ pulumi import alicloud:cms/monitorGroup:MonitorGroup example <id>

Constructors

Link copied to clipboard
fun MonitorGroupArgs(contactGroups: Output<List<String>>? = null, monitorGroupName: Output<String>? = null, resourceGroupId: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, Any>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): MonitorGroupArgs

Properties

Link copied to clipboard
val contactGroups: Output<List<String>>? = null

The alert group to which alert notifications will be sent.

Link copied to clipboard
val monitorGroupName: Output<String>? = null

The name of the application group.

Link copied to clipboard
val resourceGroupId: Output<String>? = null

The ID of the resource group.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val tags: Output<Map<String, Any>>? = null

A mapping of tags to assign to the resource.