Class CfnDBProxy
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDBProxyRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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")
.dbProxyName("dbProxyName")
.engineFamily("engineFamily")
.roleArn("roleArn")
.vpcSubnetIds(List.of("vpcSubnetIds"))
// the properties below are optional
.auth(List.of(AuthFormatProperty.builder()
.authScheme("authScheme")
.clientPasswordAuthType("clientPasswordAuthType")
.description("description")
.iamAuth("iamAuth")
.secretArn("secretArn")
.build()))
.debugLogging(false)
.defaultAuthScheme("defaultAuthScheme")
.endpointNetworkType("endpointNetworkType")
.idleClientTimeout(123)
.requireTls(false)
.tags(List.of(TagFormatProperty.builder()
.key("key")
.value("value")
.build()))
.targetConnectionNetworkType("targetConnectionNetworkType")
.vpcSecurityGroupIds(List.of("vpcSecurityGroupIds"))
.build();
- See Also:
-
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 an Amazon RDS resource 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.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.rds.IDBProxyRef
IDBProxyRef.Jsii$Default, IDBProxyRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDBProxy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBProxy(software.amazon.jsii.JsiiObjectRef objRef) CfnDBProxy(software.constructs.Construct scope, String id, CfnDBProxyProps props) Create a newAWS::RDS::DBProxy. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDBProxy(IDBProxyRef resource) The 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.A reference to a DBProxy resource.Specifies whether the proxy logs detailed connection and query information.The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database.The network type of the DB proxy endpoint.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.The network type that the proxy uses to connect to the target database.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.static BooleanChecks whether the given object is a CfnDBProxy.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) Specifies whether the proxy logs detailed connection and query information.voidsetDebugLogging(IResolvable value) Specifies whether the proxy logs detailed connection and query information.voidsetDefaultAuthScheme(String value) The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database.voidsetEndpointNetworkType(String value) The network type of the DB proxy endpoint.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) Specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.voidsetRequireTls(IResolvable value) 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.voidThe network type that the proxy uses to connect to the target database.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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) Create a newAWS::RDS::DBProxy.- 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
-
arnForDBProxy
- Parameters:
resource- This parameter is required.
-
isCfnDBProxy
Checks whether the given object is a CfnDBProxy.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin 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:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDbProxyRef
A reference to a DBProxy resource.- Specified by:
getDbProxyRefin interfaceIDBProxyRef
-
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. -
getAuth
The authorization mechanism that the proxy uses.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDBProxy.AuthFormatProperty> -
setAuth
The authorization mechanism that the proxy uses. -
setAuth
The authorization mechanism that the proxy uses. -
getDebugLogging
Specifies whether the proxy logs detailed connection and query information.Returns union: either
BooleanorIResolvable -
setDebugLogging
Specifies whether the proxy logs detailed connection and query information. -
setDebugLogging
Specifies whether the proxy logs detailed connection and query information. -
getDefaultAuthScheme
The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database. -
setDefaultAuthScheme
The default authentication scheme that the proxy uses for client connections to the proxy and connections from the proxy to the underlying database. -
getEndpointNetworkType
The network type of the DB proxy endpoint. -
setEndpointNetworkType
The network type of the DB proxy endpoint. -
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.Returns union: either
BooleanorIResolvable -
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. -
getTargetConnectionNetworkType
The network type that the proxy uses to connect to the target database. -
setTargetConnectionNetworkType
The network type that the proxy uses to connect to the target database. -
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.
-