@aws-sdk/client-swf 3.35.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 (286) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/SWF.js +0 -1
  3. package/dist-cjs/SWFClient.js +0 -1
  4. package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
  5. package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
  6. package/dist-cjs/commands/CountPendingActivityTasksCommand.js +0 -1
  7. package/dist-cjs/commands/CountPendingDecisionTasksCommand.js +0 -1
  8. package/dist-cjs/commands/DeprecateActivityTypeCommand.js +0 -1
  9. package/dist-cjs/commands/DeprecateDomainCommand.js +0 -1
  10. package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js +0 -1
  11. package/dist-cjs/commands/DescribeActivityTypeCommand.js +0 -1
  12. package/dist-cjs/commands/DescribeDomainCommand.js +0 -1
  13. package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js +0 -1
  14. package/dist-cjs/commands/DescribeWorkflowTypeCommand.js +0 -1
  15. package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
  16. package/dist-cjs/commands/ListActivityTypesCommand.js +0 -1
  17. package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
  18. package/dist-cjs/commands/ListDomainsCommand.js +0 -1
  19. package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
  20. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  21. package/dist-cjs/commands/ListWorkflowTypesCommand.js +0 -1
  22. package/dist-cjs/commands/PollForActivityTaskCommand.js +0 -1
  23. package/dist-cjs/commands/PollForDecisionTaskCommand.js +0 -1
  24. package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
  25. package/dist-cjs/commands/RegisterActivityTypeCommand.js +0 -1
  26. package/dist-cjs/commands/RegisterDomainCommand.js +0 -1
  27. package/dist-cjs/commands/RegisterWorkflowTypeCommand.js +0 -1
  28. package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
  29. package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js +0 -1
  30. package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js +0 -1
  31. package/dist-cjs/commands/RespondActivityTaskFailedCommand.js +0 -1
  32. package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js +0 -1
  33. package/dist-cjs/commands/SignalWorkflowExecutionCommand.js +0 -1
  34. package/dist-cjs/commands/StartWorkflowExecutionCommand.js +0 -1
  35. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  36. package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js +0 -1
  37. package/dist-cjs/commands/UndeprecateActivityTypeCommand.js +0 -1
  38. package/dist-cjs/commands/UndeprecateDomainCommand.js +0 -1
  39. package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js +0 -1
  40. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  41. package/dist-cjs/endpoints.js +0 -1
  42. package/dist-cjs/index.js +0 -1
  43. package/dist-cjs/models/index.js +0 -1
  44. package/dist-cjs/models/models_0.js +0 -1
  45. package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
  46. package/dist-cjs/pagination/Interfaces.js +0 -1
  47. package/dist-cjs/pagination/ListActivityTypesPaginator.js +0 -1
  48. package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
  49. package/dist-cjs/pagination/ListDomainsPaginator.js +0 -1
  50. package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
  51. package/dist-cjs/pagination/ListWorkflowTypesPaginator.js +0 -1
  52. package/dist-cjs/pagination/PollForDecisionTaskPaginator.js +0 -1
  53. package/dist-cjs/protocols/Aws_json1_0.js +0 -1
  54. package/dist-cjs/runtimeConfig.browser.js +2 -3
  55. package/dist-cjs/runtimeConfig.js +3 -4
  56. package/dist-cjs/runtimeConfig.native.js +0 -1
  57. package/dist-cjs/runtimeConfig.shared.js +0 -1
  58. package/dist-es/SWF.js +0 -1
  59. package/dist-es/SWFClient.js +0 -1
  60. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js +0 -1
  61. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js +0 -1
  62. package/dist-es/commands/CountPendingActivityTasksCommand.js +0 -1
  63. package/dist-es/commands/CountPendingDecisionTasksCommand.js +0 -1
  64. package/dist-es/commands/DeprecateActivityTypeCommand.js +0 -1
  65. package/dist-es/commands/DeprecateDomainCommand.js +0 -1
  66. package/dist-es/commands/DeprecateWorkflowTypeCommand.js +0 -1
  67. package/dist-es/commands/DescribeActivityTypeCommand.js +0 -1
  68. package/dist-es/commands/DescribeDomainCommand.js +0 -1
  69. package/dist-es/commands/DescribeWorkflowExecutionCommand.js +0 -1
  70. package/dist-es/commands/DescribeWorkflowTypeCommand.js +0 -1
  71. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js +0 -1
  72. package/dist-es/commands/ListActivityTypesCommand.js +0 -1
  73. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js +0 -1
  74. package/dist-es/commands/ListDomainsCommand.js +0 -1
  75. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js +0 -1
  76. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  77. package/dist-es/commands/ListWorkflowTypesCommand.js +0 -1
  78. package/dist-es/commands/PollForActivityTaskCommand.js +0 -1
  79. package/dist-es/commands/PollForDecisionTaskCommand.js +0 -1
  80. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js +0 -1
  81. package/dist-es/commands/RegisterActivityTypeCommand.js +0 -1
  82. package/dist-es/commands/RegisterDomainCommand.js +0 -1
  83. package/dist-es/commands/RegisterWorkflowTypeCommand.js +0 -1
  84. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js +0 -1
  85. package/dist-es/commands/RespondActivityTaskCanceledCommand.js +0 -1
  86. package/dist-es/commands/RespondActivityTaskCompletedCommand.js +0 -1
  87. package/dist-es/commands/RespondActivityTaskFailedCommand.js +0 -1
  88. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js +0 -1
  89. package/dist-es/commands/SignalWorkflowExecutionCommand.js +0 -1
  90. package/dist-es/commands/StartWorkflowExecutionCommand.js +0 -1
  91. package/dist-es/commands/TagResourceCommand.js +0 -1
  92. package/dist-es/commands/TerminateWorkflowExecutionCommand.js +0 -1
  93. package/dist-es/commands/UndeprecateActivityTypeCommand.js +0 -1
  94. package/dist-es/commands/UndeprecateDomainCommand.js +0 -1
  95. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js +0 -1
  96. package/dist-es/commands/UntagResourceCommand.js +0 -1
  97. package/dist-es/endpoints.js +0 -1
  98. package/dist-es/index.js +0 -1
  99. package/dist-es/models/index.js +0 -1
  100. package/dist-es/models/models_0.js +0 -1
  101. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js +0 -1
  102. package/dist-es/pagination/Interfaces.js +0 -1
  103. package/dist-es/pagination/ListActivityTypesPaginator.js +0 -1
  104. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js +0 -1
  105. package/dist-es/pagination/ListDomainsPaginator.js +0 -1
  106. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js +0 -1
  107. package/dist-es/pagination/ListWorkflowTypesPaginator.js +0 -1
  108. package/dist-es/pagination/PollForDecisionTaskPaginator.js +0 -1
  109. package/dist-es/protocols/Aws_json1_0.js +0 -1
  110. package/dist-es/runtimeConfig.browser.js +1 -2
  111. package/dist-es/runtimeConfig.js +2 -3
  112. package/dist-es/runtimeConfig.native.js +0 -1
  113. package/dist-es/runtimeConfig.shared.js +0 -1
  114. package/package.json +33 -30
  115. package/dist-cjs/SWF.js.map +0 -1
  116. package/dist-cjs/SWFClient.js.map +0 -1
  117. package/dist-cjs/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
  118. package/dist-cjs/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
  119. package/dist-cjs/commands/CountPendingActivityTasksCommand.js.map +0 -1
  120. package/dist-cjs/commands/CountPendingDecisionTasksCommand.js.map +0 -1
  121. package/dist-cjs/commands/DeprecateActivityTypeCommand.js.map +0 -1
  122. package/dist-cjs/commands/DeprecateDomainCommand.js.map +0 -1
  123. package/dist-cjs/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
  124. package/dist-cjs/commands/DescribeActivityTypeCommand.js.map +0 -1
  125. package/dist-cjs/commands/DescribeDomainCommand.js.map +0 -1
  126. package/dist-cjs/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
  127. package/dist-cjs/commands/DescribeWorkflowTypeCommand.js.map +0 -1
  128. package/dist-cjs/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
  129. package/dist-cjs/commands/ListActivityTypesCommand.js.map +0 -1
  130. package/dist-cjs/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
  131. package/dist-cjs/commands/ListDomainsCommand.js.map +0 -1
  132. package/dist-cjs/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
  133. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  134. package/dist-cjs/commands/ListWorkflowTypesCommand.js.map +0 -1
  135. package/dist-cjs/commands/PollForActivityTaskCommand.js.map +0 -1
  136. package/dist-cjs/commands/PollForDecisionTaskCommand.js.map +0 -1
  137. package/dist-cjs/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
  138. package/dist-cjs/commands/RegisterActivityTypeCommand.js.map +0 -1
  139. package/dist-cjs/commands/RegisterDomainCommand.js.map +0 -1
  140. package/dist-cjs/commands/RegisterWorkflowTypeCommand.js.map +0 -1
  141. package/dist-cjs/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
  142. package/dist-cjs/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
  143. package/dist-cjs/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
  144. package/dist-cjs/commands/RespondActivityTaskFailedCommand.js.map +0 -1
  145. package/dist-cjs/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
  146. package/dist-cjs/commands/SignalWorkflowExecutionCommand.js.map +0 -1
  147. package/dist-cjs/commands/StartWorkflowExecutionCommand.js.map +0 -1
  148. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  149. package/dist-cjs/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
  150. package/dist-cjs/commands/UndeprecateActivityTypeCommand.js.map +0 -1
  151. package/dist-cjs/commands/UndeprecateDomainCommand.js.map +0 -1
  152. package/dist-cjs/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
  153. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  154. package/dist-cjs/endpoints.js.map +0 -1
  155. package/dist-cjs/index.js.map +0 -1
  156. package/dist-cjs/models/index.js.map +0 -1
  157. package/dist-cjs/models/models_0.js.map +0 -1
  158. package/dist-cjs/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
  159. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  160. package/dist-cjs/pagination/ListActivityTypesPaginator.js.map +0 -1
  161. package/dist-cjs/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
  162. package/dist-cjs/pagination/ListDomainsPaginator.js.map +0 -1
  163. package/dist-cjs/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
  164. package/dist-cjs/pagination/ListWorkflowTypesPaginator.js.map +0 -1
  165. package/dist-cjs/pagination/PollForDecisionTaskPaginator.js.map +0 -1
  166. package/dist-cjs/protocols/Aws_json1_0.js.map +0 -1
  167. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  168. package/dist-cjs/runtimeConfig.js.map +0 -1
  169. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  170. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  171. package/dist-es/SWF.js.map +0 -1
  172. package/dist-es/SWFClient.js.map +0 -1
  173. package/dist-es/commands/CountClosedWorkflowExecutionsCommand.js.map +0 -1
  174. package/dist-es/commands/CountOpenWorkflowExecutionsCommand.js.map +0 -1
  175. package/dist-es/commands/CountPendingActivityTasksCommand.js.map +0 -1
  176. package/dist-es/commands/CountPendingDecisionTasksCommand.js.map +0 -1
  177. package/dist-es/commands/DeprecateActivityTypeCommand.js.map +0 -1
  178. package/dist-es/commands/DeprecateDomainCommand.js.map +0 -1
  179. package/dist-es/commands/DeprecateWorkflowTypeCommand.js.map +0 -1
  180. package/dist-es/commands/DescribeActivityTypeCommand.js.map +0 -1
  181. package/dist-es/commands/DescribeDomainCommand.js.map +0 -1
  182. package/dist-es/commands/DescribeWorkflowExecutionCommand.js.map +0 -1
  183. package/dist-es/commands/DescribeWorkflowTypeCommand.js.map +0 -1
  184. package/dist-es/commands/GetWorkflowExecutionHistoryCommand.js.map +0 -1
  185. package/dist-es/commands/ListActivityTypesCommand.js.map +0 -1
  186. package/dist-es/commands/ListClosedWorkflowExecutionsCommand.js.map +0 -1
  187. package/dist-es/commands/ListDomainsCommand.js.map +0 -1
  188. package/dist-es/commands/ListOpenWorkflowExecutionsCommand.js.map +0 -1
  189. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  190. package/dist-es/commands/ListWorkflowTypesCommand.js.map +0 -1
  191. package/dist-es/commands/PollForActivityTaskCommand.js.map +0 -1
  192. package/dist-es/commands/PollForDecisionTaskCommand.js.map +0 -1
  193. package/dist-es/commands/RecordActivityTaskHeartbeatCommand.js.map +0 -1
  194. package/dist-es/commands/RegisterActivityTypeCommand.js.map +0 -1
  195. package/dist-es/commands/RegisterDomainCommand.js.map +0 -1
  196. package/dist-es/commands/RegisterWorkflowTypeCommand.js.map +0 -1
  197. package/dist-es/commands/RequestCancelWorkflowExecutionCommand.js.map +0 -1
  198. package/dist-es/commands/RespondActivityTaskCanceledCommand.js.map +0 -1
  199. package/dist-es/commands/RespondActivityTaskCompletedCommand.js.map +0 -1
  200. package/dist-es/commands/RespondActivityTaskFailedCommand.js.map +0 -1
  201. package/dist-es/commands/RespondDecisionTaskCompletedCommand.js.map +0 -1
  202. package/dist-es/commands/SignalWorkflowExecutionCommand.js.map +0 -1
  203. package/dist-es/commands/StartWorkflowExecutionCommand.js.map +0 -1
  204. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  205. package/dist-es/commands/TerminateWorkflowExecutionCommand.js.map +0 -1
  206. package/dist-es/commands/UndeprecateActivityTypeCommand.js.map +0 -1
  207. package/dist-es/commands/UndeprecateDomainCommand.js.map +0 -1
  208. package/dist-es/commands/UndeprecateWorkflowTypeCommand.js.map +0 -1
  209. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  210. package/dist-es/endpoints.js.map +0 -1
  211. package/dist-es/index.js.map +0 -1
  212. package/dist-es/models/index.js.map +0 -1
  213. package/dist-es/models/models_0.js.map +0 -1
  214. package/dist-es/pagination/GetWorkflowExecutionHistoryPaginator.js.map +0 -1
  215. package/dist-es/pagination/Interfaces.js.map +0 -1
  216. package/dist-es/pagination/ListActivityTypesPaginator.js.map +0 -1
  217. package/dist-es/pagination/ListClosedWorkflowExecutionsPaginator.js.map +0 -1
  218. package/dist-es/pagination/ListDomainsPaginator.js.map +0 -1
  219. package/dist-es/pagination/ListOpenWorkflowExecutionsPaginator.js.map +0 -1
  220. package/dist-es/pagination/ListWorkflowTypesPaginator.js.map +0 -1
  221. package/dist-es/pagination/PollForDecisionTaskPaginator.js.map +0 -1
  222. package/dist-es/protocols/Aws_json1_0.js.map +0 -1
  223. package/dist-es/runtimeConfig.browser.js.map +0 -1
  224. package/dist-es/runtimeConfig.js.map +0 -1
  225. package/dist-es/runtimeConfig.native.js.map +0 -1
  226. package/dist-es/runtimeConfig.shared.js.map +0 -1
  227. package/jest.config.js +0 -4
  228. package/src/SWF.ts +0 -2640
  229. package/src/SWFClient.ts +0 -446
  230. package/src/commands/CountClosedWorkflowExecutionsCommand.ts +0 -144
  231. package/src/commands/CountOpenWorkflowExecutionsCommand.ts +0 -144
  232. package/src/commands/CountPendingActivityTasksCommand.ts +0 -125
  233. package/src/commands/CountPendingDecisionTasksCommand.ts +0 -125
  234. package/src/commands/DeprecateActivityTypeCommand.ts +0 -137
  235. package/src/commands/DeprecateDomainCommand.ts +0 -126
  236. package/src/commands/DeprecateWorkflowTypeCommand.ts +0 -138
  237. package/src/commands/DescribeActivityTypeCommand.ts +0 -133
  238. package/src/commands/DescribeDomainCommand.ts +0 -119
  239. package/src/commands/DescribeWorkflowExecutionCommand.ts +0 -126
  240. package/src/commands/DescribeWorkflowTypeCommand.ts +0 -133
  241. package/src/commands/GetWorkflowExecutionHistoryCommand.ts +0 -127
  242. package/src/commands/ListActivityTypesCommand.ts +0 -122
  243. package/src/commands/ListClosedWorkflowExecutionsCommand.ts +0 -145
  244. package/src/commands/ListDomainsCommand.ts +0 -126
  245. package/src/commands/ListOpenWorkflowExecutionsCommand.ts +0 -145
  246. package/src/commands/ListTagsForResourceCommand.ts +0 -95
  247. package/src/commands/ListWorkflowTypesCommand.ts +0 -119
  248. package/src/commands/PollForActivityTaskCommand.ts +0 -130
  249. package/src/commands/PollForDecisionTaskCommand.ts +0 -142
  250. package/src/commands/RecordActivityTaskHeartbeatCommand.ts +0 -145
  251. package/src/commands/RegisterActivityTypeCommand.ts +0 -141
  252. package/src/commands/RegisterDomainCommand.ts +0 -118
  253. package/src/commands/RegisterWorkflowTypeCommand.ts +0 -142
  254. package/src/commands/RequestCancelWorkflowExecutionCommand.ts +0 -139
  255. package/src/commands/RespondActivityTaskCanceledCommand.ts +0 -139
  256. package/src/commands/RespondActivityTaskCompletedCommand.ts +0 -137
  257. package/src/commands/RespondActivityTaskFailedCommand.ts +0 -130
  258. package/src/commands/RespondDecisionTaskCompletedCommand.ts +0 -117
  259. package/src/commands/SignalWorkflowExecutionCommand.ts +0 -133
  260. package/src/commands/StartWorkflowExecutionCommand.ts +0 -160
  261. package/src/commands/TagResourceCommand.ts +0 -98
  262. package/src/commands/TerminateWorkflowExecutionCommand.ts +0 -141
  263. package/src/commands/UndeprecateActivityTypeCommand.ts +0 -136
  264. package/src/commands/UndeprecateDomainCommand.ts +0 -123
  265. package/src/commands/UndeprecateWorkflowTypeCommand.ts +0 -136
  266. package/src/commands/UntagResourceCommand.ts +0 -95
  267. package/src/endpoints.ts +0 -86
  268. package/src/index.ts +0 -48
  269. package/src/models/index.ts +0 -1
  270. package/src/models/models_0.ts +0 -7233
  271. package/src/pagination/GetWorkflowExecutionHistoryPaginator.ts +0 -59
  272. package/src/pagination/Interfaces.ts +0 -8
  273. package/src/pagination/ListActivityTypesPaginator.ts +0 -59
  274. package/src/pagination/ListClosedWorkflowExecutionsPaginator.ts +0 -59
  275. package/src/pagination/ListDomainsPaginator.ts +0 -55
  276. package/src/pagination/ListOpenWorkflowExecutionsPaginator.ts +0 -59
  277. package/src/pagination/ListWorkflowTypesPaginator.ts +0 -59
  278. package/src/pagination/PollForDecisionTaskPaginator.ts +0 -59
  279. package/src/protocols/Aws_json1_0.ts +0 -5978
  280. package/src/runtimeConfig.browser.ts +0 -41
  281. package/src/runtimeConfig.native.ts +0 -17
  282. package/src/runtimeConfig.shared.ts +0 -17
  283. package/src/runtimeConfig.ts +0 -46
  284. package/tsconfig.es.json +0 -10
  285. package/tsconfig.json +0 -33
  286. package/tsconfig.types.json +0 -9
