ALIYUN::PAI::UserConfig类型用于更新用户配置。
语法
{
"Type": "ALIYUN::PAI::UserConfig",
"Properties": {
"ConfigKey": String,
"CategoryName": String,
"Configs": List
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
CategoryName |
String |
是 |
否 |
表示配置类别的资源属性。 |
无 |
|
ConfigKey |
String |
是 |
否 |
表示配置键的资源属性。 |
无 |
|
Configs |
List |
否 |
否 |
表示配置列表的资源属性。 |
长度最大值为20。更多信息,请参考Configs属性。 |
Configs语法
"Configs": [
{
"ConfigValue": String
}
]
Configs属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
ConfigValue |
String |
否 |
否 |
表示配置值的资源属性。 |
无 |
返回值
Fn::GetAtt
-
ConfigKey:表示配置键的资源属性。
-
Configs:表示配置列表的资源属性。
-
CategoryName:表示配置类别的资源属性。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Configs:
Description:
en: Represents a resource property for the configuration list.
Required: false
Default: Null
Type: Json
MaxLength: 20
AssociationProperty: List[Parameters]
AssociationPropertyMetadata:
Parameters:
ConfigValue:
Type: String
Description:
en: Resource attributes that represent configuration values.
Default: Null
Required: false
CategoryName:
Type: String
Description:
en: Represents a resource attribute for a configuration category.
Required: true
ConfigKey:
Type: String
Description:
en: Represents the resource attribute of the configuration Key.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::PAI::UserConfig
Properties:
Configs:
Ref: Configs
CategoryName:
Ref: CategoryName
ConfigKey:
Ref: ConfigKey
Outputs:
Configs:
Value:
Fn::GetAtt:
- ExtensionResource
- Configs
Description: Represents a resource property for the configuration list.
CategoryName:
Value:
Fn::GetAtt:
- ExtensionResource
- CategoryName
Description: Represents a resource attribute for a configuration category.
ConfigKey:
Value:
Fn::GetAtt:
- ExtensionResource
- ConfigKey
Description: Represents the resource attribute of the configuration Key.
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Configs": {
"Description": {
"en": "Represents a resource property for the configuration list."
},
"Required": false,
"Default": null,
"Type": "Json",
"MaxLength": 20,
"AssociationProperty": "List[Parameters]",
"AssociationPropertyMetadata": {
"Parameters": {
"ConfigValue": {
"Type": "String",
"Description": {
"en": "Resource attributes that represent configuration values."
},
"Default": null,
"Required": false
}
}
}
},
"CategoryName": {
"Type": "String",
"Description": {
"en": "Represents a resource attribute for a configuration category."
},
"Required": true
},
"ConfigKey": {
"Type": "String",
"Description": {
"en": "Represents the resource attribute of the configuration Key."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::PAI::UserConfig",
"Properties": {
"Configs": {
"Ref": "Configs"
},
"CategoryName": {
"Ref": "CategoryName"
},
"ConfigKey": {
"Ref": "ConfigKey"
}
}
}
},
"Outputs": {
"Configs": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Configs"
]
},
"Description": "Represents a resource property for the configuration list."
},
"CategoryName": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CategoryName"
]
},
"Description": "Represents a resource attribute for a configuration category."
},
"ConfigKey": {
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ConfigKey"
]
},
"Description": "Represents the resource attribute of the configuration Key."
}
}
}该文章对您有帮助吗?