Result

class aws_cdk.aws_stepfunctions.Result(value)

Bases: object

The result of a Pass operation.

ExampleMetadata

infused

Example:

# Makes the current JSON state { ..., "subObject": { "hello": "world" } }
pass = sfn.Pass(self, "Add Hello World",
    result=sfn.Result.from_object({"hello": "world"}),
    result_path="$.subObject"
)

# Set the next state
next_state = sfn.Pass(self, "NextState")
pass.next(next_state)
Parameters

value (Any) – result of the Pass operation.

Attributes

value

result of the Pass operation.

Return type

Any

Static Methods

classmethod from_array(value)

The result of the operation is an array.

Parameters

value (Sequence[Any]) –

Return type

Result

classmethod from_boolean(value)

The result of the operation is a boolean.

Parameters

value (bool) –

Return type

Result

classmethod from_number(value)

The result of the operation is a number.

Parameters

value (Union[int, float]) –

Return type

Result

classmethod from_object(value)

The result of the operation is an object.

Parameters

value (Mapping[str, Any]) –

Return type

Result

classmethod from_string(value)

The result of the operation is a string.

Parameters

value (str) –

Return type

Result