software.amazon.awscdk.services.lambda.go.ICommandHooks Maven / Gradle / Ivy
Show all versions of lambda-go Show documentation
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 &&
.
*
* Example:
*
*
{@code
* // Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
* {
* // Run tests prior to bundling
* beforeBundling(inputDir, string, outputDir, string);string[];{return asList("go test -mod=vendor ./...")
* }
* }}
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.29.0 (build 41df200)", date = "2021-05-25T18:24:30.209Z")
@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") }));
}
}
}