@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.408Z") @Stability(value=Stable) 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 |
fromJsonPathAt(String path)
Use a part of the execution data or task context as task input.
|
static TaskInput |
fromObject(Map<String,? extends Object> obj)
Use an object as task input.
|
static TaskInput |
fromText(String text)
Use a literal string as task input.
|
InputType |
getType()
type of task input.
|
Object |
getValue()
payload for the corresponding input type.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected TaskInput(software.amazon.jsii.JsiiObjectRef objRef)
protected TaskInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static TaskInput fromJsonPathAt(@NotNull 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.@Stability(value=Stable) @NotNull public static TaskInput fromObject(@NotNull Map<String,? extends Object> obj)
This object may contain JSON path fields as object values, if desired.
obj - This parameter is required.@Stability(value=Stable) @NotNull public static TaskInput fromText(@NotNull String text)
This might be a JSON-encoded object, or just a text.
text - This parameter is required.@Stability(value=Stable) @NotNull public InputType getType()
@Stability(value=Stable) @NotNull public Object getValue()
It can be a JSON-encoded object, context, data, etc.
Copyright © 2022. All rights reserved.