JSPM

aws-cdk-lib

2.0.0-alpha.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1906428
  • Score
    100M100P100Q205473F
  • License Apache-2.0

The AWS Cloud Development Kit library

Package Exports

  • aws-cdk-lib
  • aws-cdk-lib/aws-cloudwatch
  • aws-cdk-lib/aws-cloudwatch-actions
  • aws-cdk-lib/aws-cognito
  • aws-cdk-lib/aws-dynamodb
  • aws-cdk-lib/aws-events
  • aws-cdk-lib/aws-events-targets
  • aws-cdk-lib/aws-lambda
  • aws-cdk-lib/aws-sns
  • aws-cdk-lib/aws-sns-subscriptions
  • aws-cdk-lib/lib/aws-appsync
  • aws-cdk-lib/lib/aws-certificatemanager
  • aws-cdk-lib/lib/aws-cloudfront
  • aws-cdk-lib/lib/aws-cloudfront-origins
  • aws-cdk-lib/lib/aws-iam
  • aws-cdk-lib/lib/aws-lambda
  • aws-cdk-lib/lib/aws-route53
  • aws-cdk-lib/lib/aws-route53-patterns
  • aws-cdk-lib/lib/aws-route53-targets
  • aws-cdk-lib/lib/aws-s3
  • aws-cdk-lib/lib/aws-s3-deployment

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-cdk-lib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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:

import { core, aws_s3 as s3 } from 'aws-cdk-lib';

const app = new core.App();
const stack = new core.Stack(app, 'TestStack');

new s3.Bucket(stack, 'TestBucket');

Barrel import

Alternatively, you can use "barrel" imports:

import { App, Stack } from 'aws-cdk-lib';
import { Bucket } from 'aws-cdk-lib/aws-s3';

const app = new App();
const stack = new Stack(app, 'TestStack');

new Bucket(stack, 'TestBucket');