@aws-sdk/client-sfn 3.34.0 → 3.37.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 (315) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SFN.js +1 -20
  3. package/dist-cjs/SFNClient.js +35 -0
  4. package/dist-cjs/commands/CreateActivityCommand.js +36 -0
  5. package/dist-cjs/commands/CreateStateMachineCommand.js +36 -0
  6. package/{dist/cjs → dist-cjs}/commands/DeleteActivityCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/DeleteStateMachineCommand.js +2 -33
  8. package/{dist/cjs → dist-cjs}/commands/DescribeActivityCommand.js +2 -30
  9. package/{dist/cjs → dist-cjs}/commands/DescribeExecutionCommand.js +2 -31
  10. package/{dist/cjs → dist-cjs}/commands/DescribeStateMachineCommand.js +2 -30
  11. package/{dist/cjs → dist-cjs}/commands/DescribeStateMachineForExecutionCommand.js +2 -31
  12. package/dist-cjs/commands/GetActivityTaskCommand.js +36 -0
  13. package/dist-cjs/commands/GetExecutionHistoryCommand.js +36 -0
  14. package/{dist/cjs → dist-cjs}/commands/ListActivitiesCommand.js +2 -32
  15. package/dist-cjs/commands/ListExecutionsCommand.js +36 -0
  16. package/{dist/cjs → dist-cjs}/commands/ListStateMachinesCommand.js +2 -32
  17. package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -28
  18. package/{dist/cjs → dist-cjs}/commands/SendTaskFailureCommand.js +2 -28
  19. package/dist-cjs/commands/SendTaskHeartbeatCommand.js +36 -0
  20. package/{dist/cjs → dist-cjs}/commands/SendTaskSuccessCommand.js +2 -29
  21. package/{dist/cjs → dist-cjs}/commands/StartExecutionCommand.js +2 -35
  22. package/{dist/cjs → dist-cjs}/commands/StartSyncExecutionCommand.js +2 -27
  23. package/{dist/cjs → dist-cjs}/commands/StopExecutionCommand.js +2 -28
  24. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -32
  25. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
  26. package/dist-cjs/commands/UpdateStateMachineCommand.js +36 -0
  27. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  28. package/{dist/cjs → dist-cjs}/index.js +0 -1
  29. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  30. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -334
  31. package/{dist/cjs → dist-cjs}/pagination/GetExecutionHistoryPaginator.js +1 -12
  32. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  33. package/{dist/cjs → dist-cjs}/pagination/ListActivitiesPaginator.js +1 -12
  34. package/{dist/cjs → dist-cjs}/pagination/ListExecutionsPaginator.js +1 -12
  35. package/{dist/cjs → dist-cjs}/pagination/ListStateMachinesPaginator.js +1 -12
  36. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_0.js +0 -6
  37. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  38. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  39. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  40. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  41. package/{dist/es → dist-es}/SFN.js +1 -2
  42. package/{dist/es → dist-es}/SFNClient.js +1 -2
  43. package/{dist/es → dist-es}/commands/CreateActivityCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/CreateStateMachineCommand.js +2 -3
  45. package/{dist/es → dist-es}/commands/DeleteActivityCommand.js +2 -3
  46. package/{dist/es → dist-es}/commands/DeleteStateMachineCommand.js +2 -3
  47. package/{dist/es → dist-es}/commands/DescribeActivityCommand.js +2 -3
  48. package/{dist/es → dist-es}/commands/DescribeExecutionCommand.js +2 -3
  49. package/{dist/es → dist-es}/commands/DescribeStateMachineCommand.js +2 -3
  50. package/{dist/es → dist-es}/commands/DescribeStateMachineForExecutionCommand.js +2 -3
  51. package/{dist/es → dist-es}/commands/GetActivityTaskCommand.js +2 -3
  52. package/{dist/es → dist-es}/commands/GetExecutionHistoryCommand.js +2 -3
  53. package/{dist/es → dist-es}/commands/ListActivitiesCommand.js +2 -3
  54. package/{dist/es → dist-es}/commands/ListExecutionsCommand.js +2 -3
  55. package/{dist/es → dist-es}/commands/ListStateMachinesCommand.js +2 -3
  56. package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
  57. package/{dist/es → dist-es}/commands/SendTaskFailureCommand.js +2 -3
  58. package/{dist/es → dist-es}/commands/SendTaskHeartbeatCommand.js +2 -3
  59. package/{dist/es → dist-es}/commands/SendTaskSuccessCommand.js +2 -3
  60. package/{dist/es → dist-es}/commands/StartExecutionCommand.js +2 -3
  61. package/{dist/es → dist-es}/commands/StartSyncExecutionCommand.js +2 -3
  62. package/{dist/es → dist-es}/commands/StopExecutionCommand.js +2 -3
  63. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  64. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  65. package/{dist/es → dist-es}/commands/UpdateStateMachineCommand.js +2 -3
  66. package/{dist/es → dist-es}/endpoints.js +1 -2
  67. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  68. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  69. package/{dist/es → dist-es}/models/models_0.js +0 -1
  70. package/{dist/es → dist-es}/pagination/GetExecutionHistoryPaginator.js +1 -2
  71. package/dist-es/pagination/Interfaces.js +1 -0
  72. package/{dist/es → dist-es}/pagination/ListActivitiesPaginator.js +1 -2
  73. package/{dist/es → dist-es}/pagination/ListExecutionsPaginator.js +1 -2
  74. package/{dist/es → dist-es}/pagination/ListStateMachinesPaginator.js +1 -2
  75. package/{dist/es → dist-es}/protocols/Aws_json1_0.js +0 -1
  76. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  77. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  78. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  79. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  80. package/{dist/types → dist-types}/SFN.d.ts +2 -2
  81. package/{dist/types → dist-types}/SFNClient.d.ts +8 -8
  82. package/{dist/types → dist-types}/commands/CreateActivityCommand.d.ts +3 -3
  83. package/{dist/types → dist-types}/commands/CreateStateMachineCommand.d.ts +3 -3
  84. package/{dist/types → dist-types}/commands/DeleteActivityCommand.d.ts +3 -3
  85. package/{dist/types → dist-types}/commands/DeleteStateMachineCommand.d.ts +3 -3
  86. package/{dist/types → dist-types}/commands/DescribeActivityCommand.d.ts +3 -3
  87. package/{dist/types → dist-types}/commands/DescribeExecutionCommand.d.ts +3 -3
  88. package/{dist/types → dist-types}/commands/DescribeStateMachineCommand.d.ts +3 -3
  89. package/{dist/types → dist-types}/commands/DescribeStateMachineForExecutionCommand.d.ts +3 -3
  90. package/{dist/types → dist-types}/commands/GetActivityTaskCommand.d.ts +3 -3
  91. package/{dist/types → dist-types}/commands/GetExecutionHistoryCommand.d.ts +3 -3
  92. package/{dist/types → dist-types}/commands/ListActivitiesCommand.d.ts +3 -3
  93. package/{dist/types → dist-types}/commands/ListExecutionsCommand.d.ts +3 -3
  94. package/{dist/types → dist-types}/commands/ListStateMachinesCommand.d.ts +3 -3
  95. package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
  96. package/{dist/types → dist-types}/commands/SendTaskFailureCommand.d.ts +3 -3
  97. package/{dist/types → dist-types}/commands/SendTaskHeartbeatCommand.d.ts +3 -3
  98. package/{dist/types → dist-types}/commands/SendTaskSuccessCommand.d.ts +3 -3
  99. package/{dist/types → dist-types}/commands/StartExecutionCommand.d.ts +3 -3
  100. package/{dist/types → dist-types}/commands/StartSyncExecutionCommand.d.ts +3 -3
  101. package/{dist/types → dist-types}/commands/StopExecutionCommand.d.ts +3 -3
  102. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
  103. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
  104. package/{dist/types → dist-types}/commands/UpdateStateMachineCommand.d.ts +3 -3
  105. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  106. package/{index.ts → dist-types/index.d.ts} +0 -0
  107. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  108. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  109. package/{dist/types → dist-types}/pagination/GetExecutionHistoryPaginator.d.ts +1 -1
  110. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  111. package/{dist/types → dist-types}/pagination/ListActivitiesPaginator.d.ts +1 -1
  112. package/{dist/types → dist-types}/pagination/ListExecutionsPaginator.d.ts +1 -1
  113. package/{dist/types → dist-types}/pagination/ListStateMachinesPaginator.d.ts +1 -1
  114. package/{dist/types → dist-types}/protocols/Aws_json1_0.d.ts +2 -2
  115. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  116. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  117. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  118. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  119. package/dist-types/ts3.4/SFN.d.ts +120 -0
  120. package/{dist/types → dist-types}/ts3.4/SFNClient.d.ts +32 -112
  121. package/dist-types/ts3.4/commands/CreateActivityCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/CreateStateMachineCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/DeleteActivityCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/DeleteStateMachineCommand.d.ts +17 -0
  125. package/dist-types/ts3.4/commands/DescribeActivityCommand.d.ts +17 -0
  126. package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +17 -0
  127. package/dist-types/ts3.4/commands/DescribeStateMachineCommand.d.ts +17 -0
  128. package/dist-types/ts3.4/commands/DescribeStateMachineForExecutionCommand.d.ts +17 -0
  129. package/dist-types/ts3.4/commands/GetActivityTaskCommand.d.ts +17 -0
  130. package/dist-types/ts3.4/commands/GetExecutionHistoryCommand.d.ts +17 -0
  131. package/dist-types/ts3.4/commands/ListActivitiesCommand.d.ts +17 -0
  132. package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +17 -0
  133. package/dist-types/ts3.4/commands/ListStateMachinesCommand.d.ts +17 -0
  134. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  135. package/dist-types/ts3.4/commands/SendTaskFailureCommand.d.ts +17 -0
  136. package/dist-types/ts3.4/commands/SendTaskHeartbeatCommand.d.ts +17 -0
  137. package/dist-types/ts3.4/commands/SendTaskSuccessCommand.d.ts +17 -0
  138. package/dist-types/ts3.4/commands/StartExecutionCommand.d.ts +17 -0
  139. package/dist-types/ts3.4/commands/StartSyncExecutionCommand.d.ts +17 -0
  140. package/dist-types/ts3.4/commands/StopExecutionCommand.d.ts +17 -0
  141. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/UpdateStateMachineCommand.d.ts +17 -0
  144. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  145. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  146. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  147. package/dist-types/ts3.4/models/models_0.d.ts +1331 -0
  148. package/{dist/types → dist-types}/ts3.4/pagination/GetExecutionHistoryPaginator.d.ts +1 -1
  149. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  150. package/{dist/types → dist-types}/ts3.4/pagination/ListActivitiesPaginator.d.ts +1 -1
  151. package/{dist/types → dist-types}/ts3.4/pagination/ListExecutionsPaginator.d.ts +1 -1
  152. package/{dist/types → dist-types}/ts3.4/pagination/ListStateMachinesPaginator.d.ts +1 -1
  153. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_0.d.ts +2 -2
  154. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  155. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  156. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  157. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  158. package/package.json +45 -42
  159. package/SFN.ts +0 -993
  160. package/SFNClient.ts +0 -331
  161. package/commands/CreateActivityCommand.ts +0 -110
  162. package/commands/CreateStateMachineCommand.ts +0 -112
  163. package/commands/DeleteActivityCommand.ts +0 -94
  164. package/commands/DeleteStateMachineCommand.ts +0 -100
  165. package/commands/DescribeActivityCommand.ts +0 -97
  166. package/commands/DescribeExecutionCommand.ts +0 -98
  167. package/commands/DescribeStateMachineCommand.ts +0 -97
  168. package/commands/DescribeStateMachineForExecutionCommand.ts +0 -106
  169. package/commands/GetActivityTaskCommand.ts +0 -106
  170. package/commands/GetExecutionHistoryCommand.ts +0 -99
  171. package/commands/ListActivitiesCommand.ts +0 -99
  172. package/commands/ListExecutionsCommand.ts +0 -101
  173. package/commands/ListStateMachinesCommand.ts +0 -99
  174. package/commands/ListTagsForResourceCommand.ts +0 -95
  175. package/commands/SendTaskFailureCommand.ts +0 -95
  176. package/commands/SendTaskHeartbeatCommand.ts +0 -108
  177. package/commands/SendTaskSuccessCommand.ts +0 -96
  178. package/commands/StartExecutionCommand.ts +0 -102
  179. package/commands/StartSyncExecutionCommand.ts +0 -94
  180. package/commands/StopExecutionCommand.ts +0 -95
  181. package/commands/TagResourceCommand.ts +0 -99
  182. package/commands/UntagResourceCommand.ts +0 -94
  183. package/commands/UpdateStateMachineCommand.ts +0 -104
  184. package/dist/cjs/SFN.js.map +0 -1
  185. package/dist/cjs/SFNClient.js +0 -59
  186. package/dist/cjs/SFNClient.js.map +0 -1
  187. package/dist/cjs/commands/CreateActivityCommand.js +0 -77
  188. package/dist/cjs/commands/CreateActivityCommand.js.map +0 -1
  189. package/dist/cjs/commands/CreateStateMachineCommand.js +0 -79
  190. package/dist/cjs/commands/CreateStateMachineCommand.js.map +0 -1
  191. package/dist/cjs/commands/DeleteActivityCommand.js.map +0 -1
  192. package/dist/cjs/commands/DeleteStateMachineCommand.js.map +0 -1
  193. package/dist/cjs/commands/DescribeActivityCommand.js.map +0 -1
  194. package/dist/cjs/commands/DescribeExecutionCommand.js.map +0 -1
  195. package/dist/cjs/commands/DescribeStateMachineCommand.js.map +0 -1
  196. package/dist/cjs/commands/DescribeStateMachineForExecutionCommand.js.map +0 -1
  197. package/dist/cjs/commands/GetActivityTaskCommand.js +0 -73
  198. package/dist/cjs/commands/GetActivityTaskCommand.js.map +0 -1
  199. package/dist/cjs/commands/GetExecutionHistoryCommand.js +0 -66
  200. package/dist/cjs/commands/GetExecutionHistoryCommand.js.map +0 -1
  201. package/dist/cjs/commands/ListActivitiesCommand.js.map +0 -1
  202. package/dist/cjs/commands/ListExecutionsCommand.js +0 -68
  203. package/dist/cjs/commands/ListExecutionsCommand.js.map +0 -1
  204. package/dist/cjs/commands/ListStateMachinesCommand.js.map +0 -1
  205. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  206. package/dist/cjs/commands/SendTaskFailureCommand.js.map +0 -1
  207. package/dist/cjs/commands/SendTaskHeartbeatCommand.js +0 -75
  208. package/dist/cjs/commands/SendTaskHeartbeatCommand.js.map +0 -1
  209. package/dist/cjs/commands/SendTaskSuccessCommand.js.map +0 -1
  210. package/dist/cjs/commands/StartExecutionCommand.js.map +0 -1
  211. package/dist/cjs/commands/StartSyncExecutionCommand.js.map +0 -1
  212. package/dist/cjs/commands/StopExecutionCommand.js.map +0 -1
  213. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  214. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  215. package/dist/cjs/commands/UpdateStateMachineCommand.js +0 -71
  216. package/dist/cjs/commands/UpdateStateMachineCommand.js.map +0 -1
  217. package/dist/cjs/endpoints.js.map +0 -1
  218. package/dist/cjs/index.js.map +0 -1
  219. package/dist/cjs/models/index.js.map +0 -1
  220. package/dist/cjs/models/models_0.js.map +0 -1
  221. package/dist/cjs/package.json +0 -91
  222. package/dist/cjs/pagination/GetExecutionHistoryPaginator.js.map +0 -1
  223. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  224. package/dist/cjs/pagination/ListActivitiesPaginator.js.map +0 -1
  225. package/dist/cjs/pagination/ListExecutionsPaginator.js.map +0 -1
  226. package/dist/cjs/pagination/ListStateMachinesPaginator.js.map +0 -1
  227. package/dist/cjs/protocols/Aws_json1_0.js.map +0 -1
  228. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  229. package/dist/cjs/runtimeConfig.js.map +0 -1
  230. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  231. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  232. package/dist/es/SFN.js.map +0 -1
  233. package/dist/es/SFNClient.js.map +0 -1
  234. package/dist/es/commands/CreateActivityCommand.js.map +0 -1
  235. package/dist/es/commands/CreateStateMachineCommand.js.map +0 -1
  236. package/dist/es/commands/DeleteActivityCommand.js.map +0 -1
  237. package/dist/es/commands/DeleteStateMachineCommand.js.map +0 -1
  238. package/dist/es/commands/DescribeActivityCommand.js.map +0 -1
  239. package/dist/es/commands/DescribeExecutionCommand.js.map +0 -1
  240. package/dist/es/commands/DescribeStateMachineCommand.js.map +0 -1
  241. package/dist/es/commands/DescribeStateMachineForExecutionCommand.js.map +0 -1
  242. package/dist/es/commands/GetActivityTaskCommand.js.map +0 -1
  243. package/dist/es/commands/GetExecutionHistoryCommand.js.map +0 -1
  244. package/dist/es/commands/ListActivitiesCommand.js.map +0 -1
  245. package/dist/es/commands/ListExecutionsCommand.js.map +0 -1
  246. package/dist/es/commands/ListStateMachinesCommand.js.map +0 -1
  247. package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
  248. package/dist/es/commands/SendTaskFailureCommand.js.map +0 -1
  249. package/dist/es/commands/SendTaskHeartbeatCommand.js.map +0 -1
  250. package/dist/es/commands/SendTaskSuccessCommand.js.map +0 -1
  251. package/dist/es/commands/StartExecutionCommand.js.map +0 -1
  252. package/dist/es/commands/StartSyncExecutionCommand.js.map +0 -1
  253. package/dist/es/commands/StopExecutionCommand.js.map +0 -1
  254. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  255. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  256. package/dist/es/commands/UpdateStateMachineCommand.js.map +0 -1
  257. package/dist/es/endpoints.js.map +0 -1
  258. package/dist/es/index.js +0 -32
  259. package/dist/es/index.js.map +0 -1
  260. package/dist/es/models/index.js +0 -2
  261. package/dist/es/models/index.js.map +0 -1
  262. package/dist/es/models/models_0.js.map +0 -1
  263. package/dist/es/package.json +0 -91
  264. package/dist/es/pagination/GetExecutionHistoryPaginator.js.map +0 -1
  265. package/dist/es/pagination/Interfaces.js +0 -2
  266. package/dist/es/pagination/Interfaces.js.map +0 -1
  267. package/dist/es/pagination/ListActivitiesPaginator.js.map +0 -1
  268. package/dist/es/pagination/ListExecutionsPaginator.js.map +0 -1
  269. package/dist/es/pagination/ListStateMachinesPaginator.js.map +0 -1
  270. package/dist/es/protocols/Aws_json1_0.js.map +0 -1
  271. package/dist/es/runtimeConfig.browser.js.map +0 -1
  272. package/dist/es/runtimeConfig.js.map +0 -1
  273. package/dist/es/runtimeConfig.native.js.map +0 -1
  274. package/dist/es/runtimeConfig.shared.js.map +0 -1
  275. package/dist/types/ts3.4/SFN.d.ts +0 -313
  276. package/dist/types/ts3.4/commands/CreateActivityCommand.d.ts +0 -51
  277. package/dist/types/ts3.4/commands/CreateStateMachineCommand.d.ts +0 -53
  278. package/dist/types/ts3.4/commands/DeleteActivityCommand.d.ts +0 -35
  279. package/dist/types/ts3.4/commands/DeleteStateMachineCommand.d.ts +0 -41
  280. package/dist/types/ts3.4/commands/DescribeActivityCommand.d.ts +0 -38
  281. package/dist/types/ts3.4/commands/DescribeExecutionCommand.d.ts +0 -39
  282. package/dist/types/ts3.4/commands/DescribeStateMachineCommand.d.ts +0 -38
  283. package/dist/types/ts3.4/commands/DescribeStateMachineForExecutionCommand.d.ts +0 -39
  284. package/dist/types/ts3.4/commands/GetActivityTaskCommand.d.ts +0 -47
  285. package/dist/types/ts3.4/commands/GetExecutionHistoryCommand.d.ts +0 -40
  286. package/dist/types/ts3.4/commands/ListActivitiesCommand.d.ts +0 -40
  287. package/dist/types/ts3.4/commands/ListExecutionsCommand.d.ts +0 -42
  288. package/dist/types/ts3.4/commands/ListStateMachinesCommand.d.ts +0 -40
  289. package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -36
  290. package/dist/types/ts3.4/commands/SendTaskFailureCommand.d.ts +0 -36
  291. package/dist/types/ts3.4/commands/SendTaskHeartbeatCommand.d.ts +0 -49
  292. package/dist/types/ts3.4/commands/SendTaskSuccessCommand.d.ts +0 -37
  293. package/dist/types/ts3.4/commands/StartExecutionCommand.d.ts +0 -43
  294. package/dist/types/ts3.4/commands/StartSyncExecutionCommand.d.ts +0 -35
  295. package/dist/types/ts3.4/commands/StopExecutionCommand.d.ts +0 -36
  296. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -40
  297. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
  298. package/dist/types/ts3.4/commands/UpdateStateMachineCommand.d.ts +0 -45
  299. package/dist/types/ts3.4/models/models_0.d.ts +0 -2540
  300. package/endpoints.ts +0 -86
  301. package/jest.config.js +0 -4
  302. package/models/models_0.ts +0 -3374
  303. package/pagination/GetExecutionHistoryPaginator.ts +0 -58
  304. package/pagination/Interfaces.ts +0 -7
  305. package/pagination/ListActivitiesPaginator.ts +0 -58
  306. package/pagination/ListExecutionsPaginator.ts +0 -58
  307. package/pagination/ListStateMachinesPaginator.ts +0 -58
  308. package/protocols/Aws_json1_0.ts +0 -3957
  309. package/runtimeConfig.browser.ts +0 -40
  310. package/runtimeConfig.native.ts +0 -16
  311. package/runtimeConfig.shared.ts +0 -16
  312. package/runtimeConfig.ts +0 -45
  313. package/tsconfig.es.json +0 -10
  314. package/tsconfig.json +0 -31
  315. package/tsconfig.types.json +0 -8
