Interface DestroyOptions

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.416Z") @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