Class CfnDBProxyTargetGroup
- All Implemented Interfaces:
IInspectable,IDBProxyTargetGroupRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDBProxyTargetGroup.static interfaceSpecifies 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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.rds.IDBProxyTargetGroupRef
IDBProxyTargetGroupRef.Jsii$Default, IDBProxyTargetGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDBProxyTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBProxyTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnDBProxyTargetGroup(software.constructs.Construct scope, String id, CfnDBProxyTargetGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) representing the target group.Displays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget.One or more DB cluster identifiers.One or more DB instance identifiers.The identifier of theDBProxythat is associated with theDBProxyTargetGroup.A reference to a DBProxyTargetGroup resource.The identifier for the target group.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidDisplays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget.voidsetConnectionPoolConfigurationInfo(CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value) Displays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget.voidsetDbClusterIdentifiers(List<String> value) One or more DB cluster identifiers.voidsetDbInstanceIdentifiers(List<String> value) One or more DB instance identifiers.voidsetDbProxyName(String value) The identifier of theDBProxythat is associated with theDBProxyTargetGroup.voidsetTargetGroupName(String value) The identifier for the target group.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, 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.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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBProxyTargetGroupProps 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:
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.
-
getAttrTargetGroupArn
The Amazon Resource Name (ARN) representing the target group. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDbProxyTargetGroupRef
A reference to a DBProxyTargetGroup resource.- Specified by:
getDbProxyTargetGroupRefin interfaceIDBProxyTargetGroupRef
-
getDbProxyName
The identifier of theDBProxythat is associated with theDBProxyTargetGroup. -
setDbProxyName
The identifier of theDBProxythat is associated with theDBProxyTargetGroup. -
getTargetGroupName
The identifier for the target group. -
setTargetGroupName
The identifier for the target group. -
getConnectionPoolConfigurationInfo
Displays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget.Returns union: either
IResolvableorCfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty -
setConnectionPoolConfigurationInfo
Displays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget. -
setConnectionPoolConfigurationInfo
@Stability(Stable) public void setConnectionPoolConfigurationInfo(@Nullable CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value) Displays the settings that control the size and behavior of the connection pool associated with aDBProxyTarget. -
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.
-