Interface IDestroyOptions
Options to use with cdk destroy.
Inherited Members
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public interface IDestroyOptions : IDefaultCdkOptions
Syntax (vb)
Public Interface IDestroyOptions
Inherits IDefaultCdkOptions
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
Exclusively | Only destroy the given stack. |
Force | Do not ask for permission before destroying stacks. |
Properties
Exclusively
Only destroy the given stack.
virtual Nullable<bool> Exclusively { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
Force
Do not ask for permission before destroying stacks.
virtual Nullable<bool> Force { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false