@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.523Z") @Stability(value=Stable) public interface SubnetGroupProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.rds.*;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
SubnetGroupProps subnetGroupProps = SubnetGroupProps.builder()
.description("description")
.vpc(vpc)
// the properties below are optional
.removalPolicy(RemovalPolicy.DESTROY)
.subnetGroupName("subnetGroupName")
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnets(List.of(subnet))
.subnetType(SubnetType.PRIVATE_ISOLATED)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SubnetGroupProps.Builder
A builder for
SubnetGroupProps |
static class |
SubnetGroupProps.Jsii$Proxy
An implementation for
SubnetGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static SubnetGroupProps.Builder |
builder() |
String |
getDescription()
Description of the subnet group.
|
default RemovalPolicy |
getRemovalPolicy()
The removal policy to apply when the subnet group are removed from the stack or replaced during an update.
|
default String |
getSubnetGroupName()
The name of the subnet group.
|
IVpc |
getVpc()
The VPC to place the subnet group in.
|
default SubnetSelection |
getVpcSubnets()
Which subnets within the VPC to associate with this group.
|
@Stability(value=Stable) @NotNull String getDescription()
@Stability(value=Stable) @NotNull IVpc getVpc()
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.DESTROY
@Stability(value=Stable) @Nullable default String getSubnetGroupName()
Default: - a name is generated
@Stability(value=Stable) @Nullable default SubnetSelection getVpcSubnets()
Default: - private subnets
@Stability(value=Stable) static SubnetGroupProps.Builder builder()
SubnetGroupProps.Builder of SubnetGroupPropsCopyright © 2022. All rights reserved.