ALIYUN::OOS::ApplicationGroupDeployment

ALIYUN::OOS::ApplicationGroupDeployment类型用于部署应用分组。

语法

{
  "Type": "ALIYUN::OOS::ApplicationGroupDeployment",
  "Properties": {
    "ApplicationName": String,
    "Name": String,
    "DeployParameters": String,
    "RevisionId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ApplicationName

String

应用名称。

Name

String

应用分组名称。

DeployParameters

String

应用分组部署配置信息。

示例:

{ "TemplateURL": "https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json", "Parameters": { "ZoneId": "cn-hangzhou-k", "ProjectName": "test", "SystemDiskSize": 40, "InstanceChargeType": "PostPaid", "SecurityGroupId": "sg-bp1a4374akk63jl8tddy", "VSwitchId": "vsw-bp1fcvc3zn0jrag86rrlm", "SystemDiskCategory": "cloud_essd", "InstancePassword": "******", "InternetChargeType": "PayByTraffic", "InstanceCount": 1, "InternetMaxBandwidthOut": 0, "VpcId": "vpc-bp1i99boyas8i8m9t3skp", "EcsImageId": "centos_8_5_x64_20G_alibase_20211228.vhd", "DataDiskSize": 100, "EcsInstanceType": "ecs.s6-c1m4.small", "DataDiskCategory": "cloud_efficiency", "EnvironmentCommandId": "c-hz028fc3g031gcg" }

RevisionId

String

部署物 ID。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ApplicationName:
    Type: String
    Description:
      en: The name of the application.
    Required: true
    MinLength: 1
    MaxLength: 100
  RevisionId:
    Type: String
    Description:
      en: The ID of the revision.
    Required: false
  Name:
    Type: String
    Description:
      en: The name of the application group.
    Required: true
    MinLength: 1
    MaxLength: 100
Resources:
  ApplicationGroupDeployment:
    Type: ALIYUN::OOS::ApplicationGroupDeployment
    Properties:
      ApplicationName:
        Ref: ApplicationName
      RevisionId:
        Ref: RevisionId
      Name:
        Ref: Name
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Description": {
        "en": "The name of the application."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    },
    "RevisionId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the revision."
      },
      "Required": false
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the application group."
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    }
  },
  "Resources": {
    "ApplicationGroupDeployment": {
      "Type": "ALIYUN::OOS::ApplicationGroupDeployment",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "RevisionId": {
          "Ref": "RevisionId"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  }
}