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 Summary
Nested 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.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDBProxy(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 Summary
Modifier 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.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDBProxy
protected CfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBProxy
protected 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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 classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDbProxyArn
The Amazon Resource Name (ARN) representing the target group. -
getAttrEndpoint
The writer endpoint for the RDS DB instance or Aurora DB cluster. -
getAttrVpcId
The VPC ID to associate with the DB proxy. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAuth
The authorization mechanism that the proxy uses. -
setAuth
The authorization mechanism that the proxy uses. -
setAuth
The authorization mechanism that the proxy uses. -
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.
-
setDbProxyName
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.
-
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.Valid values :
MYSQL|POSTGRESQL|SQLSERVER -
setEngineFamily
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.Valid values :
MYSQL|POSTGRESQL|SQLSERVER -
getRoleArn
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. -
setRoleArn
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager. -
getVpcSubnetIds
One or more VPC subnet IDs to associate with the new proxy. -
setVpcSubnetIds
One or more VPC subnet IDs to associate with the new proxy. -
getDebugLogging
Whether 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.
-
setDebugLogging
Whether 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.
-
setDebugLogging
Whether 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.
-
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.
-
setIdleClientTimeout
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.
-
getRequireTls
A 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.
-
setRequireTls
A 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.
-
setRequireTls
A 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.
-
getTags
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy. -
setTags
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy. -
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.
-
setVpcSecurityGroupIds
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.
-