Interface DestroyOptions

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

    @Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
               date="2026-07-30T08:06:26.695Z")
    @Stability(Stable)
    public interface DestroyOptions
    extends software.amazon.jsii.JsiiSerializable, DefaultCdkOptions
    Options to use with cdk destroy.

    Example:

     // The code below shows an example of how to instantiate this type.
     // The values are placeholders you should change.
     import software.amazon.awscdk.cloudassembly.schema.*;
     DestroyOptions destroyOptions = DestroyOptions.builder()
             .all(false)
             .app("app")
             .assetMetadata(false)
             .caBundlePath("caBundlePath")
             .color(false)
             .context(Map.of(
                     "contextKey", "context"))
             .debug(false)
             .ec2Creds(false)
             .exclusively(false)
             .force(false)
             .ignoreErrors(false)
             .json(false)
             .lookups(false)
             .notices(false)
             .output("output")
             .pathMetadata(false)
             .profile("profile")
             .proxy("proxy")
             .roleArn("roleArn")
             .stacks(List.of("stacks"))
             .staging(false)
             .strict(false)
             .trace(false)
             .verbose(false)
             .versionReporting(false)
             .build();
     
    • Method Detail

      • 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