ALIYUN::GA::Accelerator类型用于创建全球加速实例。
语法
{
"Type": "ALIYUN::GA::Accelerator",
"Properties": {
"AcceleratorName": String,
"AutoUseCoupon": String,
"PricingCycle": String,
"Duration": String,
"AutoPay": String,
"Spec": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
AcceleratorName | String | 否 | 否 | 名称。 | 无 |
AutoUseCoupon | String | 否 | 否 | 是否自动使用优惠券。 | 取值:
|
PricingCycle | String | 是 | 否 | 价格周期。 | 取值:
|
Duration | String | 是 | 否 | 购买时长。 | 取值:
|
AutoPay | String | 否 | 否 | 是否自动付费。 | 取值:
|
Spec | String | 是 | 是 | 实例规格。 | 取值:
|
返回值
Fn::GetAtt
- AcceleratorName:实例名称。
- AutoUseCoupon:是否自动使用优惠券。
- PricingCycle:价格周期。
- PaymentType:付费方式。
- Duration:购买时长。
- AutoPay:是否自动付费。
- OrderId:订单ID。
- Spec:实例规格。
- AcceleratorId:实例ID。
示例
JSON
格式
{
"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
格式
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