Skip to main content

db_proxy_target_groups

Creates, updates, deletes or gets a db_proxy_target_group resource or lists db_proxy_target_groups in a region

Overview

Namedb_proxy_target_groups
TypeResource
DescriptionResource schema for AWS::RDS::DBProxyTargetGroup
Idawscc.rds.db_proxy_target_groups

Fields

NameDatatypeDescription
db_proxy_namestringThe identifier for the proxy.
target_group_arnstringThe Amazon Resource Name (ARN) representing the target group.
target_group_namestringThe identifier for the DBProxyTargetGroup
connection_pool_configuration_infoobject
db_instance_identifiersarray
db_cluster_identifiersarray
regionstringAWS region.

For more information, see AWS::RDS::DBProxyTargetGroup.

Methods

NameResourceAccessible byRequired Params
create_resourcedb_proxy_target_groupsINSERTDBProxyName, TargetGroupName, region
delete_resourcedb_proxy_target_groupsDELETEIdentifier, region
update_resourcedb_proxy_target_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesdb_proxy_target_groups_list_onlySELECTregion
get_resourcedb_proxy_target_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual db_proxy_target_group.

SELECT
region,
db_proxy_name,
target_group_arn,
target_group_name,
connection_pool_configuration_info,
db_instance_identifiers,
db_cluster_identifiers
FROM awscc.rds.db_proxy_target_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ target_group_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new db_proxy_target_group resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.rds.db_proxy_target_groups (
DBProxyName,
TargetGroupName,
region
)
SELECT
'{{ db_proxy_name }}',
'{{ target_group_name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a db_proxy_target_group resource, using stack-deploy.

/*+ update */
UPDATE awscc.rds.db_proxy_target_groups
SET PatchDocument = string('{{ {
"ConnectionPoolConfigurationInfo": connection_pool_configuration_info,
"DBInstanceIdentifiers": db_instance_identifiers,
"DBClusterIdentifiers": db_cluster_identifiers
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ target_group_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.rds.db_proxy_target_groups
WHERE
Identifier = '{{ target_group_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the db_proxy_target_groups resource, the following permissions are required:

rds:DescribeDBProxies,
rds:DescribeDBProxyTargetGroups,
rds:ModifyDBProxyTargetGroup,
rds:RegisterDBProxyTargets