Interface IDestroyCommand
Represents a cdk destroy command.
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public interface IDestroyCommand : ICdkCommand
Syntax (vb)
Public Interface IDestroyCommand
Inherits ICdkCommand
Remarks
ExampleMetadata: infused
Examples
var app = new App();
var stackUnderTest = new Stack(app, "StackUnderTest");
var stack = new Stack(app, "stack");
var testCase = new IntegTest(app, "CustomizedDeploymentWorkflow", new IntegTestProps {
TestCases = new [] { stackUnderTest },
DiffAssets = true,
StackUpdateWorkflow = true,
CdkCommandOptions = new CdkCommands {
Deploy = new DeployCommand {
Args = new DeployOptions {
RequireApproval = RequireApproval.NEVER,
Json = true
}
},
Destroy = new DestroyCommand {
Args = new DestroyOptions {
Force = true
}
}
}
});
Synopsis
Properties
Args | Additional arguments to pass to the command This can be used to test specific CLI functionality. |
Properties
Args
Additional arguments to pass to the command This can be used to test specific CLI functionality.
virtual IDestroyOptions Args { get; }
Property Value
Remarks
Default: - only default args are used