CdkCommands

class aws_cdk.cloud_assembly_schema.CdkCommands(*, deploy=None, destroy=None)

Bases: object

Options for specific cdk commands that are run as part of the integration test workflow.

Parameters
  • deploy (Optional[DeployCommand]) – Options to for the cdk deploy command. Default: - default deploy options

  • destroy (Optional[DestroyCommand]) – Options to for the cdk destroy command. Default: - default destroy options

ExampleMetadata

infused

Example:

app = App()

stack_under_test = Stack(app, "StackUnderTest")

stack = Stack(app, "stack")

test_case = IntegTest(app, "CustomizedDeploymentWorkflow",
    test_cases=[stack_under_test],
    diff_assets=True,
    stack_update_workflow=True,
    cdk_command_options=CdkCommands(
        deploy=DeployCommand(
            args=DeployOptions(
                require_approval=RequireApproval.NEVER,
                json=True
            )
        ),
        destroy=DestroyCommand(
            args=DestroyOptions(
                force=True
            )
        )
    )
)

Attributes

deploy

Options to for the cdk deploy command.

Default
  • default deploy options

Return type

Optional[DeployCommand]

destroy

Options to for the cdk destroy command.

Default
  • default destroy options

Return type

Optional[DestroyCommand]