Skip to main content

The AWS Cloud Development Kit library

Project description

AWS Cloud Development Kit Library

experimental

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 and peerDependencies 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.0a6.tar.gz (51.3 MB view details)

Uploaded Source

Built Distribution

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

aws_cdk_lib-2.0.0a6-py3-none-any.whl (51.5 MB view details)

Uploaded Python 3

File details

Details for the file aws-cdk-lib-2.0.0a6.tar.gz.

File metadata

  • Download URL: aws-cdk-lib-2.0.0a6.tar.gz
  • Upload date:
  • Size: 51.3 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.58.0 CPython/3.6.5

File hashes

Hashes for aws-cdk-lib-2.0.0a6.tar.gz
Algorithm Hash digest
SHA256 dec6b316627d85ff07b8d835b0bb430621c8286c8c3f20bfc19099cdcbe8ea99
MD5 61a8b2144d4c48485601d238d8c9a3b1
BLAKE2b-256 481f9ed7998072f785518e01de1dee24ea3bde3dd65e3be8a51ffa2521dcd013

See more details on using hashes here.

File details

Details for the file aws_cdk_lib-2.0.0a6-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk_lib-2.0.0a6-py3-none-any.whl
  • Upload date:
  • Size: 51.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.58.0 CPython/3.6.5

File hashes

Hashes for aws_cdk_lib-2.0.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 baf21d512c6b983df2db1b2756915bc5001a4e93b82e8a27a91a013f40cc76f8
MD5 34417141b78b9e891599bcd9256dc737
BLAKE2b-256 110cd2e0dcaea83101da240be0255e1ce8e323510747182d9a38064e480755ec

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