Skip to main content

db_proxies

Creates, updates, deletes or gets a db_proxy resource or lists db_proxies in a region

Overview

Namedb_proxies
TypeResource
DescriptionResource schema for AWS::RDS::DBProxy
Idawscc.rds.db_proxies

Fields

NameDatatypeDescription
autharrayThe authorization mechanism that the proxy uses.
db_proxy_arnstringThe Amazon Resource Name (ARN) for the proxy.
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.
debug_loggingbooleanWhether the proxy includes detailed information about SQL statements in its logs.
endpointstringThe endpoint that you can use to connect to the proxy. You include the endpoint value in the connection string for a database client application.
engine_familystringThe kinds of databases that the proxy can connect to.
idle_client_timeoutintegerThe number of seconds that a connection to the proxy can be inactive before the proxy disconnects it.
require_tlsbooleanA Boolean parameter that specifies whether Transport Layer Security (TLS) encryption is required for connections to the proxy.
role_arnstringThe Amazon Resource Name (ARN) of the IAM role that the proxy uses to access secrets in AWS Secrets Manager.
tagsarrayAn optional set of key-value pairs to associate arbitrary data of your choosing with the proxy.
vpc_idstringVPC ID to associate with the new DB proxy.
vpc_security_group_idsarrayVPC security group IDs to associate with the new proxy.
vpc_subnet_idsarrayVPC subnet IDs to associate with the new proxy.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedb_proxiesINSERTAuth, DBProxyName, EngineFamily, RoleArn, VpcSubnetIds, region
delete_resourcedb_proxiesDELETEIdentifier, region
update_resourcedb_proxiesUPDATEIdentifier, PatchDocument, region
list_resourcesdb_proxies_list_onlySELECTregion
get_resourcedb_proxiesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual db_proxy.

SELECT
region,
auth,
db_proxy_arn,
db_proxy_name,
debug_logging,
endpoint,
engine_family,
idle_client_timeout,
require_tls,
role_arn,
tags,
vpc_id,
vpc_security_group_ids,
vpc_subnet_ids
FROM awscc.rds.db_proxies
WHERE
region = 'us-east-1' AND
Identifier = '{{ db_proxy_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.rds.db_proxies (
Auth,
DBProxyName,
EngineFamily,
RoleArn,
VpcSubnetIds,
region
)
SELECT
'{{ auth }}',
'{{ db_proxy_name }}',
'{{ engine_family }}',
'{{ role_arn }}',
'{{ vpc_subnet_ids }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.rds.db_proxies
SET PatchDocument = string('{{ {
"Auth": auth,
"DebugLogging": debug_logging,
"IdleClientTimeout": idle_client_timeout,
"RequireTLS": require_tls,
"RoleArn": role_arn,
"Tags": tags,
"VpcSecurityGroupIds": vpc_security_group_ids
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ db_proxy_name }}';

DELETE example

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

Permissions

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

rds:CreateDBProxy,
rds:DescribeDBProxies,
iam:PassRole