Cria uma instância básica do Global Accelerator (GA).
Sintaxe
{
"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
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
AutoUseCoupon |
String |
Não |
Não |
Defina se o sistema aplica cupons automaticamente ao pagamento das faturas. |
Valores válidos:
Nota
Esta propriedade só tem efeito quando AutoPay está definido como true. |
|
AutoRenew |
Boolean |
Não |
Não |
Defina se a renovação automática está ativada. |
Valores válidos:
|
|
AutoPay |
Boolean |
Não |
Não |
Defina se o pagamento automático está ativado. |
Valores válidos:
|
|
AutoRenewDuration |
Integer |
Não |
Não |
Duração da renovação automática. |
Unidade: mês. Valores válidos: 1 a 12. Valor padrão: 1. Nota
Esta propriedade só tem efeito quando AutoRenew está definido como true. |
|
BandwidthBillingType |
String |
Não |
Não |
Método de faturamento de largura de banda. |
Valores válidos:
|
|
ChargeType |
String |
Não |
Não |
Método de faturamento. |
Valores válidos:
|
|
Duration |
Integer |
Não |
Não |
Duração da assinatura. |
|
|
PromotionOptionNo |
String |
Não |
Não |
Código do cupom. |
Nenhuma. |
|
PricingCycle |
String |
Não |
Não |
Unidade do ciclo de faturamento. |
Valores válidos:
|
|
ResourceGroupId |
String |
Não |
Não |
ID do grupo de recursos ao qual a instância básica do GA pertence. |
Nenhuma. |
|
Tags |
List |
Não |
Não |
Tags da instância básica do GA. |
Para mais informações, consulte Propriedades de Tags. |
|
PromotionOptionNo |
String |
Não |
Não |
Código do cupom. |
Nota
|
Sintaxe de Tags
"Tags": [
{
"Value": String,
"Key": String
}
]
Propriedades de Tags
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
Key |
String |
Não |
Não |
Chave da tag da instância básica do GA. |
A chave da tag não pode ser uma string vazia. A chave da tag pode ter até 64 caracteres e não pode conter É possível especificar até 20 chaves de tag. |
|
Value |
String |
Não |
Não |
Valor da tag da instância básica do GA. |
O valor da tag não pode ser uma string vazia. O valor da tag pode ter até 128 caracteres e não pode conter É possível especificar até 20 valores de tag. |
Valores de retorno
Fn::GetAtt
AcceleratorId: o ID da instância básica do GA.
Exemplos
Formato 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
Formato 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"
]
}
}
}
}