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": String,
"Spec": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
AcceleratorName | String | No | No | The name of the GA instance. | None |
AutoUseCoupon | String | No | No | Specifies whether to automatically use a coupon. | Valid values:
|
PricingCycle | String | Yes | No | The unit of the billing cycle. | Valid values:
|
Duration | String | Yes | No | The subscription duration. | Valid values:
|
AutoPay | String | No | No | Specifies whether to enable auto-renewal. | Valid values:
|
Spec | String | Yes | Yes | The instance type. | Valid values:
|
Response parameters
Fn::GetAtt
- AcceleratorName: the name of the GA instance.
- AutoUseCoupon: indicates whether a coupon is used.
- PricingCycle: the unit of the billing cycle.
- PaymentType: the billing method.
- Duration: the subscription duration.
- AutoPay: indicates whether auto-renewal is enabled.
- OrderId: the ID of the order.
- Spec: the instance type.
- AcceleratorId: the ID of the GA instance.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AcceleratorName": {
"Type": "String",
"Description": "The Name of the GA instance"
},
"AutoUseCoupon": {
"Type": "String",
"Description": "The AutoUseCoupon of the GA instance."
},
"PricingCycle": {
"Type": "String",
"Description": "The PricingCycle of the GA instance."
},
"Duration": {
"Type": "String",
"Description": "The Duration of the GA instance"
},
"AutoPay": {
"Type": "String",
"Description": "The AutoPay of the GA instance."
},
"Spec": {
"Type": "String",
"Description": "The instance type of the GA instance"
}
},
"Resources": {
"GaAccelerator": {
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": {
"Ref": "AcceleratorName"
},
"AutoUseCoupon": {
"Ref": "AutoUseCoupon"
},
"PricingCycle": {
"Ref": "PricingCycle"
},
"Duration": {
"Ref": "Duration"
},
"AutoPay": {
"Ref": "AutoPay"
},
"Spec": {
"Ref": "Spec"
}
}
}
},
"Outputs": {
"AcceleratorName": {
"Description": "The Name of the GA instance",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"AcceleratorName"
]
}
},
"AutoUseCoupon": {
"Description": "The AutoUseCoupon of the GA instance.",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"AutoUseCoupon"
]
}
},
"PricingCycle": {
"Description": "The PricingCycle of the GA instance.",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"PricingCycle"
]
}
},
"PaymentType": {
"Description": "The Payment Typethe GA instance",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"PaymentType"
]
}
},
"Duration": {
"Description": "The Duration of the GA instance",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"Duration"
]
}
},
"AutoPay": {
"Description": "The AutoPay of the GA instance.",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"AutoPay"
]
}
},
"OrderId": {
"Description": "The OrderId of the GA instance",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"OrderId"
]
}
},
"Spec": {
"Description": "The instance type of the GA instance",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"Spec"
]
}
},
"AcceleratorId": {
"Description": "The ID of the GA instance to query.",
"Value": {
"Fn::GetAtt": [
"GaAccelerator",
"AcceleratorId"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AcceleratorName:
Type: String
Description: The Name of the GA instance
AutoUseCoupon:
Type: String
Description: The AutoUseCoupon of the GA instance.
PricingCycle:
Type: String
Description: The PricingCycle of the GA instance.
Duration:
Type: String
Description: The Duration of the GA instance
AutoPay:
Type: String
Description: The AutoPay of the GA instance.
Spec:
Type: String
Description: The instance type of the GA instance
Resources:
GaAccelerator:
Type: 'ALIYUN::GA::Accelerator'
Properties:
AcceleratorName:
Ref: AcceleratorName
AutoUseCoupon:
Ref: AutoUseCoupon
PricingCycle:
Ref: PricingCycle
Duration:
Ref: Duration
AutoPay:
Ref: AutoPay
Spec:
Ref: Spec
Outputs:
AcceleratorName:
Description: The Name of the GA instance
Value:
'Fn::GetAtt':
- GaAccelerator
- AcceleratorName
AutoUseCoupon:
Description: The AutoUseCoupon of the GA instance.
Value:
'Fn::GetAtt':
- GaAccelerator
- AutoUseCoupon
PricingCycle:
Description: The PricingCycle of the GA instance.
Value:
'Fn::GetAtt':
- GaAccelerator
- PricingCycle
PaymentType:
Description: The Payment Typethe GA instance
Value:
'Fn::GetAtt':
- GaAccelerator
- PaymentType
Duration:
Description: The Duration of the GA instance
Value:
'Fn::GetAtt':
- GaAccelerator
- Duration
AutoPay:
Description: The AutoPay of the GA instance.
Value:
'Fn::GetAtt':
- GaAccelerator
- AutoPay
OrderId:
Description: The OrderId of the GA instance
Value:
'Fn::GetAtt':
- GaAccelerator
- OrderId
Spec:
Description: The instance type of the GA instance
Value:
'Fn::GetAtt':
- GaAccelerator
- Spec
AcceleratorId:
Description: The ID of the GA instance to query.
Value:
'Fn::GetAtt':
- GaAccelerator
- AcceleratorId