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