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
Modifier and TypeClassDescriptionstatic interface
Specifies the details of authentication used by a proxy to log in as a specific database user.static final class
A fluent builder forCfnDBProxy
.static interface
Metadata 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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnDBProxy
(Construct scope, String id, CfnDBProxyProps props) Create a newAWS::RDS::DBProxy
.protected
CfnDBProxy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBProxy
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The authorization mechanism that the proxy uses.void
setAuth
(IResolvable value) The authorization mechanism that the proxy uses.void
setDbProxyName
(String value) The identifier for the proxy.void
setDebugLogging
(Boolean value) Whether the proxy includes detailed information about SQL statements in its logs.void
setDebugLogging
(IResolvable value) Whether the proxy includes detailed information about SQL statements in its logs.void
setEngineFamily
(String value) The kinds of databases that the proxy can connect to.void
setIdleClientTimeout
(Number value) The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.void
setRequireTls
(Boolean value) A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.void
setRequireTls
(IResolvable value) A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.void
setRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.void
setTags
(List<CfnDBProxy.TagFormatProperty> value) An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.void
setVpcSecurityGroupIds
(List<String> value) One or more VPC security group IDs to associate with the new proxy.void
setVpcSubnetIds
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in 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.
-