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

Methods

NameAccessible byRequired Params
create_resourceINSERTDBProxyName, DBProxyEndpointName, VpcSubnetIds, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all db_proxy_endpoints in a region.

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 aws.rds.db_proxy_endpoints
WHERE region = 'us-east-1';

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

INSERT example

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

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

DELETE example

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

Permissions

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

Create

rds:CreateDBProxyEndpoint,
rds:DescribeDBProxyEndpoints

Read

rds:DescribeDBProxyEndpoints,
rds:ListTagsForResource

Update

rds:ModifyDBProxyEndpoint,
rds:AddTagsToResource,
rds:RemoveTagsFromResource

Delete

rds:DescribeDBProxyEndpoints,
rds:DeleteDBProxyEndpoint

List

rds:DescribeDBProxyEndpoints