文档

ALIYUN::GA::BasicAccelerator

更新时间:

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

是否使用优惠券自动支付账单。

取值:

  • true:使用。

  • false(默认值):不使用。

说明

AutoPaytrue时,该项才生效。

AutoRenew

Boolean

是否开启自动续费。

取值:

  • true:开启自动续费。

  • false(默认值):关闭自动续费。

AutoPay

Boolean

是否自动付费。

取值:

  • false(默认值):不开启自动付费,生成订单后需要到订单中心完成支付。

  • true:开启自动付费,自动支付订单。

AutoRenewDuration

Integer

自动续费时长。

单位:月。

取值范围:1~12。默认值:1

说明

AutoRenew的为true时,该项才生效。

BandwidthBillingType

String

带宽计费方式。

取值:

  • BandwidthPackage:按带宽包计费。

  • CDT:按流量计费并由云数据传输(Cloud DataTransfer,简称 CDT)统一结算。

  • CDT95:按95计费并由CDT统一结算。该带宽计费方式仅白名单用户可用。

ChargeType

String

付费类型。

取值:

  • PREPAY(默认值):代表预付费,即包年包月方式付费。

  • POSTPAY:代表后付费,即按使用时长方式付费。

Duration

Integer

购买时长。

取值:

  • PricingCycle取值Month时,Duration取值范围为1~9

  • PricingCycle取值Year时,Duration取值范围为1~3

PricingCycle

String

计费周期。

取值:

  • Month:按月计费。

  • Year:按年计费。

ResourceGroupId

String

基础型全球加速实例所属资源组 ID。

Tags

List

基础型全球加速实例的标签。

更多信息,请参见Tags属性

Tags语法

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

基础型全球加速实例的标签键。

一旦输入该值,则不允许为空字符串。

最多支持64个字符,不能以aliyunacs:开头,不能包含http://或者https://

您最多可输入20个标签键。

Value

String

基础型全球加速实例的标签值。

一旦输入该值,不可以为空字符串。

最多支持128个字符,不能以aliyunacs:开头,不能包含http://或者https://

您最多可输入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"
        ]
      }
    }
  }
}