-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop.json
37 lines (37 loc) · 791 Bytes
/
loop.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"Comment": "Test step loop",
"StartAt": "RunFunc",
"States": {
"RunFunc": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-1:164752778960:function:testStepLoop",
"ResultSelector": {
"step.$": "$.step1",
"currentIndex.$": "$.nextIndex"
},
"Next": "ChoiceState"
},
"ChoiceState": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.currentIndex",
"NumericLessThan": 33,
"Next": "NormalizeParam"
}
],
"Default": "EndState"
},
"NormalizeParam": {
"Type": "Pass",
"Parameters": {
"count.$": "$.currentIndex",
"step.$": "$.step"
},
"Next": "RunFunc"
},
"EndState": {
"Type": "Succeed"
}
}
}