Skip navigation links

@Stability(value=Experimental)

Package software.amazon.awscdk.core

monocdk Experiment

See: Description

Package software.amazon.awscdk.core Description

monocdk Experiment

experimental

An experiment to bundle all of the CDK into a single module.

:warning: Please don't use this module unless you are interested in providing feedback about this experience.

Usage

Installation

To try out monocdk replace all references to CDK Construct Libraries (most @aws-cdk/* packages) in your package.json file with a single entrey referring to monocdk.

You also need to add a reference to the constructs library, according to the kind of project you are developing:

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
 import software.amazon.awscdk.core.core;
 import software.amazon.awscdk.core.aws_s3;
 
 
 Object app = new App();
 Object stack = new Stack(app, "MonoCDK-Stack");
 
 new Bucket(stack, "TestBucket");
 

Barrel import

Alternatively, you can use "barrel" imports:

 // Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
 import software.amazon.awscdk.core.App;
 import software.amazon.awscdk.core.Stack;
 import monocdk.aws.s3.Bucket;
 
 
 App app = new App();
 Stack stack = new Stack(app, "MonoCDK-Stack");
 
 new Bucket(stack, "TestBucket");
 
Skip navigation links

Copyright © 2021. All rights reserved.