Class CfnDBProxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.rds.CfnDBProxy
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:25.871Z")
@Stability(Stable)
public class CfnDBProxy
extends CfnResource
implements IInspectable, ITaggableV2
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();
- See Also:
-
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 an Amazon RDS resource 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDBProxy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBProxy
(software.amazon.jsii.JsiiObjectRef objRef) CfnDBProxy
(software.constructs.Construct scope, String id, CfnDBProxyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the proxy.The endpoint that you can use to connect to the DB proxy.The VPC ID to associate with the DB proxy.getAuth()
The authorization mechanism that the proxy uses.Tag Manager which manages the tags for this resource.The identifier for the proxy.Specifies 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.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) Specifies whether the proxy includes detailed information about SQL statements in its logs.void
setDebugLogging
(IResolvable value) Specifies 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) Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.void
setRequireTls
(IResolvable value) 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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBProxyProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
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) for the proxy. -
getAttrEndpoint
The endpoint that you can use to connect to the DB proxy.You include the endpoint value in the connection string for a database client application.
-
getAttrVpcId
The VPC ID to associate with the DB proxy. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
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. -
setDbProxyName
The identifier for the proxy. -
getEngineFamily
The kinds of databases that the proxy can connect to. -
setEngineFamily
The kinds of databases that the proxy can connect to. -
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
Specifies whether the proxy includes detailed information about SQL statements in its logs. -
setDebugLogging
Specifies whether the proxy includes detailed information about SQL statements in its logs. -
setDebugLogging
Specifies whether the proxy includes detailed information about SQL statements in its logs. -
getIdleClientTimeout
The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. -
setIdleClientTimeout
The number of seconds that a connection to the proxy can be inactive before the proxy disconnects it. -
getRequireTls
Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. -
setRequireTls
Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy. -
setRequireTls
Specifies whether Transport Layer Security (TLS) encryption is required for 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. -
setVpcSecurityGroupIds
One or more VPC security group IDs to associate with the new proxy.
-