全部产品
Search
文档中心

资源编排:ALIYUN::VPC::Ipv4Gateway

更新时间:Mar 01, 2023

ALIYUN::VPC::Ipv4Gateway类型用于接口创建IPv4网关。

语法

{
  "Type": "ALIYUN::VPC::Ipv4Gateway",
  "Properties": {
    "Ipv4GatewayName": String,
    "VpcId": String,
    "Ipv4GatewayDescription": String
  }
}

属性

属性名称类型必须允许更新描述约束
Ipv4GatewayNameString创建的IPv4网关的名称。名称长度为1~128个字符,不能以http://https://开头。
VpcIdString创建的IPv4网关所在VPC的ID。一个VPC仅支持创建一个IPv4网关。
Ipv4GatewayDescriptionString创建的IPv4网关的描述信息。描述长度为1~256个字符,不能以http://https://开头。

返回值

Fn::GetAtt

  • Ipv4GatewayName:IPv4网关的名称。
  • Ipv4GatewayRouteTableId:IPv4网关实例关联的路由表ID。
  • Ipv4GatewayId:IPv4网关的实例ID。
  • VpcId:IPv4网关实例关联的VPC的ID。
  • CreateTime:创建时间。
  • Ipv4GatewayDescription:IPv4网关实例的描述信息。

示例

  • YAML格式

    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
  • 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"
            ]
          }
        }
      }
    }