ALIYUN::GA::BasicAccelerator is used to create a basic Global Accelerator (GA) instance.
Syntax
{
"Type": "ALIYUN::GA::BasicAccelerator",
"Properties": {
"AutoUseCoupon": String,
"AutoRenew": Boolean,
"AutoPay": Boolean,
"AutoRenewDuration": Integer,
"BandwidthBillingType": String,
"ChargeType": String,
"Duration": Integer,
"PromotionOptionNo": String,
"PricingCycle": String,
"ResourceGroupId": String,
"Tags": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
AutoUseCoupon | String | No | No | Specifies whether to automatically pay bills by using coupons. | Valid values:
Note This property takes effect only when AutoPay is set to true. |
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal. | Valid values:
|
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment. | Valid values:
|
AutoRenewDuration | Integer | No | No | The auto-renewal duration. | Unit: month. Valid values: 1 to 12. Default value: 1. Note This property takes effect only when AutoRenew is set to true. |
BandwidthBillingType | String | No | No | The bandwidth billing method. | Valid values:
|
ChargeType | String | No | No | The billing method. | Valid values:
|
Duration | Integer | No | No | The subscription duration. |
|
PromotionOptionNo | String | No | No | The coupon code. | None. |
PricingCycle | String | No | No | The unit of the billing cycle. | Valid values:
|
ResourceGroupId | String | No | No | The ID of the resource group to which the basic GA instance belongs. | None. |
Tags | List | No | No | The tags of the basic GA instance. | For more information, see Tags properties. |
PromotionOptionNo | String | No | No | The coupon code. | Note
|
Tags syntax
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | No | No | The tag key of the basic GA instance. | The tag key cannot be an empty string. The tag key can be up to 64 characters in length, and cannot contain You can specify up to 20 tag keys. |
Value | String | No | No | The tag value of the basic GA instance. | The tag value cannot be an empty string. The tag value can be up to 128 characters in length, and cannot contain You can specify up to 20 tag values. |
Return values
Fn::GetAtt
AcceleratorId: the ID of the basic GA instance.
Examples
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BandwidthBillingType:
Type: String
Description:
en: |-
The bandwidth billing method. Valid values:
BandwidthPackage: billed based on bandwidth plans.
CDT: billed based on data transfer. The bills are managed by using Cloud Data Transfer (CDT).
CDT95: billed based on the 95th percentile bandwidth. The bills are managed by using Cloud Data Transfer (CDT). This bandwidth billing method is not available by default. Contact your Alibaba Cloud account manager for more information.
AllowedValues:
- BandwidthPackage
- CDT
- CDT95
Required: false
Default: CDT
ChargeType:
Type: String
Description:
en: |-
The billing method. Valid values:
PREPAY (default)POSTPAY
AllowedValues:
- POSTPAY
- PREPAY
Required: false
Default: POSTPAY
Resources:
ExtensionResource:
Type: ALIYUN::GA::BasicAccelerator
Properties:
BandwidthBillingType:
Ref: BandwidthBillingType
ChargeType:
Ref: ChargeType
Outputs:
AcceleratorId:
Description: The ID of the accelerated IP address.
Value:
Fn::GetAtt:
- ExtensionResource
- AcceleratorId
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BandwidthBillingType": {
"Type": "String",
"Description": {
"en": "The bandwidth billing method. Valid values:\nBandwidthPackage: billed based on bandwidth plans.\nCDT: billed based on data transfer. The bills are managed by using Cloud Data Transfer (CDT).\nCDT95: billed based on the 95th percentile bandwidth. The bills are managed by using Cloud Data Transfer (CDT). This bandwidth billing method is not available by default. Contact your Alibaba Cloud account manager for more information."
},
"AllowedValues": [
"BandwidthPackage",
"CDT",
"CDT95"
],
"Required": false,
"Default": "CDT"
},
"ChargeType": {
"Type": "String",
"Description": {
"en": "The billing method. Valid values:\nPREPAY (default)POSTPAY"
},
"AllowedValues": [
"POSTPAY",
"PREPAY"
],
"Required": false,
"Default": "POSTPAY"
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::GA::BasicAccelerator",
"Properties": {
"BandwidthBillingType": {
"Ref": "BandwidthBillingType"
},
"ChargeType": {
"Ref": "ChargeType"
}
}
}
},
"Outputs": {
"AcceleratorId": {
"Description": "The ID of the accelerated IP address.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AcceleratorId"
]
}
}
}
}