Skip to main content

db_proxy_endpoints

Creates, updates, deletes, gets or lists a db_proxy_endpoints resource.

Overview

Namedb_proxy_endpoints
TypeResource
Idaws.rds.db_proxy_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_datestringThe date and time when the DB proxy endpoint was first created.
db_proxy_endpoint_arnstringThe Amazon Resource Name (ARN) for the DB proxy endpoint.
db_proxy_endpoint_namestringThe name for the DB proxy endpoint. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
db_proxy_namestringThe identifier for the DB proxy that is associated with this 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.
endpoint_network_typestringThe network type of the DB proxy endpoint. The network type determines the IP version that the proxy endpoint supports. Valid values: IPV4 - The proxy endpoint supports IPv4 only. IPV6 - The proxy endpoint supports IPv6 only. DUAL - The proxy endpoint supports both IPv4 and IPv6.
is_defaultbooleanIndicates 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.
statusstringThe current status of this DB proxy endpoint. A status of available means the endpoint is ready to handle requests. Other values indicate that you must wait for the endpoint to be ready, or take some action to resolve an issue.
target_rolestringA value that indicates whether the DB proxy endpoint can be used for read/write or read-only operations.
vpc_idstringProvides the VPC ID of the DB proxy endpoint.
vpc_security_group_idsstringProvides a list of VPC security groups that the DB proxy endpoint belongs to.
vpc_subnet_idsstringThe EC2 subnet IDs for the DB proxy endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_db_proxy_endpointsselectregionDBProxyName, DBProxyEndpointName, Filters, Marker, MaxRecordsReturns information about DB proxy endpoints.
create_db_proxy_endpointinsertDBProxyName, DBProxyEndpointName, VpcSubnetIds, regionVpcSecurityGroupIds, TargetRole, Tags, EndpointNetworkTypeCreates a DBProxyEndpoint. Only applies to proxies that are associated with Aurora DB clusters. You can use DB proxy endpoints to specify read/write or read-only access to the DB cluster. You can also use DB proxy endpoints to access a DB proxy through a different VPC than the proxy's default VPC.
modify_db_proxy_endpointupdateDBProxyEndpointName, regionNewDBProxyEndpointName, VpcSecurityGroupIdsChanges the settings for an existing DB proxy endpoint.
delete_db_proxy_endpointdeleteDBProxyEndpointName, regionDeletes a DBProxyEndpoint. Doing so removes the ability to access the DB proxy using the endpoint that you defined. The endpoint that you delete might have provided capabilities such as read/write or read-only operations, or using a different VPC than the DB proxy's default VPC.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
DBProxyEndpointNamestringThe name of the DB proxy endpoint to delete.
DBProxyNamestringThe name of the DB proxy associated with the DB proxy endpoint that you create.
VpcSubnetIdsarrayThe VPC subnet IDs for the DB proxy endpoint that you create. You can specify a different set of subnet IDs than for the original DB proxy.
regionstringAWS region (default: us-east-1)
DBProxyEndpointNamestringThe name of a DB proxy endpoint to describe. If you omit this parameter, the output includes information about all DB proxy endpoints associated with the specified proxy.
DBProxyNamestringThe name of the DB proxy whose endpoints you want to describe. If you omit this parameter, the output includes information about all DB proxy endpoints associated with all your DB proxies.
EndpointNetworkTypestringThe network type of the DB proxy endpoint. The network type determines the IP version that the proxy endpoint supports. Valid values: IPV4 - The proxy endpoint supports IPv4 only. IPV6 - The proxy endpoint supports IPv6 only. DUAL - The proxy endpoint supports both IPv4 and IPv6. Default: IPV4 Constraints: If you specify IPV6 or DUAL, the VPC and all subnets must have an IPv6 CIDR block. If you specify IPV6 or DUAL, the VPC tenancy cannot be dedicated.
FiltersarrayThis parameter is not currently supported.
MarkerstringAn optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved. Default: 100 Constraints: Minimum 20, maximum 100.
NewDBProxyEndpointNamestringThe new identifier for the DBProxyEndpoint. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it can't end with a hyphen or contain two consecutive hyphens.
Tagsarray
TargetRolestringThe role of the DB proxy endpoint. The role determines whether the endpoint can be used for read/write or only read operations. The default is READ_WRITE. The only role that proxies for RDS for Microsoft SQL Server support is READ_WRITE.
VpcSecurityGroupIdsarrayThe VPC security group IDs for the DB proxy endpoint. When the DB proxy endpoint uses a different VPC than the original proxy, you also specify a different set of security group IDs than for the original proxy.

SELECT examples

Returns information about DB proxy endpoints.

SELECT
created_date,
db_proxy_endpoint_arn,
db_proxy_endpoint_name,
db_proxy_name,
endpoint,
endpoint_network_type,
is_default,
status,
target_role,
vpc_id,
vpc_security_group_ids,
vpc_subnet_ids
FROM aws.rds.db_proxy_endpoints
WHERE region = '{{ region }}' -- required
AND DBProxyName = '{{ DBProxyName }}'
AND DBProxyEndpointName = '{{ DBProxyEndpointName }}'
AND Filters = '{{ Filters }}'
AND Marker = '{{ Marker }}'
AND MaxRecords = '{{ MaxRecords }}'
;

INSERT examples

Creates a DBProxyEndpoint. Only applies to proxies that are associated with Aurora DB clusters. You can use DB proxy endpoints to specify read/write or read-only access to the DB cluster. You can also use DB proxy endpoints to access a DB proxy through a different VPC than the proxy's default VPC.

INSERT INTO aws.rds.db_proxy_endpoints (
DBProxyName,
DBProxyEndpointName,
VpcSubnetIds,
region,
VpcSecurityGroupIds,
TargetRole,
Tags,
EndpointNetworkType
)
SELECT
'{{ DBProxyName }}',
'{{ DBProxyEndpointName }}',
'{{ VpcSubnetIds }}',
'{{ region }}',
'{{ VpcSecurityGroupIds }}',
'{{ TargetRole }}',
'{{ Tags }}',
'{{ EndpointNetworkType }}'
RETURNING
created_date,
db_proxy_endpoint_arn,
db_proxy_endpoint_name,
db_proxy_name,
endpoint,
endpoint_network_type,
is_default,
status,
target_role,
vpc_id,
vpc_security_group_ids,
vpc_subnet_ids
;

UPDATE examples

Changes the settings for an existing DB proxy endpoint.

UPDATE aws.rds.db_proxy_endpoints
SET
-- No updatable properties
WHERE
DBProxyEndpointName = '{{ DBProxyEndpointName }}' --required
AND region = '{{ region }}' --required
AND NewDBProxyEndpointName = '{{ NewDBProxyEndpointName}}'
AND VpcSecurityGroupIds = '{{ VpcSecurityGroupIds}}'
RETURNING
created_date,
db_proxy_endpoint_arn,
db_proxy_endpoint_name,
db_proxy_name,
endpoint,
endpoint_network_type,
is_default,
status,
target_role,
vpc_id,
vpc_security_group_ids,
vpc_subnet_ids;

DELETE examples

Deletes a DBProxyEndpoint. Doing so removes the ability to access the DB proxy using the endpoint that you defined. The endpoint that you delete might have provided capabilities such as read/write or read-only operations, or using a different VPC than the DB proxy's default VPC.

DELETE FROM aws.rds.db_proxy_endpoints
WHERE DBProxyEndpointName = '{{ DBProxyEndpointName }}' --required
AND region = '{{ region }}' --required
;