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.Builder
dbSubnetGroupDescription
(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.Tags to assign to the DB subnet group.
-
Method Details
-
create
@Stability(Stable) public static CfnDBSubnetGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
dbSubnetGroupName
The name for the DB subnet group. This value is stored as a lowercase string.Constraints:
- Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens.
- Must not be default.
- First character must be a letter.
Example:
mydbsubnetgroup
- Parameters:
dbSubnetGroupName
- The name for the DB subnet group. This value is stored as a lowercase string. This parameter is required.- Returns:
this
- See Also:
-
tags
Tags to assign to the DB subnet group.- Parameters:
tags
- Tags to assign to the DB subnet group. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSubnetGroup>
- Returns:
- a newly built instance of
CfnDBSubnetGroup
.
-