Class CfnDBProxyTargetGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::RDS::DBProxyTargetGroup
.
The AWS::RDS::DBProxyTargetGroup
resource represents a set of RDS DB instances, Aurora DB clusters, or both that a proxy can connect to. Currently, each target group is associated with exactly one RDS DB instance or Aurora DB cluster.
This data type is used as a response element in the DescribeDBProxyTargetGroups
action.
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 .
For a sample template that creates a DB proxy and registers a DB instance, see Examples in AWS::RDS::DBProxy.
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.*; CfnDBProxyTargetGroup cfnDBProxyTargetGroup = CfnDBProxyTargetGroup.Builder.create(this, "MyCfnDBProxyTargetGroup") .dbProxyName("dbProxyName") .targetGroupName("targetGroupName") // the properties below are optional .connectionPoolConfigurationInfo(ConnectionPoolConfigurationInfoFormatProperty.builder() .connectionBorrowTimeout(123) .initQuery("initQuery") .maxConnectionsPercent(123) .maxIdleConnectionsPercent(123) .sessionPinningFilters(List.of("sessionPinningFilters")) .build()) .dbClusterIdentifiers(List.of("dbClusterIdentifiers")) .dbInstanceIdentifiers(List.of("dbInstanceIdentifiers")) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDBProxyTargetGroup
.static interface
Specifies the settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
.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
ModifierConstructorDescriptionCfnDBProxyTargetGroup
(Construct scope, String id, CfnDBProxyTargetGroupProps props) Create a newAWS::RDS::DBProxyTargetGroup
.protected
CfnDBProxyTargetGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBProxyTargetGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) representing the target group.Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
.One or more DB cluster identifiers.One or more DB instance identifiers.The identifier of theDBProxy
that is associated with theDBProxyTargetGroup
.The identifier for the target group.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
.void
setConnectionPoolConfigurationInfo
(CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value) Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
.void
setDbClusterIdentifiers
(List<String> value) One or more DB cluster identifiers.void
setDbInstanceIdentifiers
(List<String> value) One or more DB instance identifiers.void
setDbProxyName
(String value) The identifier of theDBProxy
that is associated with theDBProxyTargetGroup
.void
setTargetGroupName
(String value) The identifier for the target group.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
-
CfnDBProxyTargetGroup
protected CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBProxyTargetGroup
protected CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDBProxyTargetGroup
@Stability(Stable) public CfnDBProxyTargetGroup(@NotNull Construct scope, @NotNull String id, @NotNull CfnDBProxyTargetGroupProps props) Create a newAWS::RDS::DBProxyTargetGroup
.- 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.
-
getAttrTargetGroupArn
The Amazon Resource Name (ARN) representing the target group. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getDbProxyName
The identifier of theDBProxy
that is associated with theDBProxyTargetGroup
. -
setDbProxyName
The identifier of theDBProxy
that is associated with theDBProxyTargetGroup
. -
getTargetGroupName
The identifier for the target group.Currently, this property must be set to
default
. -
setTargetGroupName
The identifier for the target group.Currently, this property must be set to
default
. -
getConnectionPoolConfigurationInfo
Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
. -
setConnectionPoolConfigurationInfo
Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
. -
setConnectionPoolConfigurationInfo
@Stability(Stable) public void setConnectionPoolConfigurationInfo(@Nullable CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value) Settings that control the size and behavior of the connection pool associated with aDBProxyTargetGroup
. -
getDbClusterIdentifiers
One or more DB cluster identifiers. -
setDbClusterIdentifiers
One or more DB cluster identifiers. -
getDbInstanceIdentifiers
One or more DB instance identifiers. -
setDbInstanceIdentifiers
One or more DB instance identifiers.
-