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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDestroyCommandstatic final classAn implementation forDestroyCommand -
Method Summary
Modifier and TypeMethodDescriptionstatic DestroyCommand.Builderbuilder()default DestroyOptionsgetArgs()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, getExpectErrorMethods 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.BuilderofDestroyCommand
-