Skip to content
v2.275.0

Hooks Struct ​

Commands to run at predefined points during the integration test workflow.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';
const hooks: cloud_assembly_schema.Hooks = {
  postDeploy: ['postDeploy'],
  postDestroy: ['postDestroy'],
  preDeploy: ['preDeploy'],
  preDestroy: ['preDestroy'],
};

Properties ​

postDeployoptionalstring[]post_deployoptionaltyping.List[str]postDeployoptionalList<String>PostDeployoptionalstring[]PostDeployoptional*[]*string#
Commands to run prior after deploying the cdk stacks in the integration test.

Default: no commands

postDestroyoptionalstring[]post_destroyoptionaltyping.List[str]postDestroyoptionalList<String>PostDestroyoptionalstring[]PostDestroyoptional*[]*string#
Commands to run after destroying the cdk stacks in the integration test.

Default: no commands

preDeployoptionalstring[]pre_deployoptionaltyping.List[str]preDeployoptionalList<String>PreDeployoptionalstring[]PreDeployoptional*[]*string#
Commands to run prior to deploying the cdk stacks in the integration test.

Default: no commands

preDestroyoptionalstring[]pre_destroyoptionaltyping.List[str]preDestroyoptionalList<String>PreDestroyoptionalstring[]PreDestroyoptional*[]*string#
Commands to run prior to destroying the cdk stacks in the integration test.

Default: no commands