interface PrefixListLookupOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.PrefixListLookupOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#PrefixListLookupOptions |
Java | software.amazon.awscdk.services.ec2.PrefixListLookupOptions |
Python | aws_cdk.aws_ec2.PrefixListLookupOptions |
TypeScript (source) | aws-cdk-lib » aws_ec2 » PrefixListLookupOptions |
Properties for looking up an existing managed prefix list.
Example
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
| Name | Type | Description |
|---|---|---|
| prefix | string | The name of the managed prefix list. |
| address | Address | The address family of the managed prefix list. |
| owner | string | The ID of the AWS account that owns the managed prefix list. |
prefixListName
Type:
string
The name of the managed prefix list.
addressFamily?
Type:
Address
(optional, default: Don't filter on addressFamily)
The address family of the managed prefix list.
ownerId?
Type:
string
(optional, default: Don't filter on ownerId)
The ID of the AWS account that owns the managed prefix list.

.NET
Go
Java
Python
TypeScript (