@Stability(value=Experimental) public static final class AwsCdkDeps.Builder extends Object implements software.amazon.jsii.Builder<AwsCdkDeps>
AwsCdkDeps.| Modifier and Type | Method and Description |
|---|---|
AwsCdkDeps |
build() |
AwsCdkDeps.Builder |
cdkAssert(Boolean cdkAssert)
Deprecated.
The
|
AwsCdkDeps.Builder |
cdkAssertions(Boolean cdkAssertions)
(experimental) Install the @aws-cdk/assertions library?
|
AwsCdkDeps.Builder |
cdkDependencies(List<String> cdkDependencies)
Deprecated.
For CDK 2.x use 'peerDeps' instead
|
AwsCdkDeps.Builder |
cdkDependenciesAsDeps(Boolean cdkDependenciesAsDeps)
Deprecated.
Not supported in CDK v2.
|
AwsCdkDeps.Builder |
cdkTestDependencies(List<String> cdkTestDependencies)
Deprecated.
For CDK 2.x use 'devDeps' instead
|
AwsCdkDeps.Builder |
cdkVersion(String cdkVersion)
(experimental) Minimum version of the AWS CDK to depend on.
|
AwsCdkDeps.Builder |
cdkVersionPinning(Boolean cdkVersionPinning)
(experimental) Use pinned version instead of caret version for CDK.
|
AwsCdkDeps.Builder |
constructsVersion(String constructsVersion)
(experimental) Minimum version of the `constructs` library to depend on.
|
static AwsCdkDeps.Builder |
create(Project project) |
AwsCdkDeps.Builder |
dependencyType(DependencyType dependencyType)
(experimental) The type of dependency to use for runtime AWS CDK and `constructs` modules.
|
@Stability(value=Experimental) public static AwsCdkDeps.Builder create(Project project)
project - This parameter is required.AwsCdkDeps.Builder.@Stability(value=Experimental) public AwsCdkDeps.Builder cdkVersion(String cdkVersion)
Default: "2.1.0"
cdkVersion - Minimum version of the AWS CDK to depend on. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkDeps.Builder cdkAssert(Boolean cdkAssert)
Default: - will be included by default for AWS CDK >= 1.0.0 < 2.0.0
cdkAssert - Install the @aws-cdk/assert library?. This parameter is required.this@Stability(value=Experimental) public AwsCdkDeps.Builder cdkAssertions(Boolean cdkAssertions)
Only needed for CDK 1.x. If using CDK 2.x then assertions is already included in 'aws-cdk-lib'
Default: - will be included by default for AWS CDK >= 1.111.0 < 2.0.0
cdkAssertions - Install the @aws-cdk/assertions library?. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkDeps.Builder cdkDependencies(List<String> cdkDependencies)
cdkDependencies - Which AWS CDK modules (those that start with "@aws-cdk/") does this library require when consumed?. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkDeps.Builder cdkDependenciesAsDeps(Boolean cdkDependenciesAsDeps)
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.
Default: true
cdkDependenciesAsDeps - If this is enabled (default), all modules declared in `cdkDependencies` will be also added as normal `dependencies` (as well as `peerDependencies`). This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkDeps.Builder cdkTestDependencies(List<String> cdkTestDependencies)
cdkTestDependencies - AWS CDK modules required for testing. This parameter is required.this@Stability(value=Experimental) public AwsCdkDeps.Builder cdkVersionPinning(Boolean cdkVersionPinning)
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.
cdkVersionPinning - Use pinned version instead of caret version for CDK. This parameter is required.this@Stability(value=Experimental) public AwsCdkDeps.Builder constructsVersion(String constructsVersion)
Default: - for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".
constructsVersion - Minimum version of the `constructs` library to depend on. This parameter is required.this@Stability(value=Experimental) public AwsCdkDeps.Builder dependencyType(DependencyType dependencyType)
For libraries, use peer dependencies and for apps use runtime dependencies.
dependencyType - The type of dependency to use for runtime AWS CDK and `constructs` modules. This parameter is required.this@Stability(value=Experimental) public AwsCdkDeps build()
build in interface software.amazon.jsii.Builder<AwsCdkDeps>Copyright © 2021. All rights reserved.