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 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 without compilation. See https://github.com/aws/jsii/issues/826
from aws_cdk 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.0a12.tar.gz (51.0 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.0a12-py3-none-any.whl (51.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws-cdk-lib-2.0.0a12.tar.gz
  • Upload date:
  • Size: 51.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5

File hashes

Hashes for aws-cdk-lib-2.0.0a12.tar.gz
Algorithm Hash digest
SHA256 acddf76eea341233d82d79f0003aac1b18923d30997afe64c03587ce0dbe0a71
MD5 edfc48c34bff59a9ae8cc7487050140f
BLAKE2b-256 d34bdc72719089856e897b39f283bcbeed599934b6076384401f7162d8508a0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_cdk_lib-2.0.0a12-py3-none-any.whl
  • Upload date:
  • Size: 51.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5

File hashes

Hashes for aws_cdk_lib-2.0.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e28493836814555aae9973a19423e085f4d9d97bde4cfbb527957b56f03548
MD5 9a005652b36e5dadfd4a0281bcccee1f
BLAKE2b-256 789ef449e2517d531e8331479bb0fe3f092ffc38e61dad88424073b9290b1680

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