@aws-sdk/client-mediapackage-vod 3.28.0 → 3.32.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 { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { expectBoolean as __expectBoolean, expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1ConfigureLogsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
6
6
  return __generator(this, function (_c) {
@@ -514,9 +514,9 @@ export var serializeAws_restJson1UpdatePackagingGroupCommand = function (input,
514
514
  });
515
515
  }); };
516
516
  export var deserializeAws_restJson1ConfigureLogsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
517
- var contents, data;
518
- return __generator(this, function (_a) {
519
- switch (_a.label) {
517
+ var contents, data, _a, _b;
518
+ return __generator(this, function (_c) {
519
+ switch (_c.label) {
520
520
  case 0:
521
521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
522
522
  return [2 /*return*/, deserializeAws_restJson1ConfigureLogsCommandError(output, context)];
@@ -530,9 +530,11 @@ export var deserializeAws_restJson1ConfigureLogsCommand = function (output, cont
530
530
  Id: undefined,
531
531
  Tags: undefined,
532
532
  };
533
+ _a = __expectNonNull;
534
+ _b = __expectObject;
533
535
  return [4 /*yield*/, parseBody(output.body, context)];
534
536
  case 1:
535
- data = _a.sent();
537
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
536
538
  if (data.arn !== undefined && data.arn !== null) {
537
539
  contents.Arn = __expectString(data.arn);
538
540
  }
@@ -634,9 +636,9 @@ var deserializeAws_restJson1ConfigureLogsCommandError = function (output, contex
634
636
  });
635
637
  }); };
636
638
  export var deserializeAws_restJson1CreateAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
637
- var contents, data;
638
- return __generator(this, function (_a) {
639
- switch (_a.label) {
639
+ var contents, data, _a, _b;
640
+ return __generator(this, function (_c) {
641
+ switch (_c.label) {
640
642
  case 0:
641
643
  if (output.statusCode !== 200 && output.statusCode >= 300) {
642
644
  return [2 /*return*/, deserializeAws_restJson1CreateAssetCommandError(output, context)];
@@ -653,9 +655,11 @@ export var deserializeAws_restJson1CreateAssetCommand = function (output, contex
653
655
  SourceRoleArn: undefined,
654
656
  Tags: undefined,
655
657
  };
658
+ _a = __expectNonNull;
659
+ _b = __expectObject;
656
660
  return [4 /*yield*/, parseBody(output.body, context)];
657
661
  case 1:
658
- data = _a.sent();
662
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
659
663
  if (data.arn !== undefined && data.arn !== null) {
660
664
  contents.Arn = __expectString(data.arn);
661
665
  }
@@ -766,9 +770,9 @@ var deserializeAws_restJson1CreateAssetCommandError = function (output, context)
766
770
  });
767
771
  }); };
768
772
  export var deserializeAws_restJson1CreatePackagingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
769
- var contents, data;
770
- return __generator(this, function (_a) {
771
- switch (_a.label) {
773
+ var contents, data, _a, _b;
774
+ return __generator(this, function (_c) {
775
+ switch (_c.label) {
772
776
  case 0:
773
777
  if (output.statusCode !== 200 && output.statusCode >= 300) {
774
778
  return [2 /*return*/, deserializeAws_restJson1CreatePackagingConfigurationCommandError(output, context)];
@@ -784,9 +788,11 @@ export var deserializeAws_restJson1CreatePackagingConfigurationCommand = functio
784
788
  PackagingGroupId: undefined,
785
789
  Tags: undefined,
786
790
  };
791
+ _a = __expectNonNull;
792
+ _b = __expectObject;
787
793
  return [4 /*yield*/, parseBody(output.body, context)];
788
794
  case 1:
789
- data = _a.sent();
795
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
790
796
  if (data.arn !== undefined && data.arn !== null) {
791
797
  contents.Arn = __expectString(data.arn);
792
798
  }
@@ -894,9 +900,9 @@ var deserializeAws_restJson1CreatePackagingConfigurationCommandError = function
894
900
  });
895
901
  }); };
896
902
  export var deserializeAws_restJson1CreatePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
897
- var contents, data;
898
- return __generator(this, function (_a) {
899
- switch (_a.label) {
903
+ var contents, data, _a, _b;
904
+ return __generator(this, function (_c) {
905
+ switch (_c.label) {
900
906
  case 0:
901
907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
902
908
  return [2 /*return*/, deserializeAws_restJson1CreatePackagingGroupCommandError(output, context)];
@@ -910,9 +916,11 @@ export var deserializeAws_restJson1CreatePackagingGroupCommand = function (outpu
910
916
  Id: undefined,
911
917
  Tags: undefined,
912
918
  };
919
+ _a = __expectNonNull;
920
+ _b = __expectObject;
913
921
  return [4 /*yield*/, parseBody(output.body, context)];
914
922
  case 1:
915
- data = _a.sent();
923
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
916
924
  if (data.arn !== undefined && data.arn !== null) {
917
925
  contents.Arn = __expectString(data.arn);
918
926
  }
@@ -1302,9 +1310,9 @@ var deserializeAws_restJson1DeletePackagingGroupCommandError = function (output,
1302
1310
  });
1303
1311
  }); };
1304
1312
  export var deserializeAws_restJson1DescribeAssetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1305
- var contents, data;
1306
- return __generator(this, function (_a) {
1307
- switch (_a.label) {
1313
+ var contents, data, _a, _b;
1314
+ return __generator(this, function (_c) {
1315
+ switch (_c.label) {
1308
1316
  case 0:
1309
1317
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
1318
  return [2 /*return*/, deserializeAws_restJson1DescribeAssetCommandError(output, context)];
@@ -1321,9 +1329,11 @@ export var deserializeAws_restJson1DescribeAssetCommand = function (output, cont
1321
1329
  SourceRoleArn: undefined,
1322
1330
  Tags: undefined,
1323
1331
  };
1332
+ _a = __expectNonNull;
1333
+ _b = __expectObject;
1324
1334
  return [4 /*yield*/, parseBody(output.body, context)];
1325
1335
  case 1:
1326
- data = _a.sent();
1336
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1327
1337
  if (data.arn !== undefined && data.arn !== null) {
1328
1338
  contents.Arn = __expectString(data.arn);
1329
1339
  }
@@ -1434,9 +1444,9 @@ var deserializeAws_restJson1DescribeAssetCommandError = function (output, contex
1434
1444
  });
1435
1445
  }); };
1436
1446
  export var deserializeAws_restJson1DescribePackagingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1437
- var contents, data;
1438
- return __generator(this, function (_a) {
1439
- switch (_a.label) {
1447
+ var contents, data, _a, _b;
1448
+ return __generator(this, function (_c) {
1449
+ switch (_c.label) {
1440
1450
  case 0:
1441
1451
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
1452
  return [2 /*return*/, deserializeAws_restJson1DescribePackagingConfigurationCommandError(output, context)];
@@ -1452,9 +1462,11 @@ export var deserializeAws_restJson1DescribePackagingConfigurationCommand = funct
1452
1462
  PackagingGroupId: undefined,
1453
1463
  Tags: undefined,
1454
1464
  };
1465
+ _a = __expectNonNull;
1466
+ _b = __expectObject;
1455
1467
  return [4 /*yield*/, parseBody(output.body, context)];
1456
1468
  case 1:
1457
- data = _a.sent();
1469
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1458
1470
  if (data.arn !== undefined && data.arn !== null) {
1459
1471
  contents.Arn = __expectString(data.arn);
1460
1472
  }
@@ -1562,9 +1574,9 @@ var deserializeAws_restJson1DescribePackagingConfigurationCommandError = functio
1562
1574
  });
1563
1575
  }); };
1564
1576
  export var deserializeAws_restJson1DescribePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1565
- var contents, data;
1566
- return __generator(this, function (_a) {
1567
- switch (_a.label) {
1577
+ var contents, data, _a, _b;
1578
+ return __generator(this, function (_c) {
1579
+ switch (_c.label) {
1568
1580
  case 0:
1569
1581
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1570
1582
  return [2 /*return*/, deserializeAws_restJson1DescribePackagingGroupCommandError(output, context)];
@@ -1578,9 +1590,11 @@ export var deserializeAws_restJson1DescribePackagingGroupCommand = function (out
1578
1590
  Id: undefined,
1579
1591
  Tags: undefined,
1580
1592
  };
1593
+ _a = __expectNonNull;
1594
+ _b = __expectObject;
1581
1595
  return [4 /*yield*/, parseBody(output.body, context)];
1582
1596
  case 1:
1583
- data = _a.sent();
1597
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1584
1598
  if (data.arn !== undefined && data.arn !== null) {
1585
1599
  contents.Arn = __expectString(data.arn);
1586
1600
  }
@@ -1682,9 +1696,9 @@ var deserializeAws_restJson1DescribePackagingGroupCommandError = function (outpu
1682
1696
  });
1683
1697
  }); };
1684
1698
  export var deserializeAws_restJson1ListAssetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1685
- var contents, data;
1686
- return __generator(this, function (_a) {
1687
- switch (_a.label) {
1699
+ var contents, data, _a, _b;
1700
+ return __generator(this, function (_c) {
1701
+ switch (_c.label) {
1688
1702
  case 0:
1689
1703
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1690
1704
  return [2 /*return*/, deserializeAws_restJson1ListAssetsCommandError(output, context)];
@@ -1694,9 +1708,11 @@ export var deserializeAws_restJson1ListAssetsCommand = function (output, context
1694
1708
  Assets: undefined,
1695
1709
  NextToken: undefined,
1696
1710
  };
1711
+ _a = __expectNonNull;
1712
+ _b = __expectObject;
1697
1713
  return [4 /*yield*/, parseBody(output.body, context)];
1698
1714
  case 1:
1699
- data = _a.sent();
1715
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1700
1716
  if (data.assets !== undefined && data.assets !== null) {
1701
1717
  contents.Assets = deserializeAws_restJson1__listOfAssetShallow(data.assets, context);
1702
1718
  }
@@ -1786,9 +1802,9 @@ var deserializeAws_restJson1ListAssetsCommandError = function (output, context)
1786
1802
  });
1787
1803
  }); };
1788
1804
  export var deserializeAws_restJson1ListPackagingConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1789
- var contents, data;
1790
- return __generator(this, function (_a) {
1791
- switch (_a.label) {
1805
+ var contents, data, _a, _b;
1806
+ return __generator(this, function (_c) {
1807
+ switch (_c.label) {
1792
1808
  case 0:
1793
1809
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1794
1810
  return [2 /*return*/, deserializeAws_restJson1ListPackagingConfigurationsCommandError(output, context)];
@@ -1798,9 +1814,11 @@ export var deserializeAws_restJson1ListPackagingConfigurationsCommand = function
1798
1814
  NextToken: undefined,
1799
1815
  PackagingConfigurations: undefined,
1800
1816
  };
1817
+ _a = __expectNonNull;
1818
+ _b = __expectObject;
1801
1819
  return [4 /*yield*/, parseBody(output.body, context)];
1802
1820
  case 1:
1803
- data = _a.sent();
1821
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1804
1822
  if (data.nextToken !== undefined && data.nextToken !== null) {
1805
1823
  contents.NextToken = __expectString(data.nextToken);
1806
1824
  }
@@ -1890,9 +1908,9 @@ var deserializeAws_restJson1ListPackagingConfigurationsCommandError = function (
1890
1908
  });
1891
1909
  }); };
1892
1910
  export var deserializeAws_restJson1ListPackagingGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1893
- var contents, data;
1894
- return __generator(this, function (_a) {
1895
- switch (_a.label) {
1911
+ var contents, data, _a, _b;
1912
+ return __generator(this, function (_c) {
1913
+ switch (_c.label) {
1896
1914
  case 0:
1897
1915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1898
1916
  return [2 /*return*/, deserializeAws_restJson1ListPackagingGroupsCommandError(output, context)];
@@ -1902,9 +1920,11 @@ export var deserializeAws_restJson1ListPackagingGroupsCommand = function (output
1902
1920
  NextToken: undefined,
1903
1921
  PackagingGroups: undefined,
1904
1922
  };
1923
+ _a = __expectNonNull;
1924
+ _b = __expectObject;
1905
1925
  return [4 /*yield*/, parseBody(output.body, context)];
1906
1926
  case 1:
1907
- data = _a.sent();
1927
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1908
1928
  if (data.nextToken !== undefined && data.nextToken !== null) {
1909
1929
  contents.NextToken = __expectString(data.nextToken);
1910
1930
  }
@@ -1994,9 +2014,9 @@ var deserializeAws_restJson1ListPackagingGroupsCommandError = function (output,
1994
2014
  });
1995
2015
  }); };
1996
2016
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1997
- var contents, data;
1998
- return __generator(this, function (_a) {
1999
- switch (_a.label) {
2017
+ var contents, data, _a, _b;
2018
+ return __generator(this, function (_c) {
2019
+ switch (_c.label) {
2000
2020
  case 0:
2001
2021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2002
2022
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -2005,9 +2025,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2005
2025
  $metadata: deserializeMetadata(output),
2006
2026
  Tags: undefined,
2007
2027
  };
2028
+ _a = __expectNonNull;
2029
+ _b = __expectObject;
2008
2030
  return [4 /*yield*/, parseBody(output.body, context)];
2009
2031
  case 1:
2010
- data = _a.sent();
2032
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2011
2033
  if (data.tags !== undefined && data.tags !== null) {
2012
2034
  contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
2013
2035
  }
@@ -2130,9 +2152,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2130
2152
  });
2131
2153
  }); };
2132
2154
  export var deserializeAws_restJson1UpdatePackagingGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2133
- var contents, data;
2134
- return __generator(this, function (_a) {
2135
- switch (_a.label) {
2155
+ var contents, data, _a, _b;
2156
+ return __generator(this, function (_c) {
2157
+ switch (_c.label) {
2136
2158
  case 0:
2137
2159
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2138
2160
  return [2 /*return*/, deserializeAws_restJson1UpdatePackagingGroupCommandError(output, context)];
@@ -2146,9 +2168,11 @@ export var deserializeAws_restJson1UpdatePackagingGroupCommand = function (outpu
2146
2168
  Id: undefined,
2147
2169
  Tags: undefined,
2148
2170
  };
2171
+ _a = __expectNonNull;
2172
+ _b = __expectObject;
2149
2173
  return [4 /*yield*/, parseBody(output.body, context)];
2150
2174
  case 1:
2151
- data = _a.sent();
2175
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2152
2176
  if (data.arn !== undefined && data.arn !== null) {
2153
2177
  contents.Arn = __expectString(data.arn);
2154
2178
  }
@@ -2667,7 +2691,7 @@ var deserializeAws_restJson1CmafPackage = function (output, context) {
2667
2691
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2668
2692
  : undefined,
2669
2693
  IncludeEncoderConfigurationInSegments: __expectBoolean(output.includeEncoderConfigurationInSegments),
2670
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2694
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2671
2695
  };
2672
2696
  };
2673
2697
  var deserializeAws_restJson1DashEncryption = function (output, context) {
@@ -2681,7 +2705,7 @@ var deserializeAws_restJson1DashManifest = function (output, context) {
2681
2705
  return {
2682
2706
  ManifestLayout: __expectString(output.manifestLayout),
2683
2707
  ManifestName: __expectString(output.manifestName),
2684
- MinBufferTimeSeconds: __expectInt(output.minBufferTimeSeconds),
2708
+ MinBufferTimeSeconds: __expectInt32(output.minBufferTimeSeconds),
2685
2709
  Profile: __expectString(output.profile),
2686
2710
  StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2687
2711
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
@@ -2700,7 +2724,7 @@ var deserializeAws_restJson1DashPackage = function (output, context) {
2700
2724
  PeriodTriggers: output.periodTriggers !== undefined && output.periodTriggers !== null
2701
2725
  ? deserializeAws_restJson1__listOf__PeriodTriggersElement(output.periodTriggers, context)
2702
2726
  : undefined,
2703
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2727
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2704
2728
  SegmentTemplateFormat: __expectString(output.segmentTemplateFormat),
2705
2729
  };
2706
2730
  };
@@ -2729,7 +2753,7 @@ var deserializeAws_restJson1HlsManifest = function (output, context) {
2729
2753
  AdMarkers: __expectString(output.adMarkers),
2730
2754
  IncludeIframeOnlyStream: __expectBoolean(output.includeIframeOnlyStream),
2731
2755
  ManifestName: __expectString(output.manifestName),
2732
- ProgramDateTimeIntervalSeconds: __expectInt(output.programDateTimeIntervalSeconds),
2756
+ ProgramDateTimeIntervalSeconds: __expectInt32(output.programDateTimeIntervalSeconds),
2733
2757
  RepeatExtXKey: __expectBoolean(output.repeatExtXKey),
2734
2758
  StreamSelection: output.streamSelection !== undefined && output.streamSelection !== null
2735
2759
  ? deserializeAws_restJson1StreamSelection(output.streamSelection, context)
@@ -2744,7 +2768,7 @@ var deserializeAws_restJson1HlsPackage = function (output, context) {
2744
2768
  HlsManifests: output.hlsManifests !== undefined && output.hlsManifests !== null
2745
2769
  ? deserializeAws_restJson1__listOfHlsManifest(output.hlsManifests, context)
2746
2770
  : undefined,
2747
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2771
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2748
2772
  UseAudioRenditionGroup: __expectBoolean(output.useAudioRenditionGroup),
2749
2773
  };
2750
2774
  };
@@ -2771,7 +2795,7 @@ var deserializeAws_restJson1MssPackage = function (output, context) {
2771
2795
  MssManifests: output.mssManifests !== undefined && output.mssManifests !== null
2772
2796
  ? deserializeAws_restJson1__listOfMssManifest(output.mssManifests, context)
2773
2797
  : undefined,
2774
- SegmentDurationSeconds: __expectInt(output.segmentDurationSeconds),
2798
+ SegmentDurationSeconds: __expectInt32(output.segmentDurationSeconds),
2775
2799
  };
2776
2800
  };
2777
2801
  var deserializeAws_restJson1PackagingConfiguration = function (output, context) {
@@ -2823,8 +2847,8 @@ var deserializeAws_restJson1SpekeKeyProvider = function (output, context) {
2823
2847
  };
2824
2848
  var deserializeAws_restJson1StreamSelection = function (output, context) {
2825
2849
  return {
2826
- MaxVideoBitsPerSecond: __expectInt(output.maxVideoBitsPerSecond),
2827
- MinVideoBitsPerSecond: __expectInt(output.minVideoBitsPerSecond),
2850
+ MaxVideoBitsPerSecond: __expectInt32(output.maxVideoBitsPerSecond),
2851
+ MinVideoBitsPerSecond: __expectInt32(output.minVideoBitsPerSecond),
2828
2852
  StreamOrder: __expectString(output.streamOrder),
2829
2853
  };
2830
2854
  };