データソース::ROCKETMQ::Topic は、Topic に関する情報をクエリするために使用されます。
構文
{
"Type": "DATASOURCE::ROCKETMQ::Topic",
"Properties": {
"InstanceId": String,
"TopicName": String,
"RefreshOptions": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
InstanceId | String | はい | はい | Topic を含むインスタンスの ID。 | なし。 |
TopicName | String | はい | はい | Topic の名前。 | なし。 |
RefreshOptions | String | いいえ | はい | スタックが更新されたときのデータソースリソースのリフレッシュポリシー。 | 有効な値:
|
戻り値
Fn::GetAtt
InstanceId: Topic を含むインスタンスの ID。
CreateTime: Topic が作成された時刻。
UpdateTime: Topic が最後に変更された時刻。
MessageType: メッセージタイプ。
Remark: 備考。
TopicName: Topic の名前。
例
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: Topic が属するインスタンスの ID。
Value:
Fn::GetAtt:
- ExtensionDataSource
- InstanceId
CreateTime:
Description: Topic が作成された時刻。
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
UpdateTime:
Description: Topic が最後に更新された時刻。
Value:
Fn::GetAtt:
- ExtensionDataSource
- UpdateTime
MessageType:
Description: Topic のメッセージタイプ。
Value:
Fn::GetAtt:
- ExtensionDataSource
- MessageType
Remark:
Description: Topic に関する備考。
Value:
Fn::GetAtt:
- ExtensionDataSource
- Remark
TopicName:
Description: 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": "Topic が属するインスタンスの ID。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InstanceId"
]
}
},
"CreateTime": {
"Description": "Topic が作成された時刻。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"UpdateTime": {
"Description": "Topic が最後に更新された時刻。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UpdateTime"
]
}
},
"MessageType": {
"Description": "Topic のメッセージタイプ。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MessageType"
]
}
},
"Remark": {
"Description": "Topic に関する備考。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Remark"
]
}
},
"TopicName": {
"Description": "Topic の名前。",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TopicName"
]
}
}
}
}