Interface SubnetGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SubnetGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:13.872Z")
@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.neptune.alpha.*; import software.amazon.awscdk.*; import software.amazon.awscdk.services.ec2.*; 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") .subnets(List.of(subnet)) .subnetType(SubnetType.PRIVATE_ISOLATED) .build()) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forSubnetGroupProps
static final class
An implementation forSubnetGroupProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic SubnetGroupProps.Builder
builder()
default String
(experimental) Description of the subnet group.default RemovalPolicy
(experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.default String
(experimental) The name of the subnet group.getVpc()
(experimental) The VPC to place the subnet group in.default SubnetSelection
(experimental) Which subnets within the VPC to associate with this group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
(experimental) The VPC to place the subnet group in. -
getDescription
(experimental) Description of the subnet group.Default: - a name is generated
-
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
(experimental) The name of the subnet group.Default: - a name is generated
-
getVpcSubnets
(experimental) Which subnets within the VPC to associate with this group.Default: - private subnets
-
builder
- Returns:
- a
SubnetGroupProps.Builder
ofSubnetGroupProps
-