@Stability(value=Experimental) public static final class AwsCdkDepsOptions.Builder extends Object implements software.amazon.jsii.Builder<AwsCdkDepsOptions>
AwsCdkDepsOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AwsCdkDepsOptions.Builder dependencyType(DependencyType dependencyType)
AwsCdkDepsOptions.getDependencyType()dependencyType - The type of dependency to use for runtime AWS CDK and `constructs` modules. This parameter is required.
For libraries, use peer dependencies and for apps use runtime dependencies.this@Stability(value=Experimental) public AwsCdkDepsOptions.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 AwsCdkDepsOptions.Builder cdkAssert(Boolean cdkAssert)
AwsCdkDepsCommonOptions.getCdkAssert()cdkAssert - Install the @aws-cdk/assert library?.this@Stability(value=Experimental) public AwsCdkDepsOptions.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 AwsCdkDepsOptions.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 AwsCdkDepsOptions.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 AwsCdkDepsOptions.Builder cdkTestDependencies(List<String> cdkTestDependencies)
AwsCdkDepsCommonOptions.getCdkTestDependencies()cdkTestDependencies - AWS CDK modules required for testing.this@Stability(value=Experimental) public AwsCdkDepsOptions.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 AwsCdkDepsOptions.Builder constructsVersion(String constructsVersion)
AwsCdkDepsCommonOptions.getConstructsVersion()constructsVersion - Minimum version of the `constructs` library to depend on.this@Stability(value=Experimental) public AwsCdkDepsOptions build()
build in interface software.amazon.jsii.Builder<AwsCdkDepsOptions>AwsCdkDepsOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.