Documentation
¶
Index ¶
- type AlertContact
- func (*AlertContact) ElementType() reflect.Type
- func (i *AlertContact) ToAlertContactOutput() AlertContactOutput
- func (i *AlertContact) ToAlertContactOutputWithContext(ctx context.Context) AlertContactOutput
- func (i *AlertContact) ToAlertContactPtrOutput() AlertContactPtrOutput
- func (i *AlertContact) ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput
- type AlertContactArgs
- type AlertContactArray
- type AlertContactArrayInput
- type AlertContactArrayOutput
- func (AlertContactArrayOutput) ElementType() reflect.Type
- func (o AlertContactArrayOutput) Index(i pulumi.IntInput) AlertContactOutput
- func (o AlertContactArrayOutput) ToAlertContactArrayOutput() AlertContactArrayOutput
- func (o AlertContactArrayOutput) ToAlertContactArrayOutputWithContext(ctx context.Context) AlertContactArrayOutput
- type AlertContactGroup
- func (*AlertContactGroup) ElementType() reflect.Type
- func (i *AlertContactGroup) ToAlertContactGroupOutput() AlertContactGroupOutput
- func (i *AlertContactGroup) ToAlertContactGroupOutputWithContext(ctx context.Context) AlertContactGroupOutput
- func (i *AlertContactGroup) ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput
- func (i *AlertContactGroup) ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput
- type AlertContactGroupArgs
- type AlertContactGroupArray
- type AlertContactGroupArrayInput
- type AlertContactGroupArrayOutput
- func (AlertContactGroupArrayOutput) ElementType() reflect.Type
- func (o AlertContactGroupArrayOutput) Index(i pulumi.IntInput) AlertContactGroupOutput
- func (o AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutput() AlertContactGroupArrayOutput
- func (o AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutputWithContext(ctx context.Context) AlertContactGroupArrayOutput
- type AlertContactGroupInput
- type AlertContactGroupMap
- type AlertContactGroupMapInput
- type AlertContactGroupMapOutput
- func (AlertContactGroupMapOutput) ElementType() reflect.Type
- func (o AlertContactGroupMapOutput) MapIndex(k pulumi.StringInput) AlertContactGroupOutput
- func (o AlertContactGroupMapOutput) ToAlertContactGroupMapOutput() AlertContactGroupMapOutput
- func (o AlertContactGroupMapOutput) ToAlertContactGroupMapOutputWithContext(ctx context.Context) AlertContactGroupMapOutput
- type AlertContactGroupOutput
- func (AlertContactGroupOutput) ElementType() reflect.Type
- func (o AlertContactGroupOutput) ToAlertContactGroupOutput() AlertContactGroupOutput
- func (o AlertContactGroupOutput) ToAlertContactGroupOutputWithContext(ctx context.Context) AlertContactGroupOutput
- func (o AlertContactGroupOutput) ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput
- func (o AlertContactGroupOutput) ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput
- type AlertContactGroupPtrInput
- type AlertContactGroupPtrOutput
- type AlertContactGroupState
- type AlertContactInput
- type AlertContactMap
- type AlertContactMapInput
- type AlertContactMapOutput
- func (AlertContactMapOutput) ElementType() reflect.Type
- func (o AlertContactMapOutput) MapIndex(k pulumi.StringInput) AlertContactOutput
- func (o AlertContactMapOutput) ToAlertContactMapOutput() AlertContactMapOutput
- func (o AlertContactMapOutput) ToAlertContactMapOutputWithContext(ctx context.Context) AlertContactMapOutput
- type AlertContactOutput
- func (AlertContactOutput) ElementType() reflect.Type
- func (o AlertContactOutput) ToAlertContactOutput() AlertContactOutput
- func (o AlertContactOutput) ToAlertContactOutputWithContext(ctx context.Context) AlertContactOutput
- func (o AlertContactOutput) ToAlertContactPtrOutput() AlertContactPtrOutput
- func (o AlertContactOutput) ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput
- type AlertContactPtrInput
- type AlertContactPtrOutput
- type AlertContactState
- type GetAlertContactGroupsArgs
- type GetAlertContactGroupsGroup
- type GetAlertContactGroupsGroupArgs
- func (GetAlertContactGroupsGroupArgs) ElementType() reflect.Type
- func (i GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutput() GetAlertContactGroupsGroupOutput
- func (i GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupOutput
- type GetAlertContactGroupsGroupArray
- func (GetAlertContactGroupsGroupArray) ElementType() reflect.Type
- func (i GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutput() GetAlertContactGroupsGroupArrayOutput
- func (i GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupArrayOutput
- type GetAlertContactGroupsGroupArrayInput
- type GetAlertContactGroupsGroupArrayOutput
- func (GetAlertContactGroupsGroupArrayOutput) ElementType() reflect.Type
- func (o GetAlertContactGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetAlertContactGroupsGroupOutput
- func (o GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutput() GetAlertContactGroupsGroupArrayOutput
- func (o GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupArrayOutput
- type GetAlertContactGroupsGroupInput
- type GetAlertContactGroupsGroupOutput
- func (o GetAlertContactGroupsGroupOutput) AlertContactGroupId() pulumi.StringOutput
- func (o GetAlertContactGroupsGroupOutput) AlertContactGroupName() pulumi.StringOutput
- func (o GetAlertContactGroupsGroupOutput) ContactIds() pulumi.StringArrayOutput
- func (o GetAlertContactGroupsGroupOutput) CreateTime() pulumi.StringOutput
- func (GetAlertContactGroupsGroupOutput) ElementType() reflect.Type
- func (o GetAlertContactGroupsGroupOutput) Id() pulumi.StringOutput
- func (o GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutput() GetAlertContactGroupsGroupOutput
- func (o GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupOutput
- type GetAlertContactGroupsResult
- type GetAlertContactsArgs
- type GetAlertContactsContact
- type GetAlertContactsContactArgs
- type GetAlertContactsContactArray
- func (GetAlertContactsContactArray) ElementType() reflect.Type
- func (i GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutput() GetAlertContactsContactArrayOutput
- func (i GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutputWithContext(ctx context.Context) GetAlertContactsContactArrayOutput
- type GetAlertContactsContactArrayInput
- type GetAlertContactsContactArrayOutput
- func (GetAlertContactsContactArrayOutput) ElementType() reflect.Type
- func (o GetAlertContactsContactArrayOutput) Index(i pulumi.IntInput) GetAlertContactsContactOutput
- func (o GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutput() GetAlertContactsContactArrayOutput
- func (o GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutputWithContext(ctx context.Context) GetAlertContactsContactArrayOutput
- type GetAlertContactsContactInput
- type GetAlertContactsContactOutput
- func (o GetAlertContactsContactOutput) AlertContactId() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) AlertContactName() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) CreateTime() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) DingRobotWebhookUrl() pulumi.StringOutput
- func (GetAlertContactsContactOutput) ElementType() reflect.Type
- func (o GetAlertContactsContactOutput) Email() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) Id() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) PhoneNum() pulumi.StringOutput
- func (o GetAlertContactsContactOutput) SystemNoc() pulumi.BoolOutput
- func (o GetAlertContactsContactOutput) ToGetAlertContactsContactOutput() GetAlertContactsContactOutput
- func (o GetAlertContactsContactOutput) ToGetAlertContactsContactOutputWithContext(ctx context.Context) GetAlertContactsContactOutput
- func (o GetAlertContactsContactOutput) Webhook() pulumi.StringOutput
- type GetAlertContactsResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertContact ¶
type AlertContact struct { pulumi.CustomResourceState // The name of the alert contact. AlertContactName pulumi.StringPtrOutput `pulumi:"alertContactName"` // The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. DingRobotWebhookUrl pulumi.StringPtrOutput `pulumi:"dingRobotWebhookUrl"` // The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. Email pulumi.StringPtrOutput `pulumi:"email"` // The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. PhoneNum pulumi.StringPtrOutput `pulumi:"phoneNum"` // Specifies whether the alert contact receives system notifications. Valid values: true: receives system notifications. false: does not receive system notifications. SystemNoc pulumi.BoolPtrOutput `pulumi:"systemNoc"` }
Provides a Application Real-Time Monitoring Service (ARMS) Alert Contact resource.
For information about Application Real-Time Monitoring Service (ARMS) Alert Contact and how to use it, see [What is Alert Contact](https://www.alibabacloud.com/help/en/doc-detail/42953.htm).
> **NOTE:** Available in v1.129.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := arms.NewAlertContact(ctx, "example", &arms.AlertContactArgs{ AlertContactName: pulumi.String("example_value"), DingRobotWebhookUrl: pulumi.String("https://oapi.dingtalk.com/robot/send?access_token=91f2f6****"), Email: pulumi.String("someone@example.com"), PhoneNum: pulumi.String("1381111****"), }) if err != nil { return err } return nil }) }
```
## Import
Application Real-Time Monitoring Service (ARMS) Alert Contact can be imported using the id, e.g.
```sh
$ pulumi import alicloud:arms/alertContact:AlertContact example <id>
```
func GetAlertContact ¶
func GetAlertContact(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertContactState, opts ...pulumi.ResourceOption) (*AlertContact, error)
GetAlertContact gets an existing AlertContact resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlertContact ¶
func NewAlertContact(ctx *pulumi.Context, name string, args *AlertContactArgs, opts ...pulumi.ResourceOption) (*AlertContact, error)
NewAlertContact registers a new resource with the given unique name, arguments, and options.
func (*AlertContact) ElementType ¶
func (*AlertContact) ElementType() reflect.Type
func (*AlertContact) ToAlertContactOutput ¶
func (i *AlertContact) ToAlertContactOutput() AlertContactOutput
func (*AlertContact) ToAlertContactOutputWithContext ¶
func (i *AlertContact) ToAlertContactOutputWithContext(ctx context.Context) AlertContactOutput
func (*AlertContact) ToAlertContactPtrOutput ¶
func (i *AlertContact) ToAlertContactPtrOutput() AlertContactPtrOutput
func (*AlertContact) ToAlertContactPtrOutputWithContext ¶
func (i *AlertContact) ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput
type AlertContactArgs ¶
type AlertContactArgs struct { // The name of the alert contact. AlertContactName pulumi.StringPtrInput // The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. DingRobotWebhookUrl pulumi.StringPtrInput // The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. Email pulumi.StringPtrInput // The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. PhoneNum pulumi.StringPtrInput // Specifies whether the alert contact receives system notifications. Valid values: true: receives system notifications. false: does not receive system notifications. SystemNoc pulumi.BoolPtrInput }
The set of arguments for constructing a AlertContact resource.
func (AlertContactArgs) ElementType ¶
func (AlertContactArgs) ElementType() reflect.Type
type AlertContactArray ¶
type AlertContactArray []AlertContactInput
func (AlertContactArray) ElementType ¶
func (AlertContactArray) ElementType() reflect.Type
func (AlertContactArray) ToAlertContactArrayOutput ¶
func (i AlertContactArray) ToAlertContactArrayOutput() AlertContactArrayOutput
func (AlertContactArray) ToAlertContactArrayOutputWithContext ¶
func (i AlertContactArray) ToAlertContactArrayOutputWithContext(ctx context.Context) AlertContactArrayOutput
type AlertContactArrayInput ¶
type AlertContactArrayInput interface { pulumi.Input ToAlertContactArrayOutput() AlertContactArrayOutput ToAlertContactArrayOutputWithContext(context.Context) AlertContactArrayOutput }
AlertContactArrayInput is an input type that accepts AlertContactArray and AlertContactArrayOutput values. You can construct a concrete instance of `AlertContactArrayInput` via:
AlertContactArray{ AlertContactArgs{...} }
type AlertContactArrayOutput ¶
type AlertContactArrayOutput struct{ *pulumi.OutputState }
func (AlertContactArrayOutput) ElementType ¶
func (AlertContactArrayOutput) ElementType() reflect.Type
func (AlertContactArrayOutput) Index ¶
func (o AlertContactArrayOutput) Index(i pulumi.IntInput) AlertContactOutput
func (AlertContactArrayOutput) ToAlertContactArrayOutput ¶
func (o AlertContactArrayOutput) ToAlertContactArrayOutput() AlertContactArrayOutput
func (AlertContactArrayOutput) ToAlertContactArrayOutputWithContext ¶
func (o AlertContactArrayOutput) ToAlertContactArrayOutputWithContext(ctx context.Context) AlertContactArrayOutput
type AlertContactGroup ¶ added in v3.6.0
type AlertContactGroup struct { pulumi.CustomResourceState // The name of the resource. AlertContactGroupName pulumi.StringOutput `pulumi:"alertContactGroupName"` // The list id of alert contact. ContactIds pulumi.StringArrayOutput `pulumi:"contactIds"` }
Provides a Application Real-Time Monitoring Service (ARMS) Alert Contact Group resource.
For information about Application Real-Time Monitoring Service (ARMS) Alert Contact Group and how to use it, see [What is Alert Contact Group](https://www.alibabacloud.com/help/zh/doc-detail/130677.htm).
> **NOTE:** Available in v1.131.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleAlertContact, err := arms.NewAlertContact(ctx, "exampleAlertContact", &arms.AlertContactArgs{ AlertContactName: pulumi.String("example_value"), DingRobotWebhookUrl: pulumi.String("https://oapi.dingtalk.com/robot/send?access_token=91f2f6****"), Email: pulumi.String("someone@example.com"), PhoneNum: pulumi.String("1381111****"), }) if err != nil { return err } _, err = arms.NewAlertContactGroup(ctx, "exampleAlertContactGroup", &arms.AlertContactGroupArgs{ AlertContactGroupName: pulumi.String("example_value"), ContactIds: pulumi.StringArray{ exampleAlertContact.ID(), }, }) if err != nil { return err } return nil }) }
```
## Import
Application Real-Time Monitoring Service (ARMS) Alert Contact Group can be imported using the id, e.g.
```sh
$ pulumi import alicloud:arms/alertContactGroup:AlertContactGroup example <id>
```
func GetAlertContactGroup ¶ added in v3.6.0
func GetAlertContactGroup(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlertContactGroupState, opts ...pulumi.ResourceOption) (*AlertContactGroup, error)
GetAlertContactGroup gets an existing AlertContactGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlertContactGroup ¶ added in v3.6.0
func NewAlertContactGroup(ctx *pulumi.Context, name string, args *AlertContactGroupArgs, opts ...pulumi.ResourceOption) (*AlertContactGroup, error)
NewAlertContactGroup registers a new resource with the given unique name, arguments, and options.
func (*AlertContactGroup) ElementType ¶ added in v3.6.0
func (*AlertContactGroup) ElementType() reflect.Type
func (*AlertContactGroup) ToAlertContactGroupOutput ¶ added in v3.6.0
func (i *AlertContactGroup) ToAlertContactGroupOutput() AlertContactGroupOutput
func (*AlertContactGroup) ToAlertContactGroupOutputWithContext ¶ added in v3.6.0
func (i *AlertContactGroup) ToAlertContactGroupOutputWithContext(ctx context.Context) AlertContactGroupOutput
func (*AlertContactGroup) ToAlertContactGroupPtrOutput ¶ added in v3.6.0
func (i *AlertContactGroup) ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput
func (*AlertContactGroup) ToAlertContactGroupPtrOutputWithContext ¶ added in v3.6.0
func (i *AlertContactGroup) ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput
type AlertContactGroupArgs ¶ added in v3.6.0
type AlertContactGroupArgs struct { // The name of the resource. AlertContactGroupName pulumi.StringInput // The list id of alert contact. ContactIds pulumi.StringArrayInput }
The set of arguments for constructing a AlertContactGroup resource.
func (AlertContactGroupArgs) ElementType ¶ added in v3.6.0
func (AlertContactGroupArgs) ElementType() reflect.Type
type AlertContactGroupArray ¶ added in v3.6.0
type AlertContactGroupArray []AlertContactGroupInput
func (AlertContactGroupArray) ElementType ¶ added in v3.6.0
func (AlertContactGroupArray) ElementType() reflect.Type
func (AlertContactGroupArray) ToAlertContactGroupArrayOutput ¶ added in v3.6.0
func (i AlertContactGroupArray) ToAlertContactGroupArrayOutput() AlertContactGroupArrayOutput
func (AlertContactGroupArray) ToAlertContactGroupArrayOutputWithContext ¶ added in v3.6.0
func (i AlertContactGroupArray) ToAlertContactGroupArrayOutputWithContext(ctx context.Context) AlertContactGroupArrayOutput
type AlertContactGroupArrayInput ¶ added in v3.6.0
type AlertContactGroupArrayInput interface { pulumi.Input ToAlertContactGroupArrayOutput() AlertContactGroupArrayOutput ToAlertContactGroupArrayOutputWithContext(context.Context) AlertContactGroupArrayOutput }
AlertContactGroupArrayInput is an input type that accepts AlertContactGroupArray and AlertContactGroupArrayOutput values. You can construct a concrete instance of `AlertContactGroupArrayInput` via:
AlertContactGroupArray{ AlertContactGroupArgs{...} }
type AlertContactGroupArrayOutput ¶ added in v3.6.0
type AlertContactGroupArrayOutput struct{ *pulumi.OutputState }
func (AlertContactGroupArrayOutput) ElementType ¶ added in v3.6.0
func (AlertContactGroupArrayOutput) ElementType() reflect.Type
func (AlertContactGroupArrayOutput) Index ¶ added in v3.6.0
func (o AlertContactGroupArrayOutput) Index(i pulumi.IntInput) AlertContactGroupOutput
func (AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutput ¶ added in v3.6.0
func (o AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutput() AlertContactGroupArrayOutput
func (AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutputWithContext ¶ added in v3.6.0
func (o AlertContactGroupArrayOutput) ToAlertContactGroupArrayOutputWithContext(ctx context.Context) AlertContactGroupArrayOutput
type AlertContactGroupInput ¶ added in v3.6.0
type AlertContactGroupInput interface { pulumi.Input ToAlertContactGroupOutput() AlertContactGroupOutput ToAlertContactGroupOutputWithContext(ctx context.Context) AlertContactGroupOutput }
type AlertContactGroupMap ¶ added in v3.6.0
type AlertContactGroupMap map[string]AlertContactGroupInput
func (AlertContactGroupMap) ElementType ¶ added in v3.6.0
func (AlertContactGroupMap) ElementType() reflect.Type
func (AlertContactGroupMap) ToAlertContactGroupMapOutput ¶ added in v3.6.0
func (i AlertContactGroupMap) ToAlertContactGroupMapOutput() AlertContactGroupMapOutput
func (AlertContactGroupMap) ToAlertContactGroupMapOutputWithContext ¶ added in v3.6.0
func (i AlertContactGroupMap) ToAlertContactGroupMapOutputWithContext(ctx context.Context) AlertContactGroupMapOutput
type AlertContactGroupMapInput ¶ added in v3.6.0
type AlertContactGroupMapInput interface { pulumi.Input ToAlertContactGroupMapOutput() AlertContactGroupMapOutput ToAlertContactGroupMapOutputWithContext(context.Context) AlertContactGroupMapOutput }
AlertContactGroupMapInput is an input type that accepts AlertContactGroupMap and AlertContactGroupMapOutput values. You can construct a concrete instance of `AlertContactGroupMapInput` via:
AlertContactGroupMap{ "key": AlertContactGroupArgs{...} }
type AlertContactGroupMapOutput ¶ added in v3.6.0
type AlertContactGroupMapOutput struct{ *pulumi.OutputState }
func (AlertContactGroupMapOutput) ElementType ¶ added in v3.6.0
func (AlertContactGroupMapOutput) ElementType() reflect.Type
func (AlertContactGroupMapOutput) MapIndex ¶ added in v3.6.0
func (o AlertContactGroupMapOutput) MapIndex(k pulumi.StringInput) AlertContactGroupOutput
func (AlertContactGroupMapOutput) ToAlertContactGroupMapOutput ¶ added in v3.6.0
func (o AlertContactGroupMapOutput) ToAlertContactGroupMapOutput() AlertContactGroupMapOutput
func (AlertContactGroupMapOutput) ToAlertContactGroupMapOutputWithContext ¶ added in v3.6.0
func (o AlertContactGroupMapOutput) ToAlertContactGroupMapOutputWithContext(ctx context.Context) AlertContactGroupMapOutput
type AlertContactGroupOutput ¶ added in v3.6.0
type AlertContactGroupOutput struct {
*pulumi.OutputState
}
func (AlertContactGroupOutput) ElementType ¶ added in v3.6.0
func (AlertContactGroupOutput) ElementType() reflect.Type
func (AlertContactGroupOutput) ToAlertContactGroupOutput ¶ added in v3.6.0
func (o AlertContactGroupOutput) ToAlertContactGroupOutput() AlertContactGroupOutput
func (AlertContactGroupOutput) ToAlertContactGroupOutputWithContext ¶ added in v3.6.0
func (o AlertContactGroupOutput) ToAlertContactGroupOutputWithContext(ctx context.Context) AlertContactGroupOutput
func (AlertContactGroupOutput) ToAlertContactGroupPtrOutput ¶ added in v3.6.0
func (o AlertContactGroupOutput) ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput
func (AlertContactGroupOutput) ToAlertContactGroupPtrOutputWithContext ¶ added in v3.6.0
func (o AlertContactGroupOutput) ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput
type AlertContactGroupPtrInput ¶ added in v3.6.0
type AlertContactGroupPtrInput interface { pulumi.Input ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput }
type AlertContactGroupPtrOutput ¶ added in v3.6.0
type AlertContactGroupPtrOutput struct {
*pulumi.OutputState
}
func (AlertContactGroupPtrOutput) ElementType ¶ added in v3.6.0
func (AlertContactGroupPtrOutput) ElementType() reflect.Type
func (AlertContactGroupPtrOutput) ToAlertContactGroupPtrOutput ¶ added in v3.6.0
func (o AlertContactGroupPtrOutput) ToAlertContactGroupPtrOutput() AlertContactGroupPtrOutput
func (AlertContactGroupPtrOutput) ToAlertContactGroupPtrOutputWithContext ¶ added in v3.6.0
func (o AlertContactGroupPtrOutput) ToAlertContactGroupPtrOutputWithContext(ctx context.Context) AlertContactGroupPtrOutput
type AlertContactGroupState ¶ added in v3.6.0
type AlertContactGroupState struct { // The name of the resource. AlertContactGroupName pulumi.StringPtrInput // The list id of alert contact. ContactIds pulumi.StringArrayInput }
func (AlertContactGroupState) ElementType ¶ added in v3.6.0
func (AlertContactGroupState) ElementType() reflect.Type
type AlertContactInput ¶
type AlertContactInput interface { pulumi.Input ToAlertContactOutput() AlertContactOutput ToAlertContactOutputWithContext(ctx context.Context) AlertContactOutput }
type AlertContactMap ¶
type AlertContactMap map[string]AlertContactInput
func (AlertContactMap) ElementType ¶
func (AlertContactMap) ElementType() reflect.Type
func (AlertContactMap) ToAlertContactMapOutput ¶
func (i AlertContactMap) ToAlertContactMapOutput() AlertContactMapOutput
func (AlertContactMap) ToAlertContactMapOutputWithContext ¶
func (i AlertContactMap) ToAlertContactMapOutputWithContext(ctx context.Context) AlertContactMapOutput
type AlertContactMapInput ¶
type AlertContactMapInput interface { pulumi.Input ToAlertContactMapOutput() AlertContactMapOutput ToAlertContactMapOutputWithContext(context.Context) AlertContactMapOutput }
AlertContactMapInput is an input type that accepts AlertContactMap and AlertContactMapOutput values. You can construct a concrete instance of `AlertContactMapInput` via:
AlertContactMap{ "key": AlertContactArgs{...} }
type AlertContactMapOutput ¶
type AlertContactMapOutput struct{ *pulumi.OutputState }
func (AlertContactMapOutput) ElementType ¶
func (AlertContactMapOutput) ElementType() reflect.Type
func (AlertContactMapOutput) MapIndex ¶
func (o AlertContactMapOutput) MapIndex(k pulumi.StringInput) AlertContactOutput
func (AlertContactMapOutput) ToAlertContactMapOutput ¶
func (o AlertContactMapOutput) ToAlertContactMapOutput() AlertContactMapOutput
func (AlertContactMapOutput) ToAlertContactMapOutputWithContext ¶
func (o AlertContactMapOutput) ToAlertContactMapOutputWithContext(ctx context.Context) AlertContactMapOutput
type AlertContactOutput ¶
type AlertContactOutput struct {
*pulumi.OutputState
}
func (AlertContactOutput) ElementType ¶
func (AlertContactOutput) ElementType() reflect.Type
func (AlertContactOutput) ToAlertContactOutput ¶
func (o AlertContactOutput) ToAlertContactOutput() AlertContactOutput
func (AlertContactOutput) ToAlertContactOutputWithContext ¶
func (o AlertContactOutput) ToAlertContactOutputWithContext(ctx context.Context) AlertContactOutput
func (AlertContactOutput) ToAlertContactPtrOutput ¶
func (o AlertContactOutput) ToAlertContactPtrOutput() AlertContactPtrOutput
func (AlertContactOutput) ToAlertContactPtrOutputWithContext ¶
func (o AlertContactOutput) ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput
type AlertContactPtrInput ¶
type AlertContactPtrInput interface { pulumi.Input ToAlertContactPtrOutput() AlertContactPtrOutput ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput }
type AlertContactPtrOutput ¶
type AlertContactPtrOutput struct {
*pulumi.OutputState
}
func (AlertContactPtrOutput) ElementType ¶
func (AlertContactPtrOutput) ElementType() reflect.Type
func (AlertContactPtrOutput) ToAlertContactPtrOutput ¶
func (o AlertContactPtrOutput) ToAlertContactPtrOutput() AlertContactPtrOutput
func (AlertContactPtrOutput) ToAlertContactPtrOutputWithContext ¶
func (o AlertContactPtrOutput) ToAlertContactPtrOutputWithContext(ctx context.Context) AlertContactPtrOutput
type AlertContactState ¶
type AlertContactState struct { // The name of the alert contact. AlertContactName pulumi.StringPtrInput // The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. DingRobotWebhookUrl pulumi.StringPtrInput // The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. Email pulumi.StringPtrInput // The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl. PhoneNum pulumi.StringPtrInput // Specifies whether the alert contact receives system notifications. Valid values: true: receives system notifications. false: does not receive system notifications. SystemNoc pulumi.BoolPtrInput }
func (AlertContactState) ElementType ¶
func (AlertContactState) ElementType() reflect.Type
type GetAlertContactGroupsArgs ¶ added in v3.6.0
type GetAlertContactGroupsArgs struct { // The name of the resource. AlertContactGroupName *string `pulumi:"alertContactGroupName"` // The contact id. ContactId *string `pulumi:"contactId"` // The contact name. ContactName *string `pulumi:"contactName"` // A list of Alert Contact Group IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Alert Contact Group name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` }
A collection of arguments for invoking getAlertContactGroups.
type GetAlertContactGroupsGroup ¶ added in v3.6.0
type GetAlertContactGroupsGroup struct { // The first ID of the resource. AlertContactGroupId string `pulumi:"alertContactGroupId"` // The name of the resource. AlertContactGroupName string `pulumi:"alertContactGroupName"` // contact ids. ContactIds []string `pulumi:"contactIds"` // The creation time of the resource. CreateTime string `pulumi:"createTime"` // The ID of the Alert Contact Group. Id string `pulumi:"id"` }
type GetAlertContactGroupsGroupArgs ¶ added in v3.6.0
type GetAlertContactGroupsGroupArgs struct { // The first ID of the resource. AlertContactGroupId pulumi.StringInput `pulumi:"alertContactGroupId"` // The name of the resource. AlertContactGroupName pulumi.StringInput `pulumi:"alertContactGroupName"` // contact ids. ContactIds pulumi.StringArrayInput `pulumi:"contactIds"` // The creation time of the resource. CreateTime pulumi.StringInput `pulumi:"createTime"` // The ID of the Alert Contact Group. Id pulumi.StringInput `pulumi:"id"` }
func (GetAlertContactGroupsGroupArgs) ElementType ¶ added in v3.6.0
func (GetAlertContactGroupsGroupArgs) ElementType() reflect.Type
func (GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutput ¶ added in v3.6.0
func (i GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutput() GetAlertContactGroupsGroupOutput
func (GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutputWithContext ¶ added in v3.6.0
func (i GetAlertContactGroupsGroupArgs) ToGetAlertContactGroupsGroupOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupOutput
type GetAlertContactGroupsGroupArray ¶ added in v3.6.0
type GetAlertContactGroupsGroupArray []GetAlertContactGroupsGroupInput
func (GetAlertContactGroupsGroupArray) ElementType ¶ added in v3.6.0
func (GetAlertContactGroupsGroupArray) ElementType() reflect.Type
func (GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutput ¶ added in v3.6.0
func (i GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutput() GetAlertContactGroupsGroupArrayOutput
func (GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutputWithContext ¶ added in v3.6.0
func (i GetAlertContactGroupsGroupArray) ToGetAlertContactGroupsGroupArrayOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupArrayOutput
type GetAlertContactGroupsGroupArrayInput ¶ added in v3.6.0
type GetAlertContactGroupsGroupArrayInput interface { pulumi.Input ToGetAlertContactGroupsGroupArrayOutput() GetAlertContactGroupsGroupArrayOutput ToGetAlertContactGroupsGroupArrayOutputWithContext(context.Context) GetAlertContactGroupsGroupArrayOutput }
GetAlertContactGroupsGroupArrayInput is an input type that accepts GetAlertContactGroupsGroupArray and GetAlertContactGroupsGroupArrayOutput values. You can construct a concrete instance of `GetAlertContactGroupsGroupArrayInput` via:
GetAlertContactGroupsGroupArray{ GetAlertContactGroupsGroupArgs{...} }
type GetAlertContactGroupsGroupArrayOutput ¶ added in v3.6.0
type GetAlertContactGroupsGroupArrayOutput struct{ *pulumi.OutputState }
func (GetAlertContactGroupsGroupArrayOutput) ElementType ¶ added in v3.6.0
func (GetAlertContactGroupsGroupArrayOutput) ElementType() reflect.Type
func (GetAlertContactGroupsGroupArrayOutput) Index ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupArrayOutput) Index(i pulumi.IntInput) GetAlertContactGroupsGroupOutput
func (GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutput ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutput() GetAlertContactGroupsGroupArrayOutput
func (GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutputWithContext ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupArrayOutput) ToGetAlertContactGroupsGroupArrayOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupArrayOutput
type GetAlertContactGroupsGroupInput ¶ added in v3.6.0
type GetAlertContactGroupsGroupInput interface { pulumi.Input ToGetAlertContactGroupsGroupOutput() GetAlertContactGroupsGroupOutput ToGetAlertContactGroupsGroupOutputWithContext(context.Context) GetAlertContactGroupsGroupOutput }
GetAlertContactGroupsGroupInput is an input type that accepts GetAlertContactGroupsGroupArgs and GetAlertContactGroupsGroupOutput values. You can construct a concrete instance of `GetAlertContactGroupsGroupInput` via:
GetAlertContactGroupsGroupArgs{...}
type GetAlertContactGroupsGroupOutput ¶ added in v3.6.0
type GetAlertContactGroupsGroupOutput struct{ *pulumi.OutputState }
func (GetAlertContactGroupsGroupOutput) AlertContactGroupId ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) AlertContactGroupId() pulumi.StringOutput
The first ID of the resource.
func (GetAlertContactGroupsGroupOutput) AlertContactGroupName ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) AlertContactGroupName() pulumi.StringOutput
The name of the resource.
func (GetAlertContactGroupsGroupOutput) ContactIds ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) ContactIds() pulumi.StringArrayOutput
contact ids.
func (GetAlertContactGroupsGroupOutput) CreateTime ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) CreateTime() pulumi.StringOutput
The creation time of the resource.
func (GetAlertContactGroupsGroupOutput) ElementType ¶ added in v3.6.0
func (GetAlertContactGroupsGroupOutput) ElementType() reflect.Type
func (GetAlertContactGroupsGroupOutput) Id ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) Id() pulumi.StringOutput
The ID of the Alert Contact Group.
func (GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutput ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutput() GetAlertContactGroupsGroupOutput
func (GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutputWithContext ¶ added in v3.6.0
func (o GetAlertContactGroupsGroupOutput) ToGetAlertContactGroupsGroupOutputWithContext(ctx context.Context) GetAlertContactGroupsGroupOutput
type GetAlertContactGroupsResult ¶ added in v3.6.0
type GetAlertContactGroupsResult struct { AlertContactGroupName *string `pulumi:"alertContactGroupName"` ContactId *string `pulumi:"contactId"` ContactName *string `pulumi:"contactName"` Groups []GetAlertContactGroupsGroup `pulumi:"groups"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` }
A collection of values returned by getAlertContactGroups.
func GetAlertContactGroups ¶ added in v3.6.0
func GetAlertContactGroups(ctx *pulumi.Context, args *GetAlertContactGroupsArgs, opts ...pulumi.InvokeOption) (*GetAlertContactGroupsResult, error)
This data source provides the Arms Alert Contact Groups of the current Alibaba Cloud user.
> **NOTE:** Available in v1.131.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { opt0 := "^my-AlertContactGroup" nameRegex, err := arms.GetAlertContactGroups(ctx, &arms.GetAlertContactGroupsArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("armsAlertContactGroupId", nameRegex.Groups[0].Id) return nil }) }
```
type GetAlertContactsArgs ¶
type GetAlertContactsArgs struct { // The name of the alert contact. AlertContactName *string `pulumi:"alertContactName"` // The email address of the alert contact. Email *string `pulumi:"email"` // A list of Alert Contact IDs. Ids []string `pulumi:"ids"` // A regex string to filter results by Alert Contact name. NameRegex *string `pulumi:"nameRegex"` OutputFile *string `pulumi:"outputFile"` // The mobile number of the alert contact. PhoneNum *string `pulumi:"phoneNum"` }
A collection of arguments for invoking getAlertContacts.
type GetAlertContactsContact ¶
type GetAlertContactsContact struct { // Contact ID. AlertContactId string `pulumi:"alertContactId"` // The name of the alert contact. AlertContactName string `pulumi:"alertContactName"` // The Creation Time Timestamp. CreateTime string `pulumi:"createTime"` // The webhook URL of the DingTalk chatbot. DingRobotWebhookUrl string `pulumi:"dingRobotWebhookUrl"` // The email address of the alert contact. Email string `pulumi:"email"` // The ID of the Alert Contact. Id string `pulumi:"id"` // The mobile number of the alert contact. PhoneNum string `pulumi:"phoneNum"` // Specifies whether the alert contact receives system notifications. SystemNoc bool `pulumi:"systemNoc"` // Webhook Information. Webhook string `pulumi:"webhook"` }
type GetAlertContactsContactArgs ¶
type GetAlertContactsContactArgs struct { // Contact ID. AlertContactId pulumi.StringInput `pulumi:"alertContactId"` // The name of the alert contact. AlertContactName pulumi.StringInput `pulumi:"alertContactName"` // The Creation Time Timestamp. CreateTime pulumi.StringInput `pulumi:"createTime"` // The webhook URL of the DingTalk chatbot. DingRobotWebhookUrl pulumi.StringInput `pulumi:"dingRobotWebhookUrl"` // The email address of the alert contact. Email pulumi.StringInput `pulumi:"email"` // The ID of the Alert Contact. Id pulumi.StringInput `pulumi:"id"` // The mobile number of the alert contact. PhoneNum pulumi.StringInput `pulumi:"phoneNum"` // Specifies whether the alert contact receives system notifications. SystemNoc pulumi.BoolInput `pulumi:"systemNoc"` // Webhook Information. Webhook pulumi.StringInput `pulumi:"webhook"` }
func (GetAlertContactsContactArgs) ElementType ¶
func (GetAlertContactsContactArgs) ElementType() reflect.Type
func (GetAlertContactsContactArgs) ToGetAlertContactsContactOutput ¶
func (i GetAlertContactsContactArgs) ToGetAlertContactsContactOutput() GetAlertContactsContactOutput
func (GetAlertContactsContactArgs) ToGetAlertContactsContactOutputWithContext ¶
func (i GetAlertContactsContactArgs) ToGetAlertContactsContactOutputWithContext(ctx context.Context) GetAlertContactsContactOutput
type GetAlertContactsContactArray ¶
type GetAlertContactsContactArray []GetAlertContactsContactInput
func (GetAlertContactsContactArray) ElementType ¶
func (GetAlertContactsContactArray) ElementType() reflect.Type
func (GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutput ¶
func (i GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutput() GetAlertContactsContactArrayOutput
func (GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutputWithContext ¶
func (i GetAlertContactsContactArray) ToGetAlertContactsContactArrayOutputWithContext(ctx context.Context) GetAlertContactsContactArrayOutput
type GetAlertContactsContactArrayInput ¶
type GetAlertContactsContactArrayInput interface { pulumi.Input ToGetAlertContactsContactArrayOutput() GetAlertContactsContactArrayOutput ToGetAlertContactsContactArrayOutputWithContext(context.Context) GetAlertContactsContactArrayOutput }
GetAlertContactsContactArrayInput is an input type that accepts GetAlertContactsContactArray and GetAlertContactsContactArrayOutput values. You can construct a concrete instance of `GetAlertContactsContactArrayInput` via:
GetAlertContactsContactArray{ GetAlertContactsContactArgs{...} }
type GetAlertContactsContactArrayOutput ¶
type GetAlertContactsContactArrayOutput struct{ *pulumi.OutputState }
func (GetAlertContactsContactArrayOutput) ElementType ¶
func (GetAlertContactsContactArrayOutput) ElementType() reflect.Type
func (GetAlertContactsContactArrayOutput) Index ¶
func (o GetAlertContactsContactArrayOutput) Index(i pulumi.IntInput) GetAlertContactsContactOutput
func (GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutput ¶
func (o GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutput() GetAlertContactsContactArrayOutput
func (GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutputWithContext ¶
func (o GetAlertContactsContactArrayOutput) ToGetAlertContactsContactArrayOutputWithContext(ctx context.Context) GetAlertContactsContactArrayOutput
type GetAlertContactsContactInput ¶
type GetAlertContactsContactInput interface { pulumi.Input ToGetAlertContactsContactOutput() GetAlertContactsContactOutput ToGetAlertContactsContactOutputWithContext(context.Context) GetAlertContactsContactOutput }
GetAlertContactsContactInput is an input type that accepts GetAlertContactsContactArgs and GetAlertContactsContactOutput values. You can construct a concrete instance of `GetAlertContactsContactInput` via:
GetAlertContactsContactArgs{...}
type GetAlertContactsContactOutput ¶
type GetAlertContactsContactOutput struct{ *pulumi.OutputState }
func (GetAlertContactsContactOutput) AlertContactId ¶
func (o GetAlertContactsContactOutput) AlertContactId() pulumi.StringOutput
Contact ID.
func (GetAlertContactsContactOutput) AlertContactName ¶
func (o GetAlertContactsContactOutput) AlertContactName() pulumi.StringOutput
The name of the alert contact.
func (GetAlertContactsContactOutput) CreateTime ¶
func (o GetAlertContactsContactOutput) CreateTime() pulumi.StringOutput
The Creation Time Timestamp.
func (GetAlertContactsContactOutput) DingRobotWebhookUrl ¶
func (o GetAlertContactsContactOutput) DingRobotWebhookUrl() pulumi.StringOutput
The webhook URL of the DingTalk chatbot.
func (GetAlertContactsContactOutput) ElementType ¶
func (GetAlertContactsContactOutput) ElementType() reflect.Type
func (GetAlertContactsContactOutput) Email ¶
func (o GetAlertContactsContactOutput) Email() pulumi.StringOutput
The email address of the alert contact.
func (GetAlertContactsContactOutput) Id ¶
func (o GetAlertContactsContactOutput) Id() pulumi.StringOutput
The ID of the Alert Contact.
func (GetAlertContactsContactOutput) PhoneNum ¶
func (o GetAlertContactsContactOutput) PhoneNum() pulumi.StringOutput
The mobile number of the alert contact.
func (GetAlertContactsContactOutput) SystemNoc ¶
func (o GetAlertContactsContactOutput) SystemNoc() pulumi.BoolOutput
Specifies whether the alert contact receives system notifications.
func (GetAlertContactsContactOutput) ToGetAlertContactsContactOutput ¶
func (o GetAlertContactsContactOutput) ToGetAlertContactsContactOutput() GetAlertContactsContactOutput
func (GetAlertContactsContactOutput) ToGetAlertContactsContactOutputWithContext ¶
func (o GetAlertContactsContactOutput) ToGetAlertContactsContactOutputWithContext(ctx context.Context) GetAlertContactsContactOutput
func (GetAlertContactsContactOutput) Webhook ¶
func (o GetAlertContactsContactOutput) Webhook() pulumi.StringOutput
Webhook Information.
type GetAlertContactsResult ¶
type GetAlertContactsResult struct { AlertContactName *string `pulumi:"alertContactName"` Contacts []GetAlertContactsContact `pulumi:"contacts"` Email *string `pulumi:"email"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Ids []string `pulumi:"ids"` NameRegex *string `pulumi:"nameRegex"` Names []string `pulumi:"names"` OutputFile *string `pulumi:"outputFile"` PhoneNum *string `pulumi:"phoneNum"` }
A collection of values returned by getAlertContacts.
func GetAlertContacts ¶
func GetAlertContacts(ctx *pulumi.Context, args *GetAlertContactsArgs, opts ...pulumi.InvokeOption) (*GetAlertContactsResult, error)
This data source provides the Arms Alert Contacts of the current Alibaba Cloud user.
> **NOTE:** Available in v1.129.0+.
## Example Usage
Basic Usage ¶
```go package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { ids, err := arms.GetAlertContacts(ctx, nil, nil) if err != nil { return err } ctx.Export("armsAlertContactId1", ids.Contacts[0].Id) opt0 := "^my-AlertContact" nameRegex, err := arms.GetAlertContacts(ctx, &arms.GetAlertContactsArgs{ NameRegex: &opt0, }, nil) if err != nil { return err } ctx.Export("armsAlertContactId2", nameRegex.Contacts[0].Id) return nil }) }
```