aws-cdk-lib.cloud_assembly_schema.Hooks

interface Hooks

LanguageType name
.NETAmazon.CDK.CloudAssembly.Schema.Hooks
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema#Hooks
Javasoftware.amazon.awscdk.cloudassembly.schema.Hooks
Pythonaws_cdk.cloud_assembly_schema.Hooks
TypeScript (source)aws-cdk-lib » cloud_assembly_schema » Hooks

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

Example

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

NameTypeDescription
postDeploy?string[]Commands to run prior after deploying the cdk stacks in the integration test.
postDestroy?string[]Commands to run after destroying the cdk stacks in the integration test.
preDeploy?string[]Commands to run prior to deploying the cdk stacks in the integration test.
preDestroy?string[]Commands to run prior to destroying the cdk stacks in the integration test.

postDeploy?

Type: string[] (optional, default: no commands)

Commands to run prior after deploying the cdk stacks in the integration test.


postDestroy?

Type: string[] (optional, default: no commands)

Commands to run after destroying the cdk stacks in the integration test.


preDeploy?

Type: string[] (optional, default: no commands)

Commands to run prior to deploying the cdk stacks in the integration test.


preDestroy?

Type: string[] (optional, default: no commands)

Commands to run prior to destroying the cdk stacks in the integration test.