Hooks

class aws_cdk.cloud_assembly_schema.Hooks(*, post_deploy=None, post_destroy=None, pre_deploy=None, pre_destroy=None)

Bases: object

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

Parameters
  • post_deploy (Optional[Sequence[str]]) – Commands to run prior after deploying the cdk stacks in the integration test. Default: - no commands

  • post_destroy (Optional[Sequence[str]]) – Commands to run after destroying the cdk stacks in the integration test. Default: - no commands

  • pre_deploy (Optional[Sequence[str]]) – Commands to run prior to deploying the cdk stacks in the integration test. Default: - no commands

  • pre_destroy (Optional[Sequence[str]]) – Commands to run prior to destroying the cdk stacks in the integration test. Default: - no commands

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cloud_assembly_schema as cloud_assembly_schema

hooks = cloud_assembly_schema.Hooks(
    post_deploy=["postDeploy"],
    post_destroy=["postDestroy"],
    pre_deploy=["preDeploy"],
    pre_destroy=["preDestroy"]
)

Attributes

post_deploy

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

Default
  • no commands

Return type

Optional[List[str]]

post_destroy

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

Default
  • no commands

Return type

Optional[List[str]]

pre_deploy

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

Default
  • no commands

Return type

Optional[List[str]]

pre_destroy

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

Default
  • no commands

Return type

Optional[List[str]]