Interface CdkCommands

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CdkCommands.Jsii$Proxy

@Generated(value="jsii-pacmak/1.95.0 (build f1ff514)", date="2024-03-26T18:09:32.155Z") @Stability(Stable) public interface CdkCommands extends software.amazon.jsii.JsiiSerializable
Options for specific cdk commands that are run as part of the integration test workflow.

Example:

 App app = new App();
 Stack stackUnderTest = new Stack(app, "StackUnderTest");
 Stack stack = new Stack(app, "stack");
 IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow")
         .testCases(List.of(stackUnderTest))
         .diffAssets(true)
         .stackUpdateWorkflow(true)
         .cdkCommandOptions(CdkCommands.builder()
                 .deploy(DeployCommand.builder()
                         .args(DeployOptions.builder()
                                 .requireApproval(RequireApproval.NEVER)
                                 .json(true)
                                 .build())
                         .build())
                 .destroy(DestroyCommand.builder()
                         .args(DestroyOptions.builder()
                                 .force(true)
                                 .build())
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getDeploy

      @Stability(Stable) @Nullable default DeployCommand getDeploy()
      Options to for the cdk deploy command.

      Default: - default deploy options

    • getDestroy

      @Stability(Stable) @Nullable default DestroyCommand getDestroy()
      Options to for the cdk destroy command.

      Default: - default destroy options

    • builder

      @Stability(Stable) static CdkCommands.Builder builder()
      Returns:
      a CdkCommands.Builder of CdkCommands