Provides a Msc Sub Subscription resource.
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"
}
The following arguments are supported:
contact_ids
- (Optional) The ids of subscribed contacts.
NOTE: There is a potential diff error because of the order of contact_ids
values indefinite.
So, from version 1.161.0, contact_ids
type has been updated as set
from list
,
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 the alicloud_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.The following attributes are exported:
id
- The resource ID in terraform of Subscription.channel
- The channel the Subscription.description
- The description of the Subscription.Msc Sub Subscription can be imported using the id, e.g.
$ terraform import alicloud_msc_sub_subscription.example <id>