ALIYUN::ACM::Configuration is used to create a configuration.
Syntax
{
"Type": "ALIYUN::ACM::Configuration",
"Properties": {
"DataId": String,
"Group": String,
"AppName": String,
"Tags": String,
"Content": String,
"Type": String,
"NamespaceId": String,
"Desc": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
DataId | String | Yes | No | The ID of the configuration. | The ID can contain letters, digits, periods (.), colons (:), asterisks (*), underscores (_), and hyphens (-). When the ID is prefixed with one of the following values, Application Configuration Management (ACM) automatically encrypts or decrypts the configuration based on Key Management Service (KMS):
|
Group | String | No | No | The group to which the configuration belongs. | None. |
AppName | String | No | Yes | The name of the application to which the configuration belongs. | None. |
Tags | String | No | Yes | The tags that you want to add to the configuration. | Separate multiple tags with commas (,). |
Content | String | Yes | Yes | The content of the configuration. | None. |
Type | String | No | Yes | The content format of the configuration. | Valid values:
|
NamespaceId | String | Yes | No | The ID of the namespace. | None. |
Desc | String | No | Yes | The description of the configuration. | None. |
Return values
Fn::GetAtt
- DataId: the ID of the configuration.
- Group: the group to which the configuration belongs.
- NamespaceId: the ID of the namespace.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "NamespaceId": { "Type": "String", "Description": "ID of namespace" } }, "Resources": { "Configuration": { "Type": "ALIYUN::ACM::Configuration", "Properties": { "DataId": "test-data", "Content": "Test Content", "NamespaceId": { "Ref": "NamespaceId" } } } }, "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" ] } } } }