@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:43.834Z")
public interface SubnetGroupProps
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();
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() |
default java.lang.String |
getDescription()
(experimental) Description of the subnet group.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.
|
default java.lang.String |
getSubnetGroupName()
(experimental) The name of the subnet group.
|
IVpc |
getVpc()
(experimental) The VPC to place the subnet group in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Which subnets within the VPC to associate with this group.
|
IVpc getVpc()
default java.lang.String getDescription()
Default: - a name is generated
default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.DESTROY
default java.lang.String getSubnetGroupName()
Default: - a name is generated
default SubnetSelection getVpcSubnets()
Default: - private subnets
static SubnetGroupProps.Builder builder()
SubnetGroupProps.Builder
of SubnetGroupProps