Interface DestroyOptions

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

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-27T17:02:11.855Z") @Stability(Experimental) public interface DestroyOptions extends software.amazon.jsii.JsiiSerializable, SharedOptions
(experimental) Options to use with cdk destroy.

Example:

 // await this asynchronous method call using a language feature
 cli.destroy(DestroyOptions.builder()
         .stacks(List.of("MyTestStack"))
         .build());
 
  • Method Details

    • getExclusively

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

      Default: false

    • getRequireApproval

      @Stability(Experimental) @Nullable default Boolean getRequireApproval()
      (experimental) Should the script prompt for approval before destroying stacks.

      Default: false

    • builder

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