alicloud_vpc_prefix_lists

This data source provides the Vpc Prefix Lists of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_vpc_prefix_lists" "ids" {}
output "vpc_prefix_list_id_1" {
  value = data.alicloud_vpc_prefix_lists.ids.lists.0.id
}

data "alicloud_vpc_prefix_lists" "nameRegex" {
  name_regex = "^my-PrefixList"
}
output "vpc_prefix_list_id_2" {
  value = data.alicloud_vpc_prefix_lists.nameRegex.lists.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

The following attributes are exported in addition to the arguments listed above: