io.github.cdklabs.awslambdarust.ICommandHooks Maven / Gradle / Ivy
package io.github.cdklabs.awslambdarust;
/**
* (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 &&
.
*
* The following example (specified in TypeScript) copies a file from the input
* directory to the output directory to include it in the bundled asset:
*
*
* afterBundling(inputDir: string, outputDir: string): string[]{
* return [`cp ${inputDir}/my-binary.node ${outputDir}`];
* }
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-10T00:47:35.775Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.awslambdarust.$Module.class, fqn = "@cdklabs/aws-lambda-rust.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 io.github.cdklabs.awslambdarust.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") }));
}
}
}