Interface NetworkAclProps

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:06.230Z") @Stability(Stable) public interface NetworkAclProps extends software.amazon.jsii.JsiiSerializable
Properties to create NetworkAcl.

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.*;
 Subnet subnet;
 SubnetFilter subnetFilter;
 Vpc vpc;
 NetworkAclProps networkAclProps = NetworkAclProps.builder()
         .vpc(vpc)
         // the properties below are optional
         .networkAclName("networkAclName")
         .subnetSelection(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.PRIVATE_ISOLATED)
                 .build())
         .build();
 
  • Method Details

    • getVpc

      @Stability(Stable) @NotNull IVpc getVpc()
      The VPC in which to create the NetworkACL.
    • getNetworkAclName

      @Stability(Stable) @Nullable default String getNetworkAclName()
      The name of the NetworkAcl.

      Since the NetworkAcl resource doesn't support providing a physical name, the value provided here will be recorded in the Name tag.

      Default: CDK generated name

    • getSubnetSelection

      @Stability(Stable) @Nullable default SubnetSelection getSubnetSelection()
      Subnets in the given VPC to associate the ACL with.

      More subnets can always be added later by calling associateWithSubnets().

      Default: - No subnets associated

    • builder

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