Consulta os detalhes de um tópico do Message Service (MNS).
Sintaxe
{
"Type": "DATASOURCE::MNS::Topic",
"Properties": {
"TopicName": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
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
MessageRetentionPeriod: período máximo de retenção de mensagens no tópico.
CreateTime: data e hora de criação do tópico.
TopicUrl: URL pública do tópico.
MaxMessageSize: tamanho máximo do corpo da mensagem enviada ao tópico.
LastModifyTime: data e hora da última modificação do tópico.
MessageCount: número de mensagens no tópico.
TopicInnerUrl: URL privada do tópico.
LoggingEnabled: indica se o registro em log está ativado para o tópico.
TopicName: nome do tópico.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TopicName:
Type: String
Description:
en: The name of the resource.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::MNS::Topic
Properties:
TopicName:
Ref: TopicName
Outputs:
MessageRetentionPeriod:
Description: The retention period of the message in the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MessageRetentionPeriod
CreateTime:
Description: The time when the topic was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
TopicUrl:
Description: The URL of the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TopicUrl
MaxMessageSize:
Description: The maximum size of a message body that is sent to the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MaxMessageSize
LastModifyTime:
Description: The time when the topic was last modified.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LastModifyTime
MessageCount:
Description: The number of messages in the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MessageCount
TopicInnerUrl:
Description: The internal URL of the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TopicInnerUrl
LoggingEnabled:
Description: Indicates whether the log management feature is enabled for the topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- LoggingEnabled
TopicName:
Description: The name of the MNS topic.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TopicName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TopicName": {
"Type": "String",
"Description": {
"en": "The name of the resource."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::MNS::Topic",
"Properties": {
"TopicName": {
"Ref": "TopicName"
}
}
}
},
"Outputs": {
"MessageRetentionPeriod": {
"Description": "The retention period of the message in the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MessageRetentionPeriod"
]
}
},
"CreateTime": {
"Description": "The time when the topic was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"TopicUrl": {
"Description": "The URL of the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopicUrl"
]
}
},
"MaxMessageSize": {
"Description": "The maximum size of a message body that is sent to the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MaxMessageSize"
]
}
},
"LastModifyTime": {
"Description": "The time when the topic was last modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LastModifyTime"
]
}
},
"MessageCount": {
"Description": "The number of messages in the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MessageCount"
]
}
},
"TopicInnerUrl": {
"Description": "The internal URL of the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopicInnerUrl"
]
}
},
"LoggingEnabled": {
"Description": "Indicates whether the log management feature is enabled for the topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"LoggingEnabled"
]
}
},
"TopicName": {
"Description": "The name of the MNS topic.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopicName"
]
}
}
}
}