@aws-sdk/client-data-pipeline 3.35.0 → 3.36.0

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