-
Notifications
You must be signed in to change notification settings - Fork 0
/
state_language_code.json
86 lines (86 loc) · 2.55 KB
/
state_language_code.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"Comment": "A simple AWS Step Functions state machine that automates a daycare registration workflow.",
"StartAt": "Check Information",
"States": {
"Check Information": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-2:654654631565:function:checkInformatiom",
"Next": "Information Check Result"
},
"Information Check Result": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.statusCode",
"NumericEquals": 200,
"Next": "Check Age Range"
},
{
"Variable": "$.statusCode",
"NumericEquals": 400,
"Next": "Notify Missing Info"
}
]
},
"Notify Missing Info": {
"Type": "Fail",
"Error": "InformationIncomplete",
"Cause": "The parent did not provide complete information."
},
"Check Age Range": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-2:654654631565:function:checkAgeRange",
"Next": "Age Check Result"
},
"Age Check Result": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.statusCode",
"NumericEquals": 200,
"Next": "Check Spots Availability"
},
{
"Variable": "$.statusCode",
"NumericEquals": 400,
"Next": "Notify Invalid Age"
}
]
},
"Notify Invalid Age": {
"Type": "Fail",
"Error": "InvalidAge",
"Cause": "The child does not meet the age requirements."
},
"Check Spots Availability": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-2:654654631565:function:checkSpotsAvailability",
"Next": "Spot Availability Result"
},
"Spot Availability Result": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.statusCode",
"NumericEquals": 200,
"Next": "Confirm Registration"
},
{
"Variable": "$.statusCode",
"NumericEquals": 400,
"Next": "Notify No Spots"
}
]
},
"Notify No Spots": {
"Type": "Fail",
"Error": "NoSpots",
"Cause": "There are no spots available."
},
"Confirm Registration": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-2:654654631565:function:confirmRegistration",
"End": true
}
}
}