Interface CdkCommand
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DeployCommand
,DestroyCommand
- All Known Implementing Classes:
CdkCommand.Jsii$Proxy
,DeployCommand.Jsii$Proxy
,DestroyCommand.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:10.986Z")
@Stability(Stable)
public interface CdkCommand
extends software.amazon.jsii.JsiiSerializable
Represents a cdk command i.e.
synth
, deploy
, & destroy
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.cloud_assembly_schema.*; CdkCommand cdkCommand = CdkCommand.builder() .enabled(false) .expectedMessage("expectedMessage") .expectError(false) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCdkCommand
static final class
An implementation forCdkCommand
-
Method Summary
Modifier and TypeMethodDescriptionstatic CdkCommand.Builder
builder()
default Boolean
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 enablesynth
and disabledeploy
&destroy
in order to limit the test to synthesis.default String
This can be used in combination withexpectedError
to validate that a specific message is returned.default Boolean
If the runner should expect this command to fail.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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 enablesynth
and disabledeploy
&destroy
in order to limit the test to synthesis.Default: true
-
getExpectedMessage
This can be used in combination withexpectedError
to validate that a specific message is returned.Default: - do not validate message
-
getExpectError
If the runner should expect this command to fail.Default: false
-
builder
- Returns:
- a
CdkCommand.Builder
ofCdkCommand
-