AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

PrefixList

A managed prefix list.

Import

import { PrefixList } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.PrefixList

Properties

Configuration passed to the constructor as PrefixListProps.

addressFamilyOptional
AddressFamily

The address family of the prefix list.

Default: AddressFamily.IP_V4

entriesOptional
EntryProperty[]

The list of entries for the prefix list.

Default: []

prefixListNameOptional
string

The name of the prefix list.

Default: None

1 property inherited from PrefixListOptions
maxEntriesOptionalinherited from PrefixListOptions
number

The maximum number of entries for the prefix list.

Default: Automatically-calculated

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic