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.84.0 (build 5404dcf)",
date="2023-06-19T16:29:54.667Z")
@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.cloudassembly.schema.*;
CdkCommand cdkCommand = CdkCommand.builder()
.enabled(false)
.expectedMessage("expectedMessage")
.expectError(false)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCdkCommandstatic final classAn implementation forCdkCommand -
Method Summary
Modifier and TypeMethodDescriptionstatic CdkCommand.Builderbuilder()default BooleanWhether 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 enablesynthand disabledeploy&destroyin order to limit the test to synthesis.default StringThis can be used in combination withexpectedErrorto validate that a specific message is returned.default BooleanIf 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 enablesynthand disabledeploy&destroyin order to limit the test to synthesis.Default: true
-
getExpectedMessage
This can be used in combination withexpectedErrorto 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.BuilderofCdkCommand
-