ICommandHooks
- class aws_cdk.aws_lambda_go_alpha.ICommandHooks(*args, **kwargs)
- Bases: - Protocol- (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 ./...`]; } // ... }- Stability:
- experimental 
 - Methods - after_bundling(input_dir, output_dir)
- (experimental) Returns commands to run after bundling. - Commands are chained with - &&.- Parameters:
- input_dir ( - str)
- output_dir ( - str)
 
- Stability:
- experimental 
- Return type:
- List[- str]
 
 - before_bundling(input_dir, output_dir)
- (experimental) Returns commands to run before bundling. - Commands are chained with - &&.- Parameters:
- input_dir ( - str)
- output_dir ( - str)
 
- Stability:
- experimental 
- Return type:
- List[- str]