DATASOURCE::VPC::PrefixLists类型用于查询前缀的列表信息。
语法
{
  "Type": "DATASOURCE::VPC::PrefixLists",
  "Properties": {
    "PrefixListName": String,
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}属性
| 属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 | 
| PrefixListName | String | 否 | 是 | 要查询的前缀列表的名称。 | 名称长度为1~128个字符,不能以 | 
| ResourceGroupId | String | 否 | 是 | VPC所属的资源组ID。 | 无 | 
| RefreshOptions | String | 否 | 是 | 当资源栈更新时,数据源资源的刷新策略。 | 有效值: 
 | 
返回值
Fn::GetAtt
- PrefixListIds:查询到的前缀列表ID的列表信息。 
- PrefixLists:查询到的前缀列表的列表信息。 
| 属性名称 | 类型 | 描述 | 约束 | 
| PrefixListIds | List | 查询到的前缀列表ID的列表信息。 | 无 | 
| PrefixLists | List | 查询到的前缀的列表信息。 | 无 | 
| MaxEntries | Number | 前缀列表中CIDR地址块的最大条目数。 | 无 | 
| Status | String | 前缀列表的状态。 | 取值: 
 | 
| ShareType | String | 前缀列表的共享类型。 | 取值: 
 | 
| PrefixListName | String | 前缀列表的名称。 | 无 | 
| IpVersion | String | 前缀列表的IP版本。 | 取值: 
 | 
| ResourceGroupId | String | 资源组ID。 | 无 | 
| Entries | List | 前缀列表的CIDR地址块信息。 | 示例:  | 
| OwnerId | String | 前缀列表所属的阿里云账号(主账号)。 | 无 | 
| PrefixListId | String | 查询到的前缀列表ID。 | 无 | 
| CreateTime | String | 前缀列表的创建时间。 | 无 | 
| PrefixListDescription | String | 前缀列表的描述信息。 | 无 | 
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Resources:
  ExtensionDataSource:
    Properties:
      PrefixListName: Test
    Type: DATASOURCE::VPC::PrefixLists
Outputs:
  PrefixListIds:
    Description: The list of prefix list IDs.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PrefixListIds
  PrefixLists:
    Description: The list of prefix lists.
    Value:
      Fn::GetAtt:
      - ExtensionDataSource
      - PrefixLists{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::VPC::PrefixLists",
      "Properties": {
        "PrefixListName": "Test"
      }
    }
  },
  "Outputs": {
    "PrefixListIds": {
      "Description": "The list of prefix list IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrefixListIds"
        ]
      }
    },
    "PrefixLists": {
      "Description": "The list of prefix lists.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "PrefixLists"
        ]
      }
    }
  }
}