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. # データ保存期間は 15 日です。
- cms.s1.xlarge: Data storage duration is 32 days. # データ保存期間は 32 日です。
- cms.s1.2xlarge: Data storage duration 63 days. # データ保存期間は 63 日です。
- cms.s1.3xlarge: Data storage duration 93 days. # データ保存期間は 93 日です。
- cms.s1.6xlarge: Data storage duration 185 days. # データ保存期間は 185 日です。
- cms.s1.12xlarge: Data storage duration 376 days. # データ保存期間は 376 日です。'
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. # Alibaba Cloud サービスの名前空間。
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. # データ保存期間は 15 日です。
- cms.s1.xlarge: Data storage duration is 32 days. # データ保存期間は 32 日です。
- cms.s1.2xlarge: Data storage duration 63 days. # データ保存期間は 63 日です。
- cms.s1.3xlarge: Data storage duration 93 days. # データ保存期間は 93 日です。
- cms.s1.6xlarge: Data storage duration 185 days. # データ保存期間は 185 日です。
- cms.s1.12xlarge: Data storage duration 376 days. # データ保存期間は 376 日です。'
Value:
Fn::GetAtt:
- ExtensionResource
- SpecificationJSON 形式
{
"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.", // 名前空間のデータ保持期間。有効な値:\n- cms.s1.large:データ保存期間は 15 日です。\n- cms.s1.xlarge:データ保存期間は 32 日です。\n- cms.s1.2xlarge:データ保存期間は 63 日です。\n- cms.s1.3xlarge:データ保存期間は 93 日です。\n- cms.s1.6xlarge:データ保存期間は 185 日です。\n- cms.s1.12xlarge:データ保存期間は 376 日です。
"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 (-).", // 名前空間の名前。\n名前には、小文字、数字、およびハイフン(-)を含めることができます。
"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.", // 名前空間が作成されたときに生成されたタイムスタンプ。\n単位:ミリ秒。
"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.", // 名前空間のデータ保持期間。有効な値:\n- cms.s1.large:データ保存期間は 15 日です。\n- cms.s1.xlarge:データ保存期間は 32 日です。\n- cms.s1.2xlarge:データ保存期間は 63 日です。\n- cms.s1.3xlarge:データ保存期間は 93 日です。\n- cms.s1.6xlarge:データ保存期間は 185 日です。\n- cms.s1.12xlarge:データ保存期間は 376 日です。
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Specification"
]
}
},
"Namespace": {
"Description": "The namespace for the Alibaba Cloud service.", // Alibaba Cloud サービスの名前空間。
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Namespace"
]
}
}
}
}