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

software.amazon.awscdk.services.lambda.go.ICommandHooks Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.lambda.go;

/**
 * (experimental) Command hooks.
 * 

* These commands will run in the environment in which bundling occurs: inside * the container for Docker bundling or on the host OS for local bundling. *

* Commands are chained with &&. *

*

 * {
 *    // Run tests prior to bundling
 *    beforeBundling(inputDir: string, outputDir: string): string[] {
 *      return [`go test -mod=vendor ./...`];
 *    }
 *    // ...
 * }
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.54.0 (build b1b977a)", date = "2022-02-24T23:24:24.446Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.lambda.go.$Module.class, fqn = "@aws-cdk/aws-lambda-go.ICommandHooks") @software.amazon.jsii.Jsii.Proxy(ICommandHooks.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface ICommandHooks extends software.amazon.jsii.JsiiSerializable { /** * (experimental) Returns commands to run after bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull java.util.List afterBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir); /** * (experimental) Returns commands to run before bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull java.util.List beforeBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir); /** * A proxy class which represents a concrete javascript instance of this type. */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.lambda.go.ICommandHooks.Jsii$Default { protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } /** * (experimental) Returns commands to run after bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull java.util.List afterBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir) { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "afterBundling", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(inputDir, "inputDir is required"), java.util.Objects.requireNonNull(outputDir, "outputDir is required") })); } /** * (experimental) Returns commands to run before bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public final @org.jetbrains.annotations.NotNull java.util.List beforeBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir) { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "beforeBundling", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(inputDir, "inputDir is required"), java.util.Objects.requireNonNull(outputDir, "outputDir is required") })); } } /** * Internal default implementation for {@link ICommandHooks}. */ @software.amazon.jsii.Internal interface Jsii$Default extends ICommandHooks { /** * (experimental) Returns commands to run after bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.NotNull java.util.List afterBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir) { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "afterBundling", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(inputDir, "inputDir is required"), java.util.Objects.requireNonNull(outputDir, "outputDir is required") })); } /** * (experimental) Returns commands to run before bundling. *

* Commands are chained with &&. *

* @param inputDir This parameter is required. * @param outputDir This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override default @org.jetbrains.annotations.NotNull java.util.List beforeBundling(final @org.jetbrains.annotations.NotNull java.lang.String inputDir, final @org.jetbrains.annotations.NotNull java.lang.String outputDir) { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.call(this, "beforeBundling", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)), new Object[] { java.util.Objects.requireNonNull(inputDir, "inputDir is required"), java.util.Objects.requireNonNull(outputDir, "outputDir is required") })); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy