ALIYUN::VPC::Ipv6Gateway类型用于创建IPv6网关。
语法
{
"Type": "ALIYUN::VPC::Ipv6Gateway",
"Properties": {
"Description": String,
"VpcId": String,
"Spec": String,
"Name": String,
"Tags": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Description | String | 否 | 是 | IPv6网关的描述信息。 | 长度为2~256个字符。必须以英文字母或汉字开头,不能以 |
VpcId | String | 是 | 否 | 要开通IPv6网关的专有网络ID。 | 无 |
Spec | String | 否 | 是 | IPv6网关的规格。 | 取值:
|
Name | String | 否 | 是 | IPv6网关的名称。 | 长度为2~256个字符。必须以英文字母或汉字开头,不能以 |
Tags | List | 否 | 是 | 标签。 | 最多支持添加20个标签。 更多信息,请参见Tags属性。 |
Tags语法
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Key | String | 是 | 否 | 标签键。 | 长度为1~128个字符,不能以 |
Value | String | 否 | 否 | 标签值。 | 长度为0~128个字符,不能以 |
返回值
Fn::GetAtt
Ipv6GatewayId:IPv6网关的ID。
Arn:阿里云资源名称。
示例
YAML
JSON
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VPC:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description: Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud
Label: Existing VPC Instance ID
Resources:
Ipv6Gateway:
Type: ALIYUN::VPC::Ipv6Gateway
Properties:
VpcId:
Ref: VPC
Spec: Small
Outputs:
Ipv6GatewayId:
Description: ID IPv6 gateway.
Value:
Fn::GetAtt:
- Ipv6Gateway
- Ipv6GatewayId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VPC": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": "Please search the ID starts with (vpc-xxx)from console-Virtual Private Cloud",
"Label": "Existing VPC Instance ID"
}
},
"Resources": {
"Ipv6Gateway": {
"Type": "ALIYUN::VPC::Ipv6Gateway",
"Properties": {
"VpcId": {
"Ref": "VPC"
},
"Spec": "Small"
}
}
},
"Outputs": {
"Ipv6GatewayId": {
"Description": "ID IPv6 gateway.",
"Value": {
"Fn::GetAtt": [
"Ipv6Gateway",
"Ipv6GatewayId"
]
}
}
}
}
该文章对您有帮助吗?
- 本页导读 (1)
- 语法
- 属性
- Tags语法
- Tags属性
- 返回值
- 示例