Class PrefixList
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.PrefixList
- All Implemented Interfaces:
IPrefixListRef,IEnvironmentAware,IResource,IConnectable,IPeer,IPrefixList,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:35.415Z")
@Stability(Stable)
public class PrefixList
extends Resource
implements IPrefixList
A managed prefix list.
Example:
PrefixList.fromLookup(this, "PrefixListFromName", PrefixListLookupOptions.builder()
.prefixListName("com.amazonaws.global.cloudfront.origin-facing")
.build());
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IPrefixList
IPrefixList.Jsii$Default, IPrefixList.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPrefixList(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedPrefixList(software.amazon.jsii.JsiiObjectRef objRef) PrefixList(software.constructs.Construct scope, String id) PrefixList(software.constructs.Construct scope, String id, PrefixListProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IPrefixListfromLookup(software.constructs.Construct scope, String id, PrefixListLookupOptions options) Look up prefix list by name.static IPrefixListfromPrefixListId(software.constructs.Construct scope, String id, String prefixListId) Look up prefix list by id.The address family of the prefix list.Whether the rule can be inlined into a SecurityGroup or not.The network connections associated with this resource.The owner ID of the prefix list.The ARN of the prefix list.The ID of the prefix list.The name of the prefix list.A reference to a PrefixList resource.A unique identifier for this connection peer.The version of the prefix list.Produce the egress rule JSON for the given connection.Produce the ingress rule JSON for the given connection.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.services.ec2.IPrefixList
getEnv, getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
PrefixList
protected PrefixList(software.amazon.jsii.JsiiObjectRef objRef) -
PrefixList
protected PrefixList(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
PrefixList
@Stability(Stable) public PrefixList(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable PrefixListProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
PrefixList
@Stability(Stable) public PrefixList(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromLookup
@Stability(Stable) @NotNull public static IPrefixList fromLookup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull PrefixListLookupOptions options) Look up prefix list by name.- Parameters:
scope- This parameter is required.id- This parameter is required.options- This parameter is required.
-
fromPrefixListId
@Stability(Stable) @NotNull public static IPrefixList fromPrefixListId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String prefixListId) Look up prefix list by id.- Parameters:
scope- This parameter is required.id- This parameter is required.prefixListId- This parameter is required.
-
toEgressRuleConfig
Produce the egress rule JSON for the given connection.- Specified by:
toEgressRuleConfigin interfaceIPeer
-
toIngressRuleConfig
Produce the ingress rule JSON for the given connection.- Specified by:
toIngressRuleConfigin interfaceIPeer
-
getAddressFamily
The address family of the prefix list. -
getCanInlineRule
Whether the rule can be inlined into a SecurityGroup or not.- Specified by:
getCanInlineRulein interfaceIPeer
-
getConnections
The network connections associated with this resource.- Specified by:
getConnectionsin interfaceIConnectable
-
getOwnerId
The owner ID of the prefix list. -
getPrefixListArn
The ARN of the prefix list. -
getPrefixListId
The ID of the prefix list.- Specified by:
getPrefixListIdin interfaceIPrefixList
-
getPrefixListName
The name of the prefix list. -
getPrefixListRef
A reference to a PrefixList resource.- Specified by:
getPrefixListRefin interfaceIPrefixListRef
-
getUniqueId
A unique identifier for this connection peer.- Specified by:
getUniqueIdin interfaceIPeer
-
getVersion
The version of the prefix list.
-