Condition

class aws_cdk.aws_stepfunctions.Condition

Bases: object

A Condition for use in a Choice state branch.

stability :stability: experimental

__init__()

Initialize self. See help(type(self)) for accurate signature.

Return type

None

Methods

render_condition()

Render Amazon States Language JSON for the condition.

stability :stability: experimental

Return type

Any

Static Methods

classmethod and_(*conditions)

Combine two or more conditions with a logical AND.

Parameters

conditions (Condition) –

stability :stability: experimental

Return type

Condition

classmethod boolean_equals(variable, value)

Matches if a boolean field has the given value.

Parameters
  • variable (str) –

  • value (bool) –

stability :stability: experimental

Return type

Condition

classmethod not_(condition)

Negate a condition.

Parameters

condition (Condition) –

stability :stability: experimental

Return type

Condition

classmethod number_equals(variable, value)

Matches if a numeric field has the given value.

Parameters
  • variable (str) –

  • value (Union[int, float]) –

stability :stability: experimental

Return type

Condition

classmethod number_greater_than(variable, value)

Matches if a numeric field is greater than the given value.

Parameters
  • variable (str) –

  • value (Union[int, float]) –

stability :stability: experimental

Return type

Condition

classmethod number_greater_than_equals(variable, value)

Matches if a numeric field is greater than or equal to the given value.

Parameters
  • variable (str) –

  • value (Union[int, float]) –

stability :stability: experimental

Return type

Condition

classmethod number_less_than(variable, value)

Matches if a numeric field is less than the given value.

Parameters
  • variable (str) –

  • value (Union[int, float]) –

stability :stability: experimental

Return type

Condition

classmethod number_less_than_equals(variable, value)

Matches if a numeric field is less than or equal to the given value.

Parameters
  • variable (str) –

  • value (Union[int, float]) –

stability :stability: experimental

Return type

Condition

classmethod or_(*conditions)

Combine two or more conditions with a logical OR.

Parameters

conditions (Condition) –

stability :stability: experimental

Return type

Condition

classmethod string_equals(variable, value)

Matches if a string field has the given value.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod string_greater_than(variable, value)

Matches if a string field sorts after a given value.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod string_greater_than_equals(variable, value)

Matches if a string field sorts after or equal to a given value.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod string_less_than(variable, value)

Matches if a string field sorts before a given value.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod string_less_than_equals(variable, value)

Matches if a string field sorts equal to or before a given value.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod timestamp_equals(variable, value)

Matches if a timestamp field is the same time as the given timestamp.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod timestamp_greater_than(variable, value)

Matches if a timestamp field is after the given timestamp.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod timestamp_greater_than_equals(variable, value)

Matches if a timestamp field is after or equal to the given timestamp.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod timestamp_less_than(variable, value)

Matches if a timestamp field is before the given timestamp.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition

classmethod timestamp_less_than_equals(variable, value)

Matches if a timestamp field is before or equal to the given timestamp.

Parameters
  • variable (str) –

  • value (str) –

stability :stability: experimental

Return type

Condition