Updated on 2023-08-11 GMT+08:00

SMN.Topic

Element Description

The SMN.Topic element is used to create an SMN topic.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

displayName

No

Name of a topic displaying.

Type: string

Value Description: The name consists of 192byte or 64 Chinese characters.

name

Yes

The name of topic which you want to create

Type: string

Value Description: The value must contain only uppercase and lowercase ASCII letters, digits, underscores (_), and hyphens (-). The value must contain 1 to 256 characters.

Relationships Between Elements

None.

Return Value

Property

Type

Description

topicUrn

string

Unique resource Identification of the topic.

refName

string

Unique resource name of the topic.

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
node_templates:
  smnt1k1a:
    type: HuaweiCloud.SMN.Topic
    properties:
      name:
        get_input: smn_name
      displayName:
        get_input: displayName
inputs:
  smn_name:
    description: The name of topic which you want to create
    label: ''
  displayName:
    description: Name of a topic displaying
    label: ''