Interface DestroyCommand
- All Superinterfaces:
CdkCommand
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DestroyCommand.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:54.672Z")
@Stability(Stable)
public interface DestroyCommand
extends software.amazon.jsii.JsiiSerializable, CdkCommand
Represents a cdk destroy command.
Example:
App app = new App(); Stack stackUnderTest = new Stack(app, "StackUnderTest"); Stack stack = new Stack(app, "stack"); IntegTest testCase = IntegTest.Builder.create(app, "CustomizedDeploymentWorkflow") .testCases(List.of(stackUnderTest)) .diffAssets(true) .stackUpdateWorkflow(true) .cdkCommandOptions(CdkCommands.builder() .deploy(DeployCommand.builder() .args(DeployOptions.builder() .requireApproval(RequireApproval.NEVER) .json(true) .build()) .build()) .destroy(DestroyCommand.builder() .args(DestroyOptions.builder() .force(true) .build()) .build()) .build()) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDestroyCommand
static final class
An implementation forDestroyCommand
-
Method Summary
Modifier and TypeMethodDescriptionstatic DestroyCommand.Builder
builder()
default DestroyOptions
getArgs()
Additional arguments to pass to the command This can be used to test specific CLI functionality.Methods inherited from interface software.amazon.awscdk.cloudassembly.schema.CdkCommand
getEnabled, getExpectedMessage, getExpectError
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArgs
Additional arguments to pass to the command This can be used to test specific CLI functionality.Default: - only default args are used
-
builder
- Returns:
- a
DestroyCommand.Builder
ofDestroyCommand
-