@Stability(value=Stable) public static final class SubnetGroup.Builder extends Object implements software.amazon.jsii.Builder<SubnetGroup>
SubnetGroup
.Modifier and Type | Method and Description |
---|---|
SubnetGroup |
build() |
static SubnetGroup.Builder |
create(software.constructs.Construct scope,
String id) |
SubnetGroup.Builder |
description(String description)
Description of the subnet group.
|
SubnetGroup.Builder |
removalPolicy(RemovalPolicy removalPolicy)
The removal policy to apply when the subnet group are removed from the stack or replaced during an update.
|
SubnetGroup.Builder |
subnetGroupName(String subnetGroupName)
The name of the subnet group.
|
SubnetGroup.Builder |
vpc(IVpc vpc)
The VPC to place the subnet group in.
|
SubnetGroup.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Which subnets within the VPC to associate with this group.
|
@Stability(value=Stable) public static SubnetGroup.Builder create(software.constructs.Construct scope, String id)
scope
- This parameter is required.id
- This parameter is required.SubnetGroup.Builder
.@Stability(value=Stable) public SubnetGroup.Builder description(String description)
description
- Description of the subnet group. This parameter is required.this
@Stability(value=Stable) public SubnetGroup.Builder vpc(IVpc vpc)
vpc
- The VPC to place the subnet group in. This parameter is required.this
@Stability(value=Stable) 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
@Stability(value=Stable) public SubnetGroup.Builder subnetGroupName(String subnetGroupName)
Default: - a name is generated
subnetGroupName
- The name of the subnet group. This parameter is required.this
@Stability(value=Stable) 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
@Stability(value=Stable) public SubnetGroup build()
build
in interface software.amazon.jsii.Builder<SubnetGroup>
Copyright © 2023. All rights reserved.