Slide 10
Slide 10 text
JAWS DAYS 2022
© 2022, Amazon Web Services, Inc. or its affiliates.
intrinsic functions (組み込み関数)
ArrayPartition
IN
{
"inputArray":
[1,2,3,4,5,6,7,8,9]
}
{"inputArray.$":
"States.ArrayPartition(
$.inputArray,4)”}
OUT
{"inputArray": [
[1,2,3,4], [5,6,7,8], [9]]
}
JsonMerge
IN
{
"json1": { "a": {"a1": 1, "a2": 2}, "b": 2, },
"json2": { "a": {"a3": 1, "a4": 2}, "c": 3 }
}
{"output.$": "States.JsonMerge($.json1, $.json2,
false) "}
OUT
{"output": {
"a": {"a3": 1, "a4": 2}, "b": 2, "c": 3
} }
MathAdd
IN
{
"value1": 111,
"step": -1
}
{"value1.$":
"States.MathAdd(
$.value1, $.step)"}
OUT
{"value1": 110 }
10