Package io.github.cdklabs.awslambdarust
Interface ICommandHooks
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ICommandHooks.Jsii$Default
- All Known Implementing Classes:
ICommandHooks.Jsii$Proxy
@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-05-06T06:07:14.562Z") @Stability(Experimental) public interface ICommandHooks extends software.amazon.jsii.JsiiSerializable
(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}`]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceICommandHooks.Jsii$DefaultInternal default implementation forICommandHooks.static classICommandHooks.Jsii$ProxyA proxy class which represents a concrete javascript instance of this type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>afterBundling(String inputDir, String outputDir)(experimental) Returns commands to run after bundling.List<String>beforeBundling(String inputDir, String outputDir)(experimental) Returns commands to run before bundling.
-
-
-
Method Detail
-
afterBundling
@Stability(Experimental) @NotNull List<String> afterBundling(@NotNull String inputDir, @NotNull String outputDir)
(experimental) Returns commands to run after bundling.Commands are chained with
&&.- Parameters:
inputDir- This parameter is required.outputDir- This parameter is required.
-
beforeBundling
@Stability(Experimental) @NotNull List<String> beforeBundling(@NotNull String inputDir, @NotNull String outputDir)
(experimental) Returns commands to run before bundling.Commands are chained with
&&.- Parameters:
inputDir- This parameter is required.outputDir- This parameter is required.
-
-