ALIYUN::ACM::Configuration类型用于创建配置。
语法
{
"Type": "ALIYUN::ACM::Configuration",
"Properties": {
"DataId": String,
"Group": String,
"AppName": String,
"Tags": String,
"Content": String,
"Type": String,
"NamespaceId": String,
"Desc": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
DataId | String | 是 | 否 | 配置的ID | 支持大小写英文字母、数字、英文句点(.)、冒号(:)、星号(*)、下划线(_)和短划线(-)。
当ID前缀为如下值时,ACM会自动使用KMS对此配置进行加解密:
|
Group | String | 否 | 否 | 分组 | 无 |
AppName | String | 否 | 是 | 配置归属的应用名称 | 无 |
Tags | String | 否 | 是 | 配置的标签 | 如存在多个标签,以半角逗号(,)分隔。 |
Content | String | 是 | 是 | 配置的内容 | 无 |
Type | String | 否 | 是 | 配置内容的格式 | 取值:
|
NamespaceId | String | 是 | 否 | 命名空间ID | 无 |
Desc | String | 否 | 是 | 配置的描述 | 无 |
返回值
Fn::GetAtt
- DataId:配置的ID。
- Group:分组。
- NamespaceId:命名空间ID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"Configuration": {
"Type": "ALIYUN::ACM::Configuration",
"Properties": {
"DataId": {
"Ref": "DataId"
},
"Group": {
"Ref": "Group"
},
"Tags": {
"Ref": "Tags"
},
"AppName": {
"Ref": "AppName"
},
"Content": {
"Ref": "Content"
},
"Type": {
"Ref": "Type"
},
"NamespaceId": {
"Ref": "NamespaceId"
},
"Desc": {
"Ref": "Desc"
}
}
}
},
"Parameters": {
"DataId": {
"Type": "String",
"Description": "The ID of the configuration. Allowed characters are upper and lower case letters, numbers, decimal points (.), Colons (:), asterisks (*), underscores (_), and underscores (-). When the ID prefix is the following value, ACM will automatically use KMS service to encrypt this configuration:\nThe prefix is cipher-: the KMS service is called to encrypt and decrypt the configuration. The size of the encrypted data does not exceed 4 KB, and the maximum does not exceed 6 KB. Special symbols such as and (&) will decrypt errors and are not recommended.\nThe prefix is cipher-kms-aes-128-: using KMS's envelope encryption and decryption method, the configuration content can exceed 6 KB, up to 100 KB. The plain text data of the configuration content will not be transmitted to the KMS system, which is more secure and recommended."
},
"Group": {
"Default": "DEFAULT_GROUP",
"Type": "String",
"Description": "Group"
},
"Tags": {
"Type": "String",
"Description": "Label configurations, such as the presence of a plurality of tags, separated by commas"
},
"AppName": {
"Type": "String",
"Description": "Configuration application name"
},
"Content": {
"Type": "String",
"Description": "The contents of the configuration"
},
"Type": {
"Default": "text",
"Type": "String",
"Description": "Provisioning content format, optional values as follows:\ntext, json, xml, yaml, text/html, properties",
"AllowedValues": [
"text",
"json",
"xml",
"yaml",
"text/html",
"properties"
]
},
"NamespaceId": {
"Type": "String",
"Description": "ID of namespace"
},
"Desc": {
"Type": "String",
"Description": "Configuration description explains"
}
},
"Outputs": {
"DataId": {
"Description": "The ID of the configuration",
"Value": {
"Fn::GetAtt": [
"Configuration",
"DataId"
]
}
},
"Group": {
"Description": "Group",
"Value": {
"Fn::GetAtt": [
"Configuration",
"Group"
]
}
},
"NamespaceId": {
"Description": "ID of namespace",
"Value": {
"Fn::GetAtt": [
"Configuration",
"NamespaceId"
]
}
}
}
}
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Resources:
Configuration:
Type: 'ALIYUN::ACM::Configuration'
Properties:
DataId:
Ref: DataId
Group:
Ref: Group
Tags:
Ref: Tags
AppName:
Ref: AppName
Content:
Ref: Content
Type:
Ref: Type
NamespaceId:
Ref: NamespaceId
Desc:
Ref: Desc
Parameters:
DataId:
Type: String
Description: >-
The ID of the configuration. Allowed characters are upper and lower case
letters, numbers, decimal points (.), Colons (:), asterisks (*),
underscores (_), and underscores (-). When the ID prefix is the following
value, ACM will automatically use KMS service to encrypt this
configuration:
The prefix is cipher-: the KMS service is called to encrypt and decrypt
the configuration. The size of the encrypted data does not exceed 4 KB,
and the maximum does not exceed 6 KB. Special symbols such as and (&)
will decrypt errors and are not recommended.
The prefix is cipher-kms-aes-128-: using KMS's envelope encryption and
decryption method, the configuration content can exceed 6 KB, up to 100
KB. The plain text data of the configuration content will not be
transmitted to the KMS system, which is more secure and recommended.
Group:
Default: DEFAULT_GROUP
Type: String
Description: Group
Tags:
Type: String
Description: >-
Label configurations, such as the presence of a plurality of tags,
separated by commas
AppName:
Type: String
Description: Configuration application name
Content:
Type: String
Description: The contents of the configuration
Type:
Default: text
Type: String
Description: |-
Provisioning content format, optional values as follows:
text, json, xml, yaml, text/html, properties
AllowedValues:
- text
- json
- xml
- yaml
- text/html
- properties
NamespaceId:
Type: String
Description: ID of namespace
Desc:
Type: String
Description: Configuration description explains
Outputs:
DataId:
Description: The ID of the configuration
Value:
'Fn::GetAtt':
- Configuration
- DataId
Group:
Description: Group
Value:
'Fn::GetAtt':
- Configuration
- Group
NamespaceId:
Description: ID of namespace
Value:
'Fn::GetAtt':
- Configuration
- NamespaceId