aws-cdk-lib.cloud_assembly_schema.CdkCommands

interface CdkCommands

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

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

Example

const app = new App();

const stackUnderTest = new Stack(app, 'StackUnderTest', /* ... */);

const stack = new Stack(app, 'stack');

const testCase = new IntegTest(app, 'CustomizedDeploymentWorkflow', {
  testCases: [stackUnderTest],
  diffAssets: true,
  stackUpdateWorkflow: true,
  cdkCommandOptions: {
    deploy: {
      args: {
        requireApproval: RequireApproval.NEVER,
        json: true,
      },
    },
    destroy: {
      args: {
        force: true,
      },
    },
  },
});

Properties

NameTypeDescription
deploy?DeployCommandOptions to for the cdk deploy command.
destroy?DestroyCommandOptions to for the cdk destroy command.

deploy?

Type: DeployCommand (optional, default: default deploy options)

Options to for the cdk deploy command.


destroy?

Type: DestroyCommand (optional, default: default destroy options)

Options to for the cdk destroy command.