DATASOURCE::VPC::RouteEntries类型用于查询路由条目列表。
语法
{
  "Type": "DATASOURCE::VPC::RouteEntries",
  "Properties": {
    "NextHopType": String,
    "RouteEntryId": String,
    "RouteTableId": String,
    "IpVersion": String,
    "RouteEntryName": String,
    "RouteEntryType": String,
    "NextHopId": String,
    "DestinationCidrBlock": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| NextHopType | String | 否 | 是 | 下一跳实例类型。 | 取值: 
 | 
| RouteEntryId | String | 否 | 是 | 路由条目ID。 | 无 | 
| RouteTableId | String | 是 | 是 | 路由表ID。 | 无 | 
| IpVersion | String | 否 | 是 | IP协议版本。 | 取值: 
 | 
| RouteEntryName | String | 否 | 是 | 路由条目的名称。 | 无 | 
| RouteEntryType | String | 否 | 是 | 路由条目的类型。 | 取值: 
 | 
| NextHopId | String | 否 | 是 | 下一跳实例ID。 | 无 | 
| DestinationCidrBlock | String | 否 | 是 | 路由条目的目标网段。 | 支持IPv4和IPv6网段。 取值示例:192.168.2.0/24。 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回数据(Fn::GetAtt)
- RouteEntryIds:路由条目ID列表。 
- RouteEntries:路由条目信息详情。 
| 属性名称 | 类型 | 描述 | 约束 | 
| RouteEntryIds | List | 路由条目ID列表。 | 取值示例: | 
| RouteEntries | List | 路由条目信息详情。 | 无 | 
| Status | String | 路由条目的状态。 | 取值: 
 | 
| Type | String | 路由条目的类型。 | 取值: 
 | 
| IpVersion | String | IP协议版本。 | 取值: 
 | 
| Description | String | 路由条目的描述信息。 | 无 | 
| RouteEntryName | String | 路由条目的名称。 | 无 | 
| DestinationCidrBlock | String | 路由条目的目标网段。 | 无 | 
| RouteEntryId | String | 路由条目的ID。 | 无 | 
| RouteTableId | String | 路由表ID。 | 无 | 
| NextHops | List | 下一跳信息。 | 取值示例: | 
示例
JSON格式
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RouteTableId": {
      "Type": "String",
      "Description": "The ID of the route."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::RouteEntries",
      "Properties": {
        "RouteTableId": {
          "Ref": "RouteTableId"
        }
      }
    }
  },
  "Outputs": {
    "RouteEntries": {
      "Description": "The list of The route entries.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouteEntries"
        ]
      }
    },
    "RouteEntryIds": {
      "Description": "the list of the route entry ids.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "RouteEntryIds"
        ]
      }
    }
  }
}