public static final class SubnetGroup.Builder
extends java.lang.Object
SubnetGroup
.Modifier and Type | Method and Description |
---|---|
SubnetGroup |
build() |
static SubnetGroup.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
SubnetGroup.Builder |
description(java.lang.String description)
(experimental) Description of the subnet group.
|
SubnetGroup.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.
|
SubnetGroup.Builder |
subnetGroupName(java.lang.String subnetGroupName)
(experimental) The name of the subnet group.
|
SubnetGroup.Builder |
vpc(IVpc vpc)
(experimental) The VPC to place the subnet group in.
|
SubnetGroup.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) Which subnets within the VPC to associate with this group.
|
public static SubnetGroup.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.SubnetGroup.Builder
.public SubnetGroup.Builder vpc(IVpc vpc)
vpc
- The VPC to place the subnet group in. This parameter is required.this
public SubnetGroup.Builder description(java.lang.String description)
Default: - a name is generated
description
- Description of the subnet group. This parameter is required.this
public SubnetGroup.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.DESTROY
removalPolicy
- The removal policy to apply when the subnet group are removed from the stack or replaced during an update. This parameter is required.this
public SubnetGroup.Builder subnetGroupName(java.lang.String subnetGroupName)
Default: - a name is generated
subnetGroupName
- The name of the subnet group. This parameter is required.this
public SubnetGroup.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - private subnets
vpcSubnets
- Which subnets within the VPC to associate with this group. This parameter is required.this
public SubnetGroup build()