ALIYUN::VPC::Ipv6InternetBandwidth类型用于为IPv6地址购买公网带宽。

语法

{
  "Type": "ALIYUN::VPC::Ipv6InternetBandwidth",
  "Properties": {
    "Bandwidth": Integer,
    "Ipv6AddressId": String,
    "Ipv6GatewayId": String,
    "InternetChargeType": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Bandwidth Integer IPv6地址的公网带宽。
  • InternetChargeType取值为PayByBandwidth时,IPv6地址的公网带宽取值范围为1~5000。
  • InternetChargeType取值为PayByTraffic时,IPv6地址的公网带宽取值范围同时受到IPv6网关规格的制约:
    • Small(默认免费版):1~500。
    • Medium(企业版):1~1000。
    • Large(企业增强版):1~2000。

单位:Mbps。

Ipv6AddressId String IPv6地址的实例ID。
Ipv6GatewayId String IPv6网关的ID。
InternetChargeType String IPv6公网带宽的计费方式。 取值:
  • PayByTraffic:按使用流量计费。
  • PayByBandwidth(默认值):按带宽计费。

返回值

Fn::GetAtt

InternetBandwidthId:公网带宽ID。

示例

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Bandwidth": {
      "Type": "Number",
      "Description": "Public IPv6 address of bandwidth, unit: Mbps, range: 1-5000.\nWhen InternetChargeType is PayByBandwidth, the bandwidth of the public network is the IPv6 address 1-5000.\nWhen InternetChargeType is PayByTraffic, public network bandwidth IPv6 addresses while IPv6 gateway restricted specifications.\nSmall (default free version), the public network bandwidth range 1-500.\nMedium (Enterprise Edition), the public network bandwidth range from 1 to 1000.\nLarge (Enterprise Edition), the public network bandwidth range 1-2000.",
      "MinValue": 1,
      "MaxValue": 5000
    },
    "Ipv6AddressId": {
      "Type": "String",
      "Description": "ID of IPv6 address."
    },
    "Ipv6GatewayId": {
      "Type": "String",
      "Description": "ID of IPv6 gateway."
    },
    "InternetChargeType": {
      "Type": "String",
      "Description": "IPv6 public network bandwidth billing, value:\nPayByTraffic: by using the traffic accounting.\nPayByBandwidth (default): Bandwidth billing.",
      "AllowedValues": [
        "PayByTraffic",
        "PayByBandwidth"
      ]
    }
  },
  "Resources": {
    "Ipv6InternetBandwidth": {
      "Type": "ALIYUN::VPC::Ipv6InternetBandwidth",
      "Properties": {
        "Bandwidth": {
          "Ref": "Bandwidth"
        },
        "Ipv6AddressId": {
          "Ref": "Ipv6AddressId"
        },
        "Ipv6GatewayId": {
          "Ref": "Ipv6GatewayId"
        },
        "InternetChargeType": {
          "Ref": "InternetChargeType"
        }
      }
    }
  },
  "Outputs": {
    "InternetBandwidthId": {
      "Description": "Purchase of public network bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "Ipv6InternetBandwidth",
          "InternetBandwidthId"
        ]
      }
    }
  }
}

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Bandwidth:
    Type: Number
    Description: >-
      Public IPv6 address of bandwidth, unit: Mbps, range: 1-5000.

      When InternetChargeType is PayByBandwidth, the bandwidth of the public
      network is the IPv6 address 1-5000.

      When InternetChargeType is PayByTraffic, public network bandwidth IPv6
      addresses while IPv6 gateway restricted specifications.

      Small (default free version), the public network bandwidth range 1-500.

      Medium (Enterprise Edition), the public network bandwidth range from 1 to
      1000.

      Large (Enterprise Edition), the public network bandwidth range 1-2000.
    MinValue: 1
    MaxValue: 5000
  Ipv6AddressId:
    Type: String
    Description: ID of IPv6 address.
  Ipv6GatewayId:
    Type: String
    Description: ID of IPv6 gateway.
  InternetChargeType:
    Type: String
    Description: |-
      IPv6 public network bandwidth billing, value:
      PayByTraffic: by using the traffic accounting.
      PayByBandwidth (default): Bandwidth billing.
    AllowedValues:
      - PayByTraffic
      - PayByBandwidth
Resources:
  Ipv6InternetBandwidth:
    Type: 'ALIYUN::VPC::Ipv6InternetBandwidth'
    Properties:
      Bandwidth:
        Ref: Bandwidth
      Ipv6AddressId:
        Ref: Ipv6AddressId
      Ipv6GatewayId:
        Ref: Ipv6GatewayId
      InternetChargeType:
        Ref: InternetChargeType
Outputs:
  InternetBandwidthId:
    Description: Purchase of public network bandwidth.
    Value:
      'Fn::GetAtt':
        - Ipv6InternetBandwidth
        - InternetBandwidthId