» alicloud_mns_topics

This data source provides a list of MNS topics in an Alibaba Cloud account according to the specified parameters.

» Example Usage

data "alicloud_mns_topics" "topics" {
  name_prefix = "tf-"
}

output "first_topic_id" {
  value = "${data.alicloud_mns_topics.topics.topics.0.id}"
}

» Argument Reference

The following arguments are supported:

  • name_prefix - (Optional) A string to filter resulting topics by their name prefixs.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

» Attributes Reference

The following attributes are exported in addition to the arguments listed above:

  • names - A list of topic names.
  • topics - A list of topics. Each element contains the following attributes:
    • id - The id of the topic. The value is set to name.
    • name - The name of the topic.
    • maximum_message_size - This indicates the maximum length, in bytes, of any message body sent to the topic.
    • logging_enabled - Whether to enable logging.