@aws-sdk/client-ivs 3.180.0 → 3.183.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +34 -28
  3. package/dist-es/Ivs.js +114 -121
  4. package/dist-es/IvsClient.js +22 -28
  5. package/dist-es/commands/BatchGetChannelCommand.js +21 -28
  6. package/dist-es/commands/BatchGetStreamKeyCommand.js +21 -28
  7. package/dist-es/commands/CreateChannelCommand.js +21 -28
  8. package/dist-es/commands/CreateRecordingConfigurationCommand.js +21 -28
  9. package/dist-es/commands/CreateStreamKeyCommand.js +21 -28
  10. package/dist-es/commands/DeleteChannelCommand.js +22 -29
  11. package/dist-es/commands/DeletePlaybackKeyPairCommand.js +21 -28
  12. package/dist-es/commands/DeleteRecordingConfigurationCommand.js +22 -29
  13. package/dist-es/commands/DeleteStreamKeyCommand.js +22 -29
  14. package/dist-es/commands/GetChannelCommand.js +21 -28
  15. package/dist-es/commands/GetPlaybackKeyPairCommand.js +21 -28
  16. package/dist-es/commands/GetRecordingConfigurationCommand.js +21 -28
  17. package/dist-es/commands/GetStreamCommand.js +21 -28
  18. package/dist-es/commands/GetStreamKeyCommand.js +21 -28
  19. package/dist-es/commands/GetStreamSessionCommand.js +21 -28
  20. package/dist-es/commands/ImportPlaybackKeyPairCommand.js +21 -28
  21. package/dist-es/commands/ListChannelsCommand.js +21 -28
  22. package/dist-es/commands/ListPlaybackKeyPairsCommand.js +21 -28
  23. package/dist-es/commands/ListRecordingConfigurationsCommand.js +21 -28
  24. package/dist-es/commands/ListStreamKeysCommand.js +21 -28
  25. package/dist-es/commands/ListStreamSessionsCommand.js +21 -28
  26. package/dist-es/commands/ListStreamsCommand.js +21 -28
  27. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  28. package/dist-es/commands/PutMetadataCommand.js +22 -29
  29. package/dist-es/commands/StopStreamCommand.js +21 -28
  30. package/dist-es/commands/TagResourceCommand.js +21 -28
  31. package/dist-es/commands/UntagResourceCommand.js +21 -28
  32. package/dist-es/commands/UpdateChannelCommand.js +21 -28
  33. package/dist-es/endpoints.js +8 -8
  34. package/dist-es/models/IvsServiceException.js +5 -10
  35. package/dist-es/models/models_0.js +345 -194
  36. package/dist-es/pagination/ListChannelsPaginator.js +25 -68
  37. package/dist-es/pagination/ListPlaybackKeyPairsPaginator.js +25 -68
  38. package/dist-es/pagination/ListRecordingConfigurationsPaginator.js +25 -68
  39. package/dist-es/pagination/ListStreamKeysPaginator.js +25 -68
  40. package/dist-es/pagination/ListStreamSessionsPaginator.js +25 -68
  41. package/dist-es/pagination/ListStreamsPaginator.js +25 -68
  42. package/dist-es/protocols/Aws_restJson1.js +1905 -2679
  43. package/dist-es/runtimeConfig.browser.js +26 -12
  44. package/dist-es/runtimeConfig.js +30 -12
  45. package/dist-es/runtimeConfig.native.js +8 -5
  46. package/dist-es/runtimeConfig.shared.js +8 -11
  47. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ivs
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-ivs
@@ -649,7 +649,7 @@ exports.deserializeAws_restJson1BatchGetChannelCommand = deserializeAws_restJson
649
649
  const deserializeAws_restJson1BatchGetChannelCommandError = async (output, context) => {
650
650
  const parsedOutput = {
651
651
  ...output,
652
- body: await parseBody(output.body, context),
652
+ body: await parseErrorBody(output.body, context),
653
653
  };
654
654
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
655
655
  const parsedBody = parsedOutput.body;
@@ -680,7 +680,7 @@ exports.deserializeAws_restJson1BatchGetStreamKeyCommand = deserializeAws_restJs
680
680
  const deserializeAws_restJson1BatchGetStreamKeyCommandError = async (output, context) => {
681
681
  const parsedOutput = {
682
682
  ...output,
683
- body: await parseBody(output.body, context),
683
+ body: await parseErrorBody(output.body, context),
684
684
  };
685
685
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
686
686
  const parsedBody = parsedOutput.body;
@@ -711,7 +711,7 @@ exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1C
711
711
  const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
712
712
  const parsedOutput = {
713
713
  ...output,
714
- body: await parseBody(output.body, context),
714
+ body: await parseErrorBody(output.body, context),
715
715
  };
716
716
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
717
717
  switch (errorCode) {
@@ -757,7 +757,7 @@ exports.deserializeAws_restJson1CreateRecordingConfigurationCommand = deserializ
757
757
  const deserializeAws_restJson1CreateRecordingConfigurationCommandError = async (output, context) => {
758
758
  const parsedOutput = {
759
759
  ...output,
760
- body: await parseBody(output.body, context),
760
+ body: await parseErrorBody(output.body, context),
761
761
  };
762
762
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
763
  switch (errorCode) {
@@ -806,7 +806,7 @@ exports.deserializeAws_restJson1CreateStreamKeyCommand = deserializeAws_restJson
806
806
  const deserializeAws_restJson1CreateStreamKeyCommandError = async (output, context) => {
807
807
  const parsedOutput = {
808
808
  ...output,
809
- body: await parseBody(output.body, context),
809
+ body: await parseErrorBody(output.body, context),
810
810
  };
811
811
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
812
812
  switch (errorCode) {
@@ -849,7 +849,7 @@ exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1D
849
849
  const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
850
850
  const parsedOutput = {
851
851
  ...output,
852
- body: await parseBody(output.body, context),
852
+ body: await parseErrorBody(output.body, context),
853
853
  };
854
854
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
855
855
  switch (errorCode) {
@@ -892,7 +892,7 @@ exports.deserializeAws_restJson1DeletePlaybackKeyPairCommand = deserializeAws_re
892
892
  const deserializeAws_restJson1DeletePlaybackKeyPairCommandError = async (output, context) => {
893
893
  const parsedOutput = {
894
894
  ...output,
895
- body: await parseBody(output.body, context),
895
+ body: await parseErrorBody(output.body, context),
896
896
  };
897
897
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
898
898
  switch (errorCode) {
@@ -932,7 +932,7 @@ exports.deserializeAws_restJson1DeleteRecordingConfigurationCommand = deserializ
932
932
  const deserializeAws_restJson1DeleteRecordingConfigurationCommandError = async (output, context) => {
933
933
  const parsedOutput = {
934
934
  ...output,
935
- body: await parseBody(output.body, context),
935
+ body: await parseErrorBody(output.body, context),
936
936
  };
937
937
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
938
  switch (errorCode) {
@@ -975,7 +975,7 @@ exports.deserializeAws_restJson1DeleteStreamKeyCommand = deserializeAws_restJson
975
975
  const deserializeAws_restJson1DeleteStreamKeyCommandError = async (output, context) => {
976
976
  const parsedOutput = {
977
977
  ...output,
978
- body: await parseBody(output.body, context),
978
+ body: await parseErrorBody(output.body, context),
979
979
  };
980
980
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
981
981
  switch (errorCode) {
@@ -1018,7 +1018,7 @@ exports.deserializeAws_restJson1GetChannelCommand = deserializeAws_restJson1GetC
1018
1018
  const deserializeAws_restJson1GetChannelCommandError = async (output, context) => {
1019
1019
  const parsedOutput = {
1020
1020
  ...output,
1021
- body: await parseBody(output.body, context),
1021
+ body: await parseErrorBody(output.body, context),
1022
1022
  };
1023
1023
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1024
1024
  switch (errorCode) {
@@ -1058,7 +1058,7 @@ exports.deserializeAws_restJson1GetPlaybackKeyPairCommand = deserializeAws_restJ
1058
1058
  const deserializeAws_restJson1GetPlaybackKeyPairCommandError = async (output, context) => {
1059
1059
  const parsedOutput = {
1060
1060
  ...output,
1061
- body: await parseBody(output.body, context),
1061
+ body: await parseErrorBody(output.body, context),
1062
1062
  };
1063
1063
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1064
1064
  switch (errorCode) {
@@ -1098,7 +1098,7 @@ exports.deserializeAws_restJson1GetRecordingConfigurationCommand = deserializeAw
1098
1098
  const deserializeAws_restJson1GetRecordingConfigurationCommandError = async (output, context) => {
1099
1099
  const parsedOutput = {
1100
1100
  ...output,
1101
- body: await parseBody(output.body, context),
1101
+ body: await parseErrorBody(output.body, context),
1102
1102
  };
1103
1103
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1104
1104
  switch (errorCode) {
@@ -1141,7 +1141,7 @@ exports.deserializeAws_restJson1GetStreamCommand = deserializeAws_restJson1GetSt
1141
1141
  const deserializeAws_restJson1GetStreamCommandError = async (output, context) => {
1142
1142
  const parsedOutput = {
1143
1143
  ...output,
1144
- body: await parseBody(output.body, context),
1144
+ body: await parseErrorBody(output.body, context),
1145
1145
  };
1146
1146
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1147
1147
  switch (errorCode) {
@@ -1184,7 +1184,7 @@ exports.deserializeAws_restJson1GetStreamKeyCommand = deserializeAws_restJson1Ge
1184
1184
  const deserializeAws_restJson1GetStreamKeyCommandError = async (output, context) => {
1185
1185
  const parsedOutput = {
1186
1186
  ...output,
1187
- body: await parseBody(output.body, context),
1187
+ body: await parseErrorBody(output.body, context),
1188
1188
  };
1189
1189
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1190
1190
  switch (errorCode) {
@@ -1224,7 +1224,7 @@ exports.deserializeAws_restJson1GetStreamSessionCommand = deserializeAws_restJso
1224
1224
  const deserializeAws_restJson1GetStreamSessionCommandError = async (output, context) => {
1225
1225
  const parsedOutput = {
1226
1226
  ...output,
1227
- body: await parseBody(output.body, context),
1227
+ body: await parseErrorBody(output.body, context),
1228
1228
  };
1229
1229
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1230
1230
  switch (errorCode) {
@@ -1264,7 +1264,7 @@ exports.deserializeAws_restJson1ImportPlaybackKeyPairCommand = deserializeAws_re
1264
1264
  const deserializeAws_restJson1ImportPlaybackKeyPairCommandError = async (output, context) => {
1265
1265
  const parsedOutput = {
1266
1266
  ...output,
1267
- body: await parseBody(output.body, context),
1267
+ body: await parseErrorBody(output.body, context),
1268
1268
  };
1269
1269
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1270
1270
  switch (errorCode) {
@@ -1313,7 +1313,7 @@ exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1Li
1313
1313
  const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
1314
1314
  const parsedOutput = {
1315
1315
  ...output,
1316
- body: await parseBody(output.body, context),
1316
+ body: await parseErrorBody(output.body, context),
1317
1317
  };
1318
1318
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1319
1319
  switch (errorCode) {
@@ -1356,7 +1356,7 @@ exports.deserializeAws_restJson1ListPlaybackKeyPairsCommand = deserializeAws_res
1356
1356
  const deserializeAws_restJson1ListPlaybackKeyPairsCommandError = async (output, context) => {
1357
1357
  const parsedOutput = {
1358
1358
  ...output,
1359
- body: await parseBody(output.body, context),
1359
+ body: await parseErrorBody(output.body, context),
1360
1360
  };
1361
1361
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1362
1362
  switch (errorCode) {
@@ -1396,7 +1396,7 @@ exports.deserializeAws_restJson1ListRecordingConfigurationsCommand = deserialize
1396
1396
  const deserializeAws_restJson1ListRecordingConfigurationsCommandError = async (output, context) => {
1397
1397
  const parsedOutput = {
1398
1398
  ...output,
1399
- body: await parseBody(output.body, context),
1399
+ body: await parseErrorBody(output.body, context),
1400
1400
  };
1401
1401
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1402
1402
  switch (errorCode) {
@@ -1439,7 +1439,7 @@ exports.deserializeAws_restJson1ListStreamKeysCommand = deserializeAws_restJson1
1439
1439
  const deserializeAws_restJson1ListStreamKeysCommandError = async (output, context) => {
1440
1440
  const parsedOutput = {
1441
1441
  ...output,
1442
- body: await parseBody(output.body, context),
1442
+ body: await parseErrorBody(output.body, context),
1443
1443
  };
1444
1444
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
1445
  switch (errorCode) {
@@ -1482,7 +1482,7 @@ exports.deserializeAws_restJson1ListStreamsCommand = deserializeAws_restJson1Lis
1482
1482
  const deserializeAws_restJson1ListStreamsCommandError = async (output, context) => {
1483
1483
  const parsedOutput = {
1484
1484
  ...output,
1485
- body: await parseBody(output.body, context),
1485
+ body: await parseErrorBody(output.body, context),
1486
1486
  };
1487
1487
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1488
1488
  switch (errorCode) {
@@ -1522,7 +1522,7 @@ exports.deserializeAws_restJson1ListStreamSessionsCommand = deserializeAws_restJ
1522
1522
  const deserializeAws_restJson1ListStreamSessionsCommandError = async (output, context) => {
1523
1523
  const parsedOutput = {
1524
1524
  ...output,
1525
- body: await parseBody(output.body, context),
1525
+ body: await parseErrorBody(output.body, context),
1526
1526
  };
1527
1527
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1528
1528
  switch (errorCode) {
@@ -1562,7 +1562,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
1562
1562
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
1563
1563
  const parsedOutput = {
1564
1564
  ...output,
1565
- body: await parseBody(output.body, context),
1565
+ body: await parseErrorBody(output.body, context),
1566
1566
  };
1567
1567
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1568
1568
  switch (errorCode) {
@@ -1599,7 +1599,7 @@ exports.deserializeAws_restJson1PutMetadataCommand = deserializeAws_restJson1Put
1599
1599
  const deserializeAws_restJson1PutMetadataCommandError = async (output, context) => {
1600
1600
  const parsedOutput = {
1601
1601
  ...output,
1602
- body: await parseBody(output.body, context),
1602
+ body: await parseErrorBody(output.body, context),
1603
1603
  };
1604
1604
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1605
1605
  switch (errorCode) {
@@ -1642,7 +1642,7 @@ exports.deserializeAws_restJson1StopStreamCommand = deserializeAws_restJson1Stop
1642
1642
  const deserializeAws_restJson1StopStreamCommandError = async (output, context) => {
1643
1643
  const parsedOutput = {
1644
1644
  ...output,
1645
- body: await parseBody(output.body, context),
1645
+ body: await parseErrorBody(output.body, context),
1646
1646
  };
1647
1647
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
1648
  switch (errorCode) {
@@ -1685,7 +1685,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
1685
1685
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
1686
1686
  const parsedOutput = {
1687
1687
  ...output,
1688
- body: await parseBody(output.body, context),
1688
+ body: await parseErrorBody(output.body, context),
1689
1689
  };
1690
1690
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
1691
  switch (errorCode) {
@@ -1722,7 +1722,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
1722
1722
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
1723
1723
  const parsedOutput = {
1724
1724
  ...output,
1725
- body: await parseBody(output.body, context),
1725
+ body: await parseErrorBody(output.body, context),
1726
1726
  };
1727
1727
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1728
1728
  switch (errorCode) {
@@ -1762,7 +1762,7 @@ exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1U
1762
1762
  const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
1763
1763
  const parsedOutput = {
1764
1764
  ...output,
1765
- body: await parseBody(output.body, context),
1765
+ body: await parseErrorBody(output.body, context),
1766
1766
  };
1767
1767
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1768
1768
  switch (errorCode) {
@@ -2287,6 +2287,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
2287
2287
  }
2288
2288
  return {};
2289
2289
  });
2290
+ const parseErrorBody = async (errorBody, context) => {
2291
+ var _a;
2292
+ const value = await parseBody(errorBody, context);
2293
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2294
+ return value;
2295
+ };
2290
2296
  const loadRestJsonErrorCode = (output, data) => {
2291
2297
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2292
2298
  const sanitizeErrorCode = (rawValue) => {