@aws-sdk/client-swf 3.35.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (340) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/SWF.js +0 -19
  3. package/dist-cjs/SWFClient.js +0 -24
  4. package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js +0 -71
  5. package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js +0 -71
  6. package/dist-cjs/commands/CountPendingActivityTasksCommand.js +0 -52
  7. package/dist-cjs/commands/CountPendingDecisionTasksCommand.js +0 -52
  8. package/dist-cjs/commands/DeprecateActivityTypeCommand.js +0 -67
  9. package/dist-cjs/commands/DeprecateDomainCommand.js +0 -56
  10. package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js +0 -68
  11. package/dist-cjs/commands/DescribeActivityTypeCommand.js +0 -63
  12. package/dist-cjs/commands/DescribeDomainCommand.js +0 -49
  13. package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js +0 -53
  14. package/dist-cjs/commands/DescribeWorkflowTypeCommand.js +0 -63
  15. package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js +0 -54
  16. package/dist-cjs/commands/ListActivityTypesCommand.js +0 -52
  17. package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js +0 -72
  18. package/dist-cjs/commands/ListDomainsCommand.js +0 -56
  19. package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js +0 -72
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
  21. package/dist-cjs/commands/ListWorkflowTypesCommand.js +0 -49
  22. package/dist-cjs/commands/PollForActivityTaskCommand.js +0 -60
  23. package/dist-cjs/commands/PollForDecisionTaskCommand.js +0 -72
  24. package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js +0 -72
  25. package/dist-cjs/commands/RegisterActivityTypeCommand.js +0 -71
  26. package/dist-cjs/commands/RegisterDomainCommand.js +0 -48
  27. package/dist-cjs/commands/RegisterWorkflowTypeCommand.js +0 -72
  28. package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js +0 -63
  29. package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js +0 -66
  30. package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js +0 -64
  31. package/dist-cjs/commands/RespondActivityTaskFailedCommand.js +0 -57
  32. package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js +0 -44
  33. package/dist-cjs/commands/SignalWorkflowExecutionCommand.js +0 -63
  34. package/dist-cjs/commands/StartWorkflowExecutionCommand.js +0 -90
  35. package/dist-cjs/commands/TagResourceCommand.js +0 -28
  36. package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js +0 -68
  37. package/dist-cjs/commands/UndeprecateActivityTypeCommand.js +0 -66
  38. package/dist-cjs/commands/UndeprecateDomainCommand.js +0 -53
  39. package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js +0 -66
  40. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  41. package/dist-cjs/commands/index.js +40 -0
  42. package/dist-cjs/endpoints.js +1 -2
  43. package/dist-cjs/index.js +4 -48
  44. package/dist-cjs/models/index.js +0 -1
  45. package/dist-cjs/models/models_0.js +0 -454
  46. package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -11
  47. package/dist-cjs/pagination/Interfaces.js +0 -1
  48. package/dist-cjs/pagination/ListActivityTypesPaginator.js +0 -11
  49. package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -11
  50. package/dist-cjs/pagination/ListDomainsPaginator.js +0 -11
  51. package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -11
  52. package/dist-cjs/pagination/ListWorkflowTypesPaginator.js +0 -11
  53. package/dist-cjs/pagination/PollForDecisionTaskPaginator.js +0 -11
  54. package/dist-cjs/pagination/index.js +11 -0
  55. package/dist-cjs/protocols/Aws_json1_0.js +0 -6
  56. package/dist-cjs/runtimeConfig.browser.js +1 -6
  57. package/dist-cjs/runtimeConfig.js +2 -7
  58. package/dist-cjs/runtimeConfig.native.js +0 -4
  59. package/dist-cjs/runtimeConfig.shared.js +0 -4
  60. package/dist-es/SWF.js +0 -1
  61. package/dist-es/SWFClient.js +0 -1
  62. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
  63. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
  64. package/dist-es/commands/CountPendingActivityTasksCommand.js +0 -1
  65. package/dist-es/commands/CountPendingDecisionTasksCommand.js +0 -1
  66. package/dist-es/commands/DeprecateActivityTypeCommand.js +0 -1
  67. package/dist-es/commands/DeprecateDomainCommand.js +0 -1
  68. package/dist-es/commands/DeprecateWorkflowTypeCommand.js +0 -1
  69. package/dist-es/commands/DescribeActivityTypeCommand.js +0 -1
  70. package/dist-es/commands/DescribeDomainCommand.js +0 -1
  71. package/dist-es/commands/DescribeWorkflowExecutionCommand.js +0 -1
  72. package/dist-es/commands/DescribeWorkflowTypeCommand.js +0 -1
  73. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
  74. package/dist-es/commands/ListActivityTypesCommand.js +0 -1
  75. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
  76. package/dist-es/commands/ListDomainsCommand.js +0 -1
  77. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
  78. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  79. package/dist-es/commands/ListWorkflowTypesCommand.js +0 -1
  80. package/dist-es/commands/PollForActivityTaskCommand.js +0 -1
  81. package/dist-es/commands/PollForDecisionTaskCommand.js +0 -1
  82. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
  83. package/dist-es/commands/RegisterActivityTypeCommand.js +0 -1
  84. package/dist-es/commands/RegisterDomainCommand.js +0 -1
  85. package/dist-es/commands/RegisterWorkflowTypeCommand.js +0 -1
  86. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
  87. package/dist-es/commands/RespondActivityTaskCanceledCommand.js +0 -1
  88. package/dist-es/commands/RespondActivityTaskCompletedCommand.js +0 -1
  89. package/dist-es/commands/RespondActivityTaskFailedCommand.js +0 -1
  90. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +0 -1
  91. package/dist-es/commands/SignalWorkflowExecutionCommand.js +0 -1
  92. package/dist-es/commands/StartWorkflowExecutionCommand.js +0 -1
  93. package/dist-es/commands/TagResourceCommand.js +0 -1
  94. package/dist-es/commands/TerminateWorkflowExecutionCommand.js +0 -1
  95. package/dist-es/commands/UndeprecateActivityTypeCommand.js +0 -1
  96. package/dist-es/commands/UndeprecateDomainCommand.js +0 -1
  97. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +0 -1
  98. package/dist-es/commands/UntagResourceCommand.js +0 -1
  99. package/dist-es/commands/index.js +37 -0
  100. package/dist-es/endpoints.js +1 -2
  101. package/dist-es/index.js +4 -48
  102. package/dist-es/models/index.js +0 -1
  103. package/dist-es/models/models_0.js +0 -1
  104. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
  105. package/dist-es/pagination/Interfaces.js +0 -1
  106. package/dist-es/pagination/ListActivityTypesPaginator.js +0 -1
  107. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
  108. package/dist-es/pagination/ListDomainsPaginator.js +0 -1
  109. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
  110. package/dist-es/pagination/ListWorkflowTypesPaginator.js +0 -1
  111. package/dist-es/pagination/PollForDecisionTaskPaginator.js +0 -1
  112. package/dist-es/pagination/index.js +8 -0
  113. package/dist-es/protocols/Aws_json1_0.js +0 -1
  114. package/dist-es/runtimeConfig.browser.js +1 -2
  115. package/dist-es/runtimeConfig.js +2 -3
  116. package/dist-es/runtimeConfig.native.js +0 -1
  117. package/dist-es/runtimeConfig.shared.js +0 -1
  118. package/dist-types/commands/index.d.ts +37 -0
  119. package/dist-types/index.d.ts +4 -47
  120. package/dist-types/pagination/index.d.ts +8 -0
  121. package/dist-types/ts3.4/SWF.d.ts +16 -1467
  122. package/dist-types/ts3.4/SWFClient.d.ts +24 -104
  123. package/dist-types/ts3.4/commands/CountClosedWorkflowExecutionsCommand.d.ts +2 -66
  124. package/dist-types/ts3.4/commands/CountOpenWorkflowExecutionsCommand.d.ts +2 -66
  125. package/dist-types/ts3.4/commands/CountPendingActivityTasksCommand.d.ts +2 -47
  126. package/dist-types/ts3.4/commands/CountPendingDecisionTasksCommand.d.ts +2 -47
  127. package/dist-types/ts3.4/commands/DeprecateActivityTypeCommand.d.ts +2 -62
  128. package/dist-types/ts3.4/commands/DeprecateDomainCommand.d.ts +2 -51
  129. package/dist-types/ts3.4/commands/DeprecateWorkflowTypeCommand.d.ts +2 -63
  130. package/dist-types/ts3.4/commands/DescribeActivityTypeCommand.d.ts +2 -58
  131. package/dist-types/ts3.4/commands/DescribeDomainCommand.d.ts +2 -44
  132. package/dist-types/ts3.4/commands/DescribeWorkflowExecutionCommand.d.ts +2 -48
  133. package/dist-types/ts3.4/commands/DescribeWorkflowTypeCommand.d.ts +2 -58
  134. package/dist-types/ts3.4/commands/GetWorkflowExecutionHistoryCommand.d.ts +2 -49
  135. package/dist-types/ts3.4/commands/ListActivityTypesCommand.d.ts +2 -47
  136. package/dist-types/ts3.4/commands/ListClosedWorkflowExecutionsCommand.d.ts +2 -67
  137. package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +0 -58
  138. package/dist-types/ts3.4/commands/ListOpenWorkflowExecutionsCommand.d.ts +2 -67
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  140. package/dist-types/ts3.4/commands/ListWorkflowTypesCommand.d.ts +2 -44
  141. package/dist-types/ts3.4/commands/PollForActivityTaskCommand.d.ts +2 -55
  142. package/dist-types/ts3.4/commands/PollForDecisionTaskCommand.d.ts +2 -67
  143. package/dist-types/ts3.4/commands/RecordActivityTaskHeartbeatCommand.d.ts +2 -67
  144. package/dist-types/ts3.4/commands/RegisterActivityTypeCommand.d.ts +2 -66
  145. package/dist-types/ts3.4/commands/RegisterDomainCommand.d.ts +2 -43
  146. package/dist-types/ts3.4/commands/RegisterWorkflowTypeCommand.d.ts +2 -67
  147. package/dist-types/ts3.4/commands/RequestCancelWorkflowExecutionCommand.d.ts +2 -58
  148. package/dist-types/ts3.4/commands/RespondActivityTaskCanceledCommand.d.ts +2 -61
  149. package/dist-types/ts3.4/commands/RespondActivityTaskCompletedCommand.d.ts +2 -59
  150. package/dist-types/ts3.4/commands/RespondActivityTaskFailedCommand.d.ts +2 -52
  151. package/dist-types/ts3.4/commands/RespondDecisionTaskCompletedCommand.d.ts +2 -39
  152. package/dist-types/ts3.4/commands/SignalWorkflowExecutionCommand.d.ts +2 -58
  153. package/dist-types/ts3.4/commands/StartWorkflowExecutionCommand.d.ts +2 -85
  154. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
  155. package/dist-types/ts3.4/commands/TerminateWorkflowExecutionCommand.d.ts +2 -63
  156. package/dist-types/ts3.4/commands/UndeprecateActivityTypeCommand.d.ts +2 -61
  157. package/dist-types/ts3.4/commands/UndeprecateDomainCommand.d.ts +2 -48
  158. package/dist-types/ts3.4/commands/UndeprecateWorkflowTypeCommand.d.ts +2 -61
  159. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  160. package/dist-types/ts3.4/commands/index.d.ts +37 -0
  161. package/dist-types/ts3.4/index.d.ts +4 -47
  162. package/dist-types/ts3.4/models/models_0.d.ts +865 -4636
  163. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  164. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  165. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  166. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  167. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  168. package/package.json +33 -30
  169. package/dist-cjs/SWF.js.map +0 -1
  170. package/dist-cjs/SWFClient.js.map +0 -1
  171. package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
  172. package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
  173. package/dist-cjs/commands/CountPendingActivityTasksCommand.js.map +0 -1
  174. package/dist-cjs/commands/CountPendingDecisionTasksCommand.js.map +0 -1
  175. package/dist-cjs/commands/DeprecateActivityTypeCommand.js.map +0 -1
  176. package/dist-cjs/commands/DeprecateDomainCommand.js.map +0 -1
  177. package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
  178. package/dist-cjs/commands/DescribeActivityTypeCommand.js.map +0 -1
  179. package/dist-cjs/commands/DescribeDomainCommand.js.map +0 -1
  180. package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
  181. package/dist-cjs/commands/DescribeWorkflowTypeCommand.js.map +0 -1
  182. package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
  183. package/dist-cjs/commands/ListActivityTypesCommand.js.map +0 -1
  184. package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
  185. package/dist-cjs/commands/ListDomainsCommand.js.map +0 -1
  186. package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
  187. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  188. package/dist-cjs/commands/ListWorkflowTypesCommand.js.map +0 -1
  189. package/dist-cjs/commands/PollForActivityTaskCommand.js.map +0 -1
  190. package/dist-cjs/commands/PollForDecisionTaskCommand.js.map +0 -1
  191. package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
  192. package/dist-cjs/commands/RegisterActivityTypeCommand.js.map +0 -1
  193. package/dist-cjs/commands/RegisterDomainCommand.js.map +0 -1
  194. package/dist-cjs/commands/RegisterWorkflowTypeCommand.js.map +0 -1
  195. package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
  196. package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
  197. package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
  198. package/dist-cjs/commands/RespondActivityTaskFailedCommand.js.map +0 -1
  199. package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
  200. package/dist-cjs/commands/SignalWorkflowExecutionCommand.js.map +0 -1
  201. package/dist-cjs/commands/StartWorkflowExecutionCommand.js.map +0 -1
  202. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  203. package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
  204. package/dist-cjs/commands/UndeprecateActivityTypeCommand.js.map +0 -1
  205. package/dist-cjs/commands/UndeprecateDomainCommand.js.map +0 -1
  206. package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
  207. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  208. package/dist-cjs/endpoints.js.map +0 -1
  209. package/dist-cjs/index.js.map +0 -1
  210. package/dist-cjs/models/index.js.map +0 -1
  211. package/dist-cjs/models/models_0.js.map +0 -1
  212. package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
  213. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  214. package/dist-cjs/pagination/ListActivityTypesPaginator.js.map +0 -1
  215. package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
  216. package/dist-cjs/pagination/ListDomainsPaginator.js.map +0 -1
  217. package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
  218. package/dist-cjs/pagination/ListWorkflowTypesPaginator.js.map +0 -1
  219. package/dist-cjs/pagination/PollForDecisionTaskPaginator.js.map +0 -1
  220. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  221. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  222. package/dist-cjs/runtimeConfig.js.map +0 -1
  223. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  224. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  225. package/dist-es/SWF.js.map +0 -1
  226. package/dist-es/SWFClient.js.map +0 -1
  227. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
  228. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
  229. package/dist-es/commands/CountPendingActivityTasksCommand.js.map +0 -1
  230. package/dist-es/commands/CountPendingDecisionTasksCommand.js.map +0 -1
  231. package/dist-es/commands/DeprecateActivityTypeCommand.js.map +0 -1
  232. package/dist-es/commands/DeprecateDomainCommand.js.map +0 -1
  233. package/dist-es/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
  234. package/dist-es/commands/DescribeActivityTypeCommand.js.map +0 -1
  235. package/dist-es/commands/DescribeDomainCommand.js.map +0 -1
  236. package/dist-es/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
  237. package/dist-es/commands/DescribeWorkflowTypeCommand.js.map +0 -1
  238. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
  239. package/dist-es/commands/ListActivityTypesCommand.js.map +0 -1
  240. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
  241. package/dist-es/commands/ListDomainsCommand.js.map +0 -1
  242. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
  243. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  244. package/dist-es/commands/ListWorkflowTypesCommand.js.map +0 -1
  245. package/dist-es/commands/PollForActivityTaskCommand.js.map +0 -1
  246. package/dist-es/commands/PollForDecisionTaskCommand.js.map +0 -1
  247. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
  248. package/dist-es/commands/RegisterActivityTypeCommand.js.map +0 -1
  249. package/dist-es/commands/RegisterDomainCommand.js.map +0 -1
  250. package/dist-es/commands/RegisterWorkflowTypeCommand.js.map +0 -1
  251. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
  252. package/dist-es/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
  253. package/dist-es/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
  254. package/dist-es/commands/RespondActivityTaskFailedCommand.js.map +0 -1
  255. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
  256. package/dist-es/commands/SignalWorkflowExecutionCommand.js.map +0 -1
  257. package/dist-es/commands/StartWorkflowExecutionCommand.js.map +0 -1
  258. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  259. package/dist-es/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
  260. package/dist-es/commands/UndeprecateActivityTypeCommand.js.map +0 -1
  261. package/dist-es/commands/UndeprecateDomainCommand.js.map +0 -1
  262. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
  263. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  264. package/dist-es/endpoints.js.map +0 -1
  265. package/dist-es/index.js.map +0 -1
  266. package/dist-es/models/index.js.map +0 -1
  267. package/dist-es/models/models_0.js.map +0 -1
  268. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
  269. package/dist-es/pagination/Interfaces.js.map +0 -1
  270. package/dist-es/pagination/ListActivityTypesPaginator.js.map +0 -1
  271. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
  272. package/dist-es/pagination/ListDomainsPaginator.js.map +0 -1
  273. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
  274. package/dist-es/pagination/ListWorkflowTypesPaginator.js.map +0 -1
  275. package/dist-es/pagination/PollForDecisionTaskPaginator.js.map +0 -1
  276. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  277. package/dist-es/runtimeConfig.browser.js.map +0 -1
  278. package/dist-es/runtimeConfig.js.map +0 -1
  279. package/dist-es/runtimeConfig.native.js.map +0 -1
  280. package/dist-es/runtimeConfig.shared.js.map +0 -1
  281. package/jest.config.js +0 -4
  282. package/src/SWF.ts +0 -2640
  283. package/src/SWFClient.ts +0 -446
  284. package/src/commands/CountClosedWorkflowExecutionsCommand.ts +0 -144
  285. package/src/commands/CountOpenWorkflowExecutionsCommand.ts +0 -144
  286. package/src/commands/CountPendingActivityTasksCommand.ts +0 -125
  287. package/src/commands/CountPendingDecisionTasksCommand.ts +0 -125
  288. package/src/commands/DeprecateActivityTypeCommand.ts +0 -137
  289. package/src/commands/DeprecateDomainCommand.ts +0 -126
  290. package/src/commands/DeprecateWorkflowTypeCommand.ts +0 -138
  291. package/src/commands/DescribeActivityTypeCommand.ts +0 -133
  292. package/src/commands/DescribeDomainCommand.ts +0 -119
  293. package/src/commands/DescribeWorkflowExecutionCommand.ts +0 -126
  294. package/src/commands/DescribeWorkflowTypeCommand.ts +0 -133
  295. package/src/commands/GetWorkflowExecutionHistoryCommand.ts +0 -127
  296. package/src/commands/ListActivityTypesCommand.ts +0 -122
  297. package/src/commands/ListClosedWorkflowExecutionsCommand.ts +0 -145
  298. package/src/commands/ListDomainsCommand.ts +0 -126
  299. package/src/commands/ListOpenWorkflowExecutionsCommand.ts +0 -145
  300. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  301. package/src/commands/ListWorkflowTypesCommand.ts +0 -119
  302. package/src/commands/PollForActivityTaskCommand.ts +0 -130
  303. package/src/commands/PollForDecisionTaskCommand.ts +0 -142
  304. package/src/commands/RecordActivityTaskHeartbeatCommand.ts +0 -145
  305. package/src/commands/RegisterActivityTypeCommand.ts +0 -141
  306. package/src/commands/RegisterDomainCommand.ts +0 -118
  307. package/src/commands/RegisterWorkflowTypeCommand.ts +0 -142
  308. package/src/commands/RequestCancelWorkflowExecutionCommand.ts +0 -139
  309. package/src/commands/RespondActivityTaskCanceledCommand.ts +0 -139
  310. package/src/commands/RespondActivityTaskCompletedCommand.ts +0 -137
  311. package/src/commands/RespondActivityTaskFailedCommand.ts +0 -130
  312. package/src/commands/RespondDecisionTaskCompletedCommand.ts +0 -117
  313. package/src/commands/SignalWorkflowExecutionCommand.ts +0 -133
  314. package/src/commands/StartWorkflowExecutionCommand.ts +0 -160
  315. package/src/commands/TagResourceCommand.ts +0 -98
  316. package/src/commands/TerminateWorkflowExecutionCommand.ts +0 -141
  317. package/src/commands/UndeprecateActivityTypeCommand.ts +0 -136
  318. package/src/commands/UndeprecateDomainCommand.ts +0 -123
  319. package/src/commands/UndeprecateWorkflowTypeCommand.ts +0 -136
  320. package/src/commands/UntagResourceCommand.ts +0 -95
  321. package/src/endpoints.ts +0 -86
  322. package/src/index.ts +0 -48
  323. package/src/models/index.ts +0 -1
  324. package/src/models/models_0.ts +0 -7233
  325. package/src/pagination/GetWorkflowExecutionHistoryPaginator.ts +0 -59
  326. package/src/pagination/Interfaces.ts +0 -8
  327. package/src/pagination/ListActivityTypesPaginator.ts +0 -59
  328. package/src/pagination/ListClosedWorkflowExecutionsPaginator.ts +0 -59
  329. package/src/pagination/ListDomainsPaginator.ts +0 -55
  330. package/src/pagination/ListOpenWorkflowExecutionsPaginator.ts +0 -59
  331. package/src/pagination/ListWorkflowTypesPaginator.ts +0 -59
  332. package/src/pagination/PollForDecisionTaskPaginator.ts +0 -59
  333. package/src/protocols/Aws_json1_0.ts +0 -5978
  334. package/src/runtimeConfig.browser.ts +0 -41
  335. package/src/runtimeConfig.native.ts +0 -17
  336. package/src/runtimeConfig.shared.ts +0 -17
  337. package/src/runtimeConfig.ts +0 -46
  338. package/tsconfig.es.json +0 -10
  339. package/tsconfig.json +0 -33
  340. package/tsconfig.types.json +0 -9
