ALIYUN::GA::BasicAccelerator类型用于创建一个基础型全球加速实例。
语法
{
"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
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
AutoUseCoupon | String | 否 | 否 | 是否使用优惠券自动支付账单。 | 取值:
说明 仅AutoPay为true时,该项才生效。 |
AutoRenew | Boolean | 否 | 否 | 是否开启自动续费。 | 取值:
|
AutoPay | Boolean | 否 | 否 | 是否自动付费。 | 取值:
|
AutoRenewDuration | Integer | 否 | 否 | 自动续费时长。 | 单位:月。 取值范围:1~12。默认值:1。 说明 仅AutoRenew的为true时,该项才生效。 |
BandwidthBillingType | String | 否 | 否 | 带宽计费方式。 | 取值:
|
ChargeType | String | 否 | 否 | 付费类型。 | 取值:
|
Duration | Integer | 否 | 否 | 购买时长。 | 取值:
|
PricingCycle | String | 否 | 否 | 计费周期。 | 取值:
|
ResourceGroupId | String | 否 | 否 | 基础型全球加速实例所属资源组 ID。 | 无 |
Tags | List | 否 | 否 | 基础型全球加速实例的标签。 | 更多信息,请参见Tags属性。 |
PromotionOptionNo | String | 否 | 否 | 优惠券号码。 | 说明 中国站不涉及该参数。 |
Tags语法
"Tags": [
{
"Value": String,
"Key": String
}
]
Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 否 | 否 | 基础型全球加速实例的标签键。 | 一旦输入该值,则不允许为空字符串。 最多支持64个字符,不能以 您最多可输入20个标签键。 |
Value | String | 否 | 否 | 基础型全球加速实例的标签值。 | 一旦输入该值,不可以为空字符串。 最多支持128个字符,不能以 您最多可输入20个标签值。 |
返回值
Fn::GetAtt
AcceleratorId:基础型全球加速实例ID。
示例
YAML
格式
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
格式
{
"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"
]
}
}
}
}