Skip to content

Data Source: awsEc2PublicIpv4Pool

Provides details about a specific AWS EC2 Public IPv4 Pool.

Example Usage

Basic Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2PublicIpv4Pool.DataAwsEc2PublicIpv4Pool(this, "example", {
  poolId: "ipv4pool-ec2-000df99cff0c1ec10",
});

Argument Reference

The following arguments are required:

  • poolId - (Required) AWS resource IDs of a public IPv4 pool (as a string) for which this data source will fetch detailed information.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • description - Description of the pool, if any.
  • networkBorderGroup - Name of the location from which the address pool is advertised.
  • pool_address_ranges` - List of Address Ranges in the Pool; each address range record contains:
  • addressCount - Number of addresses in the range.
  • availableAddressCount - Number of available addresses in the range.
  • firstAddress - First address in the range.
  • lastAddress - Last address in the range.
  • tags - Any tags for the address pool.
  • totalAddressCount - Total number of addresses in the pool.
  • totalAvailableAddressCount - Total number of available addresses in the pool.