db_proxy_endpoints
Creates, updates, deletes or gets a db_proxy_endpoint
resource or lists db_proxy_endpoints
in a region
Overview
Name | db_proxy_endpoints |
Type | Resource |
Description | Resource schema for AWS::RDS::DBProxyEndpoint. |
Id | aws.rds.db_proxy_endpoints |
Fields
Name | Datatype | Description |
---|---|---|
db_proxy_endpoint_name | string | The 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_arn | string | The Amazon Resource Name (ARN) for the DB proxy endpoint. |
db_proxy_name | string | The identifier for the proxy. This name must be unique for all proxies owned by your AWS account in the specified AWS Region. |
vpc_id | string | VPC ID to associate with the new DB proxy endpoint. |
vpc_security_group_ids | array | VPC security group IDs to associate with the new DB proxy endpoint. |
vpc_subnet_ids | array | VPC subnet IDs to associate with the new DB proxy endpoint. |
endpoint | string | The 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_role | string | A value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations. |
is_default | boolean | A 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. |
tags | array | An optional set of key-value pairs to associate arbitrary data of your choosing with the DB proxy endpoint. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DBProxyName, DBProxyEndpointName, VpcSubnetIds, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rds.db_proxy_endpoints (
DBProxyEndpointName,
DBProxyName,
VpcSubnetIds,
region
)
SELECT
'{{ DBProxyEndpointName }}',
'{{ DBProxyName }}',
'{{ VpcSubnetIds }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rds.db_proxy_endpoints (
DBProxyEndpointName,
DBProxyName,
VpcSecurityGroupIds,
VpcSubnetIds,
TargetRole,
Tags,
region
)
SELECT
'{{ DBProxyEndpointName }}',
'{{ DBProxyName }}',
'{{ VpcSecurityGroupIds }}',
'{{ VpcSubnetIds }}',
'{{ TargetRole }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: db_proxy_endpoint
props:
- name: DBProxyEndpointName
value: '{{ DBProxyEndpointName }}'
- name: DBProxyName
value: '{{ DBProxyName }}'
- name: VpcSecurityGroupIds
value:
- '{{ VpcSecurityGroupIds[0] }}'
- name: VpcSubnetIds
value:
- '{{ VpcSubnetIds[0] }}'
- name: TargetRole
value: '{{ TargetRole }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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