@aws-sdk/client-pipes 3.312.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_restJson1.js +217 -1787
- package/dist-es/protocols/Aws_restJson1.js +201 -1771
- package/package.json +6 -6
|
@@ -13,24 +13,18 @@ const se_CreatePipeCommand = async (input, context) => {
|
|
|
13
13
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
14
14
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
29
|
-
...(input.Target != null && { Target: input.Target }),
|
|
30
|
-
...(input.TargetParameters != null && {
|
|
31
|
-
TargetParameters: se_PipeTargetParameters(input.TargetParameters, context),
|
|
32
|
-
}),
|
|
33
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
Description: [],
|
|
18
|
+
DesiredState: [],
|
|
19
|
+
Enrichment: [],
|
|
20
|
+
EnrichmentParameters: (_) => (0, smithy_client_1._json)(_),
|
|
21
|
+
RoleArn: [],
|
|
22
|
+
Source: [],
|
|
23
|
+
SourceParameters: (_) => se_PipeSourceParameters(_, context),
|
|
24
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
25
|
+
Target: [],
|
|
26
|
+
TargetParameters: (_) => (0, smithy_client_1._json)(_),
|
|
27
|
+
}));
|
|
34
28
|
return new protocol_http_1.HttpRequest({
|
|
35
29
|
protocol,
|
|
36
30
|
hostname,
|
|
@@ -80,7 +74,7 @@ const se_ListPipesCommand = async (input, context) => {
|
|
|
80
74
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
75
|
const headers = {};
|
|
82
76
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes";
|
|
83
|
-
const query = map({
|
|
77
|
+
const query = (0, smithy_client_1.map)({
|
|
84
78
|
NamePrefix: [, input.NamePrefix],
|
|
85
79
|
DesiredState: [, input.DesiredState],
|
|
86
80
|
CurrentState: [, input.CurrentState],
|
|
@@ -161,9 +155,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
161
155
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
162
156
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
163
157
|
let body;
|
|
164
|
-
body = JSON.stringify({
|
|
165
|
-
|
|
166
|
-
});
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
159
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
160
|
+
}));
|
|
167
161
|
return new protocol_http_1.HttpRequest({
|
|
168
162
|
protocol,
|
|
169
163
|
hostname,
|
|
@@ -180,7 +174,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
180
174
|
const headers = {};
|
|
181
175
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
182
176
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
183
|
-
const query = map({
|
|
177
|
+
const query = (0, smithy_client_1.map)({
|
|
184
178
|
tagKeys: [
|
|
185
179
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
186
180
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -207,22 +201,16 @@ const se_UpdatePipeCommand = async (input, context) => {
|
|
|
207
201
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/pipes/{Name}";
|
|
208
202
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
209
203
|
let body;
|
|
210
|
-
body = JSON.stringify({
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}),
|
|
221
|
-
...(input.Target != null && { Target: input.Target }),
|
|
222
|
-
...(input.TargetParameters != null && {
|
|
223
|
-
TargetParameters: se_PipeTargetParameters(input.TargetParameters, context),
|
|
224
|
-
}),
|
|
225
|
-
});
|
|
204
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
205
|
+
Description: [],
|
|
206
|
+
DesiredState: [],
|
|
207
|
+
Enrichment: [],
|
|
208
|
+
EnrichmentParameters: (_) => (0, smithy_client_1._json)(_),
|
|
209
|
+
RoleArn: [],
|
|
210
|
+
SourceParameters: (_) => (0, smithy_client_1._json)(_),
|
|
211
|
+
Target: [],
|
|
212
|
+
TargetParameters: (_) => (0, smithy_client_1._json)(_),
|
|
213
|
+
}));
|
|
226
214
|
return new protocol_http_1.HttpRequest({
|
|
227
215
|
protocol,
|
|
228
216
|
hostname,
|
|
@@ -238,28 +226,19 @@ const de_CreatePipeCommand = async (output, context) => {
|
|
|
238
226
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
239
227
|
return de_CreatePipeCommandError(output, context);
|
|
240
228
|
}
|
|
241
|
-
const contents = map({
|
|
229
|
+
const contents = (0, smithy_client_1.map)({
|
|
242
230
|
$metadata: deserializeMetadata(output),
|
|
243
231
|
});
|
|
244
232
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (data.DesiredState != null) {
|
|
255
|
-
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
256
|
-
}
|
|
257
|
-
if (data.LastModifiedTime != null) {
|
|
258
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
259
|
-
}
|
|
260
|
-
if (data.Name != null) {
|
|
261
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
262
|
-
}
|
|
233
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
234
|
+
Arn: smithy_client_1.expectString,
|
|
235
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
236
|
+
CurrentState: smithy_client_1.expectString,
|
|
237
|
+
DesiredState: smithy_client_1.expectString,
|
|
238
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
239
|
+
Name: smithy_client_1.expectString,
|
|
240
|
+
});
|
|
241
|
+
Object.assign(contents, doc);
|
|
263
242
|
return contents;
|
|
264
243
|
};
|
|
265
244
|
exports.de_CreatePipeCommand = de_CreatePipeCommand;
|
|
@@ -290,10 +269,9 @@ const de_CreatePipeCommandError = async (output, context) => {
|
|
|
290
269
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
291
270
|
default:
|
|
292
271
|
const parsedBody = parsedOutput.body;
|
|
293
|
-
|
|
272
|
+
return throwDefaultError({
|
|
294
273
|
output,
|
|
295
274
|
parsedBody,
|
|
296
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
297
275
|
errorCode,
|
|
298
276
|
});
|
|
299
277
|
}
|
|
@@ -302,28 +280,19 @@ const de_DeletePipeCommand = async (output, context) => {
|
|
|
302
280
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
281
|
return de_DeletePipeCommandError(output, context);
|
|
304
282
|
}
|
|
305
|
-
const contents = map({
|
|
283
|
+
const contents = (0, smithy_client_1.map)({
|
|
306
284
|
$metadata: deserializeMetadata(output),
|
|
307
285
|
});
|
|
308
286
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
if (data.DesiredState != null) {
|
|
319
|
-
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
320
|
-
}
|
|
321
|
-
if (data.LastModifiedTime != null) {
|
|
322
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
323
|
-
}
|
|
324
|
-
if (data.Name != null) {
|
|
325
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
326
|
-
}
|
|
287
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
288
|
+
Arn: smithy_client_1.expectString,
|
|
289
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
290
|
+
CurrentState: smithy_client_1.expectString,
|
|
291
|
+
DesiredState: smithy_client_1.expectString,
|
|
292
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
293
|
+
Name: smithy_client_1.expectString,
|
|
294
|
+
});
|
|
295
|
+
Object.assign(contents, doc);
|
|
327
296
|
return contents;
|
|
328
297
|
};
|
|
329
298
|
exports.de_DeletePipeCommand = de_DeletePipeCommand;
|
|
@@ -351,10 +320,9 @@ const de_DeletePipeCommandError = async (output, context) => {
|
|
|
351
320
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
352
321
|
default:
|
|
353
322
|
const parsedBody = parsedOutput.body;
|
|
354
|
-
|
|
323
|
+
return throwDefaultError({
|
|
355
324
|
output,
|
|
356
325
|
parsedBody,
|
|
357
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
358
326
|
errorCode,
|
|
359
327
|
});
|
|
360
328
|
}
|
|
@@ -363,58 +331,29 @@ const de_DescribePipeCommand = async (output, context) => {
|
|
|
363
331
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
364
332
|
return de_DescribePipeCommandError(output, context);
|
|
365
333
|
}
|
|
366
|
-
const contents = map({
|
|
334
|
+
const contents = (0, smithy_client_1.map)({
|
|
367
335
|
$metadata: deserializeMetadata(output),
|
|
368
336
|
});
|
|
369
337
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
contents.EnrichmentParameters = de_PipeEnrichmentParameters(data.EnrichmentParameters, context);
|
|
390
|
-
}
|
|
391
|
-
if (data.LastModifiedTime != null) {
|
|
392
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
393
|
-
}
|
|
394
|
-
if (data.Name != null) {
|
|
395
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
396
|
-
}
|
|
397
|
-
if (data.RoleArn != null) {
|
|
398
|
-
contents.RoleArn = (0, smithy_client_1.expectString)(data.RoleArn);
|
|
399
|
-
}
|
|
400
|
-
if (data.Source != null) {
|
|
401
|
-
contents.Source = (0, smithy_client_1.expectString)(data.Source);
|
|
402
|
-
}
|
|
403
|
-
if (data.SourceParameters != null) {
|
|
404
|
-
contents.SourceParameters = de_PipeSourceParameters(data.SourceParameters, context);
|
|
405
|
-
}
|
|
406
|
-
if (data.StateReason != null) {
|
|
407
|
-
contents.StateReason = (0, smithy_client_1.expectString)(data.StateReason);
|
|
408
|
-
}
|
|
409
|
-
if (data.Tags != null) {
|
|
410
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
411
|
-
}
|
|
412
|
-
if (data.Target != null) {
|
|
413
|
-
contents.Target = (0, smithy_client_1.expectString)(data.Target);
|
|
414
|
-
}
|
|
415
|
-
if (data.TargetParameters != null) {
|
|
416
|
-
contents.TargetParameters = de_PipeTargetParameters(data.TargetParameters, context);
|
|
417
|
-
}
|
|
338
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
339
|
+
Arn: smithy_client_1.expectString,
|
|
340
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
341
|
+
CurrentState: smithy_client_1.expectString,
|
|
342
|
+
Description: smithy_client_1.expectString,
|
|
343
|
+
DesiredState: smithy_client_1.expectString,
|
|
344
|
+
Enrichment: smithy_client_1.expectString,
|
|
345
|
+
EnrichmentParameters: smithy_client_1._json,
|
|
346
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
347
|
+
Name: smithy_client_1.expectString,
|
|
348
|
+
RoleArn: smithy_client_1.expectString,
|
|
349
|
+
Source: smithy_client_1.expectString,
|
|
350
|
+
SourceParameters: (_) => de_PipeSourceParameters(_, context),
|
|
351
|
+
StateReason: smithy_client_1.expectString,
|
|
352
|
+
Tags: smithy_client_1._json,
|
|
353
|
+
Target: smithy_client_1.expectString,
|
|
354
|
+
TargetParameters: smithy_client_1._json,
|
|
355
|
+
});
|
|
356
|
+
Object.assign(contents, doc);
|
|
418
357
|
return contents;
|
|
419
358
|
};
|
|
420
359
|
exports.de_DescribePipeCommand = de_DescribePipeCommand;
|
|
@@ -439,10 +378,9 @@ const de_DescribePipeCommandError = async (output, context) => {
|
|
|
439
378
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
440
379
|
default:
|
|
441
380
|
const parsedBody = parsedOutput.body;
|
|
442
|
-
|
|
381
|
+
return throwDefaultError({
|
|
443
382
|
output,
|
|
444
383
|
parsedBody,
|
|
445
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
446
384
|
errorCode,
|
|
447
385
|
});
|
|
448
386
|
}
|
|
@@ -451,16 +389,15 @@ const de_ListPipesCommand = async (output, context) => {
|
|
|
451
389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
452
390
|
return de_ListPipesCommandError(output, context);
|
|
453
391
|
}
|
|
454
|
-
const contents = map({
|
|
392
|
+
const contents = (0, smithy_client_1.map)({
|
|
455
393
|
$metadata: deserializeMetadata(output),
|
|
456
394
|
});
|
|
457
395
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
396
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
397
|
+
NextToken: smithy_client_1.expectString,
|
|
398
|
+
Pipes: (_) => de_PipeList(_, context),
|
|
399
|
+
});
|
|
400
|
+
Object.assign(contents, doc);
|
|
464
401
|
return contents;
|
|
465
402
|
};
|
|
466
403
|
exports.de_ListPipesCommand = de_ListPipesCommand;
|
|
@@ -482,10 +419,9 @@ const de_ListPipesCommandError = async (output, context) => {
|
|
|
482
419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
483
420
|
default:
|
|
484
421
|
const parsedBody = parsedOutput.body;
|
|
485
|
-
|
|
422
|
+
return throwDefaultError({
|
|
486
423
|
output,
|
|
487
424
|
parsedBody,
|
|
488
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
489
425
|
errorCode,
|
|
490
426
|
});
|
|
491
427
|
}
|
|
@@ -494,13 +430,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
494
430
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
495
431
|
return de_ListTagsForResourceCommandError(output, context);
|
|
496
432
|
}
|
|
497
|
-
const contents = map({
|
|
433
|
+
const contents = (0, smithy_client_1.map)({
|
|
498
434
|
$metadata: deserializeMetadata(output),
|
|
499
435
|
});
|
|
500
436
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}
|
|
437
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
438
|
+
tags: smithy_client_1._json,
|
|
439
|
+
});
|
|
440
|
+
Object.assign(contents, doc);
|
|
504
441
|
return contents;
|
|
505
442
|
};
|
|
506
443
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -522,10 +459,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
522
459
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
523
460
|
default:
|
|
524
461
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
462
|
+
return throwDefaultError({
|
|
526
463
|
output,
|
|
527
464
|
parsedBody,
|
|
528
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
529
465
|
errorCode,
|
|
530
466
|
});
|
|
531
467
|
}
|
|
@@ -534,28 +470,19 @@ const de_StartPipeCommand = async (output, context) => {
|
|
|
534
470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
471
|
return de_StartPipeCommandError(output, context);
|
|
536
472
|
}
|
|
537
|
-
const contents = map({
|
|
473
|
+
const contents = (0, smithy_client_1.map)({
|
|
538
474
|
$metadata: deserializeMetadata(output),
|
|
539
475
|
});
|
|
540
476
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (data.DesiredState != null) {
|
|
551
|
-
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
552
|
-
}
|
|
553
|
-
if (data.LastModifiedTime != null) {
|
|
554
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
555
|
-
}
|
|
556
|
-
if (data.Name != null) {
|
|
557
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
558
|
-
}
|
|
477
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
478
|
+
Arn: smithy_client_1.expectString,
|
|
479
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
480
|
+
CurrentState: smithy_client_1.expectString,
|
|
481
|
+
DesiredState: smithy_client_1.expectString,
|
|
482
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
483
|
+
Name: smithy_client_1.expectString,
|
|
484
|
+
});
|
|
485
|
+
Object.assign(contents, doc);
|
|
559
486
|
return contents;
|
|
560
487
|
};
|
|
561
488
|
exports.de_StartPipeCommand = de_StartPipeCommand;
|
|
@@ -583,10 +510,9 @@ const de_StartPipeCommandError = async (output, context) => {
|
|
|
583
510
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
584
511
|
default:
|
|
585
512
|
const parsedBody = parsedOutput.body;
|
|
586
|
-
|
|
513
|
+
return throwDefaultError({
|
|
587
514
|
output,
|
|
588
515
|
parsedBody,
|
|
589
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
590
516
|
errorCode,
|
|
591
517
|
});
|
|
592
518
|
}
|
|
@@ -595,28 +521,19 @@ const de_StopPipeCommand = async (output, context) => {
|
|
|
595
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
522
|
return de_StopPipeCommandError(output, context);
|
|
597
523
|
}
|
|
598
|
-
const contents = map({
|
|
524
|
+
const contents = (0, smithy_client_1.map)({
|
|
599
525
|
$metadata: deserializeMetadata(output),
|
|
600
526
|
});
|
|
601
527
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
if (data.DesiredState != null) {
|
|
612
|
-
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
613
|
-
}
|
|
614
|
-
if (data.LastModifiedTime != null) {
|
|
615
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
616
|
-
}
|
|
617
|
-
if (data.Name != null) {
|
|
618
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
619
|
-
}
|
|
528
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
529
|
+
Arn: smithy_client_1.expectString,
|
|
530
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
531
|
+
CurrentState: smithy_client_1.expectString,
|
|
532
|
+
DesiredState: smithy_client_1.expectString,
|
|
533
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
534
|
+
Name: smithy_client_1.expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
620
537
|
return contents;
|
|
621
538
|
};
|
|
622
539
|
exports.de_StopPipeCommand = de_StopPipeCommand;
|
|
@@ -644,10 +561,9 @@ const de_StopPipeCommandError = async (output, context) => {
|
|
|
644
561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
645
562
|
default:
|
|
646
563
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
564
|
+
return throwDefaultError({
|
|
648
565
|
output,
|
|
649
566
|
parsedBody,
|
|
650
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
651
567
|
errorCode,
|
|
652
568
|
});
|
|
653
569
|
}
|
|
@@ -656,7 +572,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
656
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
573
|
return de_TagResourceCommandError(output, context);
|
|
658
574
|
}
|
|
659
|
-
const contents = map({
|
|
575
|
+
const contents = (0, smithy_client_1.map)({
|
|
660
576
|
$metadata: deserializeMetadata(output),
|
|
661
577
|
});
|
|
662
578
|
await collectBody(output.body, context);
|
|
@@ -681,10 +597,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
681
597
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
598
|
default:
|
|
683
599
|
const parsedBody = parsedOutput.body;
|
|
684
|
-
|
|
600
|
+
return throwDefaultError({
|
|
685
601
|
output,
|
|
686
602
|
parsedBody,
|
|
687
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
688
603
|
errorCode,
|
|
689
604
|
});
|
|
690
605
|
}
|
|
@@ -693,7 +608,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
693
608
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
609
|
return de_UntagResourceCommandError(output, context);
|
|
695
610
|
}
|
|
696
|
-
const contents = map({
|
|
611
|
+
const contents = (0, smithy_client_1.map)({
|
|
697
612
|
$metadata: deserializeMetadata(output),
|
|
698
613
|
});
|
|
699
614
|
await collectBody(output.body, context);
|
|
@@ -718,10 +633,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
718
633
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
719
634
|
default:
|
|
720
635
|
const parsedBody = parsedOutput.body;
|
|
721
|
-
|
|
636
|
+
return throwDefaultError({
|
|
722
637
|
output,
|
|
723
638
|
parsedBody,
|
|
724
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
725
639
|
errorCode,
|
|
726
640
|
});
|
|
727
641
|
}
|
|
@@ -730,28 +644,19 @@ const de_UpdatePipeCommand = async (output, context) => {
|
|
|
730
644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
645
|
return de_UpdatePipeCommandError(output, context);
|
|
732
646
|
}
|
|
733
|
-
const contents = map({
|
|
647
|
+
const contents = (0, smithy_client_1.map)({
|
|
734
648
|
$metadata: deserializeMetadata(output),
|
|
735
649
|
});
|
|
736
650
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
if (data.DesiredState != null) {
|
|
747
|
-
contents.DesiredState = (0, smithy_client_1.expectString)(data.DesiredState);
|
|
748
|
-
}
|
|
749
|
-
if (data.LastModifiedTime != null) {
|
|
750
|
-
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
751
|
-
}
|
|
752
|
-
if (data.Name != null) {
|
|
753
|
-
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
754
|
-
}
|
|
651
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
652
|
+
Arn: smithy_client_1.expectString,
|
|
653
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
654
|
+
CurrentState: smithy_client_1.expectString,
|
|
655
|
+
DesiredState: smithy_client_1.expectString,
|
|
656
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
657
|
+
Name: smithy_client_1.expectString,
|
|
658
|
+
});
|
|
659
|
+
Object.assign(contents, doc);
|
|
755
660
|
return contents;
|
|
756
661
|
};
|
|
757
662
|
exports.de_UpdatePipeCommand = de_UpdatePipeCommand;
|
|
@@ -779,27 +684,23 @@ const de_UpdatePipeCommandError = async (output, context) => {
|
|
|
779
684
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
685
|
default:
|
|
781
686
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
687
|
+
return throwDefaultError({
|
|
783
688
|
output,
|
|
784
689
|
parsedBody,
|
|
785
|
-
exceptionCtor: PipesServiceException_1.PipesServiceException,
|
|
786
690
|
errorCode,
|
|
787
691
|
});
|
|
788
692
|
}
|
|
789
693
|
};
|
|
790
|
-
const
|
|
694
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(PipesServiceException_1.PipesServiceException);
|
|
791
695
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
792
|
-
const contents = map({});
|
|
696
|
+
const contents = (0, smithy_client_1.map)({});
|
|
793
697
|
const data = parsedOutput.body;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
if (data.resourceType != null) {
|
|
801
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
802
|
-
}
|
|
698
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
699
|
+
message: smithy_client_1.expectString,
|
|
700
|
+
resourceId: smithy_client_1.expectString,
|
|
701
|
+
resourceType: smithy_client_1.expectString,
|
|
702
|
+
});
|
|
703
|
+
Object.assign(contents, doc);
|
|
803
704
|
const exception = new models_0_1.ConflictException({
|
|
804
705
|
$metadata: deserializeMetadata(parsedOutput),
|
|
805
706
|
...contents,
|
|
@@ -807,16 +708,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
807
708
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
808
709
|
};
|
|
809
710
|
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
810
|
-
const contents = map({
|
|
711
|
+
const contents = (0, smithy_client_1.map)({
|
|
811
712
|
retryAfterSeconds: [
|
|
812
713
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
813
714
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
814
715
|
],
|
|
815
716
|
});
|
|
816
717
|
const data = parsedOutput.body;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
}
|
|
718
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
719
|
+
message: smithy_client_1.expectString,
|
|
720
|
+
});
|
|
721
|
+
Object.assign(contents, doc);
|
|
820
722
|
const exception = new models_0_1.InternalException({
|
|
821
723
|
$metadata: deserializeMetadata(parsedOutput),
|
|
822
724
|
...contents,
|
|
@@ -824,11 +726,12 @@ const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
|
824
726
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
825
727
|
};
|
|
826
728
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
827
|
-
const contents = map({});
|
|
729
|
+
const contents = (0, smithy_client_1.map)({});
|
|
828
730
|
const data = parsedOutput.body;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}
|
|
731
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
732
|
+
message: smithy_client_1.expectString,
|
|
733
|
+
});
|
|
734
|
+
Object.assign(contents, doc);
|
|
832
735
|
const exception = new models_0_1.NotFoundException({
|
|
833
736
|
$metadata: deserializeMetadata(parsedOutput),
|
|
834
737
|
...contents,
|
|
@@ -836,23 +739,16 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
836
739
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
837
740
|
};
|
|
838
741
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
839
|
-
const contents = map({});
|
|
742
|
+
const contents = (0, smithy_client_1.map)({});
|
|
840
743
|
const data = parsedOutput.body;
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
850
|
-
if (data.resourceType != null) {
|
|
851
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
852
|
-
}
|
|
853
|
-
if (data.serviceCode != null) {
|
|
854
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
855
|
-
}
|
|
744
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
745
|
+
message: smithy_client_1.expectString,
|
|
746
|
+
quotaCode: smithy_client_1.expectString,
|
|
747
|
+
resourceId: smithy_client_1.expectString,
|
|
748
|
+
resourceType: smithy_client_1.expectString,
|
|
749
|
+
serviceCode: smithy_client_1.expectString,
|
|
750
|
+
});
|
|
751
|
+
Object.assign(contents, doc);
|
|
856
752
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
857
753
|
$metadata: deserializeMetadata(parsedOutput),
|
|
858
754
|
...contents,
|
|
@@ -860,22 +756,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
860
756
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
861
757
|
};
|
|
862
758
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
863
|
-
const contents = map({
|
|
759
|
+
const contents = (0, smithy_client_1.map)({
|
|
864
760
|
retryAfterSeconds: [
|
|
865
761
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
866
762
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
867
763
|
],
|
|
868
764
|
});
|
|
869
765
|
const data = parsedOutput.body;
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
if (data.serviceCode != null) {
|
|
877
|
-
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
878
|
-
}
|
|
766
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
767
|
+
message: smithy_client_1.expectString,
|
|
768
|
+
quotaCode: smithy_client_1.expectString,
|
|
769
|
+
serviceCode: smithy_client_1.expectString,
|
|
770
|
+
});
|
|
771
|
+
Object.assign(contents, doc);
|
|
879
772
|
const exception = new models_0_1.ThrottlingException({
|
|
880
773
|
$metadata: deserializeMetadata(parsedOutput),
|
|
881
774
|
...contents,
|
|
@@ -883,1554 +776,91 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
883
776
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
884
777
|
};
|
|
885
778
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
886
|
-
const contents = map({});
|
|
779
|
+
const contents = (0, smithy_client_1.map)({});
|
|
887
780
|
const data = parsedOutput.body;
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
}
|
|
781
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
782
|
+
fieldList: smithy_client_1._json,
|
|
783
|
+
message: smithy_client_1.expectString,
|
|
784
|
+
});
|
|
785
|
+
Object.assign(contents, doc);
|
|
894
786
|
const exception = new models_0_1.ValidationException({
|
|
895
787
|
$metadata: deserializeMetadata(parsedOutput),
|
|
896
788
|
...contents,
|
|
897
789
|
});
|
|
898
790
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
899
791
|
};
|
|
900
|
-
const se_AwsVpcConfiguration = (input, context) => {
|
|
901
|
-
return {
|
|
902
|
-
...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
|
|
903
|
-
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
904
|
-
...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
|
|
905
|
-
};
|
|
906
|
-
};
|
|
907
|
-
const se_BatchArrayProperties = (input, context) => {
|
|
908
|
-
return {
|
|
909
|
-
...(input.Size != null && { Size: input.Size }),
|
|
910
|
-
};
|
|
911
|
-
};
|
|
912
|
-
const se_BatchContainerOverrides = (input, context) => {
|
|
913
|
-
return {
|
|
914
|
-
...(input.Command != null && { Command: se_StringList(input.Command, context) }),
|
|
915
|
-
...(input.Environment != null && { Environment: se_BatchEnvironmentVariableList(input.Environment, context) }),
|
|
916
|
-
...(input.InstanceType != null && { InstanceType: input.InstanceType }),
|
|
917
|
-
...(input.ResourceRequirements != null && {
|
|
918
|
-
ResourceRequirements: se_BatchResourceRequirementsList(input.ResourceRequirements, context),
|
|
919
|
-
}),
|
|
920
|
-
};
|
|
921
|
-
};
|
|
922
|
-
const se_BatchDependsOn = (input, context) => {
|
|
923
|
-
return input
|
|
924
|
-
.filter((e) => e != null)
|
|
925
|
-
.map((entry) => {
|
|
926
|
-
return se_BatchJobDependency(entry, context);
|
|
927
|
-
});
|
|
928
|
-
};
|
|
929
|
-
const se_BatchEnvironmentVariable = (input, context) => {
|
|
930
|
-
return {
|
|
931
|
-
...(input.Name != null && { Name: input.Name }),
|
|
932
|
-
...(input.Value != null && { Value: input.Value }),
|
|
933
|
-
};
|
|
934
|
-
};
|
|
935
|
-
const se_BatchEnvironmentVariableList = (input, context) => {
|
|
936
|
-
return input
|
|
937
|
-
.filter((e) => e != null)
|
|
938
|
-
.map((entry) => {
|
|
939
|
-
return se_BatchEnvironmentVariable(entry, context);
|
|
940
|
-
});
|
|
941
|
-
};
|
|
942
|
-
const se_BatchJobDependency = (input, context) => {
|
|
943
|
-
return {
|
|
944
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
945
|
-
...(input.Type != null && { Type: input.Type }),
|
|
946
|
-
};
|
|
947
|
-
};
|
|
948
|
-
const se_BatchParametersMap = (input, context) => {
|
|
949
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
950
|
-
if (value === null) {
|
|
951
|
-
return acc;
|
|
952
|
-
}
|
|
953
|
-
acc[key] = value;
|
|
954
|
-
return acc;
|
|
955
|
-
}, {});
|
|
956
|
-
};
|
|
957
|
-
const se_BatchResourceRequirement = (input, context) => {
|
|
958
|
-
return {
|
|
959
|
-
...(input.Type != null && { Type: input.Type }),
|
|
960
|
-
...(input.Value != null && { Value: input.Value }),
|
|
961
|
-
};
|
|
962
|
-
};
|
|
963
|
-
const se_BatchResourceRequirementsList = (input, context) => {
|
|
964
|
-
return input
|
|
965
|
-
.filter((e) => e != null)
|
|
966
|
-
.map((entry) => {
|
|
967
|
-
return se_BatchResourceRequirement(entry, context);
|
|
968
|
-
});
|
|
969
|
-
};
|
|
970
|
-
const se_BatchRetryStrategy = (input, context) => {
|
|
971
|
-
return {
|
|
972
|
-
...(input.Attempts != null && { Attempts: input.Attempts }),
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
const se_CapacityProviderStrategy = (input, context) => {
|
|
976
|
-
return input
|
|
977
|
-
.filter((e) => e != null)
|
|
978
|
-
.map((entry) => {
|
|
979
|
-
return se_CapacityProviderStrategyItem(entry, context);
|
|
980
|
-
});
|
|
981
|
-
};
|
|
982
|
-
const se_CapacityProviderStrategyItem = (input, context) => {
|
|
983
|
-
return {
|
|
984
|
-
...(input.base != null && { base: input.base }),
|
|
985
|
-
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
986
|
-
...(input.weight != null && { weight: input.weight }),
|
|
987
|
-
};
|
|
988
|
-
};
|
|
989
|
-
const se_DeadLetterConfig = (input, context) => {
|
|
990
|
-
return {
|
|
991
|
-
...(input.Arn != null && { Arn: input.Arn }),
|
|
992
|
-
};
|
|
993
|
-
};
|
|
994
|
-
const se_EcsContainerOverride = (input, context) => {
|
|
995
|
-
return {
|
|
996
|
-
...(input.Command != null && { Command: se_StringList(input.Command, context) }),
|
|
997
|
-
...(input.Cpu != null && { Cpu: input.Cpu }),
|
|
998
|
-
...(input.Environment != null && { Environment: se_EcsEnvironmentVariableList(input.Environment, context) }),
|
|
999
|
-
...(input.EnvironmentFiles != null && {
|
|
1000
|
-
EnvironmentFiles: se_EcsEnvironmentFileList(input.EnvironmentFiles, context),
|
|
1001
|
-
}),
|
|
1002
|
-
...(input.Memory != null && { Memory: input.Memory }),
|
|
1003
|
-
...(input.MemoryReservation != null && { MemoryReservation: input.MemoryReservation }),
|
|
1004
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1005
|
-
...(input.ResourceRequirements != null && {
|
|
1006
|
-
ResourceRequirements: se_EcsResourceRequirementsList(input.ResourceRequirements, context),
|
|
1007
|
-
}),
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
|
-
const se_EcsContainerOverrideList = (input, context) => {
|
|
1011
|
-
return input
|
|
1012
|
-
.filter((e) => e != null)
|
|
1013
|
-
.map((entry) => {
|
|
1014
|
-
return se_EcsContainerOverride(entry, context);
|
|
1015
|
-
});
|
|
1016
|
-
};
|
|
1017
|
-
const se_EcsEnvironmentFile = (input, context) => {
|
|
1018
|
-
return {
|
|
1019
|
-
...(input.type != null && { type: input.type }),
|
|
1020
|
-
...(input.value != null && { value: input.value }),
|
|
1021
|
-
};
|
|
1022
|
-
};
|
|
1023
|
-
const se_EcsEnvironmentFileList = (input, context) => {
|
|
1024
|
-
return input
|
|
1025
|
-
.filter((e) => e != null)
|
|
1026
|
-
.map((entry) => {
|
|
1027
|
-
return se_EcsEnvironmentFile(entry, context);
|
|
1028
|
-
});
|
|
1029
|
-
};
|
|
1030
|
-
const se_EcsEnvironmentVariable = (input, context) => {
|
|
1031
|
-
return {
|
|
1032
|
-
...(input.name != null && { name: input.name }),
|
|
1033
|
-
...(input.value != null && { value: input.value }),
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
const se_EcsEnvironmentVariableList = (input, context) => {
|
|
1037
|
-
return input
|
|
1038
|
-
.filter((e) => e != null)
|
|
1039
|
-
.map((entry) => {
|
|
1040
|
-
return se_EcsEnvironmentVariable(entry, context);
|
|
1041
|
-
});
|
|
1042
|
-
};
|
|
1043
|
-
const se_EcsEphemeralStorage = (input, context) => {
|
|
1044
|
-
return {
|
|
1045
|
-
...(input.sizeInGiB != null && { sizeInGiB: input.sizeInGiB }),
|
|
1046
|
-
};
|
|
1047
|
-
};
|
|
1048
|
-
const se_EcsInferenceAcceleratorOverride = (input, context) => {
|
|
1049
|
-
return {
|
|
1050
|
-
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
1051
|
-
...(input.deviceType != null && { deviceType: input.deviceType }),
|
|
1052
|
-
};
|
|
1053
|
-
};
|
|
1054
|
-
const se_EcsInferenceAcceleratorOverrideList = (input, context) => {
|
|
1055
|
-
return input
|
|
1056
|
-
.filter((e) => e != null)
|
|
1057
|
-
.map((entry) => {
|
|
1058
|
-
return se_EcsInferenceAcceleratorOverride(entry, context);
|
|
1059
|
-
});
|
|
1060
|
-
};
|
|
1061
|
-
const se_EcsResourceRequirement = (input, context) => {
|
|
1062
|
-
return {
|
|
1063
|
-
...(input.type != null && { type: input.type }),
|
|
1064
|
-
...(input.value != null && { value: input.value }),
|
|
1065
|
-
};
|
|
1066
|
-
};
|
|
1067
|
-
const se_EcsResourceRequirementsList = (input, context) => {
|
|
1068
|
-
return input
|
|
1069
|
-
.filter((e) => e != null)
|
|
1070
|
-
.map((entry) => {
|
|
1071
|
-
return se_EcsResourceRequirement(entry, context);
|
|
1072
|
-
});
|
|
1073
|
-
};
|
|
1074
|
-
const se_EcsTaskOverride = (input, context) => {
|
|
1075
|
-
return {
|
|
1076
|
-
...(input.ContainerOverrides != null && {
|
|
1077
|
-
ContainerOverrides: se_EcsContainerOverrideList(input.ContainerOverrides, context),
|
|
1078
|
-
}),
|
|
1079
|
-
...(input.Cpu != null && { Cpu: input.Cpu }),
|
|
1080
|
-
...(input.EphemeralStorage != null && {
|
|
1081
|
-
EphemeralStorage: se_EcsEphemeralStorage(input.EphemeralStorage, context),
|
|
1082
|
-
}),
|
|
1083
|
-
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1084
|
-
...(input.InferenceAcceleratorOverrides != null && {
|
|
1085
|
-
InferenceAcceleratorOverrides: se_EcsInferenceAcceleratorOverrideList(input.InferenceAcceleratorOverrides, context),
|
|
1086
|
-
}),
|
|
1087
|
-
...(input.Memory != null && { Memory: input.Memory }),
|
|
1088
|
-
...(input.TaskRoleArn != null && { TaskRoleArn: input.TaskRoleArn }),
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
const se_EventBridgeEventResourceList = (input, context) => {
|
|
1092
|
-
return input
|
|
1093
|
-
.filter((e) => e != null)
|
|
1094
|
-
.map((entry) => {
|
|
1095
|
-
return entry;
|
|
1096
|
-
});
|
|
1097
|
-
};
|
|
1098
|
-
const se_Filter = (input, context) => {
|
|
1099
|
-
return {
|
|
1100
|
-
...(input.Pattern != null && { Pattern: input.Pattern }),
|
|
1101
|
-
};
|
|
1102
|
-
};
|
|
1103
|
-
const se_FilterCriteria = (input, context) => {
|
|
1104
|
-
return {
|
|
1105
|
-
...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
|
|
1106
|
-
};
|
|
1107
|
-
};
|
|
1108
|
-
const se_FilterList = (input, context) => {
|
|
1109
|
-
return input
|
|
1110
|
-
.filter((e) => e != null)
|
|
1111
|
-
.map((entry) => {
|
|
1112
|
-
return se_Filter(entry, context);
|
|
1113
|
-
});
|
|
1114
|
-
};
|
|
1115
|
-
const se_HeaderParametersMap = (input, context) => {
|
|
1116
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1117
|
-
if (value === null) {
|
|
1118
|
-
return acc;
|
|
1119
|
-
}
|
|
1120
|
-
acc[key] = value;
|
|
1121
|
-
return acc;
|
|
1122
|
-
}, {});
|
|
1123
|
-
};
|
|
1124
|
-
const se_KafkaBootstrapServers = (input, context) => {
|
|
1125
|
-
return input
|
|
1126
|
-
.filter((e) => e != null)
|
|
1127
|
-
.map((entry) => {
|
|
1128
|
-
return entry;
|
|
1129
|
-
});
|
|
1130
|
-
};
|
|
1131
|
-
const se_MQBrokerAccessCredentials = (input, context) => {
|
|
1132
|
-
return models_0_1.MQBrokerAccessCredentials.visit(input, {
|
|
1133
|
-
BasicAuth: (value) => ({ BasicAuth: value }),
|
|
1134
|
-
_: (name, value) => ({ name: value }),
|
|
1135
|
-
});
|
|
1136
|
-
};
|
|
1137
|
-
const se_MSKAccessCredentials = (input, context) => {
|
|
1138
|
-
return models_0_1.MSKAccessCredentials.visit(input, {
|
|
1139
|
-
ClientCertificateTlsAuth: (value) => ({ ClientCertificateTlsAuth: value }),
|
|
1140
|
-
SaslScram512Auth: (value) => ({ SaslScram512Auth: value }),
|
|
1141
|
-
_: (name, value) => ({ name: value }),
|
|
1142
|
-
});
|
|
1143
|
-
};
|
|
1144
|
-
const se_NetworkConfiguration = (input, context) => {
|
|
1145
|
-
return {
|
|
1146
|
-
...(input.awsvpcConfiguration != null && {
|
|
1147
|
-
awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
|
|
1148
|
-
}),
|
|
1149
|
-
};
|
|
1150
|
-
};
|
|
1151
|
-
const se_PathParameterList = (input, context) => {
|
|
1152
|
-
return input
|
|
1153
|
-
.filter((e) => e != null)
|
|
1154
|
-
.map((entry) => {
|
|
1155
|
-
return entry;
|
|
1156
|
-
});
|
|
1157
|
-
};
|
|
1158
|
-
const se_PipeEnrichmentHttpParameters = (input, context) => {
|
|
1159
|
-
return {
|
|
1160
|
-
...(input.HeaderParameters != null && {
|
|
1161
|
-
HeaderParameters: se_HeaderParametersMap(input.HeaderParameters, context),
|
|
1162
|
-
}),
|
|
1163
|
-
...(input.PathParameterValues != null && {
|
|
1164
|
-
PathParameterValues: se_PathParameterList(input.PathParameterValues, context),
|
|
1165
|
-
}),
|
|
1166
|
-
...(input.QueryStringParameters != null && {
|
|
1167
|
-
QueryStringParameters: se_QueryStringParametersMap(input.QueryStringParameters, context),
|
|
1168
|
-
}),
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
const se_PipeEnrichmentParameters = (input, context) => {
|
|
1172
|
-
return {
|
|
1173
|
-
...(input.HttpParameters != null && {
|
|
1174
|
-
HttpParameters: se_PipeEnrichmentHttpParameters(input.HttpParameters, context),
|
|
1175
|
-
}),
|
|
1176
|
-
...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
|
|
1177
|
-
};
|
|
1178
|
-
};
|
|
1179
|
-
const se_PipeSourceActiveMQBrokerParameters = (input, context) => {
|
|
1180
|
-
return {
|
|
1181
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1182
|
-
...(input.Credentials != null && { Credentials: se_MQBrokerAccessCredentials(input.Credentials, context) }),
|
|
1183
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1184
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1185
|
-
}),
|
|
1186
|
-
...(input.QueueName != null && { QueueName: input.QueueName }),
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
const se_PipeSourceDynamoDBStreamParameters = (input, context) => {
|
|
1190
|
-
return {
|
|
1191
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1192
|
-
...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
|
|
1193
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1194
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1195
|
-
}),
|
|
1196
|
-
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1197
|
-
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1198
|
-
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1199
|
-
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1200
|
-
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1201
|
-
};
|
|
1202
|
-
};
|
|
1203
792
|
const se_PipeSourceKinesisStreamParameters = (input, context) => {
|
|
1204
|
-
return {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1215
|
-
...(input.StartingPositionTimestamp != null && {
|
|
1216
|
-
StartingPositionTimestamp: Math.round(input.StartingPositionTimestamp.getTime() / 1000),
|
|
1217
|
-
}),
|
|
1218
|
-
};
|
|
1219
|
-
};
|
|
1220
|
-
const se_PipeSourceManagedStreamingKafkaParameters = (input, context) => {
|
|
1221
|
-
return {
|
|
1222
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1223
|
-
...(input.ConsumerGroupID != null && { ConsumerGroupID: input.ConsumerGroupID }),
|
|
1224
|
-
...(input.Credentials != null && { Credentials: se_MSKAccessCredentials(input.Credentials, context) }),
|
|
1225
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1226
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1227
|
-
}),
|
|
1228
|
-
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1229
|
-
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
1230
|
-
};
|
|
1231
|
-
};
|
|
1232
|
-
const se_PipeSourceParameters = (input, context) => {
|
|
1233
|
-
return {
|
|
1234
|
-
...(input.ActiveMQBrokerParameters != null && {
|
|
1235
|
-
ActiveMQBrokerParameters: se_PipeSourceActiveMQBrokerParameters(input.ActiveMQBrokerParameters, context),
|
|
1236
|
-
}),
|
|
1237
|
-
...(input.DynamoDBStreamParameters != null && {
|
|
1238
|
-
DynamoDBStreamParameters: se_PipeSourceDynamoDBStreamParameters(input.DynamoDBStreamParameters, context),
|
|
1239
|
-
}),
|
|
1240
|
-
...(input.FilterCriteria != null && { FilterCriteria: se_FilterCriteria(input.FilterCriteria, context) }),
|
|
1241
|
-
...(input.KinesisStreamParameters != null && {
|
|
1242
|
-
KinesisStreamParameters: se_PipeSourceKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1243
|
-
}),
|
|
1244
|
-
...(input.ManagedStreamingKafkaParameters != null && {
|
|
1245
|
-
ManagedStreamingKafkaParameters: se_PipeSourceManagedStreamingKafkaParameters(input.ManagedStreamingKafkaParameters, context),
|
|
1246
|
-
}),
|
|
1247
|
-
...(input.RabbitMQBrokerParameters != null && {
|
|
1248
|
-
RabbitMQBrokerParameters: se_PipeSourceRabbitMQBrokerParameters(input.RabbitMQBrokerParameters, context),
|
|
1249
|
-
}),
|
|
1250
|
-
...(input.SelfManagedKafkaParameters != null && {
|
|
1251
|
-
SelfManagedKafkaParameters: se_PipeSourceSelfManagedKafkaParameters(input.SelfManagedKafkaParameters, context),
|
|
1252
|
-
}),
|
|
1253
|
-
...(input.SqsQueueParameters != null && {
|
|
1254
|
-
SqsQueueParameters: se_PipeSourceSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1255
|
-
}),
|
|
1256
|
-
};
|
|
1257
|
-
};
|
|
1258
|
-
const se_PipeSourceRabbitMQBrokerParameters = (input, context) => {
|
|
1259
|
-
return {
|
|
1260
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1261
|
-
...(input.Credentials != null && { Credentials: se_MQBrokerAccessCredentials(input.Credentials, context) }),
|
|
1262
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1263
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1264
|
-
}),
|
|
1265
|
-
...(input.QueueName != null && { QueueName: input.QueueName }),
|
|
1266
|
-
...(input.VirtualHost != null && { VirtualHost: input.VirtualHost }),
|
|
1267
|
-
};
|
|
1268
|
-
};
|
|
1269
|
-
const se_PipeSourceSelfManagedKafkaParameters = (input, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
...(input.AdditionalBootstrapServers != null && {
|
|
1272
|
-
AdditionalBootstrapServers: se_KafkaBootstrapServers(input.AdditionalBootstrapServers, context),
|
|
1273
|
-
}),
|
|
1274
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1275
|
-
...(input.ConsumerGroupID != null && { ConsumerGroupID: input.ConsumerGroupID }),
|
|
1276
|
-
...(input.Credentials != null && {
|
|
1277
|
-
Credentials: se_SelfManagedKafkaAccessConfigurationCredentials(input.Credentials, context),
|
|
1278
|
-
}),
|
|
1279
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1280
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1281
|
-
}),
|
|
1282
|
-
...(input.ServerRootCaCertificate != null && { ServerRootCaCertificate: input.ServerRootCaCertificate }),
|
|
1283
|
-
...(input.StartingPosition != null && { StartingPosition: input.StartingPosition }),
|
|
1284
|
-
...(input.TopicName != null && { TopicName: input.TopicName }),
|
|
1285
|
-
...(input.Vpc != null && { Vpc: se_SelfManagedKafkaAccessConfigurationVpc(input.Vpc, context) }),
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
const se_PipeSourceSqsQueueParameters = (input, context) => {
|
|
1289
|
-
return {
|
|
1290
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1291
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1292
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1293
|
-
}),
|
|
1294
|
-
};
|
|
1295
|
-
};
|
|
1296
|
-
const se_PipeTargetBatchJobParameters = (input, context) => {
|
|
1297
|
-
return {
|
|
1298
|
-
...(input.ArrayProperties != null && { ArrayProperties: se_BatchArrayProperties(input.ArrayProperties, context) }),
|
|
1299
|
-
...(input.ContainerOverrides != null && {
|
|
1300
|
-
ContainerOverrides: se_BatchContainerOverrides(input.ContainerOverrides, context),
|
|
1301
|
-
}),
|
|
1302
|
-
...(input.DependsOn != null && { DependsOn: se_BatchDependsOn(input.DependsOn, context) }),
|
|
1303
|
-
...(input.JobDefinition != null && { JobDefinition: input.JobDefinition }),
|
|
1304
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1305
|
-
...(input.Parameters != null && { Parameters: se_BatchParametersMap(input.Parameters, context) }),
|
|
1306
|
-
...(input.RetryStrategy != null && { RetryStrategy: se_BatchRetryStrategy(input.RetryStrategy, context) }),
|
|
1307
|
-
};
|
|
1308
|
-
};
|
|
1309
|
-
const se_PipeTargetCloudWatchLogsParameters = (input, context) => {
|
|
1310
|
-
return {
|
|
1311
|
-
...(input.LogStreamName != null && { LogStreamName: input.LogStreamName }),
|
|
1312
|
-
...(input.Timestamp != null && { Timestamp: input.Timestamp }),
|
|
1313
|
-
};
|
|
1314
|
-
};
|
|
1315
|
-
const se_PipeTargetEcsTaskParameters = (input, context) => {
|
|
1316
|
-
return {
|
|
1317
|
-
...(input.CapacityProviderStrategy != null && {
|
|
1318
|
-
CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
|
|
1319
|
-
}),
|
|
1320
|
-
...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
|
|
1321
|
-
...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
|
|
1322
|
-
...(input.Group != null && { Group: input.Group }),
|
|
1323
|
-
...(input.LaunchType != null && { LaunchType: input.LaunchType }),
|
|
1324
|
-
...(input.NetworkConfiguration != null && {
|
|
1325
|
-
NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
|
|
1326
|
-
}),
|
|
1327
|
-
...(input.Overrides != null && { Overrides: se_EcsTaskOverride(input.Overrides, context) }),
|
|
1328
|
-
...(input.PlacementConstraints != null && {
|
|
1329
|
-
PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
|
|
1330
|
-
}),
|
|
1331
|
-
...(input.PlacementStrategy != null && {
|
|
1332
|
-
PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
|
|
1333
|
-
}),
|
|
1334
|
-
...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
|
|
1335
|
-
...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
|
|
1336
|
-
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
1337
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1338
|
-
...(input.TaskCount != null && { TaskCount: input.TaskCount }),
|
|
1339
|
-
...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
|
|
1340
|
-
};
|
|
1341
|
-
};
|
|
1342
|
-
const se_PipeTargetEventBridgeEventBusParameters = (input, context) => {
|
|
1343
|
-
return {
|
|
1344
|
-
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
1345
|
-
...(input.EndpointId != null && { EndpointId: input.EndpointId }),
|
|
1346
|
-
...(input.Resources != null && { Resources: se_EventBridgeEventResourceList(input.Resources, context) }),
|
|
1347
|
-
...(input.Source != null && { Source: input.Source }),
|
|
1348
|
-
...(input.Time != null && { Time: input.Time }),
|
|
1349
|
-
};
|
|
1350
|
-
};
|
|
1351
|
-
const se_PipeTargetHttpParameters = (input, context) => {
|
|
1352
|
-
return {
|
|
1353
|
-
...(input.HeaderParameters != null && {
|
|
1354
|
-
HeaderParameters: se_HeaderParametersMap(input.HeaderParameters, context),
|
|
1355
|
-
}),
|
|
1356
|
-
...(input.PathParameterValues != null && {
|
|
1357
|
-
PathParameterValues: se_PathParameterList(input.PathParameterValues, context),
|
|
1358
|
-
}),
|
|
1359
|
-
...(input.QueryStringParameters != null && {
|
|
1360
|
-
QueryStringParameters: se_QueryStringParametersMap(input.QueryStringParameters, context),
|
|
1361
|
-
}),
|
|
1362
|
-
};
|
|
1363
|
-
};
|
|
1364
|
-
const se_PipeTargetKinesisStreamParameters = (input, context) => {
|
|
1365
|
-
return {
|
|
1366
|
-
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
const se_PipeTargetLambdaFunctionParameters = (input, context) => {
|
|
1370
|
-
return {
|
|
1371
|
-
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
1372
|
-
};
|
|
1373
|
-
};
|
|
1374
|
-
const se_PipeTargetParameters = (input, context) => {
|
|
1375
|
-
return {
|
|
1376
|
-
...(input.BatchJobParameters != null && {
|
|
1377
|
-
BatchJobParameters: se_PipeTargetBatchJobParameters(input.BatchJobParameters, context),
|
|
1378
|
-
}),
|
|
1379
|
-
...(input.CloudWatchLogsParameters != null && {
|
|
1380
|
-
CloudWatchLogsParameters: se_PipeTargetCloudWatchLogsParameters(input.CloudWatchLogsParameters, context),
|
|
1381
|
-
}),
|
|
1382
|
-
...(input.EcsTaskParameters != null && {
|
|
1383
|
-
EcsTaskParameters: se_PipeTargetEcsTaskParameters(input.EcsTaskParameters, context),
|
|
1384
|
-
}),
|
|
1385
|
-
...(input.EventBridgeEventBusParameters != null && {
|
|
1386
|
-
EventBridgeEventBusParameters: se_PipeTargetEventBridgeEventBusParameters(input.EventBridgeEventBusParameters, context),
|
|
1387
|
-
}),
|
|
1388
|
-
...(input.HttpParameters != null && { HttpParameters: se_PipeTargetHttpParameters(input.HttpParameters, context) }),
|
|
1389
|
-
...(input.InputTemplate != null && { InputTemplate: input.InputTemplate }),
|
|
1390
|
-
...(input.KinesisStreamParameters != null && {
|
|
1391
|
-
KinesisStreamParameters: se_PipeTargetKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1392
|
-
}),
|
|
1393
|
-
...(input.LambdaFunctionParameters != null && {
|
|
1394
|
-
LambdaFunctionParameters: se_PipeTargetLambdaFunctionParameters(input.LambdaFunctionParameters, context),
|
|
1395
|
-
}),
|
|
1396
|
-
...(input.RedshiftDataParameters != null && {
|
|
1397
|
-
RedshiftDataParameters: se_PipeTargetRedshiftDataParameters(input.RedshiftDataParameters, context),
|
|
1398
|
-
}),
|
|
1399
|
-
...(input.SageMakerPipelineParameters != null && {
|
|
1400
|
-
SageMakerPipelineParameters: se_PipeTargetSageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
|
|
1401
|
-
}),
|
|
1402
|
-
...(input.SqsQueueParameters != null && {
|
|
1403
|
-
SqsQueueParameters: se_PipeTargetSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1404
|
-
}),
|
|
1405
|
-
...(input.StepFunctionStateMachineParameters != null && {
|
|
1406
|
-
StepFunctionStateMachineParameters: se_PipeTargetStateMachineParameters(input.StepFunctionStateMachineParameters, context),
|
|
1407
|
-
}),
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
const se_PipeTargetRedshiftDataParameters = (input, context) => {
|
|
1411
|
-
return {
|
|
1412
|
-
...(input.Database != null && { Database: input.Database }),
|
|
1413
|
-
...(input.DbUser != null && { DbUser: input.DbUser }),
|
|
1414
|
-
...(input.SecretManagerArn != null && { SecretManagerArn: input.SecretManagerArn }),
|
|
1415
|
-
...(input.Sqls != null && { Sqls: se_Sqls(input.Sqls, context) }),
|
|
1416
|
-
...(input.StatementName != null && { StatementName: input.StatementName }),
|
|
1417
|
-
...(input.WithEvent != null && { WithEvent: input.WithEvent }),
|
|
1418
|
-
};
|
|
1419
|
-
};
|
|
1420
|
-
const se_PipeTargetSageMakerPipelineParameters = (input, context) => {
|
|
1421
|
-
return {
|
|
1422
|
-
...(input.PipelineParameterList != null && {
|
|
1423
|
-
PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
|
|
1424
|
-
}),
|
|
1425
|
-
};
|
|
1426
|
-
};
|
|
1427
|
-
const se_PipeTargetSqsQueueParameters = (input, context) => {
|
|
1428
|
-
return {
|
|
1429
|
-
...(input.MessageDeduplicationId != null && { MessageDeduplicationId: input.MessageDeduplicationId }),
|
|
1430
|
-
...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
|
|
1431
|
-
};
|
|
1432
|
-
};
|
|
1433
|
-
const se_PipeTargetStateMachineParameters = (input, context) => {
|
|
1434
|
-
return {
|
|
1435
|
-
...(input.InvocationType != null && { InvocationType: input.InvocationType }),
|
|
1436
|
-
};
|
|
1437
|
-
};
|
|
1438
|
-
const se_PlacementConstraint = (input, context) => {
|
|
1439
|
-
return {
|
|
1440
|
-
...(input.expression != null && { expression: input.expression }),
|
|
1441
|
-
...(input.type != null && { type: input.type }),
|
|
1442
|
-
};
|
|
1443
|
-
};
|
|
1444
|
-
const se_PlacementConstraints = (input, context) => {
|
|
1445
|
-
return input
|
|
1446
|
-
.filter((e) => e != null)
|
|
1447
|
-
.map((entry) => {
|
|
1448
|
-
return se_PlacementConstraint(entry, context);
|
|
1449
|
-
});
|
|
1450
|
-
};
|
|
1451
|
-
const se_PlacementStrategies = (input, context) => {
|
|
1452
|
-
return input
|
|
1453
|
-
.filter((e) => e != null)
|
|
1454
|
-
.map((entry) => {
|
|
1455
|
-
return se_PlacementStrategy(entry, context);
|
|
1456
|
-
});
|
|
1457
|
-
};
|
|
1458
|
-
const se_PlacementStrategy = (input, context) => {
|
|
1459
|
-
return {
|
|
1460
|
-
...(input.field != null && { field: input.field }),
|
|
1461
|
-
...(input.type != null && { type: input.type }),
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
const se_QueryStringParametersMap = (input, context) => {
|
|
1465
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1466
|
-
if (value === null) {
|
|
1467
|
-
return acc;
|
|
1468
|
-
}
|
|
1469
|
-
acc[key] = value;
|
|
1470
|
-
return acc;
|
|
1471
|
-
}, {});
|
|
1472
|
-
};
|
|
1473
|
-
const se_SageMakerPipelineParameter = (input, context) => {
|
|
1474
|
-
return {
|
|
1475
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1476
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1477
|
-
};
|
|
1478
|
-
};
|
|
1479
|
-
const se_SageMakerPipelineParameterList = (input, context) => {
|
|
1480
|
-
return input
|
|
1481
|
-
.filter((e) => e != null)
|
|
1482
|
-
.map((entry) => {
|
|
1483
|
-
return se_SageMakerPipelineParameter(entry, context);
|
|
1484
|
-
});
|
|
1485
|
-
};
|
|
1486
|
-
const se_SecurityGroupIds = (input, context) => {
|
|
1487
|
-
return input
|
|
1488
|
-
.filter((e) => e != null)
|
|
1489
|
-
.map((entry) => {
|
|
1490
|
-
return entry;
|
|
793
|
+
return (0, smithy_client_1.take)(input, {
|
|
794
|
+
BatchSize: [],
|
|
795
|
+
DeadLetterConfig: smithy_client_1._json,
|
|
796
|
+
MaximumBatchingWindowInSeconds: [],
|
|
797
|
+
MaximumRecordAgeInSeconds: [],
|
|
798
|
+
MaximumRetryAttempts: [],
|
|
799
|
+
OnPartialBatchItemFailure: [],
|
|
800
|
+
ParallelizationFactor: [],
|
|
801
|
+
StartingPosition: [],
|
|
802
|
+
StartingPositionTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
1491
803
|
});
|
|
1492
804
|
};
|
|
1493
|
-
const
|
|
1494
|
-
return input
|
|
1495
|
-
.
|
|
1496
|
-
.
|
|
1497
|
-
|
|
805
|
+
const se_PipeSourceParameters = (input, context) => {
|
|
806
|
+
return (0, smithy_client_1.take)(input, {
|
|
807
|
+
ActiveMQBrokerParameters: smithy_client_1._json,
|
|
808
|
+
DynamoDBStreamParameters: smithy_client_1._json,
|
|
809
|
+
FilterCriteria: smithy_client_1._json,
|
|
810
|
+
KinesisStreamParameters: (_) => se_PipeSourceKinesisStreamParameters(_, context),
|
|
811
|
+
ManagedStreamingKafkaParameters: smithy_client_1._json,
|
|
812
|
+
RabbitMQBrokerParameters: smithy_client_1._json,
|
|
813
|
+
SelfManagedKafkaParameters: smithy_client_1._json,
|
|
814
|
+
SqsQueueParameters: smithy_client_1._json,
|
|
1498
815
|
});
|
|
1499
816
|
};
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
817
|
+
const de_Pipe = (output, context) => {
|
|
818
|
+
return (0, smithy_client_1.take)(output, {
|
|
819
|
+
Arn: smithy_client_1.expectString,
|
|
820
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
821
|
+
CurrentState: smithy_client_1.expectString,
|
|
822
|
+
DesiredState: smithy_client_1.expectString,
|
|
823
|
+
Enrichment: smithy_client_1.expectString,
|
|
824
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
825
|
+
Name: smithy_client_1.expectString,
|
|
826
|
+
Source: smithy_client_1.expectString,
|
|
827
|
+
StateReason: smithy_client_1.expectString,
|
|
828
|
+
Target: smithy_client_1.expectString,
|
|
1507
829
|
});
|
|
1508
830
|
};
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1511
|
-
...(input.SecurityGroup != null && { SecurityGroup: se_SecurityGroupIds(input.SecurityGroup, context) }),
|
|
1512
|
-
...(input.Subnets != null && { Subnets: se_SubnetIds(input.Subnets, context) }),
|
|
1513
|
-
};
|
|
1514
|
-
};
|
|
1515
|
-
const se_Sqls = (input, context) => {
|
|
1516
|
-
return input
|
|
831
|
+
const de_PipeList = (output, context) => {
|
|
832
|
+
const retVal = (output || [])
|
|
1517
833
|
.filter((e) => e != null)
|
|
1518
834
|
.map((entry) => {
|
|
1519
|
-
return entry;
|
|
835
|
+
return de_Pipe(entry, context);
|
|
1520
836
|
});
|
|
837
|
+
return retVal;
|
|
1521
838
|
};
|
|
1522
|
-
const
|
|
1523
|
-
return
|
|
1524
|
-
.
|
|
1525
|
-
.
|
|
1526
|
-
|
|
839
|
+
const de_PipeSourceKinesisStreamParameters = (output, context) => {
|
|
840
|
+
return (0, smithy_client_1.take)(output, {
|
|
841
|
+
BatchSize: smithy_client_1.expectInt32,
|
|
842
|
+
DeadLetterConfig: smithy_client_1._json,
|
|
843
|
+
MaximumBatchingWindowInSeconds: smithy_client_1.expectInt32,
|
|
844
|
+
MaximumRecordAgeInSeconds: smithy_client_1.expectInt32,
|
|
845
|
+
MaximumRetryAttempts: smithy_client_1.expectInt32,
|
|
846
|
+
OnPartialBatchItemFailure: smithy_client_1.expectString,
|
|
847
|
+
ParallelizationFactor: smithy_client_1.expectInt32,
|
|
848
|
+
StartingPosition: smithy_client_1.expectString,
|
|
849
|
+
StartingPositionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1527
850
|
});
|
|
1528
851
|
};
|
|
1529
|
-
const
|
|
1530
|
-
return
|
|
1531
|
-
.
|
|
1532
|
-
.
|
|
1533
|
-
|
|
852
|
+
const de_PipeSourceParameters = (output, context) => {
|
|
853
|
+
return (0, smithy_client_1.take)(output, {
|
|
854
|
+
ActiveMQBrokerParameters: smithy_client_1._json,
|
|
855
|
+
DynamoDBStreamParameters: smithy_client_1._json,
|
|
856
|
+
FilterCriteria: smithy_client_1._json,
|
|
857
|
+
KinesisStreamParameters: (_) => de_PipeSourceKinesisStreamParameters(_, context),
|
|
858
|
+
ManagedStreamingKafkaParameters: smithy_client_1._json,
|
|
859
|
+
RabbitMQBrokerParameters: smithy_client_1._json,
|
|
860
|
+
SelfManagedKafkaParameters: smithy_client_1._json,
|
|
861
|
+
SqsQueueParameters: smithy_client_1._json,
|
|
1534
862
|
});
|
|
1535
863
|
};
|
|
1536
|
-
const se_Subnets = (input, context) => {
|
|
1537
|
-
return input
|
|
1538
|
-
.filter((e) => e != null)
|
|
1539
|
-
.map((entry) => {
|
|
1540
|
-
return entry;
|
|
1541
|
-
});
|
|
1542
|
-
};
|
|
1543
|
-
const se_Tag = (input, context) => {
|
|
1544
|
-
return {
|
|
1545
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1546
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1547
|
-
};
|
|
1548
|
-
};
|
|
1549
|
-
const se_TagList = (input, context) => {
|
|
1550
|
-
return input
|
|
1551
|
-
.filter((e) => e != null)
|
|
1552
|
-
.map((entry) => {
|
|
1553
|
-
return se_Tag(entry, context);
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
const se_TagMap = (input, context) => {
|
|
1557
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1558
|
-
if (value === null) {
|
|
1559
|
-
return acc;
|
|
1560
|
-
}
|
|
1561
|
-
acc[key] = value;
|
|
1562
|
-
return acc;
|
|
1563
|
-
}, {});
|
|
1564
|
-
};
|
|
1565
|
-
const se_UpdatePipeSourceActiveMQBrokerParameters = (input, context) => {
|
|
1566
|
-
return {
|
|
1567
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1568
|
-
...(input.Credentials != null && { Credentials: se_MQBrokerAccessCredentials(input.Credentials, context) }),
|
|
1569
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1570
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1571
|
-
}),
|
|
1572
|
-
};
|
|
1573
|
-
};
|
|
1574
|
-
const se_UpdatePipeSourceDynamoDBStreamParameters = (input, context) => {
|
|
1575
|
-
return {
|
|
1576
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1577
|
-
...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
|
|
1578
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1579
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1580
|
-
}),
|
|
1581
|
-
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1582
|
-
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1583
|
-
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1584
|
-
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1585
|
-
};
|
|
1586
|
-
};
|
|
1587
|
-
const se_UpdatePipeSourceKinesisStreamParameters = (input, context) => {
|
|
1588
|
-
return {
|
|
1589
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1590
|
-
...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
|
|
1591
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1592
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1593
|
-
}),
|
|
1594
|
-
...(input.MaximumRecordAgeInSeconds != null && { MaximumRecordAgeInSeconds: input.MaximumRecordAgeInSeconds }),
|
|
1595
|
-
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1596
|
-
...(input.OnPartialBatchItemFailure != null && { OnPartialBatchItemFailure: input.OnPartialBatchItemFailure }),
|
|
1597
|
-
...(input.ParallelizationFactor != null && { ParallelizationFactor: input.ParallelizationFactor }),
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
const se_UpdatePipeSourceManagedStreamingKafkaParameters = (input, context) => {
|
|
1601
|
-
return {
|
|
1602
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1603
|
-
...(input.Credentials != null && { Credentials: se_MSKAccessCredentials(input.Credentials, context) }),
|
|
1604
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1605
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1606
|
-
}),
|
|
1607
|
-
};
|
|
1608
|
-
};
|
|
1609
|
-
const se_UpdatePipeSourceParameters = (input, context) => {
|
|
1610
|
-
return {
|
|
1611
|
-
...(input.ActiveMQBrokerParameters != null && {
|
|
1612
|
-
ActiveMQBrokerParameters: se_UpdatePipeSourceActiveMQBrokerParameters(input.ActiveMQBrokerParameters, context),
|
|
1613
|
-
}),
|
|
1614
|
-
...(input.DynamoDBStreamParameters != null && {
|
|
1615
|
-
DynamoDBStreamParameters: se_UpdatePipeSourceDynamoDBStreamParameters(input.DynamoDBStreamParameters, context),
|
|
1616
|
-
}),
|
|
1617
|
-
...(input.FilterCriteria != null && { FilterCriteria: se_FilterCriteria(input.FilterCriteria, context) }),
|
|
1618
|
-
...(input.KinesisStreamParameters != null && {
|
|
1619
|
-
KinesisStreamParameters: se_UpdatePipeSourceKinesisStreamParameters(input.KinesisStreamParameters, context),
|
|
1620
|
-
}),
|
|
1621
|
-
...(input.ManagedStreamingKafkaParameters != null && {
|
|
1622
|
-
ManagedStreamingKafkaParameters: se_UpdatePipeSourceManagedStreamingKafkaParameters(input.ManagedStreamingKafkaParameters, context),
|
|
1623
|
-
}),
|
|
1624
|
-
...(input.RabbitMQBrokerParameters != null && {
|
|
1625
|
-
RabbitMQBrokerParameters: se_UpdatePipeSourceRabbitMQBrokerParameters(input.RabbitMQBrokerParameters, context),
|
|
1626
|
-
}),
|
|
1627
|
-
...(input.SelfManagedKafkaParameters != null && {
|
|
1628
|
-
SelfManagedKafkaParameters: se_UpdatePipeSourceSelfManagedKafkaParameters(input.SelfManagedKafkaParameters, context),
|
|
1629
|
-
}),
|
|
1630
|
-
...(input.SqsQueueParameters != null && {
|
|
1631
|
-
SqsQueueParameters: se_UpdatePipeSourceSqsQueueParameters(input.SqsQueueParameters, context),
|
|
1632
|
-
}),
|
|
1633
|
-
};
|
|
1634
|
-
};
|
|
1635
|
-
const se_UpdatePipeSourceRabbitMQBrokerParameters = (input, context) => {
|
|
1636
|
-
return {
|
|
1637
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1638
|
-
...(input.Credentials != null && { Credentials: se_MQBrokerAccessCredentials(input.Credentials, context) }),
|
|
1639
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1640
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1641
|
-
}),
|
|
1642
|
-
};
|
|
1643
|
-
};
|
|
1644
|
-
const se_UpdatePipeSourceSelfManagedKafkaParameters = (input, context) => {
|
|
1645
|
-
return {
|
|
1646
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1647
|
-
...(input.Credentials != null && {
|
|
1648
|
-
Credentials: se_SelfManagedKafkaAccessConfigurationCredentials(input.Credentials, context),
|
|
1649
|
-
}),
|
|
1650
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1651
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1652
|
-
}),
|
|
1653
|
-
...(input.ServerRootCaCertificate != null && { ServerRootCaCertificate: input.ServerRootCaCertificate }),
|
|
1654
|
-
...(input.Vpc != null && { Vpc: se_SelfManagedKafkaAccessConfigurationVpc(input.Vpc, context) }),
|
|
1655
|
-
};
|
|
1656
|
-
};
|
|
1657
|
-
const se_UpdatePipeSourceSqsQueueParameters = (input, context) => {
|
|
1658
|
-
return {
|
|
1659
|
-
...(input.BatchSize != null && { BatchSize: input.BatchSize }),
|
|
1660
|
-
...(input.MaximumBatchingWindowInSeconds != null && {
|
|
1661
|
-
MaximumBatchingWindowInSeconds: input.MaximumBatchingWindowInSeconds,
|
|
1662
|
-
}),
|
|
1663
|
-
};
|
|
1664
|
-
};
|
|
1665
|
-
const de_AwsVpcConfiguration = (output, context) => {
|
|
1666
|
-
return {
|
|
1667
|
-
AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
|
|
1668
|
-
SecurityGroups: output.SecurityGroups != null ? de_SecurityGroups(output.SecurityGroups, context) : undefined,
|
|
1669
|
-
Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
|
|
1670
|
-
};
|
|
1671
|
-
};
|
|
1672
|
-
const de_BatchArrayProperties = (output, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
Size: (0, smithy_client_1.expectInt32)(output.Size),
|
|
1675
|
-
};
|
|
1676
|
-
};
|
|
1677
|
-
const de_BatchContainerOverrides = (output, context) => {
|
|
1678
|
-
return {
|
|
1679
|
-
Command: output.Command != null ? de_StringList(output.Command, context) : undefined,
|
|
1680
|
-
Environment: output.Environment != null ? de_BatchEnvironmentVariableList(output.Environment, context) : undefined,
|
|
1681
|
-
InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
|
|
1682
|
-
ResourceRequirements: output.ResourceRequirements != null
|
|
1683
|
-
? de_BatchResourceRequirementsList(output.ResourceRequirements, context)
|
|
1684
|
-
: undefined,
|
|
1685
|
-
};
|
|
1686
|
-
};
|
|
1687
|
-
const de_BatchDependsOn = (output, context) => {
|
|
1688
|
-
const retVal = (output || [])
|
|
1689
|
-
.filter((e) => e != null)
|
|
1690
|
-
.map((entry) => {
|
|
1691
|
-
if (entry === null) {
|
|
1692
|
-
return null;
|
|
1693
|
-
}
|
|
1694
|
-
return de_BatchJobDependency(entry, context);
|
|
1695
|
-
});
|
|
1696
|
-
return retVal;
|
|
1697
|
-
};
|
|
1698
|
-
const de_BatchEnvironmentVariable = (output, context) => {
|
|
1699
|
-
return {
|
|
1700
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1701
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
|
-
const de_BatchEnvironmentVariableList = (output, context) => {
|
|
1705
|
-
const retVal = (output || [])
|
|
1706
|
-
.filter((e) => e != null)
|
|
1707
|
-
.map((entry) => {
|
|
1708
|
-
if (entry === null) {
|
|
1709
|
-
return null;
|
|
1710
|
-
}
|
|
1711
|
-
return de_BatchEnvironmentVariable(entry, context);
|
|
1712
|
-
});
|
|
1713
|
-
return retVal;
|
|
1714
|
-
};
|
|
1715
|
-
const de_BatchJobDependency = (output, context) => {
|
|
1716
|
-
return {
|
|
1717
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1718
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1719
|
-
};
|
|
1720
|
-
};
|
|
1721
|
-
const de_BatchParametersMap = (output, context) => {
|
|
1722
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1723
|
-
if (value === null) {
|
|
1724
|
-
return acc;
|
|
1725
|
-
}
|
|
1726
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1727
|
-
return acc;
|
|
1728
|
-
}, {});
|
|
1729
|
-
};
|
|
1730
|
-
const de_BatchResourceRequirement = (output, context) => {
|
|
1731
|
-
return {
|
|
1732
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1733
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1734
|
-
};
|
|
1735
|
-
};
|
|
1736
|
-
const de_BatchResourceRequirementsList = (output, context) => {
|
|
1737
|
-
const retVal = (output || [])
|
|
1738
|
-
.filter((e) => e != null)
|
|
1739
|
-
.map((entry) => {
|
|
1740
|
-
if (entry === null) {
|
|
1741
|
-
return null;
|
|
1742
|
-
}
|
|
1743
|
-
return de_BatchResourceRequirement(entry, context);
|
|
1744
|
-
});
|
|
1745
|
-
return retVal;
|
|
1746
|
-
};
|
|
1747
|
-
const de_BatchRetryStrategy = (output, context) => {
|
|
1748
|
-
return {
|
|
1749
|
-
Attempts: (0, smithy_client_1.expectInt32)(output.Attempts),
|
|
1750
|
-
};
|
|
1751
|
-
};
|
|
1752
|
-
const de_CapacityProviderStrategy = (output, context) => {
|
|
1753
|
-
const retVal = (output || [])
|
|
1754
|
-
.filter((e) => e != null)
|
|
1755
|
-
.map((entry) => {
|
|
1756
|
-
if (entry === null) {
|
|
1757
|
-
return null;
|
|
1758
|
-
}
|
|
1759
|
-
return de_CapacityProviderStrategyItem(entry, context);
|
|
1760
|
-
});
|
|
1761
|
-
return retVal;
|
|
1762
|
-
};
|
|
1763
|
-
const de_CapacityProviderStrategyItem = (output, context) => {
|
|
1764
|
-
return {
|
|
1765
|
-
base: (0, smithy_client_1.expectInt32)(output.base),
|
|
1766
|
-
capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
|
|
1767
|
-
weight: (0, smithy_client_1.expectInt32)(output.weight),
|
|
1768
|
-
};
|
|
1769
|
-
};
|
|
1770
|
-
const de_DeadLetterConfig = (output, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1773
|
-
};
|
|
1774
|
-
};
|
|
1775
|
-
const de_EcsContainerOverride = (output, context) => {
|
|
1776
|
-
return {
|
|
1777
|
-
Command: output.Command != null ? de_StringList(output.Command, context) : undefined,
|
|
1778
|
-
Cpu: (0, smithy_client_1.expectInt32)(output.Cpu),
|
|
1779
|
-
Environment: output.Environment != null ? de_EcsEnvironmentVariableList(output.Environment, context) : undefined,
|
|
1780
|
-
EnvironmentFiles: output.EnvironmentFiles != null ? de_EcsEnvironmentFileList(output.EnvironmentFiles, context) : undefined,
|
|
1781
|
-
Memory: (0, smithy_client_1.expectInt32)(output.Memory),
|
|
1782
|
-
MemoryReservation: (0, smithy_client_1.expectInt32)(output.MemoryReservation),
|
|
1783
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1784
|
-
ResourceRequirements: output.ResourceRequirements != null
|
|
1785
|
-
? de_EcsResourceRequirementsList(output.ResourceRequirements, context)
|
|
1786
|
-
: undefined,
|
|
1787
|
-
};
|
|
1788
|
-
};
|
|
1789
|
-
const de_EcsContainerOverrideList = (output, context) => {
|
|
1790
|
-
const retVal = (output || [])
|
|
1791
|
-
.filter((e) => e != null)
|
|
1792
|
-
.map((entry) => {
|
|
1793
|
-
if (entry === null) {
|
|
1794
|
-
return null;
|
|
1795
|
-
}
|
|
1796
|
-
return de_EcsContainerOverride(entry, context);
|
|
1797
|
-
});
|
|
1798
|
-
return retVal;
|
|
1799
|
-
};
|
|
1800
|
-
const de_EcsEnvironmentFile = (output, context) => {
|
|
1801
|
-
return {
|
|
1802
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1803
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1804
|
-
};
|
|
1805
|
-
};
|
|
1806
|
-
const de_EcsEnvironmentFileList = (output, context) => {
|
|
1807
|
-
const retVal = (output || [])
|
|
1808
|
-
.filter((e) => e != null)
|
|
1809
|
-
.map((entry) => {
|
|
1810
|
-
if (entry === null) {
|
|
1811
|
-
return null;
|
|
1812
|
-
}
|
|
1813
|
-
return de_EcsEnvironmentFile(entry, context);
|
|
1814
|
-
});
|
|
1815
|
-
return retVal;
|
|
1816
|
-
};
|
|
1817
|
-
const de_EcsEnvironmentVariable = (output, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
1820
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1821
|
-
};
|
|
1822
|
-
};
|
|
1823
|
-
const de_EcsEnvironmentVariableList = (output, context) => {
|
|
1824
|
-
const retVal = (output || [])
|
|
1825
|
-
.filter((e) => e != null)
|
|
1826
|
-
.map((entry) => {
|
|
1827
|
-
if (entry === null) {
|
|
1828
|
-
return null;
|
|
1829
|
-
}
|
|
1830
|
-
return de_EcsEnvironmentVariable(entry, context);
|
|
1831
|
-
});
|
|
1832
|
-
return retVal;
|
|
1833
|
-
};
|
|
1834
|
-
const de_EcsEphemeralStorage = (output, context) => {
|
|
1835
|
-
return {
|
|
1836
|
-
sizeInGiB: (0, smithy_client_1.expectInt32)(output.sizeInGiB),
|
|
1837
|
-
};
|
|
1838
|
-
};
|
|
1839
|
-
const de_EcsInferenceAcceleratorOverride = (output, context) => {
|
|
1840
|
-
return {
|
|
1841
|
-
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
1842
|
-
deviceType: (0, smithy_client_1.expectString)(output.deviceType),
|
|
1843
|
-
};
|
|
1844
|
-
};
|
|
1845
|
-
const de_EcsInferenceAcceleratorOverrideList = (output, context) => {
|
|
1846
|
-
const retVal = (output || [])
|
|
1847
|
-
.filter((e) => e != null)
|
|
1848
|
-
.map((entry) => {
|
|
1849
|
-
if (entry === null) {
|
|
1850
|
-
return null;
|
|
1851
|
-
}
|
|
1852
|
-
return de_EcsInferenceAcceleratorOverride(entry, context);
|
|
1853
|
-
});
|
|
1854
|
-
return retVal;
|
|
1855
|
-
};
|
|
1856
|
-
const de_EcsResourceRequirement = (output, context) => {
|
|
1857
|
-
return {
|
|
1858
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
1859
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1860
|
-
};
|
|
1861
|
-
};
|
|
1862
|
-
const de_EcsResourceRequirementsList = (output, context) => {
|
|
1863
|
-
const retVal = (output || [])
|
|
1864
|
-
.filter((e) => e != null)
|
|
1865
|
-
.map((entry) => {
|
|
1866
|
-
if (entry === null) {
|
|
1867
|
-
return null;
|
|
1868
|
-
}
|
|
1869
|
-
return de_EcsResourceRequirement(entry, context);
|
|
1870
|
-
});
|
|
1871
|
-
return retVal;
|
|
1872
|
-
};
|
|
1873
|
-
const de_EcsTaskOverride = (output, context) => {
|
|
1874
|
-
return {
|
|
1875
|
-
ContainerOverrides: output.ContainerOverrides != null ? de_EcsContainerOverrideList(output.ContainerOverrides, context) : undefined,
|
|
1876
|
-
Cpu: (0, smithy_client_1.expectString)(output.Cpu),
|
|
1877
|
-
EphemeralStorage: output.EphemeralStorage != null ? de_EcsEphemeralStorage(output.EphemeralStorage, context) : undefined,
|
|
1878
|
-
ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
|
|
1879
|
-
InferenceAcceleratorOverrides: output.InferenceAcceleratorOverrides != null
|
|
1880
|
-
? de_EcsInferenceAcceleratorOverrideList(output.InferenceAcceleratorOverrides, context)
|
|
1881
|
-
: undefined,
|
|
1882
|
-
Memory: (0, smithy_client_1.expectString)(output.Memory),
|
|
1883
|
-
TaskRoleArn: (0, smithy_client_1.expectString)(output.TaskRoleArn),
|
|
1884
|
-
};
|
|
1885
|
-
};
|
|
1886
|
-
const de_EventBridgeEventResourceList = (output, context) => {
|
|
1887
|
-
const retVal = (output || [])
|
|
1888
|
-
.filter((e) => e != null)
|
|
1889
|
-
.map((entry) => {
|
|
1890
|
-
if (entry === null) {
|
|
1891
|
-
return null;
|
|
1892
|
-
}
|
|
1893
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1894
|
-
});
|
|
1895
|
-
return retVal;
|
|
1896
|
-
};
|
|
1897
|
-
const de_Filter = (output, context) => {
|
|
1898
|
-
return {
|
|
1899
|
-
Pattern: (0, smithy_client_1.expectString)(output.Pattern),
|
|
1900
|
-
};
|
|
1901
|
-
};
|
|
1902
|
-
const de_FilterCriteria = (output, context) => {
|
|
1903
|
-
return {
|
|
1904
|
-
Filters: output.Filters != null ? de_FilterList(output.Filters, context) : undefined,
|
|
1905
|
-
};
|
|
1906
|
-
};
|
|
1907
|
-
const de_FilterList = (output, context) => {
|
|
1908
|
-
const retVal = (output || [])
|
|
1909
|
-
.filter((e) => e != null)
|
|
1910
|
-
.map((entry) => {
|
|
1911
|
-
if (entry === null) {
|
|
1912
|
-
return null;
|
|
1913
|
-
}
|
|
1914
|
-
return de_Filter(entry, context);
|
|
1915
|
-
});
|
|
1916
|
-
return retVal;
|
|
1917
|
-
};
|
|
1918
|
-
const de_HeaderParametersMap = (output, context) => {
|
|
1919
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1920
|
-
if (value === null) {
|
|
1921
|
-
return acc;
|
|
1922
|
-
}
|
|
1923
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1924
|
-
return acc;
|
|
1925
|
-
}, {});
|
|
1926
|
-
};
|
|
1927
|
-
const de_KafkaBootstrapServers = (output, context) => {
|
|
1928
|
-
const retVal = (output || [])
|
|
1929
|
-
.filter((e) => e != null)
|
|
1930
|
-
.map((entry) => {
|
|
1931
|
-
if (entry === null) {
|
|
1932
|
-
return null;
|
|
1933
|
-
}
|
|
1934
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1935
|
-
});
|
|
1936
|
-
return retVal;
|
|
1937
|
-
};
|
|
1938
|
-
const de_MQBrokerAccessCredentials = (output, context) => {
|
|
1939
|
-
if ((0, smithy_client_1.expectString)(output.BasicAuth) !== undefined) {
|
|
1940
|
-
return { BasicAuth: (0, smithy_client_1.expectString)(output.BasicAuth) };
|
|
1941
|
-
}
|
|
1942
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1943
|
-
};
|
|
1944
|
-
const de_MSKAccessCredentials = (output, context) => {
|
|
1945
|
-
if ((0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) !== undefined) {
|
|
1946
|
-
return { ClientCertificateTlsAuth: (0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) };
|
|
1947
|
-
}
|
|
1948
|
-
if ((0, smithy_client_1.expectString)(output.SaslScram512Auth) !== undefined) {
|
|
1949
|
-
return { SaslScram512Auth: (0, smithy_client_1.expectString)(output.SaslScram512Auth) };
|
|
1950
|
-
}
|
|
1951
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1952
|
-
};
|
|
1953
|
-
const de_NetworkConfiguration = (output, context) => {
|
|
1954
|
-
return {
|
|
1955
|
-
awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
|
-
const de_PathParameterList = (output, context) => {
|
|
1959
|
-
const retVal = (output || [])
|
|
1960
|
-
.filter((e) => e != null)
|
|
1961
|
-
.map((entry) => {
|
|
1962
|
-
if (entry === null) {
|
|
1963
|
-
return null;
|
|
1964
|
-
}
|
|
1965
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1966
|
-
});
|
|
1967
|
-
return retVal;
|
|
1968
|
-
};
|
|
1969
|
-
const de_Pipe = (output, context) => {
|
|
1970
|
-
return {
|
|
1971
|
-
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1972
|
-
CreationTime: output.CreationTime != null
|
|
1973
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1974
|
-
: undefined,
|
|
1975
|
-
CurrentState: (0, smithy_client_1.expectString)(output.CurrentState),
|
|
1976
|
-
DesiredState: (0, smithy_client_1.expectString)(output.DesiredState),
|
|
1977
|
-
Enrichment: (0, smithy_client_1.expectString)(output.Enrichment),
|
|
1978
|
-
LastModifiedTime: output.LastModifiedTime != null
|
|
1979
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
1980
|
-
: undefined,
|
|
1981
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1982
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1983
|
-
StateReason: (0, smithy_client_1.expectString)(output.StateReason),
|
|
1984
|
-
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
1985
|
-
};
|
|
1986
|
-
};
|
|
1987
|
-
const de_PipeEnrichmentHttpParameters = (output, context) => {
|
|
1988
|
-
return {
|
|
1989
|
-
HeaderParameters: output.HeaderParameters != null ? de_HeaderParametersMap(output.HeaderParameters, context) : undefined,
|
|
1990
|
-
PathParameterValues: output.PathParameterValues != null ? de_PathParameterList(output.PathParameterValues, context) : undefined,
|
|
1991
|
-
QueryStringParameters: output.QueryStringParameters != null
|
|
1992
|
-
? de_QueryStringParametersMap(output.QueryStringParameters, context)
|
|
1993
|
-
: undefined,
|
|
1994
|
-
};
|
|
1995
|
-
};
|
|
1996
|
-
const de_PipeEnrichmentParameters = (output, context) => {
|
|
1997
|
-
return {
|
|
1998
|
-
HttpParameters: output.HttpParameters != null ? de_PipeEnrichmentHttpParameters(output.HttpParameters, context) : undefined,
|
|
1999
|
-
InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
|
|
2000
|
-
};
|
|
2001
|
-
};
|
|
2002
|
-
const de_PipeList = (output, context) => {
|
|
2003
|
-
const retVal = (output || [])
|
|
2004
|
-
.filter((e) => e != null)
|
|
2005
|
-
.map((entry) => {
|
|
2006
|
-
if (entry === null) {
|
|
2007
|
-
return null;
|
|
2008
|
-
}
|
|
2009
|
-
return de_Pipe(entry, context);
|
|
2010
|
-
});
|
|
2011
|
-
return retVal;
|
|
2012
|
-
};
|
|
2013
|
-
const de_PipeSourceActiveMQBrokerParameters = (output, context) => {
|
|
2014
|
-
return {
|
|
2015
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2016
|
-
Credentials: output.Credentials != null ? de_MQBrokerAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context) : undefined,
|
|
2017
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2018
|
-
QueueName: (0, smithy_client_1.expectString)(output.QueueName),
|
|
2019
|
-
};
|
|
2020
|
-
};
|
|
2021
|
-
const de_PipeSourceDynamoDBStreamParameters = (output, context) => {
|
|
2022
|
-
return {
|
|
2023
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2024
|
-
DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
|
|
2025
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2026
|
-
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
2027
|
-
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
2028
|
-
OnPartialBatchItemFailure: (0, smithy_client_1.expectString)(output.OnPartialBatchItemFailure),
|
|
2029
|
-
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
2030
|
-
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2031
|
-
};
|
|
2032
|
-
};
|
|
2033
|
-
const de_PipeSourceKinesisStreamParameters = (output, context) => {
|
|
2034
|
-
return {
|
|
2035
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2036
|
-
DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
|
|
2037
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2038
|
-
MaximumRecordAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumRecordAgeInSeconds),
|
|
2039
|
-
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
2040
|
-
OnPartialBatchItemFailure: (0, smithy_client_1.expectString)(output.OnPartialBatchItemFailure),
|
|
2041
|
-
ParallelizationFactor: (0, smithy_client_1.expectInt32)(output.ParallelizationFactor),
|
|
2042
|
-
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2043
|
-
StartingPositionTimestamp: output.StartingPositionTimestamp != null
|
|
2044
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartingPositionTimestamp)))
|
|
2045
|
-
: undefined,
|
|
2046
|
-
};
|
|
2047
|
-
};
|
|
2048
|
-
const de_PipeSourceManagedStreamingKafkaParameters = (output, context) => {
|
|
2049
|
-
return {
|
|
2050
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2051
|
-
ConsumerGroupID: (0, smithy_client_1.expectString)(output.ConsumerGroupID),
|
|
2052
|
-
Credentials: output.Credentials != null ? de_MSKAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context) : undefined,
|
|
2053
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2054
|
-
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2055
|
-
TopicName: (0, smithy_client_1.expectString)(output.TopicName),
|
|
2056
|
-
};
|
|
2057
|
-
};
|
|
2058
|
-
const de_PipeSourceParameters = (output, context) => {
|
|
2059
|
-
return {
|
|
2060
|
-
ActiveMQBrokerParameters: output.ActiveMQBrokerParameters != null
|
|
2061
|
-
? de_PipeSourceActiveMQBrokerParameters(output.ActiveMQBrokerParameters, context)
|
|
2062
|
-
: undefined,
|
|
2063
|
-
DynamoDBStreamParameters: output.DynamoDBStreamParameters != null
|
|
2064
|
-
? de_PipeSourceDynamoDBStreamParameters(output.DynamoDBStreamParameters, context)
|
|
2065
|
-
: undefined,
|
|
2066
|
-
FilterCriteria: output.FilterCriteria != null ? de_FilterCriteria(output.FilterCriteria, context) : undefined,
|
|
2067
|
-
KinesisStreamParameters: output.KinesisStreamParameters != null
|
|
2068
|
-
? de_PipeSourceKinesisStreamParameters(output.KinesisStreamParameters, context)
|
|
2069
|
-
: undefined,
|
|
2070
|
-
ManagedStreamingKafkaParameters: output.ManagedStreamingKafkaParameters != null
|
|
2071
|
-
? de_PipeSourceManagedStreamingKafkaParameters(output.ManagedStreamingKafkaParameters, context)
|
|
2072
|
-
: undefined,
|
|
2073
|
-
RabbitMQBrokerParameters: output.RabbitMQBrokerParameters != null
|
|
2074
|
-
? de_PipeSourceRabbitMQBrokerParameters(output.RabbitMQBrokerParameters, context)
|
|
2075
|
-
: undefined,
|
|
2076
|
-
SelfManagedKafkaParameters: output.SelfManagedKafkaParameters != null
|
|
2077
|
-
? de_PipeSourceSelfManagedKafkaParameters(output.SelfManagedKafkaParameters, context)
|
|
2078
|
-
: undefined,
|
|
2079
|
-
SqsQueueParameters: output.SqsQueueParameters != null
|
|
2080
|
-
? de_PipeSourceSqsQueueParameters(output.SqsQueueParameters, context)
|
|
2081
|
-
: undefined,
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const de_PipeSourceRabbitMQBrokerParameters = (output, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2087
|
-
Credentials: output.Credentials != null ? de_MQBrokerAccessCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context) : undefined,
|
|
2088
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2089
|
-
QueueName: (0, smithy_client_1.expectString)(output.QueueName),
|
|
2090
|
-
VirtualHost: (0, smithy_client_1.expectString)(output.VirtualHost),
|
|
2091
|
-
};
|
|
2092
|
-
};
|
|
2093
|
-
const de_PipeSourceSelfManagedKafkaParameters = (output, context) => {
|
|
2094
|
-
return {
|
|
2095
|
-
AdditionalBootstrapServers: output.AdditionalBootstrapServers != null
|
|
2096
|
-
? de_KafkaBootstrapServers(output.AdditionalBootstrapServers, context)
|
|
2097
|
-
: undefined,
|
|
2098
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2099
|
-
ConsumerGroupID: (0, smithy_client_1.expectString)(output.ConsumerGroupID),
|
|
2100
|
-
Credentials: output.Credentials != null
|
|
2101
|
-
? de_SelfManagedKafkaAccessConfigurationCredentials((0, smithy_client_1.expectUnion)(output.Credentials), context)
|
|
2102
|
-
: undefined,
|
|
2103
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2104
|
-
ServerRootCaCertificate: (0, smithy_client_1.expectString)(output.ServerRootCaCertificate),
|
|
2105
|
-
StartingPosition: (0, smithy_client_1.expectString)(output.StartingPosition),
|
|
2106
|
-
TopicName: (0, smithy_client_1.expectString)(output.TopicName),
|
|
2107
|
-
Vpc: output.Vpc != null ? de_SelfManagedKafkaAccessConfigurationVpc(output.Vpc, context) : undefined,
|
|
2108
|
-
};
|
|
2109
|
-
};
|
|
2110
|
-
const de_PipeSourceSqsQueueParameters = (output, context) => {
|
|
2111
|
-
return {
|
|
2112
|
-
BatchSize: (0, smithy_client_1.expectInt32)(output.BatchSize),
|
|
2113
|
-
MaximumBatchingWindowInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumBatchingWindowInSeconds),
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
const de_PipeTargetBatchJobParameters = (output, context) => {
|
|
2117
|
-
return {
|
|
2118
|
-
ArrayProperties: output.ArrayProperties != null ? de_BatchArrayProperties(output.ArrayProperties, context) : undefined,
|
|
2119
|
-
ContainerOverrides: output.ContainerOverrides != null ? de_BatchContainerOverrides(output.ContainerOverrides, context) : undefined,
|
|
2120
|
-
DependsOn: output.DependsOn != null ? de_BatchDependsOn(output.DependsOn, context) : undefined,
|
|
2121
|
-
JobDefinition: (0, smithy_client_1.expectString)(output.JobDefinition),
|
|
2122
|
-
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
2123
|
-
Parameters: output.Parameters != null ? de_BatchParametersMap(output.Parameters, context) : undefined,
|
|
2124
|
-
RetryStrategy: output.RetryStrategy != null ? de_BatchRetryStrategy(output.RetryStrategy, context) : undefined,
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
const de_PipeTargetCloudWatchLogsParameters = (output, context) => {
|
|
2128
|
-
return {
|
|
2129
|
-
LogStreamName: (0, smithy_client_1.expectString)(output.LogStreamName),
|
|
2130
|
-
Timestamp: (0, smithy_client_1.expectString)(output.Timestamp),
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
const de_PipeTargetEcsTaskParameters = (output, context) => {
|
|
2134
|
-
return {
|
|
2135
|
-
CapacityProviderStrategy: output.CapacityProviderStrategy != null
|
|
2136
|
-
? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
|
|
2137
|
-
: undefined,
|
|
2138
|
-
EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
|
|
2139
|
-
EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
|
|
2140
|
-
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
2141
|
-
LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
|
|
2142
|
-
NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
|
|
2143
|
-
Overrides: output.Overrides != null ? de_EcsTaskOverride(output.Overrides, context) : undefined,
|
|
2144
|
-
PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
|
|
2145
|
-
PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
|
|
2146
|
-
PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
|
|
2147
|
-
PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
|
|
2148
|
-
ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
|
|
2149
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
2150
|
-
TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
|
|
2151
|
-
TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
|
|
2152
|
-
};
|
|
2153
|
-
};
|
|
2154
|
-
const de_PipeTargetEventBridgeEventBusParameters = (output, context) => {
|
|
2155
|
-
return {
|
|
2156
|
-
DetailType: (0, smithy_client_1.expectString)(output.DetailType),
|
|
2157
|
-
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2158
|
-
Resources: output.Resources != null ? de_EventBridgeEventResourceList(output.Resources, context) : undefined,
|
|
2159
|
-
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
2160
|
-
Time: (0, smithy_client_1.expectString)(output.Time),
|
|
2161
|
-
};
|
|
2162
|
-
};
|
|
2163
|
-
const de_PipeTargetHttpParameters = (output, context) => {
|
|
2164
|
-
return {
|
|
2165
|
-
HeaderParameters: output.HeaderParameters != null ? de_HeaderParametersMap(output.HeaderParameters, context) : undefined,
|
|
2166
|
-
PathParameterValues: output.PathParameterValues != null ? de_PathParameterList(output.PathParameterValues, context) : undefined,
|
|
2167
|
-
QueryStringParameters: output.QueryStringParameters != null
|
|
2168
|
-
? de_QueryStringParametersMap(output.QueryStringParameters, context)
|
|
2169
|
-
: undefined,
|
|
2170
|
-
};
|
|
2171
|
-
};
|
|
2172
|
-
const de_PipeTargetKinesisStreamParameters = (output, context) => {
|
|
2173
|
-
return {
|
|
2174
|
-
PartitionKey: (0, smithy_client_1.expectString)(output.PartitionKey),
|
|
2175
|
-
};
|
|
2176
|
-
};
|
|
2177
|
-
const de_PipeTargetLambdaFunctionParameters = (output, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
2180
|
-
};
|
|
2181
|
-
};
|
|
2182
|
-
const de_PipeTargetParameters = (output, context) => {
|
|
2183
|
-
return {
|
|
2184
|
-
BatchJobParameters: output.BatchJobParameters != null
|
|
2185
|
-
? de_PipeTargetBatchJobParameters(output.BatchJobParameters, context)
|
|
2186
|
-
: undefined,
|
|
2187
|
-
CloudWatchLogsParameters: output.CloudWatchLogsParameters != null
|
|
2188
|
-
? de_PipeTargetCloudWatchLogsParameters(output.CloudWatchLogsParameters, context)
|
|
2189
|
-
: undefined,
|
|
2190
|
-
EcsTaskParameters: output.EcsTaskParameters != null ? de_PipeTargetEcsTaskParameters(output.EcsTaskParameters, context) : undefined,
|
|
2191
|
-
EventBridgeEventBusParameters: output.EventBridgeEventBusParameters != null
|
|
2192
|
-
? de_PipeTargetEventBridgeEventBusParameters(output.EventBridgeEventBusParameters, context)
|
|
2193
|
-
: undefined,
|
|
2194
|
-
HttpParameters: output.HttpParameters != null ? de_PipeTargetHttpParameters(output.HttpParameters, context) : undefined,
|
|
2195
|
-
InputTemplate: (0, smithy_client_1.expectString)(output.InputTemplate),
|
|
2196
|
-
KinesisStreamParameters: output.KinesisStreamParameters != null
|
|
2197
|
-
? de_PipeTargetKinesisStreamParameters(output.KinesisStreamParameters, context)
|
|
2198
|
-
: undefined,
|
|
2199
|
-
LambdaFunctionParameters: output.LambdaFunctionParameters != null
|
|
2200
|
-
? de_PipeTargetLambdaFunctionParameters(output.LambdaFunctionParameters, context)
|
|
2201
|
-
: undefined,
|
|
2202
|
-
RedshiftDataParameters: output.RedshiftDataParameters != null
|
|
2203
|
-
? de_PipeTargetRedshiftDataParameters(output.RedshiftDataParameters, context)
|
|
2204
|
-
: undefined,
|
|
2205
|
-
SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
|
|
2206
|
-
? de_PipeTargetSageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
|
|
2207
|
-
: undefined,
|
|
2208
|
-
SqsQueueParameters: output.SqsQueueParameters != null
|
|
2209
|
-
? de_PipeTargetSqsQueueParameters(output.SqsQueueParameters, context)
|
|
2210
|
-
: undefined,
|
|
2211
|
-
StepFunctionStateMachineParameters: output.StepFunctionStateMachineParameters != null
|
|
2212
|
-
? de_PipeTargetStateMachineParameters(output.StepFunctionStateMachineParameters, context)
|
|
2213
|
-
: undefined,
|
|
2214
|
-
};
|
|
2215
|
-
};
|
|
2216
|
-
const de_PipeTargetRedshiftDataParameters = (output, context) => {
|
|
2217
|
-
return {
|
|
2218
|
-
Database: (0, smithy_client_1.expectString)(output.Database),
|
|
2219
|
-
DbUser: (0, smithy_client_1.expectString)(output.DbUser),
|
|
2220
|
-
SecretManagerArn: (0, smithy_client_1.expectString)(output.SecretManagerArn),
|
|
2221
|
-
Sqls: output.Sqls != null ? de_Sqls(output.Sqls, context) : undefined,
|
|
2222
|
-
StatementName: (0, smithy_client_1.expectString)(output.StatementName),
|
|
2223
|
-
WithEvent: (0, smithy_client_1.expectBoolean)(output.WithEvent),
|
|
2224
|
-
};
|
|
2225
|
-
};
|
|
2226
|
-
const de_PipeTargetSageMakerPipelineParameters = (output, context) => {
|
|
2227
|
-
return {
|
|
2228
|
-
PipelineParameterList: output.PipelineParameterList != null
|
|
2229
|
-
? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
|
|
2230
|
-
: undefined,
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
const de_PipeTargetSqsQueueParameters = (output, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
MessageDeduplicationId: (0, smithy_client_1.expectString)(output.MessageDeduplicationId),
|
|
2236
|
-
MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
|
|
2237
|
-
};
|
|
2238
|
-
};
|
|
2239
|
-
const de_PipeTargetStateMachineParameters = (output, context) => {
|
|
2240
|
-
return {
|
|
2241
|
-
InvocationType: (0, smithy_client_1.expectString)(output.InvocationType),
|
|
2242
|
-
};
|
|
2243
|
-
};
|
|
2244
|
-
const de_PlacementConstraint = (output, context) => {
|
|
2245
|
-
return {
|
|
2246
|
-
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
2247
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2248
|
-
};
|
|
2249
|
-
};
|
|
2250
|
-
const de_PlacementConstraints = (output, context) => {
|
|
2251
|
-
const retVal = (output || [])
|
|
2252
|
-
.filter((e) => e != null)
|
|
2253
|
-
.map((entry) => {
|
|
2254
|
-
if (entry === null) {
|
|
2255
|
-
return null;
|
|
2256
|
-
}
|
|
2257
|
-
return de_PlacementConstraint(entry, context);
|
|
2258
|
-
});
|
|
2259
|
-
return retVal;
|
|
2260
|
-
};
|
|
2261
|
-
const de_PlacementStrategies = (output, context) => {
|
|
2262
|
-
const retVal = (output || [])
|
|
2263
|
-
.filter((e) => e != null)
|
|
2264
|
-
.map((entry) => {
|
|
2265
|
-
if (entry === null) {
|
|
2266
|
-
return null;
|
|
2267
|
-
}
|
|
2268
|
-
return de_PlacementStrategy(entry, context);
|
|
2269
|
-
});
|
|
2270
|
-
return retVal;
|
|
2271
|
-
};
|
|
2272
|
-
const de_PlacementStrategy = (output, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
field: (0, smithy_client_1.expectString)(output.field),
|
|
2275
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
|
-
const de_QueryStringParametersMap = (output, context) => {
|
|
2279
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2280
|
-
if (value === null) {
|
|
2281
|
-
return acc;
|
|
2282
|
-
}
|
|
2283
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2284
|
-
return acc;
|
|
2285
|
-
}, {});
|
|
2286
|
-
};
|
|
2287
|
-
const de_SageMakerPipelineParameter = (output, context) => {
|
|
2288
|
-
return {
|
|
2289
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2290
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
const de_SageMakerPipelineParameterList = (output, context) => {
|
|
2294
|
-
const retVal = (output || [])
|
|
2295
|
-
.filter((e) => e != null)
|
|
2296
|
-
.map((entry) => {
|
|
2297
|
-
if (entry === null) {
|
|
2298
|
-
return null;
|
|
2299
|
-
}
|
|
2300
|
-
return de_SageMakerPipelineParameter(entry, context);
|
|
2301
|
-
});
|
|
2302
|
-
return retVal;
|
|
2303
|
-
};
|
|
2304
|
-
const de_SecurityGroupIds = (output, context) => {
|
|
2305
|
-
const retVal = (output || [])
|
|
2306
|
-
.filter((e) => e != null)
|
|
2307
|
-
.map((entry) => {
|
|
2308
|
-
if (entry === null) {
|
|
2309
|
-
return null;
|
|
2310
|
-
}
|
|
2311
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2312
|
-
});
|
|
2313
|
-
return retVal;
|
|
2314
|
-
};
|
|
2315
|
-
const de_SecurityGroups = (output, context) => {
|
|
2316
|
-
const retVal = (output || [])
|
|
2317
|
-
.filter((e) => e != null)
|
|
2318
|
-
.map((entry) => {
|
|
2319
|
-
if (entry === null) {
|
|
2320
|
-
return null;
|
|
2321
|
-
}
|
|
2322
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2323
|
-
});
|
|
2324
|
-
return retVal;
|
|
2325
|
-
};
|
|
2326
|
-
const de_SelfManagedKafkaAccessConfigurationCredentials = (output, context) => {
|
|
2327
|
-
if ((0, smithy_client_1.expectString)(output.BasicAuth) !== undefined) {
|
|
2328
|
-
return { BasicAuth: (0, smithy_client_1.expectString)(output.BasicAuth) };
|
|
2329
|
-
}
|
|
2330
|
-
if ((0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) !== undefined) {
|
|
2331
|
-
return { ClientCertificateTlsAuth: (0, smithy_client_1.expectString)(output.ClientCertificateTlsAuth) };
|
|
2332
|
-
}
|
|
2333
|
-
if ((0, smithy_client_1.expectString)(output.SaslScram256Auth) !== undefined) {
|
|
2334
|
-
return { SaslScram256Auth: (0, smithy_client_1.expectString)(output.SaslScram256Auth) };
|
|
2335
|
-
}
|
|
2336
|
-
if ((0, smithy_client_1.expectString)(output.SaslScram512Auth) !== undefined) {
|
|
2337
|
-
return { SaslScram512Auth: (0, smithy_client_1.expectString)(output.SaslScram512Auth) };
|
|
2338
|
-
}
|
|
2339
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2340
|
-
};
|
|
2341
|
-
const de_SelfManagedKafkaAccessConfigurationVpc = (output, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
SecurityGroup: output.SecurityGroup != null ? de_SecurityGroupIds(output.SecurityGroup, context) : undefined,
|
|
2344
|
-
Subnets: output.Subnets != null ? de_SubnetIds(output.Subnets, context) : undefined,
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
const de_Sqls = (output, context) => {
|
|
2348
|
-
const retVal = (output || [])
|
|
2349
|
-
.filter((e) => e != null)
|
|
2350
|
-
.map((entry) => {
|
|
2351
|
-
if (entry === null) {
|
|
2352
|
-
return null;
|
|
2353
|
-
}
|
|
2354
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2355
|
-
});
|
|
2356
|
-
return retVal;
|
|
2357
|
-
};
|
|
2358
|
-
const de_StringList = (output, context) => {
|
|
2359
|
-
const retVal = (output || [])
|
|
2360
|
-
.filter((e) => e != null)
|
|
2361
|
-
.map((entry) => {
|
|
2362
|
-
if (entry === null) {
|
|
2363
|
-
return null;
|
|
2364
|
-
}
|
|
2365
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2366
|
-
});
|
|
2367
|
-
return retVal;
|
|
2368
|
-
};
|
|
2369
|
-
const de_SubnetIds = (output, context) => {
|
|
2370
|
-
const retVal = (output || [])
|
|
2371
|
-
.filter((e) => e != null)
|
|
2372
|
-
.map((entry) => {
|
|
2373
|
-
if (entry === null) {
|
|
2374
|
-
return null;
|
|
2375
|
-
}
|
|
2376
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2377
|
-
});
|
|
2378
|
-
return retVal;
|
|
2379
|
-
};
|
|
2380
|
-
const de_Subnets = (output, context) => {
|
|
2381
|
-
const retVal = (output || [])
|
|
2382
|
-
.filter((e) => e != null)
|
|
2383
|
-
.map((entry) => {
|
|
2384
|
-
if (entry === null) {
|
|
2385
|
-
return null;
|
|
2386
|
-
}
|
|
2387
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2388
|
-
});
|
|
2389
|
-
return retVal;
|
|
2390
|
-
};
|
|
2391
|
-
const de_Tag = (output, context) => {
|
|
2392
|
-
return {
|
|
2393
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2394
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2395
|
-
};
|
|
2396
|
-
};
|
|
2397
|
-
const de_TagList = (output, context) => {
|
|
2398
|
-
const retVal = (output || [])
|
|
2399
|
-
.filter((e) => e != null)
|
|
2400
|
-
.map((entry) => {
|
|
2401
|
-
if (entry === null) {
|
|
2402
|
-
return null;
|
|
2403
|
-
}
|
|
2404
|
-
return de_Tag(entry, context);
|
|
2405
|
-
});
|
|
2406
|
-
return retVal;
|
|
2407
|
-
};
|
|
2408
|
-
const de_TagMap = (output, context) => {
|
|
2409
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2410
|
-
if (value === null) {
|
|
2411
|
-
return acc;
|
|
2412
|
-
}
|
|
2413
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2414
|
-
return acc;
|
|
2415
|
-
}, {});
|
|
2416
|
-
};
|
|
2417
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
2418
|
-
return {
|
|
2419
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2420
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2421
|
-
};
|
|
2422
|
-
};
|
|
2423
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
2424
|
-
const retVal = (output || [])
|
|
2425
|
-
.filter((e) => e != null)
|
|
2426
|
-
.map((entry) => {
|
|
2427
|
-
if (entry === null) {
|
|
2428
|
-
return null;
|
|
2429
|
-
}
|
|
2430
|
-
return de_ValidationExceptionField(entry, context);
|
|
2431
|
-
});
|
|
2432
|
-
return retVal;
|
|
2433
|
-
};
|
|
2434
864
|
const deserializeMetadata = (output) => ({
|
|
2435
865
|
httpStatusCode: output.statusCode,
|
|
2436
866
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|