Class Condition
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.Condition
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.293Z")
@Stability(Stable)
public abstract class Condition
extends software.amazon.jsii.JsiiObject
A Condition for use in a Choice state branch.
Example:
Map map = Map.Builder.create(this, "Map State") .maxConcurrency(1) .itemsPath(JsonPath.stringAt("$.inputForMap")) .itemSelector(Map.of( "item", JsonPath.stringAt("$.Map.Item.Value"))) .resultPath("$.mapOutput") .build(); // The Map iterator can contain a IChainable, which can be an individual or multiple steps chained together. // Below example is with a Choice and Pass step Choice choice = new Choice(this, "Choice"); Condition condition1 = Condition.stringEquals("$.item.status", "SUCCESS"); Pass step1 = new Pass(this, "Step1"); Pass step2 = new Pass(this, "Step2"); Pass finish = new Pass(this, "Finish"); Chain definition = choice.when(condition1, step1).otherwise(step2).afterwards().next(finish); map.itemProcessor(definition);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Condition
Combine two or more conditions with a logical AND.static Condition
booleanEquals
(String variable, Boolean value) Matches if a boolean field has the given value.static Condition
booleanEqualsJsonPath
(String variable, String value) Matches if a boolean field equals to a value at a given mapping path.static Condition
Matches if variable is boolean.static Condition
isNotBoolean
(String variable) Matches if variable is not boolean.static Condition
Matches if variable is not null.static Condition
isNotNumeric
(String variable) Matches if variable is not numeric.static Condition
isNotPresent
(String variable) Matches if variable is not present.static Condition
isNotString
(String variable) Matches if variable is not a string.static Condition
isNotTimestamp
(String variable) Matches if variable is not a timestamp.static Condition
Matches if variable is Null.static Condition
Matches if variable is numeric.static Condition
Matches if variable is present.static Condition
Matches if variable is a string.static Condition
isTimestamp
(String variable) Matches if variable is a timestamp.static Condition
Negate a condition.static Condition
numberEquals
(String variable, Number value) Matches if a numeric field has the given value.static Condition
numberEqualsJsonPath
(String variable, String value) Matches if a numeric field has the value in a given mapping path.static Condition
numberGreaterThan
(String variable, Number value) Matches if a numeric field is greater than the given value.static Condition
numberGreaterThanEquals
(String variable, Number value) Matches if a numeric field is greater than or equal to the given value.static Condition
numberGreaterThanEqualsJsonPath
(String variable, String value) Matches if a numeric field is greater than or equal to the value at a given mapping path.static Condition
numberGreaterThanJsonPath
(String variable, String value) Matches if a numeric field is greater than the value at a given mapping path.static Condition
numberLessThan
(String variable, Number value) Matches if a numeric field is less than the given value.static Condition
numberLessThanEquals
(String variable, Number value) Matches if a numeric field is less than or equal to the given value.static Condition
numberLessThanEqualsJsonPath
(String variable, String value) Matches if a numeric field is less than or equal to the numeric value at given mapping path.static Condition
numberLessThanJsonPath
(String variable, String value) Matches if a numeric field is less than the value at the given mapping path.static Condition
Combine two or more conditions with a logical OR.abstract Object
Render Amazon States Language JSON for the condition.static Condition
stringEquals
(String variable, String value) Matches if a string field has the given value.static Condition
stringEqualsJsonPath
(String variable, String value) Matches if a string field equals to a value at a given mapping path.static Condition
stringGreaterThan
(String variable, String value) Matches if a string field sorts after a given value.static Condition
stringGreaterThanEquals
(String variable, String value) Matches if a string field sorts after or equal to a given value.static Condition
stringGreaterThanEqualsJsonPath
(String variable, String value) Matches if a string field sorts after or equal to value at a given mapping path.static Condition
stringGreaterThanJsonPath
(String variable, String value) Matches if a string field sorts after a value at a given mapping path.static Condition
stringLessThan
(String variable, String value) Matches if a string field sorts before a given value.static Condition
stringLessThanEquals
(String variable, String value) Matches if a string field sorts equal to or before a given value.static Condition
stringLessThanEqualsJsonPath
(String variable, String value) Matches if a string field sorts equal to or before a given mapping.static Condition
stringLessThanJsonPath
(String variable, String value) Matches if a string field sorts before a given value at a particular mapping.static Condition
stringMatches
(String variable, String value) Matches if a field matches a string pattern that can contain a wild card () e.g: log-.txt or LATEST.static Condition
timestampEquals
(String variable, String value) Matches if a timestamp field is the same time as the given timestamp.static Condition
timestampEqualsJsonPath
(String variable, String value) Matches if a timestamp field is the same time as the timestamp at a given mapping path.static Condition
timestampGreaterThan
(String variable, String value) Matches if a timestamp field is after the given timestamp.static Condition
timestampGreaterThanEquals
(String variable, String value) Matches if a timestamp field is after or equal to the given timestamp.static Condition
timestampGreaterThanEqualsJsonPath
(String variable, String value) Matches if a timestamp field is after or equal to the timestamp at a given mapping path.static Condition
timestampGreaterThanJsonPath
(String variable, String value) Matches if a timestamp field is after the timestamp at a given mapping path.static Condition
timestampLessThan
(String variable, String value) Matches if a timestamp field is before the given timestamp.static Condition
timestampLessThanEquals
(String variable, String value) Matches if a timestamp field is before or equal to the given timestamp.static Condition
timestampLessThanEqualsJsonPath
(String variable, String value) Matches if a timestamp field is before or equal to the timestamp at a given mapping path.static Condition
timestampLessThanJsonPath
(String variable, String value) Matches if a timestamp field is before the timestamp at a given mapping path.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Condition
protected Condition(software.amazon.jsii.JsiiObjectRef objRef) -
Condition
protected Condition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Condition
@Stability(Stable) protected Condition()
-
-
Method Details
-
and
Combine two or more conditions with a logical AND.- Parameters:
conditions
- This parameter is required.
-
booleanEquals
@Stability(Stable) @NotNull public static Condition booleanEquals(@NotNull String variable, @NotNull Boolean value) Matches if a boolean field has the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
booleanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition booleanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a boolean field equals to a value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
isBoolean
Matches if variable is boolean.- Parameters:
variable
- This parameter is required.
-
isNotBoolean
Matches if variable is not boolean.- Parameters:
variable
- This parameter is required.
-
isNotNull
Matches if variable is not null.- Parameters:
variable
- This parameter is required.
-
isNotNumeric
Matches if variable is not numeric.- Parameters:
variable
- This parameter is required.
-
isNotPresent
Matches if variable is not present.- Parameters:
variable
- This parameter is required.
-
isNotString
Matches if variable is not a string.- Parameters:
variable
- This parameter is required.
-
isNotTimestamp
Matches if variable is not a timestamp.- Parameters:
variable
- This parameter is required.
-
isNull
Matches if variable is Null.- Parameters:
variable
- This parameter is required.
-
isNumeric
Matches if variable is numeric.- Parameters:
variable
- This parameter is required.
-
isPresent
Matches if variable is present.- Parameters:
variable
- This parameter is required.
-
isString
Matches if variable is a string.- Parameters:
variable
- This parameter is required.
-
isTimestamp
Matches if variable is a timestamp.- Parameters:
variable
- This parameter is required.
-
not
Negate a condition.- Parameters:
condition
- This parameter is required.
-
numberEquals
@Stability(Stable) @NotNull public static Condition numberEquals(@NotNull String variable, @NotNull Number value) Matches if a numeric field has the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberEqualsJsonPath
@Stability(Stable) @NotNull public static Condition numberEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a numeric field has the value in a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberGreaterThan
@Stability(Stable) @NotNull public static Condition numberGreaterThan(@NotNull String variable, @NotNull Number value) Matches if a numeric field is greater than the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberGreaterThanEquals
@Stability(Stable) @NotNull public static Condition numberGreaterThanEquals(@NotNull String variable, @NotNull Number value) Matches if a numeric field is greater than or equal to the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberGreaterThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition numberGreaterThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a numeric field is greater than or equal to the value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberGreaterThanJsonPath
@Stability(Stable) @NotNull public static Condition numberGreaterThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a numeric field is greater than the value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberLessThan
@Stability(Stable) @NotNull public static Condition numberLessThan(@NotNull String variable, @NotNull Number value) Matches if a numeric field is less than the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberLessThanEquals
@Stability(Stable) @NotNull public static Condition numberLessThanEquals(@NotNull String variable, @NotNull Number value) Matches if a numeric field is less than or equal to the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberLessThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition numberLessThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a numeric field is less than or equal to the numeric value at given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
numberLessThanJsonPath
@Stability(Stable) @NotNull public static Condition numberLessThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a numeric field is less than the value at the given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
or
Combine two or more conditions with a logical OR.- Parameters:
conditions
- This parameter is required.
-
stringEquals
@Stability(Stable) @NotNull public static Condition stringEquals(@NotNull String variable, @NotNull String value) Matches if a string field has the given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringEqualsJsonPath
@Stability(Stable) @NotNull public static Condition stringEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a string field equals to a value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringGreaterThan
@Stability(Stable) @NotNull public static Condition stringGreaterThan(@NotNull String variable, @NotNull String value) Matches if a string field sorts after a given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringGreaterThanEquals
@Stability(Stable) @NotNull public static Condition stringGreaterThanEquals(@NotNull String variable, @NotNull String value) Matches if a string field sorts after or equal to a given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringGreaterThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition stringGreaterThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a string field sorts after or equal to value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringGreaterThanJsonPath
@Stability(Stable) @NotNull public static Condition stringGreaterThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a string field sorts after a value at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringLessThan
@Stability(Stable) @NotNull public static Condition stringLessThan(@NotNull String variable, @NotNull String value) Matches if a string field sorts before a given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringLessThanEquals
@Stability(Stable) @NotNull public static Condition stringLessThanEquals(@NotNull String variable, @NotNull String value) Matches if a string field sorts equal to or before a given value.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringLessThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition stringLessThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a string field sorts equal to or before a given mapping.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringLessThanJsonPath
@Stability(Stable) @NotNull public static Condition stringLessThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a string field sorts before a given value at a particular mapping.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
stringMatches
@Stability(Stable) @NotNull public static Condition stringMatches(@NotNull String variable, @NotNull String value) Matches if a field matches a string pattern that can contain a wild card () e.g: log-.txt or LATEST. No other characters other than "" have any special meaning - * can be escaped: \.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampEquals
@Stability(Stable) @NotNull public static Condition timestampEquals(@NotNull String variable, @NotNull String value) Matches if a timestamp field is the same time as the given timestamp.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampEqualsJsonPath
@Stability(Stable) @NotNull public static Condition timestampEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a timestamp field is the same time as the timestamp at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampGreaterThan
@Stability(Stable) @NotNull public static Condition timestampGreaterThan(@NotNull String variable, @NotNull String value) Matches if a timestamp field is after the given timestamp.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampGreaterThanEquals
@Stability(Stable) @NotNull public static Condition timestampGreaterThanEquals(@NotNull String variable, @NotNull String value) Matches if a timestamp field is after or equal to the given timestamp.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampGreaterThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition timestampGreaterThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a timestamp field is after or equal to the timestamp at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampGreaterThanJsonPath
@Stability(Stable) @NotNull public static Condition timestampGreaterThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a timestamp field is after the timestamp at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampLessThan
@Stability(Stable) @NotNull public static Condition timestampLessThan(@NotNull String variable, @NotNull String value) Matches if a timestamp field is before the given timestamp.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampLessThanEquals
@Stability(Stable) @NotNull public static Condition timestampLessThanEquals(@NotNull String variable, @NotNull String value) Matches if a timestamp field is before or equal to the given timestamp.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampLessThanEqualsJsonPath
@Stability(Stable) @NotNull public static Condition timestampLessThanEqualsJsonPath(@NotNull String variable, @NotNull String value) Matches if a timestamp field is before or equal to the timestamp at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
timestampLessThanJsonPath
@Stability(Stable) @NotNull public static Condition timestampLessThanJsonPath(@NotNull String variable, @NotNull String value) Matches if a timestamp field is before the timestamp at a given mapping path.- Parameters:
variable
- This parameter is required.value
- This parameter is required.
-
renderCondition
Render Amazon States Language JSON for the condition.
-