package/SFNClient.ts DELETED
@@ -1,331 +0,0 @@
1
- import { CreateActivityCommandInput, CreateActivityCommandOutput } from "./commands/CreateActivityCommand";
2
- import { CreateStateMachineCommandInput, CreateStateMachineCommandOutput } from "./commands/CreateStateMachineCommand";
3
- import { DeleteActivityCommandInput, DeleteActivityCommandOutput } from "./commands/DeleteActivityCommand";
4
- import { DeleteStateMachineCommandInput, DeleteStateMachineCommandOutput } from "./commands/DeleteStateMachineCommand";
5
- import { DescribeActivityCommandInput, DescribeActivityCommandOutput } from "./commands/DescribeActivityCommand";
6
- import { DescribeExecutionCommandInput, DescribeExecutionCommandOutput } from "./commands/DescribeExecutionCommand";
7
- import {
8
- DescribeStateMachineCommandInput,
9
- DescribeStateMachineCommandOutput,
10
- } from "./commands/DescribeStateMachineCommand";
11
- import {
12
- DescribeStateMachineForExecutionCommandInput,
13
- DescribeStateMachineForExecutionCommandOutput,
14
- } from "./commands/DescribeStateMachineForExecutionCommand";
15
- import { GetActivityTaskCommandInput, GetActivityTaskCommandOutput } from "./commands/GetActivityTaskCommand";
16
- import {
17
- GetExecutionHistoryCommandInput,
18
- GetExecutionHistoryCommandOutput,
19
- } from "./commands/GetExecutionHistoryCommand";
20
- import { ListActivitiesCommandInput, ListActivitiesCommandOutput } from "./commands/ListActivitiesCommand";
21
- import { ListExecutionsCommandInput, ListExecutionsCommandOutput } from "./commands/ListExecutionsCommand";
22
- import { ListStateMachinesCommandInput, ListStateMachinesCommandOutput } from "./commands/ListStateMachinesCommand";
23
- import {
24
- ListTagsForResourceCommandInput,
25
- ListTagsForResourceCommandOutput,
26
- } from "./commands/ListTagsForResourceCommand";
27
- import { SendTaskFailureCommandInput, SendTaskFailureCommandOutput } from "./commands/SendTaskFailureCommand";
28
- import { SendTaskHeartbeatCommandInput, SendTaskHeartbeatCommandOutput } from "./commands/SendTaskHeartbeatCommand";
29
- import { SendTaskSuccessCommandInput, SendTaskSuccessCommandOutput } from "./commands/SendTaskSuccessCommand";
30
- import { StartExecutionCommandInput, StartExecutionCommandOutput } from "./commands/StartExecutionCommand";
31
- import { StartSyncExecutionCommandInput, StartSyncExecutionCommandOutput } from "./commands/StartSyncExecutionCommand";
32
- import { StopExecutionCommandInput, StopExecutionCommandOutput } from "./commands/StopExecutionCommand";
33
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
- import { UpdateStateMachineCommandInput, UpdateStateMachineCommandOutput } from "./commands/UpdateStateMachineCommand";
36
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
37
- import {
38
- EndpointsInputConfig,
39
- EndpointsResolvedConfig,
40
- RegionInputConfig,
41
- RegionResolvedConfig,
42
- resolveEndpointsConfig,
43
- resolveRegionConfig,
44
- } from "@aws-sdk/config-resolver";
45
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
46
- import {
47
- HostHeaderInputConfig,
48
- HostHeaderResolvedConfig,
49
- getHostHeaderPlugin,
50
- resolveHostHeaderConfig,
51
- } from "@aws-sdk/middleware-host-header";
52
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
53
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
54
- import {
55
- AwsAuthInputConfig,
56
- AwsAuthResolvedConfig,
57
- getAwsAuthPlugin,
58
- resolveAwsAuthConfig,
59
- } from "@aws-sdk/middleware-signing";
60
- import {
61
- UserAgentInputConfig,
62
- UserAgentResolvedConfig,
63
- getUserAgentPlugin,
64
- resolveUserAgentConfig,
65
- } from "@aws-sdk/middleware-user-agent";
66
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
67
- import {
68
- Client as __Client,
69
- SmithyConfiguration as __SmithyConfiguration,
70
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
71
- } from "@aws-sdk/smithy-client";
72
- import {
73
- Provider,
74
- RegionInfoProvider,
75
- Credentials as __Credentials,
76
- Decoder as __Decoder,
77
- Encoder as __Encoder,
78
- Hash as __Hash,
79
- HashConstructor as __HashConstructor,
80
- HttpHandlerOptions as __HttpHandlerOptions,
81
- Logger as __Logger,
82
- Provider as __Provider,
83
- StreamCollector as __StreamCollector,
84
- UrlParser as __UrlParser,
85
- UserAgent as __UserAgent,
86
- } from "@aws-sdk/types";
87
-
88
- export type ServiceInputTypes =
89
- | CreateActivityCommandInput
90
- | CreateStateMachineCommandInput
91
- | DeleteActivityCommandInput
92
- | DeleteStateMachineCommandInput
93
- | DescribeActivityCommandInput
94
- | DescribeExecutionCommandInput
95
- | DescribeStateMachineCommandInput
96
- | DescribeStateMachineForExecutionCommandInput
97
- | GetActivityTaskCommandInput
98
- | GetExecutionHistoryCommandInput
99
- | ListActivitiesCommandInput
100
- | ListExecutionsCommandInput
101
- | ListStateMachinesCommandInput
102
- | ListTagsForResourceCommandInput
103
- | SendTaskFailureCommandInput
104
- | SendTaskHeartbeatCommandInput
105
- | SendTaskSuccessCommandInput
106
- | StartExecutionCommandInput
107
- | StartSyncExecutionCommandInput
108
- | StopExecutionCommandInput
109
- | TagResourceCommandInput
110
- | UntagResourceCommandInput
111
- | UpdateStateMachineCommandInput;
112
-
113
- export type ServiceOutputTypes =
114
- | CreateActivityCommandOutput
115
- | CreateStateMachineCommandOutput
116
- | DeleteActivityCommandOutput
117
- | DeleteStateMachineCommandOutput
118
- | DescribeActivityCommandOutput
119
- | DescribeExecutionCommandOutput
120
- | DescribeStateMachineCommandOutput
121
- | DescribeStateMachineForExecutionCommandOutput
122
- | GetActivityTaskCommandOutput
123
- | GetExecutionHistoryCommandOutput
124
- | ListActivitiesCommandOutput
125
- | ListExecutionsCommandOutput
126
- | ListStateMachinesCommandOutput
127
- | ListTagsForResourceCommandOutput
128
- | SendTaskFailureCommandOutput
129
- | SendTaskHeartbeatCommandOutput
130
- | SendTaskSuccessCommandOutput
131
- | StartExecutionCommandOutput
132
- | StartSyncExecutionCommandOutput
133
- | StopExecutionCommandOutput
134
- | TagResourceCommandOutput
135
- | UntagResourceCommandOutput
136
- | UpdateStateMachineCommandOutput;
137
-
138
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
139
- /**
140
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
141
- */
142
- requestHandler?: __HttpHandler;
143
-
144
- /**
145
- * A constructor for a class implementing the {@link __Hash} interface
146
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
147
- * @internal
148
- */
149
- sha256?: __HashConstructor;
150
-
151
- /**
152
- * The function that will be used to convert strings into HTTP endpoints.
153
- * @internal
154
- */
155
- urlParser?: __UrlParser;
156
-
157
- /**
158
- * A function that can calculate the length of a request body.
159
- * @internal
160
- */
161
- bodyLengthChecker?: (body: any) => number | undefined;
162
-
163
- /**
164
- * A function that converts a stream into an array of bytes.
165
- * @internal
166
- */
167
- streamCollector?: __StreamCollector;
168
-
169
- /**
170
- * The function that will be used to convert a base64-encoded string to a byte array.
171
- * @internal
172
- */
173
- base64Decoder?: __Decoder;
174
-
175
- /**
176
- * The function that will be used to convert binary data to a base64-encoded string.
177
- * @internal
178
- */
179
- base64Encoder?: __Encoder;
180
-
181
- /**
182
- * The function that will be used to convert a UTF8-encoded string to a byte array.
183
- * @internal
184
- */
185
- utf8Decoder?: __Decoder;
186
-
187
- /**
188
- * The function that will be used to convert binary data to a UTF-8 encoded string.
189
- * @internal
190
- */
191
- utf8Encoder?: __Encoder;
192
-
193
- /**
194
- * The runtime environment.
195
- * @internal
196
- */
197
- runtime?: string;
198
-
199
- /**
200
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
201
- * trait of an operation.
202
- */
203
- disableHostPrefix?: boolean;
204
-
205
- /**
206
- * Value for how many times a request will be made at most in case of retry.
207
- */
208
- maxAttempts?: number | __Provider<number>;
209
-
210
- /**
211
- * Specifies which retry algorithm to use.
212
- */
213
- retryMode?: string | __Provider<string>;
214
-
215
- /**
216
- * Optional logger for logging debug/info/warn/error.
217
- */
218
- logger?: __Logger;
219
-
220
- /**
221
- * Unique service identifier.
222
- * @internal
223
- */
224
- serviceId?: string;
225
-
226
- /**
227
- * The AWS region to which this client will send requests
228
- */
229
- region?: string | __Provider<string>;
230
-
231
- /**
232
- * Default credentials provider; Not available in browser runtime.
233
- * @internal
234
- */
235
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
236
-
237
- /**
238
- * Fetch related hostname, signing name or signing region with given region.
239
- * @internal
240
- */
241
- regionInfoProvider?: RegionInfoProvider;
242
-
243
- /**
244
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
245
- * @internal
246
- */
247
- defaultUserAgentProvider?: Provider<__UserAgent>;
248
- }
249
-
250
- type SFNClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
251
- ClientDefaults &
252
- RegionInputConfig &
253
- EndpointsInputConfig &
254
- RetryInputConfig &
255
- HostHeaderInputConfig &
256
- AwsAuthInputConfig &
257
- UserAgentInputConfig;
258
- /**
259
- * The configuration interface of SFNClient class constructor that set the region, credentials and other options.
260
- */
261
- export interface SFNClientConfig extends SFNClientConfigType {}
262
-
263
- type SFNClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
264
- Required<ClientDefaults> &
265
- RegionResolvedConfig &
266
- EndpointsResolvedConfig &
267
- RetryResolvedConfig &
268
- HostHeaderResolvedConfig &
269
- AwsAuthResolvedConfig &
270
- UserAgentResolvedConfig;
271
- /**
272
- * The resolved configuration interface of SFNClient class. This is resolved and normalized from the {@link SFNClientConfig | constructor configuration interface}.
273
- */
274
- export interface SFNClientResolvedConfig extends SFNClientResolvedConfigType {}
275
-
276
- /**
277
- * <fullname>AWS Step Functions</fullname>
278
- * <p>AWS Step Functions is a service that lets you coordinate the components of distributed applications
279
- * and microservices using visual workflows.</p>
280
- * <p>You can use Step Functions to build applications from individual components, each of which performs
281
- * a discrete function, or <i>task</i>, allowing you to scale and change
282
- * applications quickly. Step Functions provides a console that helps visualize the components of your
283
- * application as a series of steps. Step Functions automatically triggers and tracks each step, and
284
- * retries steps when there are errors, so your application executes predictably and in the right
285
- * order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any
286
- * issues.</p>
287
- * <p>Step Functions manages operations and underlying infrastructure to ensure your application is
288
- * available at any scale. You can run tasks on AWS, your own servers, or any system that has
289
- * access to AWS. You can access and use Step Functions using the console, the AWS SDKs, or an HTTP API.
290
- * For more information about Step Functions, see the <i>
291
- * <a href="https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html">AWS Step Functions Developer Guide</a>
292
- * </i>.</p>
293
- */
294
- export class SFNClient extends __Client<
295
- __HttpHandlerOptions,
296
- ServiceInputTypes,
297
- ServiceOutputTypes,
298
- SFNClientResolvedConfig
299
- > {
300
- /**
301
- * The resolved configuration of SFNClient class. This is resolved and normalized from the {@link SFNClientConfig | constructor configuration interface}.
302
- */
303
- readonly config: SFNClientResolvedConfig;
304
-
305
- constructor(configuration: SFNClientConfig) {
306
- let _config_0 = __getRuntimeConfig(configuration);
307
- let _config_1 = resolveRegionConfig(_config_0);
308
- let _config_2 = resolveEndpointsConfig(_config_1);
309
- let _config_3 = resolveRetryConfig(_config_2);
310
- let _config_4 = resolveHostHeaderConfig(_config_3);
311
- let _config_5 = resolveAwsAuthConfig(_config_4);
312
- let _config_6 = resolveUserAgentConfig(_config_5);
313
- super(_config_6);
314
- this.config = _config_6;
315
- this.middlewareStack.use(getRetryPlugin(this.config));
316
- this.middlewareStack.use(getContentLengthPlugin(this.config));
317
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
318
- this.middlewareStack.use(getLoggerPlugin(this.config));
319
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
320
- this.middlewareStack.use(getUserAgentPlugin(this.config));
321
- }
322
-
323
- /**
324
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
325
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
326
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
327
- */
328
- destroy(): void {
329
- super.destroy();
330
- }
331
- }
@@ -1,110 +0,0 @@
1
- import { SFNClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SFNClient";
2
- import { CreateActivityInput, CreateActivityOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0CreateActivityCommand,
5
- serializeAws_json1_0CreateActivityCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateActivityCommandInput extends CreateActivityInput {}
21
- export interface CreateActivityCommandOutput extends CreateActivityOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Creates an activity. An activity is a task that you write in any programming language and
25
- * host on any machine that has access to AWS Step Functions. Activities must poll Step Functions using the
26
- * <code>GetActivityTask</code> API action and respond using <code>SendTask*</code> API
27
- * actions. This function lets Step Functions know the existence of your activity and returns an
28
- * identifier for use in a state machine and when polling from the activity.</p>
29
- * <note>
30
- * <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
31
- * </note>
32
- * <note>
33
- * <p>
34
- * <code>CreateActivity</code> is an idempotent API. Subsequent requests won’t create a
35
- * duplicate resource if it was already created. <code>CreateActivity</code>'s idempotency
36
- * check is based on the activity <code>name</code>. If a following request has different
37
- * <code>tags</code> values, Step Functions will ignore these differences and treat it as an
38
- * idempotent request of the previous. In this case, <code>tags</code> will not be updated,
39
- * even if they are different.</p>
40
- * </note>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { SFNClient, CreateActivityCommand } from "@aws-sdk/client-sfn"; // ES Modules import
45
- * // const { SFNClient, CreateActivityCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
46
- * const client = new SFNClient(config);
47
- * const command = new CreateActivityCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link CreateActivityCommandInput} for command's `input` shape.
52
- * @see {@link CreateActivityCommandOutput} for command's `response` shape.
53
- * @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
- export class CreateActivityCommand extends $Command<
57
- CreateActivityCommandInput,
58
- CreateActivityCommandOutput,
59
- SFNClientResolvedConfig
60
- > {
61
- // Start section: command_properties
62
- // End section: command_properties
63
-
64
- constructor(readonly input: CreateActivityCommandInput) {
65
- // Start section: command_constructor
66
- super();
67
- // End section: command_constructor
68
- }
69
-
70
- /**
71
- * @internal
72
- */
73
- resolveMiddleware(
74
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
75
- configuration: SFNClientResolvedConfig,
76
- options?: __HttpHandlerOptions
77
- ): Handler<CreateActivityCommandInput, CreateActivityCommandOutput> {
78
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
79
-
80
- const stack = clientStack.concat(this.middlewareStack);
81
-
82
- const { logger } = configuration;
83
- const clientName = "SFNClient";
84
- const commandName = "CreateActivityCommand";
85
- const handlerExecutionContext: HandlerExecutionContext = {
86
- logger,
87
- clientName,
88
- commandName,
89
- inputFilterSensitiveLog: CreateActivityInput.filterSensitiveLog,
90
- outputFilterSensitiveLog: CreateActivityOutput.filterSensitiveLog,
91
- };
92
- const { requestHandler } = configuration;
93
- return stack.resolve(
94
- (request: FinalizeHandlerArguments<any>) =>
95
- requestHandler.handle(request.request as __HttpRequest, options || {}),
96
- handlerExecutionContext
97
- );
98
- }
99
-
100
- private serialize(input: CreateActivityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
101
- return serializeAws_json1_0CreateActivityCommand(input, context);
102
- }
103
-
104
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateActivityCommandOutput> {
105
- return deserializeAws_json1_0CreateActivityCommand(output, context);
106
- }
107
-
108
- // Start section: command_body_extra
109
- // End section: command_body_extra
110
- }
@@ -1,112 +0,0 @@
1
- import { SFNClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SFNClient";
2
- import { CreateStateMachineInput, CreateStateMachineOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0CreateStateMachineCommand,
5
- serializeAws_json1_0CreateStateMachineCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CreateStateMachineCommandInput extends CreateStateMachineInput {}
21
- export interface CreateStateMachineCommandOutput extends CreateStateMachineOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Creates a state machine. A state machine consists of a collection of states that can do
25
- * work (<code>Task</code> states), determine to which states to transition next
26
- * (<code>Choice</code> states), stop an execution with an error (<code>Fail</code> states),
27
- * and so on. State machines are specified using a JSON-based, structured language. For more
28
- * information, see <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon States
29
- * Language</a> in the AWS Step Functions User Guide.</p>
30
- * <note>
31
- * <p>This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.</p>
32
- * </note>
33
- * <note>
34
- * <p>
35
- * <code>CreateStateMachine</code> is an idempotent API. Subsequent requests won’t create a
36
- * duplicate resource if it was already created. <code>CreateStateMachine</code>'s idempotency
37
- * check is based on the state machine <code>name</code>, <code>definition</code>,
38
- * <code>type</code>, <code>LoggingConfiguration</code> and <code>TracingConfiguration</code>. If a following request has a
39
- * different <code>roleArn</code> or <code>tags</code>, Step Functions will ignore these differences and
40
- * treat it as an idempotent request of the previous. In this case, <code>roleArn</code> and
41
- * <code>tags</code> will not be updated, even if they are different.</p>
42
- * </note>
43
- * @example
44
- * Use a bare-bones client and the command you need to make an API call.
45
- * ```javascript
46
- * import { SFNClient, CreateStateMachineCommand } from "@aws-sdk/client-sfn"; // ES Modules import
47
- * // const { SFNClient, CreateStateMachineCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
48
- * const client = new SFNClient(config);
49
- * const command = new CreateStateMachineCommand(input);
50
- * const response = await client.send(command);
51
- * ```
52
- *
53
- * @see {@link CreateStateMachineCommandInput} for command's `input` shape.
54
- * @see {@link CreateStateMachineCommandOutput} for command's `response` shape.
55
- * @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
56
- *
57
- */
58
- export class CreateStateMachineCommand extends $Command<
59
- CreateStateMachineCommandInput,
60
- CreateStateMachineCommandOutput,
61
- SFNClientResolvedConfig
62
- > {
63
- // Start section: command_properties
64
- // End section: command_properties
65
-
66
- constructor(readonly input: CreateStateMachineCommandInput) {
67
- // Start section: command_constructor
68
- super();
69
- // End section: command_constructor
70
- }
71
-
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(
76
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
77
- configuration: SFNClientResolvedConfig,
78
- options?: __HttpHandlerOptions
79
- ): Handler<CreateStateMachineCommandInput, CreateStateMachineCommandOutput> {
80
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81
-
82
- const stack = clientStack.concat(this.middlewareStack);
83
-
84
- const { logger } = configuration;
85
- const clientName = "SFNClient";
86
- const commandName = "CreateStateMachineCommand";
87
- const handlerExecutionContext: HandlerExecutionContext = {
88
- logger,
89
- clientName,
90
- commandName,
91
- inputFilterSensitiveLog: CreateStateMachineInput.filterSensitiveLog,
92
- outputFilterSensitiveLog: CreateStateMachineOutput.filterSensitiveLog,
93
- };
94
- const { requestHandler } = configuration;
95
- return stack.resolve(
96
- (request: FinalizeHandlerArguments<any>) =>
97
- requestHandler.handle(request.request as __HttpRequest, options || {}),
98
- handlerExecutionContext
99
- );
100
- }
101
-
102
- private serialize(input: CreateStateMachineCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
103
- return serializeAws_json1_0CreateStateMachineCommand(input, context);
104
- }
105
-
106
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateStateMachineCommandOutput> {
107
- return deserializeAws_json1_0CreateStateMachineCommand(output, context);
108
- }
109
-
110
- // Start section: command_body_extra
111
- // End section: command_body_extra
112
- }
@@ -1,94 +0,0 @@
1
- import { SFNClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SFNClient";
2
- import { DeleteActivityInput, DeleteActivityOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_0DeleteActivityCommand,
5
- serializeAws_json1_0DeleteActivityCommand,
6
- } from "../protocols/Aws_json1_0";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface DeleteActivityCommandInput extends DeleteActivityInput {}
21
- export interface DeleteActivityCommandOutput extends DeleteActivityOutput, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Deletes an activity.</p>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { SFNClient, DeleteActivityCommand } from "@aws-sdk/client-sfn"; // ES Modules import
29
- * // const { SFNClient, DeleteActivityCommand } = require("@aws-sdk/client-sfn"); // CommonJS import
30
- * const client = new SFNClient(config);
31
- * const command = new DeleteActivityCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DeleteActivityCommandInput} for command's `input` shape.
36
- * @see {@link DeleteActivityCommandOutput} for command's `response` shape.
37
- * @see {@link SFNClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
- export class DeleteActivityCommand extends $Command<
41
- DeleteActivityCommandInput,
42
- DeleteActivityCommandOutput,
43
- SFNClientResolvedConfig
44
- > {
45
- // Start section: command_properties
46
- // End section: command_properties
47
-
48
- constructor(readonly input: DeleteActivityCommandInput) {
49
- // Start section: command_constructor
50
- super();
51
- // End section: command_constructor
52
- }
53
-
54
- /**
55
- * @internal
56
- */
57
- resolveMiddleware(
58
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59
- configuration: SFNClientResolvedConfig,
60
- options?: __HttpHandlerOptions
61
- ): Handler<DeleteActivityCommandInput, DeleteActivityCommandOutput> {
62
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63
-
64
- const stack = clientStack.concat(this.middlewareStack);
65
-
66
- const { logger } = configuration;
67
- const clientName = "SFNClient";
68
- const commandName = "DeleteActivityCommand";
69
- const handlerExecutionContext: HandlerExecutionContext = {
70
- logger,
71
- clientName,
72
- commandName,
73
- inputFilterSensitiveLog: DeleteActivityInput.filterSensitiveLog,
74
- outputFilterSensitiveLog: DeleteActivityOutput.filterSensitiveLog,
75
- };
76
- const { requestHandler } = configuration;
77
- return stack.resolve(
78
- (request: FinalizeHandlerArguments<any>) =>
79
- requestHandler.handle(request.request as __HttpRequest, options || {}),
80
- handlerExecutionContext
81
- );
82
- }
83
-
84
- private serialize(input: DeleteActivityCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85
- return serializeAws_json1_0DeleteActivityCommand(input, context);
86
- }
87
-
88
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteActivityCommandOutput> {
89
- return deserializeAws_json1_0DeleteActivityCommand(output, context);
90
- }
91
-
92
- // Start section: command_body_extra
93
- // End section: command_body_extra
94
- }