1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cms
  5. AlarmContactGroup
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

alicloud.cms.AlarmContactGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi

    Provides a CMS Alarm Contact Group resource.

    For information about CMS Alarm Contact Group and how to use it, see What is Alarm Contact Group.

    NOTE: Available since v1.101.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const example = new alicloud.cms.AlarmContactGroup("example", {alarmContactGroupName: "tf-example"});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cms.AlarmContactGroup("example", alarm_contact_group_name="tf-example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cms.NewAlarmContactGroup(ctx, "example", &cms.AlarmContactGroupArgs{
    			AlarmContactGroupName: pulumi.String("tf-example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AliCloud.Cms.AlarmContactGroup("example", new()
        {
            AlarmContactGroupName = "tf-example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cms.AlarmContactGroup;
    import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
    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 AlarmContactGroup("example", AlarmContactGroupArgs.builder()
                .alarmContactGroupName("tf-example")
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:cms:AlarmContactGroup
        properties:
          alarmContactGroupName: tf-example
    

    Create AlarmContactGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlarmContactGroup(name: string, args: AlarmContactGroupArgs, opts?: CustomResourceOptions);
    @overload
    def AlarmContactGroup(resource_name: str,
                          args: AlarmContactGroupArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlarmContactGroup(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          alarm_contact_group_name: Optional[str] = None,
                          contacts: Optional[Sequence[str]] = None,
                          describe: Optional[str] = None,
                          enable_subscribed: Optional[bool] = None)
    func NewAlarmContactGroup(ctx *Context, name string, args AlarmContactGroupArgs, opts ...ResourceOption) (*AlarmContactGroup, error)
    public AlarmContactGroup(string name, AlarmContactGroupArgs args, CustomResourceOptions? opts = null)
    public AlarmContactGroup(String name, AlarmContactGroupArgs args)
    public AlarmContactGroup(String name, AlarmContactGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:cms:AlarmContactGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AlarmContactGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AlarmContactGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AlarmContactGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlarmContactGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlarmContactGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var alarmContactGroupResource = new AliCloud.Cms.AlarmContactGroup("alarmContactGroupResource", new()
    {
        AlarmContactGroupName = "string",
        Contacts = new[]
        {
            "string",
        },
        Describe = "string",
        EnableSubscribed = false,
    });
    
    example, err := cms.NewAlarmContactGroup(ctx, "alarmContactGroupResource", &cms.AlarmContactGroupArgs{
    	AlarmContactGroupName: pulumi.String("string"),
    	Contacts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Describe:         pulumi.String("string"),
    	EnableSubscribed: pulumi.Bool(false),
    })
    
    var alarmContactGroupResource = new AlarmContactGroup("alarmContactGroupResource", AlarmContactGroupArgs.builder()
        .alarmContactGroupName("string")
        .contacts("string")
        .describe("string")
        .enableSubscribed(false)
        .build());
    
    alarm_contact_group_resource = alicloud.cms.AlarmContactGroup("alarmContactGroupResource",
        alarm_contact_group_name="string",
        contacts=["string"],
        describe="string",
        enable_subscribed=False)
    
    const alarmContactGroupResource = new alicloud.cms.AlarmContactGroup("alarmContactGroupResource", {
        alarmContactGroupName: "string",
        contacts: ["string"],
        describe: "string",
        enableSubscribed: false,
    });
    
    type: alicloud:cms:AlarmContactGroup
    properties:
        alarmContactGroupName: string
        contacts:
            - string
        describe: string
        enableSubscribed: false
    

    AlarmContactGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AlarmContactGroup resource accepts the following input properties:

    AlarmContactGroupName string
    The name of the alarm group.
    Contacts List<string>
    The name of the alert contact.
    Describe string
    The description of the alert group.
    EnableSubscribed bool
    Whether to open weekly subscription.
    AlarmContactGroupName string
    The name of the alarm group.
    Contacts []string
    The name of the alert contact.
    Describe string
    The description of the alert group.
    EnableSubscribed bool
    Whether to open weekly subscription.
    alarmContactGroupName String
    The name of the alarm group.
    contacts List<String>
    The name of the alert contact.
    describe String
    The description of the alert group.
    enableSubscribed Boolean
    Whether to open weekly subscription.
    alarmContactGroupName string
    The name of the alarm group.
    contacts string[]
    The name of the alert contact.
    describe string
    The description of the alert group.
    enableSubscribed boolean
    Whether to open weekly subscription.
    alarm_contact_group_name str
    The name of the alarm group.
    contacts Sequence[str]
    The name of the alert contact.
    describe str
    The description of the alert group.
    enable_subscribed bool
    Whether to open weekly subscription.
    alarmContactGroupName String
    The name of the alarm group.
    contacts List<String>
    The name of the alert contact.
    describe String
    The description of the alert group.
    enableSubscribed Boolean
    Whether to open weekly subscription.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlarmContactGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlarmContactGroup Resource

    Get an existing AlarmContactGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlarmContactGroupState, opts?: CustomResourceOptions): AlarmContactGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_contact_group_name: Optional[str] = None,
            contacts: Optional[Sequence[str]] = None,
            describe: Optional[str] = None,
            enable_subscribed: Optional[bool] = None) -> AlarmContactGroup
    func GetAlarmContactGroup(ctx *Context, name string, id IDInput, state *AlarmContactGroupState, opts ...ResourceOption) (*AlarmContactGroup, error)
    public static AlarmContactGroup Get(string name, Input<string> id, AlarmContactGroupState? state, CustomResourceOptions? opts = null)
    public static AlarmContactGroup get(String name, Output<String> id, AlarmContactGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlarmContactGroupName string
    The name of the alarm group.
    Contacts List<string>
    The name of the alert contact.
    Describe string
    The description of the alert group.
    EnableSubscribed bool
    Whether to open weekly subscription.
    AlarmContactGroupName string
    The name of the alarm group.
    Contacts []string
    The name of the alert contact.
    Describe string
    The description of the alert group.
    EnableSubscribed bool
    Whether to open weekly subscription.
    alarmContactGroupName String
    The name of the alarm group.
    contacts List<String>
    The name of the alert contact.
    describe String
    The description of the alert group.
    enableSubscribed Boolean
    Whether to open weekly subscription.
    alarmContactGroupName string
    The name of the alarm group.
    contacts string[]
    The name of the alert contact.
    describe string
    The description of the alert group.
    enableSubscribed boolean
    Whether to open weekly subscription.
    alarm_contact_group_name str
    The name of the alarm group.
    contacts Sequence[str]
    The name of the alert contact.
    describe str
    The description of the alert group.
    enable_subscribed bool
    Whether to open weekly subscription.
    alarmContactGroupName String
    The name of the alarm group.
    contacts List<String>
    The name of the alert contact.
    describe String
    The description of the alert group.
    enableSubscribed Boolean
    Whether to open weekly subscription.

    Import

    CMS Alarm Contact Group can be imported using the id, e.g.

    $ pulumi import alicloud:cms/alarmContactGroup:AlarmContactGroup example tf-testacc123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.0 published on Saturday, Jun 15, 2024 by Pulumi