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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.rds.db_proxy_target_groups
WHERE
Identifier = '{{ target_group_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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