Bases: object
Type union for task classes that accept multiple types of payload.
infused
Example:
# fn: lambda.Function
tasks.LambdaInvoke(self, "Invoke with callback",
lambda_function=fn,
integration_pattern=sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
payload=sfn.TaskInput.from_object({
"token": sfn.JsonPath.task_token,
"input": sfn.JsonPath.string_at("$.someField")
})
)
Attributes
type of task input.
payload for the corresponding input type.
It can be a JSON-encoded object, context, data, etc.
Static Methods
(deprecated) 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.
path (str
)
Use fromJsonPathAt
.
deprecated
(deprecated) 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.
path (str
)
Use fromJsonPathAt
.
deprecated
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.
path (str
)
Use an object as task input.
This object may contain JSON path fields as object values, if desired.
obj (Mapping
[str
, Any
])