Consulta os detalhes de um tópico do RocketMQ.
Sintaxe
{
"Type": "DATASOURCE::ROCKETMQ::Topic",
"Properties": {
"InstanceId": String,
"TopicName": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceId |
String |
Sim |
Sim |
ID da instância que contém o tópico. |
Nenhuma. |
|
TopicName |
String |
Sim |
Sim |
Nome do tópico. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos da fonte de dados ao atualizar a pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
InstanceId: ID da instância que contém o tópico.
CreateTime: hora de criação do tópico.
UpdateTime: hora da última modificação do tópico.
MessageType: tipo de mensagem do tópico.
Remark: observações sobre o tópico.
TopicName: nome do tópico.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
InstanceId:
Type: String
Description:
en: The ID of the instance to which the topic belongs.
Required: true
TopicName:
Type: String
Description:
en: The name of the topic.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ROCKETMQ::Topic
Properties:
InstanceId:
Ref: InstanceId
TopicName:
Ref: TopicName
Outputs:
InstanceId:
Description: The ID of the instance to which the topic belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
CreateTime:
Description: The time when the topic was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
UpdateTime:
Description: The time when the topic was last updated.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTime
MessageType:
Description: The message type of the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MessageType
Remark:
Description: The remarks on the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Remark
TopicName:
Description: The name of the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TopicName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the instance to which the topic belongs."
},
"Required": true
},
"TopicName": {
"Type": "String",
"Description": {
"en": "The name of the topic."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ROCKETMQ::Topic",
"Properties": {
"InstanceId": {
"Ref": "InstanceId"
},
"TopicName": {
"Ref": "TopicName"
}
}
}
},
"Outputs": {
"InstanceId": {
"Description": "The ID of the instance to which the topic belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"CreateTime": {
"Description": "The time when the topic was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"UpdateTime": {
"Description": "The time when the topic was last updated.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTime"
]
}
},
"MessageType": {
"Description": "The message type of the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MessageType"
]
}
},
"Remark": {
"Description": "The remarks on the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Remark"
]
}
},
"TopicName": {
"Description": "The name of the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopicName"
]
}
}
}
}