Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Amazon Aurora DSQL Construct Library

---

cdk-constructs: Experimental

The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.


Amazon Aurora DSQL is a serverless, distributed relational database service optimized for transactional workloads. Aurora DSQL offers virtually unlimited scale and doesn't require you to manage infrastructure. The active-active highly available architecture provides 99.99% single-Region and 99.999% multi-Region availability.

The @aws-cdk/aws-dsql-alpha package contains primitives for setting up Aurora DSQL clusters.

import aws_cdk.aws_dsql_alpha as dsql

Creating an Aurora DSQL Cluster

To create an Aurora DSQL cluster, define a Cluster:

cluster = dsql.Cluster(self, "Cluster",
    cluster_name="my-dsql-cluster",
    deletion_protection=True
)

Granting Connect Access

You can grant IAM principals the ability to connect to the cluster:

role = iam.Role(self, "DBRole", assumed_by=iam.AccountPrincipal(self.account))
cluster = dsql.Cluster(self, "Cluster")

# Use one of the following statements to grant the role the necessary permissions
cluster.grant_connect(role) # Grant the role dsql:DbConnect
cluster.grant_connect_admin(role) # Grant the role dsql:DbConnectAdmin
cluster.grant(role, "dsql:DbConnect")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_cdk_aws_dsql_alpha-2.268.0a0.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_cdk_aws_dsql_alpha-2.268.0a0-py3-none-any.whl (50.8 kB view details)

Uploaded Python 3

File details

Details for the file aws_cdk_aws_dsql_alpha-2.268.0a0.tar.gz.

File metadata

File hashes

Hashes for aws_cdk_aws_dsql_alpha-2.268.0a0.tar.gz
Algorithm Hash digest
SHA256 26c9eca72926364e0ac67ba06d1f5208d2927692ee1a08e1bbbb28fba829a486
MD5 bb0f64bf78cd1726c171ac4f6007055c
BLAKE2b-256 6fe33aa37df5d359f516045d7f63b2c05b55eb8a77da8bef11be344232c29fd4

See more details on using hashes here.

File details

Details for the file aws_cdk_aws_dsql_alpha-2.268.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_cdk_aws_dsql_alpha-2.268.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 77b1b989c9afe19b1637300314383928998e4b4d174073711ee5727d1acc0612
MD5 00d9d4d3e2c9d04733e0c676e8d3904d
BLAKE2b-256 c064f9e800051f7a993d1643690ae059499315bfc91493730b3a07a8ecca6114

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page