# PrefixListLookupOptions

Properties for looking up an existing managed prefix list.

- 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#L122)
- Type last changed: v2.186.0 · 27 Mar 2025

## Example

```ts
declare const alb: elbv2.ApplicationLoadBalancer;

const cfOriginFacing = ec2.PrefixList.fromLookup(this, 'CloudFrontOriginFacing', {
  prefixListName: 'com.amazonaws.global.cloudfront.origin-facing',
});
alb.connections.allowFrom(cfOriginFacing, ec2.Port.HTTP);
```

## Properties

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

  **Default:** Don't filter on addressFamily

- `ownerId`: string — The ID of the AWS account that owns the managed prefix list.

  **Default:** Don't filter on ownerId

- `prefixListName`: string (required) — The name of the managed prefix list.
