@aws-sdk/client-data-pipeline 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 (285) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/DataPipeline.js +1 -21
  3. package/dist-cjs/DataPipelineClient.js +35 -0
  4. package/dist-cjs/commands/ActivatePipelineCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -27
  6. package/dist-cjs/commands/CreatePipelineCommand.js +36 -0
  7. package/{dist/cjs → dist-cjs}/commands/DeactivatePipelineCommand.js +2 -30
  8. package/dist-cjs/commands/DeletePipelineCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeObjectsCommand.js +36 -0
  10. package/dist-cjs/commands/DescribePipelinesCommand.js +36 -0
  11. package/dist-cjs/commands/EvaluateExpressionCommand.js +36 -0
  12. package/dist-cjs/commands/GetPipelineDefinitionCommand.js +36 -0
  13. package/dist-cjs/commands/ListPipelinesCommand.js +36 -0
  14. package/dist-cjs/commands/PollForTaskCommand.js +36 -0
  15. package/dist-cjs/commands/PutPipelineDefinitionCommand.js +36 -0
  16. package/dist-cjs/commands/QueryObjectsCommand.js +36 -0
  17. package/{dist/cjs → dist-cjs}/commands/RemoveTagsCommand.js +2 -27
  18. package/dist-cjs/commands/ReportTaskProgressCommand.js +36 -0
  19. package/dist-cjs/commands/ReportTaskRunnerHeartbeatCommand.js +36 -0
  20. package/dist-cjs/commands/SetStatusCommand.js +36 -0
  21. package/dist-cjs/commands/SetTaskStatusCommand.js +36 -0
  22. package/dist-cjs/commands/ValidatePipelineDefinitionCommand.js +36 -0
  23. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  24. package/{dist/cjs → dist-cjs}/index.js +0 -1
  25. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  26. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -169
  27. package/{dist/cjs → dist-cjs}/pagination/DescribeObjectsPaginator.js +1 -12
  28. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  29. package/{dist/cjs → dist-cjs}/pagination/ListPipelinesPaginator.js +1 -12
  30. package/{dist/cjs → dist-cjs}/pagination/QueryObjectsPaginator.js +1 -12
  31. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  32. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  33. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  34. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  35. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  36. package/{dist/es → dist-es}/DataPipeline.js +1 -2
  37. package/{dist/es → dist-es}/DataPipelineClient.js +1 -2
  38. package/{dist/es → dist-es}/commands/ActivatePipelineCommand.js +2 -3
  39. package/{dist/es → dist-es}/commands/AddTagsCommand.js +2 -3
  40. package/{dist/es → dist-es}/commands/CreatePipelineCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/DeactivatePipelineCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/DeletePipelineCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/DescribeObjectsCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/DescribePipelinesCommand.js +2 -3
  45. package/{dist/es → dist-es}/commands/EvaluateExpressionCommand.js +2 -3
  46. package/{dist/es → dist-es}/commands/GetPipelineDefinitionCommand.js +2 -3
  47. package/{dist/es → dist-es}/commands/ListPipelinesCommand.js +2 -3
  48. package/{dist/es → dist-es}/commands/PollForTaskCommand.js +2 -3
  49. package/{dist/es → dist-es}/commands/PutPipelineDefinitionCommand.js +2 -3
  50. package/{dist/es → dist-es}/commands/QueryObjectsCommand.js +2 -3
  51. package/{dist/es → dist-es}/commands/RemoveTagsCommand.js +2 -3
  52. package/{dist/es → dist-es}/commands/ReportTaskProgressCommand.js +2 -3
  53. package/{dist/es → dist-es}/commands/ReportTaskRunnerHeartbeatCommand.js +2 -3
  54. package/{dist/es → dist-es}/commands/SetStatusCommand.js +2 -3
  55. package/{dist/es → dist-es}/commands/SetTaskStatusCommand.js +2 -3
  56. package/{dist/es → dist-es}/commands/ValidatePipelineDefinitionCommand.js +2 -3
  57. package/{dist/es → dist-es}/endpoints.js +1 -2
  58. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  59. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  60. package/{dist/es → dist-es}/models/models_0.js +0 -1
  61. package/{dist/es → dist-es}/pagination/DescribeObjectsPaginator.js +1 -2
  62. package/dist-es/pagination/Interfaces.js +1 -0
  63. package/{dist/es → dist-es}/pagination/ListPipelinesPaginator.js +1 -2
  64. package/{dist/es → dist-es}/pagination/QueryObjectsPaginator.js +1 -2
  65. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  66. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  67. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  68. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  69. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  70. package/{dist/types → dist-types}/DataPipeline.d.ts +2 -2
  71. package/{dist/types → dist-types}/DataPipelineClient.d.ts +8 -8
  72. package/{dist/types → dist-types}/commands/ActivatePipelineCommand.d.ts +2 -2
  73. package/{dist/types → dist-types}/commands/AddTagsCommand.d.ts +2 -2
  74. package/{dist/types → dist-types}/commands/CreatePipelineCommand.d.ts +2 -2
  75. package/{dist/types → dist-types}/commands/DeactivatePipelineCommand.d.ts +2 -2
  76. package/{dist/types → dist-types}/commands/DeletePipelineCommand.d.ts +2 -2
  77. package/{dist/types → dist-types}/commands/DescribeObjectsCommand.d.ts +2 -2
  78. package/{dist/types → dist-types}/commands/DescribePipelinesCommand.d.ts +2 -2
  79. package/{dist/types → dist-types}/commands/EvaluateExpressionCommand.d.ts +2 -2
  80. package/{dist/types → dist-types}/commands/GetPipelineDefinitionCommand.d.ts +2 -2
  81. package/{dist/types → dist-types}/commands/ListPipelinesCommand.d.ts +2 -2
  82. package/{dist/types → dist-types}/commands/PollForTaskCommand.d.ts +2 -2
  83. package/{dist/types → dist-types}/commands/PutPipelineDefinitionCommand.d.ts +2 -2
  84. package/{dist/types → dist-types}/commands/QueryObjectsCommand.d.ts +2 -2
  85. package/{dist/types → dist-types}/commands/RemoveTagsCommand.d.ts +2 -2
  86. package/{dist/types → dist-types}/commands/ReportTaskProgressCommand.d.ts +2 -2
  87. package/{dist/types → dist-types}/commands/ReportTaskRunnerHeartbeatCommand.d.ts +2 -2
  88. package/{dist/types → dist-types}/commands/SetStatusCommand.d.ts +2 -2
  89. package/{dist/types → dist-types}/commands/SetTaskStatusCommand.d.ts +2 -2
  90. package/{dist/types → dist-types}/commands/ValidatePipelineDefinitionCommand.d.ts +2 -2
  91. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  92. package/{index.ts → dist-types/index.d.ts} +0 -0
  93. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  94. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  95. package/{dist/types → dist-types}/pagination/DescribeObjectsPaginator.d.ts +1 -1
  96. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  97. package/{dist/types → dist-types}/pagination/ListPipelinesPaginator.d.ts +1 -1
  98. package/{dist/types → dist-types}/pagination/QueryObjectsPaginator.d.ts +1 -1
  99. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  100. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  101. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  102. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  103. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  104. package/dist-types/ts3.4/DataPipeline.d.ts +100 -0
  105. package/{dist/types → dist-types}/ts3.4/DataPipelineClient.d.ts +32 -113
  106. package/dist-types/ts3.4/commands/ActivatePipelineCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/DeactivatePipelineCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/DescribeObjectsCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/DescribePipelinesCommand.d.ts +17 -0
  113. package/dist-types/ts3.4/commands/EvaluateExpressionCommand.d.ts +17 -0
  114. package/dist-types/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +17 -0
  115. package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/PollForTaskCommand.d.ts +17 -0
  117. package/dist-types/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +17 -0
  118. package/dist-types/ts3.4/commands/QueryObjectsCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/ReportTaskProgressCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/SetStatusCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/SetTaskStatusCommand.d.ts +17 -0
  124. package/dist-types/ts3.4/commands/ValidatePipelineDefinitionCommand.d.ts +17 -0
  125. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  126. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  127. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +655 -0
  129. package/{dist/types → dist-types}/ts3.4/pagination/DescribeObjectsPaginator.d.ts +1 -1
  130. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  131. package/{dist/types → dist-types}/ts3.4/pagination/ListPipelinesPaginator.d.ts +1 -1
  132. package/{dist/types → dist-types}/ts3.4/pagination/QueryObjectsPaginator.d.ts +1 -1
  133. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  134. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  135. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  136. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  137. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  138. package/package.json +45 -42
  139. package/DataPipeline.ts +0 -1578
  140. package/DataPipelineClient.ts +0 -320
  141. package/commands/ActivatePipelineCommand.ts +0 -124
  142. package/commands/AddTagsCommand.ts +0 -91
  143. package/commands/CreatePipelineCommand.ts +0 -124
  144. package/commands/DeactivatePipelineCommand.ts +0 -97
  145. package/commands/DeletePipelineCommand.ts +0 -125
  146. package/commands/DescribeObjectsCommand.ts +0 -152
  147. package/commands/DescribePipelinesCommand.ts +0 -155
  148. package/commands/EvaluateExpressionCommand.ts +0 -124
  149. package/commands/GetPipelineDefinitionCommand.ts +0 -158
  150. package/commands/ListPipelinesCommand.ts +0 -125
  151. package/commands/PollForTaskCommand.ts +0 -172
  152. package/commands/PutPipelineDefinitionCommand.ts +0 -253
  153. package/commands/QueryObjectsCommand.ts +0 -132
  154. package/commands/RemoveTagsCommand.ts +0 -94
  155. package/commands/ReportTaskProgressCommand.ts +0 -131
  156. package/commands/ReportTaskRunnerHeartbeatCommand.ts +0 -129
  157. package/commands/SetStatusCommand.ts +0 -123
  158. package/commands/SetTaskStatusCommand.ts +0 -124
  159. package/commands/ValidatePipelineDefinitionCommand.ts +0 -248
  160. package/dist/cjs/DataPipeline.js.map +0 -1
  161. package/dist/cjs/DataPipelineClient.js +0 -60
  162. package/dist/cjs/DataPipelineClient.js.map +0 -1
  163. package/dist/cjs/commands/ActivatePipelineCommand.js +0 -91
  164. package/dist/cjs/commands/ActivatePipelineCommand.js.map +0 -1
  165. package/dist/cjs/commands/AddTagsCommand.js.map +0 -1
  166. package/dist/cjs/commands/CreatePipelineCommand.js +0 -91
  167. package/dist/cjs/commands/CreatePipelineCommand.js.map +0 -1
  168. package/dist/cjs/commands/DeactivatePipelineCommand.js.map +0 -1
  169. package/dist/cjs/commands/DeletePipelineCommand.js +0 -92
  170. package/dist/cjs/commands/DeletePipelineCommand.js.map +0 -1
  171. package/dist/cjs/commands/DescribeObjectsCommand.js +0 -119
  172. package/dist/cjs/commands/DescribeObjectsCommand.js.map +0 -1
  173. package/dist/cjs/commands/DescribePipelinesCommand.js +0 -122
  174. package/dist/cjs/commands/DescribePipelinesCommand.js.map +0 -1
  175. package/dist/cjs/commands/EvaluateExpressionCommand.js +0 -91
  176. package/dist/cjs/commands/EvaluateExpressionCommand.js.map +0 -1
  177. package/dist/cjs/commands/GetPipelineDefinitionCommand.js +0 -125
  178. package/dist/cjs/commands/GetPipelineDefinitionCommand.js.map +0 -1
  179. package/dist/cjs/commands/ListPipelinesCommand.js +0 -92
  180. package/dist/cjs/commands/ListPipelinesCommand.js.map +0 -1
  181. package/dist/cjs/commands/PollForTaskCommand.js +0 -139
  182. package/dist/cjs/commands/PollForTaskCommand.js.map +0 -1
  183. package/dist/cjs/commands/PutPipelineDefinitionCommand.js +0 -220
  184. package/dist/cjs/commands/PutPipelineDefinitionCommand.js.map +0 -1
  185. package/dist/cjs/commands/QueryObjectsCommand.js +0 -99
  186. package/dist/cjs/commands/QueryObjectsCommand.js.map +0 -1
  187. package/dist/cjs/commands/RemoveTagsCommand.js.map +0 -1
  188. package/dist/cjs/commands/ReportTaskProgressCommand.js +0 -98
  189. package/dist/cjs/commands/ReportTaskProgressCommand.js.map +0 -1
  190. package/dist/cjs/commands/ReportTaskRunnerHeartbeatCommand.js +0 -93
  191. package/dist/cjs/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
  192. package/dist/cjs/commands/SetStatusCommand.js +0 -93
  193. package/dist/cjs/commands/SetStatusCommand.js.map +0 -1
  194. package/dist/cjs/commands/SetTaskStatusCommand.js +0 -91
  195. package/dist/cjs/commands/SetTaskStatusCommand.js.map +0 -1
  196. package/dist/cjs/commands/ValidatePipelineDefinitionCommand.js +0 -212
  197. package/dist/cjs/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
  198. package/dist/cjs/endpoints.js.map +0 -1
  199. package/dist/cjs/index.js.map +0 -1
  200. package/dist/cjs/models/index.js.map +0 -1
  201. package/dist/cjs/models/models_0.js.map +0 -1
  202. package/dist/cjs/package.json +0 -91
  203. package/dist/cjs/pagination/DescribeObjectsPaginator.js.map +0 -1
  204. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  205. package/dist/cjs/pagination/ListPipelinesPaginator.js.map +0 -1
  206. package/dist/cjs/pagination/QueryObjectsPaginator.js.map +0 -1
  207. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  208. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  209. package/dist/cjs/runtimeConfig.js.map +0 -1
  210. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  211. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  212. package/dist/es/DataPipeline.js.map +0 -1
  213. package/dist/es/DataPipelineClient.js.map +0 -1
  214. package/dist/es/commands/ActivatePipelineCommand.js.map +0 -1
  215. package/dist/es/commands/AddTagsCommand.js.map +0 -1
  216. package/dist/es/commands/CreatePipelineCommand.js.map +0 -1
  217. package/dist/es/commands/DeactivatePipelineCommand.js.map +0 -1
  218. package/dist/es/commands/DeletePipelineCommand.js.map +0 -1
  219. package/dist/es/commands/DescribeObjectsCommand.js.map +0 -1
  220. package/dist/es/commands/DescribePipelinesCommand.js.map +0 -1
  221. package/dist/es/commands/EvaluateExpressionCommand.js.map +0 -1
  222. package/dist/es/commands/GetPipelineDefinitionCommand.js.map +0 -1
  223. package/dist/es/commands/ListPipelinesCommand.js.map +0 -1
  224. package/dist/es/commands/PollForTaskCommand.js.map +0 -1
  225. package/dist/es/commands/PutPipelineDefinitionCommand.js.map +0 -1
  226. package/dist/es/commands/QueryObjectsCommand.js.map +0 -1
  227. package/dist/es/commands/RemoveTagsCommand.js.map +0 -1
  228. package/dist/es/commands/ReportTaskProgressCommand.js.map +0 -1
  229. package/dist/es/commands/ReportTaskRunnerHeartbeatCommand.js.map +0 -1
  230. package/dist/es/commands/SetStatusCommand.js.map +0 -1
  231. package/dist/es/commands/SetTaskStatusCommand.js.map +0 -1
  232. package/dist/es/commands/ValidatePipelineDefinitionCommand.js.map +0 -1
  233. package/dist/es/endpoints.js.map +0 -1
  234. package/dist/es/index.js +0 -27
  235. package/dist/es/index.js.map +0 -1
  236. package/dist/es/models/index.js +0 -2
  237. package/dist/es/models/index.js.map +0 -1
  238. package/dist/es/models/models_0.js.map +0 -1
  239. package/dist/es/package.json +0 -91
  240. package/dist/es/pagination/DescribeObjectsPaginator.js.map +0 -1
  241. package/dist/es/pagination/Interfaces.js +0 -2
  242. package/dist/es/pagination/Interfaces.js.map +0 -1
  243. package/dist/es/pagination/ListPipelinesPaginator.js.map +0 -1
  244. package/dist/es/pagination/QueryObjectsPaginator.js.map +0 -1
  245. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  246. package/dist/es/runtimeConfig.browser.js.map +0 -1
  247. package/dist/es/runtimeConfig.js.map +0 -1
  248. package/dist/es/runtimeConfig.native.js.map +0 -1
  249. package/dist/es/runtimeConfig.shared.js.map +0 -1
  250. package/dist/types/ts3.4/DataPipeline.d.ts +0 -1051
  251. package/dist/types/ts3.4/commands/ActivatePipelineCommand.d.ts +0 -65
  252. package/dist/types/ts3.4/commands/AddTagsCommand.d.ts +0 -35
  253. package/dist/types/ts3.4/commands/CreatePipelineCommand.d.ts +0 -65
  254. package/dist/types/ts3.4/commands/DeactivatePipelineCommand.d.ts +0 -38
  255. package/dist/types/ts3.4/commands/DeletePipelineCommand.d.ts +0 -66
  256. package/dist/types/ts3.4/commands/DescribeObjectsCommand.d.ts +0 -93
  257. package/dist/types/ts3.4/commands/DescribePipelinesCommand.d.ts +0 -96
  258. package/dist/types/ts3.4/commands/EvaluateExpressionCommand.d.ts +0 -65
  259. package/dist/types/ts3.4/commands/GetPipelineDefinitionCommand.d.ts +0 -99
  260. package/dist/types/ts3.4/commands/ListPipelinesCommand.d.ts +0 -66
  261. package/dist/types/ts3.4/commands/PollForTaskCommand.d.ts +0 -113
  262. package/dist/types/ts3.4/commands/PutPipelineDefinitionCommand.d.ts +0 -194
  263. package/dist/types/ts3.4/commands/QueryObjectsCommand.d.ts +0 -73
  264. package/dist/types/ts3.4/commands/RemoveTagsCommand.d.ts +0 -35
  265. package/dist/types/ts3.4/commands/ReportTaskProgressCommand.d.ts +0 -72
  266. package/dist/types/ts3.4/commands/ReportTaskRunnerHeartbeatCommand.d.ts +0 -67
  267. package/dist/types/ts3.4/commands/SetStatusCommand.d.ts +0 -67
  268. package/dist/types/ts3.4/commands/SetTaskStatusCommand.d.ts +0 -65
  269. package/dist/types/ts3.4/commands/ValidatePipelineDefinitionCommand.d.ts +0 -186
  270. package/dist/types/ts3.4/models/models_0.d.ts +0 -1193
  271. package/endpoints.ts +0 -57
  272. package/jest.config.js +0 -4
  273. package/models/models_0.ts +0 -1480
  274. package/pagination/DescribeObjectsPaginator.ts +0 -57
  275. package/pagination/Interfaces.ts +0 -7
  276. package/pagination/ListPipelinesPaginator.ts +0 -57
  277. package/pagination/QueryObjectsPaginator.ts +0 -58
  278. package/protocols/Aws_json1_1.ts +0 -2766
  279. package/runtimeConfig.browser.ts +0 -40
  280. package/runtimeConfig.native.ts +0 -16
  281. package/runtimeConfig.shared.ts +0 -16
  282. package/runtimeConfig.ts +0 -45
  283. package/tsconfig.es.json +0 -10
  284. package/tsconfig.json +0 -31
  285. package/tsconfig.types.json +0 -8
