ALIYUN::VPC::Ipv6InternetBandwidth类型用于为IPv6地址购买公网带宽。
语法
{
"Type": "ALIYUN::VPC::Ipv6InternetBandwidth",
"Properties": {
"Bandwidth": Integer,
"Ipv6AddressId": String,
"Ipv6GatewayId": String,
"InternetChargeType": String,
"Tags": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Bandwidth | Integer | 是 | 是 | IPv6地址的公网带宽。 | 取值范围:
单位:Mbps。 |
Ipv6AddressId | String | 是 | 否 | IPv6地址的实例ID。 | 无 |
Ipv6GatewayId | String | 是 | 否 | IPv6网关的ID。 | 无 |
InternetChargeType | String | 否 | 否 | IPv6公网带宽的计费方式。 | 取值:
|
Tags | List | 否 | 是 | 标签。 | 最多支持添加20个标签。 更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
---|---|---|---|---|---|
Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以aliyun 和acs: 开头,不能包含http:// 或者https:// 。 |
Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以aliyun 和acs: 开头,不能包含http:// 或者https:// 。 |
返回值
Fn::GetAtt
InternetBandwidthId:公网带宽ID。
示例
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "Ipv6AddressId": { "Type": "String", "Description": "ID of IPv6 address." }, "Ipv6GatewayId": { "Type": "String", "Description": "ID of IPv6 gateway." } }, "Resources": { "Ipv6InternetBandwidth": { "Type": "ALIYUN::VPC::Ipv6InternetBandwidth", "Properties": { "Bandwidth": 5000, "Ipv6AddressId": { "Ref": "Ipv6AddressId" }, "Ipv6GatewayId": { "Ref": "Ipv6GatewayId" } } } }, "Outputs": { "InternetBandwidthId": { "Description": "Purchase of public network bandwidth.", "Value": { "Fn::GetAtt": [ "Ipv6InternetBandwidth", "InternetBandwidthId" ] } } } }
更多示例,请参见创建专有网络、创建专有网络中的交换机、在SNAT列表中添加SNAT条目、创建共享带宽实例、添加EIP到共享带宽中、创建IPv6网关和为IPv6地址购买公网带宽的组合示例:JSON示例和YAML示例。