@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,95 +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 { ListTagsForResourceInput, ListTagsForResourceOutput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0ListTagsForResourceCommand,
17
- serializeAws_json1_0ListTagsForResourceCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface ListTagsForResourceCommandInput extends ListTagsForResourceInput {}
22
- export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOutput, __MetadataBearer {}
23
-
24
- /**
25
- * <p>List tags for a given domain.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { SWFClient, ListTagsForResourceCommand } from "@aws-sdk/client-swf"; // ES Modules import
30
- * // const { SWFClient, ListTagsForResourceCommand } = require("@aws-sdk/client-swf"); // CommonJS import
31
- * const client = new SWFClient(config);
32
- * const command = new ListTagsForResourceCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
37
- * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
38
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class ListTagsForResourceCommand extends $Command<
42
- ListTagsForResourceCommandInput,
43
- ListTagsForResourceCommandOutput,
44
- SWFClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: ListTagsForResourceCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: SWFClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "SWFClient";
69
- const commandName = "ListTagsForResourceCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: ListTagsForResourceInput.filterSensitiveLog,
75
- outputFilterSensitiveLog: ListTagsForResourceOutput.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_0ListTagsForResourceCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
90
- return deserializeAws_json1_0ListTagsForResourceCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,119 +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 { ListWorkflowTypesInput, WorkflowTypeInfos } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0ListWorkflowTypesCommand,
17
- serializeAws_json1_0ListWorkflowTypesCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface ListWorkflowTypesCommandInput extends ListWorkflowTypesInput {}
22
- export interface ListWorkflowTypesCommandOutput extends WorkflowTypeInfos, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Returns information about workflow types in the specified domain. The results may be
26
- * split into multiple pages that can be retrieved by making the call repeatedly.</p>
27
- * <p>
28
- * <b>Access Control</b>
29
- * </p>
30
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
31
- * follows:</p>
32
- * <ul>
33
- * <li>
34
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
35
- * only specified domains.</p>
36
- * </li>
37
- * <li>
38
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
39
- * action.</p>
40
- * </li>
41
- * <li>
42
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
43
- * </li>
44
- * </ul>
45
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
46
- * parameter values fall outside the specified constraints, the action fails. The associated
47
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
48
- * 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
49
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
50
- * @example
51
- * Use a bare-bones client and the command you need to make an API call.
52
- * ```javascript
53
- * import { SWFClient, ListWorkflowTypesCommand } from "@aws-sdk/client-swf"; // ES Modules import
54
- * // const { SWFClient, ListWorkflowTypesCommand } = require("@aws-sdk/client-swf"); // CommonJS import
55
- * const client = new SWFClient(config);
56
- * const command = new ListWorkflowTypesCommand(input);
57
- * const response = await client.send(command);
58
- * ```
59
- *
60
- * @see {@link ListWorkflowTypesCommandInput} for command's `input` shape.
61
- * @see {@link ListWorkflowTypesCommandOutput} for command's `response` shape.
62
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
63
- *
64
- */
65
- export class ListWorkflowTypesCommand extends $Command<
66
- ListWorkflowTypesCommandInput,
67
- ListWorkflowTypesCommandOutput,
68
- SWFClientResolvedConfig
69
- > {
70
- // Start section: command_properties
71
- // End section: command_properties
72
-
73
- constructor(readonly input: ListWorkflowTypesCommandInput) {
74
- // Start section: command_constructor
75
- super();
76
- // End section: command_constructor
77
- }
78
-
79
- /**
80
- * @internal
81
- */
82
- resolveMiddleware(
83
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
84
- configuration: SWFClientResolvedConfig,
85
- options?: __HttpHandlerOptions
86
- ): Handler<ListWorkflowTypesCommandInput, ListWorkflowTypesCommandOutput> {
87
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
88
-
89
- const stack = clientStack.concat(this.middlewareStack);
90
-
91
- const { logger } = configuration;
92
- const clientName = "SWFClient";
93
- const commandName = "ListWorkflowTypesCommand";
94
- const handlerExecutionContext: HandlerExecutionContext = {
95
- logger,
96
- clientName,
97
- commandName,
98
- inputFilterSensitiveLog: ListWorkflowTypesInput.filterSensitiveLog,
99
- outputFilterSensitiveLog: WorkflowTypeInfos.filterSensitiveLog,
100
- };
101
- const { requestHandler } = configuration;
102
- return stack.resolve(
103
- (request: FinalizeHandlerArguments<any>) =>
104
- requestHandler.handle(request.request as __HttpRequest, options || {}),
105
- handlerExecutionContext
106
- );
107
- }
108
-
109
- private serialize(input: ListWorkflowTypesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
110
- return serializeAws_json1_0ListWorkflowTypesCommand(input, context);
111
- }
112
-
113
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListWorkflowTypesCommandOutput> {
114
- return deserializeAws_json1_0ListWorkflowTypesCommand(output, context);
115
- }
116
-
117
- // Start section: command_body_extra
118
- // End section: command_body_extra
119
- }
@@ -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 { ActivityTask, PollForActivityTaskInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0PollForActivityTaskCommand,
17
- serializeAws_json1_0PollForActivityTaskCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface PollForActivityTaskCommandInput extends PollForActivityTaskInput {}
22
- export interface PollForActivityTaskCommandOutput extends ActivityTask, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by workers to get an <a>ActivityTask</a> from the specified activity
26
- * <code>taskList</code>. This initiates a long poll, where the service holds the HTTP
27
- * connection open and responds as soon as a task becomes available. The maximum time the service
28
- * holds on to the request before responding is 60 seconds. If no task is available within 60
29
- * seconds, the poll returns an empty result. An empty result, in this context, means that an
30
- * ActivityTask is returned, but that the value of taskToken is an empty string. If a task is
31
- * returned, the worker should use its type to identify and process it correctly.</p>
32
- * <important>
33
- * <p>Workers should set their client side socket timeout to at least 70 seconds (10
34
- * seconds higher than the maximum time service may hold the poll request).</p>
35
- * </important>
36
- * <p>
37
- * <b>Access Control</b>
38
- * </p>
39
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
40
- * follows:</p>
41
- * <ul>
42
- * <li>
43
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
44
- * only specified domains.</p>
45
- * </li>
46
- * <li>
47
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
48
- * action.</p>
49
- * </li>
50
- * <li>
51
- * <p>Constrain the <code>taskList.name</code> parameter by using a
52
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
53
- * action to access only certain task lists.</p>
54
- * </li>
55
- * </ul>
56
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
57
- * parameter values fall outside the specified constraints, the action fails. The associated
58
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
59
- * 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
60
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
61
- * @example
62
- * Use a bare-bones client and the command you need to make an API call.
63
- * ```javascript
64
- * import { SWFClient, PollForActivityTaskCommand } from "@aws-sdk/client-swf"; // ES Modules import
65
- * // const { SWFClient, PollForActivityTaskCommand } = require("@aws-sdk/client-swf"); // CommonJS import
66
- * const client = new SWFClient(config);
67
- * const command = new PollForActivityTaskCommand(input);
68
- * const response = await client.send(command);
69
- * ```
70
- *
71
- * @see {@link PollForActivityTaskCommandInput} for command's `input` shape.
72
- * @see {@link PollForActivityTaskCommandOutput} for command's `response` shape.
73
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
74
- *
75
- */
76
- export class PollForActivityTaskCommand extends $Command<
77
- PollForActivityTaskCommandInput,
78
- PollForActivityTaskCommandOutput,
79
- SWFClientResolvedConfig
80
- > {
81
- // Start section: command_properties
82
- // End section: command_properties
83
-
84
- constructor(readonly input: PollForActivityTaskCommandInput) {
85
- // Start section: command_constructor
86
- super();
87
- // End section: command_constructor
88
- }
89
-
90
- /**
91
- * @internal
92
- */
93
- resolveMiddleware(
94
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
95
- configuration: SWFClientResolvedConfig,
96
- options?: __HttpHandlerOptions
97
- ): Handler<PollForActivityTaskCommandInput, PollForActivityTaskCommandOutput> {
98
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
99
-
100
- const stack = clientStack.concat(this.middlewareStack);
101
-
102
- const { logger } = configuration;
103
- const clientName = "SWFClient";
104
- const commandName = "PollForActivityTaskCommand";
105
- const handlerExecutionContext: HandlerExecutionContext = {
106
- logger,
107
- clientName,
108
- commandName,
109
- inputFilterSensitiveLog: PollForActivityTaskInput.filterSensitiveLog,
110
- outputFilterSensitiveLog: ActivityTask.filterSensitiveLog,
111
- };
112
- const { requestHandler } = configuration;
113
- return stack.resolve(
114
- (request: FinalizeHandlerArguments<any>) =>
115
- requestHandler.handle(request.request as __HttpRequest, options || {}),
116
- handlerExecutionContext
117
- );
118
- }
119
-
120
- private serialize(input: PollForActivityTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
121
- return serializeAws_json1_0PollForActivityTaskCommand(input, context);
122
- }
123
-
124
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PollForActivityTaskCommandOutput> {
125
- return deserializeAws_json1_0PollForActivityTaskCommand(output, context);
126
- }
127
-
128
- // Start section: command_body_extra
129
- // End section: command_body_extra
130
- }
@@ -1,142 +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 { DecisionTask, PollForDecisionTaskInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0PollForDecisionTaskCommand,
17
- serializeAws_json1_0PollForDecisionTaskCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface PollForDecisionTaskCommandInput extends PollForDecisionTaskInput {}
22
- export interface PollForDecisionTaskCommandOutput extends DecisionTask, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by deciders to get a <a>DecisionTask</a> from the specified decision
26
- * <code>taskList</code>. A decision task may be returned for any open workflow execution that
27
- * is using the specified task list. The task includes a paginated view of the history of the
28
- * workflow execution. The decider should use the workflow type and the history to determine how
29
- * to properly handle the task.</p>
30
- * <p>This action initiates a long poll, where the service holds the HTTP connection open and
31
- * responds as soon a task becomes available. If no decision task is available in the specified
32
- * task list before the timeout of 60 seconds expires, an empty result is returned. An empty
33
- * result, in this context, means that a DecisionTask is returned, but that the value of
34
- * taskToken is an empty string.</p>
35
- * <important>
36
- * <p>Deciders should set their client side socket timeout to at least 70 seconds (10
37
- * seconds higher than the timeout).</p>
38
- * </important>
39
- * <important>
40
- * <p>Because the number of workflow history events for a single workflow execution might
41
- * be very large, the result returned might be split up across a number of pages. To retrieve
42
- * subsequent pages, make additional calls to <code>PollForDecisionTask</code> using the
43
- * <code>nextPageToken</code> returned by the initial call. Note that you do
44
- * <i>not</i> call <code>GetWorkflowExecutionHistory</code> with this
45
- * <code>nextPageToken</code>. Instead, call <code>PollForDecisionTask</code>
46
- * again.</p>
47
- * </important>
48
- * <p>
49
- * <b>Access Control</b>
50
- * </p>
51
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
52
- * follows:</p>
53
- * <ul>
54
- * <li>
55
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
56
- * only specified domains.</p>
57
- * </li>
58
- * <li>
59
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
60
- * action.</p>
61
- * </li>
62
- * <li>
63
- * <p>Constrain the <code>taskList.name</code> parameter by using a
64
- * <code>Condition</code> element with the <code>swf:taskList.name</code> key to allow the
65
- * action to access only certain task lists.</p>
66
- * </li>
67
- * </ul>
68
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
69
- * parameter values fall outside the specified constraints, the action fails. The associated
70
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
71
- * 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
72
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
73
- * @example
74
- * Use a bare-bones client and the command you need to make an API call.
75
- * ```javascript
76
- * import { SWFClient, PollForDecisionTaskCommand } from "@aws-sdk/client-swf"; // ES Modules import
77
- * // const { SWFClient, PollForDecisionTaskCommand } = require("@aws-sdk/client-swf"); // CommonJS import
78
- * const client = new SWFClient(config);
79
- * const command = new PollForDecisionTaskCommand(input);
80
- * const response = await client.send(command);
81
- * ```
82
- *
83
- * @see {@link PollForDecisionTaskCommandInput} for command's `input` shape.
84
- * @see {@link PollForDecisionTaskCommandOutput} for command's `response` shape.
85
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
86
- *
87
- */
88
- export class PollForDecisionTaskCommand extends $Command<
89
- PollForDecisionTaskCommandInput,
90
- PollForDecisionTaskCommandOutput,
91
- SWFClientResolvedConfig
92
- > {
93
- // Start section: command_properties
94
- // End section: command_properties
95
-
96
- constructor(readonly input: PollForDecisionTaskCommandInput) {
97
- // Start section: command_constructor
98
- super();
99
- // End section: command_constructor
100
- }
101
-
102
- /**
103
- * @internal
104
- */
105
- resolveMiddleware(
106
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
107
- configuration: SWFClientResolvedConfig,
108
- options?: __HttpHandlerOptions
109
- ): Handler<PollForDecisionTaskCommandInput, PollForDecisionTaskCommandOutput> {
110
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
111
-
112
- const stack = clientStack.concat(this.middlewareStack);
113
-
114
- const { logger } = configuration;
115
- const clientName = "SWFClient";
116
- const commandName = "PollForDecisionTaskCommand";
117
- const handlerExecutionContext: HandlerExecutionContext = {
118
- logger,
119
- clientName,
120
- commandName,
121
- inputFilterSensitiveLog: PollForDecisionTaskInput.filterSensitiveLog,
122
- outputFilterSensitiveLog: DecisionTask.filterSensitiveLog,
123
- };
124
- const { requestHandler } = configuration;
125
- return stack.resolve(
126
- (request: FinalizeHandlerArguments<any>) =>
127
- requestHandler.handle(request.request as __HttpRequest, options || {}),
128
- handlerExecutionContext
129
- );
130
- }
131
-
132
- private serialize(input: PollForDecisionTaskCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
133
- return serializeAws_json1_0PollForDecisionTaskCommand(input, context);
134
- }
135
-
136
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PollForDecisionTaskCommandOutput> {
137
- return deserializeAws_json1_0PollForDecisionTaskCommand(output, context);
138
- }
139
-
140
- // Start section: command_body_extra
141
- // End section: command_body_extra
142
- }
@@ -1,145 +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 { ActivityTaskStatus, RecordActivityTaskHeartbeatInput } from "../models/models_0";
15
- import {
16
- deserializeAws_json1_0RecordActivityTaskHeartbeatCommand,
17
- serializeAws_json1_0RecordActivityTaskHeartbeatCommand,
18
- } from "../protocols/Aws_json1_0";
19
- import { ServiceInputTypes, ServiceOutputTypes, SWFClientResolvedConfig } from "../SWFClient";
20
-
21
- export interface RecordActivityTaskHeartbeatCommandInput extends RecordActivityTaskHeartbeatInput {}
22
- export interface RecordActivityTaskHeartbeatCommandOutput extends ActivityTaskStatus, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Used by activity workers to report to the service that the <a>ActivityTask</a> represented by the specified <code>taskToken</code> is still making progress. The worker
26
- * can also specify details of the progress, for example percent complete, using the
27
- * <code>details</code> parameter. This action can also be used by the worker as a mechanism to
28
- * check if cancellation is being requested for the activity task. If a cancellation is being
29
- * attempted for the specified task, then the boolean <code>cancelRequested</code> flag returned
30
- * by the service is set to <code>true</code>.</p>
31
- * <p>This action resets the <code>taskHeartbeatTimeout</code> clock. The
32
- * <code>taskHeartbeatTimeout</code> is specified in <a>RegisterActivityType</a>.</p>
33
- * <p>This action doesn't in itself create an event in the workflow execution history.
34
- * However, if the task times out, the workflow execution history contains a
35
- * <code>ActivityTaskTimedOut</code> event that contains the information from the last
36
- * heartbeat generated by the activity worker.</p>
37
- * <note>
38
- * <p>The <code>taskStartToCloseTimeout</code> of an activity type is the maximum duration
39
- * of an activity task, regardless of the number of <a>RecordActivityTaskHeartbeat</a> requests received. The <code>taskStartToCloseTimeout</code> is also specified in <a>RegisterActivityType</a>.</p>
40
- * </note>
41
- * <note>
42
- * <p>This operation is only useful for long-lived activities to report liveliness of the
43
- * task and to determine if a cancellation is being attempted.</p>
44
- * </note>
45
- * <important>
46
- * <p>If the <code>cancelRequested</code> flag returns <code>true</code>, a cancellation is
47
- * being attempted. If the worker can cancel the activity, it should respond with <a>RespondActivityTaskCanceled</a>. Otherwise, it should ignore the cancellation
48
- * request.</p>
49
- * </important>
50
- * <p>
51
- * <b>Access Control</b>
52
- * </p>
53
- * <p>You can use IAM policies to control this action's access to Amazon SWF resources as
54
- * follows:</p>
55
- * <ul>
56
- * <li>
57
- * <p>Use a <code>Resource</code> element with the domain name to limit the action to
58
- * only specified domains.</p>
59
- * </li>
60
- * <li>
61
- * <p>Use an <code>Action</code> element to allow or deny permission to call this
62
- * action.</p>
63
- * </li>
64
- * <li>
65
- * <p>You cannot use an IAM policy to constrain this action's parameters.</p>
66
- * </li>
67
- * </ul>
68
- * <p>If the caller doesn't have sufficient permissions to invoke the action, or the
69
- * parameter values fall outside the specified constraints, the action fails. The associated
70
- * event attribute's <code>cause</code> parameter is set to <code>OPERATION_NOT_PERMITTED</code>.
71
- * 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
72
- * Workflows</a> in the <i>Amazon SWF Developer Guide</i>.</p>
73
- * @example
74
- * Use a bare-bones client and the command you need to make an API call.
75
- * ```javascript
76
- * import { SWFClient, RecordActivityTaskHeartbeatCommand } from "@aws-sdk/client-swf"; // ES Modules import
77
- * // const { SWFClient, RecordActivityTaskHeartbeatCommand } = require("@aws-sdk/client-swf"); // CommonJS import
78
- * const client = new SWFClient(config);
79
- * const command = new RecordActivityTaskHeartbeatCommand(input);
80
- * const response = await client.send(command);
81
- * ```
82
- *
83
- * @see {@link RecordActivityTaskHeartbeatCommandInput} for command's `input` shape.
84
- * @see {@link RecordActivityTaskHeartbeatCommandOutput} for command's `response` shape.
85
- * @see {@link SWFClientResolvedConfig | config} for command's `input` shape.
86
- *
87
- */
88
- export class RecordActivityTaskHeartbeatCommand extends $Command<
89
- RecordActivityTaskHeartbeatCommandInput,
90
- RecordActivityTaskHeartbeatCommandOutput,
91
- SWFClientResolvedConfig
92
- > {
93
- // Start section: command_properties
94
- // End section: command_properties
95
-
96
- constructor(readonly input: RecordActivityTaskHeartbeatCommandInput) {
97
- // Start section: command_constructor
98
- super();
99
- // End section: command_constructor
100
- }
101
-
102
- /**
103
- * @internal
104
- */
105
- resolveMiddleware(
106
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
107
- configuration: SWFClientResolvedConfig,
108
- options?: __HttpHandlerOptions
109
- ): Handler<RecordActivityTaskHeartbeatCommandInput, RecordActivityTaskHeartbeatCommandOutput> {
110
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
111
-
112
- const stack = clientStack.concat(this.middlewareStack);
113
-
114
- const { logger } = configuration;
115
- const clientName = "SWFClient";
116
- const commandName = "RecordActivityTaskHeartbeatCommand";
117
- const handlerExecutionContext: HandlerExecutionContext = {
118
- logger,
119
- clientName,
120
- commandName,
121
- inputFilterSensitiveLog: RecordActivityTaskHeartbeatInput.filterSensitiveLog,
122
- outputFilterSensitiveLog: ActivityTaskStatus.filterSensitiveLog,
123
- };
124
- const { requestHandler } = configuration;
125
- return stack.resolve(
126
- (request: FinalizeHandlerArguments<any>) =>
127
- requestHandler.handle(request.request as __HttpRequest, options || {}),
128
- handlerExecutionContext
129
- );
130
- }
131
-
132
- private serialize(input: RecordActivityTaskHeartbeatCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
133
- return serializeAws_json1_0RecordActivityTaskHeartbeatCommand(input, context);
134
- }
135
-
136
- private deserialize(
137
- output: __HttpResponse,
138
- context: __SerdeContext
139
- ): Promise<RecordActivityTaskHeartbeatCommandOutput> {
140
- return deserializeAws_json1_0RecordActivityTaskHeartbeatCommand(output, context);
141
- }
142
-
143
- // Start section: command_body_extra
144
- // End section: command_body_extra
145
- }