ALIYUN::SWAS::Instances is used to create subscription simple application servers.
Syntax
{
"Type": "ALIYUN::SWAS::Instances",
"Properties": {
"AutoRenewPeriod": Integer,
"PlanId": String,
"AutoRenew": Boolean,
"Amount": Integer,
"ImageId": String,
"Period": Integer,
"DataDiskSize": Integer
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
AutoRenewPeriod | Integer | No | No | The auto-renewal period of the simple application server. | Unit: month. Valid values: 1, 3, 6, 12, 24, and 36. This property must be specified only when AutoRenew is set to true. |
PlanId | String | Yes | No | The plan ID. | You can call the ListPlans operation to query the information about all plans in a specified region. |
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal. | Valid values:
|
Amount | Integer | No | No | The number of simple application servers that you want to create. | Valid values: 1 to 20. Default value: 1. |
ImageId | String | Yes | No | The image ID. | You can call the ListImages operation to query the IDs of available images in a specified region. |
Period | Integer | Yes | No | The subscription duration of the simple application server. | Unit: month. Valid values: 1, 3, 6, 12, 24, and 36. |
DataDiskSize | Integer | No | No | The size of the data disk that you want to attach to the simple application server. | Unit: GB. Valid values: 0 to 16380. The value must be an integral multiple of 20.
Default value: 0. |
Return values
Fn::GetAtt
InnerIpAddresses: the public IP addresses of the simple application servers.
PublicIpAddresses: the private IP addresses of the simple application servers.
InstanceIds: the IDs of the simple application servers.