@aws-cdk_aws-lambda-go-alpha.ICommandHooks

interface ICommandHooks ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Lambda.Go.Alpha.ICommandHooks
Gogithub.com/aws/aws-cdk-go/awscdklambdagoalpha/v2#ICommandHooks
Javasoftware.amazon.awscdk.services.lambda.go.alpha.ICommandHooks
Pythonaws_cdk.aws_lambda_go_alpha.ICommandHooks
TypeScript (source)@aws-cdk/aws-lambda-go-alpha ยป ICommandHooks

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 ./...`];
  }
  // ...
}

Methods

NameDescription
afterBundling(inputDir, outputDir)๐Ÿ”นReturns commands to run after bundling.
beforeBundling(inputDir, outputDir)๐Ÿ”นReturns commands to run before bundling.

afterBundling(inputDir, outputDir)๐Ÿ”น

public afterBundling(inputDir: string, outputDir: string): string[]

Parameters

  • inputDir string
  • outputDir string

Returns

  • string[]

Returns commands to run after bundling.

Commands are chained with &&.


beforeBundling(inputDir, outputDir)๐Ÿ”น

public beforeBundling(inputDir: string, outputDir: string): string[]

Parameters

  • inputDir string
  • outputDir string

Returns

  • string[]

Returns commands to run before bundling.

Commands are chained with &&.