ALIYUN::CMS::Namespace类型用于创建指标仓库。
语法
{
"Type": "ALIYUN::CMS::Namespace",
"Properties": {
"Description": String,
"Specification": String,
"Namespace": String
}
}
属性
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Namespace | String | 是 | 否 | 指标仓库名称。 | 由小写字母、数字和短划线(-)组成。 |
Description | String | 否 | 是 | 指标仓库描述。 | 无 |
Specification | String | 否 | 是 | 数据存储时长。 | 取值:
说明 不同存储时长规格的价格,请参见价格表。 |
返回值
Fn::GetAtt
ModifyTime:上次修改命名空间时生成的时间。
Description:指标仓库描述。
CreateTime:创建命名空间时生成的时间。
Specification:数据存储时长。
Namespace:指标仓库名称。
示例
YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: The description of the namespace.
Type: String
Namespace:
AllowedPattern: ^[-a-z0-9]+$
Description: 'The name of the namespace.
The name can contain lowercase letters, digits, and hyphens (-).'
Type: String
Specification:
AllowedValues:
- cms.s1.large
- cms.s1.xlarge
- cms.s1.2xlarge
- cms.s1.3xlarge
- cms.s1.6xlarge
- cms.s1.12xlarge
Description: 'The data retention period of the namespace. Valid values:
- cms.s1.large: Data storage duration is 15 days.
- cms.s1.xlarge: Data storage duration is 32 days.
- cms.s1.2xlarge: Data storage duration 63 days.
- cms.s1.3xlarge: Data storage duration 93 days.
- cms.s1.6xlarge: Data storage duration 185 days.
- cms.s1.12xlarge: Data storage duration 376 days.'
Type: String
Resources:
ExtensionResource:
Properties:
Description:
Ref: Description
Namespace:
Ref: Namespace
Specification:
Ref: Specification
Type: ALIYUN::CMS::Namespace
Outputs:
CreateTime:
Description: 'The timestamp that was generated when the namespace was created.
Unit: milliseconds.'
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
Description:
Description: The description of the namespace.
Value:
Fn::GetAtt:
- ExtensionResource
- Description
ModifyTime:
Description: The timestamp that was generated when the namespace was last modified.
Value:
Fn::GetAtt:
- ExtensionResource
- ModifyTime
Namespace:
Description: The namespace for the Alibaba Cloud service.
Value:
Fn::GetAtt:
- ExtensionResource
- Namespace
Specification:
Description: 'The data retention period of the namespace. Valid values:
- cms.s1.large: Data storage duration is 15 days.
- cms.s1.xlarge: Data storage duration is 32 days.
- cms.s1.2xlarge: Data storage duration 63 days.
- cms.s1.3xlarge: Data storage duration 93 days.
- cms.s1.6xlarge: Data storage duration 185 days.
- cms.s1.12xlarge: Data storage duration 376 days.'
Value:
Fn::GetAtt:
- ExtensionResource
- Specification
JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"Description": "The description of the namespace."
},
"Specification": {
"Type": "String",
"Description": "The data retention period of the namespace. Valid values:\n- cms.s1.large: Data storage duration is 15 days.\n- cms.s1.xlarge: Data storage duration is 32 days.\n- cms.s1.2xlarge: Data storage duration 63 days.\n- cms.s1.3xlarge: Data storage duration 93 days.\n- cms.s1.6xlarge: Data storage duration 185 days.\n- cms.s1.12xlarge: Data storage duration 376 days.",
"AllowedValues": [
"cms.s1.large",
"cms.s1.xlarge",
"cms.s1.2xlarge",
"cms.s1.3xlarge",
"cms.s1.6xlarge",
"cms.s1.12xlarge"
]
},
"Namespace": {
"Type": "String",
"Description": "The name of the namespace.\nThe name can contain lowercase letters, digits, and hyphens (-).",
"AllowedPattern": "^[-a-z0-9]+$"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::CMS::Namespace",
"Properties": {
"Description": {
"Ref": "Description"
},
"Specification": {
"Ref": "Specification"
},
"Namespace": {
"Ref": "Namespace"
}
}
}
},
"Outputs": {
"ModifyTime": {
"Description": "The timestamp that was generated when the namespace was last modified.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ModifyTime"
]
}
},
"Description": {
"Description": "The description of the namespace.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Description"
]
}
},
"CreateTime": {
"Description": "The timestamp that was generated when the namespace was created.\nUnit: milliseconds.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"Specification": {
"Description": "The data retention period of the namespace. Valid values:\n- cms.s1.large: Data storage duration is 15 days.\n- cms.s1.xlarge: Data storage duration is 32 days.\n- cms.s1.2xlarge: Data storage duration 63 days.\n- cms.s1.3xlarge: Data storage duration 93 days.\n- cms.s1.6xlarge: Data storage duration 185 days.\n- cms.s1.12xlarge: Data storage duration 376 days.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Specification"
]
}
},
"Namespace": {
"Description": "The namespace for the Alibaba Cloud service.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Namespace"
]
}
}
}
}
文档内容是否对您有帮助?