Class CfnDBProxy
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
AWS::RDS::DBProxy.
 
 The AWS::RDS::DBProxy resource creates or updates a DB proxy.
 
For information about RDS Proxy for Amazon RDS, see Managing Connections with Amazon RDS Proxy in the Amazon RDS User Guide .
For information about RDS Proxy for Amazon Aurora, see Managing Connections with Amazon RDS Proxy in the Amazon Aurora User Guide .
Limitations apply to RDS Proxy, including DB engine version limitations and AWS Region limitations.
For information about limitations that apply to RDS Proxy for Amazon RDS, see Limitations for RDS Proxy in the Amazon RDS User Guide .
For information about that apply to RDS Proxy for Amazon Aurora, see Limitations for RDS Proxy in the Amazon Aurora User Guide .
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.*;
 CfnDBProxy cfnDBProxy = CfnDBProxy.Builder.create(this, "MyCfnDBProxy")
         .auth(List.of(AuthFormatProperty.builder()
                 .authScheme("authScheme")
                 .clientPasswordAuthType("clientPasswordAuthType")
                 .description("description")
                 .iamAuth("iamAuth")
                 .secretArn("secretArn")
                 .build()))
         .dbProxyName("dbProxyName")
         .engineFamily("engineFamily")
         .roleArn("roleArn")
         .vpcSubnetIds(List.of("vpcSubnetIds"))
         // the properties below are optional
         .debugLogging(false)
         .idleClientTimeout(123)
         .requireTls(false)
         .tags(List.of(TagFormatProperty.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
         .build();
 - 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceSpecifies the details of authentication used by a proxy to log in as a specific database user.static final classA fluent builder forCfnDBProxy.static interfaceMetadata assigned to a DB proxy consisting of a key-value pair.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnDBProxy(Construct scope, String id, CfnDBProxyProps props) Create a newAWS::RDS::DBProxy.protectedCfnDBProxy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Method SummaryModifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) representing the target group.The writer endpoint for the RDS DB instance or Aurora DB cluster.The VPC ID to associate with the DB proxy.getAuth()The authorization mechanism that the proxy uses.The identifier for the proxy.Whether the proxy includes detailed information about SQL statements in its logs.The kinds of databases that the proxy can connect to.The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.A Boolean parameter that specifies 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.getTags()An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe authorization mechanism that the proxy uses.voidsetAuth(IResolvable value) The authorization mechanism that the proxy uses.voidsetDbProxyName(String value) The identifier for the proxy.voidsetDebugLogging(Boolean value) Whether the proxy includes detailed information about SQL statements in its logs.voidsetDebugLogging(IResolvable value) Whether the proxy includes detailed information about SQL statements in its logs.voidsetEngineFamily(String value) The kinds of databases that the proxy can connect to.voidsetIdleClientTimeout(Number value) The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.voidsetRequireTls(Boolean value) A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.voidsetRequireTls(IResolvable value) A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.voidsetTags(List<CfnDBProxy.TagFormatProperty> value) An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.voidsetVpcSecurityGroupIds(List<String> value) One or more VPC security group IDs to associate with the new proxy.voidsetVpcSubnetIds(List<String> value) One or more VPC subnet IDs to associate with the new proxy.Methods inherited from class software.amazon.awscdk.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnDBProxyprotected CfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnDBProxyprotected CfnDBProxy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnDBProxy@Stability(Stable) public CfnDBProxy(@NotNull Construct scope, @NotNull String id, @NotNull CfnDBProxyProps props) Create a newAWS::RDS::DBProxy.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrDbProxyArnThe Amazon Resource Name (ARN) representing the target group.
- 
getAttrEndpointThe writer endpoint for the RDS DB instance or Aurora DB cluster.
- 
getAttrVpcIdThe VPC ID to associate with the DB proxy.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getAuthThe authorization mechanism that the proxy uses.
- 
setAuthThe authorization mechanism that the proxy uses.
- 
setAuthThe authorization mechanism that the proxy uses.
- 
getDbProxyNameThe 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. 
- 
setDbProxyNameThe 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. 
- 
getEngineFamilyThe 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.Valid values : MYSQL|POSTGRESQL|SQLSERVER
- 
setEngineFamilyThe 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.Valid values : MYSQL|POSTGRESQL|SQLSERVER
- 
getRoleArnThe Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
- 
setRoleArnThe Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
- 
getVpcSubnetIdsOne or more VPC subnet IDs to associate with the new proxy.
- 
setVpcSubnetIdsOne or more VPC subnet IDs to associate with the new proxy.
- 
getDebugLoggingWhether the proxy includes detailed information about SQL statements in its logs.This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. 
- 
setDebugLoggingWhether the proxy includes detailed information about SQL statements in its logs.This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. 
- 
setDebugLoggingWhether the proxy includes detailed information about SQL statements in its logs.This information helps you to debug issues involving SQL behavior or the performance and scalability of the proxy connections. The debug information includes the text of SQL statements that you submit through the proxy. Thus, only enable this setting when needed for debugging, and only when you have security measures in place to safeguard any sensitive information that appears in the logs. 
- 
getIdleClientTimeoutThe 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. 
- 
setIdleClientTimeoutThe 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. 
- 
getRequireTlsA Boolean parameter that 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. 
- 
setRequireTlsA Boolean parameter that 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. 
- 
setRequireTlsA Boolean parameter that 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. 
- 
getTagsAn optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
- 
setTagsAn optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
- 
getVpcSecurityGroupIdsOne 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. 
- 
setVpcSecurityGroupIdsOne 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. 
 
-