@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.853Z") @Stability(value=Stable) public interface CdkCommand extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
CdkCommand cdkCommand = CdkCommand.builder()
.enabled(false)
.expectedMessage("expectedMessage")
.expectError(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CdkCommand.Builder
A builder for
CdkCommand |
static class |
CdkCommand.Jsii$Proxy
An implementation for
CdkCommand |
| Modifier and Type | Method and Description |
|---|---|
static CdkCommand.Builder |
builder() |
default Boolean |
getEnabled()
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.
|
default String |
getExpectedMessage()
This can be used in combination with `expectedError` to validate that a specific message is returned.
|
default Boolean |
getExpectError()
If the runner should expect this command to fail.
|
@Stability(value=Stable) @Nullable default Boolean getEnabled()
Default: true
@Stability(value=Stable) @Nullable default String getExpectedMessage()
Default: - do not validate message
@Stability(value=Stable) @Nullable default Boolean getExpectError()
Default: false
@Stability(value=Stable) static CdkCommand.Builder builder()
CdkCommand.Builder of CdkCommandCopyright © 2022. All rights reserved.