TaskInput

class aws_cdk.aws_stepfunctions.TaskInput

Bases: object

Type union for task classes that accept multiple types of payload.

Attributes

type

type of task input.

Return type

InputType

value

payload for the corresponding input type.

It can be a JSON-encoded object, context, data, etc.

Return type

Any

Static Methods

classmethod from_context_at(path)

Use a part of the task context as task input.

Use this when you want to use a subobject or string from the current task context as complete payload to a task.

Parameters

path (str) –

Return type

TaskInput

classmethod from_data_at(path)

Use a part of the execution data as task input.

Use this when you want to use a subobject or string from the current state machine execution as complete payload to a task.

Parameters

path (str) –

Return type

TaskInput

classmethod from_json_path_at(path)

Use a part of the execution data or task context as task input.

Use this when you want to use a subobject or string from the current state machine execution or the current task context as complete payload to a task.

Parameters

path (str) –

Return type

TaskInput

classmethod from_object(obj)

Use an object as task input.

This object may contain Data and Context fields as object values, if desired.

Parameters

obj (Mapping[str, Any]) –

Return type

TaskInput

classmethod from_text(text)

Use a literal string as task input.

This might be a JSON-encoded object, or just a text.

Parameters

text (str) –

Return type

TaskInput