Skip to main content

db_proxy_target_groups

Creates, updates, deletes, gets or lists a db_proxy_target_groups resource.

Overview

Namedb_proxy_target_groups
TypeResource
Idaws.rds.db_proxy_target_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
connection_pool_configstringThe settings that determine the size and behavior of the connection pool for the target group.
created_datestringThe date and time when the target group was first created.
db_proxy_namestringThe identifier for the RDS proxy associated with this target group.
is_defaultbooleanIndicates whether this target group is the first one used for connection requests by the associated proxy. Because each proxy is currently associated with a single target group, currently this setting is always true.
statusstringThe current status of this target group. A status of available means the target group is correctly associated with a database. Other values indicate that you must wait for the target group to be ready, or take some action to resolve an issue.
target_group_arnstringThe Amazon Resource Name (ARN) representing the target group.
target_group_namestringThe identifier for the target group. This name must be unique for all target groups owned by your Amazon Web Services account in the specified Amazon Web Services Region.
updated_datestringThe date and time when the target group was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_proxy_target_groupsselectDBProxyName, regionTargetGroupName, Filters, Marker, MaxRecordsReturns information about DB proxy target groups, represented by DBProxyTargetGroup data structures.
modify_db_proxy_target_groupupdateTargetGroupName, DBProxyName, regionConnectionPoolConfig, NewNameModifies the properties of a DBProxyTargetGroup.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DBProxyNamestringThe name of the proxy.
TargetGroupNamestringThe name of the target group to modify.
regionstringAWS region (default: us-east-1)
ConnectionPoolConfigobjectThe settings that determine the size and behavior of the connection pool for the target group.
FiltersarrayThis parameter is not currently supported.
MarkerstringAn optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100.
NewNamestringThe new name for the modified DBProxyTarget. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens. You can't rename the default target group.
TargetGroupNamestringThe identifier of the DBProxyTargetGroup to describe.

SELECT examples

Returns information about DB proxy target groups, represented by DBProxyTargetGroup data structures.

SELECT
connection_pool_config,
created_date,
db_proxy_name,
is_default,
status,
target_group_arn,
target_group_name,
updated_date
FROM aws.rds.db_proxy_target_groups
WHERE DBProxyName = '{{ DBProxyName }}' -- required
AND region = '{{ region }}' -- required
AND TargetGroupName = '{{ TargetGroupName }}'
AND Filters = '{{ Filters }}'
AND Marker = '{{ Marker }}'
AND MaxRecords = '{{ MaxRecords }}'
;

UPDATE examples

Modifies the properties of a DBProxyTargetGroup.

UPDATE aws.rds.db_proxy_target_groups
SET
-- No updatable properties
WHERE
TargetGroupName = '{{ TargetGroupName }}' --required
AND DBProxyName = '{{ DBProxyName }}' --required
AND region = '{{ region }}' --required
AND ConnectionPoolConfig = '{{ ConnectionPoolConfig}}'
AND NewName = '{{ NewName}}'
RETURNING
connection_pool_config,
created_date,
db_proxy_name,
is_default,
status,
target_group_arn,
target_group_name,
updated_date;