语法
{
  "Type": "ALIYUN::EDAS::DeployGroup",
  "Properties": {
    "GroupName": String,
    "AppId": String
  }
}
属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| GroupName | String | 是 | 否 | 分组名称。 | 长度为1~64个字符。 | 
| AppId | String | 是 | 否 | 应用ID。 | 无 | 
返回值
Fn::GetAtt
- GroupName:分组名称。 
- Id:分组ID。 
- AppId:应用ID。 
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Description: Test EDAS Cluster、App、DeployGroup
Parameters:
  AppId:
    Type: String
    Description: Application ID
    Default: '****'
  GroupName:
    Type: String
    Description: Group name, maximum length of 64.
    Default: mytest
Resources:
  DeployGroup:
    Type: ALIYUN::EDAS::DeployGroup
    Properties:
      GroupName:
        Ref: GroupName
      AppId:
        Ref: AppId
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
JSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test EDAS Cluster、App、DeployGroup",
  "Parameters": {
    "AppId": {
      "Type": "String",
      "Description": "Application ID",
      "Default": "****"
    },
    "GroupName": {
      "Type": "String",
      "Description": "Group name, maximum length of 64.",
      "Default": "mytest"
    }
  },
  "Resources": {
    "DeployGroup": {
      "Type": "ALIYUN::EDAS::DeployGroup",
      "Properties": {
        "GroupName": {
          "Ref": "GroupName"
        },
        "AppId": {
          "Ref": "AppId"
        }
      }
    }
  },
  "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"
        ]
      }
    }
  }
}