@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-13T01:13:33.331Z")
public class TaskInput
extends software.amazon.jsii.JsiiObject
Example:
Function fn; LambdaInvoke.Builder.create(this, "Invoke with callback") .lambdaFunction(fn) .integrationPattern(IntegrationPattern.WAIT_FOR_TASK_TOKEN) .payload(TaskInput.fromObject(Map.of( "token", JsonPath.getTaskToken(), "input", JsonPath.stringAt("$.someField")))) .build();
Modifier | Constructor and Description |
---|---|
protected |
TaskInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TaskInput(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static TaskInput |
fromContextAt(java.lang.String path)
Deprecated.
Use `fromJsonPathAt`.
|
static TaskInput |
fromDataAt(java.lang.String path)
Deprecated.
Use `fromJsonPathAt`.
|
static TaskInput |
fromJsonPathAt(java.lang.String path)
Use a part of the execution data or task context as task input.
|
static TaskInput |
fromObject(java.util.Map<java.lang.String,? extends java.lang.Object> obj)
Use an object as task input.
|
static TaskInput |
fromText(java.lang.String text)
Use a literal string as task input.
|
InputType |
getType()
type of task input.
|
java.lang.Object |
getValue()
payload for the corresponding input type.
|
protected TaskInput(software.amazon.jsii.JsiiObjectRef objRef)
protected TaskInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Deprecated public static TaskInput fromContextAt(java.lang.String path)
Use this when you want to use a subobject or string from the current task context as complete payload to a task.
path
- This parameter is required.@Deprecated public static TaskInput fromDataAt(java.lang.String path)
Use this when you want to use a subobject or string from the current state machine execution as complete payload to a task.
path
- This parameter is required.public static TaskInput fromJsonPathAt(java.lang.String path)
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
- This parameter is required.public static TaskInput fromObject(java.util.Map<java.lang.String,? extends java.lang.Object> obj)
This object may contain JSON path fields as object values, if desired.
obj
- This parameter is required.public static TaskInput fromText(java.lang.String text)
This might be a JSON-encoded object, or just a text.
text
- This parameter is required.public InputType getType()
public java.lang.Object getValue()
It can be a JSON-encoded object, context, data, etc.