@aws-sdk/client-data-pipeline 3.310.0 → 3.315.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.
@@ -6,192 +6,135 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const DataPipelineServiceException_1 = require("../models/DataPipelineServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_ActivatePipelineCommand = async (input, context) => {
9
- const headers = {
10
- "content-type": "application/x-amz-json-1.1",
11
- "x-amz-target": "DataPipeline.ActivatePipeline",
12
- };
9
+ const headers = sharedHeaders("ActivatePipeline");
13
10
  let body;
14
11
  body = JSON.stringify(se_ActivatePipelineInput(input, context));
15
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
13
  };
17
14
  exports.se_ActivatePipelineCommand = se_ActivatePipelineCommand;
18
15
  const se_AddTagsCommand = async (input, context) => {
19
- const headers = {
20
- "content-type": "application/x-amz-json-1.1",
21
- "x-amz-target": "DataPipeline.AddTags",
22
- };
16
+ const headers = sharedHeaders("AddTags");
23
17
  let body;
24
- body = JSON.stringify(se_AddTagsInput(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
25
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
20
  };
27
21
  exports.se_AddTagsCommand = se_AddTagsCommand;
28
22
  const se_CreatePipelineCommand = async (input, context) => {
29
- const headers = {
30
- "content-type": "application/x-amz-json-1.1",
31
- "x-amz-target": "DataPipeline.CreatePipeline",
32
- };
23
+ const headers = sharedHeaders("CreatePipeline");
33
24
  let body;
34
- body = JSON.stringify(se_CreatePipelineInput(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
27
  };
37
28
  exports.se_CreatePipelineCommand = se_CreatePipelineCommand;
38
29
  const se_DeactivatePipelineCommand = async (input, context) => {
39
- const headers = {
40
- "content-type": "application/x-amz-json-1.1",
41
- "x-amz-target": "DataPipeline.DeactivatePipeline",
42
- };
30
+ const headers = sharedHeaders("DeactivatePipeline");
43
31
  let body;
44
- body = JSON.stringify(se_DeactivatePipelineInput(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
45
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
34
  };
47
35
  exports.se_DeactivatePipelineCommand = se_DeactivatePipelineCommand;
48
36
  const se_DeletePipelineCommand = async (input, context) => {
49
- const headers = {
50
- "content-type": "application/x-amz-json-1.1",
51
- "x-amz-target": "DataPipeline.DeletePipeline",
52
- };
37
+ const headers = sharedHeaders("DeletePipeline");
53
38
  let body;
54
- body = JSON.stringify(se_DeletePipelineInput(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
41
  };
57
42
  exports.se_DeletePipelineCommand = se_DeletePipelineCommand;
58
43
  const se_DescribeObjectsCommand = async (input, context) => {
59
- const headers = {
60
- "content-type": "application/x-amz-json-1.1",
61
- "x-amz-target": "DataPipeline.DescribeObjects",
62
- };
44
+ const headers = sharedHeaders("DescribeObjects");
63
45
  let body;
64
- body = JSON.stringify(se_DescribeObjectsInput(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
65
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
48
  };
67
49
  exports.se_DescribeObjectsCommand = se_DescribeObjectsCommand;
68
50
  const se_DescribePipelinesCommand = async (input, context) => {
69
- const headers = {
70
- "content-type": "application/x-amz-json-1.1",
71
- "x-amz-target": "DataPipeline.DescribePipelines",
72
- };
51
+ const headers = sharedHeaders("DescribePipelines");
73
52
  let body;
74
- body = JSON.stringify(se_DescribePipelinesInput(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
75
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
55
  };
77
56
  exports.se_DescribePipelinesCommand = se_DescribePipelinesCommand;
78
57
  const se_EvaluateExpressionCommand = async (input, context) => {
79
- const headers = {
80
- "content-type": "application/x-amz-json-1.1",
81
- "x-amz-target": "DataPipeline.EvaluateExpression",
82
- };
58
+ const headers = sharedHeaders("EvaluateExpression");
83
59
  let body;
84
- body = JSON.stringify(se_EvaluateExpressionInput(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
85
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
86
62
  };
87
63
  exports.se_EvaluateExpressionCommand = se_EvaluateExpressionCommand;
88
64
  const se_GetPipelineDefinitionCommand = async (input, context) => {
89
- const headers = {
90
- "content-type": "application/x-amz-json-1.1",
91
- "x-amz-target": "DataPipeline.GetPipelineDefinition",
92
- };
65
+ const headers = sharedHeaders("GetPipelineDefinition");
93
66
  let body;
94
- body = JSON.stringify(se_GetPipelineDefinitionInput(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
95
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
69
  };
97
70
  exports.se_GetPipelineDefinitionCommand = se_GetPipelineDefinitionCommand;
98
71
  const se_ListPipelinesCommand = async (input, context) => {
99
- const headers = {
100
- "content-type": "application/x-amz-json-1.1",
101
- "x-amz-target": "DataPipeline.ListPipelines",
102
- };
72
+ const headers = sharedHeaders("ListPipelines");
103
73
  let body;
104
- body = JSON.stringify(se_ListPipelinesInput(input, context));
74
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
76
  };
107
77
  exports.se_ListPipelinesCommand = se_ListPipelinesCommand;
108
78
  const se_PollForTaskCommand = async (input, context) => {
109
- const headers = {
110
- "content-type": "application/x-amz-json-1.1",
111
- "x-amz-target": "DataPipeline.PollForTask",
112
- };
79
+ const headers = sharedHeaders("PollForTask");
113
80
  let body;
114
- body = JSON.stringify(se_PollForTaskInput(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
115
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
83
  };
117
84
  exports.se_PollForTaskCommand = se_PollForTaskCommand;
118
85
  const se_PutPipelineDefinitionCommand = async (input, context) => {
119
- const headers = {
120
- "content-type": "application/x-amz-json-1.1",
121
- "x-amz-target": "DataPipeline.PutPipelineDefinition",
122
- };
86
+ const headers = sharedHeaders("PutPipelineDefinition");
123
87
  let body;
124
- body = JSON.stringify(se_PutPipelineDefinitionInput(input, context));
88
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
89
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
90
  };
127
91
  exports.se_PutPipelineDefinitionCommand = se_PutPipelineDefinitionCommand;
128
92
  const se_QueryObjectsCommand = async (input, context) => {
129
- const headers = {
130
- "content-type": "application/x-amz-json-1.1",
131
- "x-amz-target": "DataPipeline.QueryObjects",
132
- };
93
+ const headers = sharedHeaders("QueryObjects");
133
94
  let body;
134
- body = JSON.stringify(se_QueryObjectsInput(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
135
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
97
  };
137
98
  exports.se_QueryObjectsCommand = se_QueryObjectsCommand;
138
99
  const se_RemoveTagsCommand = async (input, context) => {
139
- const headers = {
140
- "content-type": "application/x-amz-json-1.1",
141
- "x-amz-target": "DataPipeline.RemoveTags",
142
- };
100
+ const headers = sharedHeaders("RemoveTags");
143
101
  let body;
144
- body = JSON.stringify(se_RemoveTagsInput(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
145
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
146
104
  };
147
105
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
148
106
  const se_ReportTaskProgressCommand = async (input, context) => {
149
- const headers = {
150
- "content-type": "application/x-amz-json-1.1",
151
- "x-amz-target": "DataPipeline.ReportTaskProgress",
152
- };
107
+ const headers = sharedHeaders("ReportTaskProgress");
153
108
  let body;
154
- body = JSON.stringify(se_ReportTaskProgressInput(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
155
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
111
  };
157
112
  exports.se_ReportTaskProgressCommand = se_ReportTaskProgressCommand;
158
113
  const se_ReportTaskRunnerHeartbeatCommand = async (input, context) => {
159
- const headers = {
160
- "content-type": "application/x-amz-json-1.1",
161
- "x-amz-target": "DataPipeline.ReportTaskRunnerHeartbeat",
162
- };
114
+ const headers = sharedHeaders("ReportTaskRunnerHeartbeat");
163
115
  let body;
164
- body = JSON.stringify(se_ReportTaskRunnerHeartbeatInput(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
165
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
118
  };
167
119
  exports.se_ReportTaskRunnerHeartbeatCommand = se_ReportTaskRunnerHeartbeatCommand;
168
120
  const se_SetStatusCommand = async (input, context) => {
169
- const headers = {
170
- "content-type": "application/x-amz-json-1.1",
171
- "x-amz-target": "DataPipeline.SetStatus",
172
- };
121
+ const headers = sharedHeaders("SetStatus");
173
122
  let body;
174
- body = JSON.stringify(se_SetStatusInput(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
125
  };
177
126
  exports.se_SetStatusCommand = se_SetStatusCommand;
178
127
  const se_SetTaskStatusCommand = async (input, context) => {
179
- const headers = {
180
- "content-type": "application/x-amz-json-1.1",
181
- "x-amz-target": "DataPipeline.SetTaskStatus",
182
- };
128
+ const headers = sharedHeaders("SetTaskStatus");
183
129
  let body;
184
- body = JSON.stringify(se_SetTaskStatusInput(input, context));
130
+ body = JSON.stringify((0, smithy_client_1._json)(input));
185
131
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
132
  };
187
133
  exports.se_SetTaskStatusCommand = se_SetTaskStatusCommand;
188
134
  const se_ValidatePipelineDefinitionCommand = async (input, context) => {
189
- const headers = {
190
- "content-type": "application/x-amz-json-1.1",
191
- "x-amz-target": "DataPipeline.ValidatePipelineDefinition",
192
- };
135
+ const headers = sharedHeaders("ValidatePipelineDefinition");
193
136
  let body;
194
- body = JSON.stringify(se_ValidatePipelineDefinitionInput(input, context));
137
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
138
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
139
  };
197
140
  exports.se_ValidatePipelineDefinitionCommand = se_ValidatePipelineDefinitionCommand;
@@ -201,12 +144,12 @@ const de_ActivatePipelineCommand = async (output, context) => {
201
144
  }
202
145
  const data = await parseBody(output.body, context);
203
146
  let contents = {};
204
- contents = de_ActivatePipelineOutput(data, context);
147
+ contents = (0, smithy_client_1._json)(data);
205
148
  const response = {
206
149
  $metadata: deserializeMetadata(output),
207
150
  ...contents,
208
151
  };
209
- return Promise.resolve(response);
152
+ return response;
210
153
  };
211
154
  exports.de_ActivatePipelineCommand = de_ActivatePipelineCommand;
212
155
  const de_ActivatePipelineCommandError = async (output, context) => {
@@ -230,10 +173,9 @@ const de_ActivatePipelineCommandError = async (output, context) => {
230
173
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
231
174
  default:
232
175
  const parsedBody = parsedOutput.body;
233
- (0, smithy_client_1.throwDefaultError)({
176
+ return throwDefaultError({
234
177
  output,
235
178
  parsedBody,
236
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
237
179
  errorCode,
238
180
  });
239
181
  }
@@ -244,12 +186,12 @@ const de_AddTagsCommand = async (output, context) => {
244
186
  }
245
187
  const data = await parseBody(output.body, context);
246
188
  let contents = {};
247
- contents = de_AddTagsOutput(data, context);
189
+ contents = (0, smithy_client_1._json)(data);
248
190
  const response = {
249
191
  $metadata: deserializeMetadata(output),
250
192
  ...contents,
251
193
  };
252
- return Promise.resolve(response);
194
+ return response;
253
195
  };
254
196
  exports.de_AddTagsCommand = de_AddTagsCommand;
255
197
  const de_AddTagsCommandError = async (output, context) => {
@@ -273,10 +215,9 @@ const de_AddTagsCommandError = async (output, context) => {
273
215
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
274
216
  default:
275
217
  const parsedBody = parsedOutput.body;
276
- (0, smithy_client_1.throwDefaultError)({
218
+ return throwDefaultError({
277
219
  output,
278
220
  parsedBody,
279
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
280
221
  errorCode,
281
222
  });
282
223
  }
@@ -287,12 +228,12 @@ const de_CreatePipelineCommand = async (output, context) => {
287
228
  }
288
229
  const data = await parseBody(output.body, context);
289
230
  let contents = {};
290
- contents = de_CreatePipelineOutput(data, context);
231
+ contents = (0, smithy_client_1._json)(data);
291
232
  const response = {
292
233
  $metadata: deserializeMetadata(output),
293
234
  ...contents,
294
235
  };
295
- return Promise.resolve(response);
236
+ return response;
296
237
  };
297
238
  exports.de_CreatePipelineCommand = de_CreatePipelineCommand;
298
239
  const de_CreatePipelineCommandError = async (output, context) => {
@@ -310,10 +251,9 @@ const de_CreatePipelineCommandError = async (output, context) => {
310
251
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
311
252
  default:
312
253
  const parsedBody = parsedOutput.body;
313
- (0, smithy_client_1.throwDefaultError)({
254
+ return throwDefaultError({
314
255
  output,
315
256
  parsedBody,
316
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
317
257
  errorCode,
318
258
  });
319
259
  }
@@ -324,12 +264,12 @@ const de_DeactivatePipelineCommand = async (output, context) => {
324
264
  }
325
265
  const data = await parseBody(output.body, context);
326
266
  let contents = {};
327
- contents = de_DeactivatePipelineOutput(data, context);
267
+ contents = (0, smithy_client_1._json)(data);
328
268
  const response = {
329
269
  $metadata: deserializeMetadata(output),
330
270
  ...contents,
331
271
  };
332
- return Promise.resolve(response);
272
+ return response;
333
273
  };
334
274
  exports.de_DeactivatePipelineCommand = de_DeactivatePipelineCommand;
335
275
  const de_DeactivatePipelineCommandError = async (output, context) => {
@@ -353,10 +293,9 @@ const de_DeactivatePipelineCommandError = async (output, context) => {
353
293
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
354
294
  default:
355
295
  const parsedBody = parsedOutput.body;
356
- (0, smithy_client_1.throwDefaultError)({
296
+ return throwDefaultError({
357
297
  output,
358
298
  parsedBody,
359
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
360
299
  errorCode,
361
300
  });
362
301
  }
@@ -369,7 +308,7 @@ const de_DeletePipelineCommand = async (output, context) => {
369
308
  const response = {
370
309
  $metadata: deserializeMetadata(output),
371
310
  };
372
- return Promise.resolve(response);
311
+ return response;
373
312
  };
374
313
  exports.de_DeletePipelineCommand = de_DeletePipelineCommand;
375
314
  const de_DeletePipelineCommandError = async (output, context) => {
@@ -390,10 +329,9 @@ const de_DeletePipelineCommandError = async (output, context) => {
390
329
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
391
330
  default:
392
331
  const parsedBody = parsedOutput.body;
393
- (0, smithy_client_1.throwDefaultError)({
332
+ return throwDefaultError({
394
333
  output,
395
334
  parsedBody,
396
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
397
335
  errorCode,
398
336
  });
399
337
  }
@@ -404,12 +342,12 @@ const de_DescribeObjectsCommand = async (output, context) => {
404
342
  }
405
343
  const data = await parseBody(output.body, context);
406
344
  let contents = {};
407
- contents = de_DescribeObjectsOutput(data, context);
345
+ contents = (0, smithy_client_1._json)(data);
408
346
  const response = {
409
347
  $metadata: deserializeMetadata(output),
410
348
  ...contents,
411
349
  };
412
- return Promise.resolve(response);
350
+ return response;
413
351
  };
414
352
  exports.de_DescribeObjectsCommand = de_DescribeObjectsCommand;
415
353
  const de_DescribeObjectsCommandError = async (output, context) => {
@@ -433,10 +371,9 @@ const de_DescribeObjectsCommandError = async (output, context) => {
433
371
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
434
372
  default:
435
373
  const parsedBody = parsedOutput.body;
436
- (0, smithy_client_1.throwDefaultError)({
374
+ return throwDefaultError({
437
375
  output,
438
376
  parsedBody,
439
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
440
377
  errorCode,
441
378
  });
442
379
  }
@@ -447,12 +384,12 @@ const de_DescribePipelinesCommand = async (output, context) => {
447
384
  }
448
385
  const data = await parseBody(output.body, context);
449
386
  let contents = {};
450
- contents = de_DescribePipelinesOutput(data, context);
387
+ contents = (0, smithy_client_1._json)(data);
451
388
  const response = {
452
389
  $metadata: deserializeMetadata(output),
453
390
  ...contents,
454
391
  };
455
- return Promise.resolve(response);
392
+ return response;
456
393
  };
457
394
  exports.de_DescribePipelinesCommand = de_DescribePipelinesCommand;
458
395
  const de_DescribePipelinesCommandError = async (output, context) => {
@@ -476,10 +413,9 @@ const de_DescribePipelinesCommandError = async (output, context) => {
476
413
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
477
414
  default:
478
415
  const parsedBody = parsedOutput.body;
479
- (0, smithy_client_1.throwDefaultError)({
416
+ return throwDefaultError({
480
417
  output,
481
418
  parsedBody,
482
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
483
419
  errorCode,
484
420
  });
485
421
  }
@@ -490,12 +426,12 @@ const de_EvaluateExpressionCommand = async (output, context) => {
490
426
  }
491
427
  const data = await parseBody(output.body, context);
492
428
  let contents = {};
493
- contents = de_EvaluateExpressionOutput(data, context);
429
+ contents = (0, smithy_client_1._json)(data);
494
430
  const response = {
495
431
  $metadata: deserializeMetadata(output),
496
432
  ...contents,
497
433
  };
498
- return Promise.resolve(response);
434
+ return response;
499
435
  };
500
436
  exports.de_EvaluateExpressionCommand = de_EvaluateExpressionCommand;
501
437
  const de_EvaluateExpressionCommandError = async (output, context) => {
@@ -522,10 +458,9 @@ const de_EvaluateExpressionCommandError = async (output, context) => {
522
458
  throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
523
459
  default:
524
460
  const parsedBody = parsedOutput.body;
525
- (0, smithy_client_1.throwDefaultError)({
461
+ return throwDefaultError({
526
462
  output,
527
463
  parsedBody,
528
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
529
464
  errorCode,
530
465
  });
531
466
  }
@@ -536,12 +471,12 @@ const de_GetPipelineDefinitionCommand = async (output, context) => {
536
471
  }
537
472
  const data = await parseBody(output.body, context);
538
473
  let contents = {};
539
- contents = de_GetPipelineDefinitionOutput(data, context);
474
+ contents = (0, smithy_client_1._json)(data);
540
475
  const response = {
541
476
  $metadata: deserializeMetadata(output),
542
477
  ...contents,
543
478
  };
544
- return Promise.resolve(response);
479
+ return response;
545
480
  };
546
481
  exports.de_GetPipelineDefinitionCommand = de_GetPipelineDefinitionCommand;
547
482
  const de_GetPipelineDefinitionCommandError = async (output, context) => {
@@ -565,10 +500,9 @@ const de_GetPipelineDefinitionCommandError = async (output, context) => {
565
500
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
566
501
  default:
567
502
  const parsedBody = parsedOutput.body;
568
- (0, smithy_client_1.throwDefaultError)({
503
+ return throwDefaultError({
569
504
  output,
570
505
  parsedBody,
571
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
572
506
  errorCode,
573
507
  });
574
508
  }
@@ -579,12 +513,12 @@ const de_ListPipelinesCommand = async (output, context) => {
579
513
  }
580
514
  const data = await parseBody(output.body, context);
581
515
  let contents = {};
582
- contents = de_ListPipelinesOutput(data, context);
516
+ contents = (0, smithy_client_1._json)(data);
583
517
  const response = {
584
518
  $metadata: deserializeMetadata(output),
585
519
  ...contents,
586
520
  };
587
- return Promise.resolve(response);
521
+ return response;
588
522
  };
589
523
  exports.de_ListPipelinesCommand = de_ListPipelinesCommand;
590
524
  const de_ListPipelinesCommandError = async (output, context) => {
@@ -602,10 +536,9 @@ const de_ListPipelinesCommandError = async (output, context) => {
602
536
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
603
537
  default:
604
538
  const parsedBody = parsedOutput.body;
605
- (0, smithy_client_1.throwDefaultError)({
539
+ return throwDefaultError({
606
540
  output,
607
541
  parsedBody,
608
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
609
542
  errorCode,
610
543
  });
611
544
  }
@@ -616,12 +549,12 @@ const de_PollForTaskCommand = async (output, context) => {
616
549
  }
617
550
  const data = await parseBody(output.body, context);
618
551
  let contents = {};
619
- contents = de_PollForTaskOutput(data, context);
552
+ contents = (0, smithy_client_1._json)(data);
620
553
  const response = {
621
554
  $metadata: deserializeMetadata(output),
622
555
  ...contents,
623
556
  };
624
- return Promise.resolve(response);
557
+ return response;
625
558
  };
626
559
  exports.de_PollForTaskCommand = de_PollForTaskCommand;
627
560
  const de_PollForTaskCommandError = async (output, context) => {
@@ -642,10 +575,9 @@ const de_PollForTaskCommandError = async (output, context) => {
642
575
  throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
643
576
  default:
644
577
  const parsedBody = parsedOutput.body;
645
- (0, smithy_client_1.throwDefaultError)({
578
+ return throwDefaultError({
646
579
  output,
647
580
  parsedBody,
648
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
649
581
  errorCode,
650
582
  });
651
583
  }
@@ -656,12 +588,12 @@ const de_PutPipelineDefinitionCommand = async (output, context) => {
656
588
  }
657
589
  const data = await parseBody(output.body, context);
658
590
  let contents = {};
659
- contents = de_PutPipelineDefinitionOutput(data, context);
591
+ contents = (0, smithy_client_1._json)(data);
660
592
  const response = {
661
593
  $metadata: deserializeMetadata(output),
662
594
  ...contents,
663
595
  };
664
- return Promise.resolve(response);
596
+ return response;
665
597
  };
666
598
  exports.de_PutPipelineDefinitionCommand = de_PutPipelineDefinitionCommand;
667
599
  const de_PutPipelineDefinitionCommandError = async (output, context) => {
@@ -685,10 +617,9 @@ const de_PutPipelineDefinitionCommandError = async (output, context) => {
685
617
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
686
618
  default:
687
619
  const parsedBody = parsedOutput.body;
688
- (0, smithy_client_1.throwDefaultError)({
620
+ return throwDefaultError({
689
621
  output,
690
622
  parsedBody,
691
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
692
623
  errorCode,
693
624
  });
694
625
  }
@@ -699,12 +630,12 @@ const de_QueryObjectsCommand = async (output, context) => {
699
630
  }
700
631
  const data = await parseBody(output.body, context);
701
632
  let contents = {};
702
- contents = de_QueryObjectsOutput(data, context);
633
+ contents = (0, smithy_client_1._json)(data);
703
634
  const response = {
704
635
  $metadata: deserializeMetadata(output),
705
636
  ...contents,
706
637
  };
707
- return Promise.resolve(response);
638
+ return response;
708
639
  };
709
640
  exports.de_QueryObjectsCommand = de_QueryObjectsCommand;
710
641
  const de_QueryObjectsCommandError = async (output, context) => {
@@ -728,10 +659,9 @@ const de_QueryObjectsCommandError = async (output, context) => {
728
659
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
729
660
  default:
730
661
  const parsedBody = parsedOutput.body;
731
- (0, smithy_client_1.throwDefaultError)({
662
+ return throwDefaultError({
732
663
  output,
733
664
  parsedBody,
734
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
735
665
  errorCode,
736
666
  });
737
667
  }
@@ -742,12 +672,12 @@ const de_RemoveTagsCommand = async (output, context) => {
742
672
  }
743
673
  const data = await parseBody(output.body, context);
744
674
  let contents = {};
745
- contents = de_RemoveTagsOutput(data, context);
675
+ contents = (0, smithy_client_1._json)(data);
746
676
  const response = {
747
677
  $metadata: deserializeMetadata(output),
748
678
  ...contents,
749
679
  };
750
- return Promise.resolve(response);
680
+ return response;
751
681
  };
752
682
  exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
753
683
  const de_RemoveTagsCommandError = async (output, context) => {
@@ -771,10 +701,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
771
701
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
772
702
  default:
773
703
  const parsedBody = parsedOutput.body;
774
- (0, smithy_client_1.throwDefaultError)({
704
+ return throwDefaultError({
775
705
  output,
776
706
  parsedBody,
777
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
778
707
  errorCode,
779
708
  });
780
709
  }
@@ -785,12 +714,12 @@ const de_ReportTaskProgressCommand = async (output, context) => {
785
714
  }
786
715
  const data = await parseBody(output.body, context);
787
716
  let contents = {};
788
- contents = de_ReportTaskProgressOutput(data, context);
717
+ contents = (0, smithy_client_1._json)(data);
789
718
  const response = {
790
719
  $metadata: deserializeMetadata(output),
791
720
  ...contents,
792
721
  };
793
- return Promise.resolve(response);
722
+ return response;
794
723
  };
795
724
  exports.de_ReportTaskProgressCommand = de_ReportTaskProgressCommand;
796
725
  const de_ReportTaskProgressCommandError = async (output, context) => {
@@ -817,10 +746,9 @@ const de_ReportTaskProgressCommandError = async (output, context) => {
817
746
  throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
818
747
  default:
819
748
  const parsedBody = parsedOutput.body;
820
- (0, smithy_client_1.throwDefaultError)({
749
+ return throwDefaultError({
821
750
  output,
822
751
  parsedBody,
823
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
824
752
  errorCode,
825
753
  });
826
754
  }
@@ -831,12 +759,12 @@ const de_ReportTaskRunnerHeartbeatCommand = async (output, context) => {
831
759
  }
832
760
  const data = await parseBody(output.body, context);
833
761
  let contents = {};
834
- contents = de_ReportTaskRunnerHeartbeatOutput(data, context);
762
+ contents = (0, smithy_client_1._json)(data);
835
763
  const response = {
836
764
  $metadata: deserializeMetadata(output),
837
765
  ...contents,
838
766
  };
839
- return Promise.resolve(response);
767
+ return response;
840
768
  };
841
769
  exports.de_ReportTaskRunnerHeartbeatCommand = de_ReportTaskRunnerHeartbeatCommand;
842
770
  const de_ReportTaskRunnerHeartbeatCommandError = async (output, context) => {
@@ -854,10 +782,9 @@ const de_ReportTaskRunnerHeartbeatCommandError = async (output, context) => {
854
782
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
855
783
  default:
856
784
  const parsedBody = parsedOutput.body;
857
- (0, smithy_client_1.throwDefaultError)({
785
+ return throwDefaultError({
858
786
  output,
859
787
  parsedBody,
860
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
861
788
  errorCode,
862
789
  });
863
790
  }
@@ -870,7 +797,7 @@ const de_SetStatusCommand = async (output, context) => {
870
797
  const response = {
871
798
  $metadata: deserializeMetadata(output),
872
799
  };
873
- return Promise.resolve(response);
800
+ return response;
874
801
  };
875
802
  exports.de_SetStatusCommand = de_SetStatusCommand;
876
803
  const de_SetStatusCommandError = async (output, context) => {
@@ -894,10 +821,9 @@ const de_SetStatusCommandError = async (output, context) => {
894
821
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
895
822
  default:
896
823
  const parsedBody = parsedOutput.body;
897
- (0, smithy_client_1.throwDefaultError)({
824
+ return throwDefaultError({
898
825
  output,
899
826
  parsedBody,
900
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
901
827
  errorCode,
902
828
  });
903
829
  }
@@ -908,12 +834,12 @@ const de_SetTaskStatusCommand = async (output, context) => {
908
834
  }
909
835
  const data = await parseBody(output.body, context);
910
836
  let contents = {};
911
- contents = de_SetTaskStatusOutput(data, context);
837
+ contents = (0, smithy_client_1._json)(data);
912
838
  const response = {
913
839
  $metadata: deserializeMetadata(output),
914
840
  ...contents,
915
841
  };
916
- return Promise.resolve(response);
842
+ return response;
917
843
  };
918
844
  exports.de_SetTaskStatusCommand = de_SetTaskStatusCommand;
919
845
  const de_SetTaskStatusCommandError = async (output, context) => {
@@ -940,10 +866,9 @@ const de_SetTaskStatusCommandError = async (output, context) => {
940
866
  throw await de_TaskNotFoundExceptionRes(parsedOutput, context);
941
867
  default:
942
868
  const parsedBody = parsedOutput.body;
943
- (0, smithy_client_1.throwDefaultError)({
869
+ return throwDefaultError({
944
870
  output,
945
871
  parsedBody,
946
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
947
872
  errorCode,
948
873
  });
949
874
  }
@@ -954,12 +879,12 @@ const de_ValidatePipelineDefinitionCommand = async (output, context) => {
954
879
  }
955
880
  const data = await parseBody(output.body, context);
956
881
  let contents = {};
957
- contents = de_ValidatePipelineDefinitionOutput(data, context);
882
+ contents = (0, smithy_client_1._json)(data);
958
883
  const response = {
959
884
  $metadata: deserializeMetadata(output),
960
885
  ...contents,
961
886
  };
962
- return Promise.resolve(response);
887
+ return response;
963
888
  };
964
889
  exports.de_ValidatePipelineDefinitionCommand = de_ValidatePipelineDefinitionCommand;
965
890
  const de_ValidatePipelineDefinitionCommandError = async (output, context) => {
@@ -983,17 +908,16 @@ const de_ValidatePipelineDefinitionCommandError = async (output, context) => {
983
908
  throw await de_PipelineNotFoundExceptionRes(parsedOutput, context);
984
909
  default:
985
910
  const parsedBody = parsedOutput.body;
986
- (0, smithy_client_1.throwDefaultError)({
911
+ return throwDefaultError({
987
912
  output,
988
913
  parsedBody,
989
- exceptionCtor: DataPipelineServiceException_1.DataPipelineServiceException,
990
914
  errorCode,
991
915
  });
992
916
  }
993
917
  };
994
918
  const de_InternalServiceErrorRes = async (parsedOutput, context) => {
995
919
  const body = parsedOutput.body;
996
- const deserialized = de_InternalServiceError(body, context);
920
+ const deserialized = (0, smithy_client_1._json)(body);
997
921
  const exception = new models_0_1.InternalServiceError({
998
922
  $metadata: deserializeMetadata(parsedOutput),
999
923
  ...deserialized,
@@ -1002,7 +926,7 @@ const de_InternalServiceErrorRes = async (parsedOutput, context) => {
1002
926
  };
1003
927
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1004
928
  const body = parsedOutput.body;
1005
- const deserialized = de_InvalidRequestException(body, context);
929
+ const deserialized = (0, smithy_client_1._json)(body);
1006
930
  const exception = new models_0_1.InvalidRequestException({
1007
931
  $metadata: deserializeMetadata(parsedOutput),
1008
932
  ...deserialized,
@@ -1011,7 +935,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1011
935
  };
1012
936
  const de_PipelineDeletedExceptionRes = async (parsedOutput, context) => {
1013
937
  const body = parsedOutput.body;
1014
- const deserialized = de_PipelineDeletedException(body, context);
938
+ const deserialized = (0, smithy_client_1._json)(body);
1015
939
  const exception = new models_0_1.PipelineDeletedException({
1016
940
  $metadata: deserializeMetadata(parsedOutput),
1017
941
  ...deserialized,
@@ -1020,7 +944,7 @@ const de_PipelineDeletedExceptionRes = async (parsedOutput, context) => {
1020
944
  };
1021
945
  const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
1022
946
  const body = parsedOutput.body;
1023
- const deserialized = de_PipelineNotFoundException(body, context);
947
+ const deserialized = (0, smithy_client_1._json)(body);
1024
948
  const exception = new models_0_1.PipelineNotFoundException({
1025
949
  $metadata: deserializeMetadata(parsedOutput),
1026
950
  ...deserialized,
@@ -1029,7 +953,7 @@ const de_PipelineNotFoundExceptionRes = async (parsedOutput, context) => {
1029
953
  };
1030
954
  const de_TaskNotFoundExceptionRes = async (parsedOutput, context) => {
1031
955
  const body = parsedOutput.body;
1032
- const deserialized = de_TaskNotFoundException(body, context);
956
+ const deserialized = (0, smithy_client_1._json)(body);
1033
957
  const exception = new models_0_1.TaskNotFoundException({
1034
958
  $metadata: deserializeMetadata(parsedOutput),
1035
959
  ...deserialized,
@@ -1037,591 +961,12 @@ const de_TaskNotFoundExceptionRes = async (parsedOutput, context) => {
1037
961
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1038
962
  };
1039
963
  const se_ActivatePipelineInput = (input, context) => {
1040
- return {
1041
- ...(input.parameterValues != null && { parameterValues: se_ParameterValueList(input.parameterValues, context) }),
1042
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1043
- ...(input.startTimestamp != null && { startTimestamp: Math.round(input.startTimestamp.getTime() / 1000) }),
1044
- };
1045
- };
1046
- const se_AddTagsInput = (input, context) => {
1047
- return {
1048
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1049
- ...(input.tags != null && { tags: se_tagList(input.tags, context) }),
1050
- };
1051
- };
1052
- const se_CreatePipelineInput = (input, context) => {
1053
- return {
1054
- ...(input.description != null && { description: input.description }),
1055
- ...(input.name != null && { name: input.name }),
1056
- ...(input.tags != null && { tags: se_tagList(input.tags, context) }),
1057
- ...(input.uniqueId != null && { uniqueId: input.uniqueId }),
1058
- };
1059
- };
1060
- const se_DeactivatePipelineInput = (input, context) => {
1061
- return {
1062
- ...(input.cancelActive != null && { cancelActive: input.cancelActive }),
1063
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1064
- };
1065
- };
1066
- const se_DeletePipelineInput = (input, context) => {
1067
- return {
1068
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1069
- };
1070
- };
1071
- const se_DescribeObjectsInput = (input, context) => {
1072
- return {
1073
- ...(input.evaluateExpressions != null && { evaluateExpressions: input.evaluateExpressions }),
1074
- ...(input.marker != null && { marker: input.marker }),
1075
- ...(input.objectIds != null && { objectIds: se_idList(input.objectIds, context) }),
1076
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1077
- };
1078
- };
1079
- const se_DescribePipelinesInput = (input, context) => {
1080
- return {
1081
- ...(input.pipelineIds != null && { pipelineIds: se_idList(input.pipelineIds, context) }),
1082
- };
1083
- };
1084
- const se_EvaluateExpressionInput = (input, context) => {
1085
- return {
1086
- ...(input.expression != null && { expression: input.expression }),
1087
- ...(input.objectId != null && { objectId: input.objectId }),
1088
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1089
- };
1090
- };
1091
- const se_Field = (input, context) => {
1092
- return {
1093
- ...(input.key != null && { key: input.key }),
1094
- ...(input.refValue != null && { refValue: input.refValue }),
1095
- ...(input.stringValue != null && { stringValue: input.stringValue }),
1096
- };
1097
- };
1098
- const se_fieldList = (input, context) => {
1099
- return input
1100
- .filter((e) => e != null)
1101
- .map((entry) => {
1102
- return se_Field(entry, context);
1103
- });
1104
- };
1105
- const se_GetPipelineDefinitionInput = (input, context) => {
1106
- return {
1107
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1108
- ...(input.version != null && { version: input.version }),
1109
- };
1110
- };
1111
- const se_idList = (input, context) => {
1112
- return input
1113
- .filter((e) => e != null)
1114
- .map((entry) => {
1115
- return entry;
1116
- });
1117
- };
1118
- const se_InstanceIdentity = (input, context) => {
1119
- return {
1120
- ...(input.document != null && { document: input.document }),
1121
- ...(input.signature != null && { signature: input.signature }),
1122
- };
1123
- };
1124
- const se_ListPipelinesInput = (input, context) => {
1125
- return {
1126
- ...(input.marker != null && { marker: input.marker }),
1127
- };
1128
- };
1129
- const se_Operator = (input, context) => {
1130
- return {
1131
- ...(input.type != null && { type: input.type }),
1132
- ...(input.values != null && { values: se_stringList(input.values, context) }),
1133
- };
1134
- };
1135
- const se_ParameterAttribute = (input, context) => {
1136
- return {
1137
- ...(input.key != null && { key: input.key }),
1138
- ...(input.stringValue != null && { stringValue: input.stringValue }),
1139
- };
1140
- };
1141
- const se_ParameterAttributeList = (input, context) => {
1142
- return input
1143
- .filter((e) => e != null)
1144
- .map((entry) => {
1145
- return se_ParameterAttribute(entry, context);
1146
- });
1147
- };
1148
- const se_ParameterObject = (input, context) => {
1149
- return {
1150
- ...(input.attributes != null && { attributes: se_ParameterAttributeList(input.attributes, context) }),
1151
- ...(input.id != null && { id: input.id }),
1152
- };
1153
- };
1154
- const se_ParameterObjectList = (input, context) => {
1155
- return input
1156
- .filter((e) => e != null)
1157
- .map((entry) => {
1158
- return se_ParameterObject(entry, context);
1159
- });
1160
- };
1161
- const se_ParameterValue = (input, context) => {
1162
- return {
1163
- ...(input.id != null && { id: input.id }),
1164
- ...(input.stringValue != null && { stringValue: input.stringValue }),
1165
- };
1166
- };
1167
- const se_ParameterValueList = (input, context) => {
1168
- return input
1169
- .filter((e) => e != null)
1170
- .map((entry) => {
1171
- return se_ParameterValue(entry, context);
1172
- });
1173
- };
1174
- const se_PipelineObject = (input, context) => {
1175
- return {
1176
- ...(input.fields != null && { fields: se_fieldList(input.fields, context) }),
1177
- ...(input.id != null && { id: input.id }),
1178
- ...(input.name != null && { name: input.name }),
1179
- };
1180
- };
1181
- const se_PipelineObjectList = (input, context) => {
1182
- return input
1183
- .filter((e) => e != null)
1184
- .map((entry) => {
1185
- return se_PipelineObject(entry, context);
1186
- });
1187
- };
1188
- const se_PollForTaskInput = (input, context) => {
1189
- return {
1190
- ...(input.hostname != null && { hostname: input.hostname }),
1191
- ...(input.instanceIdentity != null && { instanceIdentity: se_InstanceIdentity(input.instanceIdentity, context) }),
1192
- ...(input.workerGroup != null && { workerGroup: input.workerGroup }),
1193
- };
1194
- };
1195
- const se_PutPipelineDefinitionInput = (input, context) => {
1196
- return {
1197
- ...(input.parameterObjects != null && {
1198
- parameterObjects: se_ParameterObjectList(input.parameterObjects, context),
1199
- }),
1200
- ...(input.parameterValues != null && { parameterValues: se_ParameterValueList(input.parameterValues, context) }),
1201
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1202
- ...(input.pipelineObjects != null && { pipelineObjects: se_PipelineObjectList(input.pipelineObjects, context) }),
1203
- };
1204
- };
1205
- const se_Query = (input, context) => {
1206
- return {
1207
- ...(input.selectors != null && { selectors: se_SelectorList(input.selectors, context) }),
1208
- };
1209
- };
1210
- const se_QueryObjectsInput = (input, context) => {
1211
- return {
1212
- ...(input.limit != null && { limit: input.limit }),
1213
- ...(input.marker != null && { marker: input.marker }),
1214
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1215
- ...(input.query != null && { query: se_Query(input.query, context) }),
1216
- ...(input.sphere != null && { sphere: input.sphere }),
1217
- };
1218
- };
1219
- const se_RemoveTagsInput = (input, context) => {
1220
- return {
1221
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1222
- ...(input.tagKeys != null && { tagKeys: se_stringList(input.tagKeys, context) }),
1223
- };
1224
- };
1225
- const se_ReportTaskProgressInput = (input, context) => {
1226
- return {
1227
- ...(input.fields != null && { fields: se_fieldList(input.fields, context) }),
1228
- ...(input.taskId != null && { taskId: input.taskId }),
1229
- };
1230
- };
1231
- const se_ReportTaskRunnerHeartbeatInput = (input, context) => {
1232
- return {
1233
- ...(input.hostname != null && { hostname: input.hostname }),
1234
- ...(input.taskrunnerId != null && { taskrunnerId: input.taskrunnerId }),
1235
- ...(input.workerGroup != null && { workerGroup: input.workerGroup }),
1236
- };
1237
- };
1238
- const se_Selector = (input, context) => {
1239
- return {
1240
- ...(input.fieldName != null && { fieldName: input.fieldName }),
1241
- ...(input.operator != null && { operator: se_Operator(input.operator, context) }),
1242
- };
1243
- };
1244
- const se_SelectorList = (input, context) => {
1245
- return input
1246
- .filter((e) => e != null)
1247
- .map((entry) => {
1248
- return se_Selector(entry, context);
1249
- });
1250
- };
1251
- const se_SetStatusInput = (input, context) => {
1252
- return {
1253
- ...(input.objectIds != null && { objectIds: se_idList(input.objectIds, context) }),
1254
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1255
- ...(input.status != null && { status: input.status }),
1256
- };
1257
- };
1258
- const se_SetTaskStatusInput = (input, context) => {
1259
- return {
1260
- ...(input.errorId != null && { errorId: input.errorId }),
1261
- ...(input.errorMessage != null && { errorMessage: input.errorMessage }),
1262
- ...(input.errorStackTrace != null && { errorStackTrace: input.errorStackTrace }),
1263
- ...(input.taskId != null && { taskId: input.taskId }),
1264
- ...(input.taskStatus != null && { taskStatus: input.taskStatus }),
1265
- };
1266
- };
1267
- const se_stringList = (input, context) => {
1268
- return input
1269
- .filter((e) => e != null)
1270
- .map((entry) => {
1271
- return entry;
1272
- });
1273
- };
1274
- const se_Tag = (input, context) => {
1275
- return {
1276
- ...(input.key != null && { key: input.key }),
1277
- ...(input.value != null && { value: input.value }),
1278
- };
1279
- };
1280
- const se_tagList = (input, context) => {
1281
- return input
1282
- .filter((e) => e != null)
1283
- .map((entry) => {
1284
- return se_Tag(entry, context);
964
+ return (0, smithy_client_1.take)(input, {
965
+ parameterValues: smithy_client_1._json,
966
+ pipelineId: [],
967
+ startTimestamp: (_) => Math.round(_.getTime() / 1000),
1285
968
  });
1286
969
  };
1287
- const se_ValidatePipelineDefinitionInput = (input, context) => {
1288
- return {
1289
- ...(input.parameterObjects != null && {
1290
- parameterObjects: se_ParameterObjectList(input.parameterObjects, context),
1291
- }),
1292
- ...(input.parameterValues != null && { parameterValues: se_ParameterValueList(input.parameterValues, context) }),
1293
- ...(input.pipelineId != null && { pipelineId: input.pipelineId }),
1294
- ...(input.pipelineObjects != null && { pipelineObjects: se_PipelineObjectList(input.pipelineObjects, context) }),
1295
- };
1296
- };
1297
- const de_ActivatePipelineOutput = (output, context) => {
1298
- return {};
1299
- };
1300
- const de_AddTagsOutput = (output, context) => {
1301
- return {};
1302
- };
1303
- const de_CreatePipelineOutput = (output, context) => {
1304
- return {
1305
- pipelineId: (0, smithy_client_1.expectString)(output.pipelineId),
1306
- };
1307
- };
1308
- const de_DeactivatePipelineOutput = (output, context) => {
1309
- return {};
1310
- };
1311
- const de_DescribeObjectsOutput = (output, context) => {
1312
- return {
1313
- hasMoreResults: (0, smithy_client_1.expectBoolean)(output.hasMoreResults),
1314
- marker: (0, smithy_client_1.expectString)(output.marker),
1315
- pipelineObjects: output.pipelineObjects != null ? de_PipelineObjectList(output.pipelineObjects, context) : undefined,
1316
- };
1317
- };
1318
- const de_DescribePipelinesOutput = (output, context) => {
1319
- return {
1320
- pipelineDescriptionList: output.pipelineDescriptionList != null
1321
- ? de_PipelineDescriptionList(output.pipelineDescriptionList, context)
1322
- : undefined,
1323
- };
1324
- };
1325
- const de_EvaluateExpressionOutput = (output, context) => {
1326
- return {
1327
- evaluatedExpression: (0, smithy_client_1.expectString)(output.evaluatedExpression),
1328
- };
1329
- };
1330
- const de_Field = (output, context) => {
1331
- return {
1332
- key: (0, smithy_client_1.expectString)(output.key),
1333
- refValue: (0, smithy_client_1.expectString)(output.refValue),
1334
- stringValue: (0, smithy_client_1.expectString)(output.stringValue),
1335
- };
1336
- };
1337
- const de_fieldList = (output, context) => {
1338
- const retVal = (output || [])
1339
- .filter((e) => e != null)
1340
- .map((entry) => {
1341
- if (entry === null) {
1342
- return null;
1343
- }
1344
- return de_Field(entry, context);
1345
- });
1346
- return retVal;
1347
- };
1348
- const de_GetPipelineDefinitionOutput = (output, context) => {
1349
- return {
1350
- parameterObjects: output.parameterObjects != null ? de_ParameterObjectList(output.parameterObjects, context) : undefined,
1351
- parameterValues: output.parameterValues != null ? de_ParameterValueList(output.parameterValues, context) : undefined,
1352
- pipelineObjects: output.pipelineObjects != null ? de_PipelineObjectList(output.pipelineObjects, context) : undefined,
1353
- };
1354
- };
1355
- const de_idList = (output, context) => {
1356
- const retVal = (output || [])
1357
- .filter((e) => e != null)
1358
- .map((entry) => {
1359
- if (entry === null) {
1360
- return null;
1361
- }
1362
- return (0, smithy_client_1.expectString)(entry);
1363
- });
1364
- return retVal;
1365
- };
1366
- const de_InternalServiceError = (output, context) => {
1367
- return {
1368
- message: (0, smithy_client_1.expectString)(output.message),
1369
- };
1370
- };
1371
- const de_InvalidRequestException = (output, context) => {
1372
- return {
1373
- message: (0, smithy_client_1.expectString)(output.message),
1374
- };
1375
- };
1376
- const de_ListPipelinesOutput = (output, context) => {
1377
- return {
1378
- hasMoreResults: (0, smithy_client_1.expectBoolean)(output.hasMoreResults),
1379
- marker: (0, smithy_client_1.expectString)(output.marker),
1380
- pipelineIdList: output.pipelineIdList != null ? de_pipelineList(output.pipelineIdList, context) : undefined,
1381
- };
1382
- };
1383
- const de_ParameterAttribute = (output, context) => {
1384
- return {
1385
- key: (0, smithy_client_1.expectString)(output.key),
1386
- stringValue: (0, smithy_client_1.expectString)(output.stringValue),
1387
- };
1388
- };
1389
- const de_ParameterAttributeList = (output, context) => {
1390
- const retVal = (output || [])
1391
- .filter((e) => e != null)
1392
- .map((entry) => {
1393
- if (entry === null) {
1394
- return null;
1395
- }
1396
- return de_ParameterAttribute(entry, context);
1397
- });
1398
- return retVal;
1399
- };
1400
- const de_ParameterObject = (output, context) => {
1401
- return {
1402
- attributes: output.attributes != null ? de_ParameterAttributeList(output.attributes, context) : undefined,
1403
- id: (0, smithy_client_1.expectString)(output.id),
1404
- };
1405
- };
1406
- const de_ParameterObjectList = (output, context) => {
1407
- const retVal = (output || [])
1408
- .filter((e) => e != null)
1409
- .map((entry) => {
1410
- if (entry === null) {
1411
- return null;
1412
- }
1413
- return de_ParameterObject(entry, context);
1414
- });
1415
- return retVal;
1416
- };
1417
- const de_ParameterValue = (output, context) => {
1418
- return {
1419
- id: (0, smithy_client_1.expectString)(output.id),
1420
- stringValue: (0, smithy_client_1.expectString)(output.stringValue),
1421
- };
1422
- };
1423
- const de_ParameterValueList = (output, context) => {
1424
- const retVal = (output || [])
1425
- .filter((e) => e != null)
1426
- .map((entry) => {
1427
- if (entry === null) {
1428
- return null;
1429
- }
1430
- return de_ParameterValue(entry, context);
1431
- });
1432
- return retVal;
1433
- };
1434
- const de_PipelineDeletedException = (output, context) => {
1435
- return {
1436
- message: (0, smithy_client_1.expectString)(output.message),
1437
- };
1438
- };
1439
- const de_PipelineDescription = (output, context) => {
1440
- return {
1441
- description: (0, smithy_client_1.expectString)(output.description),
1442
- fields: output.fields != null ? de_fieldList(output.fields, context) : undefined,
1443
- name: (0, smithy_client_1.expectString)(output.name),
1444
- pipelineId: (0, smithy_client_1.expectString)(output.pipelineId),
1445
- tags: output.tags != null ? de_tagList(output.tags, context) : undefined,
1446
- };
1447
- };
1448
- const de_PipelineDescriptionList = (output, context) => {
1449
- const retVal = (output || [])
1450
- .filter((e) => e != null)
1451
- .map((entry) => {
1452
- if (entry === null) {
1453
- return null;
1454
- }
1455
- return de_PipelineDescription(entry, context);
1456
- });
1457
- return retVal;
1458
- };
1459
- const de_PipelineIdName = (output, context) => {
1460
- return {
1461
- id: (0, smithy_client_1.expectString)(output.id),
1462
- name: (0, smithy_client_1.expectString)(output.name),
1463
- };
1464
- };
1465
- const de_pipelineList = (output, context) => {
1466
- const retVal = (output || [])
1467
- .filter((e) => e != null)
1468
- .map((entry) => {
1469
- if (entry === null) {
1470
- return null;
1471
- }
1472
- return de_PipelineIdName(entry, context);
1473
- });
1474
- return retVal;
1475
- };
1476
- const de_PipelineNotFoundException = (output, context) => {
1477
- return {
1478
- message: (0, smithy_client_1.expectString)(output.message),
1479
- };
1480
- };
1481
- const de_PipelineObject = (output, context) => {
1482
- return {
1483
- fields: output.fields != null ? de_fieldList(output.fields, context) : undefined,
1484
- id: (0, smithy_client_1.expectString)(output.id),
1485
- name: (0, smithy_client_1.expectString)(output.name),
1486
- };
1487
- };
1488
- const de_PipelineObjectList = (output, context) => {
1489
- const retVal = (output || [])
1490
- .filter((e) => e != null)
1491
- .map((entry) => {
1492
- if (entry === null) {
1493
- return null;
1494
- }
1495
- return de_PipelineObject(entry, context);
1496
- });
1497
- return retVal;
1498
- };
1499
- const de_PipelineObjectMap = (output, context) => {
1500
- return Object.entries(output).reduce((acc, [key, value]) => {
1501
- if (value === null) {
1502
- return acc;
1503
- }
1504
- acc[key] = de_PipelineObject(value, context);
1505
- return acc;
1506
- }, {});
1507
- };
1508
- const de_PollForTaskOutput = (output, context) => {
1509
- return {
1510
- taskObject: output.taskObject != null ? de_TaskObject(output.taskObject, context) : undefined,
1511
- };
1512
- };
1513
- const de_PutPipelineDefinitionOutput = (output, context) => {
1514
- return {
1515
- errored: (0, smithy_client_1.expectBoolean)(output.errored),
1516
- validationErrors: output.validationErrors != null ? de_ValidationErrors(output.validationErrors, context) : undefined,
1517
- validationWarnings: output.validationWarnings != null ? de_ValidationWarnings(output.validationWarnings, context) : undefined,
1518
- };
1519
- };
1520
- const de_QueryObjectsOutput = (output, context) => {
1521
- return {
1522
- hasMoreResults: (0, smithy_client_1.expectBoolean)(output.hasMoreResults),
1523
- ids: output.ids != null ? de_idList(output.ids, context) : undefined,
1524
- marker: (0, smithy_client_1.expectString)(output.marker),
1525
- };
1526
- };
1527
- const de_RemoveTagsOutput = (output, context) => {
1528
- return {};
1529
- };
1530
- const de_ReportTaskProgressOutput = (output, context) => {
1531
- return {
1532
- canceled: (0, smithy_client_1.expectBoolean)(output.canceled),
1533
- };
1534
- };
1535
- const de_ReportTaskRunnerHeartbeatOutput = (output, context) => {
1536
- return {
1537
- terminate: (0, smithy_client_1.expectBoolean)(output.terminate),
1538
- };
1539
- };
1540
- const de_SetTaskStatusOutput = (output, context) => {
1541
- return {};
1542
- };
1543
- const de_Tag = (output, context) => {
1544
- return {
1545
- key: (0, smithy_client_1.expectString)(output.key),
1546
- value: (0, smithy_client_1.expectString)(output.value),
1547
- };
1548
- };
1549
- const de_tagList = (output, context) => {
1550
- const retVal = (output || [])
1551
- .filter((e) => e != null)
1552
- .map((entry) => {
1553
- if (entry === null) {
1554
- return null;
1555
- }
1556
- return de_Tag(entry, context);
1557
- });
1558
- return retVal;
1559
- };
1560
- const de_TaskNotFoundException = (output, context) => {
1561
- return {
1562
- message: (0, smithy_client_1.expectString)(output.message),
1563
- };
1564
- };
1565
- const de_TaskObject = (output, context) => {
1566
- return {
1567
- attemptId: (0, smithy_client_1.expectString)(output.attemptId),
1568
- objects: output.objects != null ? de_PipelineObjectMap(output.objects, context) : undefined,
1569
- pipelineId: (0, smithy_client_1.expectString)(output.pipelineId),
1570
- taskId: (0, smithy_client_1.expectString)(output.taskId),
1571
- };
1572
- };
1573
- const de_ValidatePipelineDefinitionOutput = (output, context) => {
1574
- return {
1575
- errored: (0, smithy_client_1.expectBoolean)(output.errored),
1576
- validationErrors: output.validationErrors != null ? de_ValidationErrors(output.validationErrors, context) : undefined,
1577
- validationWarnings: output.validationWarnings != null ? de_ValidationWarnings(output.validationWarnings, context) : undefined,
1578
- };
1579
- };
1580
- const de_ValidationError = (output, context) => {
1581
- return {
1582
- errors: output.errors != null ? de_validationMessages(output.errors, context) : undefined,
1583
- id: (0, smithy_client_1.expectString)(output.id),
1584
- };
1585
- };
1586
- const de_ValidationErrors = (output, context) => {
1587
- const retVal = (output || [])
1588
- .filter((e) => e != null)
1589
- .map((entry) => {
1590
- if (entry === null) {
1591
- return null;
1592
- }
1593
- return de_ValidationError(entry, context);
1594
- });
1595
- return retVal;
1596
- };
1597
- const de_validationMessages = (output, context) => {
1598
- const retVal = (output || [])
1599
- .filter((e) => e != null)
1600
- .map((entry) => {
1601
- if (entry === null) {
1602
- return null;
1603
- }
1604
- return (0, smithy_client_1.expectString)(entry);
1605
- });
1606
- return retVal;
1607
- };
1608
- const de_ValidationWarning = (output, context) => {
1609
- return {
1610
- id: (0, smithy_client_1.expectString)(output.id),
1611
- warnings: output.warnings != null ? de_validationMessages(output.warnings, context) : undefined,
1612
- };
1613
- };
1614
- const de_ValidationWarnings = (output, context) => {
1615
- const retVal = (output || [])
1616
- .filter((e) => e != null)
1617
- .map((entry) => {
1618
- if (entry === null) {
1619
- return null;
1620
- }
1621
- return de_ValidationWarning(entry, context);
1622
- });
1623
- return retVal;
1624
- };
1625
970
  const deserializeMetadata = (output) => ({
1626
971
  httpStatusCode: output.statusCode,
1627
972
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1635,6 +980,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1635
980
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1636
981
  };
1637
982
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
983
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DataPipelineServiceException_1.DataPipelineServiceException);
1638
984
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1639
985
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1640
986
  const contents = {
@@ -1653,6 +999,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1653
999
  }
1654
1000
  return new protocol_http_1.HttpRequest(contents);
1655
1001
  };
1002
+ function sharedHeaders(operation) {
1003
+ return {
1004
+ "content-type": "application/x-amz-json-1.1",
1005
+ "x-amz-target": `DataPipeline.${operation}`,
1006
+ };
1007
+ }
1656
1008
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1657
1009
  if (encoded.length) {
1658
1010
  return JSON.parse(encoded);