Skip to content

Commit 332eb56

Browse files
committed
API Update for Aws::SWF
You can now use Amazon Simple Workflow Service to trigger AWS Lambda functions.
1 parent 10f03b4 commit 332eb56

File tree

3 files changed

+412
-120
lines changed

3 files changed

+412
-120
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Unreleased Changes
22
------------------
33

4+
* Feature - Aws::SWF - You can now use Amazon Simple Workflow Service to trigger
5+
AWS Lambda functions.
6+
47
2.1.12 (2015-08-04)
58
------------------
69

aws-sdk-core/apis/swf/2012-01-25/api-2.json

Lines changed: 177 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"version":"2.0",
23
"metadata":{
34
"apiVersion":"2012-01-25",
45
"endpointPrefix":"swf",
@@ -833,6 +834,11 @@
833834
"nextPageToken":{"shape":"PageToken"}
834835
}
835836
},
837+
"Arn":{
838+
"type":"string",
839+
"min":1,
840+
"max":1224
841+
},
836842
"CancelTimerDecisionAttributes":{
837843
"type":"structure",
838844
"required":["timerId"],
@@ -885,6 +891,10 @@
885891
}
886892
},
887893
"Canceled":{"type":"boolean"},
894+
"CauseMessage":{
895+
"type":"string",
896+
"max":1728
897+
},
888898
"ChildPolicy":{
889899
"type":"string",
890900
"enum":[
@@ -1039,7 +1049,8 @@
10391049
"taskStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
10401050
"childPolicy":{"shape":"ChildPolicy"},
10411051
"tagList":{"shape":"TagList"},
1042-
"workflowTypeVersion":{"shape":"Version"}
1052+
"workflowTypeVersion":{"shape":"Version"},
1053+
"lambdaRole":{"shape":"Arn"}
10431054
}
10441055
},
10451056
"ContinueAsNewWorkflowExecutionFailedCause":{
@@ -1140,7 +1151,8 @@
11401151
"cancelTimerDecisionAttributes":{"shape":"CancelTimerDecisionAttributes"},
11411152
"signalExternalWorkflowExecutionDecisionAttributes":{"shape":"SignalExternalWorkflowExecutionDecisionAttributes"},
11421153
"requestCancelExternalWorkflowExecutionDecisionAttributes":{"shape":"RequestCancelExternalWorkflowExecutionDecisionAttributes"},
1143-
"startChildWorkflowExecutionDecisionAttributes":{"shape":"StartChildWorkflowExecutionDecisionAttributes"}
1154+
"startChildWorkflowExecutionDecisionAttributes":{"shape":"StartChildWorkflowExecutionDecisionAttributes"},
1155+
"scheduleLambdaFunctionDecisionAttributes":{"shape":"ScheduleLambdaFunctionDecisionAttributes"}
11441156
}
11451157
},
11461158
"DecisionList":{
@@ -1226,7 +1238,8 @@
12261238
"CancelTimer",
12271239
"SignalExternalWorkflowExecution",
12281240
"RequestCancelExternalWorkflowExecution",
1229-
"StartChildWorkflowExecution"
1241+
"StartChildWorkflowExecution",
1242+
"ScheduleLambdaFunction"
12301243
]
12311244
},
12321245
"DefaultUndefinedFault":{
@@ -1435,7 +1448,14 @@
14351448
"ExternalWorkflowExecutionSignaled",
14361449
"RequestCancelExternalWorkflowExecutionInitiated",
14371450
"RequestCancelExternalWorkflowExecutionFailed",
1438-
"ExternalWorkflowExecutionCancelRequested"
1451+
"ExternalWorkflowExecutionCancelRequested",
1452+
"LambdaFunctionScheduled",
1453+
"LambdaFunctionStarted",
1454+
"LambdaFunctionCompleted",
1455+
"LambdaFunctionFailed",
1456+
"LambdaFunctionTimedOut",
1457+
"ScheduleLambdaFunctionFailed",
1458+
"StartLambdaFunctionFailed"
14391459
]
14401460
},
14411461
"ExecutionStatus":{
@@ -1504,6 +1524,21 @@
15041524
"type":"string",
15051525
"max":256
15061526
},
1527+
"FunctionId":{
1528+
"type":"string",
1529+
"min":1,
1530+
"max":256
1531+
},
1532+
"FunctionInput":{
1533+
"type":"string",
1534+
"min":1,
1535+
"max":32768
1536+
},
1537+
"FunctionName":{
1538+
"type":"string",
1539+
"min":1,
1540+
"max":64
1541+
},
15071542
"GetWorkflowExecutionHistoryInput":{
15081543
"type":"structure",
15091544
"required":[
@@ -1583,7 +1618,14 @@
15831618
"requestCancelActivityTaskFailedEventAttributes":{"shape":"RequestCancelActivityTaskFailedEventAttributes"},
15841619
"startTimerFailedEventAttributes":{"shape":"StartTimerFailedEventAttributes"},
15851620
"cancelTimerFailedEventAttributes":{"shape":"CancelTimerFailedEventAttributes"},
1586-
"startChildWorkflowExecutionFailedEventAttributes":{"shape":"StartChildWorkflowExecutionFailedEventAttributes"}
1621+
"startChildWorkflowExecutionFailedEventAttributes":{"shape":"StartChildWorkflowExecutionFailedEventAttributes"},
1622+
"lambdaFunctionScheduledEventAttributes":{"shape":"LambdaFunctionScheduledEventAttributes"},
1623+
"lambdaFunctionStartedEventAttributes":{"shape":"LambdaFunctionStartedEventAttributes"},
1624+
"lambdaFunctionCompletedEventAttributes":{"shape":"LambdaFunctionCompletedEventAttributes"},
1625+
"lambdaFunctionFailedEventAttributes":{"shape":"LambdaFunctionFailedEventAttributes"},
1626+
"lambdaFunctionTimedOutEventAttributes":{"shape":"LambdaFunctionTimedOutEventAttributes"},
1627+
"scheduleLambdaFunctionFailedEventAttributes":{"shape":"ScheduleLambdaFunctionFailedEventAttributes"},
1628+
"startLambdaFunctionFailedEventAttributes":{"shape":"StartLambdaFunctionFailedEventAttributes"}
15871629
}
15881630
},
15891631
"HistoryEventList":{
@@ -1594,6 +1636,69 @@
15941636
"type":"string",
15951637
"max":256
15961638
},
1639+
"LambdaFunctionCompletedEventAttributes":{
1640+
"type":"structure",
1641+
"required":[
1642+
"scheduledEventId",
1643+
"startedEventId"
1644+
],
1645+
"members":{
1646+
"scheduledEventId":{"shape":"EventId"},
1647+
"startedEventId":{"shape":"EventId"},
1648+
"result":{"shape":"Data"}
1649+
}
1650+
},
1651+
"LambdaFunctionFailedEventAttributes":{
1652+
"type":"structure",
1653+
"required":[
1654+
"scheduledEventId",
1655+
"startedEventId"
1656+
],
1657+
"members":{
1658+
"scheduledEventId":{"shape":"EventId"},
1659+
"startedEventId":{"shape":"EventId"},
1660+
"reason":{"shape":"FailureReason"},
1661+
"details":{"shape":"Data"}
1662+
}
1663+
},
1664+
"LambdaFunctionScheduledEventAttributes":{
1665+
"type":"structure",
1666+
"required":[
1667+
"id",
1668+
"name",
1669+
"decisionTaskCompletedEventId"
1670+
],
1671+
"members":{
1672+
"id":{"shape":"FunctionId"},
1673+
"name":{"shape":"FunctionName"},
1674+
"input":{"shape":"FunctionInput"},
1675+
"startToCloseTimeout":{"shape":"DurationInSecondsOptional"},
1676+
"decisionTaskCompletedEventId":{"shape":"EventId"}
1677+
}
1678+
},
1679+
"LambdaFunctionStartedEventAttributes":{
1680+
"type":"structure",
1681+
"required":["scheduledEventId"],
1682+
"members":{
1683+
"scheduledEventId":{"shape":"EventId"}
1684+
}
1685+
},
1686+
"LambdaFunctionTimedOutEventAttributes":{
1687+
"type":"structure",
1688+
"required":[
1689+
"scheduledEventId",
1690+
"startedEventId"
1691+
],
1692+
"members":{
1693+
"scheduledEventId":{"shape":"EventId"},
1694+
"startedEventId":{"shape":"EventId"},
1695+
"timeoutType":{"shape":"LambdaFunctionTimeoutType"}
1696+
}
1697+
},
1698+
"LambdaFunctionTimeoutType":{
1699+
"type":"string",
1700+
"enum":["START_TO_CLOSE"]
1701+
},
15971702
"LimitExceededFault":{
15981703
"type":"structure",
15991704
"members":{
@@ -1837,7 +1942,8 @@
18371942
"defaultExecutionStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
18381943
"defaultTaskList":{"shape":"TaskList"},
18391944
"defaultTaskPriority":{"shape":"TaskPriority"},
1840-
"defaultChildPolicy":{"shape":"ChildPolicy"}
1945+
"defaultChildPolicy":{"shape":"ChildPolicy"},
1946+
"defaultLambdaRole":{"shape":"Arn"}
18411947
}
18421948
},
18431949
"RegistrationStatus":{
@@ -2033,6 +2139,43 @@
20332139
"decisionTaskCompletedEventId":{"shape":"EventId"}
20342140
}
20352141
},
2142+
"ScheduleLambdaFunctionDecisionAttributes":{
2143+
"type":"structure",
2144+
"required":[
2145+
"id",
2146+
"name"
2147+
],
2148+
"members":{
2149+
"id":{"shape":"FunctionId"},
2150+
"name":{"shape":"FunctionName"},
2151+
"input":{"shape":"FunctionInput"},
2152+
"startToCloseTimeout":{"shape":"DurationInSecondsOptional"}
2153+
}
2154+
},
2155+
"ScheduleLambdaFunctionFailedCause":{
2156+
"type":"string",
2157+
"enum":[
2158+
"ID_ALREADY_IN_USE",
2159+
"OPEN_LAMBDA_FUNCTIONS_LIMIT_EXCEEDED",
2160+
"LAMBDA_FUNCTION_CREATION_RATE_EXCEEDED",
2161+
"LAMBDA_SERVICE_NOT_AVAILABLE_IN_REGION"
2162+
]
2163+
},
2164+
"ScheduleLambdaFunctionFailedEventAttributes":{
2165+
"type":"structure",
2166+
"required":[
2167+
"id",
2168+
"name",
2169+
"cause",
2170+
"decisionTaskCompletedEventId"
2171+
],
2172+
"members":{
2173+
"id":{"shape":"FunctionId"},
2174+
"name":{"shape":"FunctionName"},
2175+
"cause":{"shape":"ScheduleLambdaFunctionFailedCause"},
2176+
"decisionTaskCompletedEventId":{"shape":"EventId"}
2177+
}
2178+
},
20362179
"SignalExternalWorkflowExecutionDecisionAttributes":{
20372180
"type":"structure",
20382181
"required":[
@@ -2124,7 +2267,8 @@
21242267
"taskPriority":{"shape":"TaskPriority"},
21252268
"taskStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
21262269
"childPolicy":{"shape":"ChildPolicy"},
2127-
"tagList":{"shape":"TagList"}
2270+
"tagList":{"shape":"TagList"},
2271+
"lambdaRole":{"shape":"Arn"}
21282272
}
21292273
},
21302274
"StartChildWorkflowExecutionFailedCause":{
@@ -2181,7 +2325,20 @@
21812325
"decisionTaskCompletedEventId":{"shape":"EventId"},
21822326
"childPolicy":{"shape":"ChildPolicy"},
21832327
"taskStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
2184-
"tagList":{"shape":"TagList"}
2328+
"tagList":{"shape":"TagList"},
2329+
"lambdaRole":{"shape":"Arn"}
2330+
}
2331+
},
2332+
"StartLambdaFunctionFailedCause":{
2333+
"type":"string",
2334+
"enum":["ASSUME_ROLE_FAILED"]
2335+
},
2336+
"StartLambdaFunctionFailedEventAttributes":{
2337+
"type":"structure",
2338+
"members":{
2339+
"scheduledEventId":{"shape":"EventId"},
2340+
"cause":{"shape":"StartLambdaFunctionFailedCause"},
2341+
"message":{"shape":"CauseMessage"}
21852342
}
21862343
},
21872344
"StartTimerDecisionAttributes":{
@@ -2235,7 +2392,8 @@
22352392
"executionStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
22362393
"tagList":{"shape":"TagList"},
22372394
"taskStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
2238-
"childPolicy":{"shape":"ChildPolicy"}
2395+
"childPolicy":{"shape":"ChildPolicy"},
2396+
"lambdaRole":{"shape":"Arn"}
22392397
}
22402398
},
22412399
"Tag":{
@@ -2424,7 +2582,8 @@
24242582
"executionStartToCloseTimeout":{"shape":"DurationInSeconds"},
24252583
"taskList":{"shape":"TaskList"},
24262584
"taskPriority":{"shape":"TaskPriority"},
2427-
"childPolicy":{"shape":"ChildPolicy"}
2585+
"childPolicy":{"shape":"ChildPolicy"},
2586+
"lambdaRole":{"shape":"Arn"}
24282587
}
24292588
},
24302589
"WorkflowExecutionContinuedAsNewEventAttributes":{
@@ -2446,7 +2605,8 @@
24462605
"taskStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
24472606
"childPolicy":{"shape":"ChildPolicy"},
24482607
"tagList":{"shape":"TagList"},
2449-
"workflowType":{"shape":"WorkflowType"}
2608+
"workflowType":{"shape":"WorkflowType"},
2609+
"lambdaRole":{"shape":"Arn"}
24502610
}
24512611
},
24522612
"WorkflowExecutionCount":{
@@ -2532,7 +2692,8 @@
25322692
"openActivityTasks":{"shape":"Count"},
25332693
"openDecisionTasks":{"shape":"OpenDecisionTasksCount"},
25342694
"openTimers":{"shape":"Count"},
2535-
"openChildWorkflowExecutions":{"shape":"Count"}
2695+
"openChildWorkflowExecutions":{"shape":"Count"},
2696+
"openLambdaFunctions":{"shape":"Count"}
25362697
}
25372698
},
25382699
"WorkflowExecutionSignaledEventAttributes":{
@@ -2563,7 +2724,8 @@
25632724
"taskPriority":{"shape":"TaskPriority"},
25642725
"continuedExecutionRunId":{"shape":"RunIdOptional"},
25652726
"parentWorkflowExecution":{"shape":"WorkflowExecution"},
2566-
"parentInitiatedEventId":{"shape":"EventId"}
2727+
"parentInitiatedEventId":{"shape":"EventId"},
2728+
"lambdaRole":{"shape":"Arn"}
25672729
}
25682730
},
25692731
"WorkflowExecutionTerminatedCause":{
@@ -2622,7 +2784,8 @@
26222784
"defaultExecutionStartToCloseTimeout":{"shape":"DurationInSecondsOptional"},
26232785
"defaultTaskList":{"shape":"TaskList"},
26242786
"defaultTaskPriority":{"shape":"TaskPriority"},
2625-
"defaultChildPolicy":{"shape":"ChildPolicy"}
2787+
"defaultChildPolicy":{"shape":"ChildPolicy"},
2788+
"defaultLambdaRole":{"shape":"Arn"}
26262789
}
26272790
},
26282791
"WorkflowTypeDetail":{

0 commit comments

Comments
 (0)