alicloud_message_service_subscription

Provides a Message Notification Service Subscription resource.

For information about Message Notification Service Subscription and how to use it, see What is Subscription.

Example Usage

Basic Usage

variable "name" {
  default = "tf-example"
}
resource "alicloud_message_service_topic" "default" {
  topic_name       = var.name
  max_message_size = 12357
  logging_enabled  = true
}

resource "alicloud_message_service_subscription" "default" {
  topic_name            = alicloud_message_service_topic.default.topic_name
  subscription_name     = var.name
  endpoint              = "http://example.com"
  push_type             = "http"
  filter_tag            = "tf-example"
  notify_content_format = "XML"
  notify_strategy       = "BACKOFF_RETRY"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Message Notification Service Subscription can be imported using the id, e.g.

$ terraform import alicloud_message_service_subscription.example <topic_name>:<subscription_name>