@aws-sdk/client-ivs 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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1BatchGetChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
6
  return __generator(this, function (_c) {
@@ -666,9 +666,9 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
666
666
  });
667
667
  }); };
668
668
  export var deserializeAws_restJson1BatchGetChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
669
- var contents, data;
670
- return __generator(this, function (_a) {
671
- switch (_a.label) {
669
+ var contents, data, _a, _b;
670
+ return __generator(this, function (_c) {
671
+ switch (_c.label) {
672
672
  case 0:
673
673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
674
674
  return [2 /*return*/, deserializeAws_restJson1BatchGetChannelCommandError(output, context)];
@@ -678,9 +678,11 @@ export var deserializeAws_restJson1BatchGetChannelCommand = function (output, co
678
678
  channels: undefined,
679
679
  errors: undefined,
680
680
  };
681
+ _a = __expectNonNull;
682
+ _b = __expectObject;
681
683
  return [4 /*yield*/, parseBody(output.body, context)];
682
684
  case 1:
683
- data = _a.sent();
685
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
684
686
  if (data.channels !== undefined && data.channels !== null) {
685
687
  contents.channels = deserializeAws_restJson1Channels(data.channels, context);
686
688
  }
@@ -718,9 +720,9 @@ var deserializeAws_restJson1BatchGetChannelCommandError = function (output, cont
718
720
  });
719
721
  }); };
720
722
  export var deserializeAws_restJson1BatchGetStreamKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
721
- var contents, data;
722
- return __generator(this, function (_a) {
723
- switch (_a.label) {
723
+ var contents, data, _a, _b;
724
+ return __generator(this, function (_c) {
725
+ switch (_c.label) {
724
726
  case 0:
725
727
  if (output.statusCode !== 200 && output.statusCode >= 300) {
726
728
  return [2 /*return*/, deserializeAws_restJson1BatchGetStreamKeyCommandError(output, context)];
@@ -730,9 +732,11 @@ export var deserializeAws_restJson1BatchGetStreamKeyCommand = function (output,
730
732
  errors: undefined,
731
733
  streamKeys: undefined,
732
734
  };
735
+ _a = __expectNonNull;
736
+ _b = __expectObject;
733
737
  return [4 /*yield*/, parseBody(output.body, context)];
734
738
  case 1:
735
- data = _a.sent();
739
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
736
740
  if (data.errors !== undefined && data.errors !== null) {
737
741
  contents.errors = deserializeAws_restJson1BatchErrors(data.errors, context);
738
742
  }
@@ -770,9 +774,9 @@ var deserializeAws_restJson1BatchGetStreamKeyCommandError = function (output, co
770
774
  });
771
775
  }); };
772
776
  export var deserializeAws_restJson1CreateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
773
- var contents, data;
774
- return __generator(this, function (_a) {
775
- switch (_a.label) {
777
+ var contents, data, _a, _b;
778
+ return __generator(this, function (_c) {
779
+ switch (_c.label) {
776
780
  case 0:
777
781
  if (output.statusCode !== 200 && output.statusCode >= 300) {
778
782
  return [2 /*return*/, deserializeAws_restJson1CreateChannelCommandError(output, context)];
@@ -782,9 +786,11 @@ export var deserializeAws_restJson1CreateChannelCommand = function (output, cont
782
786
  channel: undefined,
783
787
  streamKey: undefined,
784
788
  };
789
+ _a = __expectNonNull;
790
+ _b = __expectObject;
785
791
  return [4 /*yield*/, parseBody(output.body, context)];
786
792
  case 1:
787
- data = _a.sent();
793
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
788
794
  if (data.channel !== undefined && data.channel !== null) {
789
795
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
790
796
  }
@@ -866,9 +872,9 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
866
872
  });
867
873
  }); };
868
874
  export var deserializeAws_restJson1CreateRecordingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
869
- var contents, data;
870
- return __generator(this, function (_a) {
871
- switch (_a.label) {
875
+ var contents, data, _a, _b;
876
+ return __generator(this, function (_c) {
877
+ switch (_c.label) {
872
878
  case 0:
873
879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
874
880
  return [2 /*return*/, deserializeAws_restJson1CreateRecordingConfigurationCommandError(output, context)];
@@ -877,9 +883,11 @@ export var deserializeAws_restJson1CreateRecordingConfigurationCommand = functio
877
883
  $metadata: deserializeMetadata(output),
878
884
  recordingConfiguration: undefined,
879
885
  };
886
+ _a = __expectNonNull;
887
+ _b = __expectObject;
880
888
  return [4 /*yield*/, parseBody(output.body, context)];
881
889
  case 1:
882
- data = _a.sent();
890
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
883
891
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
884
892
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
885
893
  }
@@ -966,9 +974,9 @@ var deserializeAws_restJson1CreateRecordingConfigurationCommandError = function
966
974
  });
967
975
  }); };
968
976
  export var deserializeAws_restJson1CreateStreamKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
969
- var contents, data;
970
- return __generator(this, function (_a) {
971
- switch (_a.label) {
977
+ var contents, data, _a, _b;
978
+ return __generator(this, function (_c) {
979
+ switch (_c.label) {
972
980
  case 0:
973
981
  if (output.statusCode !== 200 && output.statusCode >= 300) {
974
982
  return [2 /*return*/, deserializeAws_restJson1CreateStreamKeyCommandError(output, context)];
@@ -977,9 +985,11 @@ export var deserializeAws_restJson1CreateStreamKeyCommand = function (output, co
977
985
  $metadata: deserializeMetadata(output),
978
986
  streamKey: undefined,
979
987
  };
988
+ _a = __expectNonNull;
989
+ _b = __expectObject;
980
990
  return [4 /*yield*/, parseBody(output.body, context)];
981
991
  case 1:
982
- data = _a.sent();
992
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
983
993
  if (data.streamKey !== undefined && data.streamKey !== null) {
984
994
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
985
995
  }
@@ -1394,9 +1404,9 @@ var deserializeAws_restJson1DeleteStreamKeyCommandError = function (output, cont
1394
1404
  });
1395
1405
  }); };
1396
1406
  export var deserializeAws_restJson1GetChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1397
- var contents, data;
1398
- return __generator(this, function (_a) {
1399
- switch (_a.label) {
1407
+ var contents, data, _a, _b;
1408
+ return __generator(this, function (_c) {
1409
+ switch (_c.label) {
1400
1410
  case 0:
1401
1411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1402
1412
  return [2 /*return*/, deserializeAws_restJson1GetChannelCommandError(output, context)];
@@ -1405,9 +1415,11 @@ export var deserializeAws_restJson1GetChannelCommand = function (output, context
1405
1415
  $metadata: deserializeMetadata(output),
1406
1416
  channel: undefined,
1407
1417
  };
1418
+ _a = __expectNonNull;
1419
+ _b = __expectObject;
1408
1420
  return [4 /*yield*/, parseBody(output.body, context)];
1409
1421
  case 1:
1410
- data = _a.sent();
1422
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1411
1423
  if (data.channel !== undefined && data.channel !== null) {
1412
1424
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
1413
1425
  }
@@ -1470,9 +1482,9 @@ var deserializeAws_restJson1GetChannelCommandError = function (output, context)
1470
1482
  });
1471
1483
  }); };
1472
1484
  export var deserializeAws_restJson1GetPlaybackKeyPairCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1473
- var contents, data;
1474
- return __generator(this, function (_a) {
1475
- switch (_a.label) {
1485
+ var contents, data, _a, _b;
1486
+ return __generator(this, function (_c) {
1487
+ switch (_c.label) {
1476
1488
  case 0:
1477
1489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1478
1490
  return [2 /*return*/, deserializeAws_restJson1GetPlaybackKeyPairCommandError(output, context)];
@@ -1481,9 +1493,11 @@ export var deserializeAws_restJson1GetPlaybackKeyPairCommand = function (output,
1481
1493
  $metadata: deserializeMetadata(output),
1482
1494
  keyPair: undefined,
1483
1495
  };
1496
+ _a = __expectNonNull;
1497
+ _b = __expectObject;
1484
1498
  return [4 /*yield*/, parseBody(output.body, context)];
1485
1499
  case 1:
1486
- data = _a.sent();
1500
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1487
1501
  if (data.keyPair !== undefined && data.keyPair !== null) {
1488
1502
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1489
1503
  }
@@ -1546,9 +1560,9 @@ var deserializeAws_restJson1GetPlaybackKeyPairCommandError = function (output, c
1546
1560
  });
1547
1561
  }); };
1548
1562
  export var deserializeAws_restJson1GetRecordingConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1549
- var contents, data;
1550
- return __generator(this, function (_a) {
1551
- switch (_a.label) {
1563
+ var contents, data, _a, _b;
1564
+ return __generator(this, function (_c) {
1565
+ switch (_c.label) {
1552
1566
  case 0:
1553
1567
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1554
1568
  return [2 /*return*/, deserializeAws_restJson1GetRecordingConfigurationCommandError(output, context)];
@@ -1557,9 +1571,11 @@ export var deserializeAws_restJson1GetRecordingConfigurationCommand = function (
1557
1571
  $metadata: deserializeMetadata(output),
1558
1572
  recordingConfiguration: undefined,
1559
1573
  };
1574
+ _a = __expectNonNull;
1575
+ _b = __expectObject;
1560
1576
  return [4 /*yield*/, parseBody(output.body, context)];
1561
1577
  case 1:
1562
- data = _a.sent();
1578
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1563
1579
  if (data.recordingConfiguration !== undefined && data.recordingConfiguration !== null) {
1564
1580
  contents.recordingConfiguration = deserializeAws_restJson1RecordingConfiguration(data.recordingConfiguration, context);
1565
1581
  }
@@ -1630,9 +1646,9 @@ var deserializeAws_restJson1GetRecordingConfigurationCommandError = function (ou
1630
1646
  });
1631
1647
  }); };
1632
1648
  export var deserializeAws_restJson1GetStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1633
- var contents, data;
1634
- return __generator(this, function (_a) {
1635
- switch (_a.label) {
1649
+ var contents, data, _a, _b;
1650
+ return __generator(this, function (_c) {
1651
+ switch (_c.label) {
1636
1652
  case 0:
1637
1653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1638
1654
  return [2 /*return*/, deserializeAws_restJson1GetStreamCommandError(output, context)];
@@ -1641,9 +1657,11 @@ export var deserializeAws_restJson1GetStreamCommand = function (output, context)
1641
1657
  $metadata: deserializeMetadata(output),
1642
1658
  stream: undefined,
1643
1659
  };
1660
+ _a = __expectNonNull;
1661
+ _b = __expectObject;
1644
1662
  return [4 /*yield*/, parseBody(output.body, context)];
1645
1663
  case 1:
1646
- data = _a.sent();
1664
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1647
1665
  if (data.stream !== undefined && data.stream !== null) {
1648
1666
  contents.stream = deserializeAws_restJson1_Stream(data.stream, context);
1649
1667
  }
@@ -1714,9 +1732,9 @@ var deserializeAws_restJson1GetStreamCommandError = function (output, context) {
1714
1732
  });
1715
1733
  }); };
1716
1734
  export var deserializeAws_restJson1GetStreamKeyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1717
- var contents, data;
1718
- return __generator(this, function (_a) {
1719
- switch (_a.label) {
1735
+ var contents, data, _a, _b;
1736
+ return __generator(this, function (_c) {
1737
+ switch (_c.label) {
1720
1738
  case 0:
1721
1739
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1722
1740
  return [2 /*return*/, deserializeAws_restJson1GetStreamKeyCommandError(output, context)];
@@ -1725,9 +1743,11 @@ export var deserializeAws_restJson1GetStreamKeyCommand = function (output, conte
1725
1743
  $metadata: deserializeMetadata(output),
1726
1744
  streamKey: undefined,
1727
1745
  };
1746
+ _a = __expectNonNull;
1747
+ _b = __expectObject;
1728
1748
  return [4 /*yield*/, parseBody(output.body, context)];
1729
1749
  case 1:
1730
- data = _a.sent();
1750
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1731
1751
  if (data.streamKey !== undefined && data.streamKey !== null) {
1732
1752
  contents.streamKey = deserializeAws_restJson1StreamKey(data.streamKey, context);
1733
1753
  }
@@ -1790,9 +1810,9 @@ var deserializeAws_restJson1GetStreamKeyCommandError = function (output, context
1790
1810
  });
1791
1811
  }); };
1792
1812
  export var deserializeAws_restJson1ImportPlaybackKeyPairCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1793
- var contents, data;
1794
- return __generator(this, function (_a) {
1795
- switch (_a.label) {
1813
+ var contents, data, _a, _b;
1814
+ return __generator(this, function (_c) {
1815
+ switch (_c.label) {
1796
1816
  case 0:
1797
1817
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1798
1818
  return [2 /*return*/, deserializeAws_restJson1ImportPlaybackKeyPairCommandError(output, context)];
@@ -1801,9 +1821,11 @@ export var deserializeAws_restJson1ImportPlaybackKeyPairCommand = function (outp
1801
1821
  $metadata: deserializeMetadata(output),
1802
1822
  keyPair: undefined,
1803
1823
  };
1824
+ _a = __expectNonNull;
1825
+ _b = __expectObject;
1804
1826
  return [4 /*yield*/, parseBody(output.body, context)];
1805
1827
  case 1:
1806
- data = _a.sent();
1828
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1807
1829
  if (data.keyPair !== undefined && data.keyPair !== null) {
1808
1830
  contents.keyPair = deserializeAws_restJson1PlaybackKeyPair(data.keyPair, context);
1809
1831
  }
@@ -1882,9 +1904,9 @@ var deserializeAws_restJson1ImportPlaybackKeyPairCommandError = function (output
1882
1904
  });
1883
1905
  }); };
1884
1906
  export var deserializeAws_restJson1ListChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1885
- var contents, data;
1886
- return __generator(this, function (_a) {
1887
- switch (_a.label) {
1907
+ var contents, data, _a, _b;
1908
+ return __generator(this, function (_c) {
1909
+ switch (_c.label) {
1888
1910
  case 0:
1889
1911
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1890
1912
  return [2 /*return*/, deserializeAws_restJson1ListChannelsCommandError(output, context)];
@@ -1894,9 +1916,11 @@ export var deserializeAws_restJson1ListChannelsCommand = function (output, conte
1894
1916
  channels: undefined,
1895
1917
  nextToken: undefined,
1896
1918
  };
1919
+ _a = __expectNonNull;
1920
+ _b = __expectObject;
1897
1921
  return [4 /*yield*/, parseBody(output.body, context)];
1898
1922
  case 1:
1899
- data = _a.sent();
1923
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1900
1924
  if (data.channels !== undefined && data.channels !== null) {
1901
1925
  contents.channels = deserializeAws_restJson1ChannelList(data.channels, context);
1902
1926
  }
@@ -1962,9 +1986,9 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
1962
1986
  });
1963
1987
  }); };
1964
1988
  export var deserializeAws_restJson1ListPlaybackKeyPairsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
1965
- var contents, data;
1966
- return __generator(this, function (_a) {
1967
- switch (_a.label) {
1989
+ var contents, data, _a, _b;
1990
+ return __generator(this, function (_c) {
1991
+ switch (_c.label) {
1968
1992
  case 0:
1969
1993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1970
1994
  return [2 /*return*/, deserializeAws_restJson1ListPlaybackKeyPairsCommandError(output, context)];
@@ -1974,9 +1998,11 @@ export var deserializeAws_restJson1ListPlaybackKeyPairsCommand = function (outpu
1974
1998
  keyPairs: undefined,
1975
1999
  nextToken: undefined,
1976
2000
  };
2001
+ _a = __expectNonNull;
2002
+ _b = __expectObject;
1977
2003
  return [4 /*yield*/, parseBody(output.body, context)];
1978
2004
  case 1:
1979
- data = _a.sent();
2005
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
1980
2006
  if (data.keyPairs !== undefined && data.keyPairs !== null) {
1981
2007
  contents.keyPairs = deserializeAws_restJson1PlaybackKeyPairList(data.keyPairs, context);
1982
2008
  }
@@ -2034,9 +2060,9 @@ var deserializeAws_restJson1ListPlaybackKeyPairsCommandError = function (output,
2034
2060
  });
2035
2061
  }); };
2036
2062
  export var deserializeAws_restJson1ListRecordingConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2037
- var contents, data;
2038
- return __generator(this, function (_a) {
2039
- switch (_a.label) {
2063
+ var contents, data, _a, _b;
2064
+ return __generator(this, function (_c) {
2065
+ switch (_c.label) {
2040
2066
  case 0:
2041
2067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2042
2068
  return [2 /*return*/, deserializeAws_restJson1ListRecordingConfigurationsCommandError(output, context)];
@@ -2046,9 +2072,11 @@ export var deserializeAws_restJson1ListRecordingConfigurationsCommand = function
2046
2072
  nextToken: undefined,
2047
2073
  recordingConfigurations: undefined,
2048
2074
  };
2075
+ _a = __expectNonNull;
2076
+ _b = __expectObject;
2049
2077
  return [4 /*yield*/, parseBody(output.body, context)];
2050
2078
  case 1:
2051
- data = _a.sent();
2079
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2052
2080
  if (data.nextToken !== undefined && data.nextToken !== null) {
2053
2081
  contents.nextToken = __expectString(data.nextToken);
2054
2082
  }
@@ -2114,9 +2142,9 @@ var deserializeAws_restJson1ListRecordingConfigurationsCommandError = function (
2114
2142
  });
2115
2143
  }); };
2116
2144
  export var deserializeAws_restJson1ListStreamKeysCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2117
- var contents, data;
2118
- return __generator(this, function (_a) {
2119
- switch (_a.label) {
2145
+ var contents, data, _a, _b;
2146
+ return __generator(this, function (_c) {
2147
+ switch (_c.label) {
2120
2148
  case 0:
2121
2149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2122
2150
  return [2 /*return*/, deserializeAws_restJson1ListStreamKeysCommandError(output, context)];
@@ -2126,9 +2154,11 @@ export var deserializeAws_restJson1ListStreamKeysCommand = function (output, con
2126
2154
  nextToken: undefined,
2127
2155
  streamKeys: undefined,
2128
2156
  };
2157
+ _a = __expectNonNull;
2158
+ _b = __expectObject;
2129
2159
  return [4 /*yield*/, parseBody(output.body, context)];
2130
2160
  case 1:
2131
- data = _a.sent();
2161
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2132
2162
  if (data.nextToken !== undefined && data.nextToken !== null) {
2133
2163
  contents.nextToken = __expectString(data.nextToken);
2134
2164
  }
@@ -2194,9 +2224,9 @@ var deserializeAws_restJson1ListStreamKeysCommandError = function (output, conte
2194
2224
  });
2195
2225
  }); };
2196
2226
  export var deserializeAws_restJson1ListStreamsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2197
- var contents, data;
2198
- return __generator(this, function (_a) {
2199
- switch (_a.label) {
2227
+ var contents, data, _a, _b;
2228
+ return __generator(this, function (_c) {
2229
+ switch (_c.label) {
2200
2230
  case 0:
2201
2231
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2202
2232
  return [2 /*return*/, deserializeAws_restJson1ListStreamsCommandError(output, context)];
@@ -2206,9 +2236,11 @@ export var deserializeAws_restJson1ListStreamsCommand = function (output, contex
2206
2236
  nextToken: undefined,
2207
2237
  streams: undefined,
2208
2238
  };
2239
+ _a = __expectNonNull;
2240
+ _b = __expectObject;
2209
2241
  return [4 /*yield*/, parseBody(output.body, context)];
2210
2242
  case 1:
2211
- data = _a.sent();
2243
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2212
2244
  if (data.nextToken !== undefined && data.nextToken !== null) {
2213
2245
  contents.nextToken = __expectString(data.nextToken);
2214
2246
  }
@@ -2258,9 +2290,9 @@ var deserializeAws_restJson1ListStreamsCommandError = function (output, context)
2258
2290
  });
2259
2291
  }); };
2260
2292
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2261
- var contents, data;
2262
- return __generator(this, function (_a) {
2263
- switch (_a.label) {
2293
+ var contents, data, _a, _b;
2294
+ return __generator(this, function (_c) {
2295
+ switch (_c.label) {
2264
2296
  case 0:
2265
2297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2266
2298
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -2270,9 +2302,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
2270
2302
  nextToken: undefined,
2271
2303
  tags: undefined,
2272
2304
  };
2305
+ _a = __expectNonNull;
2306
+ _b = __expectObject;
2273
2307
  return [4 /*yield*/, parseBody(output.body, context)];
2274
2308
  case 1:
2275
- data = _a.sent();
2309
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2276
2310
  if (data.nextToken !== undefined && data.nextToken !== null) {
2277
2311
  contents.nextToken = __expectString(data.nextToken);
2278
2312
  }
@@ -2658,9 +2692,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
2658
2692
  });
2659
2693
  }); };
2660
2694
  export var deserializeAws_restJson1UpdateChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2661
- var contents, data;
2662
- return __generator(this, function (_a) {
2663
- switch (_a.label) {
2695
+ var contents, data, _a, _b;
2696
+ return __generator(this, function (_c) {
2697
+ switch (_c.label) {
2664
2698
  case 0:
2665
2699
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2666
2700
  return [2 /*return*/, deserializeAws_restJson1UpdateChannelCommandError(output, context)];
@@ -2669,9 +2703,11 @@ export var deserializeAws_restJson1UpdateChannelCommand = function (output, cont
2669
2703
  $metadata: deserializeMetadata(output),
2670
2704
  channel: undefined,
2671
2705
  };
2706
+ _a = __expectNonNull;
2707
+ _b = __expectObject;
2672
2708
  return [4 /*yield*/, parseBody(output.body, context)];
2673
2709
  case 1:
2674
- data = _a.sent();
2710
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2675
2711
  if (data.channel !== undefined && data.channel !== null) {
2676
2712
  contents.channel = deserializeAws_restJson1Channel(data.channel, context);
2677
2713
  }
@@ -3092,9 +3128,11 @@ var deserializeAws_restJson1_Stream = function (output, context) {
3092
3128
  channelArn: __expectString(output.channelArn),
3093
3129
  health: __expectString(output.health),
3094
3130
  playbackUrl: __expectString(output.playbackUrl),
3095
- startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined,
3131
+ startTime: output.startTime !== undefined && output.startTime !== null
3132
+ ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
3133
+ : undefined,
3096
3134
  state: __expectString(output.state),
3097
- viewerCount: __expectInt(output.viewerCount),
3135
+ viewerCount: __expectLong(output.viewerCount),
3098
3136
  };
3099
3137
  };
3100
3138
  var deserializeAws_restJson1StreamKey = function (output, context) {
@@ -3150,9 +3188,11 @@ var deserializeAws_restJson1StreamSummary = function (output, context) {
3150
3188
  return {
3151
3189
  channelArn: __expectString(output.channelArn),
3152
3190
  health: __expectString(output.health),
3153
- startTime: output.startTime !== undefined && output.startTime !== null ? new Date(output.startTime) : undefined,
3191
+ startTime: output.startTime !== undefined && output.startTime !== null
3192
+ ? __expectNonNull(__parseRfc3339DateTime(output.startTime))
3193
+ : undefined,
3154
3194
  state: __expectString(output.state),
3155
- viewerCount: __expectInt(output.viewerCount),
3195
+ viewerCount: __expectLong(output.viewerCount),
3156
3196
  };
3157
3197
  };
3158
3198
  var deserializeAws_restJson1Tags = function (output, context) {