TaskInput
- class aws_cdk.aws_stepfunctions.TaskInput(*args: Any, **kwargs)
- Bases: - object- Type union for task classes that accept multiple types of payload. - ExampleMetadata:
- 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
- type of task input. 
 - value
- payload for the corresponding input type. - It can be a JSON-encoded object, context, data, etc. 
 - Static Methods - classmethod from_context_at(path)
- (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. - Parameters:
- path ( - str)
- Deprecated:
- Use - fromJsonPathAt.
- Stability:
- deprecated 
- Return type:
 
 - classmethod from_data_at(path)
- (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. - Parameters:
- path ( - str)
- Deprecated:
- Use - fromJsonPathAt.
- Stability:
- deprecated 
- Return type:
 
 - 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:
 
 - classmethod from_object(obj)
- Use an object as task input. - This object may contain JSON path fields as object values, if desired. - Parameters:
- obj ( - Mapping[- str,- Any])
- Return type: