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.139.0 (build 26a6b54)",
               date="2026-07-30T08:06:26.686Z")
    @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();
     
    • Method Detail

      • getEnabled

        @Stability(Stable)
        @Nullable
        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: true

      • getExpectedMessage

        @Stability(Stable)
        @Nullable
        default String getExpectedMessage()
        This can be used in combination with expectedError to validate that a specific message is returned.

        Default: - do not validate message

      • getExpectError

        @Stability(Stable)
        @Nullable
        default Boolean getExpectError()
        If the runner should expect this command to fail.

        Default: false