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
devDependencies
andpeerDependencies
sections. - For CDK apps, declare them under the
dependencies
section 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
aws-cdk-lib-2.0.0a5.tar.gz
(51.3 MB
view hashes)
Built Distribution
Close
Hashes for aws_cdk_lib-2.0.0a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b302fb5c310a3835935b04890d042d6236b851afee208ba70dfbed48df52e830 |
|
MD5 | 0040b72becc316ecbd9828989efc5054 |
|
BLAKE2b-256 | 05132835c9c677f5ad05013a55bd5b7062324d2f123a24215493ba91f49bbd26 |