Interface ICdkCommand
Represents a cdk command i.e. synth
, deploy
, & destroy
.
Namespace: Amazon.CDK.CloudAssembly.Schema
Assembly: Amazon.CDK.CloudAssembly.Schema.dll
Syntax (csharp)
public interface ICdkCommand
Syntax (vb)
Public Interface ICdkCommand
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CloudAssembly.Schema;
var cdkCommand = new CdkCommand {
Enabled = false,
ExpectedMessage = "expectedMessage",
ExpectError = false
};
Synopsis
Properties
Enabled | Whether or not to run this command as part of the workflow This can be used if you only want to test some of the workflow for example enable |
ExpectedMessage | This can be used in combination with |
ExpectError | If the runner should expect this command to fail. |
Properties
Enabled
Whether or not to run this command as part of the workflow This can be used if you only want to test some of the workflow for example enable synth
and disable deploy
& destroy
in order to limit the test to synthesis.
virtual Nullable<bool> Enabled { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: true
ExpectedMessage
This can be used in combination with expectedError
to validate that a specific message is returned.
virtual string ExpectedMessage { get; }
Property Value
System.String
Remarks
Default: - do not validate message
ExpectError
If the runner should expect this command to fail.
virtual Nullable<bool> ExpectError { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false