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 (Union[DeployCommand, Dict[str, Any], None]) – Options to for the cdk deploy command. Default: - default deploy options

  • destroy (Union[DestroyCommand, Dict[str, Any], None]) – Options to for the cdk destroy command. Default: - default destroy options

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

cdk_commands = cloud_assembly_schema.CdkCommands(
    deploy=cloud_assembly_schema.DeployCommand(
        args=cloud_assembly_schema.DeployOptions(
            all=False,
            app="app",
            asset_metadata=False,
            ca_bundle_path="caBundlePath",
            change_set_name="changeSetName",
            ci=False,
            color=False,
            concurrency=123,
            context={
                "context_key": "context"
            },
            debug=False,
            ec2_creds=False,
            exclusively=False,
            execute=False,
            force=False,
            ignore_errors=False,
            json=False,
            lookups=False,
            notices=False,
            notification_arns=["notificationArns"],
            output="output",
            outputs_file="outputsFile",
            parameters={
                "parameters_key": "parameters"
            },
            path_metadata=False,
            profile="profile",
            proxy="proxy",
            require_approval=cloud_assembly_schema.RequireApproval.NEVER,
            reuse_assets=["reuseAssets"],
            role_arn="roleArn",
            rollback=False,
            stacks=["stacks"],
            staging=False,
            strict=False,
            toolkit_stack_name="toolkitStackName",
            trace=False,
            use_previous_parameters=False,
            verbose=False,
            version_reporting=False
        ),
        enabled=False,
        expected_message="expectedMessage",
        expect_error=False
    ),
    destroy=cloud_assembly_schema.DestroyCommand(
        args=cloud_assembly_schema.DestroyOptions(
            all=False,
            app="app",
            asset_metadata=False,
            ca_bundle_path="caBundlePath",
            color=False,
            context={
                "context_key": "context"
            },
            debug=False,
            ec2_creds=False,
            exclusively=False,
            force=False,
            ignore_errors=False,
            json=False,
            lookups=False,
            notices=False,
            output="output",
            path_metadata=False,
            profile="profile",
            proxy="proxy",
            role_arn="roleArn",
            stacks=["stacks"],
            staging=False,
            strict=False,
            trace=False,
            verbose=False,
            version_reporting=False
        ),
        enabled=False,
        expected_message="expectedMessage",
        expect_error=False
    )
)

Attributes

deploy

Options to for the cdk deploy command.

Default:
  • default deploy options

destroy

Options to for the cdk destroy command.

Default:
  • default destroy options