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());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDestroyOptions
static final class
An implementation forDestroyOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic DestroyOptions.Builder
builder()
default Boolean
(experimental) Only destroy the given stack.default Boolean
(experimental) Should the script prompt for approval before destroying stacks.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.cli.lib.alpha.SharedOptions
getAssetMetadata, getCaBundlePath, getColor, getContext, getDebug, getEc2Creds, getIgnoreErrors, getJson, getLookups, getNotices, getPathMetadata, getProfile, getProxy, getRoleArn, getStacks, getStaging, getStrict, getTrace, getVerbose, getVersionReporting
-
Method Details
-
getExclusively
(experimental) Only destroy the given stack.Default: false
-
getRequireApproval
(experimental) Should the script prompt for approval before destroying stacks.Default: false
-
builder
- Returns:
- a
DestroyOptions.Builder
ofDestroyOptions
-