alicloud_msc_sub_subscription
更新时间:
Provides a Msc Sub Subscription resource.
-> NOTE: Available since v1.135.0.
Example Usage
Basic Usage
resource "alicloud_msc_sub_subscription" "example" {
item_name = "Notifications of Product Expiration"
sms_status = "1"
email_status = "1"
pmsg_status = "1"
tts_status = "1"
webhook_status = "0"
}
Argument Reference
The following arguments are supported:
contact_ids
- (Optional) The ids of subscribed contacts. NOTE: There is a potential diff error because of the order ofcontact_ids
values indefinite. So, from version 1.161.0,contact_ids
type has been updated asset
fromlist
, and you can use tolist to convert it to a list.email_status
- (Optional) The status of email subscription. Valid values:-1
,-2
,0
,1
.-1
means required,-2
means banned;1
means subscribed;0
means not subscribed.item_name
- (Required, ForceNew) The name of the Subscription. NOTE: You should use thealicloud_msc_sub_subscriptions
to query the available subscription item name.pmsg_status
- (Optional) The status of pmsg subscription. Valid values:-1
,-2
,0
,1
.-1
means required,-2
means banned;1
means subscribed;0
means not subscribed.sms_status
- (Optional) The status of sms subscription. Valid values:-1
,-2
,0
,1
.-1
means required,-2
means banned;1
means subscribed;0
means not subscribed.tts_status
- (Optional) The status of tts subscription. Valid values:-1
,-2
,0
,1
.-1
means required,-2
means banned;1
means subscribed;0
means not subscribed.webhook_ids
- (Optional) The ids of subscribed webhooks.webhook_status
- (Optional) The status of webhook subscription. Valid values:-1
,-2
,0
,1
.-1
means required,-2
means banned;1
means subscribed;0
means not subscribed.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Subscription.channel
- The channel the Subscription.description
- The description of the Subscription.
Import
Msc Sub Subscription can be imported using the id, e.g.
$ terraform import alicloud_msc_sub_subscription.example <id>
文档内容是否对您有帮助?