Interface SubnetGroupProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.349Z") @Stability(Experimental) public interface SubnetGroupProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for creating a SubnetGroup.

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.*;
 import software.amazon.awscdk.services.neptune.*;
 import software.amazon.awscdk.core.*;
 Subnet subnet;
 SubnetFilter subnetFilter;
 Vpc vpc;
 SubnetGroupProps subnetGroupProps = SubnetGroupProps.builder()
         .vpc(vpc)
         // the properties below are optional
         .description("description")
         .removalPolicy(RemovalPolicy.DESTROY)
         .subnetGroupName("subnetGroupName")
         .vpcSubnets(SubnetSelection.builder()
                 .availabilityZones(List.of("availabilityZones"))
                 .onePerAz(false)
                 .subnetFilters(List.of(subnetFilter))
                 .subnetGroupName("subnetGroupName")
                 .subnetName("subnetName")
                 .subnets(List.of(subnet))
                 .subnetType(SubnetType.ISOLATED)
                 .build())
         .build();
 
  • Method Details

    • getVpc

      @Stability(Experimental) @NotNull IVpc getVpc()
      (experimental) The VPC to place the subnet group in.
    • getDescription

      @Stability(Experimental) @Nullable default String getDescription()
      (experimental) Description of the subnet group.

      Default: - a name is generated

    • getRemovalPolicy

      @Stability(Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
      (experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.

      Default: RemovalPolicy.DESTROY

    • getSubnetGroupName

      @Stability(Experimental) @Nullable default String getSubnetGroupName()
      (experimental) The name of the subnet group.

      Default: - a name is generated

    • getVpcSubnets

      @Stability(Experimental) @Nullable default SubnetSelection getVpcSubnets()
      (experimental) Which subnets within the VPC to associate with this group.

      Default: - private subnets

    • builder

      @Stability(Experimental) static SubnetGroupProps.Builder builder()
      Returns:
      a SubnetGroupProps.Builder of SubnetGroupProps