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
Idaws.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.

Methods

NameAccessible byRequired Params
create_resourceINSERTDBProxyName, TargetGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all db_proxy_target_groups in a region.

SELECT
region,
db_proxy_name,
target_group_arn,
target_group_name,
connection_pool_configuration_info,
db_instance_identifiers,
db_cluster_identifiers
FROM aws.rds.db_proxy_target_groups
WHERE region = 'us-east-1';

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 aws.rds.db_proxy_target_groups
WHERE region = 'us-east-1' AND data__Identifier = '<TargetGroupArn>';

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 aws.rds.db_proxy_target_groups (
DBProxyName,
TargetGroupName,
region
)
SELECT
'{{ DBProxyName }}',
'{{ TargetGroupName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.rds.db_proxy_target_groups
WHERE data__Identifier = '<TargetGroupArn>'
AND region = 'us-east-1';

Permissions

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

Create

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

Read

rds:DescribeDBProxyTargetGroups,
rds:DescribeDBProxyTargets

Update

rds:DescribeDBProxyTargetGroups,
rds:ModifyDBProxyTargetGroup,
rds:RegisterDBProxyTargets,
rds:DeregisterDBProxyTargets

Delete

rds:DeregisterDBProxyTargets

List

rds:DescribeDBProxyTargetGroups