Interface AwsCdkDepsCommonOptions

    • Method Detail

      • getCdkVersion

        @Stability(Experimental)
        @NotNull
        String getCdkVersion()
        (experimental) Minimum version of the AWS CDK to depend on.

        Default: "2.1.0"

      • getCdkAssert

        @Stability(Deprecated)
        @Deprecated
        @Nullable
        default Boolean getCdkAssert()
        Deprecated.
        The
        (deprecated) Warning: NodeJS only.

        Install the

        Default: - will be included by default for AWS CDK >= 1.0.0 < 2.0.0

      • getCdkAssertions

        @Stability(Experimental)
        @Nullable
        default Boolean getCdkAssertions()
        (experimental) Install the assertions library?

        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

      • getCdkDependencies

        @Stability(Deprecated)
        @Deprecated
        @Nullable
        default List<String> getCdkDependencies()
        Deprecated.
        For CDK 2.x use "deps" instead. (or "peerDeps" if you're building a library)
        (deprecated) Which AWS CDKv1 modules this project requires.

      • getCdkDependenciesAsDeps

        @Stability(Deprecated)
        @Deprecated
        @Nullable
        default Boolean getCdkDependenciesAsDeps()
        Deprecated.
        Not supported in CDK v2.
        (deprecated) 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.

        Note: this setting only applies to construct library projects

        Default: true

      • getCdkTestDependencies

        @Stability(Deprecated)
        @Deprecated
        @Nullable
        default List<String> getCdkTestDependencies()
        Deprecated.
        For CDK 2.x use 'devDeps' (in node.js projects) or 'testDeps' (in java projects) instead
        (deprecated) AWS CDK modules required for testing.

      • getCdkVersionPinning

        @Stability(Experimental)
        @Nullable
        default Boolean getCdkVersionPinning()
        (experimental) Use pinned version instead of caret version for CDK.

        You can use this to prevent mixed 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.

      • getConstructsVersion

        @Stability(Experimental)
        @Nullable
        default String getConstructsVersion()
        (experimental) Minimum version of the constructs library to depend on.

        Default: - for CDK 1.x the default is "3.2.27", for CDK 2.x the default is "10.0.5".