alicloud_mns_topic_subscription

Provides a MNS topic subscription resource.

Example Usage

Basic Usage

resource "alicloud_mns_topic" "topic" {
  name                 = "tf-example-mnstopic"
  maximum_message_size = 65536
  logging_enabled      = false
}

resource "alicloud_mns_topic_subscription" "subscription" {
  topic_name            = "tf-example-mnstopic"
  name                  = "tf-example-mnstopic-sub"
  filter_tag            = "test"
  endpoint              = "http://www.xxx.com/xxx"
  notify_strategy       = "BACKOFF_RETRY"
  notify_content_format = "XML"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

MNS Topic subscription can be imported using the id, e.g.

$ terraform import alicloud_mns_topic_subscription.subscription tf-example-mnstopic:tf-example-mnstopic-sub