@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
@@ -1,140 +0,0 @@
1
- import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
2
- import { RegisterActivityTypeInput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0RegisterActivityTypeCommand,
5
- serializeAws_json1_0RegisterActivityTypeCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface RegisterActivityTypeCommandInput extends RegisterActivityTypeInput {}
21
- export interface RegisterActivityTypeCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * <p>Registers a new <i>activity type</i> along with its configuration
25
- * settings in the specified domain.</p>
26
- * <important>
27
- * <p>A <code>TypeAlreadyExists</code> fault is returned if the type already exists in the
28
- * domain. You cannot change any configuration settings of the type after its registration, and
29
- * it must be registered as a new version.</p>
30
- * </important>
31
- * <p>
32
- * <b>Access Control</b>
33
- * </p>
34
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
35
- * follows:</p>
36
- * <ul>
37
- * <li>
38
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
39
- * only specified domains.</p>
40
- * </li>
41
- * <li>
42
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
43
- * action.</p>
44
- * </li>
45
- * <li>
46
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
47
- * the appropriate keys.</p>
48
- * <ul>
49
- * <li>
50
- * <p>
51
- * <code>defaultTaskList.name</code>: String constraint. The key is
52
- * <code>swf:defaultTaskList.name</code>.</p>
53
- * </li>
54
- * <li>
55
- * <p>
56
- * <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
57
- * </li>
58
- * <li>
59
- * <p>
60
- * <code>version</code>: String constraint. The key is
61
- * <code>swf:version</code>.</p>
62
- * </li>
63
- * </ul>
64
- * </li>
65
- * </ul>
66
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
67
- * parameter values fall outside the specified constraints, the action fails. The associated
68
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
69
- * 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
70
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
71
- * @example
72
- * Use a bare-bones client and the command you need to make an API call.
73
- * ```javascript
74
- * import { SWFClient, RegisterActivityTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
75
- * // const { SWFClient, RegisterActivityTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
76
- * const client = new SWFClient(config);
77
- * const command = new RegisterActivityTypeCommand(input);
78
- * const response = await client.send(command);
79
- * ```
80
- *
81
- * @see {@link RegisterActivityTypeCommandInput} for command's `input` shape.
82
- * @see {@link RegisterActivityTypeCommandOutput} for command's `response` shape.
83
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
84
- *
85
- */
86
- export class RegisterActivityTypeCommand extends $Command<
87
- RegisterActivityTypeCommandInput,
88
- RegisterActivityTypeCommandOutput,
89
- SWFClientResolvedConfig
90
- > {
91
- // Start section: command_properties
92
- // End section: command_properties
93
-
94
- constructor(readonly input: RegisterActivityTypeCommandInput) {
95
- // Start section: command_constructor
96
- super();
97
- // End section: command_constructor
98
- }
99
-
100
- /**
101
- * @internal
102
- */
103
- resolveMiddleware(
104
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
105
- configuration: SWFClientResolvedConfig,
106
- options?: __HttpHandlerOptions
107
- ): Handler<RegisterActivityTypeCommandInput, RegisterActivityTypeCommandOutput> {
108
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
109
-
110
- const stack = clientStack.concat(this.middlewareStack);
111
-
112
- const { logger } = configuration;
113
- const clientName = "SWFClient";
114
- const commandName = "RegisterActivityTypeCommand";
115
- const handlerExecutionContext: HandlerExecutionContext = {
116
- logger,
117
- clientName,
118
- commandName,
119
- inputFilterSensitiveLog: RegisterActivityTypeInput.filterSensitiveLog,
120
- outputFilterSensitiveLog: (output: any) => output,
121
- };
122
- const { requestHandler } = configuration;
123
- return stack.resolve(
124
- (request: FinalizeHandlerArguments<any>) =>
125
- requestHandler.handle(request.request as __HttpRequest, options || {}),
126
- handlerExecutionContext
127
- );
128
- }
129
-
130
- private serialize(input: RegisterActivityTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
131
- return serializeAws_json1_0RegisterActivityTypeCommand(input, context);
132
- }
133
-
134
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterActivityTypeCommandOutput> {
135
- return deserializeAws_json1_0RegisterActivityTypeCommand(output, context);
136
- }
137
-
138
- // Start section: command_body_extra
139
- // End section: command_body_extra
140
- }
@@ -1,117 +0,0 @@
1
- import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
2
- import { RegisterDomainInput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0RegisterDomainCommand,
5
- serializeAws_json1_0RegisterDomainCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface RegisterDomainCommandInput extends RegisterDomainInput {}
21
- export interface RegisterDomainCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * <p>Registers a new domain.</p>
25
- * <p>
26
- * <b>Access Control</b>
27
- * </p>
28
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
29
- * follows:</p>
30
- * <ul>
31
- * <li>
32
- * <p>You cannot use an IAM policy to control domain access for this action. The name of
33
- * the domain being registered is available as the resource of this action.</p>
34
- * </li>
35
- * <li>
36
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
37
- * action.</p>
38
- * </li>
39
- * <li>
40
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
41
- * </li>
42
- * </ul>
43
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
44
- * parameter values fall outside the specified constraints, the action fails. The associated
45
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
46
- * 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
47
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
48
- * @example
49
- * Use a bare-bones client and the command you need to make an API call.
50
- * ```javascript
51
- * import { SWFClient, RegisterDomainCommand } from "@aws-sdk/client-swf"; // ES Modules import
52
- * // const { SWFClient, RegisterDomainCommand } = require("@aws-sdk/client-swf"); // CommonJS import
53
- * const client = new SWFClient(config);
54
- * const command = new RegisterDomainCommand(input);
55
- * const response = await client.send(command);
56
- * ```
57
- *
58
- * @see {@link RegisterDomainCommandInput} for command's `input` shape.
59
- * @see {@link RegisterDomainCommandOutput} for command's `response` shape.
60
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
61
- *
62
- */
63
- export class RegisterDomainCommand extends $Command<
64
- RegisterDomainCommandInput,
65
- RegisterDomainCommandOutput,
66
- SWFClientResolvedConfig
67
- > {
68
- // Start section: command_properties
69
- // End section: command_properties
70
-
71
- constructor(readonly input: RegisterDomainCommandInput) {
72
- // Start section: command_constructor
73
- super();
74
- // End section: command_constructor
75
- }
76
-
77
- /**
78
- * @internal
79
- */
80
- resolveMiddleware(
81
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
82
- configuration: SWFClientResolvedConfig,
83
- options?: __HttpHandlerOptions
84
- ): Handler<RegisterDomainCommandInput, RegisterDomainCommandOutput> {
85
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
86
-
87
- const stack = clientStack.concat(this.middlewareStack);
88
-
89
- const { logger } = configuration;
90
- const clientName = "SWFClient";
91
- const commandName = "RegisterDomainCommand";
92
- const handlerExecutionContext: HandlerExecutionContext = {
93
- logger,
94
- clientName,
95
- commandName,
96
- inputFilterSensitiveLog: RegisterDomainInput.filterSensitiveLog,
97
- outputFilterSensitiveLog: (output: any) => output,
98
- };
99
- const { requestHandler } = configuration;
100
- return stack.resolve(
101
- (request: FinalizeHandlerArguments<any>) =>
102
- requestHandler.handle(request.request as __HttpRequest, options || {}),
103
- handlerExecutionContext
104
- );
105
- }
106
-
107
- private serialize(input: RegisterDomainCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
108
- return serializeAws_json1_0RegisterDomainCommand(input, context);
109
- }
110
-
111
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterDomainCommandOutput> {
112
- return deserializeAws_json1_0RegisterDomainCommand(output, context);
113
- }
114
-
115
- // Start section: command_body_extra
116
- // End section: command_body_extra
117
- }
@@ -1,141 +0,0 @@
1
- import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
2
- import { RegisterWorkflowTypeInput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0RegisterWorkflowTypeCommand,
5
- serializeAws_json1_0RegisterWorkflowTypeCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface RegisterWorkflowTypeCommandInput extends RegisterWorkflowTypeInput {}
21
- export interface RegisterWorkflowTypeCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * <p>Registers a new <i>workflow type</i> and its configuration settings in
25
- * the specified domain.</p>
26
- * <p>The retention period for the workflow history is set by the <a>RegisterDomain</a> action.</p>
27
- * <important>
28
- * <p>If the type already exists, then a <code>TypeAlreadyExists</code> fault is returned.
29
- * You cannot change the configuration settings of a workflow type once it is registered and it
30
- * must be registered as a new version.</p>
31
- * </important>
32
- * <p>
33
- * <b>Access Control</b>
34
- * </p>
35
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
36
- * follows:</p>
37
- * <ul>
38
- * <li>
39
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
40
- * only specified domains.</p>
41
- * </li>
42
- * <li>
43
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
44
- * action.</p>
45
- * </li>
46
- * <li>
47
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
48
- * the appropriate keys.</p>
49
- * <ul>
50
- * <li>
51
- * <p>
52
- * <code>defaultTaskList.name</code>: String constraint. The key is
53
- * <code>swf:defaultTaskList.name</code>.</p>
54
- * </li>
55
- * <li>
56
- * <p>
57
- * <code>name</code>: String constraint. The key is <code>swf:name</code>.</p>
58
- * </li>
59
- * <li>
60
- * <p>
61
- * <code>version</code>: String constraint. The key is
62
- * <code>swf:version</code>.</p>
63
- * </li>
64
- * </ul>
65
- * </li>
66
- * </ul>
67
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
68
- * parameter values fall outside the specified constraints, the action fails. The associated
69
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
70
- * 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
71
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
72
- * @example
73
- * Use a bare-bones client and the command you need to make an API call.
74
- * ```javascript
75
- * import { SWFClient, RegisterWorkflowTypeCommand } from "@aws-sdk/client-swf"; // ES Modules import
76
- * // const { SWFClient, RegisterWorkflowTypeCommand } = require("@aws-sdk/client-swf"); // CommonJS import
77
- * const client = new SWFClient(config);
78
- * const command = new RegisterWorkflowTypeCommand(input);
79
- * const response = await client.send(command);
80
- * ```
81
- *
82
- * @see {@link RegisterWorkflowTypeCommandInput} for command's `input` shape.
83
- * @see {@link RegisterWorkflowTypeCommandOutput} for command's `response` shape.
84
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
85
- *
86
- */
87
- export class RegisterWorkflowTypeCommand extends $Command<
88
- RegisterWorkflowTypeCommandInput,
89
- RegisterWorkflowTypeCommandOutput,
90
- SWFClientResolvedConfig
91
- > {
92
- // Start section: command_properties
93
- // End section: command_properties
94
-
95
- constructor(readonly input: RegisterWorkflowTypeCommandInput) {
96
- // Start section: command_constructor
97
- super();
98
- // End section: command_constructor
99
- }
100
-
101
- /**
102
- * @internal
103
- */
104
- resolveMiddleware(
105
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
106
- configuration: SWFClientResolvedConfig,
107
- options?: __HttpHandlerOptions
108
- ): Handler<RegisterWorkflowTypeCommandInput, RegisterWorkflowTypeCommandOutput> {
109
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
110
-
111
- const stack = clientStack.concat(this.middlewareStack);
112
-
113
- const { logger } = configuration;
114
- const clientName = "SWFClient";
115
- const commandName = "RegisterWorkflowTypeCommand";
116
- const handlerExecutionContext: HandlerExecutionContext = {
117
- logger,
118
- clientName,
119
- commandName,
120
- inputFilterSensitiveLog: RegisterWorkflowTypeInput.filterSensitiveLog,
121
- outputFilterSensitiveLog: (output: any) => output,
122
- };
123
- const { requestHandler } = configuration;
124
- return stack.resolve(
125
- (request: FinalizeHandlerArguments<any>) =>
126
- requestHandler.handle(request.request as __HttpRequest, options || {}),
127
- handlerExecutionContext
128
- );
129
- }
130
-
131
- private serialize(input: RegisterWorkflowTypeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
132
- return serializeAws_json1_0RegisterWorkflowTypeCommand(input, context);
133
- }
134
-
135
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RegisterWorkflowTypeCommandOutput> {
136
- return deserializeAws_json1_0RegisterWorkflowTypeCommand(output, context);
137
- }
138
-
139
- // Start section: command_body_extra
140
- // End section: command_body_extra
141
- }
@@ -1,138 +0,0 @@
1
- import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
2
- import { RequestCancelWorkflowExecutionInput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0RequestCancelWorkflowExecutionCommand,
5
- serializeAws_json1_0RequestCancelWorkflowExecutionCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface RequestCancelWorkflowExecutionCommandInput extends RequestCancelWorkflowExecutionInput {}
21
- export interface RequestCancelWorkflowExecutionCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * <p>Records a <code>WorkflowExecutionCancelRequested</code> event in the currently running
25
- * workflow execution identified by the given domain, workflowId, and runId. This logically
26
- * requests the cancellation of the workflow execution as a whole. It is up to the decider to
27
- * take appropriate actions when it receives an execution history with this event.</p>
28
- *
29
- * <note>
30
- * <p>If the runId isn't specified, the <code>WorkflowExecutionCancelRequested</code> event
31
- * is recorded in the history of the current open workflow execution with the specified
32
- * workflowId in the domain.</p>
33
- * </note>
34
- *
35
- * <note>
36
- * <p>Because this action allows the workflow to properly clean up and gracefully close, it
37
- * should be used instead of <a>TerminateWorkflowExecution</a> when
38
- * possible.</p>
39
- * </note>
40
- * <p>
41
- * <b>Access Control</b>
42
- * </p>
43
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
44
- * follows:</p>
45
- * <ul>
46
- * <li>
47
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
48
- * only specified domains.</p>
49
- * </li>
50
- * <li>
51
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
52
- * action.</p>
53
- * </li>
54
- * <li>
55
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
56
- * </li>
57
- * </ul>
58
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
59
- * parameter values fall outside the specified constraints, the action fails. The associated
60
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
61
- * 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
62
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
63
- * @example
64
- * Use a bare-bones client and the command you need to make an API call.
65
- * ```javascript
66
- * import { SWFClient, RequestCancelWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
67
- * // const { SWFClient, RequestCancelWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
68
- * const client = new SWFClient(config);
69
- * const command = new RequestCancelWorkflowExecutionCommand(input);
70
- * const response = await client.send(command);
71
- * ```
72
- *
73
- * @see {@link RequestCancelWorkflowExecutionCommandInput} for command's `input` shape.
74
- * @see {@link RequestCancelWorkflowExecutionCommandOutput} for command's `response` shape.
75
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
76
- *
77
- */
78
- export class RequestCancelWorkflowExecutionCommand extends $Command<
79
- RequestCancelWorkflowExecutionCommandInput,
80
- RequestCancelWorkflowExecutionCommandOutput,
81
- SWFClientResolvedConfig
82
- > {
83
- // Start section: command_properties
84
- // End section: command_properties
85
-
86
- constructor(readonly input: RequestCancelWorkflowExecutionCommandInput) {
87
- // Start section: command_constructor
88
- super();
89
- // End section: command_constructor
90
- }
91
-
92
- /**
93
- * @internal
94
- */
95
- resolveMiddleware(
96
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
97
- configuration: SWFClientResolvedConfig,
98
- options?: __HttpHandlerOptions
99
- ): Handler<RequestCancelWorkflowExecutionCommandInput, RequestCancelWorkflowExecutionCommandOutput> {
100
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
101
-
102
- const stack = clientStack.concat(this.middlewareStack);
103
-
104
- const { logger } = configuration;
105
- const clientName = "SWFClient";
106
- const commandName = "RequestCancelWorkflowExecutionCommand";
107
- const handlerExecutionContext: HandlerExecutionContext = {
108
- logger,
109
- clientName,
110
- commandName,
111
- inputFilterSensitiveLog: RequestCancelWorkflowExecutionInput.filterSensitiveLog,
112
- outputFilterSensitiveLog: (output: any) => output,
113
- };
114
- const { requestHandler } = configuration;
115
- return stack.resolve(
116
- (request: FinalizeHandlerArguments<any>) =>
117
- requestHandler.handle(request.request as __HttpRequest, options || {}),
118
- handlerExecutionContext
119
- );
120
- }
121
-
122
- private serialize(
123
- input: RequestCancelWorkflowExecutionCommandInput,
124
- context: __SerdeContext
125
- ): Promise<__HttpRequest> {
126
- return serializeAws_json1_0RequestCancelWorkflowExecutionCommand(input, context);
127
- }
128
-
129
- private deserialize(
130
- output: __HttpResponse,
131
- context: __SerdeContext
132
- ): Promise<RequestCancelWorkflowExecutionCommandOutput> {
133
- return deserializeAws_json1_0RequestCancelWorkflowExecutionCommand(output, context);
134
- }
135
-
136
- // Start section: command_body_extra
137
- // End section: command_body_extra
138
- }
@@ -1,138 +0,0 @@
1
- import { SWFClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SWFClient";
2
- import { RespondActivityTaskCanceledInput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0RespondActivityTaskCanceledCommand,
5
- serializeAws_json1_0RespondActivityTaskCanceledCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface RespondActivityTaskCanceledCommandInput extends RespondActivityTaskCanceledInput {}
21
- export interface RespondActivityTaskCanceledCommandOutput extends __MetadataBearer {}
22
-
23
- /**
24
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
25
- * by the <code>taskToken</code> was successfully canceled. Additional <code>details</code> can
26
- * be provided using the <code>details</code> argument.</p>
27
- *
28
- * <p>These <code>details</code> (if provided) appear in the
29
- * <code>ActivityTaskCanceled</code> event added to the workflow history.</p>
30
- *
31
- * <important>
32
- * <p>Only use this operation if the <code>canceled</code> flag of a <a>RecordActivityTaskHeartbeat</a> request returns <code>true</code> and if the
33
- * activity can be safely undone or abandoned.</p>
34
- * </important>
35
- *
36
- * <p>A task is considered open from the time that it is scheduled until it is closed.
37
- * Therefore a task is reported as open while a worker is processing it. A task is closed after
38
- * it has been specified in a call to <a>RespondActivityTaskCompleted</a>,
39
- * RespondActivityTaskCanceled, <a>RespondActivityTaskFailed</a>, or the task has
40
- * <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
41
- * out</a>.</p>
42
- *
43
- * <p>
44
- * <b>Access Control</b>
45
- * </p>
46
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
47
- * follows:</p>
48
- * <ul>
49
- * <li>
50
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
51
- * only specified domains.</p>
52
- * </li>
53
- * <li>
54
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
55
- * action.</p>
56
- * </li>
57
- * <li>
58
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
59
- * </li>
60
- * </ul>
61
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
62
- * parameter values fall outside the specified constraints, the action fails. The associated
63
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
64
- * 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
65
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
66
- * @example
67
- * Use a bare-bones client and the command you need to make an API call.
68
- * ```javascript
69
- * import { SWFClient, RespondActivityTaskCanceledCommand } from "@aws-sdk/client-swf"; // ES Modules import
70
- * // const { SWFClient, RespondActivityTaskCanceledCommand } = require("@aws-sdk/client-swf"); // CommonJS import
71
- * const client = new SWFClient(config);
72
- * const command = new RespondActivityTaskCanceledCommand(input);
73
- * const response = await client.send(command);
74
- * ```
75
- *
76
- * @see {@link RespondActivityTaskCanceledCommandInput} for command's `input` shape.
77
- * @see {@link RespondActivityTaskCanceledCommandOutput} for command's `response` shape.
78
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
79
- *
80
- */
81
- export class RespondActivityTaskCanceledCommand extends $Command<
82
- RespondActivityTaskCanceledCommandInput,
83
- RespondActivityTaskCanceledCommandOutput,
84
- SWFClientResolvedConfig
85
- > {
86
- // Start section: command_properties
87
- // End section: command_properties
88
-
89
- constructor(readonly input: RespondActivityTaskCanceledCommandInput) {
90
- // Start section: command_constructor
91
- super();
92
- // End section: command_constructor
93
- }
94
-
95
- /**
96
- * @internal
97
- */
98
- resolveMiddleware(
99
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
100
- configuration: SWFClientResolvedConfig,
101
- options?: __HttpHandlerOptions
102
- ): Handler<RespondActivityTaskCanceledCommandInput, RespondActivityTaskCanceledCommandOutput> {
103
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
104
-
105
- const stack = clientStack.concat(this.middlewareStack);
106
-
107
- const { logger } = configuration;
108
- const clientName = "SWFClient";
109
- const commandName = "RespondActivityTaskCanceledCommand";
110
- const handlerExecutionContext: HandlerExecutionContext = {
111
- logger,
112
- clientName,
113
- commandName,
114
- inputFilterSensitiveLog: RespondActivityTaskCanceledInput.filterSensitiveLog,
115
- outputFilterSensitiveLog: (output: any) => output,
116
- };
117
- const { requestHandler } = configuration;
118
- return stack.resolve(
119
- (request: FinalizeHandlerArguments<any>) =>
120
- requestHandler.handle(request.request as __HttpRequest, options || {}),
121
- handlerExecutionContext
122
- );
123
- }
124
-
125
- private serialize(input: RespondActivityTaskCanceledCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
126
- return serializeAws_json1_0RespondActivityTaskCanceledCommand(input, context);
127
- }
128
-
129
- private deserialize(
130
- output: __HttpResponse,
131
- context: __SerdeContext
132
- ): Promise<RespondActivityTaskCanceledCommandOutput> {
133
- return deserializeAws_json1_0RespondActivityTaskCanceledCommand(output, context);
134
- }
135
-
136
- // Start section: command_body_extra
137
- // End section: command_body_extra
138
- }