# PrefixListProps

Properties for creating a prefix list.

Extends: [PrefixListOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.PrefixListOptions.html)
Used as props by: [PrefixList](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.PrefixList.html)

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

## Example

TypeScript:

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

Python:

```python
ec2.PrefixList(self, "EmptyPrefixList",
    max_entries=100
)
```

Java:

```java
PrefixList.Builder.create(this, "EmptyPrefixList")
        .maxEntries(100)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
new PrefixList(this, "EmptyPrefixList", new PrefixListProps {
    MaxEntries = 100
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
ec2.NewPrefixList(this, jsii.String("EmptyPrefixList"), &PrefixListProps{
	MaxEntries: jsii.Number(100),
})
```

## Properties

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

- `entries`: [CfnPrefixList.EntryProperty](https://docs.aws.amazon.com/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.
