Class DatabaseProxyEndpoint.Builder
java.lang.Object
software.amazon.awscdk.services.rds.DatabaseProxyEndpoint.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseProxyEndpoint>
- Enclosing class:
DatabaseProxyEndpoint
@Stability(Stable)
public static final class DatabaseProxyEndpoint.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseProxyEndpoint>
A fluent builder for
DatabaseProxyEndpoint.-
Method Summary
Modifier and TypeMethodDescriptionbuild()dbProxy(IDatabaseProxy dbProxy) The DB proxy associated with the DB proxy endpoint.dbProxyEndpointName(String dbProxyEndpointName) The name of the DB proxy endpoint.securityGroups(List<? extends ISecurityGroup> securityGroups) The VPC security groups to associate with the new proxy endpoint.targetRole(ProxyEndpointTargetRole targetRole) A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.The VPC of the DB proxy endpoint.vpcSubnets(SubnetSelection vpcSubnets) The subnets of DB proxy endpoint.
-
Method Details
-
create
@Stability(Stable) public static DatabaseProxyEndpoint.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
DatabaseProxyEndpoint.Builder.
-
vpc
The VPC of the DB proxy endpoint.- Parameters:
vpc- The VPC of the DB proxy endpoint. This parameter is required.- Returns:
this
-
dbProxyEndpointName
@Stability(Stable) public DatabaseProxyEndpoint.Builder dbProxyEndpointName(String dbProxyEndpointName) The name of the DB proxy endpoint.Default: - a CDK generated name
- Parameters:
dbProxyEndpointName- The name of the DB proxy endpoint. This parameter is required.- Returns:
this
-
securityGroups
@Stability(Stable) public DatabaseProxyEndpoint.Builder securityGroups(List<? extends ISecurityGroup> securityGroups) The VPC security groups to associate with the new proxy endpoint.Default: - Default security group for the VPC
- Parameters:
securityGroups- The VPC security groups to associate with the new proxy endpoint. This parameter is required.- Returns:
this
-
targetRole
@Stability(Stable) public DatabaseProxyEndpoint.Builder targetRole(ProxyEndpointTargetRole targetRole) A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.Default: - ProxyEndpointTargetRole.READ_WRITE
- 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
-
vpcSubnets
The subnets of DB proxy endpoint.Default: - the VPC default strategy if not specified.
- Parameters:
vpcSubnets- The subnets of DB proxy endpoint. This parameter is required.- Returns:
this
-
dbProxy
The DB proxy associated with the DB proxy endpoint.- Parameters:
dbProxy- The DB proxy associated with the DB proxy endpoint. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseProxyEndpoint>- Returns:
- a newly built instance of
DatabaseProxyEndpoint.
-