日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ALIYUN::ECS::AutoProvisioningGroup

ALIYUN::ECS::AutoProvisioningGroup類型用于創建彈性供應組。

語法

{
  "Type": "ALIYUN::ECS::AutoProvisioningGroup",
  "Properties": {
    "SpotInstancePoolsToUseCount": Integer,
    "AutoProvisioningGroupName": String,
    "ValidUntil": String,
    "Description": String,
    "PayAsYouGoAllocationStrategy": String,
    "MaxSpotPrice": Number,
    "LaunchTemplateId": String,
    "DefaultTargetCapacityType": String,
    "SpotInstanceInterruptionBehavior": String,
    "SpotTargetCapacity": String,
    "SpotAllocationStrategy": String,
    "PayAsYouGoTargetCapacity": String,
    "TotalTargetCapacity": String,
    "AutoProvisioningGroupType": String,
    "LaunchTemplateVersion": String,
    "ValidFrom": String,
    "ExcessCapacityTerminationPolicy": String,
    "TerminateInstances": Boolean,
    "TerminateInstancesWithExpiration": Boolean,
    "CheckExecutionStatus": Boolean,
    "LaunchConfiguration": Map
    "LaunchTemplateConfig": List
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

SpotInstancePoolsToUseCount

Integer

彈性供應組選擇價格最低的實例規格創建實例的數量。

取值:小于啟動模板的擴展設置數量。

當SpotAllocationStrategy取值為lowest-price時該參數生效。

AutoProvisioningGroupName

String

彈性供應組的名稱。

長度為2~128個字符,必須以英文字母或漢字開頭,不能以http://https://開頭??砂⑽淖帜?、漢字、數字、半角冒號(:)、下劃線(_)和短劃線(-)。

ValidUntil

String

彈性供應組的到期時間,和ValidFrom共同確定有效時段。

按照ISO8601標準表示,并使用UTC時間,格式為yyyy-MM-ddTHH:mm:ssZ

Description

String

彈性供應組的描述信息。

PayAsYouGoAllocationStrategy

String

創建按量付費實例的策略。

取值:

  • lowest-price(默認值):成本優化策略。選擇價格最低的實例規格。

  • prioritized:優先級策略。按照LaunchTemplateConfig設定的優先級創建實例。

MaxSpotPrice

Number

彈性供應組內搶占式實例的最高價格。

同時設置MaxSpotPrice和MaxPrice時,以最低值為準。關于MaxPrice參數的更多信息,請參見LaunchTemplateConfig 屬性

LaunchTemplateId

String

彈性供應組關聯的實例啟動模板的ID。

您可以調用DescribeLaunchTemplates查詢可用的實例啟動模板。

同時指定LaunchTemplateId和LaunchConfiguration時,優先使用啟動模板。

DefaultTargetCapacityType

String

PayAsYouGoTargetCapacity和SpotTargetCapacity之和小于TotalTargetCapacity時,指定差額容量的計費方式。

取值:

  • PayAsYouGo:按量付費實例。

  • Spot(默認值):搶占式實例。

SpotInstanceInterruptionBehavior

String

停止了超額搶占式實例后的下一步動作。

取值:

  • stop(默認值):保持停止狀態。

  • terminate:釋放。

SpotTargetCapacity

String

彈性供應組內,搶占式實例的目標容量。

取值:小于TotalTargetCapacity參數取值。

SpotAllocationStrategy

String

創建搶占式實例的策略。

取值:

  • lowest-price(默認值):成本優化策略。選擇價格最低的實例規格。

  • diversified:均衡可用區分布策略。在擴展啟動模板指定的可用區內創建實例,均勻分布到各可用區。

PayAsYouGoTargetCapacity

String

彈性供應組內,按量付費實例的目標容量。

取值:小于TotalTargetCapacity參數取值。

TotalTargetCapacity

String

彈性供應組的目標總容量。

取值(正整數):總容量必須大于等于PayAsYouGoTargetCapacity(指定的按量付費實例目標容量)和SpotTargetCapacity(指定的搶占式實例目標容量)取值之和。

AutoProvisioningGroupType

String

彈性供應組的交付類型。

取值:

  • request:一次性。供應組僅在啟動時交付實例集群,調度失敗后不再重試。

  • maintain(默認值):持續供應。供應組在啟動時嘗試交付實例集群,并監控實時容量,未達到目標容量則嘗試繼續創建ECS實例。

LaunchTemplateVersion

String

彈性供應組關聯實例啟動模板的版本。

您可以調用DescribeLaunchTemplateVersions查詢可用的實例啟動模板版本。

ValidFrom

String

彈性供應組的啟動時間,和ValidUntil共同確定有效時段。

按照ISO8601標準表示,并使用UTC時間,格式為yyyy-MM-ddTHH:mm:ssZ。

ExcessCapacityTerminationPolicy

String

彈性供應組超過目標總容量時,是否停止超額的搶占式實例。

取值:

  • no-termination(默認值):繼續運行。

  • termination:停止。停止后的下一步動作由SpotInstanceInterruptionBehavior指定。

TerminateInstances

Boolean

刪除彈性供應組時,是否釋放組內實例。

取值:

  • true:釋放。

  • false(默認值):不釋放。

TerminateInstancesWithExpiration

Boolean

彈性供應組到期時,是否停止搶占式實例。

取值:

  • true:停止。停止后的下一步動作由SpotInstanceInterruptionBehavior指定。

  • false(默認值):繼續運行。

CheckExecutionStatus

Boolean

是否檢查執行狀態。

取值:

  • true:檢查。

  • false:不檢查。

LaunchConfiguration

Map

啟動配置信息。

同時指定LaunchTemplateId和LaunchConfiguration時,優先使用啟動模板。

更多信息,請參見LaunchConfiguration屬性

LaunchTemplateConfig

List

啟動模板的擴展設置。

最多支持20個擴展設置。

更多信息,請參見LaunchTemplateConfig 屬性

LaunchTemplateConfig 語法

"LaunchTemplateConfig": [
  {
    "Priority": Integer,
    "WeightedCapacity": Integer,
    "VSwitchId": String,
    "InstanceType": String,
    "MaxPrice": Integer
  }
]

LaunchTemplateConfig 屬性

屬性名稱

類型

必須

允許更新

描述

約束

Priority

Integer

擴展啟動模板中實例規格的優先級。

取值:大于等于0。

取值為0時優先級最高。

WeightedCapacity

Integer

擴展啟動模板中,實例規格的權重。

取值:大于0的整數。

取值越高,單臺實例滿足計算力需求的能力越大,所需的實例數量越小。

您可以根據指定實例規格的計算力和集群單節點最低計算力得出權重值。

例如:單節點最低計算力為8vCPU、60GiB,則8vCPU、60GiB的實例規格權重可以設置為1;16vCPU、120GiB的實例規格權重可以設置為2。

VSwitchId

String

擴展啟動模板中,ECS實例加入的交換機的ID。

擴展模板中啟動的ECS實例可用區由交換機決定。

InstanceType

String

擴展啟動模板對應的實例規格。

MaxPrice

Integer

擴展啟動模板中,搶占式實例的價格上限。

LaunchConfiguration語法

"LaunchConfiguration": {
  "InstanceDescription": String,
  "SystemDiskName": String,
  "RamRoleName": String,
  "SystemDiskCategory": String,
  "SecurityGroupId": String,
  "CreditSpecification": String,
  "HostName": String,
  "SystemDiskDescription": String,
  "SystemDiskPerformanceLevel": String,
  "DataDisk": List,
  "InternetMaxBandwidthOut": Integer,
  "IoOptimized": String,
  "Tag": List,
  "ImageId": String,
  "ResourceGroupId": String,
  "KeyPairName": String,
  "PasswordInherit": Boolean,
  "UserData": String,
  "InstanceName": String,
  "SystemDiskSize": Integer,
  "InternetChargeType": String,
  "SecurityEnhancementStrategy": String
}

LaunchConfiguration屬性

屬性名稱

類型

必須

允許更新

描述

約束

InstanceDescription

String

實例描述。

長度為2~256個字符,不能以http://https://開頭。

SystemDiskName

String

系統盤名稱。

長度為2~128個字符。必須以英文字母或漢字開頭,不能以http://https://開頭??梢园⑽淖帜浮h字、數字、半角句號(.)、半角冒號(:)、下劃線(_)和短劃線(-)。

RamRoleName

String

實例RAM角色名稱。

SystemDiskCategory

String

系統盤類型。

取值:

  • cloud_efficiency:高效云盤。

  • cloud_ssd:SSD云盤。

  • cloud_essd:ESSD云盤。

  • cloud:普通云盤。

已停售的實例規格且非I/O優化實例默認值為cloud,否則默認值為cloud_efficiency。

SecurityGroupId

String

實例所屬的安全組ID。

CreditSpecification

String

修改突發性能實例的運行模式。

取值:

  • Standard:標準模式。

  • Unlimited:無性能約束模式。

HostName

String

實例主機名稱。

半角句號(.)和短劃線(-)不能作為首尾字符,更不能連續使用。取值要求如下:

  • Windows實例:長度為2~15個字符,不支持半角句號(.),不能全是數字??砂⑽淖帜浮底趾投虅澗€(-)。

  • 其他類型實例(Linux等):長度為2~64個字符,支持多個半角句號(.),點之間為一段,每段可包含英文字母、數字和短劃線(-)。

SystemDiskDescription

String

系統盤的描述。

長度為2~256個字符,不能以http://https://開頭。

SystemDiskPerformanceLevel

String

創建ESSD云盤作為系統盤使用時,設置云盤的性能等級。

取值:

  • PL0(默認值):單盤最高隨機讀寫IOPS 1萬。

  • PL1:單盤最高隨機讀寫IOPS 5萬。

  • PL2:單盤最高隨機讀寫IOPS 10萬。

  • PL3:單盤最高隨機讀寫IOPS 100萬。

DataDisk

List

數據盤。

最多支持16塊數據盤。

更多信息,請參見DataDisk屬性

InternetMaxBandwidthOut

Integer

公網出帶寬最大值。

取值范圍:0~100。

默認值:0。

單位為Mbps。

IoOptimized

String

是否為I/O優化實例。

取值:

  • none:不是I/O優化實例。

  • optimized:是I/O優化實例。

Tag

List

實例的標簽。

最多20個標簽。

更多信息,請參見Tag屬性。

ImageId

String

鏡像ID。

ResourceGroupId

String

實例所在的企業資源組ID。

KeyPairName

String

密鑰對名稱。

Windows實例,忽略該參數。默認為空。

Linux實例的密碼登錄方式會被初始化成禁止。

PasswordInherit

Boolean

是否使用鏡像預設的密碼。

取值:

  • true:使用。

  • false:不使用。

UserData

String

實例自定義數據。

需要以Base64方式編碼,原始數據最多為16 KB。

InstanceName

String

實例名稱。

默認值為實例的InstanceId。

長度為2~128個字符,必須以英文字母或漢字開頭,不能以http://https://開頭。可包含英文字母、漢字、數字、半角冒號(:)、下劃線(_)、半角句號(.)和短劃線(-)。

SystemDiskSize

Integer

系統盤大小。

取值范圍:20~500。必須大于等于鏡像大小。

默認值:40或鏡像大小。

單位:GiB。

InternetChargeType

String

網絡計費類型。

取值:

  • PayByBandwidth:按固定帶寬計費。

  • PayByTraffic:按使用流量計費。

說明

按使用流量計費模式下的出入帶寬峰值都是帶寬上限,不作為業務承諾指標。當出現資源爭搶時,帶寬峰值可能會受到限制。如果您的業務需要有帶寬的保障,請使用按固定帶寬計費模式。

SecurityEnhancementStrategy

String

是否開啟安全加固。

取值:

  • Active:啟用安全加固,只對公共鏡像生效。

  • Deactive:不啟用安全加固,對所有鏡像類型生效。

DataDisk語法

"DataDisk": [
  {
    "DiskName": String,
    "Size": Integer,
    "Category": String,
    "Description": String,
    "DeleteWithInstance": Boolean,
    "SnapshotId": String,
    "Encrypted": Boolean,
    "KmsKeyId": String,
    "InternetChargeType": String,
    "PerformanceLevel": String
  }
]

DataDisk屬性

屬性名稱

類型

必須

允許更新

描述

約束

DiskName

String

數據盤名稱。

長度為2~128個字符。必須以英文字母或漢字開頭,不能以http://https://開頭??砂⑽淖帜?、漢字、數字、半角句號(.)、半角冒號(:)、下劃線(_)和短劃線(-)。

Size

Integer

數據盤的容量大小。

取值范圍:

  • cloud_efficiency:20~32,768。

  • cloud_ssd:20~32,768。

  • cloud_essd:20~32,768。

  • cloud:5~2000。

單位:GiB。

Category

String

數據盤類型。

取值:

  • cloud_efficiency:高效云盤。

  • cloud_ssd:SSD云盤。

  • cloud_essd:ESSD云盤。

  • cloud:普通云盤。

對于I/O優化實例,默認值為cloud_efficiency。對于非I/O優化實例,默認值為cloud。

Description

String

數據盤的描述。

長度為2~256個字符,不能以http://https://開頭。

DeleteWithInstance

Boolean

數據盤是否隨實例釋放。

取值:

  • true(默認值):數據盤隨實例釋放。

  • false:數據盤不隨實例釋放。

SnapshotId

String

創建數據盤使用的快照。

指定該參數后,參數Size會被忽略,實際創建的云盤大小為指定的快照的大小。

說明

不能使用2013年07月15日之前創建的快照,請求會報錯被拒絕。

Encrypted

Boolean

數據盤是否加密。

取值:

  • true:加密。

  • false(默認值):不加密。

KmsKeyId

String

數據盤對應的KMS密鑰ID。

InternetChargeType

String

網絡計費類型。

取值:

  • PayByBandwidth:按固定帶寬計費。

  • PayByTraffic:按使用流量計費。

說明

按使用流量計費模式下的出入帶寬峰值都是帶寬上限,不作為業務承諾指標。當出現資源爭搶時,帶寬峰值可能會受到限制。如果您的業務需要有帶寬的保障,請使用按固定帶寬計費模式。

PerformanceLevel

String

創建ESSD云盤作為數據盤使用時,設置云盤的性能等級。

取值:

  • PL0(默認):單盤最高隨機讀寫IOPS 1萬。

  • PL1:單盤最高隨機讀寫IOPS 5萬。

  • PL2:單盤最高隨機讀寫IOPS 10萬。

  • PL3:單盤最高隨機讀寫IOPS 100萬。

Tag語法

"Tag": [
  {
    "Key": String,
    "Value": String
  }
]  

Tag屬性

屬性名稱

類型

必須

允許更新

描述

約束

Key

String

標簽鍵。

長度為1~128個字符,不能以aliyunacs:開頭,不能包含http://https:// 。

Value

String

標簽值。

長度為0~128個字符,不能以aliyunacs:開頭,不能包含http://https://

返回值

Fn::GetAtt

  • AutoProvisioningGroupId:彈性供應組的ID。

  • AutoProvisioningGroupName:彈性供應組的名稱。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Description: Test ECS AutoProvisioningGroup
Parameters:
  LaunchTemplateId:
    Type: String
    Description: |-
      The ID of the instance launch template associated with the auto provisioning group.
      You can call the DescribeLaunchTemplates operation to query available instance launch templates.
      An auto provisioning group can be associated with only one instance launch template.
      But you can configure multiple extended configurations for the launch template through
      the LaunchTemplateConfig parameter.
  PayAsYouGoTargetCapacity:
    Type: String
    Description: The target capacity of pay-as-you-go instances in the auto provisioning group.
    Default: '1'
  TotalTargetCapacity:
    Type: String
    Description: |-
      The total target capacity of the auto provisioning group. The target capacity consists
      of the following three parts:
      The target capacity of pay-as-you-go instances specified by the PayAsYouGoTargetCapacity parameter
      The target capacity of preemptible instances specified by the SpotTargetCapacity parameter
      The supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity
    Default: '2'
  SpotTargetCapacity:
    Type: String
    Description: The target capacity of preemptible instances in the auto provisioning group.
    Default: '1'
  AutoProvisioningGroupName:
    Type: String
    Description: |-
      The name of the auto provisioning group to be created. It must be 2 to 128 characters
      in length. It must start with a letter but cannot start with http:// or https://.
      It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
    Default: mytest
  SpotAllocationStrategy:
    Type: String
    Description: |-
      The scale-out policy for preemptible instances. Valid values:
      lowest-price: The cost optimization policy the auto provisioning group follows to select instance
      types of the lowest cost to create instances.
      diversified: The distribution balancing policy the auto provisioning group follows to evenly create
      instances across zones specified in multiple extended template configurations.
      Default value: lowest-price
    AllowedValues:
      - diversified
      - lowest-price
    Default: lowest-price
  PayAsYouGoAllocationStrategy:
    Type: String
    Description: |-
      The scale-out policy for pay-as-you-go instances. Valid values:
      lowest-price: The cost optimization policy the auto provisioning group follows to select instance
      types of the lowest cost to create instances.
      prioritized: The priority-based policy the auto provisioning group follows to create instances.
      The priority of an instance type is specified by the LaunchTemplateConfig.N.Priority parameter.
      Default value: lowest-price
    AllowedValues:
      - lowest-price
      - prioritized
    Default: lowest-price
  MaxSpotPrice:
    Type: Number
    Description: |-
      The global maximum price for preemptible instances in the auto provisioning group.
      If both the MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice parameters are specified, the maximum price is the lower value of the two.
    Default: 5
  DefaultTargetCapacityType:
    Type: String
    Description: |-
      The type of supplemental instances. When the total value of PayAsYouGoTargetCapacity and SpotTargetCapacity is smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet
      the capacity requirements. Valid values:
      PayAsYouGo: Pay-as-you-go instances.
      Spot: Preemptible instances.
      Default value: Spot
    AllowedValues:
      - PayAsYouGo
      - Spot
    Default: PayAsYouGo
  AutoProvisioningGroupType:
    Type: String
    Description: |-
      The type of the auto provisioning group. Valid values:
      request: One-time delivery. After the auto provisioning group is started, it only attempts
      to create an instance cluster once. If the cluster fails to be created, the group
      does not try again.
      maintain: The continuous delivery and maintain capacity type. After the auto provisioning group
      is started, it continuously attempts to create and maintain the instance cluster.
      The auto provisioning group compares the real-time and target capacity of the cluster.
      If the cluster does not meet the target capacity, the group will create instances
      until the cluster meets the target capacity.
      Default value: maintain
    AllowedValues:
      - maintain
      - request
    Default: maintain
  ExcessCapacityTerminationPolicy:
    Type: String
    Description: |-
      The shutdown policy for excess preemptible instances followed when the capacity of
      the auto provisioning group exceeds the target capacity. Valid values:
      no-termination: Excess preemptible instances are not shut down.
      termination: Excess preemptible instances are to be shut down. The action to be performed on these
      shutdown instances is specified by the SpotInstanceInterruptionBehavior parameter.
      Default value: no-termination
    AllowedValues:
      - no-termination
      - termination
    Default: termination
  TerminateInstances:
    Type: Boolean
    Description: |-
      Specifies whether to release instances of the auto provisioning group. Valid values:
      true
      false
      Default: false
    AllowedValues:
      - true
      - false
    Default: true
  TerminateInstancesWithExpiration:
    Type: Boolean
    Description: |-
      The shutdown policy for preemptible instances when the auto provisioning group expires.
      Valid values:
      true: shuts down preemptible instances. The action to be performed on these shutdown instances
      is specified by the SpotInstanceInterruptionBehavior parameter.
      false: does not shut down preemptible instances.
      Default: false
    AllowedValues:
      - true
      - false
    Default: true
Resources:
  AutoProvisioningGroup:
    Type: ALIYUN::ECS::AutoProvisioningGroup
    Properties:
      LaunchTemplateId:
        Ref: LaunchTemplateId
      LaunchTemplateVersion: '1'
      TotalTargetCapacity:
        Ref: TotalTargetCapacity
      PayAsYouGoTargetCapacity:
        Ref: PayAsYouGoTargetCapacity
      SpotTargetCapacity:
        Ref: SpotTargetCapacity
      AutoProvisioningGroupName:
        Ref: AutoProvisioningGroupName
      SpotAllocationStrategy:
        Ref: SpotAllocationStrategy
      Description: Test AutoProvisioningGroup
      PayAsYouGoAllocationStrategy:
        Ref: PayAsYouGoAllocationStrategy
      MaxSpotPrice:
        Ref: MaxSpotPrice
      DefaultTargetCapacityType:
        Ref: DefaultTargetCapacityType
      AutoProvisioningGroupType:
        Ref: AutoProvisioningGroupType
      ExcessCapacityTerminationPolicy:
        Ref: ExcessCapacityTerminationPolicy
      TerminateInstances:
        Ref: TerminateInstances
      TerminateInstancesWithExpiration:
        Ref: TerminateInstancesWithExpiration
Outputs:
  AutoProvisioningGroupId:
    Description: The ID of the auto provisioning group.
    Value:
      Fn::GetAtt:
        - AutoProvisioningGroup
        - AutoProvisioningGroupId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": "Test ECS AutoProvisioningGroup",
  "Parameters": {
    "LaunchTemplateId": {
      "Type": "String",
      "Description": "The ID of the instance launch template associated with the auto provisioning group.\nYou can call the DescribeLaunchTemplates operation to query available instance launch templates.\nAn auto provisioning group can be associated with only one instance launch template.\nBut you can configure multiple extended configurations for the launch template through\nthe LaunchTemplateConfig parameter."
    },
    "PayAsYouGoTargetCapacity": {
      "Type": "String",
      "Description": "The target capacity of pay-as-you-go instances in the auto provisioning group.",
      "Default": "1"
    },
    "TotalTargetCapacity": {
      "Type": "String",
      "Description": "The total target capacity of the auto provisioning group. The target capacity consists\nof the following three parts:\nThe target capacity of pay-as-you-go instances specified by the PayAsYouGoTargetCapacity parameter\nThe target capacity of preemptible instances specified by the SpotTargetCapacity parameter\nThe supplemental capacity besides PayAsYouGoTargetCapacity and SpotTargetCapacity",
      "Default": "2"
    },
    "SpotTargetCapacity": {
      "Type": "String",
      "Description": "The target capacity of preemptible instances in the auto provisioning group.",
      "Default": "1"
    },
    "AutoProvisioningGroupName": {
      "Type": "String",
      "Description": "The name of the auto provisioning group to be created. It must be 2 to 128 characters\nin length. It must start with a letter but cannot start with http:// or https://.\nIt can contain letters, digits, colons (:), underscores (_), and hyphens (-).",
      "Default": "mytest"
    },
    "SpotAllocationStrategy": {
      "Type": "String",
      "Description": "The scale-out policy for preemptible instances. Valid values:\nlowest-price: The cost optimization policy the auto provisioning group follows to select instance\ntypes of the lowest cost to create instances.\ndiversified: The distribution balancing policy the auto provisioning group follows to evenly create\ninstances across zones specified in multiple extended template configurations.\nDefault value: lowest-price",
      "AllowedValues": [
        "diversified",
        "lowest-price"
      ],
      "Default": "lowest-price"
    },
    "PayAsYouGoAllocationStrategy": {
      "Type": "String",
      "Description": "The scale-out policy for pay-as-you-go instances. Valid values:\nlowest-price: The cost optimization policy the auto provisioning group follows to select instance\ntypes of the lowest cost to create instances.\nprioritized: The priority-based policy the auto provisioning group follows to create instances.\nThe priority of an instance type is specified by the LaunchTemplateConfig.N.Priority parameter.\nDefault value: lowest-price",
      "AllowedValues": [
        "lowest-price",
        "prioritized"
      ],
      "Default": "lowest-price"
    },
    "MaxSpotPrice": {
      "Type": "Number",
      "Description": "The global maximum price for preemptible instances in the auto provisioning group.\nIf both the MaxSpotPrice and LaunchTemplateConfig.N.MaxPrice parameters are specified, the maximum price is the lower value of the two.",
      "Default": 5
    },
    "DefaultTargetCapacityType": {
      "Type": "String",
      "Description": "The type of supplemental instances. When the total value of PayAsYouGoTargetCapacity and SpotTargetCapacity is smaller than the value of TotalTargetCapacity, the auto provisioning group will create instances of the specified type to meet\nthe capacity requirements. Valid values:\nPayAsYouGo: Pay-as-you-go instances.\nSpot: Preemptible instances.\nDefault value: Spot",
      "AllowedValues": [
        "PayAsYouGo",
        "Spot"
      ],
      "Default": "PayAsYouGo"
    },
    "AutoProvisioningGroupType": {
      "Type": "String",
      "Description": "The type of the auto provisioning group. Valid values:\nrequest: One-time delivery. After the auto provisioning group is started, it only attempts\nto create an instance cluster once. If the cluster fails to be created, the group\ndoes not try again.\nmaintain: The continuous delivery and maintain capacity type. After the auto provisioning group\nis started, it continuously attempts to create and maintain the instance cluster.\nThe auto provisioning group compares the real-time and target capacity of the cluster.\nIf the cluster does not meet the target capacity, the group will create instances\nuntil the cluster meets the target capacity.\nDefault value: maintain",
      "AllowedValues": [
        "maintain",
        "request"
      ],
      "Default": "maintain"
    },
    "ExcessCapacityTerminationPolicy": {
      "Type": "String",
      "Description": "The shutdown policy for excess preemptible instances followed when the capacity of\nthe auto provisioning group exceeds the target capacity. Valid values:\nno-termination: Excess preemptible instances are not shut down.\ntermination: Excess preemptible instances are to be shut down. The action to be performed on these\nshutdown instances is specified by the SpotInstanceInterruptionBehavior parameter.\nDefault value: no-termination",
      "AllowedValues": [
        "no-termination",
        "termination"
      ],
      "Default": "termination"
    },
    "TerminateInstances": {
      "Type": "Boolean",
      "Description": "Specifies whether to release instances of the auto provisioning group. Valid values:\ntrue\nfalse\nDefault: false",
      "AllowedValues": [
        true,
        false
      ],
      "Default": true
    },
    "TerminateInstancesWithExpiration": {
      "Type": "Boolean",
      "Description": "The shutdown policy for preemptible instances when the auto provisioning group expires.\nValid values:\ntrue: shuts down preemptible instances. The action to be performed on these shutdown instances\nis specified by the SpotInstanceInterruptionBehavior parameter.\nfalse: does not shut down preemptible instances.\nDefault: false",
      "AllowedValues": [
        true,
        false
      ],
      "Default": true
    }
  },
  "Resources": {
    "AutoProvisioningGroup": {
      "Type": "ALIYUN::ECS::AutoProvisioningGroup",
      "Properties": {
        "LaunchTemplateId": {
          "Ref": "LaunchTemplateId"
        },
        "LaunchTemplateVersion": "1",
        "TotalTargetCapacity": {
          "Ref": "TotalTargetCapacity"
        },
        "PayAsYouGoTargetCapacity": {
          "Ref": "PayAsYouGoTargetCapacity"
        },
        "SpotTargetCapacity": {
          "Ref": "SpotTargetCapacity"
        },
        "AutoProvisioningGroupName": {
          "Ref": "AutoProvisioningGroupName"
        },
        "SpotAllocationStrategy": {
          "Ref": "SpotAllocationStrategy"
        },
        "Description": "Test AutoProvisioningGroup",
        "PayAsYouGoAllocationStrategy": {
          "Ref": "PayAsYouGoAllocationStrategy"
        },
        "MaxSpotPrice": {
          "Ref": "MaxSpotPrice"
        },
        "DefaultTargetCapacityType": {
          "Ref": "DefaultTargetCapacityType"
        },
        "AutoProvisioningGroupType": {
          "Ref": "AutoProvisioningGroupType"
        },
        "ExcessCapacityTerminationPolicy": {
          "Ref": "ExcessCapacityTerminationPolicy"
        },
        "TerminateInstances": {
          "Ref": "TerminateInstances"
        },
        "TerminateInstancesWithExpiration": {
          "Ref": "TerminateInstancesWithExpiration"
        }
      }
    }
  },
  "Outputs": {
    "AutoProvisioningGroupId": {
      "Description": "The ID of the auto provisioning group.",
      "Value": {
        "Fn::GetAtt": [
          "AutoProvisioningGroup",
          "AutoProvisioningGroupId"
        ]
      }
    }
  }
}