package/src/SWF.ts DELETED
@@ -1,2640 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- CountClosedWorkflowExecutionsCommand,
5
- CountClosedWorkflowExecutionsCommandInput,
6
- CountClosedWorkflowExecutionsCommandOutput,
7
- } from "./commands/CountClosedWorkflowExecutionsCommand";
8
- import {
9
- CountOpenWorkflowExecutionsCommand,
10
- CountOpenWorkflowExecutionsCommandInput,
11
- CountOpenWorkflowExecutionsCommandOutput,
12
- } from "./commands/CountOpenWorkflowExecutionsCommand";
13
- import {
14
- CountPendingActivityTasksCommand,
15
- CountPendingActivityTasksCommandInput,
16
- CountPendingActivityTasksCommandOutput,
17
- } from "./commands/CountPendingActivityTasksCommand";
18
- import {
19
- CountPendingDecisionTasksCommand,
20
- CountPendingDecisionTasksCommandInput,
21
- CountPendingDecisionTasksCommandOutput,
22
- } from "./commands/CountPendingDecisionTasksCommand";
23
- import {
24
- DeprecateActivityTypeCommand,
25
- DeprecateActivityTypeCommandInput,
26
- DeprecateActivityTypeCommandOutput,
27
- } from "./commands/DeprecateActivityTypeCommand";
28
- import {
29
- DeprecateDomainCommand,
30
- DeprecateDomainCommandInput,
31
- DeprecateDomainCommandOutput,
32
- } from "./commands/DeprecateDomainCommand";
33
- import {
34
- DeprecateWorkflowTypeCommand,
35
- DeprecateWorkflowTypeCommandInput,
36
- DeprecateWorkflowTypeCommandOutput,
37
- } from "./commands/DeprecateWorkflowTypeCommand";
38
- import {
39
- DescribeActivityTypeCommand,
40
- DescribeActivityTypeCommandInput,
41
- DescribeActivityTypeCommandOutput,
42
- } from "./commands/DescribeActivityTypeCommand";
43
- import {
44
- DescribeDomainCommand,
45
- DescribeDomainCommandInput,
46
- DescribeDomainCommandOutput,
47
- } from "./commands/DescribeDomainCommand";
48
- import {
49
- DescribeWorkflowExecutionCommand,
50
- DescribeWorkflowExecutionCommandInput,
51
- DescribeWorkflowExecutionCommandOutput,
52
- } from "./commands/DescribeWorkflowExecutionCommand";
53
- import {
54
- DescribeWorkflowTypeCommand,
55
- DescribeWorkflowTypeCommandInput,
56
- DescribeWorkflowTypeCommandOutput,
57
- } from "./commands/DescribeWorkflowTypeCommand";
58
- import {
59
- GetWorkflowExecutionHistoryCommand,
60
- GetWorkflowExecutionHistoryCommandInput,
61
- GetWorkflowExecutionHistoryCommandOutput,
62
- } from "./commands/GetWorkflowExecutionHistoryCommand";
63
- import {
64
- ListActivityTypesCommand,
65
- ListActivityTypesCommandInput,
66
- ListActivityTypesCommandOutput,
67
- } from "./commands/ListActivityTypesCommand";
68
- import {
69
- ListClosedWorkflowExecutionsCommand,
70
- ListClosedWorkflowExecutionsCommandInput,
71
- ListClosedWorkflowExecutionsCommandOutput,
72
- } from "./commands/ListClosedWorkflowExecutionsCommand";
73
- import { ListDomainsCommand, ListDomainsCommandInput, ListDomainsCommandOutput } from "./commands/ListDomainsCommand";
74
- import {
75
- ListOpenWorkflowExecutionsCommand,
76
- ListOpenWorkflowExecutionsCommandInput,
77
- ListOpenWorkflowExecutionsCommandOutput,
78
- } from "./commands/ListOpenWorkflowExecutionsCommand";
79
- import {
80
- ListTagsForResourceCommand,
81
- ListTagsForResourceCommandInput,
82
- ListTagsForResourceCommandOutput,
83
- } from "./commands/ListTagsForResourceCommand";
84
- import {
85
- ListWorkflowTypesCommand,
86
- ListWorkflowTypesCommandInput,
87
- ListWorkflowTypesCommandOutput,
88
- } from "./commands/ListWorkflowTypesCommand";
89
- import {
90
- PollForActivityTaskCommand,
91
- PollForActivityTaskCommandInput,
92
- PollForActivityTaskCommandOutput,
93
- } from "./commands/PollForActivityTaskCommand";
94
- import {
95
- PollForDecisionTaskCommand,
96
- PollForDecisionTaskCommandInput,
97
- PollForDecisionTaskCommandOutput,
98
- } from "./commands/PollForDecisionTaskCommand";
99
- import {
100
- RecordActivityTaskHeartbeatCommand,
101
- RecordActivityTaskHeartbeatCommandInput,
102
- RecordActivityTaskHeartbeatCommandOutput,
103
- } from "./commands/RecordActivityTaskHeartbeatCommand";
104
- import {
105
- RegisterActivityTypeCommand,
106
- RegisterActivityTypeCommandInput,
107
- RegisterActivityTypeCommandOutput,
108
- } from "./commands/RegisterActivityTypeCommand";
109
- import {
110
- RegisterDomainCommand,
111
- RegisterDomainCommandInput,
112
- RegisterDomainCommandOutput,
113
- } from "./commands/RegisterDomainCommand";
114
- import {
115
- RegisterWorkflowTypeCommand,
116
- RegisterWorkflowTypeCommandInput,
117
- RegisterWorkflowTypeCommandOutput,
118
- } from "./commands/RegisterWorkflowTypeCommand";
119
- import {
120
- RequestCancelWorkflowExecutionCommand,
121
- RequestCancelWorkflowExecutionCommandInput,
122
- RequestCancelWorkflowExecutionCommandOutput,
123
- } from "./commands/RequestCancelWorkflowExecutionCommand";
124
- import {
125
- RespondActivityTaskCanceledCommand,
126
- RespondActivityTaskCanceledCommandInput,
127
- RespondActivityTaskCanceledCommandOutput,
128
- } from "./commands/RespondActivityTaskCanceledCommand";
129
- import {
130
- RespondActivityTaskCompletedCommand,
131
- RespondActivityTaskCompletedCommandInput,
132
- RespondActivityTaskCompletedCommandOutput,
133
- } from "./commands/RespondActivityTaskCompletedCommand";
134
- import {
135
- RespondActivityTaskFailedCommand,
136
- RespondActivityTaskFailedCommandInput,
137
- RespondActivityTaskFailedCommandOutput,
138
- } from "./commands/RespondActivityTaskFailedCommand";
139
- import {
140
- RespondDecisionTaskCompletedCommand,
141
- RespondDecisionTaskCompletedCommandInput,
142
- RespondDecisionTaskCompletedCommandOutput,
143
- } from "./commands/RespondDecisionTaskCompletedCommand";
144
- import {
145
- SignalWorkflowExecutionCommand,
146
- SignalWorkflowExecutionCommandInput,
147
- SignalWorkflowExecutionCommandOutput,
148
- } from "./commands/SignalWorkflowExecutionCommand";
149
- import {
150
- StartWorkflowExecutionCommand,
151
- StartWorkflowExecutionCommandInput,
152
- StartWorkflowExecutionCommandOutput,
153
- } from "./commands/StartWorkflowExecutionCommand";
154
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
155
- import {
156
- TerminateWorkflowExecutionCommand,
157
- TerminateWorkflowExecutionCommandInput,
158
- TerminateWorkflowExecutionCommandOutput,
159
- } from "./commands/TerminateWorkflowExecutionCommand";
160
- import {
161
- UndeprecateActivityTypeCommand,
162
- UndeprecateActivityTypeCommandInput,
163
- UndeprecateActivityTypeCommandOutput,
164
- } from "./commands/UndeprecateActivityTypeCommand";
165
- import {
166
- UndeprecateDomainCommand,
167
- UndeprecateDomainCommandInput,
168
- UndeprecateDomainCommandOutput,
169
- } from "./commands/UndeprecateDomainCommand";
170
- import {
171
- UndeprecateWorkflowTypeCommand,
172
- UndeprecateWorkflowTypeCommandInput,
173
- UndeprecateWorkflowTypeCommandOutput,
174
- } from "./commands/UndeprecateWorkflowTypeCommand";
175
- import {
176
- UntagResourceCommand,
177
- UntagResourceCommandInput,
178
- UntagResourceCommandOutput,
179
- } from "./commands/UntagResourceCommand";
180
- import { SWFClient } from "./SWFClient";
181
-
182
- /**
183
- * <fullname>Amazon Simple Workflow Service</fullname>
184
- *
185
- * <p>The Amazon Simple Workflow Service (Amazon SWF) makes it easy to build applications that use Amazon's cloud to
186
- * coordinate work across distributed components. In Amazon SWF, a <i>task</i>
187
- * represents a logical unit of work that is performed by a component of your workflow.
188
- * Coordinating tasks in a workflow involves managing intertask dependencies, scheduling, and
189
- * concurrency in accordance with the logical flow of the application.</p>
190
- *
191
- * <p>Amazon SWF gives you full control over implementing tasks and coordinating them without
192
- * worrying about underlying complexities such as tracking their progress and maintaining their
193
- * state.</p>
194
- *
195
- * <p>This documentation serves as reference only. For a broader overview of the Amazon SWF
196
- * programming model, see the <i>
197
- * <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/">Amazon SWF Developer Guide</a>
198
- * </i>.</p>
199
- */
200
- export class SWF extends SWFClient {
201
- /**
202
- * <p>Returns the number of closed workflow executions within the given domain that meet the
203
- * specified filtering criteria.</p>
204
- * <note>
205
- * <p>This operation is eventually consistent. The results are best effort and may not
206
- * exactly reflect recent updates and changes.</p>
207
- * </note>
208
- * <p>
209
- * <b>Access Control</b>
210
- * </p>
211
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
212
- * follows:</p>
213
- * <ul>
214
- * <li>
215
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
216
- * only specified domains.</p>
217
- * </li>
218
- * <li>
219
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
220
- * action.</p>
221
- * </li>
222
- * <li>
223
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
224
- * the appropriate keys.</p>
225
- * <ul>
226
- * <li>
227
- * <p>
228
- * <code>tagFilter.tag</code>: String constraint. The key is
229
- * <code>swf:tagFilter.tag</code>.</p>
230
- * </li>
231
- * <li>
232
- * <p>
233
- * <code>typeFilter.name</code>: String constraint. The key is
234
- * <code>swf:typeFilter.name</code>.</p>
235
- * </li>
236
- * <li>
237
- * <p>
238
- * <code>typeFilter.version</code>: String constraint. The key is
239
- * <code>swf:typeFilter.version</code>.</p>
240
- * </li>
241
- * </ul>
242
- * </li>
243
- * </ul>
244
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
245
- * parameter values fall outside the specified constraints, the action fails. The associated
246
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
247
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
248
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
249
- */
250
- public countClosedWorkflowExecutions(
251
- args: CountClosedWorkflowExecutionsCommandInput,
252
- options?: __HttpHandlerOptions
253
- ): Promise<CountClosedWorkflowExecutionsCommandOutput>;
254
- public countClosedWorkflowExecutions(
255
- args: CountClosedWorkflowExecutionsCommandInput,
256
- cb: (err: any, data?: CountClosedWorkflowExecutionsCommandOutput) => void
257
- ): void;
258
- public countClosedWorkflowExecutions(
259
- args: CountClosedWorkflowExecutionsCommandInput,
260
- options: __HttpHandlerOptions,
261
- cb: (err: any, data?: CountClosedWorkflowExecutionsCommandOutput) => void
262
- ): void;
263
- public countClosedWorkflowExecutions(
264
- args: CountClosedWorkflowExecutionsCommandInput,
265
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CountClosedWorkflowExecutionsCommandOutput) => void),
266
- cb?: (err: any, data?: CountClosedWorkflowExecutionsCommandOutput) => void
267
- ): Promise<CountClosedWorkflowExecutionsCommandOutput> | void {
268
- const command = new CountClosedWorkflowExecutionsCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- } else if (typeof cb === "function") {
272
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
273
- this.send(command, optionsOrCb || {}, cb);
274
- } else {
275
- return this.send(command, optionsOrCb);
276
- }
277
- }
278
-
279
- /**
280
- * <p>Returns the number of open workflow executions within the given domain that meet the
281
- * specified filtering criteria.</p>
282
- * <note>
283
- * <p>This operation is eventually consistent. The results are best effort and may not
284
- * exactly reflect recent updates and changes.</p>
285
- * </note>
286
- * <p>
287
- * <b>Access Control</b>
288
- * </p>
289
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
290
- * follows:</p>
291
- * <ul>
292
- * <li>
293
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
294
- * only specified domains.</p>
295
- * </li>
296
- * <li>
297
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
298
- * action.</p>
299
- * </li>
300
- * <li>
301
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
302
- * the appropriate keys.</p>
303
- * <ul>
304
- * <li>
305
- * <p>
306
- * <code>tagFilter.tag</code>: String constraint. The key is
307
- * <code>swf:tagFilter.tag</code>.</p>
308
- * </li>
309
- * <li>
310
- * <p>
311
- * <code>typeFilter.name</code>: String constraint. The key is
312
- * <code>swf:typeFilter.name</code>.</p>
313
- * </li>
314
- * <li>
315
- * <p>
316
- * <code>typeFilter.version</code>: String constraint. The key is
317
- * <code>swf:typeFilter.version</code>.</p>
318
- * </li>
319
- * </ul>
320
- * </li>
321
- * </ul>
322
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
323
- * parameter values fall outside the specified constraints, the action fails. The associated
324
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
325
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
326
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
327
- */
328
- public countOpenWorkflowExecutions(
329
- args: CountOpenWorkflowExecutionsCommandInput,
330
- options?: __HttpHandlerOptions
331
- ): Promise<CountOpenWorkflowExecutionsCommandOutput>;
332
- public countOpenWorkflowExecutions(
333
- args: CountOpenWorkflowExecutionsCommandInput,
334
- cb: (err: any, data?: CountOpenWorkflowExecutionsCommandOutput) => void
335
- ): void;
336
- public countOpenWorkflowExecutions(
337
- args: CountOpenWorkflowExecutionsCommandInput,
338
- options: __HttpHandlerOptions,
339
- cb: (err: any, data?: CountOpenWorkflowExecutionsCommandOutput) => void
340
- ): void;
341
- public countOpenWorkflowExecutions(
342
- args: CountOpenWorkflowExecutionsCommandInput,
343
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CountOpenWorkflowExecutionsCommandOutput) => void),
344
- cb?: (err: any, data?: CountOpenWorkflowExecutionsCommandOutput) => void
345
- ): Promise<CountOpenWorkflowExecutionsCommandOutput> | void {
346
- const command = new CountOpenWorkflowExecutionsCommand(args);
347
- if (typeof optionsOrCb === "function") {
348
- this.send(command, optionsOrCb);
349
- } else if (typeof cb === "function") {
350
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
- this.send(command, optionsOrCb || {}, cb);
352
- } else {
353
- return this.send(command, optionsOrCb);
354
- }
355
- }
356
-
357
- /**
358
- * <p>Returns the estimated number of activity tasks in the specified task list. The count
359
- * returned is an approximation and isn't guaranteed to be exact. If you specify a task list that
360
- * no activity task was ever scheduled in then <code>0</code> is returned.</p>
361
- * <p>
362
- * <b>Access Control</b>
363
- * </p>
364
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
365
- * follows:</p>
366
- * <ul>
367
- * <li>
368
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
369
- * only specified domains.</p>
370
- * </li>
371
- * <li>
372
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
373
- * action.</p>
374
- * </li>
375
- * <li>
376
- * <p>Constrain the <code>taskList.name</code> parameter by using a
377
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
378
- * action to access only certain task lists.</p>
379
- * </li>
380
- * </ul>
381
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
382
- * parameter values fall outside the specified constraints, the action fails. The associated
383
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
384
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
385
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
386
- */
387
- public countPendingActivityTasks(
388
- args: CountPendingActivityTasksCommandInput,
389
- options?: __HttpHandlerOptions
390
- ): Promise<CountPendingActivityTasksCommandOutput>;
391
- public countPendingActivityTasks(
392
- args: CountPendingActivityTasksCommandInput,
393
- cb: (err: any, data?: CountPendingActivityTasksCommandOutput) => void
394
- ): void;
395
- public countPendingActivityTasks(
396
- args: CountPendingActivityTasksCommandInput,
397
- options: __HttpHandlerOptions,
398
- cb: (err: any, data?: CountPendingActivityTasksCommandOutput) => void
399
- ): void;
400
- public countPendingActivityTasks(
401
- args: CountPendingActivityTasksCommandInput,
402
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CountPendingActivityTasksCommandOutput) => void),
403
- cb?: (err: any, data?: CountPendingActivityTasksCommandOutput) => void
404
- ): Promise<CountPendingActivityTasksCommandOutput> | void {
405
- const command = new CountPendingActivityTasksCommand(args);
406
- if (typeof optionsOrCb === "function") {
407
- this.send(command, optionsOrCb);
408
- } else if (typeof cb === "function") {
409
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
- this.send(command, optionsOrCb || {}, cb);
411
- } else {
412
- return this.send(command, optionsOrCb);
413
- }
414
- }
415
-
416
- /**
417
- * <p>Returns the estimated number of decision tasks in the specified task list. The count
418
- * returned is an approximation and isn't guaranteed to be exact. If you specify a task list that
419
- * no decision task was ever scheduled in then <code>0</code> is returned.</p>
420
- * <p>
421
- * <b>Access Control</b>
422
- * </p>
423
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
424
- * follows:</p>
425
- * <ul>
426
- * <li>
427
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
428
- * only specified domains.</p>
429
- * </li>
430
- * <li>
431
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
432
- * action.</p>
433
- * </li>
434
- * <li>
435
- * <p>Constrain the <code>taskList.name</code> parameter by using a
436
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
437
- * action to access only certain task lists.</p>
438
- * </li>
439
- * </ul>
440
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
441
- * parameter values fall outside the specified constraints, the action fails. The associated
442
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
443
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
444
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
445
- */
446
- public countPendingDecisionTasks(
447
- args: CountPendingDecisionTasksCommandInput,
448
- options?: __HttpHandlerOptions
449
- ): Promise<CountPendingDecisionTasksCommandOutput>;
450
- public countPendingDecisionTasks(
451
- args: CountPendingDecisionTasksCommandInput,
452
- cb: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void
453
- ): void;
454
- public countPendingDecisionTasks(
455
- args: CountPendingDecisionTasksCommandInput,
456
- options: __HttpHandlerOptions,
457
- cb: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void
458
- ): void;
459
- public countPendingDecisionTasks(
460
- args: CountPendingDecisionTasksCommandInput,
461
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CountPendingDecisionTasksCommandOutput) => void),
462
- cb?: (err: any, data?: CountPendingDecisionTasksCommandOutput) => void
463
- ): Promise<CountPendingDecisionTasksCommandOutput> | void {
464
- const command = new CountPendingDecisionTasksCommand(args);
465
- if (typeof optionsOrCb === "function") {
466
- this.send(command, optionsOrCb);
467
- } else if (typeof cb === "function") {
468
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
469
- this.send(command, optionsOrCb || {}, cb);
470
- } else {
471
- return this.send(command, optionsOrCb);
472
- }
473
- }
474
-
475
- /**
476
- * <p>Deprecates the specified <i>activity type</i>. After an activity type has
477
- * been deprecated, you cannot create new tasks of that activity type. Tasks of this type that
478
- * were scheduled before the type was deprecated continue to run.</p>
479
- * <note>
480
- * <p>This operation is eventually consistent. The results are best effort and may not
481
- * exactly reflect recent updates and changes.</p>
482
- * </note>
483
- * <p>
484
- * <b>Access Control</b>
485
- * </p>
486
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
487
- * follows:</p>
488
- * <ul>
489
- * <li>
490
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
491
- * only specified domains.</p>
492
- * </li>
493
- * <li>
494
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
495
- * action.</p>
496
- * </li>
497
- * <li>
498
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
499
- * the appropriate keys.</p>
500
- * <ul>
501
- * <li>
502
- * <p>
503
- * <code>activityType.name</code>: String constraint. The key is
504
- * <code>swf:activityType.name</code>.</p>
505
- * </li>
506
- * <li>
507
- * <p>
508
- * <code>activityType.version</code>: String constraint. The key is
509
- * <code>swf:activityType.version</code>.</p>
510
- * </li>
511
- * </ul>
512
- * </li>
513
- * </ul>
514
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
515
- * parameter values fall outside the specified constraints, the action fails. The associated
516
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
517
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
518
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
519
- */
520
- public deprecateActivityType(
521
- args: DeprecateActivityTypeCommandInput,
522
- options?: __HttpHandlerOptions
523
- ): Promise<DeprecateActivityTypeCommandOutput>;
524
- public deprecateActivityType(
525
- args: DeprecateActivityTypeCommandInput,
526
- cb: (err: any, data?: DeprecateActivityTypeCommandOutput) => void
527
- ): void;
528
- public deprecateActivityType(
529
- args: DeprecateActivityTypeCommandInput,
530
- options: __HttpHandlerOptions,
531
- cb: (err: any, data?: DeprecateActivityTypeCommandOutput) => void
532
- ): void;
533
- public deprecateActivityType(
534
- args: DeprecateActivityTypeCommandInput,
535
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeprecateActivityTypeCommandOutput) => void),
536
- cb?: (err: any, data?: DeprecateActivityTypeCommandOutput) => void
537
- ): Promise<DeprecateActivityTypeCommandOutput> | void {
538
- const command = new DeprecateActivityTypeCommand(args);
539
- if (typeof optionsOrCb === "function") {
540
- this.send(command, optionsOrCb);
541
- } else if (typeof cb === "function") {
542
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
- this.send(command, optionsOrCb || {}, cb);
544
- } else {
545
- return this.send(command, optionsOrCb);
546
- }
547
- }
548
-
549
- /**
550
- * <p>Deprecates the specified domain. After a domain has been deprecated it cannot be used
551
- * to create new workflow executions or register new types. However, you can still use visibility
552
- * actions on this domain. Deprecating a domain also deprecates all activity and workflow types
553
- * registered in the domain. Executions that were started before the domain was deprecated
554
- * continues to run.</p>
555
- * <note>
556
- * <p>This operation is eventually consistent. The results are best effort and may not
557
- * exactly reflect recent updates and changes.</p>
558
- * </note>
559
- * <p>
560
- * <b>Access Control</b>
561
- * </p>
562
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
563
- * follows:</p>
564
- * <ul>
565
- * <li>
566
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
567
- * only specified domains.</p>
568
- * </li>
569
- * <li>
570
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
571
- * action.</p>
572
- * </li>
573
- * <li>
574
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
575
- * </li>
576
- * </ul>
577
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
578
- * parameter values fall outside the specified constraints, the action fails. The associated
579
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
580
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
581
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
582
- */
583
- public deprecateDomain(
584
- args: DeprecateDomainCommandInput,
585
- options?: __HttpHandlerOptions
586
- ): Promise<DeprecateDomainCommandOutput>;
587
- public deprecateDomain(
588
- args: DeprecateDomainCommandInput,
589
- cb: (err: any, data?: DeprecateDomainCommandOutput) => void
590
- ): void;
591
- public deprecateDomain(
592
- args: DeprecateDomainCommandInput,
593
- options: __HttpHandlerOptions,
594
- cb: (err: any, data?: DeprecateDomainCommandOutput) => void
595
- ): void;
596
- public deprecateDomain(
597
- args: DeprecateDomainCommandInput,
598
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeprecateDomainCommandOutput) => void),
599
- cb?: (err: any, data?: DeprecateDomainCommandOutput) => void
600
- ): Promise<DeprecateDomainCommandOutput> | void {
601
- const command = new DeprecateDomainCommand(args);
602
- if (typeof optionsOrCb === "function") {
603
- this.send(command, optionsOrCb);
604
- } else if (typeof cb === "function") {
605
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
606
- this.send(command, optionsOrCb || {}, cb);
607
- } else {
608
- return this.send(command, optionsOrCb);
609
- }
610
- }
611
-
612
- /**
613
- * <p>Deprecates the specified <i>workflow type</i>. After a workflow type has
614
- * been deprecated, you cannot create new executions of that type. Executions that were started
615
- * before the type was deprecated continues to run. A deprecated workflow type may still be used
616
- * when calling visibility actions.</p>
617
- * <note>
618
- * <p>This operation is eventually consistent. The results are best effort and may not
619
- * exactly reflect recent updates and changes.</p>
620
- * </note>
621
- * <p>
622
- * <b>Access Control</b>
623
- * </p>
624
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
625
- * follows:</p>
626
- * <ul>
627
- * <li>
628
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
629
- * only specified domains.</p>
630
- * </li>
631
- * <li>
632
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
633
- * action.</p>
634
- * </li>
635
- * <li>
636
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
637
- * the appropriate keys.</p>
638
- * <ul>
639
- * <li>
640
- * <p>
641
- * <code>workflowType.name</code>: String constraint. The key is
642
- * <code>swf:workflowType.name</code>.</p>
643
- * </li>
644
- * <li>
645
- * <p>
646
- * <code>workflowType.version</code>: String constraint. The key is
647
- * <code>swf:workflowType.version</code>.</p>
648
- * </li>
649
- * </ul>
650
- * </li>
651
- * </ul>
652
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
653
- * parameter values fall outside the specified constraints, the action fails. The associated
654
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
655
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
656
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
657
- */
658
- public deprecateWorkflowType(
659
- args: DeprecateWorkflowTypeCommandInput,
660
- options?: __HttpHandlerOptions
661
- ): Promise<DeprecateWorkflowTypeCommandOutput>;
662
- public deprecateWorkflowType(
663
- args: DeprecateWorkflowTypeCommandInput,
664
- cb: (err: any, data?: DeprecateWorkflowTypeCommandOutput) => void
665
- ): void;
666
- public deprecateWorkflowType(
667
- args: DeprecateWorkflowTypeCommandInput,
668
- options: __HttpHandlerOptions,
669
- cb: (err: any, data?: DeprecateWorkflowTypeCommandOutput) => void
670
- ): void;
671
- public deprecateWorkflowType(
672
- args: DeprecateWorkflowTypeCommandInput,
673
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeprecateWorkflowTypeCommandOutput) => void),
674
- cb?: (err: any, data?: DeprecateWorkflowTypeCommandOutput) => void
675
- ): Promise<DeprecateWorkflowTypeCommandOutput> | void {
676
- const command = new DeprecateWorkflowTypeCommand(args);
677
- if (typeof optionsOrCb === "function") {
678
- this.send(command, optionsOrCb);
679
- } else if (typeof cb === "function") {
680
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
681
- this.send(command, optionsOrCb || {}, cb);
682
- } else {
683
- return this.send(command, optionsOrCb);
684
- }
685
- }
686
-
687
- /**
688
- * <p>Returns information about the specified activity type. This includes configuration
689
- * settings provided when the type was registered and other general information about the
690
- * type.</p>
691
- * <p>
692
- * <b>Access Control</b>
693
- * </p>
694
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
695
- * follows:</p>
696
- * <ul>
697
- * <li>
698
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
699
- * only specified domains.</p>
700
- * </li>
701
- * <li>
702
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
703
- * action.</p>
704
- * </li>
705
- * <li>
706
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
707
- * the appropriate keys.</p>
708
- * <ul>
709
- * <li>
710
- * <p>
711
- * <code>activityType.name</code>: String constraint. The key is
712
- * <code>swf:activityType.name</code>.</p>
713
- * </li>
714
- * <li>
715
- * <p>
716
- * <code>activityType.version</code>: String constraint. The key is
717
- * <code>swf:activityType.version</code>.</p>
718
- * </li>
719
- * </ul>
720
- * </li>
721
- * </ul>
722
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
723
- * parameter values fall outside the specified constraints, the action fails. The associated
724
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
725
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
726
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
727
- */
728
- public describeActivityType(
729
- args: DescribeActivityTypeCommandInput,
730
- options?: __HttpHandlerOptions
731
- ): Promise<DescribeActivityTypeCommandOutput>;
732
- public describeActivityType(
733
- args: DescribeActivityTypeCommandInput,
734
- cb: (err: any, data?: DescribeActivityTypeCommandOutput) => void
735
- ): void;
736
- public describeActivityType(
737
- args: DescribeActivityTypeCommandInput,
738
- options: __HttpHandlerOptions,
739
- cb: (err: any, data?: DescribeActivityTypeCommandOutput) => void
740
- ): void;
741
- public describeActivityType(
742
- args: DescribeActivityTypeCommandInput,
743
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeActivityTypeCommandOutput) => void),
744
- cb?: (err: any, data?: DescribeActivityTypeCommandOutput) => void
745
- ): Promise<DescribeActivityTypeCommandOutput> | void {
746
- const command = new DescribeActivityTypeCommand(args);
747
- if (typeof optionsOrCb === "function") {
748
- this.send(command, optionsOrCb);
749
- } else if (typeof cb === "function") {
750
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
751
- this.send(command, optionsOrCb || {}, cb);
752
- } else {
753
- return this.send(command, optionsOrCb);
754
- }
755
- }
756
-
757
- /**
758
- * <p>Returns information about the specified domain, including description and
759
- * status.</p>
760
- * <p>
761
- * <b>Access Control</b>
762
- * </p>
763
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
764
- * follows:</p>
765
- * <ul>
766
- * <li>
767
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
768
- * only specified domains.</p>
769
- * </li>
770
- * <li>
771
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
772
- * action.</p>
773
- * </li>
774
- * <li>
775
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
776
- * </li>
777
- * </ul>
778
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
779
- * parameter values fall outside the specified constraints, the action fails. The associated
780
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
781
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
782
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
783
- */
784
- public describeDomain(
785
- args: DescribeDomainCommandInput,
786
- options?: __HttpHandlerOptions
787
- ): Promise<DescribeDomainCommandOutput>;
788
- public describeDomain(
789
- args: DescribeDomainCommandInput,
790
- cb: (err: any, data?: DescribeDomainCommandOutput) => void
791
- ): void;
792
- public describeDomain(
793
- args: DescribeDomainCommandInput,
794
- options: __HttpHandlerOptions,
795
- cb: (err: any, data?: DescribeDomainCommandOutput) => void
796
- ): void;
797
- public describeDomain(
798
- args: DescribeDomainCommandInput,
799
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDomainCommandOutput) => void),
800
- cb?: (err: any, data?: DescribeDomainCommandOutput) => void
801
- ): Promise<DescribeDomainCommandOutput> | void {
802
- const command = new DescribeDomainCommand(args);
803
- if (typeof optionsOrCb === "function") {
804
- this.send(command, optionsOrCb);
805
- } else if (typeof cb === "function") {
806
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
807
- this.send(command, optionsOrCb || {}, cb);
808
- } else {
809
- return this.send(command, optionsOrCb);
810
- }
811
- }
812
-
813
- /**
814
- * <p>Returns information about the specified workflow execution including its type and some
815
- * statistics.</p>
816
- * <note>
817
- * <p>This operation is eventually consistent. The results are best effort and may not
818
- * exactly reflect recent updates and changes.</p>
819
- * </note>
820
- * <p>
821
- * <b>Access Control</b>
822
- * </p>
823
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
824
- * follows:</p>
825
- * <ul>
826
- * <li>
827
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
828
- * only specified domains.</p>
829
- * </li>
830
- * <li>
831
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
832
- * action.</p>
833
- * </li>
834
- * <li>
835
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
836
- * </li>
837
- * </ul>
838
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
839
- * parameter values fall outside the specified constraints, the action fails. The associated
840
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
841
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
842
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
843
- */
844
- public describeWorkflowExecution(
845
- args: DescribeWorkflowExecutionCommandInput,
846
- options?: __HttpHandlerOptions
847
- ): Promise<DescribeWorkflowExecutionCommandOutput>;
848
- public describeWorkflowExecution(
849
- args: DescribeWorkflowExecutionCommandInput,
850
- cb: (err: any, data?: DescribeWorkflowExecutionCommandOutput) => void
851
- ): void;
852
- public describeWorkflowExecution(
853
- args: DescribeWorkflowExecutionCommandInput,
854
- options: __HttpHandlerOptions,
855
- cb: (err: any, data?: DescribeWorkflowExecutionCommandOutput) => void
856
- ): void;
857
- public describeWorkflowExecution(
858
- args: DescribeWorkflowExecutionCommandInput,
859
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeWorkflowExecutionCommandOutput) => void),
860
- cb?: (err: any, data?: DescribeWorkflowExecutionCommandOutput) => void
861
- ): Promise<DescribeWorkflowExecutionCommandOutput> | void {
862
- const command = new DescribeWorkflowExecutionCommand(args);
863
- if (typeof optionsOrCb === "function") {
864
- this.send(command, optionsOrCb);
865
- } else if (typeof cb === "function") {
866
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
867
- this.send(command, optionsOrCb || {}, cb);
868
- } else {
869
- return this.send(command, optionsOrCb);
870
- }
871
- }
872
-
873
- /**
874
- * <p>Returns information about the specified <i>workflow type</i>. This
875
- * includes configuration settings specified when the type was registered and other information
876
- * such as creation date, current status, etc.</p>
877
- * <p>
878
- * <b>Access Control</b>
879
- * </p>
880
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
881
- * follows:</p>
882
- * <ul>
883
- * <li>
884
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
885
- * only specified domains.</p>
886
- * </li>
887
- * <li>
888
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
889
- * action.</p>
890
- * </li>
891
- * <li>
892
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
893
- * the appropriate keys.</p>
894
- * <ul>
895
- * <li>
896
- * <p>
897
- * <code>workflowType.name</code>: String constraint. The key is
898
- * <code>swf:workflowType.name</code>.</p>
899
- * </li>
900
- * <li>
901
- * <p>
902
- * <code>workflowType.version</code>: String constraint. The key is
903
- * <code>swf:workflowType.version</code>.</p>
904
- * </li>
905
- * </ul>
906
- * </li>
907
- * </ul>
908
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
909
- * parameter values fall outside the specified constraints, the action fails. The associated
910
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
911
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
912
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
913
- */
914
- public describeWorkflowType(
915
- args: DescribeWorkflowTypeCommandInput,
916
- options?: __HttpHandlerOptions
917
- ): Promise<DescribeWorkflowTypeCommandOutput>;
918
- public describeWorkflowType(
919
- args: DescribeWorkflowTypeCommandInput,
920
- cb: (err: any, data?: DescribeWorkflowTypeCommandOutput) => void
921
- ): void;
922
- public describeWorkflowType(
923
- args: DescribeWorkflowTypeCommandInput,
924
- options: __HttpHandlerOptions,
925
- cb: (err: any, data?: DescribeWorkflowTypeCommandOutput) => void
926
- ): void;
927
- public describeWorkflowType(
928
- args: DescribeWorkflowTypeCommandInput,
929
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeWorkflowTypeCommandOutput) => void),
930
- cb?: (err: any, data?: DescribeWorkflowTypeCommandOutput) => void
931
- ): Promise<DescribeWorkflowTypeCommandOutput> | void {
932
- const command = new DescribeWorkflowTypeCommand(args);
933
- if (typeof optionsOrCb === "function") {
934
- this.send(command, optionsOrCb);
935
- } else if (typeof cb === "function") {
936
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
937
- this.send(command, optionsOrCb || {}, cb);
938
- } else {
939
- return this.send(command, optionsOrCb);
940
- }
941
- }
942
-
943
- /**
944
- * <p>Returns the history of the specified workflow execution. The results may be split into
945
- * multiple pages. To retrieve subsequent pages, make the call again using the
946
- * <code>nextPageToken</code> returned by the initial call.</p>
947
- * <note>
948
- * <p>This operation is eventually consistent. The results are best effort and may not
949
- * exactly reflect recent updates and changes.</p>
950
- * </note>
951
- * <p>
952
- * <b>Access Control</b>
953
- * </p>
954
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
955
- * follows:</p>
956
- * <ul>
957
- * <li>
958
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
959
- * only specified domains.</p>
960
- * </li>
961
- * <li>
962
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
963
- * action.</p>
964
- * </li>
965
- * <li>
966
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
967
- * </li>
968
- * </ul>
969
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
970
- * parameter values fall outside the specified constraints, the action fails. The associated
971
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
972
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
973
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
974
- */
975
- public getWorkflowExecutionHistory(
976
- args: GetWorkflowExecutionHistoryCommandInput,
977
- options?: __HttpHandlerOptions
978
- ): Promise<GetWorkflowExecutionHistoryCommandOutput>;
979
- public getWorkflowExecutionHistory(
980
- args: GetWorkflowExecutionHistoryCommandInput,
981
- cb: (err: any, data?: GetWorkflowExecutionHistoryCommandOutput) => void
982
- ): void;
983
- public getWorkflowExecutionHistory(
984
- args: GetWorkflowExecutionHistoryCommandInput,
985
- options: __HttpHandlerOptions,
986
- cb: (err: any, data?: GetWorkflowExecutionHistoryCommandOutput) => void
987
- ): void;
988
- public getWorkflowExecutionHistory(
989
- args: GetWorkflowExecutionHistoryCommandInput,
990
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetWorkflowExecutionHistoryCommandOutput) => void),
991
- cb?: (err: any, data?: GetWorkflowExecutionHistoryCommandOutput) => void
992
- ): Promise<GetWorkflowExecutionHistoryCommandOutput> | void {
993
- const command = new GetWorkflowExecutionHistoryCommand(args);
994
- if (typeof optionsOrCb === "function") {
995
- this.send(command, optionsOrCb);
996
- } else if (typeof cb === "function") {
997
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
998
- this.send(command, optionsOrCb || {}, cb);
999
- } else {
1000
- return this.send(command, optionsOrCb);
1001
- }
1002
- }
1003
-
1004
- /**
1005
- * <p>Returns information about all activities registered in the specified domain that match
1006
- * the specified name and registration status. The result includes information like creation
1007
- * date, current status of the activity, etc. The results may be split into multiple pages. To
1008
- * retrieve subsequent pages, make the call again using the <code>nextPageToken</code> returned
1009
- * by the initial call.</p>
1010
- * <p>
1011
- * <b>Access Control</b>
1012
- * </p>
1013
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1014
- * follows:</p>
1015
- * <ul>
1016
- * <li>
1017
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1018
- * only specified domains.</p>
1019
- * </li>
1020
- * <li>
1021
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1022
- * action.</p>
1023
- * </li>
1024
- * <li>
1025
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1026
- * </li>
1027
- * </ul>
1028
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1029
- * parameter values fall outside the specified constraints, the action fails. The associated
1030
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1031
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1032
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1033
- */
1034
- public listActivityTypes(
1035
- args: ListActivityTypesCommandInput,
1036
- options?: __HttpHandlerOptions
1037
- ): Promise<ListActivityTypesCommandOutput>;
1038
- public listActivityTypes(
1039
- args: ListActivityTypesCommandInput,
1040
- cb: (err: any, data?: ListActivityTypesCommandOutput) => void
1041
- ): void;
1042
- public listActivityTypes(
1043
- args: ListActivityTypesCommandInput,
1044
- options: __HttpHandlerOptions,
1045
- cb: (err: any, data?: ListActivityTypesCommandOutput) => void
1046
- ): void;
1047
- public listActivityTypes(
1048
- args: ListActivityTypesCommandInput,
1049
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListActivityTypesCommandOutput) => void),
1050
- cb?: (err: any, data?: ListActivityTypesCommandOutput) => void
1051
- ): Promise<ListActivityTypesCommandOutput> | void {
1052
- const command = new ListActivityTypesCommand(args);
1053
- if (typeof optionsOrCb === "function") {
1054
- this.send(command, optionsOrCb);
1055
- } else if (typeof cb === "function") {
1056
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1057
- this.send(command, optionsOrCb || {}, cb);
1058
- } else {
1059
- return this.send(command, optionsOrCb);
1060
- }
1061
- }
1062
-
1063
- /**
1064
- * <p>Returns a list of closed workflow executions in the specified domain that meet the
1065
- * filtering criteria. The results may be split into multiple pages. To retrieve subsequent
1066
- * pages, make the call again using the nextPageToken returned by the initial call.</p>
1067
- * <note>
1068
- * <p>This operation is eventually consistent. The results are best effort and may not
1069
- * exactly reflect recent updates and changes.</p>
1070
- * </note>
1071
- * <p>
1072
- * <b>Access Control</b>
1073
- * </p>
1074
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1075
- * follows:</p>
1076
- * <ul>
1077
- * <li>
1078
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1079
- * only specified domains.</p>
1080
- * </li>
1081
- * <li>
1082
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1083
- * action.</p>
1084
- * </li>
1085
- * <li>
1086
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
1087
- * the appropriate keys.</p>
1088
- * <ul>
1089
- * <li>
1090
- * <p>
1091
- * <code>tagFilter.tag</code>: String constraint. The key is
1092
- * <code>swf:tagFilter.tag</code>.</p>
1093
- * </li>
1094
- * <li>
1095
- * <p>
1096
- * <code>typeFilter.name</code>: String constraint. The key is
1097
- * <code>swf:typeFilter.name</code>.</p>
1098
- * </li>
1099
- * <li>
1100
- * <p>
1101
- * <code>typeFilter.version</code>: String constraint. The key is
1102
- * <code>swf:typeFilter.version</code>.</p>
1103
- * </li>
1104
- * </ul>
1105
- * </li>
1106
- * </ul>
1107
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1108
- * parameter values fall outside the specified constraints, the action fails. The associated
1109
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1110
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1111
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1112
- */
1113
- public listClosedWorkflowExecutions(
1114
- args: ListClosedWorkflowExecutionsCommandInput,
1115
- options?: __HttpHandlerOptions
1116
- ): Promise<ListClosedWorkflowExecutionsCommandOutput>;
1117
- public listClosedWorkflowExecutions(
1118
- args: ListClosedWorkflowExecutionsCommandInput,
1119
- cb: (err: any, data?: ListClosedWorkflowExecutionsCommandOutput) => void
1120
- ): void;
1121
- public listClosedWorkflowExecutions(
1122
- args: ListClosedWorkflowExecutionsCommandInput,
1123
- options: __HttpHandlerOptions,
1124
- cb: (err: any, data?: ListClosedWorkflowExecutionsCommandOutput) => void
1125
- ): void;
1126
- public listClosedWorkflowExecutions(
1127
- args: ListClosedWorkflowExecutionsCommandInput,
1128
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListClosedWorkflowExecutionsCommandOutput) => void),
1129
- cb?: (err: any, data?: ListClosedWorkflowExecutionsCommandOutput) => void
1130
- ): Promise<ListClosedWorkflowExecutionsCommandOutput> | void {
1131
- const command = new ListClosedWorkflowExecutionsCommand(args);
1132
- if (typeof optionsOrCb === "function") {
1133
- this.send(command, optionsOrCb);
1134
- } else if (typeof cb === "function") {
1135
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1136
- this.send(command, optionsOrCb || {}, cb);
1137
- } else {
1138
- return this.send(command, optionsOrCb);
1139
- }
1140
- }
1141
-
1142
- /**
1143
- * <p>Returns the list of domains registered in the account. The results may be split into
1144
- * multiple pages. To retrieve subsequent pages, make the call again using the nextPageToken
1145
- * returned by the initial call.</p>
1146
- * <note>
1147
- * <p>This operation is eventually consistent. The results are best effort and may not
1148
- * exactly reflect recent updates and changes.</p>
1149
- * </note>
1150
- * <p>
1151
- * <b>Access Control</b>
1152
- * </p>
1153
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1154
- * follows:</p>
1155
- * <ul>
1156
- * <li>
1157
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1158
- * only specified domains. The element must be set to
1159
- * <code>arn:aws:swf::AccountID:domain/*</code>, where <i>AccountID</i> is
1160
- * the account ID, with no dashes.</p>
1161
- * </li>
1162
- * <li>
1163
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1164
- * action.</p>
1165
- * </li>
1166
- * <li>
1167
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1168
- * </li>
1169
- * </ul>
1170
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1171
- * parameter values fall outside the specified constraints, the action fails. The associated
1172
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1173
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1174
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1175
- */
1176
- public listDomains(args: ListDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainsCommandOutput>;
1177
- public listDomains(args: ListDomainsCommandInput, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
1178
- public listDomains(
1179
- args: ListDomainsCommandInput,
1180
- options: __HttpHandlerOptions,
1181
- cb: (err: any, data?: ListDomainsCommandOutput) => void
1182
- ): void;
1183
- public listDomains(
1184
- args: ListDomainsCommandInput,
1185
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDomainsCommandOutput) => void),
1186
- cb?: (err: any, data?: ListDomainsCommandOutput) => void
1187
- ): Promise<ListDomainsCommandOutput> | void {
1188
- const command = new ListDomainsCommand(args);
1189
- if (typeof optionsOrCb === "function") {
1190
- this.send(command, optionsOrCb);
1191
- } else if (typeof cb === "function") {
1192
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1193
- this.send(command, optionsOrCb || {}, cb);
1194
- } else {
1195
- return this.send(command, optionsOrCb);
1196
- }
1197
- }
1198
-
1199
- /**
1200
- * <p>Returns a list of open workflow executions in the specified domain that meet the
1201
- * filtering criteria. The results may be split into multiple pages. To retrieve subsequent
1202
- * pages, make the call again using the nextPageToken returned by the initial call.</p>
1203
- * <note>
1204
- * <p>This operation is eventually consistent. The results are best effort and may not
1205
- * exactly reflect recent updates and changes.</p>
1206
- * </note>
1207
- * <p>
1208
- * <b>Access Control</b>
1209
- * </p>
1210
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1211
- * follows:</p>
1212
- * <ul>
1213
- * <li>
1214
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1215
- * only specified domains.</p>
1216
- * </li>
1217
- * <li>
1218
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1219
- * action.</p>
1220
- * </li>
1221
- * <li>
1222
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
1223
- * the appropriate keys.</p>
1224
- * <ul>
1225
- * <li>
1226
- * <p>
1227
- * <code>tagFilter.tag</code>: String constraint. The key is
1228
- * <code>swf:tagFilter.tag</code>.</p>
1229
- * </li>
1230
- * <li>
1231
- * <p>
1232
- * <code>typeFilter.name</code>: String constraint. The key is
1233
- * <code>swf:typeFilter.name</code>.</p>
1234
- * </li>
1235
- * <li>
1236
- * <p>
1237
- * <code>typeFilter.version</code>: String constraint. The key is
1238
- * <code>swf:typeFilter.version</code>.</p>
1239
- * </li>
1240
- * </ul>
1241
- * </li>
1242
- * </ul>
1243
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1244
- * parameter values fall outside the specified constraints, the action fails. The associated
1245
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1246
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1247
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1248
- */
1249
- public listOpenWorkflowExecutions(
1250
- args: ListOpenWorkflowExecutionsCommandInput,
1251
- options?: __HttpHandlerOptions
1252
- ): Promise<ListOpenWorkflowExecutionsCommandOutput>;
1253
- public listOpenWorkflowExecutions(
1254
- args: ListOpenWorkflowExecutionsCommandInput,
1255
- cb: (err: any, data?: ListOpenWorkflowExecutionsCommandOutput) => void
1256
- ): void;
1257
- public listOpenWorkflowExecutions(
1258
- args: ListOpenWorkflowExecutionsCommandInput,
1259
- options: __HttpHandlerOptions,
1260
- cb: (err: any, data?: ListOpenWorkflowExecutionsCommandOutput) => void
1261
- ): void;
1262
- public listOpenWorkflowExecutions(
1263
- args: ListOpenWorkflowExecutionsCommandInput,
1264
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListOpenWorkflowExecutionsCommandOutput) => void),
1265
- cb?: (err: any, data?: ListOpenWorkflowExecutionsCommandOutput) => void
1266
- ): Promise<ListOpenWorkflowExecutionsCommandOutput> | void {
1267
- const command = new ListOpenWorkflowExecutionsCommand(args);
1268
- if (typeof optionsOrCb === "function") {
1269
- this.send(command, optionsOrCb);
1270
- } else if (typeof cb === "function") {
1271
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1272
- this.send(command, optionsOrCb || {}, cb);
1273
- } else {
1274
- return this.send(command, optionsOrCb);
1275
- }
1276
- }
1277
-
1278
- /**
1279
- * <p>List tags for a given domain.</p>
1280
- */
1281
- public listTagsForResource(
1282
- args: ListTagsForResourceCommandInput,
1283
- options?: __HttpHandlerOptions
1284
- ): Promise<ListTagsForResourceCommandOutput>;
1285
- public listTagsForResource(
1286
- args: ListTagsForResourceCommandInput,
1287
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1288
- ): void;
1289
- public listTagsForResource(
1290
- args: ListTagsForResourceCommandInput,
1291
- options: __HttpHandlerOptions,
1292
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1293
- ): void;
1294
- public listTagsForResource(
1295
- args: ListTagsForResourceCommandInput,
1296
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
1297
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
1298
- ): Promise<ListTagsForResourceCommandOutput> | void {
1299
- const command = new ListTagsForResourceCommand(args);
1300
- if (typeof optionsOrCb === "function") {
1301
- this.send(command, optionsOrCb);
1302
- } else if (typeof cb === "function") {
1303
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1304
- this.send(command, optionsOrCb || {}, cb);
1305
- } else {
1306
- return this.send(command, optionsOrCb);
1307
- }
1308
- }
1309
-
1310
- /**
1311
- * <p>Returns information about workflow types in the specified domain. The results may be
1312
- * split into multiple pages that can be retrieved by making the call repeatedly.</p>
1313
- * <p>
1314
- * <b>Access Control</b>
1315
- * </p>
1316
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1317
- * follows:</p>
1318
- * <ul>
1319
- * <li>
1320
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1321
- * only specified domains.</p>
1322
- * </li>
1323
- * <li>
1324
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1325
- * action.</p>
1326
- * </li>
1327
- * <li>
1328
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1329
- * </li>
1330
- * </ul>
1331
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1332
- * parameter values fall outside the specified constraints, the action fails. The associated
1333
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1334
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1335
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1336
- */
1337
- public listWorkflowTypes(
1338
- args: ListWorkflowTypesCommandInput,
1339
- options?: __HttpHandlerOptions
1340
- ): Promise<ListWorkflowTypesCommandOutput>;
1341
- public listWorkflowTypes(
1342
- args: ListWorkflowTypesCommandInput,
1343
- cb: (err: any, data?: ListWorkflowTypesCommandOutput) => void
1344
- ): void;
1345
- public listWorkflowTypes(
1346
- args: ListWorkflowTypesCommandInput,
1347
- options: __HttpHandlerOptions,
1348
- cb: (err: any, data?: ListWorkflowTypesCommandOutput) => void
1349
- ): void;
1350
- public listWorkflowTypes(
1351
- args: ListWorkflowTypesCommandInput,
1352
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListWorkflowTypesCommandOutput) => void),
1353
- cb?: (err: any, data?: ListWorkflowTypesCommandOutput) => void
1354
- ): Promise<ListWorkflowTypesCommandOutput> | void {
1355
- const command = new ListWorkflowTypesCommand(args);
1356
- if (typeof optionsOrCb === "function") {
1357
- this.send(command, optionsOrCb);
1358
- } else if (typeof cb === "function") {
1359
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1360
- this.send(command, optionsOrCb || {}, cb);
1361
- } else {
1362
- return this.send(command, optionsOrCb);
1363
- }
1364
- }
1365
-
1366
- /**
1367
- * <p>Used by workers to get an <a>ActivityTask</a> from the specified activity
1368
- * <code>taskList</code>. This initiates a long poll, where the service holds the HTTP
1369
- * connection open and responds as soon as a task becomes available. The maximum time the service
1370
- * holds on to the request before responding is 60 seconds. If no task is available within 60
1371
- * seconds, the poll returns an empty result. An empty result, in this context, means that an
1372
- * ActivityTask is returned, but that the value of taskToken is an empty string. If a task is
1373
- * returned, the worker should use its type to identify and process it correctly.</p>
1374
- * <important>
1375
- * <p>Workers should set their client side socket timeout to at least 70 seconds (10
1376
- * seconds higher than the maximum time service may hold the poll request).</p>
1377
- * </important>
1378
- * <p>
1379
- * <b>Access Control</b>
1380
- * </p>
1381
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1382
- * follows:</p>
1383
- * <ul>
1384
- * <li>
1385
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1386
- * only specified domains.</p>
1387
- * </li>
1388
- * <li>
1389
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1390
- * action.</p>
1391
- * </li>
1392
- * <li>
1393
- * <p>Constrain the <code>taskList.name</code> parameter by using a
1394
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
1395
- * action to access only certain task lists.</p>
1396
- * </li>
1397
- * </ul>
1398
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1399
- * parameter values fall outside the specified constraints, the action fails. The associated
1400
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1401
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1402
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1403
- */
1404
- public pollForActivityTask(
1405
- args: PollForActivityTaskCommandInput,
1406
- options?: __HttpHandlerOptions
1407
- ): Promise<PollForActivityTaskCommandOutput>;
1408
- public pollForActivityTask(
1409
- args: PollForActivityTaskCommandInput,
1410
- cb: (err: any, data?: PollForActivityTaskCommandOutput) => void
1411
- ): void;
1412
- public pollForActivityTask(
1413
- args: PollForActivityTaskCommandInput,
1414
- options: __HttpHandlerOptions,
1415
- cb: (err: any, data?: PollForActivityTaskCommandOutput) => void
1416
- ): void;
1417
- public pollForActivityTask(
1418
- args: PollForActivityTaskCommandInput,
1419
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PollForActivityTaskCommandOutput) => void),
1420
- cb?: (err: any, data?: PollForActivityTaskCommandOutput) => void
1421
- ): Promise<PollForActivityTaskCommandOutput> | void {
1422
- const command = new PollForActivityTaskCommand(args);
1423
- if (typeof optionsOrCb === "function") {
1424
- this.send(command, optionsOrCb);
1425
- } else if (typeof cb === "function") {
1426
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1427
- this.send(command, optionsOrCb || {}, cb);
1428
- } else {
1429
- return this.send(command, optionsOrCb);
1430
- }
1431
- }
1432
-
1433
- /**
1434
- * <p>Used by deciders to get a <a>DecisionTask</a> from the specified decision
1435
- * <code>taskList</code>. A decision task may be returned for any open workflow execution that
1436
- * is using the specified task list. The task includes a paginated view of the history of the
1437
- * workflow execution. The decider should use the workflow type and the history to determine how
1438
- * to properly handle the task.</p>
1439
- * <p>This action initiates a long poll, where the service holds the HTTP connection open and
1440
- * responds as soon a task becomes available. If no decision task is available in the specified
1441
- * task list before the timeout of 60 seconds expires, an empty result is returned. An empty
1442
- * result, in this context, means that a DecisionTask is returned, but that the value of
1443
- * taskToken is an empty string.</p>
1444
- * <important>
1445
- * <p>Deciders should set their client side socket timeout to at least 70 seconds (10
1446
- * seconds higher than the timeout).</p>
1447
- * </important>
1448
- * <important>
1449
- * <p>Because the number of workflow history events for a single workflow execution might
1450
- * be very large, the result returned might be split up across a number of pages. To retrieve
1451
- * subsequent pages, make additional calls to <code>PollForDecisionTask</code> using the
1452
- * <code>nextPageToken</code> returned by the initial call. Note that you do
1453
- * <i>not</i> call <code>GetWorkflowExecutionHistory</code> with this
1454
- * <code>nextPageToken</code>. Instead, call <code>PollForDecisionTask</code>
1455
- * again.</p>
1456
- * </important>
1457
- * <p>
1458
- * <b>Access Control</b>
1459
- * </p>
1460
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1461
- * follows:</p>
1462
- * <ul>
1463
- * <li>
1464
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1465
- * only specified domains.</p>
1466
- * </li>
1467
- * <li>
1468
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1469
- * action.</p>
1470
- * </li>
1471
- * <li>
1472
- * <p>Constrain the <code>taskList.name</code> parameter by using a
1473
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
1474
- * action to access only certain task lists.</p>
1475
- * </li>
1476
- * </ul>
1477
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1478
- * parameter values fall outside the specified constraints, the action fails. The associated
1479
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1480
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1481
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1482
- */
1483
- public pollForDecisionTask(
1484
- args: PollForDecisionTaskCommandInput,
1485
- options?: __HttpHandlerOptions
1486
- ): Promise<PollForDecisionTaskCommandOutput>;
1487
- public pollForDecisionTask(
1488
- args: PollForDecisionTaskCommandInput,
1489
- cb: (err: any, data?: PollForDecisionTaskCommandOutput) => void
1490
- ): void;
1491
- public pollForDecisionTask(
1492
- args: PollForDecisionTaskCommandInput,
1493
- options: __HttpHandlerOptions,
1494
- cb: (err: any, data?: PollForDecisionTaskCommandOutput) => void
1495
- ): void;
1496
- public pollForDecisionTask(
1497
- args: PollForDecisionTaskCommandInput,
1498
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PollForDecisionTaskCommandOutput) => void),
1499
- cb?: (err: any, data?: PollForDecisionTaskCommandOutput) => void
1500
- ): Promise<PollForDecisionTaskCommandOutput> | void {
1501
- const command = new PollForDecisionTaskCommand(args);
1502
- if (typeof optionsOrCb === "function") {
1503
- this.send(command, optionsOrCb);
1504
- } else if (typeof cb === "function") {
1505
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1506
- this.send(command, optionsOrCb || {}, cb);
1507
- } else {
1508
- return this.send(command, optionsOrCb);
1509
- }
1510
- }
1511
-
1512
- /**
1513
- * <p>Used by activity workers to report to the service that the <a>ActivityTask</a> represented by the specified <code>taskToken</code> is still making progress. The worker
1514
- * can also specify details of the progress, for example percent complete, using the
1515
- * <code>details</code> parameter. This action can also be used by the worker as a mechanism to
1516
- * check if cancellation is being requested for the activity task. If a cancellation is being
1517
- * attempted for the specified task, then the boolean <code>cancelRequested</code> flag returned
1518
- * by the service is set to <code>true</code>.</p>
1519
- * <p>This action resets the <code>taskHeartbeatTimeout</code> clock. The
1520
- * <code>taskHeartbeatTimeout</code> is specified in <a>RegisterActivityType</a>.</p>
1521
- * <p>This action doesn't in itself create an event in the workflow execution history.
1522
- * However, if the task times out, the workflow execution history contains a
1523
- * <code>ActivityTaskTimedOut</code> event that contains the information from the last
1524
- * heartbeat generated by the activity worker.</p>
1525
- * <note>
1526
- * <p>The <code>taskStartToCloseTimeout</code> of an activity type is the maximum duration
1527
- * of an activity task, regardless of the number of <a>RecordActivityTaskHeartbeat</a> requests received. The <code>taskStartToCloseTimeout</code> is also specified in <a>RegisterActivityType</a>.</p>
1528
- * </note>
1529
- * <note>
1530
- * <p>This operation is only useful for long-lived activities to report liveliness of the
1531
- * task and to determine if a cancellation is being attempted.</p>
1532
- * </note>
1533
- * <important>
1534
- * <p>If the <code>cancelRequested</code> flag returns <code>true</code>, a cancellation is
1535
- * being attempted. If the worker can cancel the activity, it should respond with <a>RespondActivityTaskCanceled</a>. Otherwise, it should ignore the cancellation
1536
- * request.</p>
1537
- * </important>
1538
- * <p>
1539
- * <b>Access Control</b>
1540
- * </p>
1541
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1542
- * follows:</p>
1543
- * <ul>
1544
- * <li>
1545
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1546
- * only specified domains.</p>
1547
- * </li>
1548
- * <li>
1549
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1550
- * action.</p>
1551
- * </li>
1552
- * <li>
1553
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1554
- * </li>
1555
- * </ul>
1556
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1557
- * parameter values fall outside the specified constraints, the action fails. The associated
1558
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1559
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1560
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1561
- */
1562
- public recordActivityTaskHeartbeat(
1563
- args: RecordActivityTaskHeartbeatCommandInput,
1564
- options?: __HttpHandlerOptions
1565
- ): Promise<RecordActivityTaskHeartbeatCommandOutput>;
1566
- public recordActivityTaskHeartbeat(
1567
- args: RecordActivityTaskHeartbeatCommandInput,
1568
- cb: (err: any, data?: RecordActivityTaskHeartbeatCommandOutput) => void
1569
- ): void;
1570
- public recordActivityTaskHeartbeat(
1571
- args: RecordActivityTaskHeartbeatCommandInput,
1572
- options: __HttpHandlerOptions,
1573
- cb: (err: any, data?: RecordActivityTaskHeartbeatCommandOutput) => void
1574
- ): void;
1575
- public recordActivityTaskHeartbeat(
1576
- args: RecordActivityTaskHeartbeatCommandInput,
1577
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RecordActivityTaskHeartbeatCommandOutput) => void),
1578
- cb?: (err: any, data?: RecordActivityTaskHeartbeatCommandOutput) => void
1579
- ): Promise<RecordActivityTaskHeartbeatCommandOutput> | void {
1580
- const command = new RecordActivityTaskHeartbeatCommand(args);
1581
- if (typeof optionsOrCb === "function") {
1582
- this.send(command, optionsOrCb);
1583
- } else if (typeof cb === "function") {
1584
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1585
- this.send(command, optionsOrCb || {}, cb);
1586
- } else {
1587
- return this.send(command, optionsOrCb);
1588
- }
1589
- }
1590
-
1591
- /**
1592
- * <p>Registers a new <i>activity type</i> along with its configuration
1593
- * settings in the specified domain.</p>
1594
- * <important>
1595
- * <p>A <code>TypeAlreadyExists</code> fault is returned if the type already exists in the
1596
- * domain. You cannot change any configuration settings of the type after its registration, and
1597
- * it must be registered as a new version.</p>
1598
- * </important>
1599
- * <p>
1600
- * <b>Access Control</b>
1601
- * </p>
1602
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1603
- * follows:</p>
1604
- * <ul>
1605
- * <li>
1606
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1607
- * only specified domains.</p>
1608
- * </li>
1609
- * <li>
1610
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1611
- * action.</p>
1612
- * </li>
1613
- * <li>
1614
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
1615
- * the appropriate keys.</p>
1616
- * <ul>
1617
- * <li>
1618
- * <p>
1619
- * <code>defaultTaskList.name</code>: String constraint. The key is
1620
- * <code>swf:defaultTaskList.name</code>.</p>
1621
- * </li>
1622
- * <li>
1623
- * <p>
1624
- * <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
1625
- * </li>
1626
- * <li>
1627
- * <p>
1628
- * <code>version</code>: String constraint. The key is
1629
- * <code>swf:version</code>.</p>
1630
- * </li>
1631
- * </ul>
1632
- * </li>
1633
- * </ul>
1634
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1635
- * parameter values fall outside the specified constraints, the action fails. The associated
1636
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1637
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1638
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1639
- */
1640
- public registerActivityType(
1641
- args: RegisterActivityTypeCommandInput,
1642
- options?: __HttpHandlerOptions
1643
- ): Promise<RegisterActivityTypeCommandOutput>;
1644
- public registerActivityType(
1645
- args: RegisterActivityTypeCommandInput,
1646
- cb: (err: any, data?: RegisterActivityTypeCommandOutput) => void
1647
- ): void;
1648
- public registerActivityType(
1649
- args: RegisterActivityTypeCommandInput,
1650
- options: __HttpHandlerOptions,
1651
- cb: (err: any, data?: RegisterActivityTypeCommandOutput) => void
1652
- ): void;
1653
- public registerActivityType(
1654
- args: RegisterActivityTypeCommandInput,
1655
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterActivityTypeCommandOutput) => void),
1656
- cb?: (err: any, data?: RegisterActivityTypeCommandOutput) => void
1657
- ): Promise<RegisterActivityTypeCommandOutput> | void {
1658
- const command = new RegisterActivityTypeCommand(args);
1659
- if (typeof optionsOrCb === "function") {
1660
- this.send(command, optionsOrCb);
1661
- } else if (typeof cb === "function") {
1662
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1663
- this.send(command, optionsOrCb || {}, cb);
1664
- } else {
1665
- return this.send(command, optionsOrCb);
1666
- }
1667
- }
1668
-
1669
- /**
1670
- * <p>Registers a new domain.</p>
1671
- * <p>
1672
- * <b>Access Control</b>
1673
- * </p>
1674
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1675
- * follows:</p>
1676
- * <ul>
1677
- * <li>
1678
- * <p>You cannot use an IAM policy to control domain access for this action. The name of
1679
- * the domain being registered is available as the resource of this action.</p>
1680
- * </li>
1681
- * <li>
1682
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1683
- * action.</p>
1684
- * </li>
1685
- * <li>
1686
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1687
- * </li>
1688
- * </ul>
1689
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1690
- * parameter values fall outside the specified constraints, the action fails. The associated
1691
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1692
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1693
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1694
- */
1695
- public registerDomain(
1696
- args: RegisterDomainCommandInput,
1697
- options?: __HttpHandlerOptions
1698
- ): Promise<RegisterDomainCommandOutput>;
1699
- public registerDomain(
1700
- args: RegisterDomainCommandInput,
1701
- cb: (err: any, data?: RegisterDomainCommandOutput) => void
1702
- ): void;
1703
- public registerDomain(
1704
- args: RegisterDomainCommandInput,
1705
- options: __HttpHandlerOptions,
1706
- cb: (err: any, data?: RegisterDomainCommandOutput) => void
1707
- ): void;
1708
- public registerDomain(
1709
- args: RegisterDomainCommandInput,
1710
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterDomainCommandOutput) => void),
1711
- cb?: (err: any, data?: RegisterDomainCommandOutput) => void
1712
- ): Promise<RegisterDomainCommandOutput> | void {
1713
- const command = new RegisterDomainCommand(args);
1714
- if (typeof optionsOrCb === "function") {
1715
- this.send(command, optionsOrCb);
1716
- } else if (typeof cb === "function") {
1717
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1718
- this.send(command, optionsOrCb || {}, cb);
1719
- } else {
1720
- return this.send(command, optionsOrCb);
1721
- }
1722
- }
1723
-
1724
- /**
1725
- * <p>Registers a new <i>workflow type</i> and its configuration settings in
1726
- * the specified domain.</p>
1727
- * <p>The retention period for the workflow history is set by the <a>RegisterDomain</a> action.</p>
1728
- * <important>
1729
- * <p>If the type already exists, then a <code>TypeAlreadyExists</code> fault is returned.
1730
- * You cannot change the configuration settings of a workflow type once it is registered and it
1731
- * must be registered as a new version.</p>
1732
- * </important>
1733
- * <p>
1734
- * <b>Access Control</b>
1735
- * </p>
1736
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1737
- * follows:</p>
1738
- * <ul>
1739
- * <li>
1740
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1741
- * only specified domains.</p>
1742
- * </li>
1743
- * <li>
1744
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1745
- * action.</p>
1746
- * </li>
1747
- * <li>
1748
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
1749
- * the appropriate keys.</p>
1750
- * <ul>
1751
- * <li>
1752
- * <p>
1753
- * <code>defaultTaskList.name</code>: String constraint. The key is
1754
- * <code>swf:defaultTaskList.name</code>.</p>
1755
- * </li>
1756
- * <li>
1757
- * <p>
1758
- * <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
1759
- * </li>
1760
- * <li>
1761
- * <p>
1762
- * <code>version</code>: String constraint. The key is
1763
- * <code>swf:version</code>.</p>
1764
- * </li>
1765
- * </ul>
1766
- * </li>
1767
- * </ul>
1768
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1769
- * parameter values fall outside the specified constraints, the action fails. The associated
1770
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1771
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1772
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1773
- */
1774
- public registerWorkflowType(
1775
- args: RegisterWorkflowTypeCommandInput,
1776
- options?: __HttpHandlerOptions
1777
- ): Promise<RegisterWorkflowTypeCommandOutput>;
1778
- public registerWorkflowType(
1779
- args: RegisterWorkflowTypeCommandInput,
1780
- cb: (err: any, data?: RegisterWorkflowTypeCommandOutput) => void
1781
- ): void;
1782
- public registerWorkflowType(
1783
- args: RegisterWorkflowTypeCommandInput,
1784
- options: __HttpHandlerOptions,
1785
- cb: (err: any, data?: RegisterWorkflowTypeCommandOutput) => void
1786
- ): void;
1787
- public registerWorkflowType(
1788
- args: RegisterWorkflowTypeCommandInput,
1789
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterWorkflowTypeCommandOutput) => void),
1790
- cb?: (err: any, data?: RegisterWorkflowTypeCommandOutput) => void
1791
- ): Promise<RegisterWorkflowTypeCommandOutput> | void {
1792
- const command = new RegisterWorkflowTypeCommand(args);
1793
- if (typeof optionsOrCb === "function") {
1794
- this.send(command, optionsOrCb);
1795
- } else if (typeof cb === "function") {
1796
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1797
- this.send(command, optionsOrCb || {}, cb);
1798
- } else {
1799
- return this.send(command, optionsOrCb);
1800
- }
1801
- }
1802
-
1803
- /**
1804
- * <p>Records a <code>WorkflowExecutionCancelRequested</code> event in the currently running
1805
- * workflow execution identified by the given domain, workflowId, and runId. This logically
1806
- * requests the cancellation of the workflow execution as a whole. It is up to the decider to
1807
- * take appropriate actions when it receives an execution history with this event.</p>
1808
- *
1809
- * <note>
1810
- * <p>If the runId isn't specified, the <code>WorkflowExecutionCancelRequested</code> event
1811
- * is recorded in the history of the current open workflow execution with the specified
1812
- * workflowId in the domain.</p>
1813
- * </note>
1814
- *
1815
- * <note>
1816
- * <p>Because this action allows the workflow to properly clean up and gracefully close, it
1817
- * should be used instead of <a>TerminateWorkflowExecution</a> when
1818
- * possible.</p>
1819
- * </note>
1820
- * <p>
1821
- * <b>Access Control</b>
1822
- * </p>
1823
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1824
- * follows:</p>
1825
- * <ul>
1826
- * <li>
1827
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1828
- * only specified domains.</p>
1829
- * </li>
1830
- * <li>
1831
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1832
- * action.</p>
1833
- * </li>
1834
- * <li>
1835
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1836
- * </li>
1837
- * </ul>
1838
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1839
- * parameter values fall outside the specified constraints, the action fails. The associated
1840
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1841
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1842
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1843
- */
1844
- public requestCancelWorkflowExecution(
1845
- args: RequestCancelWorkflowExecutionCommandInput,
1846
- options?: __HttpHandlerOptions
1847
- ): Promise<RequestCancelWorkflowExecutionCommandOutput>;
1848
- public requestCancelWorkflowExecution(
1849
- args: RequestCancelWorkflowExecutionCommandInput,
1850
- cb: (err: any, data?: RequestCancelWorkflowExecutionCommandOutput) => void
1851
- ): void;
1852
- public requestCancelWorkflowExecution(
1853
- args: RequestCancelWorkflowExecutionCommandInput,
1854
- options: __HttpHandlerOptions,
1855
- cb: (err: any, data?: RequestCancelWorkflowExecutionCommandOutput) => void
1856
- ): void;
1857
- public requestCancelWorkflowExecution(
1858
- args: RequestCancelWorkflowExecutionCommandInput,
1859
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RequestCancelWorkflowExecutionCommandOutput) => void),
1860
- cb?: (err: any, data?: RequestCancelWorkflowExecutionCommandOutput) => void
1861
- ): Promise<RequestCancelWorkflowExecutionCommandOutput> | void {
1862
- const command = new RequestCancelWorkflowExecutionCommand(args);
1863
- if (typeof optionsOrCb === "function") {
1864
- this.send(command, optionsOrCb);
1865
- } else if (typeof cb === "function") {
1866
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1867
- this.send(command, optionsOrCb || {}, cb);
1868
- } else {
1869
- return this.send(command, optionsOrCb);
1870
- }
1871
- }
1872
-
1873
- /**
1874
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
1875
- * by the <code>taskToken</code> was successfully canceled. Additional <code>details</code> can
1876
- * be provided using the <code>details</code> argument.</p>
1877
- *
1878
- * <p>These <code>details</code> (if provided) appear in the
1879
- * <code>ActivityTaskCanceled</code> event added to the workflow history.</p>
1880
- *
1881
- * <important>
1882
- * <p>Only use this operation if the <code>canceled</code> flag of a <a>RecordActivityTaskHeartbeat</a> request returns <code>true</code> and if the
1883
- * activity can be safely undone or abandoned.</p>
1884
- * </important>
1885
- *
1886
- * <p>A task is considered open from the time that it is scheduled until it is closed.
1887
- * Therefore a task is reported as open while a worker is processing it. A task is closed after
1888
- * it has been specified in a call to <a>RespondActivityTaskCompleted</a>,
1889
- * RespondActivityTaskCanceled, <a>RespondActivityTaskFailed</a>, or the task has
1890
- * <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
1891
- * out</a>.</p>
1892
- *
1893
- * <p>
1894
- * <b>Access Control</b>
1895
- * </p>
1896
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1897
- * follows:</p>
1898
- * <ul>
1899
- * <li>
1900
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1901
- * only specified domains.</p>
1902
- * </li>
1903
- * <li>
1904
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1905
- * action.</p>
1906
- * </li>
1907
- * <li>
1908
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1909
- * </li>
1910
- * </ul>
1911
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1912
- * parameter values fall outside the specified constraints, the action fails. The associated
1913
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1914
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1915
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1916
- */
1917
- public respondActivityTaskCanceled(
1918
- args: RespondActivityTaskCanceledCommandInput,
1919
- options?: __HttpHandlerOptions
1920
- ): Promise<RespondActivityTaskCanceledCommandOutput>;
1921
- public respondActivityTaskCanceled(
1922
- args: RespondActivityTaskCanceledCommandInput,
1923
- cb: (err: any, data?: RespondActivityTaskCanceledCommandOutput) => void
1924
- ): void;
1925
- public respondActivityTaskCanceled(
1926
- args: RespondActivityTaskCanceledCommandInput,
1927
- options: __HttpHandlerOptions,
1928
- cb: (err: any, data?: RespondActivityTaskCanceledCommandOutput) => void
1929
- ): void;
1930
- public respondActivityTaskCanceled(
1931
- args: RespondActivityTaskCanceledCommandInput,
1932
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RespondActivityTaskCanceledCommandOutput) => void),
1933
- cb?: (err: any, data?: RespondActivityTaskCanceledCommandOutput) => void
1934
- ): Promise<RespondActivityTaskCanceledCommandOutput> | void {
1935
- const command = new RespondActivityTaskCanceledCommand(args);
1936
- if (typeof optionsOrCb === "function") {
1937
- this.send(command, optionsOrCb);
1938
- } else if (typeof cb === "function") {
1939
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1940
- this.send(command, optionsOrCb || {}, cb);
1941
- } else {
1942
- return this.send(command, optionsOrCb);
1943
- }
1944
- }
1945
-
1946
- /**
1947
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
1948
- * by the <code>taskToken</code> completed successfully with a <code>result</code> (if provided).
1949
- * The <code>result</code> appears in the <code>ActivityTaskCompleted</code> event in the
1950
- * workflow history.</p>
1951
- *
1952
- * <important>
1953
- * <p>If the requested task doesn't complete successfully, use <a>RespondActivityTaskFailed</a> instead. If the worker finds that the task is
1954
- * canceled through the <code>canceled</code> flag returned by <a>RecordActivityTaskHeartbeat</a>, it should cancel the task, clean up and then call
1955
- * <a>RespondActivityTaskCanceled</a>.</p>
1956
- * </important>
1957
- *
1958
- * <p>A task is considered open from the time that it is scheduled until it is closed.
1959
- * Therefore a task is reported as open while a worker is processing it. A task is closed after
1960
- * it has been specified in a call to RespondActivityTaskCompleted, <a>RespondActivityTaskCanceled</a>, <a>RespondActivityTaskFailed</a>, or the
1961
- * task has <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
1962
- * out</a>.</p>
1963
- *
1964
- * <p>
1965
- * <b>Access Control</b>
1966
- * </p>
1967
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
1968
- * follows:</p>
1969
- * <ul>
1970
- * <li>
1971
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
1972
- * only specified domains.</p>
1973
- * </li>
1974
- * <li>
1975
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
1976
- * action.</p>
1977
- * </li>
1978
- * <li>
1979
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
1980
- * </li>
1981
- * </ul>
1982
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
1983
- * parameter values fall outside the specified constraints, the action fails. The associated
1984
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
1985
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
1986
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
1987
- */
1988
- public respondActivityTaskCompleted(
1989
- args: RespondActivityTaskCompletedCommandInput,
1990
- options?: __HttpHandlerOptions
1991
- ): Promise<RespondActivityTaskCompletedCommandOutput>;
1992
- public respondActivityTaskCompleted(
1993
- args: RespondActivityTaskCompletedCommandInput,
1994
- cb: (err: any, data?: RespondActivityTaskCompletedCommandOutput) => void
1995
- ): void;
1996
- public respondActivityTaskCompleted(
1997
- args: RespondActivityTaskCompletedCommandInput,
1998
- options: __HttpHandlerOptions,
1999
- cb: (err: any, data?: RespondActivityTaskCompletedCommandOutput) => void
2000
- ): void;
2001
- public respondActivityTaskCompleted(
2002
- args: RespondActivityTaskCompletedCommandInput,
2003
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RespondActivityTaskCompletedCommandOutput) => void),
2004
- cb?: (err: any, data?: RespondActivityTaskCompletedCommandOutput) => void
2005
- ): Promise<RespondActivityTaskCompletedCommandOutput> | void {
2006
- const command = new RespondActivityTaskCompletedCommand(args);
2007
- if (typeof optionsOrCb === "function") {
2008
- this.send(command, optionsOrCb);
2009
- } else if (typeof cb === "function") {
2010
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2011
- this.send(command, optionsOrCb || {}, cb);
2012
- } else {
2013
- return this.send(command, optionsOrCb);
2014
- }
2015
- }
2016
-
2017
- /**
2018
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
2019
- * by the <code>taskToken</code> has failed with <code>reason</code> (if specified). The
2020
- * <code>reason</code> and <code>details</code> appear in the <code>ActivityTaskFailed</code>
2021
- * event added to the workflow history.</p>
2022
- *
2023
- * <p>A task is considered open from the time that it is scheduled until it is closed.
2024
- * Therefore a task is reported as open while a worker is processing it. A task is closed after
2025
- * it has been specified in a call to <a>RespondActivityTaskCompleted</a>, <a>RespondActivityTaskCanceled</a>, RespondActivityTaskFailed, or the task has <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
2026
- * out</a>.</p>
2027
- *
2028
- * <p>
2029
- * <b>Access Control</b>
2030
- * </p>
2031
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2032
- * follows:</p>
2033
- * <ul>
2034
- * <li>
2035
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2036
- * only specified domains.</p>
2037
- * </li>
2038
- * <li>
2039
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2040
- * action.</p>
2041
- * </li>
2042
- * <li>
2043
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
2044
- * </li>
2045
- * </ul>
2046
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2047
- * parameter values fall outside the specified constraints, the action fails. The associated
2048
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2049
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2050
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2051
- */
2052
- public respondActivityTaskFailed(
2053
- args: RespondActivityTaskFailedCommandInput,
2054
- options?: __HttpHandlerOptions
2055
- ): Promise<RespondActivityTaskFailedCommandOutput>;
2056
- public respondActivityTaskFailed(
2057
- args: RespondActivityTaskFailedCommandInput,
2058
- cb: (err: any, data?: RespondActivityTaskFailedCommandOutput) => void
2059
- ): void;
2060
- public respondActivityTaskFailed(
2061
- args: RespondActivityTaskFailedCommandInput,
2062
- options: __HttpHandlerOptions,
2063
- cb: (err: any, data?: RespondActivityTaskFailedCommandOutput) => void
2064
- ): void;
2065
- public respondActivityTaskFailed(
2066
- args: RespondActivityTaskFailedCommandInput,
2067
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RespondActivityTaskFailedCommandOutput) => void),
2068
- cb?: (err: any, data?: RespondActivityTaskFailedCommandOutput) => void
2069
- ): Promise<RespondActivityTaskFailedCommandOutput> | void {
2070
- const command = new RespondActivityTaskFailedCommand(args);
2071
- if (typeof optionsOrCb === "function") {
2072
- this.send(command, optionsOrCb);
2073
- } else if (typeof cb === "function") {
2074
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2075
- this.send(command, optionsOrCb || {}, cb);
2076
- } else {
2077
- return this.send(command, optionsOrCb);
2078
- }
2079
- }
2080
-
2081
- /**
2082
- * <p>Used by deciders to tell the service that the <a>DecisionTask</a> identified
2083
- * by the <code>taskToken</code> has successfully completed. The <code>decisions</code> argument
2084
- * specifies the list of decisions made while processing the task.</p>
2085
- *
2086
- * <p>A <code>DecisionTaskCompleted</code> event is added to the workflow history. The
2087
- * <code>executionContext</code> specified is attached to the event in the workflow execution
2088
- * history.</p>
2089
- *
2090
- * <p>
2091
- * <b>Access Control</b>
2092
- * </p>
2093
- *
2094
- * <p>If an IAM policy grants permission to use <code>RespondDecisionTaskCompleted</code>, it
2095
- * can express permissions for the list of decisions in the <code>decisions</code> parameter.
2096
- * Each of the decisions has one or more parameters, much like a regular API call. To allow for
2097
- * policies to be as readable as possible, you can express permissions on decisions as if they
2098
- * were actual API calls, including applying conditions to some parameters. For more information,
2099
- * see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using
2100
- * IAM to Manage Access to Amazon SWF Workflows</a> in the
2101
- * <i>Amazon SWF Developer Guide</i>.</p>
2102
- */
2103
- public respondDecisionTaskCompleted(
2104
- args: RespondDecisionTaskCompletedCommandInput,
2105
- options?: __HttpHandlerOptions
2106
- ): Promise<RespondDecisionTaskCompletedCommandOutput>;
2107
- public respondDecisionTaskCompleted(
2108
- args: RespondDecisionTaskCompletedCommandInput,
2109
- cb: (err: any, data?: RespondDecisionTaskCompletedCommandOutput) => void
2110
- ): void;
2111
- public respondDecisionTaskCompleted(
2112
- args: RespondDecisionTaskCompletedCommandInput,
2113
- options: __HttpHandlerOptions,
2114
- cb: (err: any, data?: RespondDecisionTaskCompletedCommandOutput) => void
2115
- ): void;
2116
- public respondDecisionTaskCompleted(
2117
- args: RespondDecisionTaskCompletedCommandInput,
2118
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RespondDecisionTaskCompletedCommandOutput) => void),
2119
- cb?: (err: any, data?: RespondDecisionTaskCompletedCommandOutput) => void
2120
- ): Promise<RespondDecisionTaskCompletedCommandOutput> | void {
2121
- const command = new RespondDecisionTaskCompletedCommand(args);
2122
- if (typeof optionsOrCb === "function") {
2123
- this.send(command, optionsOrCb);
2124
- } else if (typeof cb === "function") {
2125
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2126
- this.send(command, optionsOrCb || {}, cb);
2127
- } else {
2128
- return this.send(command, optionsOrCb);
2129
- }
2130
- }
2131
-
2132
- /**
2133
- * <p>Records a <code>WorkflowExecutionSignaled</code> event in the workflow execution
2134
- * history and creates a decision task for the workflow execution identified by the given domain,
2135
- * workflowId and runId. The event is recorded with the specified user defined signalName and
2136
- * input (if provided).</p>
2137
- *
2138
- * <note>
2139
- * <p>If a runId isn't specified, then the <code>WorkflowExecutionSignaled</code> event is
2140
- * recorded in the history of the current open workflow with the matching workflowId in the
2141
- * domain.</p>
2142
- * </note>
2143
- *
2144
- * <note>
2145
- * <p>If the specified workflow execution isn't open, this method fails with
2146
- * <code>UnknownResource</code>.</p>
2147
- * </note>
2148
- *
2149
- * <p>
2150
- * <b>Access Control</b>
2151
- * </p>
2152
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2153
- * follows:</p>
2154
- * <ul>
2155
- * <li>
2156
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2157
- * only specified domains.</p>
2158
- * </li>
2159
- * <li>
2160
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2161
- * action.</p>
2162
- * </li>
2163
- * <li>
2164
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
2165
- * </li>
2166
- * </ul>
2167
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2168
- * parameter values fall outside the specified constraints, the action fails. The associated
2169
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2170
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2171
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2172
- */
2173
- public signalWorkflowExecution(
2174
- args: SignalWorkflowExecutionCommandInput,
2175
- options?: __HttpHandlerOptions
2176
- ): Promise<SignalWorkflowExecutionCommandOutput>;
2177
- public signalWorkflowExecution(
2178
- args: SignalWorkflowExecutionCommandInput,
2179
- cb: (err: any, data?: SignalWorkflowExecutionCommandOutput) => void
2180
- ): void;
2181
- public signalWorkflowExecution(
2182
- args: SignalWorkflowExecutionCommandInput,
2183
- options: __HttpHandlerOptions,
2184
- cb: (err: any, data?: SignalWorkflowExecutionCommandOutput) => void
2185
- ): void;
2186
- public signalWorkflowExecution(
2187
- args: SignalWorkflowExecutionCommandInput,
2188
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SignalWorkflowExecutionCommandOutput) => void),
2189
- cb?: (err: any, data?: SignalWorkflowExecutionCommandOutput) => void
2190
- ): Promise<SignalWorkflowExecutionCommandOutput> | void {
2191
- const command = new SignalWorkflowExecutionCommand(args);
2192
- if (typeof optionsOrCb === "function") {
2193
- this.send(command, optionsOrCb);
2194
- } else if (typeof cb === "function") {
2195
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2196
- this.send(command, optionsOrCb || {}, cb);
2197
- } else {
2198
- return this.send(command, optionsOrCb);
2199
- }
2200
- }
2201
-
2202
- /**
2203
- * <p>Starts an execution of the workflow type in the specified domain using the provided
2204
- * <code>workflowId</code> and input data.</p>
2205
- *
2206
- * <p>This action returns the newly started workflow execution.</p>
2207
- *
2208
- * <p>
2209
- * <b>Access Control</b>
2210
- * </p>
2211
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2212
- * follows:</p>
2213
- * <ul>
2214
- * <li>
2215
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2216
- * only specified domains.</p>
2217
- * </li>
2218
- * <li>
2219
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2220
- * action.</p>
2221
- * </li>
2222
- * <li>
2223
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
2224
- * the appropriate keys.</p>
2225
- * <ul>
2226
- * <li>
2227
- * <p>
2228
- * <code>tagList.member.0</code>: The key is <code>swf:tagList.member.0</code>.</p>
2229
- * </li>
2230
- * <li>
2231
- * <p>
2232
- * <code>tagList.member.1</code>: The key is <code>swf:tagList.member.1</code>.</p>
2233
- * </li>
2234
- * <li>
2235
- * <p>
2236
- * <code>tagList.member.2</code>: The key is <code>swf:tagList.member.2</code>.</p>
2237
- * </li>
2238
- * <li>
2239
- * <p>
2240
- * <code>tagList.member.3</code>: The key is <code>swf:tagList.member.3</code>.</p>
2241
- * </li>
2242
- * <li>
2243
- * <p>
2244
- * <code>tagList.member.4</code>: The key is <code>swf:tagList.member.4</code>.</p>
2245
- * </li>
2246
- * <li>
2247
- * <p>
2248
- * <code>taskList</code>: String constraint. The key is
2249
- * <code>swf:taskList.name</code>.</p>
2250
- * </li>
2251
- * <li>
2252
- * <p>
2253
- * <code>workflowType.name</code>: String constraint. The key is
2254
- * <code>swf:workflowType.name</code>.</p>
2255
- * </li>
2256
- * <li>
2257
- * <p>
2258
- * <code>workflowType.version</code>: String constraint. The key is
2259
- * <code>swf:workflowType.version</code>.</p>
2260
- * </li>
2261
- * </ul>
2262
- * </li>
2263
- * </ul>
2264
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2265
- * parameter values fall outside the specified constraints, the action fails. The associated
2266
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2267
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2268
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2269
- */
2270
- public startWorkflowExecution(
2271
- args: StartWorkflowExecutionCommandInput,
2272
- options?: __HttpHandlerOptions
2273
- ): Promise<StartWorkflowExecutionCommandOutput>;
2274
- public startWorkflowExecution(
2275
- args: StartWorkflowExecutionCommandInput,
2276
- cb: (err: any, data?: StartWorkflowExecutionCommandOutput) => void
2277
- ): void;
2278
- public startWorkflowExecution(
2279
- args: StartWorkflowExecutionCommandInput,
2280
- options: __HttpHandlerOptions,
2281
- cb: (err: any, data?: StartWorkflowExecutionCommandOutput) => void
2282
- ): void;
2283
- public startWorkflowExecution(
2284
- args: StartWorkflowExecutionCommandInput,
2285
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartWorkflowExecutionCommandOutput) => void),
2286
- cb?: (err: any, data?: StartWorkflowExecutionCommandOutput) => void
2287
- ): Promise<StartWorkflowExecutionCommandOutput> | void {
2288
- const command = new StartWorkflowExecutionCommand(args);
2289
- if (typeof optionsOrCb === "function") {
2290
- this.send(command, optionsOrCb);
2291
- } else if (typeof cb === "function") {
2292
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2293
- this.send(command, optionsOrCb || {}, cb);
2294
- } else {
2295
- return this.send(command, optionsOrCb);
2296
- }
2297
- }
2298
-
2299
- /**
2300
- * <p>Add a tag to a Amazon SWF domain.</p>
2301
- * <note>
2302
- * <p>Amazon SWF supports a maximum of 50 tags per resource.</p>
2303
- * </note>
2304
- */
2305
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
2306
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
2307
- public tagResource(
2308
- args: TagResourceCommandInput,
2309
- options: __HttpHandlerOptions,
2310
- cb: (err: any, data?: TagResourceCommandOutput) => void
2311
- ): void;
2312
- public tagResource(
2313
- args: TagResourceCommandInput,
2314
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
2315
- cb?: (err: any, data?: TagResourceCommandOutput) => void
2316
- ): Promise<TagResourceCommandOutput> | void {
2317
- const command = new TagResourceCommand(args);
2318
- if (typeof optionsOrCb === "function") {
2319
- this.send(command, optionsOrCb);
2320
- } else if (typeof cb === "function") {
2321
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2322
- this.send(command, optionsOrCb || {}, cb);
2323
- } else {
2324
- return this.send(command, optionsOrCb);
2325
- }
2326
- }
2327
-
2328
- /**
2329
- * <p>Records a <code>WorkflowExecutionTerminated</code> event and forces closure of the
2330
- * workflow execution identified by the given domain, runId, and workflowId. The child policy,
2331
- * registered with the workflow type or specified when starting this execution, is applied to any
2332
- * open child workflow executions of this workflow execution.</p>
2333
- *
2334
- * <important>
2335
- * <p>If the identified workflow execution was in progress, it is terminated
2336
- * immediately.</p>
2337
- * </important>
2338
- *
2339
- * <note>
2340
- * <p>If a runId isn't specified, then the <code>WorkflowExecutionTerminated</code> event
2341
- * is recorded in the history of the current open workflow with the matching workflowId in the
2342
- * domain.</p>
2343
- * </note>
2344
- *
2345
- * <note>
2346
- * <p>You should consider using <a>RequestCancelWorkflowExecution</a> action
2347
- * instead because it allows the workflow to gracefully close while <a>TerminateWorkflowExecution</a> doesn't.</p>
2348
- * </note>
2349
- *
2350
- * <p>
2351
- * <b>Access Control</b>
2352
- * </p>
2353
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2354
- * follows:</p>
2355
- * <ul>
2356
- * <li>
2357
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2358
- * only specified domains.</p>
2359
- * </li>
2360
- * <li>
2361
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2362
- * action.</p>
2363
- * </li>
2364
- * <li>
2365
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
2366
- * </li>
2367
- * </ul>
2368
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2369
- * parameter values fall outside the specified constraints, the action fails. The associated
2370
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2371
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2372
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2373
- */
2374
- public terminateWorkflowExecution(
2375
- args: TerminateWorkflowExecutionCommandInput,
2376
- options?: __HttpHandlerOptions
2377
- ): Promise<TerminateWorkflowExecutionCommandOutput>;
2378
- public terminateWorkflowExecution(
2379
- args: TerminateWorkflowExecutionCommandInput,
2380
- cb: (err: any, data?: TerminateWorkflowExecutionCommandOutput) => void
2381
- ): void;
2382
- public terminateWorkflowExecution(
2383
- args: TerminateWorkflowExecutionCommandInput,
2384
- options: __HttpHandlerOptions,
2385
- cb: (err: any, data?: TerminateWorkflowExecutionCommandOutput) => void
2386
- ): void;
2387
- public terminateWorkflowExecution(
2388
- args: TerminateWorkflowExecutionCommandInput,
2389
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TerminateWorkflowExecutionCommandOutput) => void),
2390
- cb?: (err: any, data?: TerminateWorkflowExecutionCommandOutput) => void
2391
- ): Promise<TerminateWorkflowExecutionCommandOutput> | void {
2392
- const command = new TerminateWorkflowExecutionCommand(args);
2393
- if (typeof optionsOrCb === "function") {
2394
- this.send(command, optionsOrCb);
2395
- } else if (typeof cb === "function") {
2396
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2397
- this.send(command, optionsOrCb || {}, cb);
2398
- } else {
2399
- return this.send(command, optionsOrCb);
2400
- }
2401
- }
2402
-
2403
- /**
2404
- * <p>Undeprecates a previously deprecated <i>activity type</i>. After an activity type has
2405
- * been undeprecated, you can create new tasks of that activity type.</p>
2406
- * <note>
2407
- * <p>This operation is eventually consistent. The results are best effort and may not
2408
- * exactly reflect recent updates and changes.</p>
2409
- * </note>
2410
- * <p>
2411
- * <b>Access Control</b>
2412
- * </p>
2413
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2414
- * follows:</p>
2415
- * <ul>
2416
- * <li>
2417
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2418
- * only specified domains.</p>
2419
- * </li>
2420
- * <li>
2421
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2422
- * action.</p>
2423
- * </li>
2424
- * <li>
2425
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
2426
- * the appropriate keys.</p>
2427
- * <ul>
2428
- * <li>
2429
- * <p>
2430
- * <code>activityType.name</code>: String constraint. The key is
2431
- * <code>swf:activityType.name</code>.</p>
2432
- * </li>
2433
- * <li>
2434
- * <p>
2435
- * <code>activityType.version</code>: String constraint. The key is
2436
- * <code>swf:activityType.version</code>.</p>
2437
- * </li>
2438
- * </ul>
2439
- * </li>
2440
- * </ul>
2441
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2442
- * parameter values fall outside the specified constraints, the action fails. The associated
2443
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2444
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2445
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2446
- */
2447
- public undeprecateActivityType(
2448
- args: UndeprecateActivityTypeCommandInput,
2449
- options?: __HttpHandlerOptions
2450
- ): Promise<UndeprecateActivityTypeCommandOutput>;
2451
- public undeprecateActivityType(
2452
- args: UndeprecateActivityTypeCommandInput,
2453
- cb: (err: any, data?: UndeprecateActivityTypeCommandOutput) => void
2454
- ): void;
2455
- public undeprecateActivityType(
2456
- args: UndeprecateActivityTypeCommandInput,
2457
- options: __HttpHandlerOptions,
2458
- cb: (err: any, data?: UndeprecateActivityTypeCommandOutput) => void
2459
- ): void;
2460
- public undeprecateActivityType(
2461
- args: UndeprecateActivityTypeCommandInput,
2462
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UndeprecateActivityTypeCommandOutput) => void),
2463
- cb?: (err: any, data?: UndeprecateActivityTypeCommandOutput) => void
2464
- ): Promise<UndeprecateActivityTypeCommandOutput> | void {
2465
- const command = new UndeprecateActivityTypeCommand(args);
2466
- if (typeof optionsOrCb === "function") {
2467
- this.send(command, optionsOrCb);
2468
- } else if (typeof cb === "function") {
2469
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2470
- this.send(command, optionsOrCb || {}, cb);
2471
- } else {
2472
- return this.send(command, optionsOrCb);
2473
- }
2474
- }
2475
-
2476
- /**
2477
- * <p>Undeprecates a previously deprecated domain. After a domain has been undeprecated it can be used
2478
- * to create new workflow executions or register new types.</p>
2479
- * <note>
2480
- * <p>This operation is eventually consistent. The results are best effort and may not
2481
- * exactly reflect recent updates and changes.</p>
2482
- * </note>
2483
- * <p>
2484
- * <b>Access Control</b>
2485
- * </p>
2486
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2487
- * follows:</p>
2488
- * <ul>
2489
- * <li>
2490
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2491
- * only specified domains.</p>
2492
- * </li>
2493
- * <li>
2494
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2495
- * action.</p>
2496
- * </li>
2497
- * <li>
2498
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
2499
- * </li>
2500
- * </ul>
2501
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2502
- * parameter values fall outside the specified constraints, the action fails. The associated
2503
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2504
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2505
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2506
- */
2507
- public undeprecateDomain(
2508
- args: UndeprecateDomainCommandInput,
2509
- options?: __HttpHandlerOptions
2510
- ): Promise<UndeprecateDomainCommandOutput>;
2511
- public undeprecateDomain(
2512
- args: UndeprecateDomainCommandInput,
2513
- cb: (err: any, data?: UndeprecateDomainCommandOutput) => void
2514
- ): void;
2515
- public undeprecateDomain(
2516
- args: UndeprecateDomainCommandInput,
2517
- options: __HttpHandlerOptions,
2518
- cb: (err: any, data?: UndeprecateDomainCommandOutput) => void
2519
- ): void;
2520
- public undeprecateDomain(
2521
- args: UndeprecateDomainCommandInput,
2522
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UndeprecateDomainCommandOutput) => void),
2523
- cb?: (err: any, data?: UndeprecateDomainCommandOutput) => void
2524
- ): Promise<UndeprecateDomainCommandOutput> | void {
2525
- const command = new UndeprecateDomainCommand(args);
2526
- if (typeof optionsOrCb === "function") {
2527
- this.send(command, optionsOrCb);
2528
- } else if (typeof cb === "function") {
2529
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2530
- this.send(command, optionsOrCb || {}, cb);
2531
- } else {
2532
- return this.send(command, optionsOrCb);
2533
- }
2534
- }
2535
-
2536
- /**
2537
- * <p>Undeprecates a previously deprecated <i>workflow type</i>. After a workflow type has
2538
- * been undeprecated, you can create new executions of that type. </p>
2539
- * <note>
2540
- * <p>This operation is eventually consistent. The results are best effort and may not
2541
- * exactly reflect recent updates and changes.</p>
2542
- * </note>
2543
- * <p>
2544
- * <b>Access Control</b>
2545
- * </p>
2546
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
2547
- * follows:</p>
2548
- * <ul>
2549
- * <li>
2550
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
2551
- * only specified domains.</p>
2552
- * </li>
2553
- * <li>
2554
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
2555
- * action.</p>
2556
- * </li>
2557
- * <li>
2558
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
2559
- * the appropriate keys.</p>
2560
- * <ul>
2561
- * <li>
2562
- * <p>
2563
- * <code>workflowType.name</code>: String constraint. The key is
2564
- * <code>swf:workflowType.name</code>.</p>
2565
- * </li>
2566
- * <li>
2567
- * <p>
2568
- * <code>workflowType.version</code>: String constraint. The key is
2569
- * <code>swf:workflowType.version</code>.</p>
2570
- * </li>
2571
- * </ul>
2572
- * </li>
2573
- * </ul>
2574
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
2575
- * parameter values fall outside the specified constraints, the action fails. The associated
2576
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
2577
- * For details and example IAM policies, see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using IAM to Manage Access to Amazon SWF
2578
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
2579
- */
2580
- public undeprecateWorkflowType(
2581
- args: UndeprecateWorkflowTypeCommandInput,
2582
- options?: __HttpHandlerOptions
2583
- ): Promise<UndeprecateWorkflowTypeCommandOutput>;
2584
- public undeprecateWorkflowType(
2585
- args: UndeprecateWorkflowTypeCommandInput,
2586
- cb: (err: any, data?: UndeprecateWorkflowTypeCommandOutput) => void
2587
- ): void;
2588
- public undeprecateWorkflowType(
2589
- args: UndeprecateWorkflowTypeCommandInput,
2590
- options: __HttpHandlerOptions,
2591
- cb: (err: any, data?: UndeprecateWorkflowTypeCommandOutput) => void
2592
- ): void;
2593
- public undeprecateWorkflowType(
2594
- args: UndeprecateWorkflowTypeCommandInput,
2595
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UndeprecateWorkflowTypeCommandOutput) => void),
2596
- cb?: (err: any, data?: UndeprecateWorkflowTypeCommandOutput) => void
2597
- ): Promise<UndeprecateWorkflowTypeCommandOutput> | void {
2598
- const command = new UndeprecateWorkflowTypeCommand(args);
2599
- if (typeof optionsOrCb === "function") {
2600
- this.send(command, optionsOrCb);
2601
- } else if (typeof cb === "function") {
2602
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2603
- this.send(command, optionsOrCb || {}, cb);
2604
- } else {
2605
- return this.send(command, optionsOrCb);
2606
- }
2607
- }
2608
-
2609
- /**
2610
- * <p>Remove a tag from a Amazon SWF domain.</p>
2611
- */
2612
- public untagResource(
2613
- args: UntagResourceCommandInput,
2614
- options?: __HttpHandlerOptions
2615
- ): Promise<UntagResourceCommandOutput>;
2616
- public untagResource(
2617
- args: UntagResourceCommandInput,
2618
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2619
- ): void;
2620
- public untagResource(
2621
- args: UntagResourceCommandInput,
2622
- options: __HttpHandlerOptions,
2623
- cb: (err: any, data?: UntagResourceCommandOutput) => void
2624
- ): void;
2625
- public untagResource(
2626
- args: UntagResourceCommandInput,
2627
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
2628
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
2629
- ): Promise<UntagResourceCommandOutput> | void {
2630
- const command = new UntagResourceCommand(args);
2631
- if (typeof optionsOrCb === "function") {
2632
- this.send(command, optionsOrCb);
2633
- } else if (typeof cb === "function") {
2634
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2635
- this.send(command, optionsOrCb || {}, cb);
2636
- } else {
2637
- return this.send(command, optionsOrCb);
2638
- }
2639
- }
2640
- }