ALIYUN::GA::Accelerator is used to create a Global Accelerator (GA) instance.
Syntax
{
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": String,
"AutoUseCoupon": String,
"PricingCycle": String,
"Duration": String,
"AutoPay": Boolean,
"Spec": String,
"BandwidthBillingType": String,
"InstanceChargeType": String,
"ResourceGroupId": String,
"DdosConfigList": List,
"Bandwidth": Integer,
"Tags": List,
"CrossBorderMode": String,
"IpSetConfig": Map,
"EnableCrossBorder": Boolean
}
}Properties
Property | Type | Required | Editable | Description | Constraint |
AcceleratorName | String | No | No | The name of the GA instance. | None. |
AutoPay | Boolean | No | No | Specifies whether to enable automatic payment. | Valid values:
|
AutoUseCoupon | String | No | No | Specifies whether to use coupons. | Valid values:
|
Bandwidth | Integer | No | No | The bandwidth of the basic bandwidth package. | Unit: Mbps. |
BandwidthBillingType | String | No | No | The metering method for the bandwidth. | Valid values:
|
CrossBorderMode | String | No | No | The cross-border acceleration type for GA instances with CDT (data transfer) billing. | Valid values:
|
DdosConfigList | List | No | No | The list of Anti-DDoS instances associated with the GA instance. | For more information, see DdosConfigList properties. |
Duration | String | No | No | The billing cycle. | Valid values:
|
EnableCrossBorder | Boolean | No | No | Specifies whether to enable the cross-border mode. | Valid values:
|
InstanceChargeType | String | No | No | The billing method. | Valid values:
Default value: PREPAY. |
IpSetConfig | Map | No | No | The configurations of the acceleration area. | For more information, see IpSetConfig properties. |
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 standard GA instance belongs. | None. |
Spec | String | No | No | The specification of the GA instance. | Valid values:
|
IpSetConfig syntax
"IpSetConfig": {
"AccessMode": String
}IpSetConfig properties
Property | Type | Required | Editable | Description | Constraint |
AccessMode | String | No | No | The access mode of the acceleration area. | Valid values:
|
DdosConfigList syntax
"DdosConfigList": [{
"DdosRegionId": String,
"DdosId": String
}]DdosConfigList properties
Property | Type | Required | Editable | Description | Constraint |
DdosId | String | Yes | No | The ID of the Anti-DDoS instance associated with the GA instance. | None. |
DdosRegionId | String | Yes | No | The region of the Anti-DDoS instance. | Valid values:
|
Return values
Fn::GetAtt
AcceleratorName: the name of the GA instance.
AutoUseCoupon: indicates whether coupons are used.
PricingCycle: the unit of the billing cycle.
PaymentType: the billing method.
Duration: the billing cycle.
AutoPay: indicates whether automatic payment is enabled.
OrderId: the ID of the order.
Spec: the specification of the GA instance.
AcceleratorId: the ID of the GA instance.
DnsName: the canonical name (CNAME) assigned to the GA instance.
Examples
Scenario 1: Create a pay-as-you-go Global Accelerator instance.
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建一个按量付费的全球加速实例。
en: Create a pay-as-you-go Global Accelerator instance.
Parameters:
AcceleratorName:
Type: String
Label:
zh-cn: 加速实例名称
en: Accelerator Name
Description:
zh-cn: 全球加速实例的名称。
en: The name of the Global Accelerator instance.
Default: ga-postpay-test
Spec:
Type: String
Label:
zh-cn: 实例规格
en: Instance Spec
Description:
zh-cn: >-
全球加速实例的规格。
小型Ⅰ:最大10个监听、5个加速区域。
小型Ⅱ:最大20个监听、10个加速区域。
小型Ⅲ:最大30个监听、15个加速区域。
en: >-
GA instance spec.
Small I: max 10 listeners, 5 acceleration regions.
Small II: max 20 listeners, 10 acceleration regions.
Small III: max 30 listeners, 15 acceleration regions.
Default: '1'
AllowedValues:
- '1'
- '2'
- '3'
- '5'
- '8'
- '10'
Resources:
Accelerator:
Type: ALIYUN::GA::Accelerator
Properties:
AcceleratorName:
Ref: AcceleratorName
Spec:
Ref: Spec
InstanceChargeType: POSTPAY
BandwidthBillingType: CDT
Outputs:
AcceleratorId:
Label:
zh-cn: 加速实例ID
en: Accelerator ID
Description:
zh-cn: 全球加速实例的唯一标识。
en: The unique identifier of the Global Accelerator instance.
Value:
Fn::GetAtt:
- Accelerator
- AcceleratorId
DnsName:
Label:
zh-cn: CNAME地址
en: DNS Name
Description:
zh-cn: 全球加速实例分配的CNAME地址,用于DNS解析指向。
en: The CNAME address assigned to the GA instance for DNS resolution.
Value:
Fn::GetAtt:
- Accelerator
- DnsName{
"ROSTemplateFormatVersion": "2015-09-01",
"Description": {
"zh-cn": "创建一个按量付费的全球加速实例。",
"en": "Create a pay-as-you-go Global Accelerator instance."
},
"Parameters": {
"AcceleratorName": {
"Type": "String",
"Label": {
"zh-cn": "加速实例名称",
"en": "Accelerator Name"
},
"Description": {
"zh-cn": "全球加速实例的名称。",
"en": "The name of the Global Accelerator instance."
},
"Default": "ga-postpay-test"
},
"Spec": {
"Type": "String",
"Label": {
"zh-cn": "实例规格",
"en": "Instance Spec"
},
"Description": {
"zh-cn": "全球加速实例的规格。小型Ⅰ:最大10个监听、5个加速区域。小型Ⅱ:最大20个监听、10个加速区域。小型Ⅲ:最大30个监听、15个加速区域。",
"en": "GA instance spec. Small I: max 10 listeners, 5 acceleration regions. Small II: max 20 listeners, 10 acceleration regions. Small III: max 30 listeners, 15 acceleration regions."
},
"Default": "1",
"AllowedValues": [
"1",
"2",
"3",
"5",
"8",
"10"
]
}
},
"Resources": {
"Accelerator": {
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": {
"Ref": "AcceleratorName"
},
"Spec": {
"Ref": "Spec"
},
"InstanceChargeType": "POSTPAY",
"BandwidthBillingType": "CDT"
}
}
},
"Outputs": {
"AcceleratorId": {
"Label": {
"zh-cn": "加速实例ID",
"en": "Accelerator ID"
},
"Description": {
"zh-cn": "全球加速实例的唯一标识。",
"en": "The unique identifier of the Global Accelerator instance."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorId"
]
}
},
"DnsName": {
"Label": {
"zh-cn": "CNAME地址",
"en": "DNS Name"
},
"Description": {
"zh-cn": "全球加速实例分配的CNAME地址,用于DNS解析指向。",
"en": "The CNAME address assigned to the GA instance for DNS resolution."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"DnsName"
]
}
}
}
}Scenario 2: Create a subscription GA instance with bandwidth package billing and resource group.
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建包年包月的全球加速实例,配置带宽包计费和资源组。
en: Create a subscription GA instance with bandwidth package billing and resource group.
Parameters:
AcceleratorName:
Type: String
Label:
zh-cn: 加速实例名称
en: Accelerator Name
Description:
zh-cn: 全球加速实例的名称。
en: The name of the Global Accelerator instance.
Default: ga-prod-accelerator
Spec:
Type: String
Label:
zh-cn: 实例规格
en: Instance Spec
Description:
zh-cn: >-
全球加速实例的规格。
小型Ⅰ(1):最大10个监听、5个加速区域。
中型Ⅰ(5):最大50个监听、25个加速区域。
中型Ⅲ(10):最大100个监听、50个加速区域。
en: >-
GA instance spec.
Small I(1): max 10 listeners, 5 regions.
Medium I(5): max 50 listeners, 25 regions.
Medium III(10): max 100 listeners, 50 regions.
Default: '5'
AllowedValues:
- '1'
- '2'
- '3'
- '5'
- '8'
- '10'
PricingCycle:
Type: String
Label:
zh-cn: 付费周期
en: Pricing Cycle
Description:
zh-cn: 预付费的计费周期。
en: The billing cycle for the subscription.
Default: Month
AllowedValues:
- Month
- Year
Duration:
Type: String
Label:
zh-cn: 购买时长
en: Duration
Description:
zh-cn: >-
购买时长。按月付费时取值1~9,按年付费时取值1~3。
en: >-
Purchase duration. 1-9 for monthly, 1-3 for yearly.
Default: '3'
ResourceGroupId:
Type: String
Label:
zh-cn: 资源组
en: Resource Group
Description:
zh-cn: 全球加速实例所属的资源组,用于权限隔离和成本管理。
en: Resource group for permission isolation and cost management.
AssociationProperty: ALIYUN::ResourceManager::ResourceGroup
Default: Null
Resources:
Accelerator:
Type: ALIYUN::GA::Accelerator
Properties:
AcceleratorName:
Ref: AcceleratorName
Spec:
Ref: Spec
InstanceChargeType: PREPAY
BandwidthBillingType: BandwidthPackage
PricingCycle:
Ref: PricingCycle
Duration:
Ref: Duration
AutoPay: true
AutoUseCoupon: 'True'
ResourceGroupId:
Ref: ResourceGroupId
Outputs:
AcceleratorId:
Label:
zh-cn: 加速实例ID
en: Accelerator ID
Description:
zh-cn: 全球加速实例的唯一标识。
en: The unique identifier of the Global Accelerator instance.
Value:
Fn::GetAtt:
- Accelerator
- AcceleratorId
AcceleratorName:
Label:
zh-cn: 实例名称
en: Accelerator Name
Value:
Fn::GetAtt:
- Accelerator
- AcceleratorName
Spec:
Label:
zh-cn: 实例规格
en: Instance Spec
Value:
Fn::GetAtt:
- Accelerator
- Spec
OrderId:
Label:
zh-cn: 订单ID
en: Order ID
Description:
zh-cn: 预付费订单的唯一标识,可在费用中心查看订单详情。
en: The order ID for the subscription, viewable in the Billing Center.
Value:
Fn::GetAtt:
- Accelerator
- OrderId
DnsName:
Label:
zh-cn: CNAME地址
en: DNS Name
Value:
Fn::GetAtt:
- Accelerator
- DnsName{
"ROSTemplateFormatVersion": "2015-09-01",
"Description": {
"zh-cn": "创建包年包月的全球加速实例,配置带宽包计费和资源组。",
"en": "Create a subscription GA instance with bandwidth package billing and resource group."
},
"Parameters": {
"AcceleratorName": {
"Type": "String",
"Label": {
"zh-cn": "加速实例名称",
"en": "Accelerator Name"
},
"Description": {
"zh-cn": "全球加速实例的名称。",
"en": "The name of the Global Accelerator instance."
},
"Default": "ga-prod-accelerator"
},
"Spec": {
"Type": "String",
"Label": {
"zh-cn": "实例规格",
"en": "Instance Spec"
},
"Description": {
"zh-cn": "全球加速实例的规格。小型Ⅰ(1):最大10个监听、5个加速区域。中型Ⅰ(5):最大50个监听、25个加速区域。中型Ⅲ(10):最大100个监听、50个加速区域。",
"en": "GA instance spec. Small I(1): max 10 listeners, 5 regions. Medium I(5): max 50 listeners, 25 regions. Medium III(10): max 100 listeners, 50 regions."
},
"Default": "5",
"AllowedValues": [
"1",
"2",
"3",
"5",
"8",
"10"
]
},
"PricingCycle": {
"Type": "String",
"Label": {
"zh-cn": "付费周期",
"en": "Pricing Cycle"
},
"Description": {
"zh-cn": "预付费的计费周期。",
"en": "The billing cycle for the subscription."
},
"Default": "Month",
"AllowedValues": [
"Month",
"Year"
]
},
"Duration": {
"Type": "String",
"Label": {
"zh-cn": "购买时长",
"en": "Duration"
},
"Description": {
"zh-cn": "购买时长。按月付费时取值1~9,按年付费时取值1~3。",
"en": "Purchase duration. 1-9 for monthly, 1-3 for yearly."
},
"Default": "3"
},
"ResourceGroupId": {
"Type": "String",
"Label": {
"zh-cn": "资源组",
"en": "Resource Group"
},
"Description": {
"zh-cn": "全球加速实例所属的资源组,用于权限隔离和成本管理。",
"en": "Resource group for permission isolation and cost management."
},
"AssociationProperty": "ALIYUN::ResourceManager::ResourceGroup",
"Default": null
}
},
"Resources": {
"Accelerator": {
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": {
"Ref": "AcceleratorName"
},
"Spec": {
"Ref": "Spec"
},
"InstanceChargeType": "PREPAY",
"BandwidthBillingType": "BandwidthPackage",
"PricingCycle": {
"Ref": "PricingCycle"
},
"Duration": {
"Ref": "Duration"
},
"AutoPay": true,
"AutoUseCoupon": "True",
"ResourceGroupId": {
"Ref": "ResourceGroupId"
}
}
}
},
"Outputs": {
"AcceleratorId": {
"Label": {
"zh-cn": "加速实例ID",
"en": "Accelerator ID"
},
"Description": {
"zh-cn": "全球加速实例的唯一标识。",
"en": "The unique identifier of the Global Accelerator instance."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorId"
]
}
},
"AcceleratorName": {
"Label": {
"zh-cn": "实例名称",
"en": "Accelerator Name"
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorName"
]
}
},
"Spec": {
"Label": {
"zh-cn": "实例规格",
"en": "Instance Spec"
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"Spec"
]
}
},
"OrderId": {
"Label": {
"zh-cn": "订单ID",
"en": "Order ID"
},
"Description": {
"zh-cn": "预付费订单的唯一标识,可在费用中心查看订单详情。",
"en": "The order ID for the subscription, viewable in the Billing Center."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"OrderId"
]
}
},
"DnsName": {
"Label": {
"zh-cn": "CNAME地址",
"en": "DNS Name"
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"DnsName"
]
}
}
}
}Scenario 3: Create an Anycast GA instance with cross-border acceleration, bandwidth package, and listener.
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建Anycast全球加速实例,启用跨境加速,联动带宽包和监听器。
en: Create an Anycast GA instance with cross-border, bandwidth package and listener.
Parameters:
AcceleratorName:
Type: String
Label:
zh-cn: 加速实例名称
en: Accelerator Name
Description:
zh-cn: 全球加速实例的名称。
en: The name of the Global Accelerator instance.
Default: ga-global-anycast
Spec:
Type: String
Label:
zh-cn: 实例规格
en: Instance Spec
Description:
zh-cn: >-
全球加速实例的规格。
中型Ⅰ(5):最大50个监听、25个加速区域,适合中大型业务。
中型Ⅲ(10):最大100个监听、50个加速区域,适合大型全球化业务。
en: >-
GA instance spec.
Medium I(5): max 50 listeners, 25 regions.
Medium III(10): max 100 listeners, 50 regions.
Default: '5'
AllowedValues:
- '5'
- '8'
- '10'
Bandwidth:
Type: Number
Label:
zh-cn: 带宽包带宽(Mbps)
en: Bandwidth (Mbps)
Description:
zh-cn: 基础带宽包的带宽大小,单位为Mbps。
en: Bandwidth of the basic bandwidth package, in Mbps.
Default: 10
MinValue: 2
MaxValue: 2000
ListenerPort:
Type: Number
Label:
zh-cn: 监听端口
en: Listener Port
Description:
zh-cn: 全球加速监听的端口号。
en: The port number for the GA listener.
Default: 443
MinValue: 1
MaxValue: 65499
ResourceGroupId:
Type: String
Label:
zh-cn: 资源组
en: Resource Group
Description:
zh-cn: 全球加速实例所属的资源组。
en: Resource group for the GA instance.
AssociationProperty: ALIYUN::ResourceManager::ResourceGroup
Default: Null
Resources:
Accelerator:
Type: ALIYUN::GA::Accelerator
Properties:
AcceleratorName:
Ref: AcceleratorName
Spec:
Ref: Spec
InstanceChargeType: PREPAY
BandwidthBillingType: BandwidthPackage
PricingCycle: Month
Duration: '1'
AutoPay: true
AutoUseCoupon: 'True'
ResourceGroupId:
Ref: ResourceGroupId
IpSetConfig:
AccessMode: Anycast
EnableCrossBorder: true
BandwidthPackage:
Type: ALIYUN::GA::BandwidthPackage
DependsOn: Accelerator
Properties:
Bandwidth:
Ref: Bandwidth
Type: Basic
BandwidthType: Basic
AutoPay: true
PricingCycle: Month
Duration: '1'
BandwidthPackageAcceleratorRelation:
Type: ALIYUN::GA::BandwidthPackageAcceleratorAddition
DependsOn: BandwidthPackage
Properties:
AcceleratorId:
Fn::GetAtt:
- Accelerator
- AcceleratorId
BandwidthPackageId:
Fn::GetAtt:
- BandwidthPackage
- BandwidthPackageId
Listener:
Type: ALIYUN::GA::Listener
DependsOn: BandwidthPackageAcceleratorRelation
Properties:
AcceleratorId:
Fn::GetAtt:
- Accelerator
- AcceleratorId
Protocol: HTTPS
PortRanges:
- FromPort:
Ref: ListenerPort
ToPort:
Ref: ListenerPort
Outputs:
AcceleratorId:
Label:
zh-cn: 加速实例ID
en: Accelerator ID
Description:
zh-cn: 全球加速实例的唯一标识。
en: The unique identifier of the Global Accelerator instance.
Value:
Fn::GetAtt:
- Accelerator
- AcceleratorId
DnsName:
Label:
zh-cn: CNAME地址
en: DNS Name
Description:
zh-cn: >-
全球加速实例分配的CNAME地址。
Anycast模式下全球用户通过此地址自动就近接入。
en: >-
The CNAME address of the GA instance.
In Anycast mode, global users access via nearest entry point.
Value:
Fn::GetAtt:
- Accelerator
- DnsName
BandwidthPackageId:
Label:
zh-cn: 带宽包ID
en: Bandwidth Package ID
Value:
Fn::GetAtt:
- BandwidthPackage
- BandwidthPackageId
ListenerId:
Label:
zh-cn: 监听ID
en: Listener ID
Value:
Fn::GetAtt:
- Listener
- ListenerId{
"ROSTemplateFormatVersion": "2015-09-01",
"Description": {
"zh-cn": "创建Anycast全球加速实例,启用跨境加速,联动带宽包和监听器。",
"en": "Create an Anycast GA instance with cross-border, bandwidth package and listener."
},
"Parameters": {
"AcceleratorName": {
"Type": "String",
"Label": {
"zh-cn": "加速实例名称",
"en": "Accelerator Name"
},
"Description": {
"zh-cn": "全球加速实例的名称。",
"en": "The name of the Global Accelerator instance."
},
"Default": "ga-global-anycast"
},
"Spec": {
"Type": "String",
"Label": {
"zh-cn": "实例规格",
"en": "Instance Spec"
},
"Description": {
"zh-cn": "全球加速实例的规格。中型Ⅰ(5):最大50个监听、25个加速区域,适合中大型业务。中型Ⅲ(10):最大100个监听、50个加速区域,适合大型全球化业务。",
"en": "GA instance spec. Medium I(5): max 50 listeners, 25 regions. Medium III(10): max 100 listeners, 50 regions."
},
"Default": "5",
"AllowedValues": [
"5",
"8",
"10"
]
},
"Bandwidth": {
"Type": "Number",
"Label": {
"zh-cn": "带宽包带宽(Mbps)",
"en": "Bandwidth (Mbps)"
},
"Description": {
"zh-cn": "基础带宽包的带宽大小,单位为Mbps。",
"en": "Bandwidth of the basic bandwidth package, in Mbps."
},
"Default": 10,
"MinValue": 2,
"MaxValue": 2000
},
"ListenerPort": {
"Type": "Number",
"Label": {
"zh-cn": "监听端口",
"en": "Listener Port"
},
"Description": {
"zh-cn": "全球加速监听的端口号。",
"en": "The port number for the GA listener."
},
"Default": 443,
"MinValue": 1,
"MaxValue": 65499
},
"ResourceGroupId": {
"Type": "String",
"Label": {
"zh-cn": "资源组",
"en": "Resource Group"
},
"Description": {
"zh-cn": "全球加速实例所属的资源组。",
"en": "Resource group for the GA instance."
},
"AssociationProperty": "ALIYUN::ResourceManager::ResourceGroup",
"Default": null
}
},
"Resources": {
"Accelerator": {
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": {
"Ref": "AcceleratorName"
},
"Spec": {
"Ref": "Spec"
},
"InstanceChargeType": "PREPAY",
"BandwidthBillingType": "BandwidthPackage",
"PricingCycle": "Month",
"Duration": "1",
"AutoPay": true,
"AutoUseCoupon": "True",
"ResourceGroupId": {
"Ref": "ResourceGroupId"
},
"IpSetConfig": {
"AccessMode": "Anycast"
},
"EnableCrossBorder": true
}
},
"BandwidthPackage": {
"Type": "ALIYUN::GA::BandwidthPackage",
"DependsOn": "Accelerator",
"Properties": {
"Bandwidth": {
"Ref": "Bandwidth"
},
"Type": "Basic",
"BandwidthType": "Basic",
"AutoPay": true,
"PricingCycle": "Month",
"Duration": "1"
}
},
"BandwidthPackageAcceleratorRelation": {
"Type": "ALIYUN::GA::BandwidthPackageAcceleratorAddition",
"DependsOn": "BandwidthPackage",
"Properties": {
"AcceleratorId": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorId"
]
},
"BandwidthPackageId": {
"Fn::GetAtt": [
"BandwidthPackage",
"BandwidthPackageId"
]
}
}
},
"Listener": {
"Type": "ALIYUN::GA::Listener",
"DependsOn": "BandwidthPackageAcceleratorRelation",
"Properties": {
"AcceleratorId": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorId"
]
},
"Protocol": "HTTPS",
"PortRanges": [
{
"FromPort": {
"Ref": "ListenerPort"
},
"ToPort": {
"Ref": "ListenerPort"
}
}
]
}
}
},
"Outputs": {
"AcceleratorId": {
"Label": {
"zh-cn": "加速实例ID",
"en": "Accelerator ID"
},
"Description": {
"zh-cn": "全球加速实例的唯一标识。",
"en": "The unique identifier of the Global Accelerator instance."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"AcceleratorId"
]
}
},
"DnsName": {
"Label": {
"zh-cn": "CNAME地址",
"en": "DNS Name"
},
"Description": {
"zh-cn": "全球加速实例分配的CNAME地址。Anycast模式下全球用户通过此地址自动就近接入。",
"en": "The CNAME address of the GA instance. In Anycast mode, global users access via nearest entry point."
},
"Value": {
"Fn::GetAtt": [
"Accelerator",
"DnsName"
]
}
},
"BandwidthPackageId": {
"Label": {
"zh-cn": "带宽包ID",
"en": "Bandwidth Package ID"
},
"Value": {
"Fn::GetAtt": [
"BandwidthPackage",
"BandwidthPackageId"
]
}
},
"ListenerId": {
"Label": {
"zh-cn": "监听ID",
"en": "Listener ID"
},
"Value": {
"Fn::GetAtt": [
"Listener",
"ListenerId"
]
}
}
}
}