ALIYUN::EDAS::DeployGroup类型用于创建分组。
语法
{
"Type": "ALIYUN::EDAS::DeployGroup",
"Properties": {
"GroupName": String,
"AppId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
GroupName | String | 是 | 否 | 分组名称 | 长度为1~64个字符 |
AppId | String | 是 | 否 | 应用ID | 无 |
返回值
Fn::GetAtt
- GroupName:分组名称。
- Id:分组ID。
- AppId:应用ID。
示例
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"DeployGroup": {
"Type": "ALIYUN::EDAS::DeployGroup",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"AppId": {
"Ref": "AppId"
}
}
}
},
"Parameters": {
"GroupName": {
"MinLength": 1,
"Type": "String",
"Description": "Group name, maximum length of 64.",
"MaxLength": 64
},
"AppId": {
"Type": "String",
"Description": "Application ID"
}
},
"Outputs": {
"GroupName": {
"Description": "Deploy group name",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"GroupName"
]
}
},
"Id": {
"Description": "Deploy group ID",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"Id"
]
}
},
"AppId": {
"Description": "Application ID",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"AppId"
]
}
}
}
}
YAML
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"DeployGroup": {
"Type": "ALIYUN::EDAS::DeployGroup",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"AppId": {
"Ref": "AppId"
}
}
}
},
"Parameters": {
"GroupName": {
"MinLength": 1,
"Type": "String",
"Description": "Group name, maximum length of 64.",
"MaxLength": 64
},
"AppId": {
"Type": "String",
"Description": "Application ID"
}
},
"Outputs": {
"GroupName": {
"Description": "Deploy group name",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"GroupName"
]
}
},
"Id": {
"Description": "Deploy group ID",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"Id"
]
}
},
"AppId": {
"Description": "Application ID",
"Value": {
"Fn::GetAtt": [
"DeployGroup",
"AppId"
]
}
}
}
}