@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:15.464Z") @Stability(value=Experimental) public class JsonPath extends software.amazon.jsii.JsiiObject
Example:
Function fn;
LambdaInvoke.Builder.create(this, "Invoke Handler")
.lambdaFunction(fn)
.resultSelector(Map.of(
"lambdaOutput", JsonPath.stringAt("$.Payload"),
"invokeRequestId", JsonPath.stringAt("$.SdkResponseMetadata.RequestId"),
"staticValue", Map.of(
"foo", "bar"),
"stateName", JsonPath.stringAt("$.State.Name")))
.build();
https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-paths.html| Modifier and Type | Field and Description |
|---|---|
static String |
DISCARD
(experimental) Special string value to discard state input, output or result.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JsonPath(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
JsonPath(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEntireContext()
(experimental) Use the entire context data structure.
|
static String |
getEntirePayload()
(experimental) Use the entire data structure.
|
static String |
getTaskToken()
(experimental) Return the Task Token field.
|
static Boolean |
isEncodedJsonPath(String value)
(experimental) Determines if the indicated string is an encoded JSON path.
|
static List<String> |
listAt(String path)
(experimental) Instead of using a literal string list, get the value from a JSON path.
|
static Number |
numberAt(String path)
(experimental) Instead of using a literal number, get the value from a JSON path.
|
static String |
stringAt(String path)
(experimental) Instead of using a literal string, get the value from a JSON path.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final String DISCARD
protected JsonPath(software.amazon.jsii.JsiiObjectRef objRef)
protected JsonPath(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Boolean isEncodedJsonPath(@NotNull String value)
value - string to be evaluated. This parameter is required.@Stability(value=Experimental) @NotNull public static List<String> listAt(@NotNull String path)
path - This parameter is required.@Stability(value=Experimental) @NotNull public static Number numberAt(@NotNull String path)
path - This parameter is required.@Stability(value=Experimental) @NotNull public static String stringAt(@NotNull String path)
path - This parameter is required.@Stability(value=Experimental) @NotNull public static String getEntireContext()
Will be an object at invocation time, but is represented in the CDK application as a string.
@Stability(value=Experimental) @NotNull public static String getEntirePayload()
Will be an object at invocation time, but is represented in the CDK application as a string.
@Stability(value=Experimental) @NotNull public static String getTaskToken()
External actions will need this token to report step completion
back to StepFunctions using the SendTaskSuccess or SendTaskFailure
calls.
Copyright © 2022. All rights reserved.