ALIYUN::GA::BandwidthPackage类型用于创建带宽包。

语法

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

属性

属性名称 类型 必须 允许更新 描述 约束
BandwidthType String 带宽类型。 取值:
  • Basic:标准加速带宽。
  • Enhanced:增强加速带宽。
  • Advanced:精品加速带宽。
Type String 带宽包的类型。 取值:

Basic:基础带宽包。

AutoUseCoupon String 是否自动使用优惠券。 取值:
  • True
  • False
PricingCycle String 价格周期。 取值:
  • Month:按月付费。
  • Year:按年付费。
ChargeType String 付费类型。 取值:

PREPAY:包年包月。

Bandwidth Integer 带宽包的带宽值。 取值范围:2~2000。

单位:MB。

Ratio String 保底百分比。
Duration String 购买时长。 取值范围:
  • 按月付费:1~9。
  • 按年付费:1~3。
AutoPay String 是否自动付费。 取值:
  • True
  • False
BillingType String 计量方式。

返回值

Fn::GetAtt

  • BandwidthPackageName:带宽包名称。
  • AutoPay:是否自动付费。
  • BandwidthType:带宽类型。
  • Type:带宽包类型。
  • AutoUseCoupon:是否自动使用优惠券。
  • ChargeType:付费类型。
  • Bandwidth:带宽包的带宽值。
  • BandwidthPackageId:带宽包ID。
  • Ratio:带宽的保底百分比。
  • BillingType:带宽计量方式。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "BandwidthType": {
      "Type": "String",
      "Description": "the bandwidth BandwidthType of the bandwidth"
    },
    "CbnGeographicRegionIdB": {
      "Type": "String",
      "Description": "The CbnGeographicRegionIdB of the bandwidth"
    },
    "Type": {
      "Type": "String",
      "Description": "The type of the bandwidth plan"
    },
    "CbnGeographicRegionIdA": {
      "Type": "String",
      "Description": "The CbnGeographicRegionIdA  of the bandwidth"
    },
    "AutoUseCoupon": {
      "Type": "String",
      "Description": "The AutoUseCoupon  of the bandwidth"
    },
    "PricingCycle": {
      "Type": "String",
      "Description": ""
    },
    "ChargeType": {
      "Type": "String",
      "Description": "The ChargeType of the bandwidth"
    },
    "Bandwidth": {
      "Type": "Number",
      "Description": "The bandwidth provided by the bandwidth plan."
    },
    "Ratio": {
      "Type": "String",
      "Description": "The Ratio of the bandwidth"
    },
    "Duration": {
      "Type": "String",
      "Description": ""
    },
    "AutoPay": {
      "Type": "String",
      "Description": "The AutoPay of the bandwidth"
    },
    "BillingType": {
      "Type": "String",
      "Description": "The BillingType of the bandwidth"
    }
  },
  "Resources": {
    "GaBandwidthPackage": {
      "Type": "ALIYUN::GA::BandwidthPackage",
      "Properties": {
        "BandwidthType": {
          "Ref": "BandwidthType"
        },
        "CbnGeographicRegionIdB": {
          "Ref": "CbnGeographicRegionIdB"
        },
        "Type": {
          "Ref": "Type"
        },
        "CbnGeographicRegionIdA": {
          "Ref": "CbnGeographicRegionIdA"
        },
        "AutoUseCoupon": {
          "Ref": "AutoUseCoupon"
        },
        "PricingCycle": {
          "Ref": "PricingCycle"
        },
        "ChargeType": {
          "Ref": "ChargeType"
        },
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "Ratio": {
          "Ref": "Ratio"
        },
        "Duration": {
          "Ref": "Duration"
        },
        "AutoPay": {
          "Ref": "AutoPay"
        },
        "BillingType": {
          "Ref": "BillingType"
        }
      }
    }
  },
  "Outputs": {
    "BandwidthPackageName": {
      "Description": "The Resource name of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "BandwidthPackageName"
        ]
      }
    },
    "CbnGeographicRegionIdB": {
      "Description": "The CbnGeographicRegionIdB of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "CbnGeographicRegionIdB"
        ]
      }
    },
    "CbnGeographicRegionIdA": {
      "Description": "The CbnGeographicRegionIdA  of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "CbnGeographicRegionIdA"
        ]
      }
    },
    "AutoPay": {
      "Description": "The AutoPay of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "AutoPay"
        ]
      }
    },
    "BandwidthType": {
      "Description": "the bandwidth BandwidthType of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "BandwidthType"
        ]
      }
    },
    "Type": {
      "Description": "The type of the bandwidth plan",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "Type"
        ]
      }
    },
    "AutoUseCoupon": {
      "Description": "The AutoUseCoupon  of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "AutoUseCoupon"
        ]
      }
    },
    "ChargeType": {
      "Description": "The ChargeType of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "ChargeType"
        ]
      }
    },
    "Bandwidth": {
      "Description": "The bandwidth provided by the bandwidth plan.",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "Bandwidth"
        ]
      }
    },
    "PaymentType": {
      "Description": "The Payment Type of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "PaymentType"
        ]
      }
    },
    "BandwidthPackageId": {
      "Description": "The Resource ID of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "BandwidthPackageId"
        ]
      }
    },
    "Ratio": {
      "Description": "The Ratio of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "Ratio"
        ]
      }
    },
    "BillingType": {
      "Description": "The BillingType of the bandwidth",
      "Value": {
        "Fn::GetAtt": [
          "GaBandwidthPackage",
          "BillingType"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  BandwidthType:
    Type: String
    Description: the bandwidth BandwidthType of the bandwidth
  CbnGeographicRegionIdB:
    Type: String
    Description: The CbnGeographicRegionIdB of the bandwidth
  Type:
    Type: String
    Description: The type of the bandwidth plan
  CbnGeographicRegionIdA:
    Type: String
    Description: The CbnGeographicRegionIdA  of the bandwidth
  AutoUseCoupon:
    Type: String
    Description: The AutoUseCoupon  of the bandwidth
  PricingCycle:
    Type: String
    Description: ''
  ChargeType:
    Type: String
    Description: The ChargeType of the bandwidth
  Bandwidth:
    Type: Number
    Description: The bandwidth provided by the bandwidth plan.
  Ratio:
    Type: String
    Description: The Ratio of the bandwidth
  Duration:
    Type: String
    Description: ''
  AutoPay:
    Type: String
    Description: The AutoPay of the bandwidth
  BillingType:
    Type: String
    Description: The BillingType of the bandwidth
Resources:
  GaBandwidthPackage:
    Type: 'ALIYUN::GA::BandwidthPackage'
    Properties:
      BandwidthType:
        Ref: BandwidthType
      CbnGeographicRegionIdB:
        Ref: CbnGeographicRegionIdB
      Type:
        Ref: Type
      CbnGeographicRegionIdA:
        Ref: CbnGeographicRegionIdA
      AutoUseCoupon:
        Ref: AutoUseCoupon
      PricingCycle:
        Ref: PricingCycle
      ChargeType:
        Ref: ChargeType
      Bandwidth:
        Ref: Bandwidth
      Ratio:
        Ref: Ratio
      Duration:
        Ref: Duration
      AutoPay:
        Ref: AutoPay
      BillingType:
        Ref: BillingType
Outputs:
  BandwidthPackageName:
    Description: The Resource name of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - BandwidthPackageName
  CbnGeographicRegionIdB:
    Description: The CbnGeographicRegionIdB of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - CbnGeographicRegionIdB
  CbnGeographicRegionIdA:
    Description: The CbnGeographicRegionIdA  of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - CbnGeographicRegionIdA
  AutoPay:
    Description: The AutoPay of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - AutoPay
  BandwidthType:
    Description: the bandwidth BandwidthType of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - BandwidthType
  Type:
    Description: The type of the bandwidth plan
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - Type
  AutoUseCoupon:
    Description: The AutoUseCoupon  of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - AutoUseCoupon
  ChargeType:
    Description: The ChargeType of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - ChargeType
  Bandwidth:
    Description: The bandwidth provided by the bandwidth plan.
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - Bandwidth
  PaymentType:
    Description: The Payment Type of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - PaymentType
  BandwidthPackageId:
    Description: The Resource ID of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - BandwidthPackageId
  Ratio:
    Description: The Ratio of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - Ratio
  BillingType:
    Description: The BillingType of the bandwidth
    Value:
      'Fn::GetAtt':
        - GaBandwidthPackage
        - BillingType