Class CfnDBSubnetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSubnetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSubnetGroup>
- Enclosing class:
- CfnDBSubnetGroup
@Stability(Stable)
public static final class CfnDBSubnetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSubnetGroup>
A fluent builder for
CfnDBSubnetGroup.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnDBSubnetGroup.BuilderdbSubnetGroupDescription(String dbSubnetGroupDescription) The description for the DB subnet group.dbSubnetGroupName(String dbSubnetGroupName) The name for the DB subnet group.The EC2 Subnet IDs for the DB subnet group.An optional array of key-value pairs to apply to this DB subnet group.
-
Method Details
-
create
- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnDBSubnetGroup.Builder.
-
dbSubnetGroupDescription
@Stability(Stable) public CfnDBSubnetGroup.Builder dbSubnetGroupDescription(String dbSubnetGroupDescription) The description for the DB subnet group.- Parameters:
dbSubnetGroupDescription- The description for the DB subnet group. This parameter is required.- Returns:
this
-
subnetIds
The EC2 Subnet IDs for the DB subnet group.- Parameters:
subnetIds- The EC2 Subnet IDs for the DB subnet group. This parameter is required.- Returns:
this
-
dbSubnetGroupName
The name for the DB subnet group. This value is stored as a lowercase string.Constraints: Must contain no more than 255 lowercase alphanumeric characters or hyphens. Must not be "Default".
Example:
mysubnetgroup- Parameters:
dbSubnetGroupName- The name for the DB subnet group. This value is stored as a lowercase string. This parameter is required.- Returns:
this
-
tags
An optional array of key-value pairs to apply to this DB subnet group.- Parameters:
tags- An optional array of key-value pairs to apply to this DB subnet group. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBSubnetGroup>- Returns:
- a newly built instance of
CfnDBSubnetGroup.
-