TaskInput

class aws_cdk.aws_stepfunctions.TaskInput

Bases: object

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

stability :stability: experimental

Attributes

type

stability :stability: experimental

Return type

InputType

value

stability :stability: experimental

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) –

stability :stability: experimental

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) –

stability :stability: experimental

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]) –

stability :stability: experimental

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) –

stability :stability: experimental

Return type

TaskInput