alicloud.cms.AlarmContactGroup
Explore with Pulumi AI
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
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 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
})
}
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());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cms.AlarmContactGroup("example", alarm_contact_group_name="tf-example")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cms.AlarmContactGroup("example", {alarmContactGroupName: "tf-example"});
resources:
example:
type: alicloud:cms:AlarmContactGroup
properties:
alarmContactGroupName: tf-example
Create AlarmContactGroup Resource
new AlarmContactGroup(name: string, args: AlarmContactGroupArgs, opts?: CustomResourceOptions);
@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)
@overload
def AlarmContactGroup(resource_name: str,
args: AlarmContactGroupArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Alarm
Contact stringGroup Name The name of the alarm group.
- Contacts List<string>
The name of the alert contact.
- Describe string
The description of the alert group.
- Enable
Subscribed bool Whether to open weekly subscription.
- Alarm
Contact stringGroup Name The name of the alarm group.
- Contacts []string
The name of the alert contact.
- Describe string
The description of the alert group.
- Enable
Subscribed bool Whether to open weekly subscription.
- alarm
Contact StringGroup Name The name of the alarm group.
- contacts List<String>
The name of the alert contact.
- describe String
The description of the alert group.
- enable
Subscribed Boolean Whether to open weekly subscription.
- alarm
Contact stringGroup Name The name of the alarm group.
- contacts string[]
The name of the alert contact.
- describe string
The description of the alert group.
- enable
Subscribed boolean Whether to open weekly subscription.
- alarm_
contact_ strgroup_ name 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.
- alarm
Contact StringGroup Name The name of the alarm group.
- contacts List<String>
The name of the alert contact.
- describe String
The description of the alert group.
- enable
Subscribed 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.
- Alarm
Contact stringGroup Name The name of the alarm group.
- Contacts List<string>
The name of the alert contact.
- Describe string
The description of the alert group.
- Enable
Subscribed bool Whether to open weekly subscription.
- Alarm
Contact stringGroup Name The name of the alarm group.
- Contacts []string
The name of the alert contact.
- Describe string
The description of the alert group.
- Enable
Subscribed bool Whether to open weekly subscription.
- alarm
Contact StringGroup Name The name of the alarm group.
- contacts List<String>
The name of the alert contact.
- describe String
The description of the alert group.
- enable
Subscribed Boolean Whether to open weekly subscription.
- alarm
Contact stringGroup Name The name of the alarm group.
- contacts string[]
The name of the alert contact.
- describe string
The description of the alert group.
- enable
Subscribed boolean Whether to open weekly subscription.
- alarm_
contact_ strgroup_ name 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.
- alarm
Contact StringGroup Name The name of the alarm group.
- contacts List<String>
The name of the alert contact.
- describe String
The description of the alert group.
- enable
Subscribed 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
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.