@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.420Z") @Stability(value=Stable) public class CfnDBProxyTargetGroup extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDBProxyTargetGroup.Builder
A fluent builder for
CfnDBProxyTargetGroup. |
static interface |
CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty
Specifies the settings that control the size and behavior of the connection pool associated with a `DBProxyTargetGroup` .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDBProxyTargetGroup(software.constructs.Construct scope,
String id,
CfnDBProxyTargetGroupProps props)
Create a new `AWS::RDS::DBProxyTargetGroup`.
|
protected |
CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrTargetGroupArn()
The Amazon Resource Name (ARN) representing the target group.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConnectionPoolConfigurationInfo()
Settings that control the size and behavior of the connection pool associated with a `DBProxyTargetGroup` .
|
List<String> |
getDbClusterIdentifiers()
One or more DB cluster identifiers.
|
List<String> |
getDbInstanceIdentifiers()
One or more DB instance identifiers.
|
String |
getDbProxyName()
The identifier of the `DBProxy` that is associated with the `DBProxyTargetGroup` .
|
String |
getTargetGroupName()
The identifier for the target group.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setConnectionPoolConfigurationInfo(CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value)
Settings that control the size and behavior of the connection pool associated with a `DBProxyTargetGroup` .
|
void |
setConnectionPoolConfigurationInfo(IResolvable value)
Settings that control the size and behavior of the connection pool associated with a `DBProxyTargetGroup` .
|
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 the `DBProxy` that is associated with the `DBProxyTargetGroup` .
|
void |
setTargetGroupName(String value)
The identifier for the target group.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBProxyTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDBProxyTargetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDBProxyTargetGroupProps 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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrTargetGroupArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDbProxyName()
@Stability(value=Stable)
public void setDbProxyName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTargetGroupName()
Currently, this property must be set to
default.
@Stability(value=Stable)
public void setTargetGroupName(@NotNull
String value)
Currently, this property must be set to
default.
@Stability(value=Stable) @Nullable public Object getConnectionPoolConfigurationInfo()
@Stability(value=Stable)
public void setConnectionPoolConfigurationInfo(@Nullable
CfnDBProxyTargetGroup.ConnectionPoolConfigurationInfoFormatProperty value)
@Stability(value=Stable)
public void setConnectionPoolConfigurationInfo(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getDbClusterIdentifiers()
@Stability(value=Stable)
public void setDbClusterIdentifiers(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public List<String> getDbInstanceIdentifiers()
Copyright © 2022. All rights reserved.