interface ICommandHooks
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.Python.Alpha.ICommandHooks |
![]() | github.com/aws/aws-cdk-go/awscdklambdapythonalpha/v2#ICommandHooks |
![]() | software.amazon.awscdk.services.lambda.python.alpha.ICommandHooks |
![]() | aws_cdk.aws_lambda_python_alpha.ICommandHooks |
![]() | @aws-cdk/aws-lambda-python-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 [`pytest`];
}
// ...
}
Methods
Name | Description |
---|---|
after | Returns commands to run after bundling. |
before | 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 &&
.