ALIYUN::SWAS::Instance is used to create a subscription simple application server.
Syntax
{
"Type": "ALIYUN::SWAS::Instance",
"Properties": {
"AutoRenewPeriod": Integer,
"PlanId": String,
"AutoRenew": Boolean,
"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:
|
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
PublicIpAddress: the public IP address of the simple application server.
InnerIpAddress: the private IP address of the simple application server.
InstanceId: the ID of the simple application server.