interface Hooks
Language | Type name |
---|---|
![]() | Amazon.CDK.cloud_assembly_schema.Hooks |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/cloudassemblyschema#Hooks |
![]() | software.amazon.awscdk.cloud_assembly_schema.Hooks |
![]() | aws_cdk.cloud_assembly_schema.Hooks |
![]() | 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
Name | Type | Description |
---|---|---|
post | string[] | Commands to run prior after deploying the cdk stacks in the integration test. |
post | string[] | Commands to run after destroying the cdk stacks in the integration test. |
pre | string[] | Commands to run prior to deploying the cdk stacks in the integration test. |
pre | 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.