Interface CfnPrefixListProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPrefixListProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.909Z") @Stability(Stable) public interface CfnPrefixListProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnPrefixList.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CfnPrefixListProps cfnPrefixListProps = CfnPrefixListProps.builder()
         .addressFamily("addressFamily")
         .maxEntries(123)
         .prefixListName("prefixListName")
         // the properties below are optional
         .entries(List.of(EntryProperty.builder()
                 .cidr("cidr")
                 // the properties below are optional
                 .description("description")
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getAddressFamily

      @Stability(Stable) @NotNull String getAddressFamily()
      The IP address type.

      Valid Values: IPv4 | IPv6

    • getMaxEntries

      @Stability(Stable) @NotNull Number getMaxEntries()
      The maximum number of entries for the prefix list.
    • getPrefixListName

      @Stability(Stable) @NotNull String getPrefixListName()
      A name for the prefix list.

      Constraints: Up to 255 characters in length. The name cannot start with com.amazonaws .

    • getEntries

      @Stability(Stable) @Nullable default Object getEntries()
      One or more entries for the prefix list.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      The tags for the prefix list.
    • builder

      @Stability(Stable) static CfnPrefixListProps.Builder builder()
      Returns:
      a CfnPrefixListProps.Builder of CfnPrefixListProps