Class VpcProps.Jsii$Proxy

All Implemented Interfaces:
Enclosing interface:

@Stability(Stable) @Internal public static final class VpcProps.Jsii$Proxy extends implements VpcProps
An implementation for VpcProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy( objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(VpcProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the VpcProps.Builder.
  • Method Details

    • getCidr

      public final String getCidr()
      Description copied from interface: VpcProps
      The CIDR range to use for the VPC, e.g. ''.

      Should be a minimum of /28 and maximum size of /16. The range will be split across all subnets per Availability Zone.

      Default: Vpc.DEFAULT_CIDR_RANGE

      Specified by:
      getCidr in interface VpcProps
    • getDefaultInstanceTenancy

      public final DefaultInstanceTenancy getDefaultInstanceTenancy()
      Description copied from interface: VpcProps
      The default tenancy of instances launched into the VPC.

      By setting this to dedicated tenancy, instances will be launched on hardware dedicated to a single AWS customer, unless specifically specified at instance launch time. Please note, not all instance types are usable with Dedicated tenancy.

      Default: DefaultInstanceTenancy.Default (shared) tenancy

      Specified by:
      getDefaultInstanceTenancy in interface VpcProps
    • getEnableDnsHostnames

      public final Boolean getEnableDnsHostnames()
      Description copied from interface: VpcProps
      Indicates whether the instances launched in the VPC get public DNS hostnames.

      If this attribute is true, instances in the VPC get public DNS hostnames, but only if the enableDnsSupport attribute is also set to true.

      Default: true

      Specified by:
      getEnableDnsHostnames in interface VpcProps
    • getEnableDnsSupport

      public final Boolean getEnableDnsSupport()
      Description copied from interface: VpcProps
      Indicates whether the DNS resolution is supported for the VPC.

      If this attribute is false, the Amazon-provided DNS server in the VPC that resolves public DNS hostnames to IP addresses is not enabled. If this attribute is true, queries to the Amazon provided DNS server at the IP address, or the reserved IP address at the base of the VPC IPv4 network range plus two will succeed.

      Default: true

      Specified by:
      getEnableDnsSupport in interface VpcProps
    • getFlowLogs

      public final Map<String,FlowLogOptions> getFlowLogs()
      Description copied from interface: VpcProps
      Flow logs to add to this VPC.

      Default: - No flow logs.

      Specified by:
      getFlowLogs in interface VpcProps
    • getGatewayEndpoints

      public final Map<String,GatewayVpcEndpointOptions> getGatewayEndpoints()
      Description copied from interface: VpcProps
      Gateway endpoints to add to this VPC.

      Default: - None.

      Specified by:
      getGatewayEndpoints in interface VpcProps
    • getMaxAzs

      public final Number getMaxAzs()
      Description copied from interface: VpcProps
      Define the maximum number of AZs to use in this region.

      If the region has more AZs than you want to use (for example, because of EIP limits), pick a lower number here. The AZs will be sorted and picked from the start of the list.

      If you pick a higher number than the number of AZs in the region, all AZs in the region will be selected. To use "all AZs" available to your account, use a high number (such as 99).

      Be aware that environment-agnostic stacks will be created with access to only 2 AZs, so to use more than 2 AZs, be sure to specify the account and region on your stack.

      Default: 3

      Specified by:
      getMaxAzs in interface VpcProps
    • getNatGatewayProvider

      public final NatProvider getNatGatewayProvider()
      Description copied from interface: VpcProps
      What type of NAT provider to use.

      Select between NAT gateways or NAT instances. NAT gateways may not be available in all AWS regions.

      Default: NatProvider.gateway()

      Specified by:
      getNatGatewayProvider in interface VpcProps
    • getNatGateways

      public final Number getNatGateways()
      Description copied from interface: VpcProps
      The number of NAT Gateways/Instances to create.

      The type of NAT gateway or instance will be determined by the natGatewayProvider parameter.

      You can set this number lower than the number of Availability Zones in your VPC in order to save on NAT cost. Be aware you may be charged for cross-AZ data traffic instead.

      Default: - One NAT gateway/instance per Availability Zone

      Specified by:
      getNatGateways in interface VpcProps
    • getNatGatewaySubnets

      public final SubnetSelection getNatGatewaySubnets()
      Description copied from interface: VpcProps
      Configures the subnets which will have NAT Gateways/Instances.

      You can pick a specific group of subnets by specifying the group name; the picked subnets must be public subnets.

      Only necessary if you have more than one public subnet group.

      Default: - All public subnets.

      Specified by:
      getNatGatewaySubnets in interface VpcProps
    • getSubnetConfiguration

      public final List<SubnetConfiguration> getSubnetConfiguration()
      Description copied from interface: VpcProps
      Configure the subnets to build for each AZ.

      Each entry in this list configures a Subnet Group; each group will contain a subnet for each Availability Zone.

      For example, if you want 1 public subnet, 1 private subnet, and 1 isolated subnet in each AZ provide the following:

       Vpc.Builder.create(this, "VPC")
                       .build(), SubnetConfiguration.builder()
                       .build(), SubnetConfiguration.builder()

      Default: - The VPC CIDR will be evenly divided between 1 public and 1 private subnet per AZ.

      Specified by:
      getSubnetConfiguration in interface VpcProps
    • getVpcName

      public final String getVpcName()
      Description copied from interface: VpcProps
      The VPC name.

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

      Default: this.node.path

      Specified by:
      getVpcName in interface VpcProps
    • getVpnConnections

      public final Map<String,VpnConnectionOptions> getVpnConnections()
      Description copied from interface: VpcProps
      VPN connections to this VPC.

      Default: - No connections.

      Specified by:
      getVpnConnections in interface VpcProps
    • getVpnGateway

      public final Boolean getVpnGateway()
      Description copied from interface: VpcProps
      Indicates whether a VPN gateway should be created and attached to this VPC.

      Default: - true when vpnGatewayAsn or vpnConnections is specified

      Specified by:
      getVpnGateway in interface VpcProps
    • getVpnGatewayAsn

      public final Number getVpnGatewayAsn()
      Description copied from interface: VpcProps
      The private Autonomous System Number (ASN) for the VPN gateway.

      Default: - Amazon default ASN.

      Specified by:
      getVpnGatewayAsn in interface VpcProps
    • getVpnRoutePropagation

      public final List<SubnetSelection> getVpnRoutePropagation()
      Description copied from interface: VpcProps
      Where to propagate VPN routes.

      Default: - On the route tables associated with private subnets. If no private subnets exists, isolated subnets are used. If no isolated subnets exists, public subnets are used.

      Specified by:
      getVpnRoutePropagation in interface VpcProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface
    • equals

      public final boolean equals(Object o)
      equals in class Object
    • hashCode

      public final int hashCode()
      hashCode in class Object