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_idsvalues indefinite. So, from version 1.161.0,contact_idstype has been updated assetfromlist, 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.-1means required,-2means banned;1means subscribed;0means not subscribed.item_name- (Required, ForceNew) The name of the Subscription. NOTE: You should use thealicloud_msc_sub_subscriptionsto query the available subscription item name.pmsg_status- (Optional) The status of pmsg subscription. Valid values:-1,-2,0,1.-1means required,-2means banned;1means subscribed;0means not subscribed.sms_status- (Optional) The status of sms subscription. Valid values:-1,-2,0,1.-1means required,-2means banned;1means subscribed;0means not subscribed.tts_status- (Optional) The status of tts subscription. Valid values:-1,-2,0,1.-1means required,-2means banned;1means subscribed;0means not subscribed.webhook_ids- (Optional) The ids of subscribed webhooks.webhook_status- (Optional) The status of webhook subscription. Valid values:-1,-2,0,1.-1means required,-2means banned;1means subscribed;0means 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>
该文章对您有帮助吗?