Interface ConfigureNatOptions

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.278Z") @Stability(Stable) public interface ConfigureNatOptions extends software.amazon.jsii.JsiiSerializable
Options passed by the VPC when NAT needs to be configured.

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.*;
 PrivateSubnet privateSubnet;
 PublicSubnet publicSubnet;
 Vpc vpc;
 ConfigureNatOptions configureNatOptions = ConfigureNatOptions.builder()
         .natSubnets(List.of(publicSubnet))
         .privateSubnets(List.of(privateSubnet))
         .vpc(vpc)
         .build();
 
  • Method Details

    • getNatSubnets

      @Stability(Stable) @NotNull List<PublicSubnet> getNatSubnets()
      The public subnets where the NAT providers need to be placed.
    • getPrivateSubnets

      @Stability(Stable) @NotNull List<PrivateSubnet> getPrivateSubnets()
      The private subnets that need to route through the NAT providers.

      There may be more private subnets than public subnets with NAT providers.

    • getVpc

      @Stability(Stable) @NotNull Vpc getVpc()
      The VPC we're configuring NAT for.
    • builder

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