Class AwsCdkConstructLibrary

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable
    Direct Known Subclasses:
    ConstructLibraryAws

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:42.823Z")
    @Stability(Experimental)
    public class AwsCdkConstructLibrary
    extends ConstructLibrary
    (experimental) AWS CDK construct library project.

    A multi-language (jsii) construct library which vends constructs designed to use within the AWS CDK with a friendly workflow and automatic publishing to the construct catalog.

    • Constructor Detail

      • AwsCdkConstructLibrary

        protected AwsCdkConstructLibrary​(software.amazon.jsii.JsiiObjectRef objRef)
      • AwsCdkConstructLibrary

        protected AwsCdkConstructLibrary​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • AwsCdkConstructLibrary

        @Stability(Experimental)
        public AwsCdkConstructLibrary​(@NotNull
                                      AwsCdkConstructLibraryOptions options)
        Parameters:
        options - This parameter is required.
    • Method Detail

      • addCdkDependencies

        @Stability(Deprecated)
        @Deprecated
        public void addCdkDependencies​(@NotNull
                                       @NotNull String... deps)
        Deprecated.
        Not supported in v2. For v1, use project.cdkDeps.addV1Dependencies()
        (deprecated) Adds dependencies to AWS CDK modules.

        Since this is a library project, dependencies will be added as peer dependencies.

        Parameters:
        deps - names of cdk modules (e.g. @aws-cdk/aws-lambda). This parameter is required.
      • addCdkTestDependencies

        @Stability(Deprecated)
        @Deprecated
        public void addCdkTestDependencies​(@NotNull
                                           @NotNull String... deps)
        Deprecated.
        Not supported in v2. For v1, use project.cdkDeps.addV1DevDependencies()
        (deprecated) Adds AWS CDK modules as dev dependencies.

        Parameters:
        deps - names of cdk modules (e.g. @aws-cdk/aws-lambda). This parameter is required.
      • getCdkDeps

        @Stability(Experimental)
        @NotNull
        public AwsCdkDeps getCdkDeps()
      • getCdkVersion

        @Stability(Experimental)
        @NotNull
        public String getCdkVersion()
        (experimental) The target CDK version for this library.
      • getVersion

        @Stability(Deprecated)
        @Deprecated
        @NotNull
        public String getVersion()
        Deprecated.
        use cdkVersion