Interface DestroyOptions

All Superinterfaces:
DefaultCdkOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DestroyOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.672Z") @Stability(Stable) public interface DestroyOptions extends software.amazon.jsii.JsiiSerializable, DefaultCdkOptions
Options to use with cdk destroy.

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

    • getExclusively

      @Stability(Stable) @Nullable default Boolean getExclusively()
      Only destroy the given stack.

      Default: false

    • getForce

      @Stability(Stable) @Nullable default Boolean getForce()
      Do not ask for permission before destroying stacks.

      Default: false

    • builder

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