Class SubnetV2Props.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.alpha.SubnetV2Props.Jsii$Proxy
All Implemented Interfaces:
SubnetV2Props, software.amazon.jsii.JsiiSerializable
Enclosing interface:
SubnetV2Props

@Stability(Experimental) @Internal public static final class SubnetV2Props.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SubnetV2Props
An implementation for SubnetV2Props
  • Constructor Details

    • Jsii$Proxy

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

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

    • getAvailabilityZone

      public final String getAvailabilityZone()
      Description copied from interface: SubnetV2Props
      (experimental) Custom AZ for the subnet.
      Specified by:
      getAvailabilityZone in interface SubnetV2Props
    • getIpv4CidrBlock

      public final IpCidr getIpv4CidrBlock()
      Description copied from interface: SubnetV2Props
      (experimental) ipv4 cidr to assign to this subnet.

      See https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet.html#cfn-ec2-subnet-cidrblock

      Specified by:
      getIpv4CidrBlock in interface SubnetV2Props
    • getSubnetType

      public final SubnetType getSubnetType()
      Description copied from interface: SubnetV2Props
      (experimental) The type of Subnet to configure.

      The Subnet type will control the ability to route and connect to the Internet.

      TODO: Add validation check subnetType when adding resources (e.g. cannot add NatGateway to private)

      Specified by:
      getSubnetType in interface SubnetV2Props
    • getVpc

      public final IVpcV2 getVpc()
      Description copied from interface: SubnetV2Props
      (experimental) VPC Prop.
      Specified by:
      getVpc in interface SubnetV2Props
    • getAssignIpv6AddressOnCreation

      public final Boolean getAssignIpv6AddressOnCreation()
      Description copied from interface: SubnetV2Props
      (experimental) Indicates whether a network interface created in this subnet receives an IPv6 address.

      If you specify AssignIpv6AddressOnCreation, you must also specify Ipv6CidrBlock.

      Default: - undefined in case not provided as an input

      Specified by:
      getAssignIpv6AddressOnCreation in interface SubnetV2Props
    • getIpv6CidrBlock

      public final IpCidr getIpv6CidrBlock()
      Description copied from interface: SubnetV2Props
      (experimental) Ipv6 CIDR Range for subnet.

      Default: - No Ipv6 address

      Specified by:
      getIpv6CidrBlock in interface SubnetV2Props
    • getRouteTable

      public final IRouteTable getRouteTable()
      Description copied from interface: SubnetV2Props
      (experimental) Custom Route for subnet.

      Default: - a default route table created

      Specified by:
      getRouteTable in interface SubnetV2Props
    • getSubnetName

      public final String getSubnetName()
      Description copied from interface: SubnetV2Props
      (experimental) Subnet name.

      Default: - provisioned with an autogenerated name by CDK

      Specified by:
      getSubnetName in interface SubnetV2Props
    • $jsii$toJson

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

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

      public final int hashCode()
      Overrides:
      hashCode in class Object