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:
IResource, IPrefixList, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.234Z") @Stability(Stable) public class PrefixList extends Resource implements IPrefixList
A managed prefix list.

Example:

 PrefixList.Builder.create(this, "EmptyPrefixList")
         .maxEntries(100)
         .build();
 
  • 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

    • 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.
    • getAddressFamily

      @Stability(Stable) @NotNull public String getAddressFamily()
      The address family of the prefix list.
    • getOwnerId

      @Stability(Stable) @NotNull public String getOwnerId()
      The owner ID of the prefix list.
    • getPrefixListArn

      @Stability(Stable) @NotNull public String getPrefixListArn()
      The ARN of the prefix list.
    • getPrefixListId

      @Stability(Stable) @NotNull public String getPrefixListId()
      The ID of the prefix list.
      Specified by:
      getPrefixListId in interface IPrefixList
    • getPrefixListName

      @Stability(Stable) @NotNull public String getPrefixListName()
      The name of the prefix list.
    • getVersion

      @Stability(Stable) @NotNull public Number getVersion()
      The version of the prefix list.