Class CfnDBProxyEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBProxyEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBProxyEndpoint>
- Enclosing class:
CfnDBProxyEndpoint
@Stability(Stable)
public static final class CfnDBProxyEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBProxyEndpoint>
A fluent builder for
CfnDBProxyEndpoint
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDBProxyEndpoint.Builder
dbProxyEndpointName
(String dbProxyEndpointName) The name of the DB proxy endpoint to create.dbProxyName
(String dbProxyName) The name of the DB proxy associated with the DB proxy endpoint that you create.tags
(List<? extends CfnDBProxyEndpoint.TagFormatProperty> tags) An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.targetRole
(String targetRole) A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.vpcSecurityGroupIds
(List<String> vpcSecurityGroupIds) The VPC security group IDs for the DB proxy endpoint that you create.vpcSubnetIds
(List<String> vpcSubnetIds) The VPC subnet IDs for the DB proxy endpoint that you create.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDBProxyEndpoint.Builder
.
-
dbProxyEndpointName
@Stability(Stable) public CfnDBProxyEndpoint.Builder dbProxyEndpointName(String dbProxyEndpointName) The name of the DB proxy endpoint to create.- Parameters:
dbProxyEndpointName
- The name of the DB proxy endpoint to create. This parameter is required.- Returns:
this
-
dbProxyName
The name of the DB proxy associated with the DB proxy endpoint that you create.- Parameters:
dbProxyName
- The name of the DB proxy associated with the DB proxy endpoint that you create. This parameter is required.- Returns:
this
-
vpcSubnetIds
The VPC subnet IDs for the DB proxy endpoint that you create.You can specify a different set of subnet IDs than for the original DB proxy.
- Parameters:
vpcSubnetIds
- The VPC subnet IDs for the DB proxy endpoint that you create. This parameter is required.- Returns:
this
-
tags
@Stability(Stable) public CfnDBProxyEndpoint.Builder tags(List<? extends CfnDBProxyEndpoint.TagFormatProperty> tags) An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.- Parameters:
tags
- An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy. This parameter is required.- Returns:
this
-
targetRole
A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.Valid Values:
READ_WRITE | READ_ONLY
- Parameters:
targetRole
- A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. This parameter is required.- Returns:
this
-
vpcSecurityGroupIds
@Stability(Stable) public CfnDBProxyEndpoint.Builder vpcSecurityGroupIds(List<String> vpcSecurityGroupIds) The VPC security group IDs for the DB proxy endpoint that you create.You can specify a different set of security group IDs than for the original DB proxy. The default is the default security group for the VPC.
- Parameters:
vpcSecurityGroupIds
- The VPC security group IDs for the DB proxy endpoint that you create. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBProxyEndpoint>
- Returns:
- a newly built instance of
CfnDBProxyEndpoint
.
-