Interface DestroyCommand

All Superinterfaces:
CdkCommand, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DestroyCommand.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.156Z") @Stability(Stable) public interface DestroyCommand extends software.amazon.jsii.JsiiSerializable, CdkCommand
Represents a cdk destroy command.

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();