package/DataPipeline.ts DELETED
@@ -1,1578 +0,0 @@
1
- import { DataPipelineClient } from "./DataPipelineClient";
2
- import {
3
- ActivatePipelineCommand,
4
- ActivatePipelineCommandInput,
5
- ActivatePipelineCommandOutput,
6
- } from "./commands/ActivatePipelineCommand";
7
- import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
8
- import {
9
- CreatePipelineCommand,
10
- CreatePipelineCommandInput,
11
- CreatePipelineCommandOutput,
12
- } from "./commands/CreatePipelineCommand";
13
- import {
14
- DeactivatePipelineCommand,
15
- DeactivatePipelineCommandInput,
16
- DeactivatePipelineCommandOutput,
17
- } from "./commands/DeactivatePipelineCommand";
18
- import {
19
- DeletePipelineCommand,
20
- DeletePipelineCommandInput,
21
- DeletePipelineCommandOutput,
22
- } from "./commands/DeletePipelineCommand";
23
- import {
24
- DescribeObjectsCommand,
25
- DescribeObjectsCommandInput,
26
- DescribeObjectsCommandOutput,
27
- } from "./commands/DescribeObjectsCommand";
28
- import {
29
- DescribePipelinesCommand,
30
- DescribePipelinesCommandInput,
31
- DescribePipelinesCommandOutput,
32
- } from "./commands/DescribePipelinesCommand";
33
- import {
34
- EvaluateExpressionCommand,
35
- EvaluateExpressionCommandInput,
36
- EvaluateExpressionCommandOutput,
37
- } from "./commands/EvaluateExpressionCommand";
38
- import {
39
- GetPipelineDefinitionCommand,
40
- GetPipelineDefinitionCommandInput,
41
- GetPipelineDefinitionCommandOutput,
42
- } from "./commands/GetPipelineDefinitionCommand";
43
- import {
44
- ListPipelinesCommand,
45
- ListPipelinesCommandInput,
46
- ListPipelinesCommandOutput,
47
- } from "./commands/ListPipelinesCommand";
48
- import { PollForTaskCommand, PollForTaskCommandInput, PollForTaskCommandOutput } from "./commands/PollForTaskCommand";
49
- import {
50
- PutPipelineDefinitionCommand,
51
- PutPipelineDefinitionCommandInput,
52
- PutPipelineDefinitionCommandOutput,
53
- } from "./commands/PutPipelineDefinitionCommand";
54
- import {
55
- QueryObjectsCommand,
56
- QueryObjectsCommandInput,
57
- QueryObjectsCommandOutput,
58
- } from "./commands/QueryObjectsCommand";
59
- import { RemoveTagsCommand, RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
60
- import {
61
- ReportTaskProgressCommand,
62
- ReportTaskProgressCommandInput,
63
- ReportTaskProgressCommandOutput,
64
- } from "./commands/ReportTaskProgressCommand";
65
- import {
66
- ReportTaskRunnerHeartbeatCommand,
67
- ReportTaskRunnerHeartbeatCommandInput,
68
- ReportTaskRunnerHeartbeatCommandOutput,
69
- } from "./commands/ReportTaskRunnerHeartbeatCommand";
70
- import { SetStatusCommand, SetStatusCommandInput, SetStatusCommandOutput } from "./commands/SetStatusCommand";
71
- import {
72
- SetTaskStatusCommand,
73
- SetTaskStatusCommandInput,
74
- SetTaskStatusCommandOutput,
75
- } from "./commands/SetTaskStatusCommand";
76
- import {
77
- ValidatePipelineDefinitionCommand,
78
- ValidatePipelineDefinitionCommandInput,
79
- ValidatePipelineDefinitionCommandOutput,
80
- } from "./commands/ValidatePipelineDefinitionCommand";
81
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
82
-
83
- /**
84
- * <p>AWS Data Pipeline configures and manages a data-driven workflow called a pipeline. AWS Data Pipeline
85
- * handles the details of scheduling and ensuring that data dependencies are met so that your application
86
- * can focus on processing the data.</p>
87
- *
88
- * <p>AWS Data Pipeline provides a JAR implementation of a task runner called AWS Data Pipeline Task Runner.
89
- * AWS Data Pipeline Task Runner provides logic for common data management scenarios, such as performing
90
- * database queries and running data analysis using Amazon Elastic MapReduce (Amazon EMR). You can use
91
- * AWS Data Pipeline Task Runner as your task runner, or you can write your own task runner to provide
92
- * custom data management.</p>
93
- *
94
- * <p>AWS Data Pipeline implements two main sets of functionality. Use the first set to create a pipeline
95
- * and define data sources, schedules, dependencies, and the transforms to be performed on the data.
96
- * Use the second set in your task runner application to receive the next task ready for processing.
97
- * The logic for performing the task, such as querying the data, running data analysis, or converting
98
- * the data from one format to another, is contained within the task runner. The task runner performs
99
- * the task assigned to it by the web service, reporting progress to the web service as it does so.
100
- * When the task is done, the task runner reports the final success or failure of the task to the web service.</p>
101
- */
102
- export class DataPipeline extends DataPipelineClient {
103
- /**
104
- * <p>Validates the specified pipeline and starts processing pipeline tasks. If the pipeline does not pass validation,
105
- * activation fails.</p>
106
- * <p>If you need to pause the pipeline to investigate an issue with a component, such as a data source or script,
107
- * call <a>DeactivatePipeline</a>.</p>
108
- * <p>To activate a finished pipeline, modify the end date for the pipeline and then activate it.</p>
109
- * <examples>
110
- * <request>
111
- *
112
- * POST / HTTP/1.1
113
- * Content-Type: application/x-amz-json-1.1
114
- * X-Amz-Target: DataPipeline.ActivatePipeline
115
- * Content-Length: 39
116
- * Host: datapipeline.us-east-1.amazonaws.com
117
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
118
- * Authorization: AuthParams
119
- *
120
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
121
- *
122
- * </request>
123
- * <response>
124
- *
125
- * HTTP/1.1 200
126
- * x-amzn-RequestId: ee19d5bf-074e-11e2-af6f-6bc7a6be60d9
127
- * Content-Type: application/x-amz-json-1.1
128
- * Content-Length: 2
129
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
130
- *
131
- * {}
132
- *
133
- * </response>
134
- * </examples>
135
- */
136
- public activatePipeline(
137
- args: ActivatePipelineCommandInput,
138
- options?: __HttpHandlerOptions
139
- ): Promise<ActivatePipelineCommandOutput>;
140
- public activatePipeline(
141
- args: ActivatePipelineCommandInput,
142
- cb: (err: any, data?: ActivatePipelineCommandOutput) => void
143
- ): void;
144
- public activatePipeline(
145
- args: ActivatePipelineCommandInput,
146
- options: __HttpHandlerOptions,
147
- cb: (err: any, data?: ActivatePipelineCommandOutput) => void
148
- ): void;
149
- public activatePipeline(
150
- args: ActivatePipelineCommandInput,
151
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ActivatePipelineCommandOutput) => void),
152
- cb?: (err: any, data?: ActivatePipelineCommandOutput) => void
153
- ): Promise<ActivatePipelineCommandOutput> | void {
154
- const command = new ActivatePipelineCommand(args);
155
- if (typeof optionsOrCb === "function") {
156
- this.send(command, optionsOrCb);
157
- } else if (typeof cb === "function") {
158
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
- this.send(command, optionsOrCb || {}, cb);
160
- } else {
161
- return this.send(command, optionsOrCb);
162
- }
163
- }
164
-
165
- /**
166
- * <p>Adds or modifies tags for the specified pipeline.</p>
167
- */
168
- public addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
169
- public addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
170
- public addTags(
171
- args: AddTagsCommandInput,
172
- options: __HttpHandlerOptions,
173
- cb: (err: any, data?: AddTagsCommandOutput) => void
174
- ): void;
175
- public addTags(
176
- args: AddTagsCommandInput,
177
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddTagsCommandOutput) => void),
178
- cb?: (err: any, data?: AddTagsCommandOutput) => void
179
- ): Promise<AddTagsCommandOutput> | void {
180
- const command = new AddTagsCommand(args);
181
- if (typeof optionsOrCb === "function") {
182
- this.send(command, optionsOrCb);
183
- } else if (typeof cb === "function") {
184
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
185
- this.send(command, optionsOrCb || {}, cb);
186
- } else {
187
- return this.send(command, optionsOrCb);
188
- }
189
- }
190
-
191
- /**
192
- * <p>Creates a new, empty pipeline. Use <a>PutPipelineDefinition</a> to populate the pipeline.</p>
193
- *
194
- * <examples>
195
- * <request>
196
- *
197
- * POST / HTTP/1.1
198
- * Content-Type: application/x-amz-json-1.1
199
- * X-Amz-Target: DataPipeline.CreatePipeline
200
- * Content-Length: 91
201
- * Host: datapipeline.us-east-1.amazonaws.com
202
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
203
- * Authorization: AuthParams
204
- *
205
- * {"name": "myPipeline",
206
- * "uniqueId": "123456789",
207
- * "description": "This is my first pipeline"}
208
- *
209
- * </request>
210
- *
211
- * <response>
212
- *
213
- * HTTP/1.1 200
214
- * x-amzn-RequestId: b16911ce-0774-11e2-af6f-6bc7a6be60d9
215
- * Content-Type: application/x-amz-json-1.1
216
- * Content-Length: 40
217
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
218
- *
219
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
220
- *
221
- * </response>
222
- * </examples>
223
- */
224
- public createPipeline(
225
- args: CreatePipelineCommandInput,
226
- options?: __HttpHandlerOptions
227
- ): Promise<CreatePipelineCommandOutput>;
228
- public createPipeline(
229
- args: CreatePipelineCommandInput,
230
- cb: (err: any, data?: CreatePipelineCommandOutput) => void
231
- ): void;
232
- public createPipeline(
233
- args: CreatePipelineCommandInput,
234
- options: __HttpHandlerOptions,
235
- cb: (err: any, data?: CreatePipelineCommandOutput) => void
236
- ): void;
237
- public createPipeline(
238
- args: CreatePipelineCommandInput,
239
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreatePipelineCommandOutput) => void),
240
- cb?: (err: any, data?: CreatePipelineCommandOutput) => void
241
- ): Promise<CreatePipelineCommandOutput> | void {
242
- const command = new CreatePipelineCommand(args);
243
- if (typeof optionsOrCb === "function") {
244
- this.send(command, optionsOrCb);
245
- } else if (typeof cb === "function") {
246
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- } else {
249
- return this.send(command, optionsOrCb);
250
- }
251
- }
252
-
253
- /**
254
- * <p>Deactivates the specified running pipeline. The pipeline is set to the <code>DEACTIVATING</code>
255
- * state until the deactivation process completes.</p>
256
- * <p>To resume a deactivated pipeline, use <a>ActivatePipeline</a>. By default, the pipeline resumes from the last completed execution.
257
- * Optionally, you can specify the date and time to resume the pipeline.</p>
258
- */
259
- public deactivatePipeline(
260
- args: DeactivatePipelineCommandInput,
261
- options?: __HttpHandlerOptions
262
- ): Promise<DeactivatePipelineCommandOutput>;
263
- public deactivatePipeline(
264
- args: DeactivatePipelineCommandInput,
265
- cb: (err: any, data?: DeactivatePipelineCommandOutput) => void
266
- ): void;
267
- public deactivatePipeline(
268
- args: DeactivatePipelineCommandInput,
269
- options: __HttpHandlerOptions,
270
- cb: (err: any, data?: DeactivatePipelineCommandOutput) => void
271
- ): void;
272
- public deactivatePipeline(
273
- args: DeactivatePipelineCommandInput,
274
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeactivatePipelineCommandOutput) => void),
275
- cb?: (err: any, data?: DeactivatePipelineCommandOutput) => void
276
- ): Promise<DeactivatePipelineCommandOutput> | void {
277
- const command = new DeactivatePipelineCommand(args);
278
- if (typeof optionsOrCb === "function") {
279
- this.send(command, optionsOrCb);
280
- } else if (typeof cb === "function") {
281
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
- this.send(command, optionsOrCb || {}, cb);
283
- } else {
284
- return this.send(command, optionsOrCb);
285
- }
286
- }
287
-
288
- /**
289
- * <p>Deletes a pipeline, its pipeline definition, and its run history.
290
- * AWS Data Pipeline attempts to cancel instances associated with the pipeline that are currently being processed by task runners.</p>
291
- * <p>Deleting a pipeline cannot be undone. You cannot query or restore a deleted pipeline.
292
- * To temporarily pause a pipeline instead of deleting it, call <a>SetStatus</a> with the status set to <code>PAUSE</code> on individual components.
293
- * Components that are paused by <a>SetStatus</a> can be resumed.</p>
294
- *
295
- * <examples>
296
- * <request>
297
- *
298
- * POST / HTTP/1.1
299
- * Content-Type: application/x-amz-json-1.1
300
- * X-Amz-Target: DataPipeline.DeletePipeline
301
- * Content-Length: 50
302
- * Host: datapipeline.us-east-1.amazonaws.com
303
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
304
- * Authorization: AuthParams
305
- *
306
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
307
- *
308
- * </request>
309
- *
310
- * <response>
311
- *
312
- * x-amzn-RequestId: b7a88c81-0754-11e2-af6f-6bc7a6be60d9
313
- * Content-Type: application/x-amz-json-1.1
314
- * Content-Length: 0
315
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
316
- *
317
- * Unexpected response: 200, OK, undefined
318
- *
319
- * </response>
320
- * </examples>
321
- */
322
- public deletePipeline(
323
- args: DeletePipelineCommandInput,
324
- options?: __HttpHandlerOptions
325
- ): Promise<DeletePipelineCommandOutput>;
326
- public deletePipeline(
327
- args: DeletePipelineCommandInput,
328
- cb: (err: any, data?: DeletePipelineCommandOutput) => void
329
- ): void;
330
- public deletePipeline(
331
- args: DeletePipelineCommandInput,
332
- options: __HttpHandlerOptions,
333
- cb: (err: any, data?: DeletePipelineCommandOutput) => void
334
- ): void;
335
- public deletePipeline(
336
- args: DeletePipelineCommandInput,
337
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePipelineCommandOutput) => void),
338
- cb?: (err: any, data?: DeletePipelineCommandOutput) => void
339
- ): Promise<DeletePipelineCommandOutput> | void {
340
- const command = new DeletePipelineCommand(args);
341
- if (typeof optionsOrCb === "function") {
342
- this.send(command, optionsOrCb);
343
- } else if (typeof cb === "function") {
344
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- } else {
347
- return this.send(command, optionsOrCb);
348
- }
349
- }
350
-
351
- /**
352
- * <p>Gets the object definitions for a set of objects associated with the pipeline. Object definitions are composed of
353
- * a set of fields that define the properties of the object.</p>
354
- *
355
- * <examples>
356
- * <request>
357
- *
358
- * POST / HTTP/1.1
359
- * Content-Type: application/x-amz-json-1.1
360
- * X-Amz-Target: DataPipeline.DescribeObjects
361
- * Content-Length: 98
362
- * Host: datapipeline.us-east-1.amazonaws.com
363
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
364
- * Authorization: AuthParams
365
- *
366
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
367
- * "objectIds":
368
- * ["Schedule"],
369
- * "evaluateExpressions": true}
370
- *
371
- * </request>
372
- *
373
- * <response>
374
- *
375
- * x-amzn-RequestId: 4c18ea5d-0777-11e2-8a14-21bb8a1f50ef
376
- * Content-Type: application/x-amz-json-1.1
377
- * Content-Length: 1488
378
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
379
- *
380
- * {"hasMoreResults": false,
381
- * "pipelineObjects":
382
- * [
383
- * {"fields":
384
- * [
385
- * {"key": "startDateTime",
386
- * "stringValue": "2012-12-12T00:00:00"},
387
- * {"key": "parent",
388
- * "refValue": "Default"},
389
- * {"key": "@sphere",
390
- * "stringValue": "COMPONENT"},
391
- * {"key": "type",
392
- * "stringValue": "Schedule"},
393
- * {"key": "period",
394
- * "stringValue": "1 hour"},
395
- * {"key": "endDateTime",
396
- * "stringValue": "2012-12-21T18:00:00"},
397
- * {"key": "@version",
398
- * "stringValue": "1"},
399
- * {"key": "@status",
400
- * "stringValue": "PENDING"},
401
- * {"key": "@pipelineId",
402
- * "stringValue": "df-06372391ZG65EXAMPLE"}
403
- * ],
404
- * "id": "Schedule",
405
- * "name": "Schedule"}
406
- * ]
407
- * }
408
- *
409
- * </response>
410
- * </examples>
411
- */
412
- public describeObjects(
413
- args: DescribeObjectsCommandInput,
414
- options?: __HttpHandlerOptions
415
- ): Promise<DescribeObjectsCommandOutput>;
416
- public describeObjects(
417
- args: DescribeObjectsCommandInput,
418
- cb: (err: any, data?: DescribeObjectsCommandOutput) => void
419
- ): void;
420
- public describeObjects(
421
- args: DescribeObjectsCommandInput,
422
- options: __HttpHandlerOptions,
423
- cb: (err: any, data?: DescribeObjectsCommandOutput) => void
424
- ): void;
425
- public describeObjects(
426
- args: DescribeObjectsCommandInput,
427
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeObjectsCommandOutput) => void),
428
- cb?: (err: any, data?: DescribeObjectsCommandOutput) => void
429
- ): Promise<DescribeObjectsCommandOutput> | void {
430
- const command = new DescribeObjectsCommand(args);
431
- if (typeof optionsOrCb === "function") {
432
- this.send(command, optionsOrCb);
433
- } else if (typeof cb === "function") {
434
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
- this.send(command, optionsOrCb || {}, cb);
436
- } else {
437
- return this.send(command, optionsOrCb);
438
- }
439
- }
440
-
441
- /**
442
- * <p>Retrieves metadata about one or more pipelines. The information retrieved includes the name of the pipeline, the pipeline identifier,
443
- * its current state, and the user account that owns the pipeline. Using account credentials, you can retrieve metadata about pipelines
444
- * that you or your IAM users have created. If you are using an IAM user account, you can retrieve metadata about only those pipelines
445
- * for which you have read permissions.</p>
446
- * <p>To retrieve the full pipeline definition instead of metadata about the pipeline, call <a>GetPipelineDefinition</a>.</p>
447
- *
448
- * <examples>
449
- * <request>
450
- *
451
- * POST / HTTP/1.1
452
- * Content-Type: application/x-amz-json-1.1
453
- * X-Amz-Target: DataPipeline.DescribePipelines
454
- * Content-Length: 70
455
- * Host: datapipeline.us-east-1.amazonaws.com
456
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
457
- * Authorization: AuthParams
458
- *
459
- * {"pipelineIds":
460
- * ["df-08785951KAKJEXAMPLE"]
461
- * }
462
- *
463
- * </request>
464
- *
465
- * <response>
466
- *
467
- * x-amzn-RequestId: 02870eb7-0736-11e2-af6f-6bc7a6be60d9
468
- * Content-Type: application/x-amz-json-1.1
469
- * Content-Length: 767
470
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
471
- *
472
- * {"pipelineDescriptionList":
473
- * [
474
- * {"description": "This is my first pipeline",
475
- * "fields":
476
- * [
477
- * {"key": "@pipelineState",
478
- * "stringValue": "SCHEDULED"},
479
- * {"key": "description",
480
- * "stringValue": "This is my first pipeline"},
481
- * {"key": "name",
482
- * "stringValue": "myPipeline"},
483
- * {"key": "@creationTime",
484
- * "stringValue": "2012-12-13T01:24:06"},
485
- * {"key": "@id",
486
- * "stringValue": "df-0937003356ZJEXAMPLE"},
487
- * {"key": "@sphere",
488
- * "stringValue": "PIPELINE"},
489
- * {"key": "@version",
490
- * "stringValue": "1"},
491
- * {"key": "@userId",
492
- * "stringValue": "924374875933"},
493
- * {"key": "@accountId",
494
- * "stringValue": "924374875933"},
495
- * {"key": "uniqueId",
496
- * "stringValue": "1234567890"}
497
- * ],
498
- * "name": "myPipeline",
499
- * "pipelineId": "df-0937003356ZJEXAMPLE"}
500
- * ]
501
- * }
502
- * </response>
503
- * </examples>
504
- */
505
- public describePipelines(
506
- args: DescribePipelinesCommandInput,
507
- options?: __HttpHandlerOptions
508
- ): Promise<DescribePipelinesCommandOutput>;
509
- public describePipelines(
510
- args: DescribePipelinesCommandInput,
511
- cb: (err: any, data?: DescribePipelinesCommandOutput) => void
512
- ): void;
513
- public describePipelines(
514
- args: DescribePipelinesCommandInput,
515
- options: __HttpHandlerOptions,
516
- cb: (err: any, data?: DescribePipelinesCommandOutput) => void
517
- ): void;
518
- public describePipelines(
519
- args: DescribePipelinesCommandInput,
520
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePipelinesCommandOutput) => void),
521
- cb?: (err: any, data?: DescribePipelinesCommandOutput) => void
522
- ): Promise<DescribePipelinesCommandOutput> | void {
523
- const command = new DescribePipelinesCommand(args);
524
- if (typeof optionsOrCb === "function") {
525
- this.send(command, optionsOrCb);
526
- } else if (typeof cb === "function") {
527
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
- this.send(command, optionsOrCb || {}, cb);
529
- } else {
530
- return this.send(command, optionsOrCb);
531
- }
532
- }
533
-
534
- /**
535
- * <p>Task runners call <code>EvaluateExpression</code> to evaluate a string in the context of the specified object.
536
- * For example, a task runner can evaluate SQL queries stored in Amazon S3.</p>
537
- *
538
- * <examples>
539
- * <request>
540
- *
541
- * POST / HTTP/1.1
542
- * Content-Type: application/x-amz-json-1.1
543
- * X-Amz-Target: DataPipeline.DescribePipelines
544
- * Content-Length: 164
545
- * Host: datapipeline.us-east-1.amazonaws.com
546
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
547
- * Authorization: AuthParams
548
- *
549
- * {"pipelineId": "df-08785951KAKJEXAMPLE",
550
- * "objectId": "Schedule",
551
- * "expression": "Transform started at #{startDateTime} and finished at #{endDateTime}"}
552
- *
553
- * </request>
554
- *
555
- *
556
- * <response>
557
- *
558
- * x-amzn-RequestId: 02870eb7-0736-11e2-af6f-6bc7a6be60d9
559
- * Content-Type: application/x-amz-json-1.1
560
- * Content-Length: 103
561
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
562
- *
563
- * {"evaluatedExpression": "Transform started at 2012-12-12T00:00:00 and finished at 2012-12-21T18:00:00"}
564
- * </response>
565
- * </examples>
566
- */
567
- public evaluateExpression(
568
- args: EvaluateExpressionCommandInput,
569
- options?: __HttpHandlerOptions
570
- ): Promise<EvaluateExpressionCommandOutput>;
571
- public evaluateExpression(
572
- args: EvaluateExpressionCommandInput,
573
- cb: (err: any, data?: EvaluateExpressionCommandOutput) => void
574
- ): void;
575
- public evaluateExpression(
576
- args: EvaluateExpressionCommandInput,
577
- options: __HttpHandlerOptions,
578
- cb: (err: any, data?: EvaluateExpressionCommandOutput) => void
579
- ): void;
580
- public evaluateExpression(
581
- args: EvaluateExpressionCommandInput,
582
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: EvaluateExpressionCommandOutput) => void),
583
- cb?: (err: any, data?: EvaluateExpressionCommandOutput) => void
584
- ): Promise<EvaluateExpressionCommandOutput> | void {
585
- const command = new EvaluateExpressionCommand(args);
586
- if (typeof optionsOrCb === "function") {
587
- this.send(command, optionsOrCb);
588
- } else if (typeof cb === "function") {
589
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
590
- this.send(command, optionsOrCb || {}, cb);
591
- } else {
592
- return this.send(command, optionsOrCb);
593
- }
594
- }
595
-
596
- /**
597
- * <p>Gets the definition of the specified pipeline. You can call <code>GetPipelineDefinition</code> to retrieve
598
- * the pipeline definition that you provided using <a>PutPipelineDefinition</a>.</p>
599
- *
600
- * <examples>
601
- * <request>
602
- *
603
- * POST / HTTP/1.1
604
- * Content-Type: application/x-amz-json-1.1
605
- * X-Amz-Target: DataPipeline.GetPipelineDefinition
606
- * Content-Length: 40
607
- * Host: datapipeline.us-east-1.amazonaws.com
608
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
609
- * Authorization: AuthParams
610
- *
611
- *
612
- * {"pipelineId": "df-06372391ZG65EXAMPLE"}
613
- *
614
- * </request>
615
- * <response>
616
- *
617
- * x-amzn-RequestId: e28309e5-0776-11e2-8a14-21bb8a1f50ef
618
- * Content-Type: application/x-amz-json-1.1
619
- * Content-Length: 890
620
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
621
- *
622
- * {"pipelineObjects":
623
- * [
624
- * {"fields":
625
- * [
626
- * {"key": "workerGroup",
627
- * "stringValue": "workerGroup"}
628
- * ],
629
- * "id": "Default",
630
- * "name": "Default"},
631
- * {"fields":
632
- * [
633
- * {"key": "startDateTime",
634
- * "stringValue": "2012-09-25T17:00:00"},
635
- * {"key": "type",
636
- * "stringValue": "Schedule"},
637
- * {"key": "period",
638
- * "stringValue": "1 hour"},
639
- * {"key": "endDateTime",
640
- * "stringValue": "2012-09-25T18:00:00"}
641
- * ],
642
- * "id": "Schedule",
643
- * "name": "Schedule"},
644
- * {"fields":
645
- * [
646
- * {"key": "schedule",
647
- * "refValue": "Schedule"},
648
- * {"key": "command",
649
- * "stringValue": "echo hello"},
650
- * {"key": "parent",
651
- * "refValue": "Default"},
652
- * {"key": "type",
653
- * "stringValue": "ShellCommandActivity"}
654
- * ],
655
- * "id": "SayHello",
656
- * "name": "SayHello"}
657
- * ]
658
- * }
659
- *
660
- * </response>
661
- * </examples>
662
- */
663
- public getPipelineDefinition(
664
- args: GetPipelineDefinitionCommandInput,
665
- options?: __HttpHandlerOptions
666
- ): Promise<GetPipelineDefinitionCommandOutput>;
667
- public getPipelineDefinition(
668
- args: GetPipelineDefinitionCommandInput,
669
- cb: (err: any, data?: GetPipelineDefinitionCommandOutput) => void
670
- ): void;
671
- public getPipelineDefinition(
672
- args: GetPipelineDefinitionCommandInput,
673
- options: __HttpHandlerOptions,
674
- cb: (err: any, data?: GetPipelineDefinitionCommandOutput) => void
675
- ): void;
676
- public getPipelineDefinition(
677
- args: GetPipelineDefinitionCommandInput,
678
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPipelineDefinitionCommandOutput) => void),
679
- cb?: (err: any, data?: GetPipelineDefinitionCommandOutput) => void
680
- ): Promise<GetPipelineDefinitionCommandOutput> | void {
681
- const command = new GetPipelineDefinitionCommand(args);
682
- if (typeof optionsOrCb === "function") {
683
- this.send(command, optionsOrCb);
684
- } else if (typeof cb === "function") {
685
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
686
- this.send(command, optionsOrCb || {}, cb);
687
- } else {
688
- return this.send(command, optionsOrCb);
689
- }
690
- }
691
-
692
- /**
693
- * <p>Lists the pipeline identifiers for all active pipelines that you have permission to access.</p>
694
- *
695
- * <examples>
696
- * <request>
697
- *
698
- * POST / HTTP/1.1
699
- * Content-Type: application/x-amz-json-1.1
700
- * X-Amz-Target: DataPipeline.ListPipelines
701
- * Content-Length: 14
702
- * Host: datapipeline.us-east-1.amazonaws.com
703
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
704
- * Authorization: AuthParams
705
- *
706
- * {}</request>
707
- *
708
- * <response>
709
- *
710
- * Status:
711
- * x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9
712
- * Content-Type: application/x-amz-json-1.1
713
- * Content-Length: 39
714
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
715
- *
716
- * {"PipelineIdList":
717
- * [
718
- * {"id": "df-08785951KAKJEXAMPLE",
719
- * "name": "MyPipeline"},
720
- * {"id": "df-08662578ISYEXAMPLE",
721
- * "name": "MySecondPipeline"}
722
- * ]
723
- * }</response>
724
- * </examples>
725
- */
726
- public listPipelines(
727
- args: ListPipelinesCommandInput,
728
- options?: __HttpHandlerOptions
729
- ): Promise<ListPipelinesCommandOutput>;
730
- public listPipelines(
731
- args: ListPipelinesCommandInput,
732
- cb: (err: any, data?: ListPipelinesCommandOutput) => void
733
- ): void;
734
- public listPipelines(
735
- args: ListPipelinesCommandInput,
736
- options: __HttpHandlerOptions,
737
- cb: (err: any, data?: ListPipelinesCommandOutput) => void
738
- ): void;
739
- public listPipelines(
740
- args: ListPipelinesCommandInput,
741
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPipelinesCommandOutput) => void),
742
- cb?: (err: any, data?: ListPipelinesCommandOutput) => void
743
- ): Promise<ListPipelinesCommandOutput> | void {
744
- const command = new ListPipelinesCommand(args);
745
- if (typeof optionsOrCb === "function") {
746
- this.send(command, optionsOrCb);
747
- } else if (typeof cb === "function") {
748
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
749
- this.send(command, optionsOrCb || {}, cb);
750
- } else {
751
- return this.send(command, optionsOrCb);
752
- }
753
- }
754
-
755
- /**
756
- * <p>Task runners call <code>PollForTask</code> to receive a task to perform from AWS Data Pipeline. The task runner specifies which tasks it can perform
757
- * by setting a value for the <code>workerGroup</code> parameter. The task returned can come from any of the pipelines that
758
- * match the <code>workerGroup</code> value passed in by the task runner and that was launched using the IAM user credentials
759
- * specified by the task runner.</p>
760
- * <p>If tasks are ready in the work queue, <code>PollForTask</code> returns a response immediately. If no tasks are available in the queue,
761
- * <code>PollForTask</code> uses long-polling and holds on to a poll connection for up to a 90 seconds, during which time the first newly
762
- * scheduled task is handed to the task runner. To accomodate this, set the socket timeout in your task runner to 90 seconds. The task
763
- * runner should not call <code>PollForTask</code> again on the same <code>workerGroup</code> until it receives a response, and this can take up to 90 seconds.
764
- * </p>
765
- *
766
- * <examples>
767
- * <request>
768
- *
769
- * POST / HTTP/1.1
770
- * Content-Type: application/x-amz-json-1.1
771
- * X-Amz-Target: DataPipeline.PollForTask
772
- * Content-Length: 59
773
- * Host: datapipeline.us-east-1.amazonaws.com
774
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
775
- * Authorization: AuthParams
776
- *
777
- * {"workerGroup": "MyworkerGroup",
778
- * "hostname": "example.com"}
779
- *
780
- * </request>
781
- *
782
- * <response>
783
- *
784
- * x-amzn-RequestId: 41c713d2-0775-11e2-af6f-6bc7a6be60d9
785
- * Content-Type: application/x-amz-json-1.1
786
- * Content-Length: 39
787
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
788
- *
789
- * {"taskObject":
790
- * {"attemptId": "@SayHello_2012-12-12T00:00:00_Attempt=1",
791
- * "objects":
792
- * {"@SayHello_2012-12-12T00:00:00_Attempt=1":
793
- * {"fields":
794
- * [
795
- * {"key": "@componentParent",
796
- * "refValue": "SayHello"},
797
- * {"key": "@scheduledStartTime",
798
- * "stringValue": "2012-12-12T00:00:00"},
799
- * {"key": "parent",
800
- * "refValue": "SayHello"},
801
- * {"key": "@sphere",
802
- * "stringValue": "ATTEMPT"},
803
- * {"key": "workerGroup",
804
- * "stringValue": "workerGroup"},
805
- * {"key": "@instanceParent",
806
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
807
- * {"key": "type",
808
- * "stringValue": "ShellCommandActivity"},
809
- * {"key": "@status",
810
- * "stringValue": "WAITING_FOR_RUNNER"},
811
- * {"key": "@version",
812
- * "stringValue": "1"},
813
- * {"key": "schedule",
814
- * "refValue": "Schedule"},
815
- * {"key": "@actualStartTime",
816
- * "stringValue": "2012-12-13T01:40:50"},
817
- * {"key": "command",
818
- * "stringValue": "echo hello"},
819
- * {"key": "@scheduledEndTime",
820
- * "stringValue": "2012-12-12T01:00:00"},
821
- * {"key": "@activeInstances",
822
- * "refValue": "@SayHello_2012-12-12T00:00:00"},
823
- * {"key": "@pipelineId",
824
- * "stringValue": "df-0937003356ZJEXAMPLE"}
825
- * ],
826
- * "id": "@SayHello_2012-12-12T00:00:00_Attempt=1",
827
- * "name": "@SayHello_2012-12-12T00:00:00_Attempt=1"}
828
- * },
829
- * "pipelineId": "df-0937003356ZJEXAMPLE",
830
- * "taskId": "2xaM4wRs5zOsIH+g9U3oVHfAgAlbSqU6XduncB0HhZ3xMnmvfePZPn4dIbYXHyWyRK+cU15MqDHwdrvftx/4wv+sNS4w34vJfv7QA9aOoOazW28l1GYSb2ZRR0N0paiQp+d1MhSKo10hOTWOsVK5S5Lnx9Qm6omFgXHyIvZRIvTlrQMpr1xuUrflyGOfbFOGpOLpvPE172MYdqpZKnbSS4TcuqgQKSWV2833fEubI57DPOP7ghWa2TcYeSIv4pdLYG53fTuwfbnbdc98g2LNUQzSVhSnt7BoqyNwht2aQ6b/UHg9A80+KVpuXuqmz3m1MXwHFgxjdmuesXNOrrlGpeLCcRWD+aGo0RN1NqhQRzNAig8V4GlaPTQzMsRCljKqvrIyAoP3Tt2XEGsHkkQo12rEX8Z90957XX2qKRwhruwYzqGkSLWjINoLdAxUJdpRXRc5DJTrBd3D5mdzn7kY1l7NEh4kFHJDt3Cx4Z3Mk8MYCACyCk/CEyy9DwuPi66cLz0NBcgbCM5LKjTBOwo1m+am+pvM1kSposE9FPP1+RFGb8k6jQBTJx3TRz1yKilnGXQTZ5xvdOFpJrklIT0OXP1MG3+auM9FlJA+1dX90QoNJE5z7axmK//MOGXUdkqFe2kiDkorqjxwDvc0Js9pVKfKvAmW8YqUbmI9l0ERpWCXXnLVHNmPWz3jaPY+OBAmuJWDmxB/Z8p94aEDg4BVXQ7LvsKQ3DLYhaB7yJ390CJT+i0mm+EBqY60V6YikPSWDFrYQ/NPi2b1DgE19mX8zHqw8qprIl4yh1Ckx2Iige4En/N5ktOoIxnASxAw/TzcE2skxdw5KlHDF+UTj71m16CR/dIaKlXijlfNlNzUBo/bNSadCQn3G5NoO501wPKI:XO50TgDNyo8EXAMPLE/g==:1"}
831
- * }
832
- *
833
- * </response>
834
- * </examples>
835
- */
836
- public pollForTask(args: PollForTaskCommandInput, options?: __HttpHandlerOptions): Promise<PollForTaskCommandOutput>;
837
- public pollForTask(args: PollForTaskCommandInput, cb: (err: any, data?: PollForTaskCommandOutput) => void): void;
838
- public pollForTask(
839
- args: PollForTaskCommandInput,
840
- options: __HttpHandlerOptions,
841
- cb: (err: any, data?: PollForTaskCommandOutput) => void
842
- ): void;
843
- public pollForTask(
844
- args: PollForTaskCommandInput,
845
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PollForTaskCommandOutput) => void),
846
- cb?: (err: any, data?: PollForTaskCommandOutput) => void
847
- ): Promise<PollForTaskCommandOutput> | void {
848
- const command = new PollForTaskCommand(args);
849
- if (typeof optionsOrCb === "function") {
850
- this.send(command, optionsOrCb);
851
- } else if (typeof cb === "function") {
852
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
853
- this.send(command, optionsOrCb || {}, cb);
854
- } else {
855
- return this.send(command, optionsOrCb);
856
- }
857
- }
858
-
859
- /**
860
- * <p>Adds tasks, schedules, and preconditions to the specified pipeline. You can use <code>PutPipelineDefinition</code> to populate a new pipeline.</p>
861
- * <p>
862
- * <code>PutPipelineDefinition</code> also validates the configuration as it adds it to the pipeline. Changes to the pipeline are saved unless one
863
- * of the following three validation errors exists in the pipeline.
864
- * </p>
865
- * <ol>
866
- * <li>An object is missing a name or identifier field.</li>
867
- * <li>A string or reference field is empty.</li>
868
- * <li>The number of objects in the pipeline exceeds the maximum allowed objects.</li>
869
- * <li>The pipeline is in a FINISHED state.</li>
870
- * </ol>
871
- * <p>
872
- * Pipeline object definitions are passed to the <code>PutPipelineDefinition</code> action and returned by the <a>GetPipelineDefinition</a> action.
873
- * </p>
874
- * <examples>
875
- * <example>
876
- * <name>Example 1</name>
877
- * <description>
878
- * This example sets an valid pipeline configuration and returns success.
879
- * </description>
880
- * <request>
881
- *
882
- * POST / HTTP/1.1
883
- * Content-Type: application/x-amz-json-1.1
884
- * X-Amz-Target: DataPipeline.PutPipelineDefinition
885
- * Content-Length: 914
886
- * Host: datapipeline.us-east-1.amazonaws.com
887
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
888
- * Authorization: AuthParams
889
- *
890
- * {"pipelineId": "df-0937003356ZJEXAMPLE",
891
- * "pipelineObjects":
892
- * [
893
- * {"id": "Default",
894
- * "name": "Default",
895
- * "fields":
896
- * [
897
- * {"key": "workerGroup",
898
- * "stringValue": "workerGroup"}
899
- * ]
900
- * },
901
- * {"id": "Schedule",
902
- * "name": "Schedule",
903
- * "fields":
904
- * [
905
- * {"key": "startDateTime",
906
- * "stringValue": "2012-12-12T00:00:00"},
907
- * {"key": "type",
908
- * "stringValue": "Schedule"},
909
- * {"key": "period",
910
- * "stringValue": "1 hour"},
911
- * {"key": "endDateTime",
912
- * "stringValue": "2012-12-21T18:00:00"}
913
- * ]
914
- * },
915
- * {"id": "SayHello",
916
- * "name": "SayHello",
917
- * "fields":
918
- * [
919
- * {"key": "type",
920
- * "stringValue": "ShellCommandActivity"},
921
- * {"key": "command",
922
- * "stringValue": "echo hello"},
923
- * {"key": "parent",
924
- * "refValue": "Default"},
925
- * {"key": "schedule",
926
- * "refValue": "Schedule"}
927
- * ]
928
- * }
929
- * ]
930
- * }
931
- *
932
- * </request>
933
- * <response>
934
- *
935
- * HTTP/1.1 200
936
- * x-amzn-RequestId: f74afc14-0754-11e2-af6f-6bc7a6be60d9
937
- * Content-Type: application/x-amz-json-1.1
938
- * Content-Length: 18
939
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
940
- *
941
- * {"errored": false}
942
- *
943
- *
944
- * </response>
945
- * </example>
946
- * <example>
947
- * <name>Example 2</name>
948
- * <description>
949
- * This example sets an invalid pipeline configuration (the value for <code>workerGroup</code> is an empty string) and returns an error message.
950
- * </description>
951
- * <request>
952
- *
953
- * POST / HTTP/1.1
954
- * Content-Type: application/x-amz-json-1.1
955
- * X-Amz-Target: DataPipeline.PutPipelineDefinition
956
- * Content-Length: 903
957
- * Host: datapipeline.us-east-1.amazonaws.com
958
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
959
- * Authorization: AuthParams
960
- *
961
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
962
- * "pipelineObjects":
963
- * [
964
- * {"id": "Default",
965
- * "name": "Default",
966
- * "fields":
967
- * [
968
- * {"key": "workerGroup",
969
- * "stringValue": ""}
970
- * ]
971
- * },
972
- * {"id": "Schedule",
973
- * "name": "Schedule",
974
- * "fields":
975
- * [
976
- * {"key": "startDateTime",
977
- * "stringValue": "2012-09-25T17:00:00"},
978
- * {"key": "type",
979
- * "stringValue": "Schedule"},
980
- * {"key": "period",
981
- * "stringValue": "1 hour"},
982
- * {"key": "endDateTime",
983
- * "stringValue": "2012-09-25T18:00:00"}
984
- * ]
985
- * },
986
- * {"id": "SayHello",
987
- * "name": "SayHello",
988
- * "fields":
989
- * [
990
- * {"key": "type",
991
- * "stringValue": "ShellCommandActivity"},
992
- * {"key": "command",
993
- * "stringValue": "echo hello"},
994
- * {"key": "parent",
995
- * "refValue": "Default"},
996
- * {"key": "schedule",
997
- * "refValue": "Schedule"}
998
- *
999
- * ]
1000
- * }
1001
- * ]
1002
- * }
1003
- *
1004
- * </request>
1005
- * <response>
1006
- *
1007
- * HTTP/1.1 200
1008
- * x-amzn-RequestId: f74afc14-0754-11e2-af6f-6bc7a6be60d9
1009
- * Content-Type: application/x-amz-json-1.1
1010
- * Content-Length: 18
1011
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1012
- *
1013
- * {"__type": "com.amazon.setl.webservice#InvalidRequestException",
1014
- * "message": "Pipeline definition has errors: Could not save the pipeline definition due to FATAL errors: [com.amazon.setl.webservice.ValidationError@108d7ea9] Please call Validate to validate your pipeline"}
1015
- *
1016
- *
1017
- * </response>
1018
- * </example>
1019
- * </examples>
1020
- */
1021
- public putPipelineDefinition(
1022
- args: PutPipelineDefinitionCommandInput,
1023
- options?: __HttpHandlerOptions
1024
- ): Promise<PutPipelineDefinitionCommandOutput>;
1025
- public putPipelineDefinition(
1026
- args: PutPipelineDefinitionCommandInput,
1027
- cb: (err: any, data?: PutPipelineDefinitionCommandOutput) => void
1028
- ): void;
1029
- public putPipelineDefinition(
1030
- args: PutPipelineDefinitionCommandInput,
1031
- options: __HttpHandlerOptions,
1032
- cb: (err: any, data?: PutPipelineDefinitionCommandOutput) => void
1033
- ): void;
1034
- public putPipelineDefinition(
1035
- args: PutPipelineDefinitionCommandInput,
1036
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutPipelineDefinitionCommandOutput) => void),
1037
- cb?: (err: any, data?: PutPipelineDefinitionCommandOutput) => void
1038
- ): Promise<PutPipelineDefinitionCommandOutput> | void {
1039
- const command = new PutPipelineDefinitionCommand(args);
1040
- if (typeof optionsOrCb === "function") {
1041
- this.send(command, optionsOrCb);
1042
- } else if (typeof cb === "function") {
1043
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1044
- this.send(command, optionsOrCb || {}, cb);
1045
- } else {
1046
- return this.send(command, optionsOrCb);
1047
- }
1048
- }
1049
-
1050
- /**
1051
- * <p>Queries the specified pipeline for the names of objects that match the specified set of conditions.</p>
1052
- *
1053
- * <examples>
1054
- * <request>
1055
- *
1056
- * POST / HTTP/1.1
1057
- * Content-Type: application/x-amz-json-1.1
1058
- * X-Amz-Target: DataPipeline.QueryObjects
1059
- * Content-Length: 123
1060
- * Host: datapipeline.us-east-1.amazonaws.com
1061
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1062
- * Authorization: AuthParams
1063
- *
1064
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
1065
- * "query":
1066
- * {"selectors":
1067
- * [
1068
- * ]
1069
- * },
1070
- * "sphere": "INSTANCE",
1071
- * "marker": "",
1072
- * "limit": 10}
1073
- *
1074
- * </request>
1075
- *
1076
- *
1077
- * <response>
1078
- *
1079
- * x-amzn-RequestId: 14d704c1-0775-11e2-af6f-6bc7a6be60d9
1080
- * Content-Type: application/x-amz-json-1.1
1081
- * Content-Length: 72
1082
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1083
- *
1084
- * {"hasMoreResults": false,
1085
- * "ids":
1086
- * ["@SayHello_1_2012-09-25T17:00:00"]
1087
- * }
1088
- * </response>
1089
- * </examples>
1090
- */
1091
- public queryObjects(
1092
- args: QueryObjectsCommandInput,
1093
- options?: __HttpHandlerOptions
1094
- ): Promise<QueryObjectsCommandOutput>;
1095
- public queryObjects(args: QueryObjectsCommandInput, cb: (err: any, data?: QueryObjectsCommandOutput) => void): void;
1096
- public queryObjects(
1097
- args: QueryObjectsCommandInput,
1098
- options: __HttpHandlerOptions,
1099
- cb: (err: any, data?: QueryObjectsCommandOutput) => void
1100
- ): void;
1101
- public queryObjects(
1102
- args: QueryObjectsCommandInput,
1103
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: QueryObjectsCommandOutput) => void),
1104
- cb?: (err: any, data?: QueryObjectsCommandOutput) => void
1105
- ): Promise<QueryObjectsCommandOutput> | void {
1106
- const command = new QueryObjectsCommand(args);
1107
- if (typeof optionsOrCb === "function") {
1108
- this.send(command, optionsOrCb);
1109
- } else if (typeof cb === "function") {
1110
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1111
- this.send(command, optionsOrCb || {}, cb);
1112
- } else {
1113
- return this.send(command, optionsOrCb);
1114
- }
1115
- }
1116
-
1117
- /**
1118
- * <p>Removes existing tags from the specified pipeline.</p>
1119
- */
1120
- public removeTags(args: RemoveTagsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveTagsCommandOutput>;
1121
- public removeTags(args: RemoveTagsCommandInput, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;
1122
- public removeTags(
1123
- args: RemoveTagsCommandInput,
1124
- options: __HttpHandlerOptions,
1125
- cb: (err: any, data?: RemoveTagsCommandOutput) => void
1126
- ): void;
1127
- public removeTags(
1128
- args: RemoveTagsCommandInput,
1129
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveTagsCommandOutput) => void),
1130
- cb?: (err: any, data?: RemoveTagsCommandOutput) => void
1131
- ): Promise<RemoveTagsCommandOutput> | void {
1132
- const command = new RemoveTagsCommand(args);
1133
- if (typeof optionsOrCb === "function") {
1134
- this.send(command, optionsOrCb);
1135
- } else if (typeof cb === "function") {
1136
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1137
- this.send(command, optionsOrCb || {}, cb);
1138
- } else {
1139
- return this.send(command, optionsOrCb);
1140
- }
1141
- }
1142
-
1143
- /**
1144
- * <p>Task runners call <code>ReportTaskProgress</code> when assigned a task to acknowledge that it has the task. If the web service does not
1145
- * receive this acknowledgement within 2 minutes, it assigns the task in a subsequent <a>PollForTask</a> call. After this initial acknowledgement,
1146
- * the task runner only needs to report progress every 15 minutes to maintain its ownership of the task. You can change this reporting time
1147
- * from 15 minutes by specifying a <code>reportProgressTimeout</code> field in your pipeline.</p>
1148
- * <p>If a task runner does not report its status after 5 minutes, AWS Data Pipeline assumes that the task runner is unable to process the task
1149
- * and reassigns the task in a subsequent response to <a>PollForTask</a>. Task runners should call <code>ReportTaskProgress</code> every 60 seconds.</p>
1150
- * <examples>
1151
- * <request>
1152
- *
1153
- * POST / HTTP/1.1
1154
- * Content-Type: application/x-amz-json-1.1
1155
- * X-Amz-Target: DataPipeline.ReportTaskProgress
1156
- * Content-Length: 832
1157
- * Host: datapipeline.us-east-1.amazonaws.com
1158
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1159
- * Authorization: AuthParams
1160
- *
1161
- * {"taskId": "aaGgHT4LuH0T0Y0oLrJRjas5qH0d8cDPADxqq3tn+zCWGELkCdV2JprLreXm1oxeP5EFZHFLJ69kjSsLYE0iYHYBYVGBrB+E/pYq7ANEEeGJFnSBMRiXZVA+8UJ3OzcInvXeinqBmBaKwii7hnnKb/AXjXiNTXyxgydX1KAyg1AxkwBYG4cfPYMZbuEbQJFJvv5C/2+GVXz1w94nKYTeUeepwUOFOuRLS6JVtZoYwpF56E+Yfk1IcGpFOvCZ01B4Bkuu7x3J+MD/j6kJgZLAgbCJQtI3eiW3kdGmX0p0I2BdY1ZsX6b4UiSvM3OMj6NEHJCJL4E0ZfitnhCoe24Kvjo6C2hFbZq+ei/HPgSXBQMSagkr4vS9c0ChzxH2+LNYvec6bY4kymkaZI1dvOzmpa0FcnGf5AjSK4GpsViZ/ujz6zxFv81qBXzjF0/4M1775rjV1VUdyKaixiA/sJiACNezqZqETidp8d24BDPRhGsj6pBCrnelqGFrk/gXEXUsJ+xwMifRC8UVwiKekpAvHUywVk7Ku4jH/n3i2VoLRP6FXwpUbelu34iiZ9czpXyLtyPKwxa87dlrnRVURwkcVjOt2Mcrcaqe+cbWHvNRhyrPkkdfSF3ac8/wfgVbXvLEB2k9mKc67aD9rvdc1PKX09Tk8BKklsMTpZ3TRCd4NzQlJKigMe8Jat9+1tKj4Ole5ZzW6uyTu2s2iFjEV8KXu4MaiRJyNKCdKeGhhZWY37Qk4NBK4Ppgu+C6Y41dpfOh288SLDEVx0/UySlqOEdhba7c6BiPp5r3hKj3mk9lFy5OYp1aoGLeeFmjXveTnPdf2gkWqXXg7AUbJ7jEs1F0lKZQg4szep2gcKyAJXgvXLfJJHcha8Lfb/Ee7wYmyOcAaRpDBoFNSbtoVXar46teIrpho+ZDvynUXvU0grHWGOk=:wn3SgymHZM99bEXAMPLE",
1162
- * "fields":
1163
- * [
1164
- * {"key": "percentComplete",
1165
- * "stringValue": "50"}
1166
- * ]
1167
- * }
1168
- *
1169
- * </request>
1170
- *
1171
- * <response>
1172
- *
1173
- * x-amzn-RequestId: 640bd023-0775-11e2-af6f-6bc7a6be60d9
1174
- * Content-Type: application/x-amz-json-1.1
1175
- * Content-Length: 18
1176
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1177
- *
1178
- * {"canceled": false}
1179
- *
1180
- * </response>
1181
- * </examples>
1182
- */
1183
- public reportTaskProgress(
1184
- args: ReportTaskProgressCommandInput,
1185
- options?: __HttpHandlerOptions
1186
- ): Promise<ReportTaskProgressCommandOutput>;
1187
- public reportTaskProgress(
1188
- args: ReportTaskProgressCommandInput,
1189
- cb: (err: any, data?: ReportTaskProgressCommandOutput) => void
1190
- ): void;
1191
- public reportTaskProgress(
1192
- args: ReportTaskProgressCommandInput,
1193
- options: __HttpHandlerOptions,
1194
- cb: (err: any, data?: ReportTaskProgressCommandOutput) => void
1195
- ): void;
1196
- public reportTaskProgress(
1197
- args: ReportTaskProgressCommandInput,
1198
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ReportTaskProgressCommandOutput) => void),
1199
- cb?: (err: any, data?: ReportTaskProgressCommandOutput) => void
1200
- ): Promise<ReportTaskProgressCommandOutput> | void {
1201
- const command = new ReportTaskProgressCommand(args);
1202
- if (typeof optionsOrCb === "function") {
1203
- this.send(command, optionsOrCb);
1204
- } else if (typeof cb === "function") {
1205
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1206
- this.send(command, optionsOrCb || {}, cb);
1207
- } else {
1208
- return this.send(command, optionsOrCb);
1209
- }
1210
- }
1211
-
1212
- /**
1213
- * <p>Task runners call <code>ReportTaskRunnerHeartbeat</code> every 15 minutes to indicate that they are operational.
1214
- * If the AWS Data Pipeline Task Runner is launched on a resource managed by AWS Data Pipeline, the web service can use
1215
- * this call to detect when the task runner application has failed and restart a new instance.</p>
1216
- *
1217
- * <examples>
1218
- * <request>
1219
- *
1220
- * POST / HTTP/1.1
1221
- * Content-Type: application/x-amz-json-1.1
1222
- * X-Amz-Target: DataPipeline.ReportTaskRunnerHeartbeat
1223
- * Content-Length: 84
1224
- * Host: datapipeline.us-east-1.amazonaws.com
1225
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1226
- * Authorization: AuthParams
1227
- *
1228
- * {"taskrunnerId": "1234567890",
1229
- * "workerGroup": "wg-12345",
1230
- * "hostname": "example.com"}
1231
- *
1232
- * </request>
1233
- *
1234
- * <response>
1235
- *
1236
- * Status:
1237
- * x-amzn-RequestId: b3104dc5-0734-11e2-af6f-6bc7a6be60d9
1238
- * Content-Type: application/x-amz-json-1.1
1239
- * Content-Length: 20
1240
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1241
- *
1242
- * {"terminate": false}
1243
- *
1244
- * </response>
1245
- * </examples>
1246
- */
1247
- public reportTaskRunnerHeartbeat(
1248
- args: ReportTaskRunnerHeartbeatCommandInput,
1249
- options?: __HttpHandlerOptions
1250
- ): Promise<ReportTaskRunnerHeartbeatCommandOutput>;
1251
- public reportTaskRunnerHeartbeat(
1252
- args: ReportTaskRunnerHeartbeatCommandInput,
1253
- cb: (err: any, data?: ReportTaskRunnerHeartbeatCommandOutput) => void
1254
- ): void;
1255
- public reportTaskRunnerHeartbeat(
1256
- args: ReportTaskRunnerHeartbeatCommandInput,
1257
- options: __HttpHandlerOptions,
1258
- cb: (err: any, data?: ReportTaskRunnerHeartbeatCommandOutput) => void
1259
- ): void;
1260
- public reportTaskRunnerHeartbeat(
1261
- args: ReportTaskRunnerHeartbeatCommandInput,
1262
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ReportTaskRunnerHeartbeatCommandOutput) => void),
1263
- cb?: (err: any, data?: ReportTaskRunnerHeartbeatCommandOutput) => void
1264
- ): Promise<ReportTaskRunnerHeartbeatCommandOutput> | void {
1265
- const command = new ReportTaskRunnerHeartbeatCommand(args);
1266
- if (typeof optionsOrCb === "function") {
1267
- this.send(command, optionsOrCb);
1268
- } else if (typeof cb === "function") {
1269
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1270
- this.send(command, optionsOrCb || {}, cb);
1271
- } else {
1272
- return this.send(command, optionsOrCb);
1273
- }
1274
- }
1275
-
1276
- /**
1277
- * <p>Requests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline.
1278
- * This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity).
1279
- * You cannot perform this operation on <code>FINISHED</code> pipelines and attempting to do so returns <code>InvalidRequestException</code>.</p>
1280
- *
1281
- * <examples>
1282
- * <request>
1283
- *
1284
- * POST / HTTP/1.1
1285
- * Content-Type: application/x-amz-json-1.1
1286
- * X-Amz-Target: DataPipeline.SetStatus
1287
- * Content-Length: 100
1288
- * Host: datapipeline.us-east-1.amazonaws.com
1289
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1290
- * Authorization: AuthParams
1291
- *
1292
- * {"pipelineId": "df-0634701J7KEXAMPLE",
1293
- * "objectIds":
1294
- * ["o-08600941GHJWMBR9E2"],
1295
- * "status": "pause"}
1296
- *
1297
- * </request>
1298
- *
1299
- * <response>
1300
- *
1301
- * x-amzn-RequestId: e83b8ab7-076a-11e2-af6f-6bc7a6be60d9
1302
- * Content-Type: application/x-amz-json-1.1
1303
- * Content-Length: 0
1304
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1305
- *
1306
- * Unexpected response: 200, OK, undefined
1307
- *
1308
- * </response>
1309
- * </examples>
1310
- */
1311
- public setStatus(args: SetStatusCommandInput, options?: __HttpHandlerOptions): Promise<SetStatusCommandOutput>;
1312
- public setStatus(args: SetStatusCommandInput, cb: (err: any, data?: SetStatusCommandOutput) => void): void;
1313
- public setStatus(
1314
- args: SetStatusCommandInput,
1315
- options: __HttpHandlerOptions,
1316
- cb: (err: any, data?: SetStatusCommandOutput) => void
1317
- ): void;
1318
- public setStatus(
1319
- args: SetStatusCommandInput,
1320
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetStatusCommandOutput) => void),
1321
- cb?: (err: any, data?: SetStatusCommandOutput) => void
1322
- ): Promise<SetStatusCommandOutput> | void {
1323
- const command = new SetStatusCommand(args);
1324
- if (typeof optionsOrCb === "function") {
1325
- this.send(command, optionsOrCb);
1326
- } else if (typeof cb === "function") {
1327
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1328
- this.send(command, optionsOrCb || {}, cb);
1329
- } else {
1330
- return this.send(command, optionsOrCb);
1331
- }
1332
- }
1333
-
1334
- /**
1335
- * <p>Task runners call <code>SetTaskStatus</code> to notify AWS Data Pipeline that a task is completed and provide information about the final status.
1336
- * A task runner makes this call regardless of whether the task was sucessful. A task runner does not need to call <code>SetTaskStatus</code> for
1337
- * tasks that are canceled by the web service during a call to <a>ReportTaskProgress</a>.</p>
1338
- *
1339
- * <examples>
1340
- * <request>
1341
- *
1342
- * POST / HTTP/1.1
1343
- * Content-Type: application/x-amz-json-1.1
1344
- * X-Amz-Target: DataPipeline.SetTaskStatus
1345
- * Content-Length: 847
1346
- * Host: datapipeline.us-east-1.amazonaws.com
1347
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1348
- * Authorization: AuthParams
1349
- *
1350
- * {"taskId": "aaGgHT4LuH0T0Y0oLrJRjas5qH0d8cDPADxqq3tn+zCWGELkCdV2JprLreXm1oxeP5EFZHFLJ69kjSsLYE0iYHYBYVGBrB+E/pYq7ANEEeGJFnSBMRiXZVA+8UJ3OzcInvXeinqBmBaKwii7hnnKb/AXjXiNTXyxgydX1KAyg1AxkwBYG4cfPYMZbuEbQJFJvv5C/2+GVXz1w94nKYTeUeepwUOFOuRLS6JVtZoYwpF56E+Yfk1IcGpFOvCZ01B4Bkuu7x3J+MD/j6kJgZLAgbCJQtI3eiW3kdGmX0p0I2BdY1ZsX6b4UiSvM3OMj6NEHJCJL4E0ZfitnhCoe24Kvjo6C2hFbZq+ei/HPgSXBQMSagkr4vS9c0ChzxH2+LNYvec6bY4kymkaZI1dvOzmpa0FcnGf5AjSK4GpsViZ/ujz6zxFv81qBXzjF0/4M1775rjV1VUdyKaixiA/sJiACNezqZqETidp8d24BDPRhGsj6pBCrnelqGFrk/gXEXUsJ+xwMifRC8UVwiKekpAvHUywVk7Ku4jH/n3i2VoLRP6FXwpUbelu34iiZ9czpXyLtyPKwxa87dlrnRVURwkcVjOt2Mcrcaqe+cbWHvNRhyrPkkdfSF3ac8/wfgVbXvLEB2k9mKc67aD9rvdc1PKX09Tk8BKklsMTpZ3TRCd4NzQlJKigMe8Jat9+1tKj4Ole5ZzW6uyTu2s2iFjEV8KXu4MaiRJyNKCdKeGhhZWY37Qk4NBK4Ppgu+C6Y41dpfOh288SLDEVx0/UySlqOEdhba7c6BiPp5r3hKj3mk9lFy5OYp1aoGLeeFmjXveTnPdf2gkWqXXg7AUbJ7jEs1F0lKZQg4szep2gcKyAJXgvXLfJJHcha8Lfb/Ee7wYmyOcAaRpDBoFNSbtoVXar46teIrpho+ZDvynUXvU0grHWGOk=:wn3SgymHZM99bEXAMPLE",
1351
- * "taskStatus": "FINISHED"}
1352
- *
1353
- * </request>
1354
- *
1355
- * <response>
1356
- *
1357
- * x-amzn-RequestId: 8c8deb53-0788-11e2-af9c-6bc7a6be6qr8
1358
- * Content-Type: application/x-amz-json-1.1
1359
- * Content-Length: 0
1360
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1361
- *
1362
- * {}
1363
- *
1364
- * </response>
1365
- * </examples>
1366
- */
1367
- public setTaskStatus(
1368
- args: SetTaskStatusCommandInput,
1369
- options?: __HttpHandlerOptions
1370
- ): Promise<SetTaskStatusCommandOutput>;
1371
- public setTaskStatus(
1372
- args: SetTaskStatusCommandInput,
1373
- cb: (err: any, data?: SetTaskStatusCommandOutput) => void
1374
- ): void;
1375
- public setTaskStatus(
1376
- args: SetTaskStatusCommandInput,
1377
- options: __HttpHandlerOptions,
1378
- cb: (err: any, data?: SetTaskStatusCommandOutput) => void
1379
- ): void;
1380
- public setTaskStatus(
1381
- args: SetTaskStatusCommandInput,
1382
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetTaskStatusCommandOutput) => void),
1383
- cb?: (err: any, data?: SetTaskStatusCommandOutput) => void
1384
- ): Promise<SetTaskStatusCommandOutput> | void {
1385
- const command = new SetTaskStatusCommand(args);
1386
- if (typeof optionsOrCb === "function") {
1387
- this.send(command, optionsOrCb);
1388
- } else if (typeof cb === "function") {
1389
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1390
- this.send(command, optionsOrCb || {}, cb);
1391
- } else {
1392
- return this.send(command, optionsOrCb);
1393
- }
1394
- }
1395
-
1396
- /**
1397
- * <p>Validates the specified pipeline definition to ensure that it is well formed and can be run without error.</p>
1398
- *
1399
- * <examples>
1400
- * <example>
1401
- * <name>Example 1</name>
1402
- * <description>
1403
- * This example sets an valid pipeline configuration and returns success.
1404
- * </description>
1405
- * <request>
1406
- *
1407
- * POST / HTTP/1.1
1408
- * Content-Type: application/x-amz-json-1.1
1409
- * X-Amz-Target: DataPipeline.ValidatePipelineDefinition
1410
- * Content-Length: 936
1411
- * Host: datapipeline.us-east-1.amazonaws.com
1412
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1413
- * Authorization: AuthParams
1414
- *
1415
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
1416
- * "pipelineObjects":
1417
- * [
1418
- * {"id": "Default",
1419
- * "name": "Default",
1420
- * "fields":
1421
- * [
1422
- * {"key": "workerGroup",
1423
- * "stringValue": "MyworkerGroup"}
1424
- * ]
1425
- * },
1426
- * {"id": "Schedule",
1427
- * "name": "Schedule",
1428
- * "fields":
1429
- * [
1430
- * {"key": "startDateTime",
1431
- * "stringValue": "2012-09-25T17:00:00"},
1432
- * {"key": "type",
1433
- * "stringValue": "Schedule"},
1434
- * {"key": "period",
1435
- * "stringValue": "1 hour"},
1436
- * {"key": "endDateTime",
1437
- * "stringValue": "2012-09-25T18:00:00"}
1438
- * ]
1439
- * },
1440
- * {"id": "SayHello",
1441
- * "name": "SayHello",
1442
- * "fields":
1443
- * [
1444
- * {"key": "type",
1445
- * "stringValue": "ShellCommandActivity"},
1446
- * {"key": "command",
1447
- * "stringValue": "echo hello"},
1448
- * {"key": "parent",
1449
- * "refValue": "Default"},
1450
- * {"key": "schedule",
1451
- * "refValue": "Schedule"}
1452
- *
1453
- * ]
1454
- * }
1455
- * ]
1456
- * }
1457
- *
1458
- * </request>
1459
- * <response>
1460
- *
1461
- * x-amzn-RequestId: 92c9f347-0776-11e2-8a14-21bb8a1f50ef
1462
- * Content-Type: application/x-amz-json-1.1
1463
- * Content-Length: 18
1464
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1465
- *
1466
- * {"errored": false}
1467
- *
1468
- * </response>
1469
- * </example>
1470
- * <example>
1471
- * <name>Example 2</name>
1472
- * <description>
1473
- * This example sets an invalid pipeline configuration and returns the associated set of validation errors.
1474
- * </description>
1475
- *
1476
- * <request>
1477
- *
1478
- * POST / HTTP/1.1
1479
- * Content-Type: application/x-amz-json-1.1
1480
- * X-Amz-Target: DataPipeline.ValidatePipelineDefinition
1481
- * Content-Length: 903
1482
- * Host: datapipeline.us-east-1.amazonaws.com
1483
- * X-Amz-Date: Mon, 12 Nov 2012 17:49:52 GMT
1484
- * Authorization: AuthParams
1485
- *
1486
- * {"pipelineId": "df-06372391ZG65EXAMPLE",
1487
- * "pipelineObjects":
1488
- * [
1489
- * {"id": "Default",
1490
- * "name": "Default",
1491
- * "fields":
1492
- * [
1493
- * {"key": "workerGroup",
1494
- * "stringValue": "MyworkerGroup"}
1495
- * ]
1496
- * },
1497
- * {"id": "Schedule",
1498
- * "name": "Schedule",
1499
- * "fields":
1500
- * [
1501
- * {"key": "startDateTime",
1502
- * "stringValue": "bad-time"},
1503
- * {"key": "type",
1504
- * "stringValue": "Schedule"},
1505
- * {"key": "period",
1506
- * "stringValue": "1 hour"},
1507
- * {"key": "endDateTime",
1508
- * "stringValue": "2012-09-25T18:00:00"}
1509
- * ]
1510
- * },
1511
- * {"id": "SayHello",
1512
- * "name": "SayHello",
1513
- * "fields":
1514
- * [
1515
- * {"key": "type",
1516
- * "stringValue": "ShellCommandActivity"},
1517
- * {"key": "command",
1518
- * "stringValue": "echo hello"},
1519
- * {"key": "parent",
1520
- * "refValue": "Default"},
1521
- * {"key": "schedule",
1522
- * "refValue": "Schedule"}
1523
- *
1524
- * ]
1525
- * }
1526
- * ]
1527
- * }
1528
- *
1529
- * </request>
1530
- * <response>
1531
- *
1532
- * x-amzn-RequestId: 496a1f5a-0e6a-11e2-a61c-bd6312c92ddd
1533
- * Content-Type: application/x-amz-json-1.1
1534
- * Content-Length: 278
1535
- * Date: Mon, 12 Nov 2012 17:50:53 GMT
1536
- *
1537
- * {"errored": true,
1538
- * "validationErrors":
1539
- * [
1540
- * {"errors":
1541
- * ["INVALID_FIELD_VALUE: 'startDateTime' value must be a literal datetime value."],
1542
- * "id": "Schedule"}
1543
- * ]
1544
- * }
1545
- *
1546
- * </response>
1547
- * </example>
1548
- * </examples>
1549
- */
1550
- public validatePipelineDefinition(
1551
- args: ValidatePipelineDefinitionCommandInput,
1552
- options?: __HttpHandlerOptions
1553
- ): Promise<ValidatePipelineDefinitionCommandOutput>;
1554
- public validatePipelineDefinition(
1555
- args: ValidatePipelineDefinitionCommandInput,
1556
- cb: (err: any, data?: ValidatePipelineDefinitionCommandOutput) => void
1557
- ): void;
1558
- public validatePipelineDefinition(
1559
- args: ValidatePipelineDefinitionCommandInput,
1560
- options: __HttpHandlerOptions,
1561
- cb: (err: any, data?: ValidatePipelineDefinitionCommandOutput) => void
1562
- ): void;
1563
- public validatePipelineDefinition(
1564
- args: ValidatePipelineDefinitionCommandInput,
1565
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ValidatePipelineDefinitionCommandOutput) => void),
1566
- cb?: (err: any, data?: ValidatePipelineDefinitionCommandOutput) => void
1567
- ): Promise<ValidatePipelineDefinitionCommandOutput> | void {
1568
- const command = new ValidatePipelineDefinitionCommand(args);
1569
- if (typeof optionsOrCb === "function") {
1570
- this.send(command, optionsOrCb);
1571
- } else if (typeof cb === "function") {
1572
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1573
- this.send(command, optionsOrCb || {}, cb);
1574
- } else {
1575
- return this.send(command, optionsOrCb);
1576
- }
1577
- }
1578
- }