@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:36.980Z") public class CfnDBProxy extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static interface |
CfnDBProxy.AuthFormatProperty
Specifies the details of authentication used by a proxy to log in as a specific database user.
|
static class |
CfnDBProxy.Builder
A fluent builder for
CfnDBProxy . |
static interface |
CfnDBProxy.TagFormatProperty
Metadata assigned to a DB proxy consisting of a key-value pair.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDBProxy(Construct scope,
java.lang.String id,
CfnDBProxyProps props)
Create a new `AWS::RDS::DBProxy`.
|
protected |
CfnDBProxy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrDbProxyArn()
The Amazon Resource Name (ARN) representing the target group.
|
java.lang.String |
getAttrEndpoint()
The writer endpoint for the RDS DB instance or Aurora DB cluster.
|
java.lang.String |
getAttrVpcId()
The VPC ID to associate with the DB proxy.
|
java.lang.Object |
getAuth()
The authorization mechanism that the proxy uses.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDbProxyName()
The identifier for the proxy.
|
java.lang.Object |
getDebugLogging()
Whether the proxy includes detailed information about SQL statements in its logs.
|
java.lang.String |
getEngineFamily()
The kinds of databases that the proxy can connect to.
|
java.lang.Number |
getIdleClientTimeout()
The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
|
java.lang.Object |
getRequireTls()
A Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
|
java.util.List<CfnDBProxy.TagFormatProperty> |
getTags()
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
|
java.util.List<java.lang.String> |
getVpcSecurityGroupIds()
One or more VPC security group IDs to associate with the new proxy.
|
java.util.List<java.lang.String> |
getVpcSubnetIds()
One or more VPC subnet IDs to associate with the new proxy.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAuth(IResolvable value)
The authorization mechanism that the proxy uses.
|
void |
setAuth(java.util.List<java.lang.Object> value)
The authorization mechanism that the proxy uses.
|
void |
setDbProxyName(java.lang.String value)
The identifier for the proxy.
|
void |
setDebugLogging(java.lang.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(java.lang.String value)
The kinds of databases that the proxy can connect to.
|
void |
setIdleClientTimeout(java.lang.Number value)
The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
|
void |
setRequireTls(java.lang.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(java.lang.String value)
The Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
|
void |
setTags(java.util.List<CfnDBProxy.TagFormatProperty> value)
An optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
|
void |
setVpcSecurityGroupIds(java.util.List<java.lang.String> value)
One or more VPC security group IDs to associate with the new proxy.
|
void |
setVpcSubnetIds(java.util.List<java.lang.String> value)
One or more VPC subnet IDs to associate with the new proxy.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBProxy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDBProxy(Construct scope, java.lang.String id, CfnDBProxyProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrDbProxyArn()
public java.lang.String getAttrEndpoint()
public java.lang.String getAttrVpcId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.Object getAuth()
public void setAuth(IResolvable value)
public void setAuth(java.util.List<java.lang.Object> value)
public java.lang.String getDbProxyName()
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.
public void setDbProxyName(java.lang.String value)
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.
public java.lang.String getEngineFamily()
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
.
Valid values : MYSQL
| POSTGRESQL
| SQLSERVER
public void setEngineFamily(java.lang.String value)
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
.
Valid values : MYSQL
| POSTGRESQL
| SQLSERVER
public java.lang.String getRoleArn()
public void setRoleArn(java.lang.String value)
public java.util.List<java.lang.String> getVpcSubnetIds()
public void setVpcSubnetIds(java.util.List<java.lang.String> value)
public java.lang.Object getDebugLogging()
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.
public void setDebugLogging(java.lang.Boolean value)
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.
public void setDebugLogging(IResolvable value)
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.
public java.lang.Number getIdleClientTimeout()
You can set this value higher or lower than the connection timeout limit for the associated database.
public void setIdleClientTimeout(java.lang.Number value)
You can set this value higher or lower than the connection timeout limit for the associated database.
public java.lang.Object getRequireTls()
By enabling this setting, you can enforce encrypted TLS connections to the proxy.
public void setRequireTls(java.lang.Boolean value)
By enabling this setting, you can enforce encrypted TLS connections to the proxy.
public void setRequireTls(IResolvable value)
By enabling this setting, you can enforce encrypted TLS connections to the proxy.
public java.util.List<CfnDBProxy.TagFormatProperty> getTags()
public void setTags(java.util.List<CfnDBProxy.TagFormatProperty> value)
public java.util.List<java.lang.String> getVpcSecurityGroupIds()
If you plan to update the resource, don't specify VPC security groups in a shared VPC.
public void setVpcSecurityGroupIds(java.util.List<java.lang.String> value)
If you plan to update the resource, don't specify VPC security groups in a shared VPC.