Interface RequestedSubnet

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

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:01.004Z") @Stability(Stable) public interface RequestedSubnet extends software.amazon.jsii.JsiiSerializable
Subnet requested for allocation.

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.*;
 RequestedSubnet requestedSubnet = RequestedSubnet.builder()
         .availabilityZone("availabilityZone")
         .configuration(SubnetConfiguration.builder()
                 .name("name")
                 .subnetType(SubnetType.PRIVATE_ISOLATED)
                 // the properties below are optional
                 .cidrMask(123)
                 .ipv6AssignAddressOnCreation(false)
                 .mapPublicIpOnLaunch(false)
                 .reserved(false)
                 .build())
         .subnetConstructId("subnetConstructId")
         .build();
 
  • Method Details

    • getAvailabilityZone

      @Stability(Stable) @NotNull String getAvailabilityZone()
      The availability zone for the subnet.
    • getConfiguration

      @Stability(Stable) @NotNull SubnetConfiguration getConfiguration()
      Specify configuration parameters for a single subnet group in a VPC.
    • getSubnetConstructId

      @Stability(Stable) @NotNull String getSubnetConstructId()
      Id for the Subnet construct.
    • builder

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