DATASOURCE::VPC::Ipv4Gateway类型用于查询指定IPv4网关实例的列表信息。
语法
{
  "Type": "DATASOURCE::VPC::Ipv4Gateway",
  "Properties": {
    "Ipv4GatewayId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| Ipv4GatewayId | String | 是 | 是 | 要查询的IPv4网关实例的ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- Ipv4GatewayName:IPv4网关实例的名称。 
- Ipv4GatewayRouteTableId:IPv4 网关实例关联的路由表ID。 
- Ipv4GatewayId:IPv4网关的实例ID。 
- VpcId:要查询的 IPv4网关实例关联的VPC的ID。 
- CreateTime:资源的创建时间。 
- Enabled:IPv4网关实例是否已经激活。 
- Ipv4GatewayDescription:IPv4网关实例的描述信息。 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Ipv4GatewayId:
    Description:
      en: The resource attribute field that represents the resource level 1 ID.
    Required: true
    Type: String
Resources:
  ExtensionDataSource:
    Properties:
      Ipv4GatewayId:
        Ref: Ipv4GatewayId
    Type: DATASOURCE::VPC::Ipv4Gateway
Outputs:
  CreateTime:
    Description: The creation time of the resource.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - CreateTime
  Enabled:
    Description: Enabled.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Enabled
  Ipv4GatewayDescription:
    Description: Description information.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ipv4GatewayDescription
  Ipv4GatewayId:
    Description: The resource attribute field that represents the resource level 1
      ID.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ipv4GatewayId
  Ipv4GatewayName:
    Description: Resource name.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ipv4GatewayName
  Ipv4GatewayRouteTableId:
    Description: ID of the route table associated with IPv4 Gateway.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - Ipv4GatewayRouteTableId
  VpcId:
    Description: The ID of the VPC associated with the IPv4 Gateway.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - VpcId
                                                {
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Ipv4GatewayId": {
      "Type": "String",
      "Description": {
        "en": "The resource attribute field that represents the resource level 1 ID."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::Ipv4Gateway",
      "Properties": {
        "Ipv4GatewayId": {
          "Ref": "Ipv4GatewayId"
        }
      }
    }
  },
  "Outputs": {
    "Ipv4GatewayName": {
      "Description": "Resource name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ipv4GatewayName"
        ]
      }
    },
    "Ipv4GatewayRouteTableId": {
      "Description": "ID of the route table associated with IPv4 Gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ipv4GatewayRouteTableId"
        ]
      }
    },
    "Ipv4GatewayId": {
      "Description": "The resource attribute field that represents the resource level 1 ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ipv4GatewayId"
        ]
      }
    },
    "VpcId": {
      "Description": "The ID of the VPC associated with the IPv4 Gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "VpcId"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "CreateTime"
        ]
      }
    },
    "Enabled": {
      "Description": "Enabled.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Enabled"
        ]
      }
    },
    "Ipv4GatewayDescription": {
      "Description": "Description information.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Ipv4GatewayDescription"
        ]
      }
    }
  }
}
                        该文章对您有帮助吗?