@aws-sdk/client-mediapackage-vod 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,5 +1,5 @@
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, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { MediaPackageVodServiceException as __BaseException } from "../models/MediaPackageVodServiceException";
4
4
  import { ForbiddenException, InternalServerErrorException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, UnprocessableEntityException, } from "../models/models_0";
5
5
  export const se_ConfigureLogsCommand = async (input, context) => {
@@ -10,9 +10,9 @@ export const se_ConfigureLogsCommand = async (input, context) => {
10
10
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}/configure_logs";
11
11
  resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
12
12
  let body;
13
- body = JSON.stringify({
14
- ...(input.EgressAccessLogs != null && { egressAccessLogs: se_EgressAccessLogs(input.EgressAccessLogs, context) }),
15
- });
13
+ body = JSON.stringify(take(input, {
14
+ egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
15
+ }));
16
16
  return new __HttpRequest({
17
17
  protocol,
18
18
  hostname,
@@ -30,14 +30,14 @@ export const se_CreateAssetCommand = async (input, context) => {
30
30
  };
31
31
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assets";
32
32
  let body;
33
- body = JSON.stringify({
34
- ...(input.Id != null && { id: input.Id }),
35
- ...(input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId }),
36
- ...(input.ResourceId != null && { resourceId: input.ResourceId }),
37
- ...(input.SourceArn != null && { sourceArn: input.SourceArn }),
38
- ...(input.SourceRoleArn != null && { sourceRoleArn: input.SourceRoleArn }),
39
- ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
40
- });
33
+ body = JSON.stringify(take(input, {
34
+ id: [, , `Id`],
35
+ packagingGroupId: [, , `PackagingGroupId`],
36
+ resourceId: [, , `ResourceId`],
37
+ sourceArn: [, , `SourceArn`],
38
+ sourceRoleArn: [, , `SourceRoleArn`],
39
+ tags: [, (_) => _json(_), `Tags`],
40
+ }));
41
41
  return new __HttpRequest({
42
42
  protocol,
43
43
  hostname,
@@ -55,15 +55,15 @@ export const se_CreatePackagingConfigurationCommand = async (input, context) =>
55
55
  };
56
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_configurations";
57
57
  let body;
58
- body = JSON.stringify({
59
- ...(input.CmafPackage != null && { cmafPackage: se_CmafPackage(input.CmafPackage, context) }),
60
- ...(input.DashPackage != null && { dashPackage: se_DashPackage(input.DashPackage, context) }),
61
- ...(input.HlsPackage != null && { hlsPackage: se_HlsPackage(input.HlsPackage, context) }),
62
- ...(input.Id != null && { id: input.Id }),
63
- ...(input.MssPackage != null && { mssPackage: se_MssPackage(input.MssPackage, context) }),
64
- ...(input.PackagingGroupId != null && { packagingGroupId: input.PackagingGroupId }),
65
- ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
66
- });
58
+ body = JSON.stringify(take(input, {
59
+ cmafPackage: [, (_) => se_CmafPackage(_, context), `CmafPackage`],
60
+ dashPackage: [, (_) => se_DashPackage(_, context), `DashPackage`],
61
+ hlsPackage: [, (_) => se_HlsPackage(_, context), `HlsPackage`],
62
+ id: [, , `Id`],
63
+ mssPackage: [, (_) => se_MssPackage(_, context), `MssPackage`],
64
+ packagingGroupId: [, , `PackagingGroupId`],
65
+ tags: [, (_) => _json(_), `Tags`],
66
+ }));
67
67
  return new __HttpRequest({
68
68
  protocol,
69
69
  hostname,
@@ -81,12 +81,12 @@ export const se_CreatePackagingGroupCommand = async (input, context) => {
81
81
  };
82
82
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups";
83
83
  let body;
84
- body = JSON.stringify({
85
- ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
86
- ...(input.EgressAccessLogs != null && { egressAccessLogs: se_EgressAccessLogs(input.EgressAccessLogs, context) }),
87
- ...(input.Id != null && { id: input.Id }),
88
- ...(input.Tags != null && { tags: se_Tags(input.Tags, context) }),
89
- });
84
+ body = JSON.stringify(take(input, {
85
+ authorization: [, (_) => se_Authorization(_, context), `Authorization`],
86
+ egressAccessLogs: [, (_) => se_EgressAccessLogs(_, context), `EgressAccessLogs`],
87
+ id: [, , `Id`],
88
+ tags: [, (_) => _json(_), `Tags`],
89
+ }));
90
90
  return new __HttpRequest({
91
91
  protocol,
92
92
  hostname,
@@ -279,9 +279,9 @@ export const se_TagResourceCommand = async (input, context) => {
279
279
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
280
280
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
281
281
  let body;
282
- body = JSON.stringify({
283
- ...(input.Tags != null && { tags: se___mapOf__string(input.Tags, context) }),
284
- });
282
+ body = JSON.stringify(take(input, {
283
+ tags: [, (_) => _json(_), `Tags`],
284
+ }));
285
285
  return new __HttpRequest({
286
286
  protocol,
287
287
  hostname,
@@ -323,9 +323,9 @@ export const se_UpdatePackagingGroupCommand = async (input, context) => {
323
323
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packaging_groups/{Id}";
324
324
  resolvedPath = __resolvedPath(resolvedPath, input, "Id", () => input.Id, "{Id}", false);
325
325
  let body;
326
- body = JSON.stringify({
327
- ...(input.Authorization != null && { authorization: se_Authorization(input.Authorization, context) }),
328
- });
326
+ body = JSON.stringify(take(input, {
327
+ authorization: [, (_) => se_Authorization(_, context), `Authorization`],
328
+ }));
329
329
  return new __HttpRequest({
330
330
  protocol,
331
331
  hostname,
@@ -344,27 +344,16 @@ export const de_ConfigureLogsCommand = async (output, context) => {
344
344
  $metadata: deserializeMetadata(output),
345
345
  });
346
346
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
347
- if (data.arn != null) {
348
- contents.Arn = __expectString(data.arn);
349
- }
350
- if (data.authorization != null) {
351
- contents.Authorization = de_Authorization(data.authorization, context);
352
- }
353
- if (data.createdAt != null) {
354
- contents.CreatedAt = __expectString(data.createdAt);
355
- }
356
- if (data.domainName != null) {
357
- contents.DomainName = __expectString(data.domainName);
358
- }
359
- if (data.egressAccessLogs != null) {
360
- contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
361
- }
362
- if (data.id != null) {
363
- contents.Id = __expectString(data.id);
364
- }
365
- if (data.tags != null) {
366
- contents.Tags = de_Tags(data.tags, context);
367
- }
347
+ const doc = take(data, {
348
+ Arn: [, __expectString, `arn`],
349
+ Authorization: [, (_) => de_Authorization(_, context), `authorization`],
350
+ CreatedAt: [, __expectString, `createdAt`],
351
+ DomainName: [, __expectString, `domainName`],
352
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
353
+ Id: [, __expectString, `id`],
354
+ Tags: [, _json, `tags`],
355
+ });
356
+ Object.assign(contents, doc);
368
357
  return contents;
369
358
  };
370
359
  const de_ConfigureLogsCommandError = async (output, context) => {
@@ -394,10 +383,9 @@ const de_ConfigureLogsCommandError = async (output, context) => {
394
383
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
395
384
  default:
396
385
  const parsedBody = parsedOutput.body;
397
- throwDefaultError({
386
+ return throwDefaultError({
398
387
  output,
399
388
  parsedBody,
400
- exceptionCtor: __BaseException,
401
389
  errorCode,
402
390
  });
403
391
  }
@@ -410,33 +398,18 @@ export const de_CreateAssetCommand = async (output, context) => {
410
398
  $metadata: deserializeMetadata(output),
411
399
  });
412
400
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
413
- if (data.arn != null) {
414
- contents.Arn = __expectString(data.arn);
415
- }
416
- if (data.createdAt != null) {
417
- contents.CreatedAt = __expectString(data.createdAt);
418
- }
419
- if (data.egressEndpoints != null) {
420
- contents.EgressEndpoints = de___listOfEgressEndpoint(data.egressEndpoints, context);
421
- }
422
- if (data.id != null) {
423
- contents.Id = __expectString(data.id);
424
- }
425
- if (data.packagingGroupId != null) {
426
- contents.PackagingGroupId = __expectString(data.packagingGroupId);
427
- }
428
- if (data.resourceId != null) {
429
- contents.ResourceId = __expectString(data.resourceId);
430
- }
431
- if (data.sourceArn != null) {
432
- contents.SourceArn = __expectString(data.sourceArn);
433
- }
434
- if (data.sourceRoleArn != null) {
435
- contents.SourceRoleArn = __expectString(data.sourceRoleArn);
436
- }
437
- if (data.tags != null) {
438
- contents.Tags = de_Tags(data.tags, context);
439
- }
401
+ const doc = take(data, {
402
+ Arn: [, __expectString, `arn`],
403
+ CreatedAt: [, __expectString, `createdAt`],
404
+ EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
405
+ Id: [, __expectString, `id`],
406
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
407
+ ResourceId: [, __expectString, `resourceId`],
408
+ SourceArn: [, __expectString, `sourceArn`],
409
+ SourceRoleArn: [, __expectString, `sourceRoleArn`],
410
+ Tags: [, _json, `tags`],
411
+ });
412
+ Object.assign(contents, doc);
440
413
  return contents;
441
414
  };
442
415
  const de_CreateAssetCommandError = async (output, context) => {
@@ -466,10 +439,9 @@ const de_CreateAssetCommandError = async (output, context) => {
466
439
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
467
440
  default:
468
441
  const parsedBody = parsedOutput.body;
469
- throwDefaultError({
442
+ return throwDefaultError({
470
443
  output,
471
444
  parsedBody,
472
- exceptionCtor: __BaseException,
473
445
  errorCode,
474
446
  });
475
447
  }
@@ -482,33 +454,18 @@ export const de_CreatePackagingConfigurationCommand = async (output, context) =>
482
454
  $metadata: deserializeMetadata(output),
483
455
  });
484
456
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
485
- if (data.arn != null) {
486
- contents.Arn = __expectString(data.arn);
487
- }
488
- if (data.cmafPackage != null) {
489
- contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
490
- }
491
- if (data.createdAt != null) {
492
- contents.CreatedAt = __expectString(data.createdAt);
493
- }
494
- if (data.dashPackage != null) {
495
- contents.DashPackage = de_DashPackage(data.dashPackage, context);
496
- }
497
- if (data.hlsPackage != null) {
498
- contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
499
- }
500
- if (data.id != null) {
501
- contents.Id = __expectString(data.id);
502
- }
503
- if (data.mssPackage != null) {
504
- contents.MssPackage = de_MssPackage(data.mssPackage, context);
505
- }
506
- if (data.packagingGroupId != null) {
507
- contents.PackagingGroupId = __expectString(data.packagingGroupId);
508
- }
509
- if (data.tags != null) {
510
- contents.Tags = de_Tags(data.tags, context);
511
- }
457
+ const doc = take(data, {
458
+ Arn: [, __expectString, `arn`],
459
+ CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
460
+ CreatedAt: [, __expectString, `createdAt`],
461
+ DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
462
+ HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
463
+ Id: [, __expectString, `id`],
464
+ MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
465
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
466
+ Tags: [, _json, `tags`],
467
+ });
468
+ Object.assign(contents, doc);
512
469
  return contents;
513
470
  };
514
471
  const de_CreatePackagingConfigurationCommandError = async (output, context) => {
@@ -538,10 +495,9 @@ const de_CreatePackagingConfigurationCommandError = async (output, context) => {
538
495
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
539
496
  default:
540
497
  const parsedBody = parsedOutput.body;
541
- throwDefaultError({
498
+ return throwDefaultError({
542
499
  output,
543
500
  parsedBody,
544
- exceptionCtor: __BaseException,
545
501
  errorCode,
546
502
  });
547
503
  }
@@ -554,27 +510,16 @@ export const de_CreatePackagingGroupCommand = async (output, context) => {
554
510
  $metadata: deserializeMetadata(output),
555
511
  });
556
512
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
557
- if (data.arn != null) {
558
- contents.Arn = __expectString(data.arn);
559
- }
560
- if (data.authorization != null) {
561
- contents.Authorization = de_Authorization(data.authorization, context);
562
- }
563
- if (data.createdAt != null) {
564
- contents.CreatedAt = __expectString(data.createdAt);
565
- }
566
- if (data.domainName != null) {
567
- contents.DomainName = __expectString(data.domainName);
568
- }
569
- if (data.egressAccessLogs != null) {
570
- contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
571
- }
572
- if (data.id != null) {
573
- contents.Id = __expectString(data.id);
574
- }
575
- if (data.tags != null) {
576
- contents.Tags = de_Tags(data.tags, context);
577
- }
513
+ const doc = take(data, {
514
+ Arn: [, __expectString, `arn`],
515
+ Authorization: [, (_) => de_Authorization(_, context), `authorization`],
516
+ CreatedAt: [, __expectString, `createdAt`],
517
+ DomainName: [, __expectString, `domainName`],
518
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
519
+ Id: [, __expectString, `id`],
520
+ Tags: [, _json, `tags`],
521
+ });
522
+ Object.assign(contents, doc);
578
523
  return contents;
579
524
  };
580
525
  const de_CreatePackagingGroupCommandError = async (output, context) => {
@@ -604,10 +549,9 @@ const de_CreatePackagingGroupCommandError = async (output, context) => {
604
549
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
605
550
  default:
606
551
  const parsedBody = parsedOutput.body;
607
- throwDefaultError({
552
+ return throwDefaultError({
608
553
  output,
609
554
  parsedBody,
610
- exceptionCtor: __BaseException,
611
555
  errorCode,
612
556
  });
613
557
  }
@@ -649,10 +593,9 @@ const de_DeleteAssetCommandError = async (output, context) => {
649
593
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
650
594
  default:
651
595
  const parsedBody = parsedOutput.body;
652
- throwDefaultError({
596
+ return throwDefaultError({
653
597
  output,
654
598
  parsedBody,
655
- exceptionCtor: __BaseException,
656
599
  errorCode,
657
600
  });
658
601
  }
@@ -694,10 +637,9 @@ const de_DeletePackagingConfigurationCommandError = async (output, context) => {
694
637
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
695
638
  default:
696
639
  const parsedBody = parsedOutput.body;
697
- throwDefaultError({
640
+ return throwDefaultError({
698
641
  output,
699
642
  parsedBody,
700
- exceptionCtor: __BaseException,
701
643
  errorCode,
702
644
  });
703
645
  }
@@ -739,10 +681,9 @@ const de_DeletePackagingGroupCommandError = async (output, context) => {
739
681
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
740
682
  default:
741
683
  const parsedBody = parsedOutput.body;
742
- throwDefaultError({
684
+ return throwDefaultError({
743
685
  output,
744
686
  parsedBody,
745
- exceptionCtor: __BaseException,
746
687
  errorCode,
747
688
  });
748
689
  }
@@ -755,33 +696,18 @@ export const de_DescribeAssetCommand = async (output, context) => {
755
696
  $metadata: deserializeMetadata(output),
756
697
  });
757
698
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
758
- if (data.arn != null) {
759
- contents.Arn = __expectString(data.arn);
760
- }
761
- if (data.createdAt != null) {
762
- contents.CreatedAt = __expectString(data.createdAt);
763
- }
764
- if (data.egressEndpoints != null) {
765
- contents.EgressEndpoints = de___listOfEgressEndpoint(data.egressEndpoints, context);
766
- }
767
- if (data.id != null) {
768
- contents.Id = __expectString(data.id);
769
- }
770
- if (data.packagingGroupId != null) {
771
- contents.PackagingGroupId = __expectString(data.packagingGroupId);
772
- }
773
- if (data.resourceId != null) {
774
- contents.ResourceId = __expectString(data.resourceId);
775
- }
776
- if (data.sourceArn != null) {
777
- contents.SourceArn = __expectString(data.sourceArn);
778
- }
779
- if (data.sourceRoleArn != null) {
780
- contents.SourceRoleArn = __expectString(data.sourceRoleArn);
781
- }
782
- if (data.tags != null) {
783
- contents.Tags = de_Tags(data.tags, context);
784
- }
699
+ const doc = take(data, {
700
+ Arn: [, __expectString, `arn`],
701
+ CreatedAt: [, __expectString, `createdAt`],
702
+ EgressEndpoints: [, (_) => de___listOfEgressEndpoint(_, context), `egressEndpoints`],
703
+ Id: [, __expectString, `id`],
704
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
705
+ ResourceId: [, __expectString, `resourceId`],
706
+ SourceArn: [, __expectString, `sourceArn`],
707
+ SourceRoleArn: [, __expectString, `sourceRoleArn`],
708
+ Tags: [, _json, `tags`],
709
+ });
710
+ Object.assign(contents, doc);
785
711
  return contents;
786
712
  };
787
713
  const de_DescribeAssetCommandError = async (output, context) => {
@@ -811,10 +737,9 @@ const de_DescribeAssetCommandError = async (output, context) => {
811
737
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
812
738
  default:
813
739
  const parsedBody = parsedOutput.body;
814
- throwDefaultError({
740
+ return throwDefaultError({
815
741
  output,
816
742
  parsedBody,
817
- exceptionCtor: __BaseException,
818
743
  errorCode,
819
744
  });
820
745
  }
@@ -827,33 +752,18 @@ export const de_DescribePackagingConfigurationCommand = async (output, context)
827
752
  $metadata: deserializeMetadata(output),
828
753
  });
829
754
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
830
- if (data.arn != null) {
831
- contents.Arn = __expectString(data.arn);
832
- }
833
- if (data.cmafPackage != null) {
834
- contents.CmafPackage = de_CmafPackage(data.cmafPackage, context);
835
- }
836
- if (data.createdAt != null) {
837
- contents.CreatedAt = __expectString(data.createdAt);
838
- }
839
- if (data.dashPackage != null) {
840
- contents.DashPackage = de_DashPackage(data.dashPackage, context);
841
- }
842
- if (data.hlsPackage != null) {
843
- contents.HlsPackage = de_HlsPackage(data.hlsPackage, context);
844
- }
845
- if (data.id != null) {
846
- contents.Id = __expectString(data.id);
847
- }
848
- if (data.mssPackage != null) {
849
- contents.MssPackage = de_MssPackage(data.mssPackage, context);
850
- }
851
- if (data.packagingGroupId != null) {
852
- contents.PackagingGroupId = __expectString(data.packagingGroupId);
853
- }
854
- if (data.tags != null) {
855
- contents.Tags = de_Tags(data.tags, context);
856
- }
755
+ const doc = take(data, {
756
+ Arn: [, __expectString, `arn`],
757
+ CmafPackage: [, (_) => de_CmafPackage(_, context), `cmafPackage`],
758
+ CreatedAt: [, __expectString, `createdAt`],
759
+ DashPackage: [, (_) => de_DashPackage(_, context), `dashPackage`],
760
+ HlsPackage: [, (_) => de_HlsPackage(_, context), `hlsPackage`],
761
+ Id: [, __expectString, `id`],
762
+ MssPackage: [, (_) => de_MssPackage(_, context), `mssPackage`],
763
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
764
+ Tags: [, _json, `tags`],
765
+ });
766
+ Object.assign(contents, doc);
857
767
  return contents;
858
768
  };
859
769
  const de_DescribePackagingConfigurationCommandError = async (output, context) => {
@@ -883,10 +793,9 @@ const de_DescribePackagingConfigurationCommandError = async (output, context) =>
883
793
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
884
794
  default:
885
795
  const parsedBody = parsedOutput.body;
886
- throwDefaultError({
796
+ return throwDefaultError({
887
797
  output,
888
798
  parsedBody,
889
- exceptionCtor: __BaseException,
890
799
  errorCode,
891
800
  });
892
801
  }
@@ -899,30 +808,17 @@ export const de_DescribePackagingGroupCommand = async (output, context) => {
899
808
  $metadata: deserializeMetadata(output),
900
809
  });
901
810
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
902
- if (data.approximateAssetCount != null) {
903
- contents.ApproximateAssetCount = __expectInt32(data.approximateAssetCount);
904
- }
905
- if (data.arn != null) {
906
- contents.Arn = __expectString(data.arn);
907
- }
908
- if (data.authorization != null) {
909
- contents.Authorization = de_Authorization(data.authorization, context);
910
- }
911
- if (data.createdAt != null) {
912
- contents.CreatedAt = __expectString(data.createdAt);
913
- }
914
- if (data.domainName != null) {
915
- contents.DomainName = __expectString(data.domainName);
916
- }
917
- if (data.egressAccessLogs != null) {
918
- contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
919
- }
920
- if (data.id != null) {
921
- contents.Id = __expectString(data.id);
922
- }
923
- if (data.tags != null) {
924
- contents.Tags = de_Tags(data.tags, context);
925
- }
811
+ const doc = take(data, {
812
+ ApproximateAssetCount: [, __expectInt32, `approximateAssetCount`],
813
+ Arn: [, __expectString, `arn`],
814
+ Authorization: [, (_) => de_Authorization(_, context), `authorization`],
815
+ CreatedAt: [, __expectString, `createdAt`],
816
+ DomainName: [, __expectString, `domainName`],
817
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
818
+ Id: [, __expectString, `id`],
819
+ Tags: [, _json, `tags`],
820
+ });
821
+ Object.assign(contents, doc);
926
822
  return contents;
927
823
  };
928
824
  const de_DescribePackagingGroupCommandError = async (output, context) => {
@@ -952,10 +848,9 @@ const de_DescribePackagingGroupCommandError = async (output, context) => {
952
848
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
953
849
  default:
954
850
  const parsedBody = parsedOutput.body;
955
- throwDefaultError({
851
+ return throwDefaultError({
956
852
  output,
957
853
  parsedBody,
958
- exceptionCtor: __BaseException,
959
854
  errorCode,
960
855
  });
961
856
  }
@@ -968,12 +863,11 @@ export const de_ListAssetsCommand = async (output, context) => {
968
863
  $metadata: deserializeMetadata(output),
969
864
  });
970
865
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
971
- if (data.assets != null) {
972
- contents.Assets = de___listOfAssetShallow(data.assets, context);
973
- }
974
- if (data.nextToken != null) {
975
- contents.NextToken = __expectString(data.nextToken);
976
- }
866
+ const doc = take(data, {
867
+ Assets: [, (_) => de___listOfAssetShallow(_, context), `assets`],
868
+ NextToken: [, __expectString, `nextToken`],
869
+ });
870
+ Object.assign(contents, doc);
977
871
  return contents;
978
872
  };
979
873
  const de_ListAssetsCommandError = async (output, context) => {
@@ -1003,10 +897,9 @@ const de_ListAssetsCommandError = async (output, context) => {
1003
897
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1004
898
  default:
1005
899
  const parsedBody = parsedOutput.body;
1006
- throwDefaultError({
900
+ return throwDefaultError({
1007
901
  output,
1008
902
  parsedBody,
1009
- exceptionCtor: __BaseException,
1010
903
  errorCode,
1011
904
  });
1012
905
  }
@@ -1019,12 +912,11 @@ export const de_ListPackagingConfigurationsCommand = async (output, context) =>
1019
912
  $metadata: deserializeMetadata(output),
1020
913
  });
1021
914
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1022
- if (data.nextToken != null) {
1023
- contents.NextToken = __expectString(data.nextToken);
1024
- }
1025
- if (data.packagingConfigurations != null) {
1026
- contents.PackagingConfigurations = de___listOfPackagingConfiguration(data.packagingConfigurations, context);
1027
- }
915
+ const doc = take(data, {
916
+ NextToken: [, __expectString, `nextToken`],
917
+ PackagingConfigurations: [, (_) => de___listOfPackagingConfiguration(_, context), `packagingConfigurations`],
918
+ });
919
+ Object.assign(contents, doc);
1028
920
  return contents;
1029
921
  };
1030
922
  const de_ListPackagingConfigurationsCommandError = async (output, context) => {
@@ -1054,10 +946,9 @@ const de_ListPackagingConfigurationsCommandError = async (output, context) => {
1054
946
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1055
947
  default:
1056
948
  const parsedBody = parsedOutput.body;
1057
- throwDefaultError({
949
+ return throwDefaultError({
1058
950
  output,
1059
951
  parsedBody,
1060
- exceptionCtor: __BaseException,
1061
952
  errorCode,
1062
953
  });
1063
954
  }
@@ -1070,12 +961,11 @@ export const de_ListPackagingGroupsCommand = async (output, context) => {
1070
961
  $metadata: deserializeMetadata(output),
1071
962
  });
1072
963
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1073
- if (data.nextToken != null) {
1074
- contents.NextToken = __expectString(data.nextToken);
1075
- }
1076
- if (data.packagingGroups != null) {
1077
- contents.PackagingGroups = de___listOfPackagingGroup(data.packagingGroups, context);
1078
- }
964
+ const doc = take(data, {
965
+ NextToken: [, __expectString, `nextToken`],
966
+ PackagingGroups: [, (_) => de___listOfPackagingGroup(_, context), `packagingGroups`],
967
+ });
968
+ Object.assign(contents, doc);
1079
969
  return contents;
1080
970
  };
1081
971
  const de_ListPackagingGroupsCommandError = async (output, context) => {
@@ -1105,10 +995,9 @@ const de_ListPackagingGroupsCommandError = async (output, context) => {
1105
995
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1106
996
  default:
1107
997
  const parsedBody = parsedOutput.body;
1108
- throwDefaultError({
998
+ return throwDefaultError({
1109
999
  output,
1110
1000
  parsedBody,
1111
- exceptionCtor: __BaseException,
1112
1001
  errorCode,
1113
1002
  });
1114
1003
  }
@@ -1121,9 +1010,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1121
1010
  $metadata: deserializeMetadata(output),
1122
1011
  });
1123
1012
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1124
- if (data.tags != null) {
1125
- contents.Tags = de___mapOf__string(data.tags, context);
1126
- }
1013
+ const doc = take(data, {
1014
+ Tags: [, _json, `tags`],
1015
+ });
1016
+ Object.assign(contents, doc);
1127
1017
  return contents;
1128
1018
  };
1129
1019
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1133,10 +1023,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1133
1023
  };
1134
1024
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1135
1025
  const parsedBody = parsedOutput.body;
1136
- throwDefaultError({
1026
+ return throwDefaultError({
1137
1027
  output,
1138
1028
  parsedBody,
1139
- exceptionCtor: __BaseException,
1140
1029
  errorCode,
1141
1030
  });
1142
1031
  };
@@ -1157,10 +1046,9 @@ const de_TagResourceCommandError = async (output, context) => {
1157
1046
  };
1158
1047
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1159
1048
  const parsedBody = parsedOutput.body;
1160
- throwDefaultError({
1049
+ return throwDefaultError({
1161
1050
  output,
1162
1051
  parsedBody,
1163
- exceptionCtor: __BaseException,
1164
1052
  errorCode,
1165
1053
  });
1166
1054
  };
@@ -1181,10 +1069,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1181
1069
  };
1182
1070
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
1071
  const parsedBody = parsedOutput.body;
1184
- throwDefaultError({
1072
+ return throwDefaultError({
1185
1073
  output,
1186
1074
  parsedBody,
1187
- exceptionCtor: __BaseException,
1188
1075
  errorCode,
1189
1076
  });
1190
1077
  };
@@ -1196,30 +1083,17 @@ export const de_UpdatePackagingGroupCommand = async (output, context) => {
1196
1083
  $metadata: deserializeMetadata(output),
1197
1084
  });
1198
1085
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1199
- if (data.approximateAssetCount != null) {
1200
- contents.ApproximateAssetCount = __expectInt32(data.approximateAssetCount);
1201
- }
1202
- if (data.arn != null) {
1203
- contents.Arn = __expectString(data.arn);
1204
- }
1205
- if (data.authorization != null) {
1206
- contents.Authorization = de_Authorization(data.authorization, context);
1207
- }
1208
- if (data.createdAt != null) {
1209
- contents.CreatedAt = __expectString(data.createdAt);
1210
- }
1211
- if (data.domainName != null) {
1212
- contents.DomainName = __expectString(data.domainName);
1213
- }
1214
- if (data.egressAccessLogs != null) {
1215
- contents.EgressAccessLogs = de_EgressAccessLogs(data.egressAccessLogs, context);
1216
- }
1217
- if (data.id != null) {
1218
- contents.Id = __expectString(data.id);
1219
- }
1220
- if (data.tags != null) {
1221
- contents.Tags = de_Tags(data.tags, context);
1222
- }
1086
+ const doc = take(data, {
1087
+ ApproximateAssetCount: [, __expectInt32, `approximateAssetCount`],
1088
+ Arn: [, __expectString, `arn`],
1089
+ Authorization: [, (_) => de_Authorization(_, context), `authorization`],
1090
+ CreatedAt: [, __expectString, `createdAt`],
1091
+ DomainName: [, __expectString, `domainName`],
1092
+ EgressAccessLogs: [, (_) => de_EgressAccessLogs(_, context), `egressAccessLogs`],
1093
+ Id: [, __expectString, `id`],
1094
+ Tags: [, _json, `tags`],
1095
+ });
1096
+ Object.assign(contents, doc);
1223
1097
  return contents;
1224
1098
  };
1225
1099
  const de_UpdatePackagingGroupCommandError = async (output, context) => {
@@ -1249,21 +1123,21 @@ const de_UpdatePackagingGroupCommandError = async (output, context) => {
1249
1123
  throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
1250
1124
  default:
1251
1125
  const parsedBody = parsedOutput.body;
1252
- throwDefaultError({
1126
+ return throwDefaultError({
1253
1127
  output,
1254
1128
  parsedBody,
1255
- exceptionCtor: __BaseException,
1256
1129
  errorCode,
1257
1130
  });
1258
1131
  }
1259
1132
  };
1260
- const map = __map;
1133
+ const throwDefaultError = withBaseException(__BaseException);
1261
1134
  const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1262
1135
  const contents = map({});
1263
1136
  const data = parsedOutput.body;
1264
- if (data.message != null) {
1265
- contents.Message = __expectString(data.message);
1266
- }
1137
+ const doc = take(data, {
1138
+ Message: [, __expectString, `message`],
1139
+ });
1140
+ Object.assign(contents, doc);
1267
1141
  const exception = new ForbiddenException({
1268
1142
  $metadata: deserializeMetadata(parsedOutput),
1269
1143
  ...contents,
@@ -1273,9 +1147,10 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
1273
1147
  const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1274
1148
  const contents = map({});
1275
1149
  const data = parsedOutput.body;
1276
- if (data.message != null) {
1277
- contents.Message = __expectString(data.message);
1278
- }
1150
+ const doc = take(data, {
1151
+ Message: [, __expectString, `message`],
1152
+ });
1153
+ Object.assign(contents, doc);
1279
1154
  const exception = new InternalServerErrorException({
1280
1155
  $metadata: deserializeMetadata(parsedOutput),
1281
1156
  ...contents,
@@ -1285,9 +1160,10 @@ const de_InternalServerErrorExceptionRes = async (parsedOutput, context) => {
1285
1160
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1286
1161
  const contents = map({});
1287
1162
  const data = parsedOutput.body;
1288
- if (data.message != null) {
1289
- contents.Message = __expectString(data.message);
1290
- }
1163
+ const doc = take(data, {
1164
+ Message: [, __expectString, `message`],
1165
+ });
1166
+ Object.assign(contents, doc);
1291
1167
  const exception = new NotFoundException({
1292
1168
  $metadata: deserializeMetadata(parsedOutput),
1293
1169
  ...contents,
@@ -1297,9 +1173,10 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1297
1173
  const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1298
1174
  const contents = map({});
1299
1175
  const data = parsedOutput.body;
1300
- if (data.message != null) {
1301
- contents.Message = __expectString(data.message);
1302
- }
1176
+ const doc = take(data, {
1177
+ Message: [, __expectString, `message`],
1178
+ });
1179
+ Object.assign(contents, doc);
1303
1180
  const exception = new ServiceUnavailableException({
1304
1181
  $metadata: deserializeMetadata(parsedOutput),
1305
1182
  ...contents,
@@ -1309,9 +1186,10 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
1309
1186
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1310
1187
  const contents = map({});
1311
1188
  const data = parsedOutput.body;
1312
- if (data.message != null) {
1313
- contents.Message = __expectString(data.message);
1314
- }
1189
+ const doc = take(data, {
1190
+ Message: [, __expectString, `message`],
1191
+ });
1192
+ Object.assign(contents, doc);
1315
1193
  const exception = new TooManyRequestsException({
1316
1194
  $metadata: deserializeMetadata(parsedOutput),
1317
1195
  ...contents,
@@ -1321,29 +1199,16 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1321
1199
  const de_UnprocessableEntityExceptionRes = async (parsedOutput, context) => {
1322
1200
  const contents = map({});
1323
1201
  const data = parsedOutput.body;
1324
- if (data.message != null) {
1325
- contents.Message = __expectString(data.message);
1326
- }
1202
+ const doc = take(data, {
1203
+ Message: [, __expectString, `message`],
1204
+ });
1205
+ Object.assign(contents, doc);
1327
1206
  const exception = new UnprocessableEntityException({
1328
1207
  $metadata: deserializeMetadata(parsedOutput),
1329
1208
  ...contents,
1330
1209
  });
1331
1210
  return __decorateServiceException(exception, parsedOutput.body);
1332
1211
  };
1333
- const se___listOf__PeriodTriggersElement = (input, context) => {
1334
- return input
1335
- .filter((e) => e != null)
1336
- .map((entry) => {
1337
- return entry;
1338
- });
1339
- };
1340
- const se___listOf__string = (input, context) => {
1341
- return input
1342
- .filter((e) => e != null)
1343
- .map((entry) => {
1344
- return entry;
1345
- });
1346
- };
1347
1212
  const se___listOfDashManifest = (input, context) => {
1348
1213
  return input
1349
1214
  .filter((e) => e != null)
@@ -1365,183 +1230,130 @@ const se___listOfMssManifest = (input, context) => {
1365
1230
  return se_MssManifest(entry, context);
1366
1231
  });
1367
1232
  };
1368
- const se___mapOf__string = (input, context) => {
1369
- return Object.entries(input).reduce((acc, [key, value]) => {
1370
- if (value === null) {
1371
- return acc;
1372
- }
1373
- acc[key] = value;
1374
- return acc;
1375
- }, {});
1376
- };
1377
1233
  const se_Authorization = (input, context) => {
1378
- return {
1379
- ...(input.CdnIdentifierSecret != null && { cdnIdentifierSecret: input.CdnIdentifierSecret }),
1380
- ...(input.SecretsRoleArn != null && { secretsRoleArn: input.SecretsRoleArn }),
1381
- };
1234
+ return take(input, {
1235
+ cdnIdentifierSecret: [, , `CdnIdentifierSecret`],
1236
+ secretsRoleArn: [, , `SecretsRoleArn`],
1237
+ });
1382
1238
  };
1383
1239
  const se_CmafEncryption = (input, context) => {
1384
- return {
1385
- ...(input.ConstantInitializationVector != null && {
1386
- constantInitializationVector: input.ConstantInitializationVector,
1387
- }),
1388
- ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1389
- };
1240
+ return take(input, {
1241
+ constantInitializationVector: [, , `ConstantInitializationVector`],
1242
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
1243
+ });
1390
1244
  };
1391
1245
  const se_CmafPackage = (input, context) => {
1392
- return {
1393
- ...(input.Encryption != null && { encryption: se_CmafEncryption(input.Encryption, context) }),
1394
- ...(input.HlsManifests != null && { hlsManifests: se___listOfHlsManifest(input.HlsManifests, context) }),
1395
- ...(input.IncludeEncoderConfigurationInSegments != null && {
1396
- includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1397
- }),
1398
- ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1399
- };
1246
+ return take(input, {
1247
+ encryption: [, (_) => se_CmafEncryption(_, context), `Encryption`],
1248
+ hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
1249
+ includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
1250
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1251
+ });
1400
1252
  };
1401
1253
  const se_DashEncryption = (input, context) => {
1402
- return {
1403
- ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1404
- };
1254
+ return take(input, {
1255
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
1256
+ });
1405
1257
  };
1406
1258
  const se_DashManifest = (input, context) => {
1407
- return {
1408
- ...(input.ManifestLayout != null && { manifestLayout: input.ManifestLayout }),
1409
- ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1410
- ...(input.MinBufferTimeSeconds != null && { minBufferTimeSeconds: input.MinBufferTimeSeconds }),
1411
- ...(input.Profile != null && { profile: input.Profile }),
1412
- ...(input.ScteMarkersSource != null && { scteMarkersSource: input.ScteMarkersSource }),
1413
- ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1414
- };
1259
+ return take(input, {
1260
+ manifestLayout: [, , `ManifestLayout`],
1261
+ manifestName: [, , `ManifestName`],
1262
+ minBufferTimeSeconds: [, , `MinBufferTimeSeconds`],
1263
+ profile: [, , `Profile`],
1264
+ scteMarkersSource: [, , `ScteMarkersSource`],
1265
+ streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
1266
+ });
1415
1267
  };
1416
1268
  const se_DashPackage = (input, context) => {
1417
- return {
1418
- ...(input.DashManifests != null && { dashManifests: se___listOfDashManifest(input.DashManifests, context) }),
1419
- ...(input.Encryption != null && { encryption: se_DashEncryption(input.Encryption, context) }),
1420
- ...(input.IncludeEncoderConfigurationInSegments != null && {
1421
- includeEncoderConfigurationInSegments: input.IncludeEncoderConfigurationInSegments,
1422
- }),
1423
- ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1424
- ...(input.PeriodTriggers != null && {
1425
- periodTriggers: se___listOf__PeriodTriggersElement(input.PeriodTriggers, context),
1426
- }),
1427
- ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1428
- ...(input.SegmentTemplateFormat != null && { segmentTemplateFormat: input.SegmentTemplateFormat }),
1429
- };
1269
+ return take(input, {
1270
+ dashManifests: [, (_) => se___listOfDashManifest(_, context), `DashManifests`],
1271
+ encryption: [, (_) => se_DashEncryption(_, context), `Encryption`],
1272
+ includeEncoderConfigurationInSegments: [, , `IncludeEncoderConfigurationInSegments`],
1273
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1274
+ periodTriggers: [, _json, `PeriodTriggers`],
1275
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1276
+ segmentTemplateFormat: [, , `SegmentTemplateFormat`],
1277
+ });
1430
1278
  };
1431
1279
  const se_EgressAccessLogs = (input, context) => {
1432
- return {
1433
- ...(input.LogGroupName != null && { logGroupName: input.LogGroupName }),
1434
- };
1280
+ return take(input, {
1281
+ logGroupName: [, , `LogGroupName`],
1282
+ });
1435
1283
  };
1436
1284
  const se_EncryptionContractConfiguration = (input, context) => {
1437
- return {
1438
- ...(input.PresetSpeke20Audio != null && { presetSpeke20Audio: input.PresetSpeke20Audio }),
1439
- ...(input.PresetSpeke20Video != null && { presetSpeke20Video: input.PresetSpeke20Video }),
1440
- };
1285
+ return take(input, {
1286
+ presetSpeke20Audio: [, , `PresetSpeke20Audio`],
1287
+ presetSpeke20Video: [, , `PresetSpeke20Video`],
1288
+ });
1441
1289
  };
1442
1290
  const se_HlsEncryption = (input, context) => {
1443
- return {
1444
- ...(input.ConstantInitializationVector != null && {
1445
- constantInitializationVector: input.ConstantInitializationVector,
1446
- }),
1447
- ...(input.EncryptionMethod != null && { encryptionMethod: input.EncryptionMethod }),
1448
- ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1449
- };
1291
+ return take(input, {
1292
+ constantInitializationVector: [, , `ConstantInitializationVector`],
1293
+ encryptionMethod: [, , `EncryptionMethod`],
1294
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
1295
+ });
1450
1296
  };
1451
1297
  const se_HlsManifest = (input, context) => {
1452
- return {
1453
- ...(input.AdMarkers != null && { adMarkers: input.AdMarkers }),
1454
- ...(input.IncludeIframeOnlyStream != null && { includeIframeOnlyStream: input.IncludeIframeOnlyStream }),
1455
- ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1456
- ...(input.ProgramDateTimeIntervalSeconds != null && {
1457
- programDateTimeIntervalSeconds: input.ProgramDateTimeIntervalSeconds,
1458
- }),
1459
- ...(input.RepeatExtXKey != null && { repeatExtXKey: input.RepeatExtXKey }),
1460
- ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1461
- };
1298
+ return take(input, {
1299
+ adMarkers: [, , `AdMarkers`],
1300
+ includeIframeOnlyStream: [, , `IncludeIframeOnlyStream`],
1301
+ manifestName: [, , `ManifestName`],
1302
+ programDateTimeIntervalSeconds: [, , `ProgramDateTimeIntervalSeconds`],
1303
+ repeatExtXKey: [, , `RepeatExtXKey`],
1304
+ streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
1305
+ });
1462
1306
  };
1463
1307
  const se_HlsPackage = (input, context) => {
1464
- return {
1465
- ...(input.Encryption != null && { encryption: se_HlsEncryption(input.Encryption, context) }),
1466
- ...(input.HlsManifests != null && { hlsManifests: se___listOfHlsManifest(input.HlsManifests, context) }),
1467
- ...(input.IncludeDvbSubtitles != null && { includeDvbSubtitles: input.IncludeDvbSubtitles }),
1468
- ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1469
- ...(input.UseAudioRenditionGroup != null && { useAudioRenditionGroup: input.UseAudioRenditionGroup }),
1470
- };
1308
+ return take(input, {
1309
+ encryption: [, (_) => se_HlsEncryption(_, context), `Encryption`],
1310
+ hlsManifests: [, (_) => se___listOfHlsManifest(_, context), `HlsManifests`],
1311
+ includeDvbSubtitles: [, , `IncludeDvbSubtitles`],
1312
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1313
+ useAudioRenditionGroup: [, , `UseAudioRenditionGroup`],
1314
+ });
1471
1315
  };
1472
1316
  const se_MssEncryption = (input, context) => {
1473
- return {
1474
- ...(input.SpekeKeyProvider != null && { spekeKeyProvider: se_SpekeKeyProvider(input.SpekeKeyProvider, context) }),
1475
- };
1317
+ return take(input, {
1318
+ spekeKeyProvider: [, (_) => se_SpekeKeyProvider(_, context), `SpekeKeyProvider`],
1319
+ });
1476
1320
  };
1477
1321
  const se_MssManifest = (input, context) => {
1478
- return {
1479
- ...(input.ManifestName != null && { manifestName: input.ManifestName }),
1480
- ...(input.StreamSelection != null && { streamSelection: se_StreamSelection(input.StreamSelection, context) }),
1481
- };
1322
+ return take(input, {
1323
+ manifestName: [, , `ManifestName`],
1324
+ streamSelection: [, (_) => se_StreamSelection(_, context), `StreamSelection`],
1325
+ });
1482
1326
  };
1483
1327
  const se_MssPackage = (input, context) => {
1484
- return {
1485
- ...(input.Encryption != null && { encryption: se_MssEncryption(input.Encryption, context) }),
1486
- ...(input.MssManifests != null && { mssManifests: se___listOfMssManifest(input.MssManifests, context) }),
1487
- ...(input.SegmentDurationSeconds != null && { segmentDurationSeconds: input.SegmentDurationSeconds }),
1488
- };
1328
+ return take(input, {
1329
+ encryption: [, (_) => se_MssEncryption(_, context), `Encryption`],
1330
+ mssManifests: [, (_) => se___listOfMssManifest(_, context), `MssManifests`],
1331
+ segmentDurationSeconds: [, , `SegmentDurationSeconds`],
1332
+ });
1489
1333
  };
1490
1334
  const se_SpekeKeyProvider = (input, context) => {
1491
- return {
1492
- ...(input.EncryptionContractConfiguration != null && {
1493
- encryptionContractConfiguration: se_EncryptionContractConfiguration(input.EncryptionContractConfiguration, context),
1494
- }),
1495
- ...(input.RoleArn != null && { roleArn: input.RoleArn }),
1496
- ...(input.SystemIds != null && { systemIds: se___listOf__string(input.SystemIds, context) }),
1497
- ...(input.Url != null && { url: input.Url }),
1498
- };
1499
- };
1500
- const se_StreamSelection = (input, context) => {
1501
- return {
1502
- ...(input.MaxVideoBitsPerSecond != null && { maxVideoBitsPerSecond: input.MaxVideoBitsPerSecond }),
1503
- ...(input.MinVideoBitsPerSecond != null && { minVideoBitsPerSecond: input.MinVideoBitsPerSecond }),
1504
- ...(input.StreamOrder != null && { streamOrder: input.StreamOrder }),
1505
- };
1506
- };
1507
- const se_Tags = (input, context) => {
1508
- return Object.entries(input).reduce((acc, [key, value]) => {
1509
- if (value === null) {
1510
- return acc;
1511
- }
1512
- acc[key] = value;
1513
- return acc;
1514
- }, {});
1515
- };
1516
- const de___listOf__PeriodTriggersElement = (output, context) => {
1517
- const retVal = (output || [])
1518
- .filter((e) => e != null)
1519
- .map((entry) => {
1520
- if (entry === null) {
1521
- return null;
1522
- }
1523
- return __expectString(entry);
1335
+ return take(input, {
1336
+ encryptionContractConfiguration: [
1337
+ ,
1338
+ (_) => se_EncryptionContractConfiguration(_, context),
1339
+ `EncryptionContractConfiguration`,
1340
+ ],
1341
+ roleArn: [, , `RoleArn`],
1342
+ systemIds: [, _json, `SystemIds`],
1343
+ url: [, , `Url`],
1524
1344
  });
1525
- return retVal;
1526
1345
  };
1527
- const de___listOf__string = (output, context) => {
1528
- const retVal = (output || [])
1529
- .filter((e) => e != null)
1530
- .map((entry) => {
1531
- if (entry === null) {
1532
- return null;
1533
- }
1534
- return __expectString(entry);
1346
+ const se_StreamSelection = (input, context) => {
1347
+ return take(input, {
1348
+ maxVideoBitsPerSecond: [, , `MaxVideoBitsPerSecond`],
1349
+ minVideoBitsPerSecond: [, , `MinVideoBitsPerSecond`],
1350
+ streamOrder: [, , `StreamOrder`],
1535
1351
  });
1536
- return retVal;
1537
1352
  };
1538
1353
  const de___listOfAssetShallow = (output, context) => {
1539
1354
  const retVal = (output || [])
1540
1355
  .filter((e) => e != null)
1541
1356
  .map((entry) => {
1542
- if (entry === null) {
1543
- return null;
1544
- }
1545
1357
  return de_AssetShallow(entry, context);
1546
1358
  });
1547
1359
  return retVal;
@@ -1550,9 +1362,6 @@ const de___listOfDashManifest = (output, context) => {
1550
1362
  const retVal = (output || [])
1551
1363
  .filter((e) => e != null)
1552
1364
  .map((entry) => {
1553
- if (entry === null) {
1554
- return null;
1555
- }
1556
1365
  return de_DashManifest(entry, context);
1557
1366
  });
1558
1367
  return retVal;
@@ -1561,9 +1370,6 @@ const de___listOfEgressEndpoint = (output, context) => {
1561
1370
  const retVal = (output || [])
1562
1371
  .filter((e) => e != null)
1563
1372
  .map((entry) => {
1564
- if (entry === null) {
1565
- return null;
1566
- }
1567
1373
  return de_EgressEndpoint(entry, context);
1568
1374
  });
1569
1375
  return retVal;
@@ -1572,9 +1378,6 @@ const de___listOfHlsManifest = (output, context) => {
1572
1378
  const retVal = (output || [])
1573
1379
  .filter((e) => e != null)
1574
1380
  .map((entry) => {
1575
- if (entry === null) {
1576
- return null;
1577
- }
1578
1381
  return de_HlsManifest(entry, context);
1579
1382
  });
1580
1383
  return retVal;
@@ -1583,9 +1386,6 @@ const de___listOfMssManifest = (output, context) => {
1583
1386
  const retVal = (output || [])
1584
1387
  .filter((e) => e != null)
1585
1388
  .map((entry) => {
1586
- if (entry === null) {
1587
- return null;
1588
- }
1589
1389
  return de_MssManifest(entry, context);
1590
1390
  });
1591
1391
  return retVal;
@@ -1594,9 +1394,6 @@ const de___listOfPackagingConfiguration = (output, context) => {
1594
1394
  const retVal = (output || [])
1595
1395
  .filter((e) => e != null)
1596
1396
  .map((entry) => {
1597
- if (entry === null) {
1598
- return null;
1599
- }
1600
1397
  return de_PackagingConfiguration(entry, context);
1601
1398
  });
1602
1399
  return retVal;
@@ -1605,192 +1402,173 @@ const de___listOfPackagingGroup = (output, context) => {
1605
1402
  const retVal = (output || [])
1606
1403
  .filter((e) => e != null)
1607
1404
  .map((entry) => {
1608
- if (entry === null) {
1609
- return null;
1610
- }
1611
1405
  return de_PackagingGroup(entry, context);
1612
1406
  });
1613
1407
  return retVal;
1614
1408
  };
1615
- const de___mapOf__string = (output, context) => {
1616
- return Object.entries(output).reduce((acc, [key, value]) => {
1617
- if (value === null) {
1618
- return acc;
1619
- }
1620
- acc[key] = __expectString(value);
1621
- return acc;
1622
- }, {});
1623
- };
1624
1409
  const de_AssetShallow = (output, context) => {
1625
- return {
1626
- Arn: __expectString(output.arn),
1627
- CreatedAt: __expectString(output.createdAt),
1628
- Id: __expectString(output.id),
1629
- PackagingGroupId: __expectString(output.packagingGroupId),
1630
- ResourceId: __expectString(output.resourceId),
1631
- SourceArn: __expectString(output.sourceArn),
1632
- SourceRoleArn: __expectString(output.sourceRoleArn),
1633
- Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1634
- };
1410
+ return take(output, {
1411
+ Arn: [, __expectString, `arn`],
1412
+ CreatedAt: [, __expectString, `createdAt`],
1413
+ Id: [, __expectString, `id`],
1414
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
1415
+ ResourceId: [, __expectString, `resourceId`],
1416
+ SourceArn: [, __expectString, `sourceArn`],
1417
+ SourceRoleArn: [, __expectString, `sourceRoleArn`],
1418
+ Tags: [, _json, `tags`],
1419
+ });
1635
1420
  };
1636
1421
  const de_Authorization = (output, context) => {
1637
- return {
1638
- CdnIdentifierSecret: __expectString(output.cdnIdentifierSecret),
1639
- SecretsRoleArn: __expectString(output.secretsRoleArn),
1640
- };
1422
+ return take(output, {
1423
+ CdnIdentifierSecret: [, __expectString, `cdnIdentifierSecret`],
1424
+ SecretsRoleArn: [, __expectString, `secretsRoleArn`],
1425
+ });
1641
1426
  };
1642
1427
  const de_CmafEncryption = (output, context) => {
1643
- return {
1644
- ConstantInitializationVector: __expectString(output.constantInitializationVector),
1645
- SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1646
- };
1428
+ return take(output, {
1429
+ ConstantInitializationVector: [, __expectString, `constantInitializationVector`],
1430
+ SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
1431
+ });
1647
1432
  };
1648
1433
  const de_CmafPackage = (output, context) => {
1649
- return {
1650
- Encryption: output.encryption != null ? de_CmafEncryption(output.encryption, context) : undefined,
1651
- HlsManifests: output.hlsManifests != null ? de___listOfHlsManifest(output.hlsManifests, context) : undefined,
1652
- IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
1653
- SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1654
- };
1434
+ return take(output, {
1435
+ Encryption: (_) => [, de_CmafEncryption(_, context), `encryption`],
1436
+ HlsManifests: (_) => [, de___listOfHlsManifest(_, context), `hlsManifests`],
1437
+ IncludeEncoderConfigurationInSegments: [, __expectBoolean, `includeEncoderConfigurationInSegments`],
1438
+ SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
1439
+ });
1655
1440
  };
1656
1441
  const de_DashEncryption = (output, context) => {
1657
- return {
1658
- SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1659
- };
1442
+ return take(output, {
1443
+ SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
1444
+ });
1660
1445
  };
1661
1446
  const de_DashManifest = (output, context) => {
1662
- return {
1663
- ManifestLayout: __expectString(output.manifestLayout),
1664
- ManifestName: __expectString(output.manifestName),
1665
- MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
1666
- Profile: __expectString(output.profile),
1667
- ScteMarkersSource: __expectString(output.scteMarkersSource),
1668
- StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1669
- };
1447
+ return take(output, {
1448
+ ManifestLayout: [, __expectString, `manifestLayout`],
1449
+ ManifestName: [, __expectString, `manifestName`],
1450
+ MinBufferTimeSeconds: [, __expectInt32, `minBufferTimeSeconds`],
1451
+ Profile: [, __expectString, `profile`],
1452
+ ScteMarkersSource: [, __expectString, `scteMarkersSource`],
1453
+ StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
1454
+ });
1670
1455
  };
1671
1456
  const de_DashPackage = (output, context) => {
1672
- return {
1673
- DashManifests: output.dashManifests != null ? de___listOfDashManifest(output.dashManifests, context) : undefined,
1674
- Encryption: output.encryption != null ? de_DashEncryption(output.encryption, context) : undefined,
1675
- IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
1676
- IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
1677
- PeriodTriggers: output.periodTriggers != null ? de___listOf__PeriodTriggersElement(output.periodTriggers, context) : undefined,
1678
- SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1679
- SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
1680
- };
1457
+ return take(output, {
1458
+ DashManifests: (_) => [, de___listOfDashManifest(_, context), `dashManifests`],
1459
+ Encryption: (_) => [, de_DashEncryption(_, context), `encryption`],
1460
+ IncludeEncoderConfigurationInSegments: [, __expectBoolean, `includeEncoderConfigurationInSegments`],
1461
+ IncludeIframeOnlyStream: [, __expectBoolean, `includeIframeOnlyStream`],
1462
+ PeriodTriggers: [, _json, `periodTriggers`],
1463
+ SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
1464
+ SegmentTemplateFormat: [, __expectString, `segmentTemplateFormat`],
1465
+ });
1681
1466
  };
1682
1467
  const de_EgressAccessLogs = (output, context) => {
1683
- return {
1684
- LogGroupName: __expectString(output.logGroupName),
1685
- };
1468
+ return take(output, {
1469
+ LogGroupName: [, __expectString, `logGroupName`],
1470
+ });
1686
1471
  };
1687
1472
  const de_EgressEndpoint = (output, context) => {
1688
- return {
1689
- PackagingConfigurationId: __expectString(output.packagingConfigurationId),
1690
- Status: __expectString(output.status),
1691
- Url: __expectString(output.url),
1692
- };
1473
+ return take(output, {
1474
+ PackagingConfigurationId: [, __expectString, `packagingConfigurationId`],
1475
+ Status: [, __expectString, `status`],
1476
+ Url: [, __expectString, `url`],
1477
+ });
1693
1478
  };
1694
1479
  const de_EncryptionContractConfiguration = (output, context) => {
1695
- return {
1696
- PresetSpeke20Audio: __expectString(output.presetSpeke20Audio),
1697
- PresetSpeke20Video: __expectString(output.presetSpeke20Video),
1698
- };
1480
+ return take(output, {
1481
+ PresetSpeke20Audio: [, __expectString, `presetSpeke20Audio`],
1482
+ PresetSpeke20Video: [, __expectString, `presetSpeke20Video`],
1483
+ });
1699
1484
  };
1700
1485
  const de_HlsEncryption = (output, context) => {
1701
- return {
1702
- ConstantInitializationVector: __expectString(output.constantInitializationVector),
1703
- EncryptionMethod: __expectString(output.encryptionMethod),
1704
- SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1705
- };
1486
+ return take(output, {
1487
+ ConstantInitializationVector: [, __expectString, `constantInitializationVector`],
1488
+ EncryptionMethod: [, __expectString, `encryptionMethod`],
1489
+ SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
1490
+ });
1706
1491
  };
1707
1492
  const de_HlsManifest = (output, context) => {
1708
- return {
1709
- AdMarkers: __expectString(output.adMarkers),
1710
- IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
1711
- ManifestName: __expectString(output.manifestName),
1712
- ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
1713
- RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
1714
- StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1715
- };
1493
+ return take(output, {
1494
+ AdMarkers: [, __expectString, `adMarkers`],
1495
+ IncludeIframeOnlyStream: [, __expectBoolean, `includeIframeOnlyStream`],
1496
+ ManifestName: [, __expectString, `manifestName`],
1497
+ ProgramDateTimeIntervalSeconds: [, __expectInt32, `programDateTimeIntervalSeconds`],
1498
+ RepeatExtXKey: [, __expectBoolean, `repeatExtXKey`],
1499
+ StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
1500
+ });
1716
1501
  };
1717
1502
  const de_HlsPackage = (output, context) => {
1718
- return {
1719
- Encryption: output.encryption != null ? de_HlsEncryption(output.encryption, context) : undefined,
1720
- HlsManifests: output.hlsManifests != null ? de___listOfHlsManifest(output.hlsManifests, context) : undefined,
1721
- IncludeDvbSubtitles: __expectBoolean(output.includeDvbSubtitles),
1722
- SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1723
- UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
1724
- };
1503
+ return take(output, {
1504
+ Encryption: (_) => [, de_HlsEncryption(_, context), `encryption`],
1505
+ HlsManifests: (_) => [, de___listOfHlsManifest(_, context), `hlsManifests`],
1506
+ IncludeDvbSubtitles: [, __expectBoolean, `includeDvbSubtitles`],
1507
+ SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
1508
+ UseAudioRenditionGroup: [, __expectBoolean, `useAudioRenditionGroup`],
1509
+ });
1725
1510
  };
1726
1511
  const de_MssEncryption = (output, context) => {
1727
- return {
1728
- SpekeKeyProvider: output.spekeKeyProvider != null ? de_SpekeKeyProvider(output.spekeKeyProvider, context) : undefined,
1729
- };
1512
+ return take(output, {
1513
+ SpekeKeyProvider: (_) => [, de_SpekeKeyProvider(_, context), `spekeKeyProvider`],
1514
+ });
1730
1515
  };
1731
1516
  const de_MssManifest = (output, context) => {
1732
- return {
1733
- ManifestName: __expectString(output.manifestName),
1734
- StreamSelection: output.streamSelection != null ? de_StreamSelection(output.streamSelection, context) : undefined,
1735
- };
1517
+ return take(output, {
1518
+ ManifestName: [, __expectString, `manifestName`],
1519
+ StreamSelection: (_) => [, de_StreamSelection(_, context), `streamSelection`],
1520
+ });
1736
1521
  };
1737
1522
  const de_MssPackage = (output, context) => {
1738
- return {
1739
- Encryption: output.encryption != null ? de_MssEncryption(output.encryption, context) : undefined,
1740
- MssManifests: output.mssManifests != null ? de___listOfMssManifest(output.mssManifests, context) : undefined,
1741
- SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
1742
- };
1523
+ return take(output, {
1524
+ Encryption: (_) => [, de_MssEncryption(_, context), `encryption`],
1525
+ MssManifests: (_) => [, de___listOfMssManifest(_, context), `mssManifests`],
1526
+ SegmentDurationSeconds: [, __expectInt32, `segmentDurationSeconds`],
1527
+ });
1743
1528
  };
1744
1529
  const de_PackagingConfiguration = (output, context) => {
1745
- return {
1746
- Arn: __expectString(output.arn),
1747
- CmafPackage: output.cmafPackage != null ? de_CmafPackage(output.cmafPackage, context) : undefined,
1748
- CreatedAt: __expectString(output.createdAt),
1749
- DashPackage: output.dashPackage != null ? de_DashPackage(output.dashPackage, context) : undefined,
1750
- HlsPackage: output.hlsPackage != null ? de_HlsPackage(output.hlsPackage, context) : undefined,
1751
- Id: __expectString(output.id),
1752
- MssPackage: output.mssPackage != null ? de_MssPackage(output.mssPackage, context) : undefined,
1753
- PackagingGroupId: __expectString(output.packagingGroupId),
1754
- Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1755
- };
1530
+ return take(output, {
1531
+ Arn: [, __expectString, `arn`],
1532
+ CmafPackage: (_) => [, de_CmafPackage(_, context), `cmafPackage`],
1533
+ CreatedAt: [, __expectString, `createdAt`],
1534
+ DashPackage: (_) => [, de_DashPackage(_, context), `dashPackage`],
1535
+ HlsPackage: (_) => [, de_HlsPackage(_, context), `hlsPackage`],
1536
+ Id: [, __expectString, `id`],
1537
+ MssPackage: (_) => [, de_MssPackage(_, context), `mssPackage`],
1538
+ PackagingGroupId: [, __expectString, `packagingGroupId`],
1539
+ Tags: [, _json, `tags`],
1540
+ });
1756
1541
  };
1757
1542
  const de_PackagingGroup = (output, context) => {
1758
- return {
1759
- ApproximateAssetCount: __expectInt32(output.approximateAssetCount),
1760
- Arn: __expectString(output.arn),
1761
- Authorization: output.authorization != null ? de_Authorization(output.authorization, context) : undefined,
1762
- CreatedAt: __expectString(output.createdAt),
1763
- DomainName: __expectString(output.domainName),
1764
- EgressAccessLogs: output.egressAccessLogs != null ? de_EgressAccessLogs(output.egressAccessLogs, context) : undefined,
1765
- Id: __expectString(output.id),
1766
- Tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
1767
- };
1543
+ return take(output, {
1544
+ ApproximateAssetCount: [, __expectInt32, `approximateAssetCount`],
1545
+ Arn: [, __expectString, `arn`],
1546
+ Authorization: (_) => [, de_Authorization(_, context), `authorization`],
1547
+ CreatedAt: [, __expectString, `createdAt`],
1548
+ DomainName: [, __expectString, `domainName`],
1549
+ EgressAccessLogs: (_) => [, de_EgressAccessLogs(_, context), `egressAccessLogs`],
1550
+ Id: [, __expectString, `id`],
1551
+ Tags: [, _json, `tags`],
1552
+ });
1768
1553
  };
1769
1554
  const de_SpekeKeyProvider = (output, context) => {
1770
- return {
1771
- EncryptionContractConfiguration: output.encryptionContractConfiguration != null
1772
- ? de_EncryptionContractConfiguration(output.encryptionContractConfiguration, context)
1773
- : undefined,
1774
- RoleArn: __expectString(output.roleArn),
1775
- SystemIds: output.systemIds != null ? de___listOf__string(output.systemIds, context) : undefined,
1776
- Url: __expectString(output.url),
1777
- };
1555
+ return take(output, {
1556
+ EncryptionContractConfiguration: (_) => [
1557
+ ,
1558
+ de_EncryptionContractConfiguration(_, context),
1559
+ `encryptionContractConfiguration`,
1560
+ ],
1561
+ RoleArn: [, __expectString, `roleArn`],
1562
+ SystemIds: [, _json, `systemIds`],
1563
+ Url: [, __expectString, `url`],
1564
+ });
1778
1565
  };
1779
1566
  const de_StreamSelection = (output, context) => {
1780
- return {
1781
- MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond),
1782
- MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond),
1783
- StreamOrder: __expectString(output.streamOrder),
1784
- };
1785
- };
1786
- const de_Tags = (output, context) => {
1787
- return Object.entries(output).reduce((acc, [key, value]) => {
1788
- if (value === null) {
1789
- return acc;
1790
- }
1791
- acc[key] = __expectString(value);
1792
- return acc;
1793
- }, {});
1567
+ return take(output, {
1568
+ MaxVideoBitsPerSecond: [, __expectInt32, `maxVideoBitsPerSecond`],
1569
+ MinVideoBitsPerSecond: [, __expectInt32, `minVideoBitsPerSecond`],
1570
+ StreamOrder: [, __expectString, `streamOrder`],
1571
+ });
1794
1572
  };
1795
1573
  const deserializeMetadata = (output) => ({
1796
1574
  httpStatusCode: output.statusCode,