@aws-sdk/client-ivs-realtime 3.312.0 → 3.316.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,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { IVSRealTimeServiceException as __BaseException } from "../models/IVSRealTimeServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, PendingVerification, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateParticipantTokenCommand = async (input, context) => {
@@ -9,13 +9,13 @@ export const se_CreateParticipantTokenCommand = async (input, context) => {
9
9
  };
10
10
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateParticipantToken";
11
11
  let body;
12
- body = JSON.stringify({
13
- ...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
14
- ...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
15
- ...(input.duration != null && { duration: input.duration }),
16
- ...(input.stageArn != null && { stageArn: input.stageArn }),
17
- ...(input.userId != null && { userId: input.userId }),
18
- });
12
+ body = JSON.stringify(take(input, {
13
+ attributes: (_) => _json(_),
14
+ capabilities: (_) => _json(_),
15
+ duration: [],
16
+ stageArn: [],
17
+ userId: [],
18
+ }));
19
19
  return new __HttpRequest({
20
20
  protocol,
21
21
  hostname,
@@ -33,13 +33,11 @@ export const se_CreateStageCommand = async (input, context) => {
33
33
  };
34
34
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateStage";
35
35
  let body;
36
- body = JSON.stringify({
37
- ...(input.name != null && { name: input.name }),
38
- ...(input.participantTokenConfigurations != null && {
39
- participantTokenConfigurations: se_ParticipantTokenConfigurations(input.participantTokenConfigurations, context),
40
- }),
41
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
42
- });
36
+ body = JSON.stringify(take(input, {
37
+ name: [],
38
+ participantTokenConfigurations: (_) => _json(_),
39
+ tags: (_) => _json(_),
40
+ }));
43
41
  return new __HttpRequest({
44
42
  protocol,
45
43
  hostname,
@@ -57,9 +55,9 @@ export const se_DeleteStageCommand = async (input, context) => {
57
55
  };
58
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteStage";
59
57
  let body;
60
- body = JSON.stringify({
61
- ...(input.arn != null && { arn: input.arn }),
62
- });
58
+ body = JSON.stringify(take(input, {
59
+ arn: [],
60
+ }));
63
61
  return new __HttpRequest({
64
62
  protocol,
65
63
  hostname,
@@ -77,11 +75,11 @@ export const se_DisconnectParticipantCommand = async (input, context) => {
77
75
  };
78
76
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisconnectParticipant";
79
77
  let body;
80
- body = JSON.stringify({
81
- ...(input.participantId != null && { participantId: input.participantId }),
82
- ...(input.reason != null && { reason: input.reason }),
83
- ...(input.stageArn != null && { stageArn: input.stageArn }),
84
- });
78
+ body = JSON.stringify(take(input, {
79
+ participantId: [],
80
+ reason: [],
81
+ stageArn: [],
82
+ }));
85
83
  return new __HttpRequest({
86
84
  protocol,
87
85
  hostname,
@@ -99,9 +97,9 @@ export const se_GetStageCommand = async (input, context) => {
99
97
  };
100
98
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/GetStage";
101
99
  let body;
102
- body = JSON.stringify({
103
- ...(input.arn != null && { arn: input.arn }),
104
- });
100
+ body = JSON.stringify(take(input, {
101
+ arn: [],
102
+ }));
105
103
  return new __HttpRequest({
106
104
  protocol,
107
105
  hostname,
@@ -119,10 +117,10 @@ export const se_ListStagesCommand = async (input, context) => {
119
117
  };
120
118
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListStages";
121
119
  let body;
122
- body = JSON.stringify({
123
- ...(input.maxResults != null && { maxResults: input.maxResults }),
124
- ...(input.nextToken != null && { nextToken: input.nextToken }),
125
- });
120
+ body = JSON.stringify(take(input, {
121
+ maxResults: [],
122
+ nextToken: [],
123
+ }));
126
124
  return new __HttpRequest({
127
125
  protocol,
128
126
  hostname,
@@ -157,9 +155,9 @@ export const se_TagResourceCommand = async (input, context) => {
157
155
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
158
156
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
159
157
  let body;
160
- body = JSON.stringify({
161
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
162
- });
158
+ body = JSON.stringify(take(input, {
159
+ tags: (_) => _json(_),
160
+ }));
163
161
  return new __HttpRequest({
164
162
  protocol,
165
163
  hostname,
@@ -200,10 +198,10 @@ export const se_UpdateStageCommand = async (input, context) => {
200
198
  };
201
199
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateStage";
202
200
  let body;
203
- body = JSON.stringify({
204
- ...(input.arn != null && { arn: input.arn }),
205
- ...(input.name != null && { name: input.name }),
206
- });
201
+ body = JSON.stringify(take(input, {
202
+ arn: [],
203
+ name: [],
204
+ }));
207
205
  return new __HttpRequest({
208
206
  protocol,
209
207
  hostname,
@@ -222,9 +220,10 @@ export const de_CreateParticipantTokenCommand = async (output, context) => {
222
220
  $metadata: deserializeMetadata(output),
223
221
  });
224
222
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
225
- if (data.participantToken != null) {
226
- contents.participantToken = de_ParticipantToken(data.participantToken, context);
227
- }
223
+ const doc = take(data, {
224
+ participantToken: (_) => de_ParticipantToken(_, context),
225
+ });
226
+ Object.assign(contents, doc);
228
227
  return contents;
229
228
  };
230
229
  const de_CreateParticipantTokenCommandError = async (output, context) => {
@@ -251,10 +250,9 @@ const de_CreateParticipantTokenCommandError = async (output, context) => {
251
250
  throw await de_ValidationExceptionRes(parsedOutput, context);
252
251
  default:
253
252
  const parsedBody = parsedOutput.body;
254
- throwDefaultError({
253
+ return throwDefaultError({
255
254
  output,
256
255
  parsedBody,
257
- exceptionCtor: __BaseException,
258
256
  errorCode,
259
257
  });
260
258
  }
@@ -267,12 +265,11 @@ export const de_CreateStageCommand = async (output, context) => {
267
265
  $metadata: deserializeMetadata(output),
268
266
  });
269
267
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
270
- if (data.participantTokens != null) {
271
- contents.participantTokens = de_ParticipantTokenList(data.participantTokens, context);
272
- }
273
- if (data.stage != null) {
274
- contents.stage = de_Stage(data.stage, context);
275
- }
268
+ const doc = take(data, {
269
+ participantTokens: (_) => de_ParticipantTokenList(_, context),
270
+ stage: _json,
271
+ });
272
+ Object.assign(contents, doc);
276
273
  return contents;
277
274
  };
278
275
  const de_CreateStageCommandError = async (output, context) => {
@@ -296,10 +293,9 @@ const de_CreateStageCommandError = async (output, context) => {
296
293
  throw await de_ValidationExceptionRes(parsedOutput, context);
297
294
  default:
298
295
  const parsedBody = parsedOutput.body;
299
- throwDefaultError({
296
+ return throwDefaultError({
300
297
  output,
301
298
  parsedBody,
302
- exceptionCtor: __BaseException,
303
299
  errorCode,
304
300
  });
305
301
  }
@@ -338,10 +334,9 @@ const de_DeleteStageCommandError = async (output, context) => {
338
334
  throw await de_ValidationExceptionRes(parsedOutput, context);
339
335
  default:
340
336
  const parsedBody = parsedOutput.body;
341
- throwDefaultError({
337
+ return throwDefaultError({
342
338
  output,
343
339
  parsedBody,
344
- exceptionCtor: __BaseException,
345
340
  errorCode,
346
341
  });
347
342
  }
@@ -377,10 +372,9 @@ const de_DisconnectParticipantCommandError = async (output, context) => {
377
372
  throw await de_ValidationExceptionRes(parsedOutput, context);
378
373
  default:
379
374
  const parsedBody = parsedOutput.body;
380
- throwDefaultError({
375
+ return throwDefaultError({
381
376
  output,
382
377
  parsedBody,
383
- exceptionCtor: __BaseException,
384
378
  errorCode,
385
379
  });
386
380
  }
@@ -393,9 +387,10 @@ export const de_GetStageCommand = async (output, context) => {
393
387
  $metadata: deserializeMetadata(output),
394
388
  });
395
389
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
396
- if (data.stage != null) {
397
- contents.stage = de_Stage(data.stage, context);
398
- }
390
+ const doc = take(data, {
391
+ stage: _json,
392
+ });
393
+ Object.assign(contents, doc);
399
394
  return contents;
400
395
  };
401
396
  const de_GetStageCommandError = async (output, context) => {
@@ -416,10 +411,9 @@ const de_GetStageCommandError = async (output, context) => {
416
411
  throw await de_ValidationExceptionRes(parsedOutput, context);
417
412
  default:
418
413
  const parsedBody = parsedOutput.body;
419
- throwDefaultError({
414
+ return throwDefaultError({
420
415
  output,
421
416
  parsedBody,
422
- exceptionCtor: __BaseException,
423
417
  errorCode,
424
418
  });
425
419
  }
@@ -432,12 +426,11 @@ export const de_ListStagesCommand = async (output, context) => {
432
426
  $metadata: deserializeMetadata(output),
433
427
  });
434
428
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
435
- if (data.nextToken != null) {
436
- contents.nextToken = __expectString(data.nextToken);
437
- }
438
- if (data.stages != null) {
439
- contents.stages = de_StageSummaryList(data.stages, context);
440
- }
429
+ const doc = take(data, {
430
+ nextToken: __expectString,
431
+ stages: _json,
432
+ });
433
+ Object.assign(contents, doc);
441
434
  return contents;
442
435
  };
443
436
  const de_ListStagesCommandError = async (output, context) => {
@@ -458,10 +451,9 @@ const de_ListStagesCommandError = async (output, context) => {
458
451
  throw await de_ValidationExceptionRes(parsedOutput, context);
459
452
  default:
460
453
  const parsedBody = parsedOutput.body;
461
- throwDefaultError({
454
+ return throwDefaultError({
462
455
  output,
463
456
  parsedBody,
464
- exceptionCtor: __BaseException,
465
457
  errorCode,
466
458
  });
467
459
  }
@@ -474,9 +466,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
474
466
  $metadata: deserializeMetadata(output),
475
467
  });
476
468
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
477
- if (data.tags != null) {
478
- contents.tags = de_Tags(data.tags, context);
479
- }
469
+ const doc = take(data, {
470
+ tags: _json,
471
+ });
472
+ Object.assign(contents, doc);
480
473
  return contents;
481
474
  };
482
475
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -497,10 +490,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
497
490
  throw await de_ValidationExceptionRes(parsedOutput, context);
498
491
  default:
499
492
  const parsedBody = parsedOutput.body;
500
- throwDefaultError({
493
+ return throwDefaultError({
501
494
  output,
502
495
  parsedBody,
503
- exceptionCtor: __BaseException,
504
496
  errorCode,
505
497
  });
506
498
  }
@@ -533,10 +525,9 @@ const de_TagResourceCommandError = async (output, context) => {
533
525
  throw await de_ValidationExceptionRes(parsedOutput, context);
534
526
  default:
535
527
  const parsedBody = parsedOutput.body;
536
- throwDefaultError({
528
+ return throwDefaultError({
537
529
  output,
538
530
  parsedBody,
539
- exceptionCtor: __BaseException,
540
531
  errorCode,
541
532
  });
542
533
  }
@@ -569,10 +560,9 @@ const de_UntagResourceCommandError = async (output, context) => {
569
560
  throw await de_ValidationExceptionRes(parsedOutput, context);
570
561
  default:
571
562
  const parsedBody = parsedOutput.body;
572
- throwDefaultError({
563
+ return throwDefaultError({
573
564
  output,
574
565
  parsedBody,
575
- exceptionCtor: __BaseException,
576
566
  errorCode,
577
567
  });
578
568
  }
@@ -585,9 +575,10 @@ export const de_UpdateStageCommand = async (output, context) => {
585
575
  $metadata: deserializeMetadata(output),
586
576
  });
587
577
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
588
- if (data.stage != null) {
589
- contents.stage = de_Stage(data.stage, context);
590
- }
578
+ const doc = take(data, {
579
+ stage: _json,
580
+ });
581
+ Object.assign(contents, doc);
591
582
  return contents;
592
583
  };
593
584
  const de_UpdateStageCommandError = async (output, context) => {
@@ -614,21 +605,21 @@ const de_UpdateStageCommandError = async (output, context) => {
614
605
  throw await de_ValidationExceptionRes(parsedOutput, context);
615
606
  default:
616
607
  const parsedBody = parsedOutput.body;
617
- throwDefaultError({
608
+ return throwDefaultError({
618
609
  output,
619
610
  parsedBody,
620
- exceptionCtor: __BaseException,
621
611
  errorCode,
622
612
  });
623
613
  }
624
614
  };
625
- const map = __map;
615
+ const throwDefaultError = withBaseException(__BaseException);
626
616
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
627
617
  const contents = map({});
628
618
  const data = parsedOutput.body;
629
- if (data.exceptionMessage != null) {
630
- contents.exceptionMessage = __expectString(data.exceptionMessage);
631
- }
619
+ const doc = take(data, {
620
+ exceptionMessage: __expectString,
621
+ });
622
+ Object.assign(contents, doc);
632
623
  const exception = new AccessDeniedException({
633
624
  $metadata: deserializeMetadata(parsedOutput),
634
625
  ...contents,
@@ -638,9 +629,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
638
629
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
639
630
  const contents = map({});
640
631
  const data = parsedOutput.body;
641
- if (data.exceptionMessage != null) {
642
- contents.exceptionMessage = __expectString(data.exceptionMessage);
643
- }
632
+ const doc = take(data, {
633
+ exceptionMessage: __expectString,
634
+ });
635
+ Object.assign(contents, doc);
644
636
  const exception = new ConflictException({
645
637
  $metadata: deserializeMetadata(parsedOutput),
646
638
  ...contents,
@@ -650,9 +642,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
650
642
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
651
643
  const contents = map({});
652
644
  const data = parsedOutput.body;
653
- if (data.exceptionMessage != null) {
654
- contents.exceptionMessage = __expectString(data.exceptionMessage);
655
- }
645
+ const doc = take(data, {
646
+ exceptionMessage: __expectString,
647
+ });
648
+ Object.assign(contents, doc);
656
649
  const exception = new InternalServerException({
657
650
  $metadata: deserializeMetadata(parsedOutput),
658
651
  ...contents,
@@ -662,9 +655,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
662
655
  const de_PendingVerificationRes = async (parsedOutput, context) => {
663
656
  const contents = map({});
664
657
  const data = parsedOutput.body;
665
- if (data.exceptionMessage != null) {
666
- contents.exceptionMessage = __expectString(data.exceptionMessage);
667
- }
658
+ const doc = take(data, {
659
+ exceptionMessage: __expectString,
660
+ });
661
+ Object.assign(contents, doc);
668
662
  const exception = new PendingVerification({
669
663
  $metadata: deserializeMetadata(parsedOutput),
670
664
  ...contents,
@@ -674,9 +668,10 @@ const de_PendingVerificationRes = async (parsedOutput, context) => {
674
668
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
675
669
  const contents = map({});
676
670
  const data = parsedOutput.body;
677
- if (data.exceptionMessage != null) {
678
- contents.exceptionMessage = __expectString(data.exceptionMessage);
679
- }
671
+ const doc = take(data, {
672
+ exceptionMessage: __expectString,
673
+ });
674
+ Object.assign(contents, doc);
680
675
  const exception = new ResourceNotFoundException({
681
676
  $metadata: deserializeMetadata(parsedOutput),
682
677
  ...contents,
@@ -686,9 +681,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
686
681
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
687
682
  const contents = map({});
688
683
  const data = parsedOutput.body;
689
- if (data.exceptionMessage != null) {
690
- contents.exceptionMessage = __expectString(data.exceptionMessage);
691
- }
684
+ const doc = take(data, {
685
+ exceptionMessage: __expectString,
686
+ });
687
+ Object.assign(contents, doc);
692
688
  const exception = new ServiceQuotaExceededException({
693
689
  $metadata: deserializeMetadata(parsedOutput),
694
690
  ...contents,
@@ -698,135 +694,35 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
698
694
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
699
695
  const contents = map({});
700
696
  const data = parsedOutput.body;
701
- if (data.exceptionMessage != null) {
702
- contents.exceptionMessage = __expectString(data.exceptionMessage);
703
- }
697
+ const doc = take(data, {
698
+ exceptionMessage: __expectString,
699
+ });
700
+ Object.assign(contents, doc);
704
701
  const exception = new ValidationException({
705
702
  $metadata: deserializeMetadata(parsedOutput),
706
703
  ...contents,
707
704
  });
708
705
  return __decorateServiceException(exception, parsedOutput.body);
709
706
  };
710
- const se_ParticipantTokenAttributes = (input, context) => {
711
- return Object.entries(input).reduce((acc, [key, value]) => {
712
- if (value === null) {
713
- return acc;
714
- }
715
- acc[key] = value;
716
- return acc;
717
- }, {});
718
- };
719
- const se_ParticipantTokenCapabilities = (input, context) => {
720
- return input
721
- .filter((e) => e != null)
722
- .map((entry) => {
723
- return entry;
724
- });
725
- };
726
- const se_ParticipantTokenConfiguration = (input, context) => {
727
- return {
728
- ...(input.attributes != null && { attributes: se_ParticipantTokenAttributes(input.attributes, context) }),
729
- ...(input.capabilities != null && { capabilities: se_ParticipantTokenCapabilities(input.capabilities, context) }),
730
- ...(input.duration != null && { duration: input.duration }),
731
- ...(input.userId != null && { userId: input.userId }),
732
- };
733
- };
734
- const se_ParticipantTokenConfigurations = (input, context) => {
735
- return input
736
- .filter((e) => e != null)
737
- .map((entry) => {
738
- return se_ParticipantTokenConfiguration(entry, context);
739
- });
740
- };
741
- const se_Tags = (input, context) => {
742
- return Object.entries(input).reduce((acc, [key, value]) => {
743
- if (value === null) {
744
- return acc;
745
- }
746
- acc[key] = value;
747
- return acc;
748
- }, {});
749
- };
750
707
  const de_ParticipantToken = (output, context) => {
751
- return {
752
- attributes: output.attributes != null ? de_ParticipantTokenAttributes(output.attributes, context) : undefined,
753
- capabilities: output.capabilities != null ? de_ParticipantTokenCapabilities(output.capabilities, context) : undefined,
754
- duration: __expectInt32(output.duration),
755
- expirationTime: output.expirationTime != null
756
- ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.expirationTime))
757
- : undefined,
758
- participantId: __expectString(output.participantId),
759
- token: __expectString(output.token),
760
- userId: __expectString(output.userId),
761
- };
762
- };
763
- const de_ParticipantTokenAttributes = (output, context) => {
764
- return Object.entries(output).reduce((acc, [key, value]) => {
765
- if (value === null) {
766
- return acc;
767
- }
768
- acc[key] = __expectString(value);
769
- return acc;
770
- }, {});
771
- };
772
- const de_ParticipantTokenCapabilities = (output, context) => {
773
- const retVal = (output || [])
774
- .filter((e) => e != null)
775
- .map((entry) => {
776
- if (entry === null) {
777
- return null;
778
- }
779
- return __expectString(entry);
708
+ return take(output, {
709
+ attributes: _json,
710
+ capabilities: _json,
711
+ duration: __expectInt32,
712
+ expirationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
713
+ participantId: __expectString,
714
+ token: __expectString,
715
+ userId: __expectString,
780
716
  });
781
- return retVal;
782
717
  };
783
718
  const de_ParticipantTokenList = (output, context) => {
784
719
  const retVal = (output || [])
785
720
  .filter((e) => e != null)
786
721
  .map((entry) => {
787
- if (entry === null) {
788
- return null;
789
- }
790
722
  return de_ParticipantToken(entry, context);
791
723
  });
792
724
  return retVal;
793
725
  };
794
- const de_Stage = (output, context) => {
795
- return {
796
- activeSessionId: __expectString(output.activeSessionId),
797
- arn: __expectString(output.arn),
798
- name: __expectString(output.name),
799
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
800
- };
801
- };
802
- const de_StageSummary = (output, context) => {
803
- return {
804
- activeSessionId: __expectString(output.activeSessionId),
805
- arn: __expectString(output.arn),
806
- name: __expectString(output.name),
807
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
808
- };
809
- };
810
- const de_StageSummaryList = (output, context) => {
811
- const retVal = (output || [])
812
- .filter((e) => e != null)
813
- .map((entry) => {
814
- if (entry === null) {
815
- return null;
816
- }
817
- return de_StageSummary(entry, context);
818
- });
819
- return retVal;
820
- };
821
- const de_Tags = (output, context) => {
822
- return Object.entries(output).reduce((acc, [key, value]) => {
823
- if (value === null) {
824
- return acc;
825
- }
826
- acc[key] = __expectString(value);
827
- return acc;
828
- }, {});
829
- };
830
726
  const deserializeMetadata = (output) => ({
831
727
  httpStatusCode: output.statusCode,
832
728
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],