@@ -1,137 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { RespondActivityTaskCompletedInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0RespondActivityTaskCompletedCommand,
17
- serializeAws_json1_0RespondActivityTaskCompletedCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface RespondActivityTaskCompletedCommandInput extends RespondActivityTaskCompletedInput {}
22
- export interface RespondActivityTaskCompletedCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
26
- * by the <code>taskToken</code> completed successfully with a <code>result</code> (if provided).
27
- * The <code>result</code> appears in the <code>ActivityTaskCompleted</code> event in the
28
- * workflow history.</p>
29
- *
30
- * <important>
31
- * <p>If the requested task doesn't complete successfully, use <a>RespondActivityTaskFailed</a> instead. If the worker finds that the task is
32
- * canceled through the <code>canceled</code> flag returned by <a>RecordActivityTaskHeartbeat</a>, it should cancel the task, clean up and then call
33
- * <a>RespondActivityTaskCanceled</a>.</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 RespondActivityTaskCompleted, <a>RespondActivityTaskCanceled</a>, <a>RespondActivityTaskFailed</a>, or the
39
- * task has <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-basic.html#swf-dev-timeout-types">timed
40
- * out</a>.</p>
41
- *
42
- * <p>
43
- * <b>Access Control</b>
44
- * </p>
45
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
46
- * follows:</p>
47
- * <ul>
48
- * <li>
49
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
50
- * only specified domains.</p>
51
- * </li>
52
- * <li>
53
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
54
- * action.</p>
55
- * </li>
56
- * <li>
57
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
58
- * </li>
59
- * </ul>
60
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
61
- * parameter values fall outside the specified constraints, the action fails. The associated
62
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
63
- * 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
64
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
65
- * @example
66
- * Use a bare-bones client and the command you need to make an API call.
67
- * ```javascript
68
- * import { SWFClient, RespondActivityTaskCompletedCommand } from "@aws-sdk/client-swf"; // ES Modules import
69
- * // const { SWFClient, RespondActivityTaskCompletedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
70
- * const client = new SWFClient(config);
71
- * const command = new RespondActivityTaskCompletedCommand(input);
72
- * const response = await client.send(command);
73
- * ```
74
- *
75
- * @see {@link RespondActivityTaskCompletedCommandInput} for command's `input` shape.
76
- * @see {@link RespondActivityTaskCompletedCommandOutput} for command's `response` shape.
77
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
78
- *
79
- */
80
- export class RespondActivityTaskCompletedCommand extends $Command<
81
- RespondActivityTaskCompletedCommandInput,
82
- RespondActivityTaskCompletedCommandOutput,
83
- SWFClientResolvedConfig
84
- > {
85
- // Start section: command_properties
86
- // End section: command_properties
87
-
88
- constructor(readonly input: RespondActivityTaskCompletedCommandInput) {
89
- // Start section: command_constructor
90
- super();
91
- // End section: command_constructor
92
- }
93
-
94
- /**
95
- * @internal
96
- */
97
- resolveMiddleware(
98
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
99
- configuration: SWFClientResolvedConfig,
100
- options?: __HttpHandlerOptions
101
- ): Handler<RespondActivityTaskCompletedCommandInput, RespondActivityTaskCompletedCommandOutput> {
102
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
103
-
104
- const stack = clientStack.concat(this.middlewareStack);
105
-
106
- const { logger } = configuration;
107
- const clientName = "SWFClient";
108
- const commandName = "RespondActivityTaskCompletedCommand";
109
- const handlerExecutionContext: HandlerExecutionContext = {
110
- logger,
111
- clientName,
112
- commandName,
113
- inputFilterSensitiveLog: RespondActivityTaskCompletedInput.filterSensitiveLog,
114
- outputFilterSensitiveLog: (output: any) => output,
115
- };
116
- const { requestHandler } = configuration;
117
- return stack.resolve(
118
- (request: FinalizeHandlerArguments<any>) =>
119
- requestHandler.handle(request.request as __HttpRequest, options || {}),
120
- handlerExecutionContext
121
- );
122
- }
123
-
124
- private serialize(input: RespondActivityTaskCompletedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
125
- return serializeAws_json1_0RespondActivityTaskCompletedCommand(input, context);
126
- }
127
-
128
- private deserialize(
129
- output: __HttpResponse,
130
- context: __SerdeContext
131
- ): Promise<RespondActivityTaskCompletedCommandOutput> {
132
- return deserializeAws_json1_0RespondActivityTaskCompletedCommand(output, context);
133
- }
134
-
135
- // Start section: command_body_extra
136
- // End section: command_body_extra
137
- }
@@ -1,130 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { RespondActivityTaskFailedInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0RespondActivityTaskFailedCommand,
17
- serializeAws_json1_0RespondActivityTaskFailedCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface RespondActivityTaskFailedCommandInput extends RespondActivityTaskFailedInput {}
22
- export interface RespondActivityTaskFailedCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by workers to tell the service that the <a>ActivityTask</a> identified
26
- * by the <code>taskToken</code> has failed with <code>reason</code> (if specified). The
27
- * <code>reason</code> and <code>details</code> appear in the <code>ActivityTaskFailed</code>
28
- * event added to the workflow history.</p>
29
- *
30
- * <p>A task is considered open from the time that it is scheduled until it is closed.
31
- * Therefore a task is reported as open while a worker is processing it. A task is closed after
32
- * 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
33
- * out</a>.</p>
34
- *
35
- * <p>
36
- * <b>Access Control</b>
37
- * </p>
38
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
39
- * follows:</p>
40
- * <ul>
41
- * <li>
42
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
43
- * only specified domains.</p>
44
- * </li>
45
- * <li>
46
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
47
- * action.</p>
48
- * </li>
49
- * <li>
50
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
51
- * </li>
52
- * </ul>
53
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
54
- * parameter values fall outside the specified constraints, the action fails. The associated
55
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
56
- * 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
57
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { SWFClient, RespondActivityTaskFailedCommand } from "@aws-sdk/client-swf"; // ES Modules import
62
- * // const { SWFClient, RespondActivityTaskFailedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
63
- * const client = new SWFClient(config);
64
- * const command = new RespondActivityTaskFailedCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link RespondActivityTaskFailedCommandInput} for command's `input` shape.
69
- * @see {@link RespondActivityTaskFailedCommandOutput} for command's `response` shape.
70
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
73
- export class RespondActivityTaskFailedCommand extends $Command<
74
- RespondActivityTaskFailedCommandInput,
75
- RespondActivityTaskFailedCommandOutput,
76
- SWFClientResolvedConfig
77
- > {
78
- // Start section: command_properties
79
- // End section: command_properties
80
-
81
- constructor(readonly input: RespondActivityTaskFailedCommandInput) {
82
- // Start section: command_constructor
83
- super();
84
- // End section: command_constructor
85
- }
86
-
87
- /**
88
- * @internal
89
- */
90
- resolveMiddleware(
91
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
92
- configuration: SWFClientResolvedConfig,
93
- options?: __HttpHandlerOptions
94
- ): Handler<RespondActivityTaskFailedCommandInput, RespondActivityTaskFailedCommandOutput> {
95
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
96
-
97
- const stack = clientStack.concat(this.middlewareStack);
98
-
99
- const { logger } = configuration;
100
- const clientName = "SWFClient";
101
- const commandName = "RespondActivityTaskFailedCommand";
102
- const handlerExecutionContext: HandlerExecutionContext = {
103
- logger,
104
- clientName,
105
- commandName,
106
- inputFilterSensitiveLog: RespondActivityTaskFailedInput.filterSensitiveLog,
107
- outputFilterSensitiveLog: (output: any) => output,
108
- };
109
- const { requestHandler } = configuration;
110
- return stack.resolve(
111
- (request: FinalizeHandlerArguments<any>) =>
112
- requestHandler.handle(request.request as __HttpRequest, options || {}),
113
- handlerExecutionContext
114
- );
115
- }
116
-
117
- private serialize(input: RespondActivityTaskFailedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
118
- return serializeAws_json1_0RespondActivityTaskFailedCommand(input, context);
119
- }
120
-
121
- private deserialize(
122
- output: __HttpResponse,
123
- context: __SerdeContext
124
- ): Promise<RespondActivityTaskFailedCommandOutput> {
125
- return deserializeAws_json1_0RespondActivityTaskFailedCommand(output, context);
126
- }
127
-
128
- // Start section: command_body_extra
129
- // End section: command_body_extra
130
- }
@@ -1,117 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { RespondDecisionTaskCompletedInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0RespondDecisionTaskCompletedCommand,
17
- serializeAws_json1_0RespondDecisionTaskCompletedCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface RespondDecisionTaskCompletedCommandInput extends RespondDecisionTaskCompletedInput {}
22
- export interface RespondDecisionTaskCompletedCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by deciders to tell the service that the <a>DecisionTask</a> identified
26
- * by the <code>taskToken</code> has successfully completed. The <code>decisions</code> argument
27
- * specifies the list of decisions made while processing the task.</p>
28
- *
29
- * <p>A <code>DecisionTaskCompleted</code> event is added to the workflow history. The
30
- * <code>executionContext</code> specified is attached to the event in the workflow execution
31
- * history.</p>
32
- *
33
- * <p>
34
- * <b>Access Control</b>
35
- * </p>
36
- *
37
- * <p>If an IAM policy grants permission to use <code>RespondDecisionTaskCompleted</code>, it
38
- * can express permissions for the list of decisions in the <code>decisions</code> parameter.
39
- * Each of the decisions has one or more parameters, much like a regular API call. To allow for
40
- * policies to be as readable as possible, you can express permissions on decisions as if they
41
- * were actual API calls, including applying conditions to some parameters. For more information,
42
- * see <a href="https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html">Using
43
- * IAM to Manage Access to Amazon SWF Workflows</a> in the
44
- * <i>Amazon SWF Developer Guide</i>.</p>
45
- * @example
46
- * Use a bare-bones client and the command you need to make an API call.
47
- * ```javascript
48
- * import { SWFClient, RespondDecisionTaskCompletedCommand } from "@aws-sdk/client-swf"; // ES Modules import
49
- * // const { SWFClient, RespondDecisionTaskCompletedCommand } = require("@aws-sdk/client-swf"); // CommonJS import
50
- * const client = new SWFClient(config);
51
- * const command = new RespondDecisionTaskCompletedCommand(input);
52
- * const response = await client.send(command);
53
- * ```
54
- *
55
- * @see {@link RespondDecisionTaskCompletedCommandInput} for command's `input` shape.
56
- * @see {@link RespondDecisionTaskCompletedCommandOutput} for command's `response` shape.
57
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
58
- *
59
- */
60
- export class RespondDecisionTaskCompletedCommand extends $Command<
61
- RespondDecisionTaskCompletedCommandInput,
62
- RespondDecisionTaskCompletedCommandOutput,
63
- SWFClientResolvedConfig
64
- > {
65
- // Start section: command_properties
66
- // End section: command_properties
67
-
68
- constructor(readonly input: RespondDecisionTaskCompletedCommandInput) {
69
- // Start section: command_constructor
70
- super();
71
- // End section: command_constructor
72
- }
73
-
74
- /**
75
- * @internal
76
- */
77
- resolveMiddleware(
78
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
79
- configuration: SWFClientResolvedConfig,
80
- options?: __HttpHandlerOptions
81
- ): Handler<RespondDecisionTaskCompletedCommandInput, RespondDecisionTaskCompletedCommandOutput> {
82
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
83
-
84
- const stack = clientStack.concat(this.middlewareStack);
85
-
86
- const { logger } = configuration;
87
- const clientName = "SWFClient";
88
- const commandName = "RespondDecisionTaskCompletedCommand";
89
- const handlerExecutionContext: HandlerExecutionContext = {
90
- logger,
91
- clientName,
92
- commandName,
93
- inputFilterSensitiveLog: RespondDecisionTaskCompletedInput.filterSensitiveLog,
94
- outputFilterSensitiveLog: (output: any) => output,
95
- };
96
- const { requestHandler } = configuration;
97
- return stack.resolve(
98
- (request: FinalizeHandlerArguments<any>) =>
99
- requestHandler.handle(request.request as __HttpRequest, options || {}),
100
- handlerExecutionContext
101
- );
102
- }
103
-
104
- private serialize(input: RespondDecisionTaskCompletedCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
105
- return serializeAws_json1_0RespondDecisionTaskCompletedCommand(input, context);
106
- }
107
-
108
- private deserialize(
109
- output: __HttpResponse,
110
- context: __SerdeContext
111
- ): Promise<RespondDecisionTaskCompletedCommandOutput> {
112
- return deserializeAws_json1_0RespondDecisionTaskCompletedCommand(output, context);
113
- }
114
-
115
- // Start section: command_body_extra
116
- // End section: command_body_extra
117
- }
@@ -1,133 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { SignalWorkflowExecutionInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0SignalWorkflowExecutionCommand,
17
- serializeAws_json1_0SignalWorkflowExecutionCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface SignalWorkflowExecutionCommandInput extends SignalWorkflowExecutionInput {}
22
- export interface SignalWorkflowExecutionCommandOutput extends __MetadataBearer {}
23
-
24
- /**
25
- * <p>Records a <code>WorkflowExecutionSignaled</code> event in the workflow execution
26
- * history and creates a decision task for the workflow execution identified by the given domain,
27
- * workflowId and runId. The event is recorded with the specified user defined signalName and
28
- * input (if provided).</p>
29
- *
30
- * <note>
31
- * <p>If a runId isn't specified, then the <code>WorkflowExecutionSignaled</code> event is
32
- * recorded in the history of the current open workflow with the matching workflowId in the
33
- * domain.</p>
34
- * </note>
35
- *
36
- * <note>
37
- * <p>If the specified workflow execution isn't open, this method fails with
38
- * <code>UnknownResource</code>.</p>
39
- * </note>
40
- *
41
- * <p>
42
- * <b>Access Control</b>
43
- * </p>
44
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
45
- * follows:</p>
46
- * <ul>
47
- * <li>
48
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
49
- * only specified domains.</p>
50
- * </li>
51
- * <li>
52
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
53
- * action.</p>
54
- * </li>
55
- * <li>
56
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
57
- * </li>
58
- * </ul>
59
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
60
- * parameter values fall outside the specified constraints, the action fails. The associated
61
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
62
- * 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
63
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
64
- * @example
65
- * Use a bare-bones client and the command you need to make an API call.
66
- * ```javascript
67
- * import { SWFClient, SignalWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
68
- * // const { SWFClient, SignalWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
69
- * const client = new SWFClient(config);
70
- * const command = new SignalWorkflowExecutionCommand(input);
71
- * const response = await client.send(command);
72
- * ```
73
- *
74
- * @see {@link SignalWorkflowExecutionCommandInput} for command's `input` shape.
75
- * @see {@link SignalWorkflowExecutionCommandOutput} for command's `response` shape.
76
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
77
- *
78
- */
79
- export class SignalWorkflowExecutionCommand extends $Command<
80
- SignalWorkflowExecutionCommandInput,
81
- SignalWorkflowExecutionCommandOutput,
82
- SWFClientResolvedConfig
83
- > {
84
- // Start section: command_properties
85
- // End section: command_properties
86
-
87
- constructor(readonly input: SignalWorkflowExecutionCommandInput) {
88
- // Start section: command_constructor
89
- super();
90
- // End section: command_constructor
91
- }
92
-
93
- /**
94
- * @internal
95
- */
96
- resolveMiddleware(
97
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
98
- configuration: SWFClientResolvedConfig,
99
- options?: __HttpHandlerOptions
100
- ): Handler<SignalWorkflowExecutionCommandInput, SignalWorkflowExecutionCommandOutput> {
101
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
102
-
103
- const stack = clientStack.concat(this.middlewareStack);
104
-
105
- const { logger } = configuration;
106
- const clientName = "SWFClient";
107
- const commandName = "SignalWorkflowExecutionCommand";
108
- const handlerExecutionContext: HandlerExecutionContext = {
109
- logger,
110
- clientName,
111
- commandName,
112
- inputFilterSensitiveLog: SignalWorkflowExecutionInput.filterSensitiveLog,
113
- outputFilterSensitiveLog: (output: any) => output,
114
- };
115
- const { requestHandler } = configuration;
116
- return stack.resolve(
117
- (request: FinalizeHandlerArguments<any>) =>
118
- requestHandler.handle(request.request as __HttpRequest, options || {}),
119
- handlerExecutionContext
120
- );
121
- }
122
-
123
- private serialize(input: SignalWorkflowExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
124
- return serializeAws_json1_0SignalWorkflowExecutionCommand(input, context);
125
- }
126
-
127
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SignalWorkflowExecutionCommandOutput> {
128
- return deserializeAws_json1_0SignalWorkflowExecutionCommand(output, context);
129
- }
130
-
131
- // Start section: command_body_extra
132
- // End section: command_body_extra
133
- }
@@ -1,160 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { Run, StartWorkflowExecutionInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0StartWorkflowExecutionCommand,
17
- serializeAws_json1_0StartWorkflowExecutionCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface StartWorkflowExecutionCommandInput extends StartWorkflowExecutionInput {}
22
- export interface StartWorkflowExecutionCommandOutput extends Run, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Starts an execution of the workflow type in the specified domain using the provided
26
- * <code>workflowId</code> and input data.</p>
27
- *
28
- * <p>This action returns the newly started workflow execution.</p>
29
- *
30
- * <p>
31
- * <b>Access Control</b>
32
- * </p>
33
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
34
- * follows:</p>
35
- * <ul>
36
- * <li>
37
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
38
- * only specified domains.</p>
39
- * </li>
40
- * <li>
41
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
42
- * action.</p>
43
- * </li>
44
- * <li>
45
- * <p>Constrain the following parameters by using a <code>Condition</code> element with
46
- * the appropriate keys.</p>
47
- * <ul>
48
- * <li>
49
- * <p>
50
- * <code>tagList.member.0</code>: The key is <code>swf:tagList.member.0</code>.</p>
51
- * </li>
52
- * <li>
53
- * <p>
54
- * <code>tagList.member.1</code>: The key is <code>swf:tagList.member.1</code>.</p>
55
- * </li>
56
- * <li>
57
- * <p>
58
- * <code>tagList.member.2</code>: The key is <code>swf:tagList.member.2</code>.</p>
59
- * </li>
60
- * <li>
61
- * <p>
62
- * <code>tagList.member.3</code>: The key is <code>swf:tagList.member.3</code>.</p>
63
- * </li>
64
- * <li>
65
- * <p>
66
- * <code>tagList.member.4</code>: The key is <code>swf:tagList.member.4</code>.</p>
67
- * </li>
68
- * <li>
69
- * <p>
70
- * <code>taskList</code>: String constraint. The key is
71
- * <code>swf:taskList.name</code>.</p>
72
- * </li>
73
- * <li>
74
- * <p>
75
- * <code>workflowType.name</code>: String constraint. The key is
76
- * <code>swf:workflowType.name</code>.</p>
77
- * </li>
78
- * <li>
79
- * <p>
80
- * <code>workflowType.version</code>: String constraint. The key is
81
- * <code>swf:workflowType.version</code>.</p>
82
- * </li>
83
- * </ul>
84
- * </li>
85
- * </ul>
86
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
87
- * parameter values fall outside the specified constraints, the action fails. The associated
88
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
89
- * 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
90
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
91
- * @example
92
- * Use a bare-bones client and the command you need to make an API call.
93
- * ```javascript
94
- * import { SWFClient, StartWorkflowExecutionCommand } from "@aws-sdk/client-swf"; // ES Modules import
95
- * // const { SWFClient, StartWorkflowExecutionCommand } = require("@aws-sdk/client-swf"); // CommonJS import
96
- * const client = new SWFClient(config);
97
- * const command = new StartWorkflowExecutionCommand(input);
98
- * const response = await client.send(command);
99
- * ```
100
- *
101
- * @see {@link StartWorkflowExecutionCommandInput} for command's `input` shape.
102
- * @see {@link StartWorkflowExecutionCommandOutput} for command's `response` shape.
103
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
104
- *
105
- */
106
- export class StartWorkflowExecutionCommand extends $Command<
107
- StartWorkflowExecutionCommandInput,
108
- StartWorkflowExecutionCommandOutput,
109
- SWFClientResolvedConfig
110
- > {
111
- // Start section: command_properties
112
- // End section: command_properties
113
-
114
- constructor(readonly input: StartWorkflowExecutionCommandInput) {
115
- // Start section: command_constructor
116
- super();
117
- // End section: command_constructor
118
- }
119
-
120
- /**
121
- * @internal
122
- */
123
- resolveMiddleware(
124
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
125
- configuration: SWFClientResolvedConfig,
126
- options?: __HttpHandlerOptions
127
- ): Handler<StartWorkflowExecutionCommandInput, StartWorkflowExecutionCommandOutput> {
128
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
129
-
130
- const stack = clientStack.concat(this.middlewareStack);
131
-
132
- const { logger } = configuration;
133
- const clientName = "SWFClient";
134
- const commandName = "StartWorkflowExecutionCommand";
135
- const handlerExecutionContext: HandlerExecutionContext = {
136
- logger,
137
- clientName,
138
- commandName,
139
- inputFilterSensitiveLog: StartWorkflowExecutionInput.filterSensitiveLog,
140
- outputFilterSensitiveLog: Run.filterSensitiveLog,
141
- };
142
- const { requestHandler } = configuration;
143
- return stack.resolve(
144
- (request: FinalizeHandlerArguments<any>) =>
145
- requestHandler.handle(request.request as __HttpRequest, options || {}),
146
- handlerExecutionContext
147
- );
148
- }
149
-
150
- private serialize(input: StartWorkflowExecutionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
151
- return serializeAws_json1_0StartWorkflowExecutionCommand(input, context);
152
- }
153
-
154
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartWorkflowExecutionCommandOutput> {
155
- return deserializeAws_json1_0StartWorkflowExecutionCommand(output, context);
156
- }
157
-
158
- // Start section: command_body_extra
159
- // End section: command_body_extra
160
- }