DATASOURCE::ROCKETMQ::Topics is used to query topics in Message Queue for Apache RocketMQ.
Syntax
{
"Type": "DATASOURCE::ROCKETMQ::Topics",
"Properties": {
"InstanceId": String,
"TopicName": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
InstanceId | String | No | Yes | The ID of the instance that contains the topic. | None. |
TopicName | String | No | Yes | The name of the topic. | None. |
Return values
Fn::GetAtt
- Topics: details of the topics.
- TopicNames: the names of the topics.
Property | Type | Description | Constraint |
---|---|---|---|
TopicNames | List | Details of the topics. | None. |
Topics | List | The names of the topics. | None. |
Remark | string | The description of the topic. | None. |
Tags | Map | The tags that are added to the topic. | Sample value:
|
InstanceId | string | The ID of the instance that contains the topic. | None. |
RelationName | string | The relationship between the current account and the topic. | The following types of relationships are supported:
|
MessageType | Number | The message type of the topic. | Valid values:
|
CreateTime | string | The time when the topic was created. | None. |
IndependentNaming | boolean | Indicates whether a separate namespace is configured for the instance that contains the topic. | Valid values:
|
Relation | integer | The code of the relationship between the current account and the topic. | Valid values:
|
Owner | string | The ID of the topic owner. | None. |
TopicName | string | The name of the topic. | None. |
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { }, "Resources": { "ExtensionDataSource": { "Type": "DATASOURCE::ROCKETMQ::Topics", "Properties": { "TopicName": "DemoTopic" } } }, "Outputs": { "Topics": { "Description": "The list of topics.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "Topics" ] } }, "TopicNames": { "Description": "The list of topic names.", "Value": { "Fn::GetAtt": [ "ExtensionDataSource", "TopicNames" ] } } } }