# PrefixListProps

Properties for creating a prefix list.

Extends: PrefixListProps
Extends: PrefixListOptions
Used as props by: PrefixList

- Source: [`aws-ec2/lib/prefix-list.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ec2/lib/prefix-list.ts#L48)
- Type last changed: v2.78.0 · 4 May 2023

## Example

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

## Properties

- `addressFamily`: [AddressFamily](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.AddressFamily.html) = AddressFamily.IP_V4 — The address family of the prefix list.

- `entries`: [CfnPrefixList.EntryProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnPrefixList.EntryProperty.html)[] = [] — The list of entries for the prefix list.

- `maxEntries`: number = Automatically-calculated — The maximum number of entries for the prefix list.

- `prefixListName`: string = None — The name of the prefix list.
