@aws-sdk/client-data-pipeline 3.503.1 → 3.507.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.
- package/dist-cjs/index.js +24 -510
- package/dist-es/protocols/Aws_json1_1.js +23 -509
- package/package.json +3 -3
|
@@ -118,7 +118,7 @@ export const se_ValidatePipelineDefinitionCommand = async (input, context) => {
|
|
|
118
118
|
};
|
|
119
119
|
export const de_ActivatePipelineCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_CommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
@@ -129,37 +129,9 @@ export const de_ActivatePipelineCommand = async (output, context) => {
|
|
|
129
129
|
};
|
|
130
130
|
return response;
|
|
131
131
|
};
|
|
132
|
-
const de_ActivatePipelineCommandError = async (output, context) => {
|
|
133
|
-
const parsedOutput = {
|
|
134
|
-
...output,
|
|
135
|
-
body: await parseErrorBody(output.body, context),
|
|
136
|
-
};
|
|
137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
138
|
-
switch (errorCode) {
|
|
139
|
-
case "InternalServiceError":
|
|
140
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
141
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
142
|
-
case "InvalidRequestException":
|
|
143
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
144
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
145
|
-
case "PipelineDeletedException":
|
|
146
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
147
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
148
|
-
case "PipelineNotFoundException":
|
|
149
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
150
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
151
|
-
default:
|
|
152
|
-
const parsedBody = parsedOutput.body;
|
|
153
|
-
return throwDefaultError({
|
|
154
|
-
output,
|
|
155
|
-
parsedBody,
|
|
156
|
-
errorCode,
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
132
|
export const de_AddTagsCommand = async (output, context) => {
|
|
161
133
|
if (output.statusCode >= 300) {
|
|
162
|
-
return
|
|
134
|
+
return de_CommandError(output, context);
|
|
163
135
|
}
|
|
164
136
|
const data = await parseBody(output.body, context);
|
|
165
137
|
let contents = {};
|
|
@@ -170,37 +142,9 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
170
142
|
};
|
|
171
143
|
return response;
|
|
172
144
|
};
|
|
173
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
174
|
-
const parsedOutput = {
|
|
175
|
-
...output,
|
|
176
|
-
body: await parseErrorBody(output.body, context),
|
|
177
|
-
};
|
|
178
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
179
|
-
switch (errorCode) {
|
|
180
|
-
case "InternalServiceError":
|
|
181
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
182
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
183
|
-
case "InvalidRequestException":
|
|
184
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
185
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
186
|
-
case "PipelineDeletedException":
|
|
187
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
188
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
189
|
-
case "PipelineNotFoundException":
|
|
190
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
191
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
192
|
-
default:
|
|
193
|
-
const parsedBody = parsedOutput.body;
|
|
194
|
-
return throwDefaultError({
|
|
195
|
-
output,
|
|
196
|
-
parsedBody,
|
|
197
|
-
errorCode,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
145
|
export const de_CreatePipelineCommand = async (output, context) => {
|
|
202
146
|
if (output.statusCode >= 300) {
|
|
203
|
-
return
|
|
147
|
+
return de_CommandError(output, context);
|
|
204
148
|
}
|
|
205
149
|
const data = await parseBody(output.body, context);
|
|
206
150
|
let contents = {};
|
|
@@ -211,31 +155,9 @@ export const de_CreatePipelineCommand = async (output, context) => {
|
|
|
211
155
|
};
|
|
212
156
|
return response;
|
|
213
157
|
};
|
|
214
|
-
const de_CreatePipelineCommandError = async (output, context) => {
|
|
215
|
-
const parsedOutput = {
|
|
216
|
-
...output,
|
|
217
|
-
body: await parseErrorBody(output.body, context),
|
|
218
|
-
};
|
|
219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
|
-
switch (errorCode) {
|
|
221
|
-
case "InternalServiceError":
|
|
222
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
223
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
224
|
-
case "InvalidRequestException":
|
|
225
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
226
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
227
|
-
default:
|
|
228
|
-
const parsedBody = parsedOutput.body;
|
|
229
|
-
return throwDefaultError({
|
|
230
|
-
output,
|
|
231
|
-
parsedBody,
|
|
232
|
-
errorCode,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
158
|
export const de_DeactivatePipelineCommand = async (output, context) => {
|
|
237
159
|
if (output.statusCode >= 300) {
|
|
238
|
-
return
|
|
160
|
+
return de_CommandError(output, context);
|
|
239
161
|
}
|
|
240
162
|
const data = await parseBody(output.body, context);
|
|
241
163
|
let contents = {};
|
|
@@ -246,37 +168,9 @@ export const de_DeactivatePipelineCommand = async (output, context) => {
|
|
|
246
168
|
};
|
|
247
169
|
return response;
|
|
248
170
|
};
|
|
249
|
-
const de_DeactivatePipelineCommandError = async (output, context) => {
|
|
250
|
-
const parsedOutput = {
|
|
251
|
-
...output,
|
|
252
|
-
body: await parseErrorBody(output.body, context),
|
|
253
|
-
};
|
|
254
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
255
|
-
switch (errorCode) {
|
|
256
|
-
case "InternalServiceError":
|
|
257
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
258
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
259
|
-
case "InvalidRequestException":
|
|
260
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
261
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
262
|
-
case "PipelineDeletedException":
|
|
263
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
264
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
265
|
-
case "PipelineNotFoundException":
|
|
266
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
267
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
268
|
-
default:
|
|
269
|
-
const parsedBody = parsedOutput.body;
|
|
270
|
-
return throwDefaultError({
|
|
271
|
-
output,
|
|
272
|
-
parsedBody,
|
|
273
|
-
errorCode,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
171
|
export const de_DeletePipelineCommand = async (output, context) => {
|
|
278
172
|
if (output.statusCode >= 300) {
|
|
279
|
-
return
|
|
173
|
+
return de_CommandError(output, context);
|
|
280
174
|
}
|
|
281
175
|
await collectBody(output.body, context);
|
|
282
176
|
const response = {
|
|
@@ -284,34 +178,9 @@ export const de_DeletePipelineCommand = async (output, context) => {
|
|
|
284
178
|
};
|
|
285
179
|
return response;
|
|
286
180
|
};
|
|
287
|
-
const de_DeletePipelineCommandError = async (output, context) => {
|
|
288
|
-
const parsedOutput = {
|
|
289
|
-
...output,
|
|
290
|
-
body: await parseErrorBody(output.body, context),
|
|
291
|
-
};
|
|
292
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
293
|
-
switch (errorCode) {
|
|
294
|
-
case "InternalServiceError":
|
|
295
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
296
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
297
|
-
case "InvalidRequestException":
|
|
298
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
299
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
300
|
-
case "PipelineNotFoundException":
|
|
301
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
302
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
303
|
-
default:
|
|
304
|
-
const parsedBody = parsedOutput.body;
|
|
305
|
-
return throwDefaultError({
|
|
306
|
-
output,
|
|
307
|
-
parsedBody,
|
|
308
|
-
errorCode,
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
181
|
export const de_DescribeObjectsCommand = async (output, context) => {
|
|
313
182
|
if (output.statusCode >= 300) {
|
|
314
|
-
return
|
|
183
|
+
return de_CommandError(output, context);
|
|
315
184
|
}
|
|
316
185
|
const data = await parseBody(output.body, context);
|
|
317
186
|
let contents = {};
|
|
@@ -322,37 +191,9 @@ export const de_DescribeObjectsCommand = async (output, context) => {
|
|
|
322
191
|
};
|
|
323
192
|
return response;
|
|
324
193
|
};
|
|
325
|
-
const de_DescribeObjectsCommandError = async (output, context) => {
|
|
326
|
-
const parsedOutput = {
|
|
327
|
-
...output,
|
|
328
|
-
body: await parseErrorBody(output.body, context),
|
|
329
|
-
};
|
|
330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
|
-
switch (errorCode) {
|
|
332
|
-
case "InternalServiceError":
|
|
333
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
334
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
335
|
-
case "InvalidRequestException":
|
|
336
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
337
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
338
|
-
case "PipelineDeletedException":
|
|
339
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
340
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
341
|
-
case "PipelineNotFoundException":
|
|
342
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
343
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
344
|
-
default:
|
|
345
|
-
const parsedBody = parsedOutput.body;
|
|
346
|
-
return throwDefaultError({
|
|
347
|
-
output,
|
|
348
|
-
parsedBody,
|
|
349
|
-
errorCode,
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
194
|
export const de_DescribePipelinesCommand = async (output, context) => {
|
|
354
195
|
if (output.statusCode >= 300) {
|
|
355
|
-
return
|
|
196
|
+
return de_CommandError(output, context);
|
|
356
197
|
}
|
|
357
198
|
const data = await parseBody(output.body, context);
|
|
358
199
|
let contents = {};
|
|
@@ -363,37 +204,9 @@ export const de_DescribePipelinesCommand = async (output, context) => {
|
|
|
363
204
|
};
|
|
364
205
|
return response;
|
|
365
206
|
};
|
|
366
|
-
const de_DescribePipelinesCommandError = async (output, context) => {
|
|
367
|
-
const parsedOutput = {
|
|
368
|
-
...output,
|
|
369
|
-
body: await parseErrorBody(output.body, context),
|
|
370
|
-
};
|
|
371
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
372
|
-
switch (errorCode) {
|
|
373
|
-
case "InternalServiceError":
|
|
374
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
375
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
376
|
-
case "InvalidRequestException":
|
|
377
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
378
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
379
|
-
case "PipelineDeletedException":
|
|
380
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
381
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
382
|
-
case "PipelineNotFoundException":
|
|
383
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
384
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
385
|
-
default:
|
|
386
|
-
const parsedBody = parsedOutput.body;
|
|
387
|
-
return throwDefaultError({
|
|
388
|
-
output,
|
|
389
|
-
parsedBody,
|
|
390
|
-
errorCode,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
207
|
export const de_EvaluateExpressionCommand = async (output, context) => {
|
|
395
208
|
if (output.statusCode >= 300) {
|
|
396
|
-
return
|
|
209
|
+
return de_CommandError(output, context);
|
|
397
210
|
}
|
|
398
211
|
const data = await parseBody(output.body, context);
|
|
399
212
|
let contents = {};
|
|
@@ -404,40 +217,9 @@ export const de_EvaluateExpressionCommand = async (output, context) => {
|
|
|
404
217
|
};
|
|
405
218
|
return response;
|
|
406
219
|
};
|
|
407
|
-
const de_EvaluateExpressionCommandError = async (output, context) => {
|
|
408
|
-
const parsedOutput = {
|
|
409
|
-
...output,
|
|
410
|
-
body: await parseErrorBody(output.body, context),
|
|
411
|
-
};
|
|
412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
413
|
-
switch (errorCode) {
|
|
414
|
-
case "InternalServiceError":
|
|
415
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
416
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
417
|
-
case "InvalidRequestException":
|
|
418
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
419
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
420
|
-
case "PipelineDeletedException":
|
|
421
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
422
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
423
|
-
case "PipelineNotFoundException":
|
|
424
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
425
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
426
|
-
case "TaskNotFoundException":
|
|
427
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
428
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
429
|
-
default:
|
|
430
|
-
const parsedBody = parsedOutput.body;
|
|
431
|
-
return throwDefaultError({
|
|
432
|
-
output,
|
|
433
|
-
parsedBody,
|
|
434
|
-
errorCode,
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
220
|
export const de_GetPipelineDefinitionCommand = async (output, context) => {
|
|
439
221
|
if (output.statusCode >= 300) {
|
|
440
|
-
return
|
|
222
|
+
return de_CommandError(output, context);
|
|
441
223
|
}
|
|
442
224
|
const data = await parseBody(output.body, context);
|
|
443
225
|
let contents = {};
|
|
@@ -448,37 +230,9 @@ export const de_GetPipelineDefinitionCommand = async (output, context) => {
|
|
|
448
230
|
};
|
|
449
231
|
return response;
|
|
450
232
|
};
|
|
451
|
-
const de_GetPipelineDefinitionCommandError = async (output, context) => {
|
|
452
|
-
const parsedOutput = {
|
|
453
|
-
...output,
|
|
454
|
-
body: await parseErrorBody(output.body, context),
|
|
455
|
-
};
|
|
456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
|
-
switch (errorCode) {
|
|
458
|
-
case "InternalServiceError":
|
|
459
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
460
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
461
|
-
case "InvalidRequestException":
|
|
462
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
463
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
464
|
-
case "PipelineDeletedException":
|
|
465
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
466
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
467
|
-
case "PipelineNotFoundException":
|
|
468
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
469
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
470
|
-
default:
|
|
471
|
-
const parsedBody = parsedOutput.body;
|
|
472
|
-
return throwDefaultError({
|
|
473
|
-
output,
|
|
474
|
-
parsedBody,
|
|
475
|
-
errorCode,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
233
|
export const de_ListPipelinesCommand = async (output, context) => {
|
|
480
234
|
if (output.statusCode >= 300) {
|
|
481
|
-
return
|
|
235
|
+
return de_CommandError(output, context);
|
|
482
236
|
}
|
|
483
237
|
const data = await parseBody(output.body, context);
|
|
484
238
|
let contents = {};
|
|
@@ -489,31 +243,9 @@ export const de_ListPipelinesCommand = async (output, context) => {
|
|
|
489
243
|
};
|
|
490
244
|
return response;
|
|
491
245
|
};
|
|
492
|
-
const de_ListPipelinesCommandError = async (output, context) => {
|
|
493
|
-
const parsedOutput = {
|
|
494
|
-
...output,
|
|
495
|
-
body: await parseErrorBody(output.body, context),
|
|
496
|
-
};
|
|
497
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
498
|
-
switch (errorCode) {
|
|
499
|
-
case "InternalServiceError":
|
|
500
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
501
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
502
|
-
case "InvalidRequestException":
|
|
503
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
504
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
505
|
-
default:
|
|
506
|
-
const parsedBody = parsedOutput.body;
|
|
507
|
-
return throwDefaultError({
|
|
508
|
-
output,
|
|
509
|
-
parsedBody,
|
|
510
|
-
errorCode,
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
246
|
export const de_PollForTaskCommand = async (output, context) => {
|
|
515
247
|
if (output.statusCode >= 300) {
|
|
516
|
-
return
|
|
248
|
+
return de_CommandError(output, context);
|
|
517
249
|
}
|
|
518
250
|
const data = await parseBody(output.body, context);
|
|
519
251
|
let contents = {};
|
|
@@ -524,34 +256,9 @@ export const de_PollForTaskCommand = async (output, context) => {
|
|
|
524
256
|
};
|
|
525
257
|
return response;
|
|
526
258
|
};
|
|
527
|
-
const de_PollForTaskCommandError = async (output, context) => {
|
|
528
|
-
const parsedOutput = {
|
|
529
|
-
...output,
|
|
530
|
-
body: await parseErrorBody(output.body, context),
|
|
531
|
-
};
|
|
532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
|
-
switch (errorCode) {
|
|
534
|
-
case "InternalServiceError":
|
|
535
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
536
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
537
|
-
case "InvalidRequestException":
|
|
538
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
539
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
540
|
-
case "TaskNotFoundException":
|
|
541
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
542
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
543
|
-
default:
|
|
544
|
-
const parsedBody = parsedOutput.body;
|
|
545
|
-
return throwDefaultError({
|
|
546
|
-
output,
|
|
547
|
-
parsedBody,
|
|
548
|
-
errorCode,
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
259
|
export const de_PutPipelineDefinitionCommand = async (output, context) => {
|
|
553
260
|
if (output.statusCode >= 300) {
|
|
554
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
555
262
|
}
|
|
556
263
|
const data = await parseBody(output.body, context);
|
|
557
264
|
let contents = {};
|
|
@@ -562,37 +269,9 @@ export const de_PutPipelineDefinitionCommand = async (output, context) => {
|
|
|
562
269
|
};
|
|
563
270
|
return response;
|
|
564
271
|
};
|
|
565
|
-
const de_PutPipelineDefinitionCommandError = async (output, context) => {
|
|
566
|
-
const parsedOutput = {
|
|
567
|
-
...output,
|
|
568
|
-
body: await parseErrorBody(output.body, context),
|
|
569
|
-
};
|
|
570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
571
|
-
switch (errorCode) {
|
|
572
|
-
case "InternalServiceError":
|
|
573
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
574
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
575
|
-
case "InvalidRequestException":
|
|
576
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
577
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
578
|
-
case "PipelineDeletedException":
|
|
579
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
580
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
581
|
-
case "PipelineNotFoundException":
|
|
582
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
583
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
584
|
-
default:
|
|
585
|
-
const parsedBody = parsedOutput.body;
|
|
586
|
-
return throwDefaultError({
|
|
587
|
-
output,
|
|
588
|
-
parsedBody,
|
|
589
|
-
errorCode,
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
272
|
export const de_QueryObjectsCommand = async (output, context) => {
|
|
594
273
|
if (output.statusCode >= 300) {
|
|
595
|
-
return
|
|
274
|
+
return de_CommandError(output, context);
|
|
596
275
|
}
|
|
597
276
|
const data = await parseBody(output.body, context);
|
|
598
277
|
let contents = {};
|
|
@@ -603,37 +282,9 @@ export const de_QueryObjectsCommand = async (output, context) => {
|
|
|
603
282
|
};
|
|
604
283
|
return response;
|
|
605
284
|
};
|
|
606
|
-
const de_QueryObjectsCommandError = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "InternalServiceError":
|
|
614
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
615
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
616
|
-
case "InvalidRequestException":
|
|
617
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
618
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
619
|
-
case "PipelineDeletedException":
|
|
620
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
621
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
622
|
-
case "PipelineNotFoundException":
|
|
623
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
624
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
-
default:
|
|
626
|
-
const parsedBody = parsedOutput.body;
|
|
627
|
-
return throwDefaultError({
|
|
628
|
-
output,
|
|
629
|
-
parsedBody,
|
|
630
|
-
errorCode,
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
285
|
export const de_RemoveTagsCommand = async (output, context) => {
|
|
635
286
|
if (output.statusCode >= 300) {
|
|
636
|
-
return
|
|
287
|
+
return de_CommandError(output, context);
|
|
637
288
|
}
|
|
638
289
|
const data = await parseBody(output.body, context);
|
|
639
290
|
let contents = {};
|
|
@@ -644,37 +295,9 @@ export const de_RemoveTagsCommand = async (output, context) => {
|
|
|
644
295
|
};
|
|
645
296
|
return response;
|
|
646
297
|
};
|
|
647
|
-
const de_RemoveTagsCommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "InternalServiceError":
|
|
655
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
656
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
657
|
-
case "InvalidRequestException":
|
|
658
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
659
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
660
|
-
case "PipelineDeletedException":
|
|
661
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
662
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
663
|
-
case "PipelineNotFoundException":
|
|
664
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
665
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
298
|
export const de_ReportTaskProgressCommand = async (output, context) => {
|
|
676
299
|
if (output.statusCode >= 300) {
|
|
677
|
-
return
|
|
300
|
+
return de_CommandError(output, context);
|
|
678
301
|
}
|
|
679
302
|
const data = await parseBody(output.body, context);
|
|
680
303
|
let contents = {};
|
|
@@ -685,40 +308,9 @@ export const de_ReportTaskProgressCommand = async (output, context) => {
|
|
|
685
308
|
};
|
|
686
309
|
return response;
|
|
687
310
|
};
|
|
688
|
-
const de_ReportTaskProgressCommandError = async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context),
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "InternalServiceError":
|
|
696
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
697
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
698
|
-
case "InvalidRequestException":
|
|
699
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
700
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
701
|
-
case "PipelineDeletedException":
|
|
702
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
703
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
704
|
-
case "PipelineNotFoundException":
|
|
705
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
706
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
707
|
-
case "TaskNotFoundException":
|
|
708
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
709
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
710
|
-
default:
|
|
711
|
-
const parsedBody = parsedOutput.body;
|
|
712
|
-
return throwDefaultError({
|
|
713
|
-
output,
|
|
714
|
-
parsedBody,
|
|
715
|
-
errorCode,
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
311
|
export const de_ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
720
312
|
if (output.statusCode >= 300) {
|
|
721
|
-
return
|
|
313
|
+
return de_CommandError(output, context);
|
|
722
314
|
}
|
|
723
315
|
const data = await parseBody(output.body, context);
|
|
724
316
|
let contents = {};
|
|
@@ -729,31 +321,9 @@ export const de_ReportTaskRunnerHeartbeatCommand = async (output, context) => {
|
|
|
729
321
|
};
|
|
730
322
|
return response;
|
|
731
323
|
};
|
|
732
|
-
const de_ReportTaskRunnerHeartbeatCommandError = async (output, context) => {
|
|
733
|
-
const parsedOutput = {
|
|
734
|
-
...output,
|
|
735
|
-
body: await parseErrorBody(output.body, context),
|
|
736
|
-
};
|
|
737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
|
-
switch (errorCode) {
|
|
739
|
-
case "InternalServiceError":
|
|
740
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
741
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
742
|
-
case "InvalidRequestException":
|
|
743
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
744
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
745
|
-
default:
|
|
746
|
-
const parsedBody = parsedOutput.body;
|
|
747
|
-
return throwDefaultError({
|
|
748
|
-
output,
|
|
749
|
-
parsedBody,
|
|
750
|
-
errorCode,
|
|
751
|
-
});
|
|
752
|
-
}
|
|
753
|
-
};
|
|
754
324
|
export const de_SetStatusCommand = async (output, context) => {
|
|
755
325
|
if (output.statusCode >= 300) {
|
|
756
|
-
return
|
|
326
|
+
return de_CommandError(output, context);
|
|
757
327
|
}
|
|
758
328
|
await collectBody(output.body, context);
|
|
759
329
|
const response = {
|
|
@@ -761,37 +331,9 @@ export const de_SetStatusCommand = async (output, context) => {
|
|
|
761
331
|
};
|
|
762
332
|
return response;
|
|
763
333
|
};
|
|
764
|
-
const de_SetStatusCommandError = async (output, context) => {
|
|
765
|
-
const parsedOutput = {
|
|
766
|
-
...output,
|
|
767
|
-
body: await parseErrorBody(output.body, context),
|
|
768
|
-
};
|
|
769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "InternalServiceError":
|
|
772
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
773
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
774
|
-
case "InvalidRequestException":
|
|
775
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
776
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
777
|
-
case "PipelineDeletedException":
|
|
778
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
779
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
780
|
-
case "PipelineNotFoundException":
|
|
781
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
782
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
334
|
export const de_SetTaskStatusCommand = async (output, context) => {
|
|
793
335
|
if (output.statusCode >= 300) {
|
|
794
|
-
return
|
|
336
|
+
return de_CommandError(output, context);
|
|
795
337
|
}
|
|
796
338
|
const data = await parseBody(output.body, context);
|
|
797
339
|
let contents = {};
|
|
@@ -802,40 +344,9 @@ export const de_SetTaskStatusCommand = async (output, context) => {
|
|
|
802
344
|
};
|
|
803
345
|
return response;
|
|
804
346
|
};
|
|
805
|
-
const de_SetTaskStatusCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "InternalServiceError":
|
|
813
|
-
case "com.amazonaws.datapipeline#InternalServiceError":
|
|
814
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
815
|
-
case "InvalidRequestException":
|
|
816
|
-
case "com.amazonaws.datapipeline#InvalidRequestException":
|
|
817
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
818
|
-
case "PipelineDeletedException":
|
|
819
|
-
case "com.amazonaws.datapipeline#PipelineDeletedException":
|
|
820
|
-
throw await de_PipelineDeletedExceptionRes(parsedOutput, context);
|
|
821
|
-
case "PipelineNotFoundException":
|
|
822
|
-
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
823
|
-
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
824
|
-
case "TaskNotFoundException":
|
|
825
|
-
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
826
|
-
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
347
|
export const de_ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
837
348
|
if (output.statusCode >= 300) {
|
|
838
|
-
return
|
|
349
|
+
return de_CommandError(output, context);
|
|
839
350
|
}
|
|
840
351
|
const data = await parseBody(output.body, context);
|
|
841
352
|
let contents = {};
|
|
@@ -846,7 +357,7 @@ export const de_ValidatePipelineDefinitionCommand = async (output, context) => {
|
|
|
846
357
|
};
|
|
847
358
|
return response;
|
|
848
359
|
};
|
|
849
|
-
const
|
|
360
|
+
const de_CommandError = async (output, context) => {
|
|
850
361
|
const parsedOutput = {
|
|
851
362
|
...output,
|
|
852
363
|
body: await parseErrorBody(output.body, context),
|
|
@@ -865,6 +376,9 @@ const de_ValidatePipelineDefinitionCommandError = async (output, context) => {
|
|
|
865
376
|
case "PipelineNotFoundException":
|
|
866
377
|
case "com.amazonaws.datapipeline#PipelineNotFoundException":
|
|
867
378
|
throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
|
|
379
|
+
case "TaskNotFoundException":
|
|
380
|
+
case "com.amazonaws.datapipeline#TaskNotFoundException":
|
|
381
|
+
throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
|
|
868
382
|
default:
|
|
869
383
|
const parsedBody = parsedOutput.body;
|
|
870
384
|
return throwDefaultError({
|