All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.projen.awscdk.LambdaAutoDiscover Maven / Gradle / Ivy

The newest version!
package io.github.cdklabs.projen.awscdk;

/**
 * (experimental) Creates lambdas from entry points discovered in the project's source tree.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-15T17:03:55.023Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.projen.$Module.class, fqn = "projen.awscdk.LambdaAutoDiscover")
public class LambdaAutoDiscover extends io.github.cdklabs.projen.cdk.AutoDiscoverBase {

    protected LambdaAutoDiscover(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected LambdaAutoDiscover(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param project This parameter is required.
     * @param options This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public LambdaAutoDiscover(final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.Project project, final @org.jetbrains.annotations.NotNull io.github.cdklabs.projen.awscdk.LambdaAutoDiscoverOptions options) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(project, "project is required"), java.util.Objects.requireNonNull(options, "options is required") });
    }

    /**
     * (experimental) A fluent builder for {@link io.github.cdklabs.projen.awscdk.LambdaAutoDiscover}.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static final class Builder implements software.amazon.jsii.Builder {
        /**
         * @return a new instance of {@link Builder}.
         * @param project This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        public static Builder create(final io.github.cdklabs.projen.Project project) {
            return new Builder(project);
        }

        private final io.github.cdklabs.projen.Project project;
        private final io.github.cdklabs.projen.awscdk.LambdaAutoDiscoverOptions.Builder options;

        private Builder(final io.github.cdklabs.projen.Project project) {
            this.project = project;
            this.options = new io.github.cdklabs.projen.awscdk.LambdaAutoDiscoverOptions.Builder();
        }

        /**
         * (experimental) AWS CDK dependency manager.
         * 

* @return {@code this} * @param cdkDeps AWS CDK dependency manager. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder cdkDeps(final io.github.cdklabs.projen.awscdk.AwsCdkDeps cdkDeps) { this.options.cdkDeps(cdkDeps); return this; } /** * (experimental) Path to the tsconfig file to use for integration tests. *

* @return {@code this} * @param tsconfigPath Path to the tsconfig file to use for integration tests. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder tsconfigPath(final java.lang.String tsconfigPath) { this.options.tsconfigPath(tsconfigPath); return this; } /** * (experimental) Project source tree (relative to project output directory). *

* @return {@code this} * @param srcdir Project source tree (relative to project output directory). This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder srcdir(final java.lang.String srcdir) { this.options.srcdir(srcdir); return this; } /** * (experimental) Options for AWS Lambda functions. *

* @return {@code this} * @param lambdaOptions Options for AWS Lambda functions. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder lambdaOptions(final io.github.cdklabs.projen.awscdk.LambdaFunctionCommonOptions lambdaOptions) { this.options.lambdaOptions(lambdaOptions); return this; } /** * @return a newly built instance of {@link io.github.cdklabs.projen.awscdk.LambdaAutoDiscover}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public io.github.cdklabs.projen.awscdk.LambdaAutoDiscover build() { return new io.github.cdklabs.projen.awscdk.LambdaAutoDiscover( this.project, this.options.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy