DATASOURCE::CMS::Namespace类型用于查询指标仓库列表,及其接入数据详情。
语法
{
"Type": "DATASOURCE::CMS::Namespace",
"Properties": {
"Namespace": String,
"RefreshOptions": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Namespace | String | 是 | 是 | 指标仓库名称。 | 无 |
RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 取值:
|
返回值
Fn::GetAtt
ModifyTime:最后一次修改指标仓库的时间戳。
Description:指标仓库描述。
CreateTime:创建指标仓库的时间戳。
Specification:数据存储时长。
Namespace:指标仓库名称。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Namespace:
Type: String
Description:
en: Indicator warehouse name.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::CMS::Namespace
Properties:
Namespace:
Ref: Namespace
Outputs:
ModifyTime:
Description: The timestamp of the last modification indicator warehouse.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ModifyTime
Description:
Description: Description of indicator warehouse.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Description
CreateTime:
Description: Create the timestamp of the indicator warehouse.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Specification:
Description: Data storage duration.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Specification
Namespace:
Description: Indicator warehouse name.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Namespace
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Namespace": {
"Type": "String",
"Description": {
"en": "Indicator warehouse name."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::CMS::Namespace",
"Properties": {
"Namespace": {
"Ref": "Namespace"
}
}
}
},
"Outputs": {
"ModifyTime": {
"Description": "The timestamp of the last modification indicator warehouse.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ModifyTime"
]
}
},
"Description": {
"Description": "Description of indicator warehouse.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Description"
]
}
},
"CreateTime": {
"Description": "Create the timestamp of the indicator warehouse.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"Specification": {
"Description": "Data storage duration.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Specification"
]
}
},
"Namespace": {
"Description": "Indicator warehouse name.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Namespace"
]
}
}
}
}
该文章对您有帮助吗?