Interface PrefixListLookupOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PrefixListLookupOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:35.416Z")
@Stability(Stable)
public interface PrefixListLookupOptions
extends software.amazon.jsii.JsiiSerializable
Properties for looking up an existing managed prefix list.
Example:
ApplicationLoadBalancer alb;
IPrefixList cfOriginFacing = PrefixList.fromLookup(this, "CloudFrontOriginFacing", PrefixListLookupOptions.builder()
.prefixListName("com.amazonaws.global.cloudfront.origin-facing")
.build());
alb.connections.allowFrom(cfOriginFacing, Port.HTTP);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPrefixListLookupOptionsstatic final classAn implementation forPrefixListLookupOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default AddressFamilyThe address family of the managed prefix list.default StringThe ID of the AWS account that owns the managed prefix list.The name of the managed prefix list.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPrefixListName
The name of the managed prefix list. -
getAddressFamily
The address family of the managed prefix list.Default: - Don't filter on addressFamily
-
getOwnerId
The ID of the AWS account that owns the managed prefix list.Default: - Don't filter on ownerId
-
builder
- Returns:
- a
PrefixListLookupOptions.BuilderofPrefixListLookupOptions
-