Interface SubnetGroupProps

All Superinterfaces:
All Known Implementing Classes:

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


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Subnet subnet;
 SubnetFilter subnetFilter;
 Vpc vpc;
 SubnetGroupProps subnetGroupProps = SubnetGroupProps.builder()
         // the properties below are optional
  • Method Details

    • getDescription

      @Stability(Stable) @NotNull String getDescription()
      Description of the subnet group.
    • getVpc

      @Stability(Stable) @NotNull IVpc getVpc()
      The VPC to place the subnet group in.
    • getRemovalPolicy

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

      Default: RemovalPolicy.DESTROY

    • getSubnetGroupName

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

      Default: - a name is generated

    • getVpcSubnets

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

      Default: - private subnets

    • builder

      @Stability(Stable) static SubnetGroupProps.Builder builder()
      a SubnetGroupProps.Builder of SubnetGroupProps