Interface CfnDBProxyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDBProxyProps.Jsii$Proxy
CfnDBProxy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
CfnDBProxyProps cfnDBProxyProps = CfnDBProxyProps.builder()
.dbProxyName("dbProxyName")
.engineFamily("engineFamily")
.roleArn("roleArn")
.vpcSubnetIds(List.of("vpcSubnetIds"))
// the properties below are optional
.auth(List.of(AuthFormatProperty.builder()
.authScheme("authScheme")
.clientPasswordAuthType("clientPasswordAuthType")
.description("description")
.iamAuth("iamAuth")
.secretArn("secretArn")
.build()))
.debugLogging(false)
.defaultAuthScheme("defaultAuthScheme")
.endpointNetworkType("endpointNetworkType")
.idleClientTimeout(123)
.requireTls(false)
.tags(List.of(TagFormatProperty.builder()
.key("key")
.value("value")
.build()))
.targetConnectionNetworkType("targetConnectionNetworkType")
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDBProxyPropsstatic final classAn implementation forCfnDBProxyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDBProxyProps.Builderbuilder()default ObjectgetAuth()The authorization mechanism that the proxy uses.The identifier for the proxy.default ObjectSpecifies whether the proxy logs detailed connection and query information.default StringThe default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database.default StringThe network type of the DB proxy endpoint.The kinds of databases that the proxy can connect to.default NumberThe number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.default ObjectSpecifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.default List<CfnDBProxy.TagFormatProperty> getTags()An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.default StringThe network type that the proxy uses to connect to the target database.One or more VPC security group IDs to associate with the new proxy.One or more VPC subnet IDs to associate with the new proxy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDbProxyName
The identifier for the proxy.This name must be unique for all proxies owned by your AWS account in the specified AWS Region . An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
- See Also:
-
getEngineFamily
The kinds of databases that the proxy can connect to.This value determines which database network protocol the proxy recognizes when it interprets network traffic to and from the database. For Aurora MySQL, RDS for MariaDB, and RDS for MySQL databases, specify
MYSQL. For Aurora PostgreSQL and RDS for PostgreSQL databases, specifyPOSTGRESQL. For RDS for Microsoft SQL Server, specifySQLSERVER.- See Also:
-
getRoleArn
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.- See Also:
-
getVpcSubnetIds
One or more VPC subnet IDs to associate with the new proxy.Returns union: Listinvalid input: '<'either
StringorISubnetRef>- See Also:
-
getAuth
The authorization mechanism that the proxy uses.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDBProxy.AuthFormatProperty>- See Also:
-
getDebugLogging
Specifies whether the proxy logs detailed connection and query information.When you enable
DebugLogging, the proxy captures connection details and connection pool behavior from your queries. Debug logging increases CloudWatch costs and can impact proxy performance. Enable this option only when you need to troubleshoot connection or performance issues.Returns union: either
BooleanorIResolvable- See Also:
-
getDefaultAuthScheme
The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database.Valid values are
NONEandIAM_AUTH. When set toIAM_AUTH, the proxy uses end-to-end IAM authentication to connect to the database.- See Also:
-
getEndpointNetworkType
The network type of the DB proxy endpoint.The network type determines the IP version that the proxy endpoint supports.
Valid values:
IPV4- The proxy endpoint supports IPv4 only.IPV6- The proxy endpoint supports IPv6 only.DUAL- The proxy endpoint supports both IPv4 and IPv6.
- See Also:
-
getIdleClientTimeout
The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.You can set this value higher or lower than the connection timeout limit for the associated database.
- See Also:
-
getRequireTls
Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.By enabling this setting, you can enforce encrypted TLS connections to the proxy.
Returns union: either
BooleanorIResolvable- See Also:
-
getTags
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.- See Also:
-
getTargetConnectionNetworkType
The network type that the proxy uses to connect to the target database.The network type determines the IP version that the proxy uses for connections to the database.
Valid values:
IPV4- The proxy connects to the database using IPv4 only.IPV6- The proxy connects to the database using IPv6 only.
- See Also:
-
getVpcSecurityGroupIds
One or more VPC security group IDs to associate with the new proxy.If you plan to update the resource, don't specify VPC security groups in a shared VPC.
Returns union: Listinvalid input: '<'either
StringorISecurityGroupRef>- See Also:
-
builder
- Returns:
- a
CfnDBProxyProps.BuilderofCfnDBProxyProps
-