Class CdkCommands
Options for specific cdk commands that are run as part of the integration test workflow.
Inheritance
System.Object
CdkCommands
Implements
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public class CdkCommands : Object, ICdkCommands
Syntax (vb)
Public Class CdkCommands
Inherits Object
Implements ICdkCommands
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
Constructors
CdkCommands() |
Properties
Deploy | Options to for the cdk deploy command. |
Destroy | Options to for the cdk destroy command. |
Constructors
CdkCommands()
public CdkCommands()
Properties
Deploy
Options to for the cdk deploy command.
public IDeployCommand Deploy { get; set; }
Property Value
Remarks
Default: - default deploy options
Destroy
Options to for the cdk destroy command.
public IDestroyCommand Destroy { get; set; }
Property Value
Remarks
Default: - default destroy options