ALIYUN::MNS::Topic is used to create a topic.


  "Type": "ALIYUN::MNS::Topic",
  "Properties": {
    "LoggingEnabled": Boolean,
    "TopicName": String,
    "MaximumMessageSize": Integer


Property Type Required Editable Description Constraint
TopicName String Yes No The name of the topic.
  • The name must be unique to an Alibaba Cloud account in a region.
  • The name can be up to 256 characters in length and can contain letters, digits, and hyphens (-). It must start with a letter.
MaximumMessageSize Integer No Yes The maximum size of a message that can be sent to the topic.

Valid values: 1024 (1 KB) to 65536 (64 KB).

Unit: bytes.

Default value: 65536 (64 KB).

LoggingEnabled Boolean No Yes Specifies whether to enable the log management feature. Valid values:
  • true: enables the log management feature.
  • false: disables the log management feature.

Default value: false.

Response parameters


  • TopicUrl: the URL of the created topic.
  • TopicName: the name of the created topic.
  • ARN: the ARN of the created topic.


  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Topic": {
      "Type": "ALIYUN::MNS::Topic",
      "Properties": {
        "TopicName": "test",
        "MaximumMessageSize": 2048,
        "LoggingEnabled": true
  "Outputs": {
    "TopicUrl": {
      "Value": { "Fn::GetAtt": ["Topic", "TopicUrl"] }