The AWS Cloud Development Kit library
Project description
AWS Cloud Development Kit Library
The AWS CDK construct library provides APIs to define your CDK application and add CDK constructs to the application.
Usage
Upgrade from CDK 1.x
When upgrading from CDK 1.x, remove all dependencies to individual CDK packages from your dependencies file and follow the rest of the sections.
Installation
To use this package, you need to declare this package and the constructs package as
dependencies.
According to the kind of project you are developing:
- For projects that are CDK libraries, declare them both under the
devDependenciesandpeerDependenciessections. - For CDK apps, declare them under the
dependenciessection only.
Use in your code
Classic import
You can use a classic import to get access to each service namespaces:
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk_lib import core, aws_s3 as s3
app = core.App()
stack = core.Stack(app, "TestStack")
s3.Bucket(stack, "TestBucket")
Barrel import
Alternatively, you can use "barrel" imports:
# Example automatically generated. See https://github.com/aws/jsii/issues/826
from aws_cdk_lib import App, Stack
from aws_cdk_lib.aws_s3 import Bucket
app = App()
stack = Stack(app, "TestStack")
Bucket(stack, "TestBucket")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws-cdk-lib-2.0.0a1.tar.gz.
File metadata
- Download URL: aws-cdk-lib-2.0.0a1.tar.gz
- Upload date:
- Size: 50.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f1fae5e4c610f3da3de566c324a17ff893f878ef7fe8a347d6646d44355aec
|
|
| MD5 |
e285ad8f3cc91d9193d3aa7055aadcd0
|
|
| BLAKE2b-256 |
9cdc8edc26088a69b8ff72500a4dc266dbc23fab001ec388db9639c2eb63c79e
|
File details
Details for the file aws_cdk_lib-2.0.0a1-py3-none-any.whl.
File metadata
- Download URL: aws_cdk_lib-2.0.0a1-py3-none-any.whl
- Upload date:
- Size: 50.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fa60b0be165ba1a6d32201d550429399a3f3737d05147868334a0556463b04a
|
|
| MD5 |
4d24c34b4d7a11f2ade8de02373bdd56
|
|
| BLAKE2b-256 |
6829cd563497369bef9c3c4b15aa15babeeb551835246d062232259d8220f516
|