-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStepFunction_1.json
More file actions
52 lines (52 loc) · 1.13 KB
/
Copy pathStepFunction_1.json
File metadata and controls
52 lines (52 loc) · 1.13 KB
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
{
"StartAt": "GetData",
"States": {
"GetData": {
"Type": "Task",
"Resource": "arn:aws:lambda:region:143151xxxxxx:function:p@@@-sub",
"Parameters": {
"email.$": "$.val.email"
},
"ResultPath": "$.value",
"Next": "Check_Value"
},
"Check_Value": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.value",
"IsNull": true,
"Next": "ContainsNull"
},
{
"Variable": "$.value.email",
"IsString": true,
"Next": "ContainsString"
}
],
"Default": "DefaultState"
},
"ContainsString": {
"Type": "Fail",
"Comment": "Exists"
},
"ContainsNull": {
"Type": "Task",
"Resource": "arn:aws:states:::sns:publish",
"Parameters": {
"TopicArn": "arn:aws:sns:region:143151xxxxxx:@@@-trigger",
"Message.$": "$.val",
"MessageAttributes": {
"customer": {
"DataType": "String",
"StringValue": "rugby"
}
}
},
"End": true
},
"DefaultState": {
"Type": "Succeed"
}
}
}