@Stability(value=Experimental) public static final class AwsCdkDepsCommonOptions.Builder extends Object implements software.amazon.jsii.Builder<AwsCdkDepsCommonOptions>
AwsCdkDepsCommonOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AwsCdkDepsCommonOptions.Builder cdkVersion(String cdkVersion)
AwsCdkDepsCommonOptions.getCdkVersion()cdkVersion - Minimum version of the AWS CDK to depend on. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkDepsCommonOptions.Builder cdkAssert(Boolean cdkAssert)
AwsCdkDepsCommonOptions.getCdkAssert()cdkAssert - Install the @aws-cdk/assert library?.this@Stability(value=Experimental) public AwsCdkDepsCommonOptions.Builder cdkAssertions(Boolean cdkAssertions)
AwsCdkDepsCommonOptions.getCdkAssertions()cdkAssertions - Install the @aws-cdk/assertions library?.
Only needed for CDK 1.x. If using CDK 2.x then
assertions is already included in 'aws-cdk-lib'this@Stability(value=Deprecated) @Deprecated public AwsCdkDepsCommonOptions.Builder cdkDependencies(List<String> cdkDependencies)
AwsCdkDepsCommonOptions.getCdkDependencies()cdkDependencies - Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?.this@Stability(value=Deprecated) @Deprecated public AwsCdkDepsCommonOptions.Builder cdkDependenciesAsDeps(Boolean cdkDependenciesAsDeps)
AwsCdkDepsCommonOptions.getCdkDependenciesAsDeps()cdkDependenciesAsDeps - If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`).
This is to ensure that downstream consumers actually have your CDK dependencies installed
when using npm < 7 or yarn, where peer dependencies are not automatically installed.
If this is disabled, cdkDependencies will be added to devDependencies to ensure
they are present during development.this@Stability(value=Deprecated) @Deprecated public AwsCdkDepsCommonOptions.Builder cdkTestDependencies(List<String> cdkTestDependencies)
AwsCdkDepsCommonOptions.getCdkTestDependencies()cdkTestDependencies - AWS CDK modules required for testing.this@Stability(value=Experimental) public AwsCdkDepsCommonOptions.Builder cdkVersionPinning(Boolean cdkVersionPinning)
AwsCdkDepsCommonOptions.getCdkVersionPinning()cdkVersionPinning - Use pinned version instead of caret version for CDK.
You can use this to prevent yarn to mix versions for your CDK dependencies and to prevent auto-updates.
If you use experimental features this will let you define the moment you include breaking changes.this@Stability(value=Experimental) public AwsCdkDepsCommonOptions.Builder constructsVersion(String constructsVersion)
AwsCdkDepsCommonOptions.getConstructsVersion()constructsVersion - Minimum version of the `constructs` library to depend on.this@Stability(value=Experimental) public AwsCdkDepsCommonOptions build()
build in interface software.amazon.jsii.Builder<AwsCdkDepsCommonOptions>AwsCdkDepsCommonOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.