@aws-sdk/client-pipes 3.310.0 → 3.315.0

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