CfnDBProxyProps Struct
Properties for defining a CfnDBProxy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_rds as rds } from 'aws-cdk-lib';
const cfnDBProxyProps: rds.CfnDBProxyProps = {
dbProxyName: 'dbProxyName',
engineFamily: 'engineFamily',
roleArn: 'roleArn',
vpcSubnetIds: ['vpcSubnetIds'],
// the properties below are optional
auth: [{
authScheme: 'authScheme',
clientPasswordAuthType: 'clientPasswordAuthType',
description: 'description',
iamAuth: 'iamAuth',
secretArn: 'secretArn',
}],
debugLogging: false,
defaultAuthScheme: 'defaultAuthScheme',
endpointNetworkType: 'endpointNetworkType',
idleClientTimeout: 123,
requireTls: false,
tags: [{
key: 'key',
value: 'value',
}],
targetConnectionNetworkType: 'targetConnectionNetworkType',
vpcSecurityGroupIds: ['vpcSecurityGroupIds'],
};
Properties
authoptionalIResolvable | IResolvable | CfnDBProxy.AuthFormatProperty[]authoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AuthFormatProperty]]]authoptionalIResolvableAuthoptionalIResolvableAuthoptionalinterface{}#notes
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.
debugLoggingoptionalboolean | IResolvabledebug_loggingoptionaltyping.Union[bool, IResolvable]debugLoggingoptionalBooleanDebugLoggingoptionalboolDebugLoggingoptionalinterface{}#notes
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.
defaultAuthSchemeoptionalstringdefault_auth_schemeoptionalstrdefaultAuthSchemeoptionalStringDefaultAuthSchemeoptionalstringDefaultAuthSchemeoptional*string#Valid values are NONE and IAM_AUTH . When set to IAM_AUTH , the proxy uses end-to-end IAM authentication to connect to the database.
endpointNetworkTypeoptionalstringendpoint_network_typeoptionalstrendpointNetworkTypeoptionalStringEndpointNetworkTypeoptionalstringEndpointNetworkTypeoptional*string#notes
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.
notes
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, specify POSTGRESQL . For RDS for Microsoft SQL Server, specify SQLSERVER .
idleClientTimeoutoptionalnumberidle_client_timeoutoptionalint | floatidleClientTimeoutoptionalNumberIdleClientTimeoutoptionaldoubleIdleClientTimeoutoptional*float64#You can set this value higher or lower than the connection timeout limit for the associated database.
requireTlsoptionalboolean | IResolvablerequire_tlsoptionaltyping.Union[bool, IResolvable]requireTlsoptionalBooleanRequireTlsoptionalboolRequireTlsoptionalinterface{}#By enabling this setting, you can enforce encrypted TLS connections to the proxy.
roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{}required#tagsoptionalCfnDBProxy.TagFormatProperty[]tagsoptionaltyping.List[TagFormatProperty]tagsoptionalList<TagFormatProperty>TagsoptionalTagFormatProperty[]Tagsoptional*[]TagFormatProperty#targetConnectionNetworkTypeoptionalstringtarget_connection_network_typeoptionalstrtargetConnectionNetworkTypeoptionalStringTargetConnectionNetworkTypeoptionalstringTargetConnectionNetworkTypeoptional*string#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.
vpcSecurityGroupIdsoptionalstring | ISecurityGroupRef[]vpc_security_group_idsoptionaltyping.List[typing.Union[str, ISecurityGroupRef]]vpcSecurityGroupIdsoptionalList<String>VpcSecurityGroupIdsoptionalstring[]VpcSecurityGroupIdsoptional*[]interface{}#If you plan to update the resource, don't specify VPC security groups in a shared VPC.
vpcSubnetIdsstring | ISubnetRef[]vpc_subnet_idstyping.List[typing.Union[str, ISubnetRef]]vpcSubnetIdsList<String>VpcSubnetIdsstring[]VpcSubnetIds*[]interface{}required#