ALIYUN::VPC::Ipv4Gateway类型用于接口创建IPv4网关。
语法
{
"Type": "ALIYUN::VPC::Ipv4Gateway",
"Properties": {
"Ipv4GatewayName": String,
"VpcId": String,
"Ipv4GatewayDescription": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Ipv4GatewayName | String | 否 | 是 | 创建的IPv4网关的名称。 | 名称长度为1~128个字符,不能以http:// 或https:// 开头。 |
VpcId | String | 是 | 否 | 创建的IPv4网关所在VPC的ID。 | 一个VPC仅支持创建一个IPv4网关。 |
Ipv4GatewayDescription | String | 否 | 是 | 创建的IPv4网关的描述信息。 | 描述长度为1~256个字符,不能以http:// 或https:// 开头。 |
返回值
Fn::GetAtt
- Ipv4GatewayName:IPv4网关的名称。
- Ipv4GatewayRouteTableId:IPv4网关实例关联的路由表ID。
- Ipv4GatewayId:IPv4网关的实例ID。
- VpcId:IPv4网关实例关联的VPC的ID。
- CreateTime:创建时间。
- Ipv4GatewayDescription:IPv4网关实例的描述信息。
示例
JSON
格式{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "VpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId", "Description": "The ID of the VPC associated with the IPv4 Gateway." } }, "Resources": { "ExtensionResource": { "Type": "ALIYUN::VPC::Ipv4Gateway", "Properties": { "Ipv4GatewayName": "TestIpv4GatewayName", "VpcId": { "Ref": "VpcId" } } } }, "Outputs": { "Ipv4GatewayName": { "Description": "Resource name.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Ipv4GatewayName" ] } }, "Ipv4GatewayRouteTableId": { "Description": "ID of the route table associated with IPv4 Gateway.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Ipv4GatewayRouteTableId" ] } }, "Ipv4GatewayId": { "Description": "The resource attribute field that represents the resource level 1 ID.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Ipv4GatewayId" ] } }, "VpcId": { "Description": "The ID of the VPC associated with the IPv4 Gateway.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "VpcId" ] } }, "CreateTime": { "Description": "The creation time of the resource.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "CreateTime" ] } }, "Ipv4GatewayDescription": { "Description": "Description information.", "Value": { "Fn::GetAtt": [ "ExtensionResource", "Ipv4GatewayDescription" ] } } } }