Class AwsCdkDepsOptions.Jsii$Proxy

    • Constructor Detail

      • Jsii$Proxy

        protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
        Constructor that initializes the object based on values retrieved from the JsiiObject.
        Parameters:
        objRef - Reference to the JSII managed object.
    • Method Detail

      • getDependencyType

        public final DependencyType getDependencyType()
        Description copied from interface: AwsCdkDepsOptions
        (experimental) The type of dependency to use for runtime AWS CDK and constructs modules.

        For libraries, use peer dependencies and for apps use runtime dependencies.

        Specified by:
        getDependencyType in interface AwsCdkDepsOptions
      • getCdkAssertions

        public final Boolean getCdkAssertions()
        Description copied from interface: AwsCdkDepsCommonOptions
        (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

        Specified by:
        getCdkAssertions in interface AwsCdkDepsCommonOptions
      • getCdkDependenciesAsDeps

        public final Boolean getCdkDependenciesAsDeps()
        Description copied from interface: AwsCdkDepsCommonOptions
        (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

        Specified by:
        getCdkDependenciesAsDeps in interface AwsCdkDepsCommonOptions
      • getCdkVersionPinning

        public final Boolean getCdkVersionPinning()
        Description copied from interface: AwsCdkDepsCommonOptions
        (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.

        Specified by:
        getCdkVersionPinning in interface AwsCdkDepsCommonOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object