java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iotevents.alpha.Expression
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:41.491Z") @Stability(Experimental) public abstract class Expression extends software.amazon.jsii.JsiiObject
(experimental) Expression for events in Detector Model state.

Example:

 // Example automatically generated from non-compiling source. May contain errors.
 import software.amazon.awscdk.services.iotevents.alpha.*;
 import software.amazon.awscdk.services.iotevents.actions.alpha.*;
 IInput input;
 State state = State.Builder.create()
         .stateName("MyState")
         .onEnter(List.of(Event.builder()
                 .eventName("test-event")
                 .condition(Expression.currentInput(input))
                 .actions(List.of(
                     new SetTimerAction("MyTimer", Map.of(
                             "duration", cdk.Duration.seconds(60)))))
                 .build()))
         .build();
 

See Also:
  • Constructor Details

    • Expression

      protected Expression(software.amazon.jsii.JsiiObjectRef objRef)
    • Expression

      protected Expression(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Expression

      @Stability(Experimental) protected Expression()
  • Method Details

    • add

      @Stability(Experimental) @NotNull public static Expression add(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Addition operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • and

      @Stability(Experimental) @NotNull public static Expression and(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the AND operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • bitwiseAnd

      @Stability(Experimental) @NotNull public static Expression bitwiseAnd(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Bitwise AND operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • bitwiseOr

      @Stability(Experimental) @NotNull public static Expression bitwiseOr(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Bitwise OR operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • bitwiseXor

      @Stability(Experimental) @NotNull public static Expression bitwiseXor(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Bitwise XOR operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • concat

      @Stability(Experimental) @NotNull public static Expression concat(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the String Concatenation operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • currentInput

      @Stability(Experimental) @NotNull public static Expression currentInput(@NotNull IInput input)
      (experimental) Create a expression for function currentInput().

      It is evaluated to true if the specified input message was received.

      Parameters:
      input - This parameter is required.
    • divide

      @Stability(Experimental) @NotNull public static Expression divide(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Division operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • eq

      @Stability(Experimental) @NotNull public static Expression eq(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Equal operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • fromString

      @Stability(Experimental) @NotNull public static Expression fromString(@NotNull String value)
      (experimental) Create a expression from the given string.

      Parameters:
      value - This parameter is required.
    • gt

      @Stability(Experimental) @NotNull public static Expression gt(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Greater Than operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • gte

      @Stability(Experimental) @NotNull public static Expression gte(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Greater Than Or Equal operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • inputAttribute

      @Stability(Experimental) @NotNull public static Expression inputAttribute(@NotNull IInput input, @NotNull String path)
      (experimental) Create a expression for get an input attribute as $input.TemperatureInput.temperatures[2].

      Parameters:
      input - This parameter is required.
      path - This parameter is required.
    • lt

      @Stability(Experimental) @NotNull public static Expression lt(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Less Than operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • lte

      @Stability(Experimental) @NotNull public static Expression lte(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Less Than Or Equal operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • multiply

      @Stability(Experimental) @NotNull public static Expression multiply(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Multiplication operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • neq

      @Stability(Experimental) @NotNull public static Expression neq(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Not Equal operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • or

      @Stability(Experimental) @NotNull public static Expression or(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the OR operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • subtract

      @Stability(Experimental) @NotNull public static Expression subtract(@NotNull Expression left, @NotNull Expression right)
      (experimental) Create a expression for the Subtraction operator.

      Parameters:
      left - This parameter is required.
      right - This parameter is required.
    • timeout

      @Stability(Experimental) @NotNull public static Expression timeout(@NotNull String timerName)
      (experimental) Create a expression for function timeout("timer-name").

      It is evaluated to true if the specified timer has elapsed. You can define a timer only using the setTimer action.

      Parameters:
      timerName - This parameter is required.
    • evaluate

      @Stability(Experimental) @NotNull public abstract String evaluate(@Nullable Number parentPriority)
      (experimental) This is called to evaluate the expression.

      Parameters:
      parentPriority - priority of the parent of this expression, used for determining whether or not to add parenthesis around the expression.
    • evaluate

      @Stability(Experimental) @NotNull public abstract String evaluate()
      (experimental) This is called to evaluate the expression.