ALIYUN::GA::BandwidthPackage

更新时间:
复制 MD 格式

You can use the ALIYUN::GA::BandwidthPackage type to create a bandwidth package.

Syntax

{
  "Type": "ALIYUN::GA::BandwidthPackage",
  "Properties": {
    "BandwidthType": String,
    "Type": String,
    "AutoUseCoupon": String,
    "PricingCycle": String,
    "ChargeType": String,
    "Bandwidth": Integer,
    "Ratio": String,
    "Duration": String,
    "AutoPay": String,
    "BillingType": String
  }
}

Properties

Property nameTypeRequiredUpdate allowedDescriptionConstraints
BandwidthTypeStringNoYesThe type of bandwidth.Valid values:
  • Basic: Standard acceleration bandwidth.
  • Enhanced: Enhanced acceleration bandwidth.
  • Advanced: Premium acceleration bandwidth.
TypeStringYesNoThe type of the bandwidth plan.

Basic: basic bandwidth plan.

AutoUseCouponStringNoYesSpecifies whether to automatically use a coupon.Valid values:
  • True
  • False
PricingCycleStringNoNoBilling cycleValid values:
  • Month: Billed monthly.
  • Year: Billed annually.
ChargeTypeStringNoNoThe billing method.Valid value:

PREPAY: subscription.

BandwidthIntegerYesYesThe bandwidth of the bandwidth plan.The value must be an integer from 2 to 2000.

The unit is MB.

RatioStringNoNoThe minimum bandwidth percentage.None
DurationStringNoNoThe subscription duration.The valid values depend on the value of the PricingCycle property:
  • Monthly subscription: 1 to 9 months.
  • If PricingCycle is set to Year, the valid values are 1 to 3.
AutoPayStringNoYesSpecifies whether to enable auto-payment.Valid values:
  • True
  • False
BillingTypeStringNoNoThe metering method.None

Return values

Fn::GetAtt

  • BandwidthPackageName: The name of the bandwidth plan.
  • AutoPay: Indicates whether auto-payment is enabled.
  • BandwidthType: The type of bandwidth.
  • Type: The type of the bandwidth plan.
  • AutoUseCoupon: Indicates whether a coupon is automatically used.
  • ChargeType: The billing method.
  • Bandwidth: The bandwidth of the bandwidth plan.
  • BandwidthPackageId: The ID of the bandwidth plan.
  • Ratio: The minimum bandwidth percentage.
  • BillingType: The metering method.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters: {}
    Resources:
      GaBandwidthPackage:
        Type: ALIYUN::GA::BandwidthPackage
        Properties:
          BandwidthType: Basic
          Type: Basic
          AutoUseCoupon: 'True'
          PricingCycle: Month
          ChargeType: PREPAY
          Bandwidth: 200
          Duration: 3
          AutoPay: 'False'
    Outputs: {}
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "GaBandwidthPackage": {
          "Type": "ALIYUN::GA::BandwidthPackage",
          "Properties": {
            "BandwidthType": "Basic",
            "Type": "Basic",
            "AutoUseCoupon": "True",
            "PricingCycle": "Month",
            "ChargeType": "PREPAY",
            "Bandwidth": 200,
            "Duration": 3,
            "AutoPay": "False"
          }
        }
      },
      "Outputs": {
      }
    }