Skip to main content

db_proxy_endpoints

Creates, updates, deletes or gets a db_proxy_endpoint resource or lists db_proxy_endpoints in a region

Overview

Namedb_proxy_endpoints
TypeResource
DescriptionResource schema for AWS::RDS::DBProxyEndpoint.
Idawscc.rds.db_proxy_endpoints

Fields

NameDatatypeDescription
db_proxy_endpoint_namestringThe identifier for the DB proxy endpoint. This name must be unique for all DB proxy endpoints owned by your AWS account in the specified AWS Region.
db_proxy_endpoint_arnstringThe Amazon Resource Name (ARN) for the DB proxy endpoint.
db_proxy_namestringThe identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region.
vpc_idstringVPC ID to associate with the new DB proxy endpoint.
vpc_security_group_idsarrayVPC security group IDs to associate with the new DB proxy endpoint.
vpc_subnet_idsarrayVPC subnet IDs to associate with the new DB proxy endpoint.
endpointstringThe endpoint that you can use to connect to the DB proxy. You include the endpoint value in the connection string for a database client application.
target_rolestringA value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
is_defaultbooleanA value that indicates whether this endpoint is the default endpoint for the associated DB proxy. Default DB proxy endpoints always have read/write capability. Other endpoints that you associate with the DB proxy can be either read/write or read-only.
tagsarrayAn optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedb_proxy_endpointsINSERTDBProxyName, DBProxyEndpointName, VpcSubnetIds, region
delete_resourcedb_proxy_endpointsDELETEIdentifier, region
update_resourcedb_proxy_endpointsUPDATEIdentifier, PatchDocument, region
list_resourcesdb_proxy_endpoints_list_onlySELECTregion
get_resourcedb_proxy_endpointsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual db_proxy_endpoint.

SELECT
region,
db_proxy_endpoint_name,
db_proxy_endpoint_arn,
db_proxy_name,
vpc_id,
vpc_security_group_ids,
vpc_subnet_ids,
endpoint,
target_role,
is_default,
tags
FROM awscc.rds.db_proxy_endpoints
WHERE
region = 'us-east-1' AND
Identifier = '{{ db_proxy_endpoint_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.rds.db_proxy_endpoints (
DBProxyEndpointName,
DBProxyName,
VpcSubnetIds,
region
)
SELECT
'{{ db_proxy_endpoint_name }}',
'{{ db_proxy_name }}',
'{{ vpc_subnet_ids }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.rds.db_proxy_endpoints
SET PatchDocument = string('{{ {
"VpcSecurityGroupIds": vpc_security_group_ids,
"TargetRole": target_role,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ db_proxy_endpoint_name }}';

DELETE example

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

Permissions

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

rds:CreateDBProxyEndpoint,
rds:DescribeDBProxyEndpoints