Class TaskInput
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.stepfunctions.TaskInput
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.965Z")
@Stability(Stable)
public class TaskInput
extends software.amazon.jsii.JsiiObject
Type union for task classes that accept multiple types of payload.
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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaskInput
fromContextAt
(String path) Deprecated.static TaskInput
fromDataAt
(String path) Deprecated.UsefromJsonPathAt
.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
Use a literal string as task input.getType()
type of task input.getValue()
payload for the corresponding input type.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TaskInput
protected TaskInput(software.amazon.jsii.JsiiObjectRef objRef) -
TaskInput
protected TaskInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromContextAt
@Stability(Deprecated) @Deprecated @NotNull public static TaskInput fromContextAt(@NotNull String path) Deprecated.UsefromJsonPathAt
.(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
- This parameter is required.
-
fromDataAt
@Stability(Deprecated) @Deprecated @NotNull public static TaskInput fromDataAt(@NotNull String path) Deprecated.UsefromJsonPathAt
.(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
- This parameter is required.
-
fromJsonPathAt
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
- This parameter is required.
-
fromObject
@Stability(Stable) @NotNull public static TaskInput fromObject(@NotNull Map<String, ? extends Object> obj) Use an object as task input.This object may contain JSON path fields as object values, if desired.
- Parameters:
obj
- This parameter is required.
-
fromText
Use a literal string as task input.This might be a JSON-encoded object, or just a text.
- Parameters:
text
- This parameter is required.
-
getType
type of task input. -
getValue
payload for the corresponding input type.It can be a JSON-encoded object, context, data, etc.
-
fromJsonPathAt
.