aws-cdk-lib.aws_ec2.PrefixListProps

interface PrefixListProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.PrefixListProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#PrefixListProps
Javasoftware.amazon.awscdk.services.ec2.PrefixListProps
Pythonaws_cdk.aws_ec2.PrefixListProps
TypeScript (source)aws-cdk-lib » aws_ec2 » PrefixListProps

Properties for creating a prefix list.

Example

new ec2.PrefixList(this, 'EmptyPrefixList', {
  maxEntries: 100,
});

Properties

NameTypeDescription
addressFamily?AddressFamilyThe address family of the prefix list.
entries?EntryProperty[]The list of entries for the prefix list.
maxEntries?numberThe maximum number of entries for the prefix list.
prefixListName?stringThe name of the prefix list.

addressFamily?

Type: AddressFamily (optional, default: AddressFamily.IP_V4)

The address family of the prefix list.


entries?

Type: EntryProperty[] (optional, default: [])

The list of entries for the prefix list.


maxEntries?

Type: number (optional, default: Automatically-calculated)

The maximum number of entries for the prefix list.


prefixListName?

Type: string (optional, default: None)

The name of the prefix list.