# Hooks

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

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.d.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/integ-tests/test-case.d.ts#L96)
- Type last changed: v2.20.0 · 7 Apr 2022

## 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

- `postDeploy`: string[] — Commands to run prior after deploying the cdk stacks in the integration test.

  **Default:** no commands

- `postDestroy`: string[] — Commands to run after destroying the cdk stacks in the integration test.

  **Default:** no commands

- `preDeploy`: string[] — Commands to run prior to deploying the cdk stacks in the integration test.

  **Default:** no commands

- `preDestroy`: string[] — Commands to run prior to destroying the cdk stacks in the integration test.

  **Default:** no commands
