Interface DestroyOptions
- All Superinterfaces:
DefaultCdkOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DestroyOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:32.225Z")
@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.cloud_assembly_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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDestroyOptionsstatic final classAn implementation forDestroyOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic DestroyOptions.Builderbuilder()default BooleanOnly destroy the given stack.default BooleangetForce()Do not ask for permission before destroying stacks.Methods inherited from interface software.amazon.awscdk.cloud_assembly_schema.DefaultCdkOptions
getAll, getApp, getAssetMetadata, getCaBundlePath, getColor, getContext, getDebug, getEc2Creds, getIgnoreErrors, getJson, getLookups, getNotices, getOutput, getPathMetadata, getProfile, getProxy, getRoleArn, getStacks, getStaging, getStrict, getTrace, getVerbose, getVersionReportingMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExclusively
Only destroy the given stack.Default: false
-
getForce
Do not ask for permission before destroying stacks.Default: false
-
builder
- Returns:
- a
DestroyOptions.BuilderofDestroyOptions
-