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