Skip to main content

The CDK Construct Library for AWS::DSQL

Project description

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")

Project details


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.253.0a0.tar.gz (51.1 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.253.0a0-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for aws_cdk_aws_dsql_alpha-2.253.0a0.tar.gz
Algorithm Hash digest
SHA256 9c297b16612f56727576f8d192a406e561db4924ececdb25262a30ff7fe91a23
MD5 e1dc8902c65da12ed8a7f61830ed74b2
BLAKE2b-256 1818d20dc7d54c49acc4c07cf934b282f910358d5f69f22e2b63dcbcc277947d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_cdk_aws_dsql_alpha-2.253.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7804554fbafd9f78c5e6c2de7ca15917331b7d329a2822366f45a541f7696b
MD5 515dce40e8ac80706fdf14025964b095
BLAKE2b-256 42d339f259ed4ba5dc543ce615c3f8ac74116782afe0b62b28f844959b7684ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page