@aws-sdk/client-medialive 3.180.0 → 3.181.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.
- package/CHANGELOG.md +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +65 -59
- package/dist-es/protocols/Aws_restJson1.js +72 -59
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
* **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))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @aws-sdk/client-medialive
|
|
@@ -1357,7 +1357,7 @@ exports.deserializeAws_restJson1AcceptInputDeviceTransferCommand = deserializeAw
|
|
|
1357
1357
|
const deserializeAws_restJson1AcceptInputDeviceTransferCommandError = async (output, context) => {
|
|
1358
1358
|
const parsedOutput = {
|
|
1359
1359
|
...output,
|
|
1360
|
-
body: await
|
|
1360
|
+
body: await parseErrorBody(output.body, context),
|
|
1361
1361
|
};
|
|
1362
1362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
1363
|
switch (errorCode) {
|
|
@@ -1418,7 +1418,7 @@ exports.deserializeAws_restJson1BatchDeleteCommand = deserializeAws_restJson1Bat
|
|
|
1418
1418
|
const deserializeAws_restJson1BatchDeleteCommandError = async (output, context) => {
|
|
1419
1419
|
const parsedOutput = {
|
|
1420
1420
|
...output,
|
|
1421
|
-
body: await
|
|
1421
|
+
body: await parseErrorBody(output.body, context),
|
|
1422
1422
|
};
|
|
1423
1423
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1424
1424
|
switch (errorCode) {
|
|
@@ -1476,7 +1476,7 @@ exports.deserializeAws_restJson1BatchStartCommand = deserializeAws_restJson1Batc
|
|
|
1476
1476
|
const deserializeAws_restJson1BatchStartCommandError = async (output, context) => {
|
|
1477
1477
|
const parsedOutput = {
|
|
1478
1478
|
...output,
|
|
1479
|
-
body: await
|
|
1479
|
+
body: await parseErrorBody(output.body, context),
|
|
1480
1480
|
};
|
|
1481
1481
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1482
1482
|
switch (errorCode) {
|
|
@@ -1534,7 +1534,7 @@ exports.deserializeAws_restJson1BatchStopCommand = deserializeAws_restJson1Batch
|
|
|
1534
1534
|
const deserializeAws_restJson1BatchStopCommandError = async (output, context) => {
|
|
1535
1535
|
const parsedOutput = {
|
|
1536
1536
|
...output,
|
|
1537
|
-
body: await
|
|
1537
|
+
body: await parseErrorBody(output.body, context),
|
|
1538
1538
|
};
|
|
1539
1539
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1540
|
switch (errorCode) {
|
|
@@ -1592,7 +1592,7 @@ exports.deserializeAws_restJson1BatchUpdateScheduleCommand = deserializeAws_rest
|
|
|
1592
1592
|
const deserializeAws_restJson1BatchUpdateScheduleCommandError = async (output, context) => {
|
|
1593
1593
|
const parsedOutput = {
|
|
1594
1594
|
...output,
|
|
1595
|
-
body: await
|
|
1595
|
+
body: await parseErrorBody(output.body, context),
|
|
1596
1596
|
};
|
|
1597
1597
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1598
1598
|
switch (errorCode) {
|
|
@@ -1644,7 +1644,7 @@ exports.deserializeAws_restJson1CancelInputDeviceTransferCommand = deserializeAw
|
|
|
1644
1644
|
const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (output, context) => {
|
|
1645
1645
|
const parsedOutput = {
|
|
1646
1646
|
...output,
|
|
1647
|
-
body: await
|
|
1647
|
+
body: await parseErrorBody(output.body, context),
|
|
1648
1648
|
};
|
|
1649
1649
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1650
1650
|
switch (errorCode) {
|
|
@@ -1699,7 +1699,7 @@ exports.deserializeAws_restJson1ClaimDeviceCommand = deserializeAws_restJson1Cla
|
|
|
1699
1699
|
const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context) => {
|
|
1700
1700
|
const parsedOutput = {
|
|
1701
1701
|
...output,
|
|
1702
|
-
body: await
|
|
1702
|
+
body: await parseErrorBody(output.body, context),
|
|
1703
1703
|
};
|
|
1704
1704
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
1705
|
switch (errorCode) {
|
|
@@ -1754,7 +1754,7 @@ exports.deserializeAws_restJson1CreateChannelCommand = deserializeAws_restJson1C
|
|
|
1754
1754
|
const deserializeAws_restJson1CreateChannelCommandError = async (output, context) => {
|
|
1755
1755
|
const parsedOutput = {
|
|
1756
1756
|
...output,
|
|
1757
|
-
body: await
|
|
1757
|
+
body: await parseErrorBody(output.body, context),
|
|
1758
1758
|
};
|
|
1759
1759
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1760
|
switch (errorCode) {
|
|
@@ -1809,7 +1809,7 @@ exports.deserializeAws_restJson1CreateInputCommand = deserializeAws_restJson1Cre
|
|
|
1809
1809
|
const deserializeAws_restJson1CreateInputCommandError = async (output, context) => {
|
|
1810
1810
|
const parsedOutput = {
|
|
1811
1811
|
...output,
|
|
1812
|
-
body: await
|
|
1812
|
+
body: await parseErrorBody(output.body, context),
|
|
1813
1813
|
};
|
|
1814
1814
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1815
1815
|
switch (errorCode) {
|
|
@@ -1858,7 +1858,7 @@ exports.deserializeAws_restJson1CreateInputSecurityGroupCommand = deserializeAws
|
|
|
1858
1858
|
const deserializeAws_restJson1CreateInputSecurityGroupCommandError = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
|
-
body: await
|
|
1861
|
+
body: await parseErrorBody(output.body, context),
|
|
1862
1862
|
};
|
|
1863
1863
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1864
1864
|
switch (errorCode) {
|
|
@@ -1907,7 +1907,7 @@ exports.deserializeAws_restJson1CreateMultiplexCommand = deserializeAws_restJson
|
|
|
1907
1907
|
const deserializeAws_restJson1CreateMultiplexCommandError = async (output, context) => {
|
|
1908
1908
|
const parsedOutput = {
|
|
1909
1909
|
...output,
|
|
1910
|
-
body: await
|
|
1910
|
+
body: await parseErrorBody(output.body, context),
|
|
1911
1911
|
};
|
|
1912
1912
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1913
1913
|
switch (errorCode) {
|
|
@@ -1962,7 +1962,7 @@ exports.deserializeAws_restJson1CreateMultiplexProgramCommand = deserializeAws_r
|
|
|
1962
1962
|
const deserializeAws_restJson1CreateMultiplexProgramCommandError = async (output, context) => {
|
|
1963
1963
|
const parsedOutput = {
|
|
1964
1964
|
...output,
|
|
1965
|
-
body: await
|
|
1965
|
+
body: await parseErrorBody(output.body, context),
|
|
1966
1966
|
};
|
|
1967
1967
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1968
|
switch (errorCode) {
|
|
@@ -2017,7 +2017,7 @@ exports.deserializeAws_restJson1CreatePartnerInputCommand = deserializeAws_restJ
|
|
|
2017
2017
|
const deserializeAws_restJson1CreatePartnerInputCommandError = async (output, context) => {
|
|
2018
2018
|
const parsedOutput = {
|
|
2019
2019
|
...output,
|
|
2020
|
-
body: await
|
|
2020
|
+
body: await parseErrorBody(output.body, context),
|
|
2021
2021
|
};
|
|
2022
2022
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
2023
|
switch (errorCode) {
|
|
@@ -2063,7 +2063,7 @@ exports.deserializeAws_restJson1CreateTagsCommand = deserializeAws_restJson1Crea
|
|
|
2063
2063
|
const deserializeAws_restJson1CreateTagsCommandError = async (output, context) => {
|
|
2064
2064
|
const parsedOutput = {
|
|
2065
2065
|
...output,
|
|
2066
|
-
body: await
|
|
2066
|
+
body: await parseErrorBody(output.body, context),
|
|
2067
2067
|
};
|
|
2068
2068
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2069
2069
|
switch (errorCode) {
|
|
@@ -2157,7 +2157,7 @@ exports.deserializeAws_restJson1DeleteChannelCommand = deserializeAws_restJson1D
|
|
|
2157
2157
|
const deserializeAws_restJson1DeleteChannelCommandError = async (output, context) => {
|
|
2158
2158
|
const parsedOutput = {
|
|
2159
2159
|
...output,
|
|
2160
|
-
body: await
|
|
2160
|
+
body: await parseErrorBody(output.body, context),
|
|
2161
2161
|
};
|
|
2162
2162
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2163
2163
|
switch (errorCode) {
|
|
@@ -2209,7 +2209,7 @@ exports.deserializeAws_restJson1DeleteInputCommand = deserializeAws_restJson1Del
|
|
|
2209
2209
|
const deserializeAws_restJson1DeleteInputCommandError = async (output, context) => {
|
|
2210
2210
|
const parsedOutput = {
|
|
2211
2211
|
...output,
|
|
2212
|
-
body: await
|
|
2212
|
+
body: await parseErrorBody(output.body, context),
|
|
2213
2213
|
};
|
|
2214
2214
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2215
2215
|
switch (errorCode) {
|
|
@@ -2261,7 +2261,7 @@ exports.deserializeAws_restJson1DeleteInputSecurityGroupCommand = deserializeAws
|
|
|
2261
2261
|
const deserializeAws_restJson1DeleteInputSecurityGroupCommandError = async (output, context) => {
|
|
2262
2262
|
const parsedOutput = {
|
|
2263
2263
|
...output,
|
|
2264
|
-
body: await
|
|
2264
|
+
body: await parseErrorBody(output.body, context),
|
|
2265
2265
|
};
|
|
2266
2266
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2267
2267
|
switch (errorCode) {
|
|
@@ -2340,7 +2340,7 @@ exports.deserializeAws_restJson1DeleteMultiplexCommand = deserializeAws_restJson
|
|
|
2340
2340
|
const deserializeAws_restJson1DeleteMultiplexCommandError = async (output, context) => {
|
|
2341
2341
|
const parsedOutput = {
|
|
2342
2342
|
...output,
|
|
2343
|
-
body: await
|
|
2343
|
+
body: await parseErrorBody(output.body, context),
|
|
2344
2344
|
};
|
|
2345
2345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2346
2346
|
switch (errorCode) {
|
|
@@ -2407,7 +2407,7 @@ exports.deserializeAws_restJson1DeleteMultiplexProgramCommand = deserializeAws_r
|
|
|
2407
2407
|
const deserializeAws_restJson1DeleteMultiplexProgramCommandError = async (output, context) => {
|
|
2408
2408
|
const parsedOutput = {
|
|
2409
2409
|
...output,
|
|
2410
|
-
body: await
|
|
2410
|
+
body: await parseErrorBody(output.body, context),
|
|
2411
2411
|
};
|
|
2412
2412
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
2413
|
switch (errorCode) {
|
|
@@ -2516,7 +2516,7 @@ exports.deserializeAws_restJson1DeleteReservationCommand = deserializeAws_restJs
|
|
|
2516
2516
|
const deserializeAws_restJson1DeleteReservationCommandError = async (output, context) => {
|
|
2517
2517
|
const parsedOutput = {
|
|
2518
2518
|
...output,
|
|
2519
|
-
body: await
|
|
2519
|
+
body: await parseErrorBody(output.body, context),
|
|
2520
2520
|
};
|
|
2521
2521
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2522
2522
|
switch (errorCode) {
|
|
@@ -2568,7 +2568,7 @@ exports.deserializeAws_restJson1DeleteScheduleCommand = deserializeAws_restJson1
|
|
|
2568
2568
|
const deserializeAws_restJson1DeleteScheduleCommandError = async (output, context) => {
|
|
2569
2569
|
const parsedOutput = {
|
|
2570
2570
|
...output,
|
|
2571
|
-
body: await
|
|
2571
|
+
body: await parseErrorBody(output.body, context),
|
|
2572
2572
|
};
|
|
2573
2573
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
2574
|
switch (errorCode) {
|
|
@@ -2617,7 +2617,7 @@ exports.deserializeAws_restJson1DeleteTagsCommand = deserializeAws_restJson1Dele
|
|
|
2617
2617
|
const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) => {
|
|
2618
2618
|
const parsedOutput = {
|
|
2619
2619
|
...output,
|
|
2620
|
-
body: await
|
|
2620
|
+
body: await parseErrorBody(output.body, context),
|
|
2621
2621
|
};
|
|
2622
2622
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2623
2623
|
switch (errorCode) {
|
|
@@ -2711,7 +2711,7 @@ exports.deserializeAws_restJson1DescribeChannelCommand = deserializeAws_restJson
|
|
|
2711
2711
|
const deserializeAws_restJson1DescribeChannelCommandError = async (output, context) => {
|
|
2712
2712
|
const parsedOutput = {
|
|
2713
2713
|
...output,
|
|
2714
|
-
body: await
|
|
2714
|
+
body: await parseErrorBody(output.body, context),
|
|
2715
2715
|
};
|
|
2716
2716
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
2717
|
switch (errorCode) {
|
|
@@ -2808,7 +2808,7 @@ exports.deserializeAws_restJson1DescribeInputCommand = deserializeAws_restJson1D
|
|
|
2808
2808
|
const deserializeAws_restJson1DescribeInputCommandError = async (output, context) => {
|
|
2809
2809
|
const parsedOutput = {
|
|
2810
2810
|
...output,
|
|
2811
|
-
body: await
|
|
2811
|
+
body: await parseErrorBody(output.body, context),
|
|
2812
2812
|
};
|
|
2813
2813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
2814
|
switch (errorCode) {
|
|
@@ -2893,7 +2893,7 @@ exports.deserializeAws_restJson1DescribeInputDeviceCommand = deserializeAws_rest
|
|
|
2893
2893
|
const deserializeAws_restJson1DescribeInputDeviceCommandError = async (output, context) => {
|
|
2894
2894
|
const parsedOutput = {
|
|
2895
2895
|
...output,
|
|
2896
|
-
body: await
|
|
2896
|
+
body: await parseErrorBody(output.body, context),
|
|
2897
2897
|
};
|
|
2898
2898
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
2899
|
switch (errorCode) {
|
|
@@ -2953,7 +2953,7 @@ exports.deserializeAws_restJson1DescribeInputDeviceThumbnailCommand = deserializ
|
|
|
2953
2953
|
const deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = async (output, context) => {
|
|
2954
2954
|
const parsedOutput = {
|
|
2955
2955
|
...output,
|
|
2956
|
-
body: await
|
|
2956
|
+
body: await parseErrorBody(output.body, context),
|
|
2957
2957
|
};
|
|
2958
2958
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
2959
|
switch (errorCode) {
|
|
@@ -3020,7 +3020,7 @@ exports.deserializeAws_restJson1DescribeInputSecurityGroupCommand = deserializeA
|
|
|
3020
3020
|
const deserializeAws_restJson1DescribeInputSecurityGroupCommandError = async (output, context) => {
|
|
3021
3021
|
const parsedOutput = {
|
|
3022
3022
|
...output,
|
|
3023
|
-
body: await
|
|
3023
|
+
body: await parseErrorBody(output.body, context),
|
|
3024
3024
|
};
|
|
3025
3025
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3026
|
switch (errorCode) {
|
|
@@ -3099,7 +3099,7 @@ exports.deserializeAws_restJson1DescribeMultiplexCommand = deserializeAws_restJs
|
|
|
3099
3099
|
const deserializeAws_restJson1DescribeMultiplexCommandError = async (output, context) => {
|
|
3100
3100
|
const parsedOutput = {
|
|
3101
3101
|
...output,
|
|
3102
|
-
body: await
|
|
3102
|
+
body: await parseErrorBody(output.body, context),
|
|
3103
3103
|
};
|
|
3104
3104
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3105
3105
|
switch (errorCode) {
|
|
@@ -3163,7 +3163,7 @@ exports.deserializeAws_restJson1DescribeMultiplexProgramCommand = deserializeAws
|
|
|
3163
3163
|
const deserializeAws_restJson1DescribeMultiplexProgramCommandError = async (output, context) => {
|
|
3164
3164
|
const parsedOutput = {
|
|
3165
3165
|
...output,
|
|
3166
|
-
body: await
|
|
3166
|
+
body: await parseErrorBody(output.body, context),
|
|
3167
3167
|
};
|
|
3168
3168
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3169
3169
|
switch (errorCode) {
|
|
@@ -3245,7 +3245,7 @@ exports.deserializeAws_restJson1DescribeOfferingCommand = deserializeAws_restJso
|
|
|
3245
3245
|
const deserializeAws_restJson1DescribeOfferingCommandError = async (output, context) => {
|
|
3246
3246
|
const parsedOutput = {
|
|
3247
3247
|
...output,
|
|
3248
|
-
body: await
|
|
3248
|
+
body: await parseErrorBody(output.body, context),
|
|
3249
3249
|
};
|
|
3250
3250
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3251
|
switch (errorCode) {
|
|
@@ -3351,7 +3351,7 @@ exports.deserializeAws_restJson1DescribeReservationCommand = deserializeAws_rest
|
|
|
3351
3351
|
const deserializeAws_restJson1DescribeReservationCommandError = async (output, context) => {
|
|
3352
3352
|
const parsedOutput = {
|
|
3353
3353
|
...output,
|
|
3354
|
-
body: await
|
|
3354
|
+
body: await parseErrorBody(output.body, context),
|
|
3355
3355
|
};
|
|
3356
3356
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
3357
|
switch (errorCode) {
|
|
@@ -3406,7 +3406,7 @@ exports.deserializeAws_restJson1DescribeScheduleCommand = deserializeAws_restJso
|
|
|
3406
3406
|
const deserializeAws_restJson1DescribeScheduleCommandError = async (output, context) => {
|
|
3407
3407
|
const parsedOutput = {
|
|
3408
3408
|
...output,
|
|
3409
|
-
body: await
|
|
3409
|
+
body: await parseErrorBody(output.body, context),
|
|
3410
3410
|
};
|
|
3411
3411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3412
3412
|
switch (errorCode) {
|
|
@@ -3461,7 +3461,7 @@ exports.deserializeAws_restJson1ListChannelsCommand = deserializeAws_restJson1Li
|
|
|
3461
3461
|
const deserializeAws_restJson1ListChannelsCommandError = async (output, context) => {
|
|
3462
3462
|
const parsedOutput = {
|
|
3463
3463
|
...output,
|
|
3464
|
-
body: await
|
|
3464
|
+
body: await parseErrorBody(output.body, context),
|
|
3465
3465
|
};
|
|
3466
3466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3467
3467
|
switch (errorCode) {
|
|
@@ -3513,7 +3513,7 @@ exports.deserializeAws_restJson1ListInputDevicesCommand = deserializeAws_restJso
|
|
|
3513
3513
|
const deserializeAws_restJson1ListInputDevicesCommandError = async (output, context) => {
|
|
3514
3514
|
const parsedOutput = {
|
|
3515
3515
|
...output,
|
|
3516
|
-
body: await
|
|
3516
|
+
body: await parseErrorBody(output.body, context),
|
|
3517
3517
|
};
|
|
3518
3518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3519
3519
|
switch (errorCode) {
|
|
@@ -3565,7 +3565,7 @@ exports.deserializeAws_restJson1ListInputDeviceTransfersCommand = deserializeAws
|
|
|
3565
3565
|
const deserializeAws_restJson1ListInputDeviceTransfersCommandError = async (output, context) => {
|
|
3566
3566
|
const parsedOutput = {
|
|
3567
3567
|
...output,
|
|
3568
|
-
body: await
|
|
3568
|
+
body: await parseErrorBody(output.body, context),
|
|
3569
3569
|
};
|
|
3570
3570
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3571
3571
|
switch (errorCode) {
|
|
@@ -3620,7 +3620,7 @@ exports.deserializeAws_restJson1ListInputsCommand = deserializeAws_restJson1List
|
|
|
3620
3620
|
const deserializeAws_restJson1ListInputsCommandError = async (output, context) => {
|
|
3621
3621
|
const parsedOutput = {
|
|
3622
3622
|
...output,
|
|
3623
|
-
body: await
|
|
3623
|
+
body: await parseErrorBody(output.body, context),
|
|
3624
3624
|
};
|
|
3625
3625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3626
3626
|
switch (errorCode) {
|
|
@@ -3672,7 +3672,7 @@ exports.deserializeAws_restJson1ListInputSecurityGroupsCommand = deserializeAws_
|
|
|
3672
3672
|
const deserializeAws_restJson1ListInputSecurityGroupsCommandError = async (output, context) => {
|
|
3673
3673
|
const parsedOutput = {
|
|
3674
3674
|
...output,
|
|
3675
|
-
body: await
|
|
3675
|
+
body: await parseErrorBody(output.body, context),
|
|
3676
3676
|
};
|
|
3677
3677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3678
3678
|
switch (errorCode) {
|
|
@@ -3724,7 +3724,7 @@ exports.deserializeAws_restJson1ListMultiplexesCommand = deserializeAws_restJson
|
|
|
3724
3724
|
const deserializeAws_restJson1ListMultiplexesCommandError = async (output, context) => {
|
|
3725
3725
|
const parsedOutput = {
|
|
3726
3726
|
...output,
|
|
3727
|
-
body: await
|
|
3727
|
+
body: await parseErrorBody(output.body, context),
|
|
3728
3728
|
};
|
|
3729
3729
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3730
3730
|
switch (errorCode) {
|
|
@@ -3776,7 +3776,7 @@ exports.deserializeAws_restJson1ListMultiplexProgramsCommand = deserializeAws_re
|
|
|
3776
3776
|
const deserializeAws_restJson1ListMultiplexProgramsCommandError = async (output, context) => {
|
|
3777
3777
|
const parsedOutput = {
|
|
3778
3778
|
...output,
|
|
3779
|
-
body: await
|
|
3779
|
+
body: await parseErrorBody(output.body, context),
|
|
3780
3780
|
};
|
|
3781
3781
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3782
3782
|
switch (errorCode) {
|
|
@@ -3831,7 +3831,7 @@ exports.deserializeAws_restJson1ListOfferingsCommand = deserializeAws_restJson1L
|
|
|
3831
3831
|
const deserializeAws_restJson1ListOfferingsCommandError = async (output, context) => {
|
|
3832
3832
|
const parsedOutput = {
|
|
3833
3833
|
...output,
|
|
3834
|
-
body: await
|
|
3834
|
+
body: await parseErrorBody(output.body, context),
|
|
3835
3835
|
};
|
|
3836
3836
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3837
3837
|
switch (errorCode) {
|
|
@@ -3883,7 +3883,7 @@ exports.deserializeAws_restJson1ListReservationsCommand = deserializeAws_restJso
|
|
|
3883
3883
|
const deserializeAws_restJson1ListReservationsCommandError = async (output, context) => {
|
|
3884
3884
|
const parsedOutput = {
|
|
3885
3885
|
...output,
|
|
3886
|
-
body: await
|
|
3886
|
+
body: await parseErrorBody(output.body, context),
|
|
3887
3887
|
};
|
|
3888
3888
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3889
3889
|
switch (errorCode) {
|
|
@@ -3932,7 +3932,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
|
|
|
3932
3932
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
3933
3933
|
const parsedOutput = {
|
|
3934
3934
|
...output,
|
|
3935
|
-
body: await
|
|
3935
|
+
body: await parseErrorBody(output.body, context),
|
|
3936
3936
|
};
|
|
3937
3937
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3938
3938
|
switch (errorCode) {
|
|
@@ -3975,7 +3975,7 @@ exports.deserializeAws_restJson1PurchaseOfferingCommand = deserializeAws_restJso
|
|
|
3975
3975
|
const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, context) => {
|
|
3976
3976
|
const parsedOutput = {
|
|
3977
3977
|
...output,
|
|
3978
|
-
body: await
|
|
3978
|
+
body: await parseErrorBody(output.body, context),
|
|
3979
3979
|
};
|
|
3980
3980
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3981
3981
|
switch (errorCode) {
|
|
@@ -4027,7 +4027,7 @@ exports.deserializeAws_restJson1RebootInputDeviceCommand = deserializeAws_restJs
|
|
|
4027
4027
|
const deserializeAws_restJson1RebootInputDeviceCommandError = async (output, context) => {
|
|
4028
4028
|
const parsedOutput = {
|
|
4029
4029
|
...output,
|
|
4030
|
-
body: await
|
|
4030
|
+
body: await parseErrorBody(output.body, context),
|
|
4031
4031
|
};
|
|
4032
4032
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4033
4033
|
switch (errorCode) {
|
|
@@ -4079,7 +4079,7 @@ exports.deserializeAws_restJson1RejectInputDeviceTransferCommand = deserializeAw
|
|
|
4079
4079
|
const deserializeAws_restJson1RejectInputDeviceTransferCommandError = async (output, context) => {
|
|
4080
4080
|
const parsedOutput = {
|
|
4081
4081
|
...output,
|
|
4082
|
-
body: await
|
|
4082
|
+
body: await parseErrorBody(output.body, context),
|
|
4083
4083
|
};
|
|
4084
4084
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4085
4085
|
switch (errorCode) {
|
|
@@ -4188,7 +4188,7 @@ exports.deserializeAws_restJson1StartChannelCommand = deserializeAws_restJson1St
|
|
|
4188
4188
|
const deserializeAws_restJson1StartChannelCommandError = async (output, context) => {
|
|
4189
4189
|
const parsedOutput = {
|
|
4190
4190
|
...output,
|
|
4191
|
-
body: await
|
|
4191
|
+
body: await parseErrorBody(output.body, context),
|
|
4192
4192
|
};
|
|
4193
4193
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4194
4194
|
switch (errorCode) {
|
|
@@ -4240,7 +4240,7 @@ exports.deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommand = deser
|
|
|
4240
4240
|
const deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommandError = async (output, context) => {
|
|
4241
4241
|
const parsedOutput = {
|
|
4242
4242
|
...output,
|
|
4243
|
-
body: await
|
|
4243
|
+
body: await parseErrorBody(output.body, context),
|
|
4244
4244
|
};
|
|
4245
4245
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4246
4246
|
switch (errorCode) {
|
|
@@ -4322,7 +4322,7 @@ exports.deserializeAws_restJson1StartMultiplexCommand = deserializeAws_restJson1
|
|
|
4322
4322
|
const deserializeAws_restJson1StartMultiplexCommandError = async (output, context) => {
|
|
4323
4323
|
const parsedOutput = {
|
|
4324
4324
|
...output,
|
|
4325
|
-
body: await
|
|
4325
|
+
body: await parseErrorBody(output.body, context),
|
|
4326
4326
|
};
|
|
4327
4327
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4328
4328
|
switch (errorCode) {
|
|
@@ -4428,7 +4428,7 @@ exports.deserializeAws_restJson1StopChannelCommand = deserializeAws_restJson1Sto
|
|
|
4428
4428
|
const deserializeAws_restJson1StopChannelCommandError = async (output, context) => {
|
|
4429
4429
|
const parsedOutput = {
|
|
4430
4430
|
...output,
|
|
4431
|
-
body: await
|
|
4431
|
+
body: await parseErrorBody(output.body, context),
|
|
4432
4432
|
};
|
|
4433
4433
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4434
4434
|
switch (errorCode) {
|
|
@@ -4510,7 +4510,7 @@ exports.deserializeAws_restJson1StopMultiplexCommand = deserializeAws_restJson1S
|
|
|
4510
4510
|
const deserializeAws_restJson1StopMultiplexCommandError = async (output, context) => {
|
|
4511
4511
|
const parsedOutput = {
|
|
4512
4512
|
...output,
|
|
4513
|
-
body: await
|
|
4513
|
+
body: await parseErrorBody(output.body, context),
|
|
4514
4514
|
};
|
|
4515
4515
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4516
4516
|
switch (errorCode) {
|
|
@@ -4562,7 +4562,7 @@ exports.deserializeAws_restJson1TransferInputDeviceCommand = deserializeAws_rest
|
|
|
4562
4562
|
const deserializeAws_restJson1TransferInputDeviceCommandError = async (output, context) => {
|
|
4563
4563
|
const parsedOutput = {
|
|
4564
4564
|
...output,
|
|
4565
|
-
body: await
|
|
4565
|
+
body: await parseErrorBody(output.body, context),
|
|
4566
4566
|
};
|
|
4567
4567
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4568
4568
|
switch (errorCode) {
|
|
@@ -4620,7 +4620,7 @@ exports.deserializeAws_restJson1UpdateChannelCommand = deserializeAws_restJson1U
|
|
|
4620
4620
|
const deserializeAws_restJson1UpdateChannelCommandError = async (output, context) => {
|
|
4621
4621
|
const parsedOutput = {
|
|
4622
4622
|
...output,
|
|
4623
|
-
body: await
|
|
4623
|
+
body: await parseErrorBody(output.body, context),
|
|
4624
4624
|
};
|
|
4625
4625
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4626
4626
|
switch (errorCode) {
|
|
@@ -4672,7 +4672,7 @@ exports.deserializeAws_restJson1UpdateChannelClassCommand = deserializeAws_restJ
|
|
|
4672
4672
|
const deserializeAws_restJson1UpdateChannelClassCommandError = async (output, context) => {
|
|
4673
4673
|
const parsedOutput = {
|
|
4674
4674
|
...output,
|
|
4675
|
-
body: await
|
|
4675
|
+
body: await parseErrorBody(output.body, context),
|
|
4676
4676
|
};
|
|
4677
4677
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4678
4678
|
switch (errorCode) {
|
|
@@ -4730,7 +4730,7 @@ exports.deserializeAws_restJson1UpdateInputCommand = deserializeAws_restJson1Upd
|
|
|
4730
4730
|
const deserializeAws_restJson1UpdateInputCommandError = async (output, context) => {
|
|
4731
4731
|
const parsedOutput = {
|
|
4732
4732
|
...output,
|
|
4733
|
-
body: await
|
|
4733
|
+
body: await parseErrorBody(output.body, context),
|
|
4734
4734
|
};
|
|
4735
4735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4736
4736
|
switch (errorCode) {
|
|
@@ -4815,7 +4815,7 @@ exports.deserializeAws_restJson1UpdateInputDeviceCommand = deserializeAws_restJs
|
|
|
4815
4815
|
const deserializeAws_restJson1UpdateInputDeviceCommandError = async (output, context) => {
|
|
4816
4816
|
const parsedOutput = {
|
|
4817
4817
|
...output,
|
|
4818
|
-
body: await
|
|
4818
|
+
body: await parseErrorBody(output.body, context),
|
|
4819
4819
|
};
|
|
4820
4820
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4821
4821
|
switch (errorCode) {
|
|
@@ -4870,7 +4870,7 @@ exports.deserializeAws_restJson1UpdateInputSecurityGroupCommand = deserializeAws
|
|
|
4870
4870
|
const deserializeAws_restJson1UpdateInputSecurityGroupCommandError = async (output, context) => {
|
|
4871
4871
|
const parsedOutput = {
|
|
4872
4872
|
...output,
|
|
4873
|
-
body: await
|
|
4873
|
+
body: await parseErrorBody(output.body, context),
|
|
4874
4874
|
};
|
|
4875
4875
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4876
4876
|
switch (errorCode) {
|
|
@@ -4922,7 +4922,7 @@ exports.deserializeAws_restJson1UpdateMultiplexCommand = deserializeAws_restJson
|
|
|
4922
4922
|
const deserializeAws_restJson1UpdateMultiplexCommandError = async (output, context) => {
|
|
4923
4923
|
const parsedOutput = {
|
|
4924
4924
|
...output,
|
|
4925
|
-
body: await
|
|
4925
|
+
body: await parseErrorBody(output.body, context),
|
|
4926
4926
|
};
|
|
4927
4927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4928
4928
|
switch (errorCode) {
|
|
@@ -4977,7 +4977,7 @@ exports.deserializeAws_restJson1UpdateMultiplexProgramCommand = deserializeAws_r
|
|
|
4977
4977
|
const deserializeAws_restJson1UpdateMultiplexProgramCommandError = async (output, context) => {
|
|
4978
4978
|
const parsedOutput = {
|
|
4979
4979
|
...output,
|
|
4980
|
-
body: await
|
|
4980
|
+
body: await parseErrorBody(output.body, context),
|
|
4981
4981
|
};
|
|
4982
4982
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4983
4983
|
switch (errorCode) {
|
|
@@ -5032,7 +5032,7 @@ exports.deserializeAws_restJson1UpdateReservationCommand = deserializeAws_restJs
|
|
|
5032
5032
|
const deserializeAws_restJson1UpdateReservationCommandError = async (output, context) => {
|
|
5033
5033
|
const parsedOutput = {
|
|
5034
5034
|
...output,
|
|
5035
|
-
body: await
|
|
5035
|
+
body: await parseErrorBody(output.body, context),
|
|
5036
5036
|
};
|
|
5037
5037
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5038
5038
|
switch (errorCode) {
|
|
@@ -10065,6 +10065,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
10065
10065
|
}
|
|
10066
10066
|
return {};
|
|
10067
10067
|
});
|
|
10068
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
10069
|
+
var _a;
|
|
10070
|
+
const value = await parseBody(errorBody, context);
|
|
10071
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
10072
|
+
return value;
|
|
10073
|
+
};
|
|
10068
10074
|
const loadRestJsonErrorCode = (output, data) => {
|
|
10069
10075
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
10070
10076
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1550,7 +1550,7 @@ var deserializeAws_restJson1AcceptInputDeviceTransferCommandError = function (ou
|
|
|
1550
1550
|
case 0:
|
|
1551
1551
|
_a = [__assign({}, output)];
|
|
1552
1552
|
_c = {};
|
|
1553
|
-
return [4,
|
|
1553
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1554
1554
|
case 1:
|
|
1555
1555
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1556
1556
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1641,7 +1641,7 @@ var deserializeAws_restJson1BatchDeleteCommandError = function (output, context)
|
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
_a = [__assign({}, output)];
|
|
1643
1643
|
_c = {};
|
|
1644
|
-
return [4,
|
|
1644
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1645
1645
|
case 1:
|
|
1646
1646
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1647
1647
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1728,7 +1728,7 @@ var deserializeAws_restJson1BatchStartCommandError = function (output, context)
|
|
|
1728
1728
|
case 0:
|
|
1729
1729
|
_a = [__assign({}, output)];
|
|
1730
1730
|
_c = {};
|
|
1731
|
-
return [4,
|
|
1731
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1732
1732
|
case 1:
|
|
1733
1733
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1734
1734
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1815,7 +1815,7 @@ var deserializeAws_restJson1BatchStopCommandError = function (output, context) {
|
|
|
1815
1815
|
case 0:
|
|
1816
1816
|
_a = [__assign({}, output)];
|
|
1817
1817
|
_c = {};
|
|
1818
|
-
return [4,
|
|
1818
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1819
1819
|
case 1:
|
|
1820
1820
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1821
1821
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1902,7 +1902,7 @@ var deserializeAws_restJson1BatchUpdateScheduleCommandError = function (output,
|
|
|
1902
1902
|
case 0:
|
|
1903
1903
|
_a = [__assign({}, output)];
|
|
1904
1904
|
_c = {};
|
|
1905
|
-
return [4,
|
|
1905
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1906
1906
|
case 1:
|
|
1907
1907
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1908
1908
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -1981,7 +1981,7 @@ var deserializeAws_restJson1CancelInputDeviceTransferCommandError = function (ou
|
|
|
1981
1981
|
case 0:
|
|
1982
1982
|
_a = [__assign({}, output)];
|
|
1983
1983
|
_c = {};
|
|
1984
|
-
return [4,
|
|
1984
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1985
1985
|
case 1:
|
|
1986
1986
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1987
1987
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2064,7 +2064,7 @@ var deserializeAws_restJson1ClaimDeviceCommandError = function (output, context)
|
|
|
2064
2064
|
case 0:
|
|
2065
2065
|
_a = [__assign({}, output)];
|
|
2066
2066
|
_c = {};
|
|
2067
|
-
return [4,
|
|
2067
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2068
2068
|
case 1:
|
|
2069
2069
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2070
2070
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2148,7 +2148,7 @@ var deserializeAws_restJson1CreateChannelCommandError = function (output, contex
|
|
|
2148
2148
|
case 0:
|
|
2149
2149
|
_a = [__assign({}, output)];
|
|
2150
2150
|
_c = {};
|
|
2151
|
-
return [4,
|
|
2151
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2152
2152
|
case 1:
|
|
2153
2153
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2154
2154
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2232,7 +2232,7 @@ var deserializeAws_restJson1CreateInputCommandError = function (output, context)
|
|
|
2232
2232
|
case 0:
|
|
2233
2233
|
_a = [__assign({}, output)];
|
|
2234
2234
|
_c = {};
|
|
2235
|
-
return [4,
|
|
2235
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2236
2236
|
case 1:
|
|
2237
2237
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2238
2238
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2308,7 +2308,7 @@ var deserializeAws_restJson1CreateInputSecurityGroupCommandError = function (out
|
|
|
2308
2308
|
case 0:
|
|
2309
2309
|
_a = [__assign({}, output)];
|
|
2310
2310
|
_c = {};
|
|
2311
|
-
return [4,
|
|
2311
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2312
2312
|
case 1:
|
|
2313
2313
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2314
2314
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2384,7 +2384,7 @@ var deserializeAws_restJson1CreateMultiplexCommandError = function (output, cont
|
|
|
2384
2384
|
case 0:
|
|
2385
2385
|
_a = [__assign({}, output)];
|
|
2386
2386
|
_c = {};
|
|
2387
|
-
return [4,
|
|
2387
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2388
2388
|
case 1:
|
|
2389
2389
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2390
2390
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2468,7 +2468,7 @@ var deserializeAws_restJson1CreateMultiplexProgramCommandError = function (outpu
|
|
|
2468
2468
|
case 0:
|
|
2469
2469
|
_a = [__assign({}, output)];
|
|
2470
2470
|
_c = {};
|
|
2471
|
-
return [4,
|
|
2471
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2472
2472
|
case 1:
|
|
2473
2473
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2474
2474
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2552,7 +2552,7 @@ var deserializeAws_restJson1CreatePartnerInputCommandError = function (output, c
|
|
|
2552
2552
|
case 0:
|
|
2553
2553
|
_a = [__assign({}, output)];
|
|
2554
2554
|
_c = {};
|
|
2555
|
-
return [4,
|
|
2555
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2556
2556
|
case 1:
|
|
2557
2557
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2558
2558
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2623,7 +2623,7 @@ var deserializeAws_restJson1CreateTagsCommandError = function (output, context)
|
|
|
2623
2623
|
case 0:
|
|
2624
2624
|
_a = [__assign({}, output)];
|
|
2625
2625
|
_c = {};
|
|
2626
|
-
return [4,
|
|
2626
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2627
2627
|
case 1:
|
|
2628
2628
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2629
2629
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2742,7 +2742,7 @@ var deserializeAws_restJson1DeleteChannelCommandError = function (output, contex
|
|
|
2742
2742
|
case 0:
|
|
2743
2743
|
_a = [__assign({}, output)];
|
|
2744
2744
|
_c = {};
|
|
2745
|
-
return [4,
|
|
2745
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2746
2746
|
case 1:
|
|
2747
2747
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2748
2748
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2821,7 +2821,7 @@ var deserializeAws_restJson1DeleteInputCommandError = function (output, context)
|
|
|
2821
2821
|
case 0:
|
|
2822
2822
|
_a = [__assign({}, output)];
|
|
2823
2823
|
_c = {};
|
|
2824
|
-
return [4,
|
|
2824
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2825
2825
|
case 1:
|
|
2826
2826
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2827
2827
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -2900,7 +2900,7 @@ var deserializeAws_restJson1DeleteInputSecurityGroupCommandError = function (out
|
|
|
2900
2900
|
case 0:
|
|
2901
2901
|
_a = [__assign({}, output)];
|
|
2902
2902
|
_c = {};
|
|
2903
|
-
return [4,
|
|
2903
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2904
2904
|
case 1:
|
|
2905
2905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2906
2906
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3007,7 +3007,7 @@ var deserializeAws_restJson1DeleteMultiplexCommandError = function (output, cont
|
|
|
3007
3007
|
case 0:
|
|
3008
3008
|
_a = [__assign({}, output)];
|
|
3009
3009
|
_c = {};
|
|
3010
|
-
return [4,
|
|
3010
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3011
3011
|
case 1:
|
|
3012
3012
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3013
3013
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3103,7 +3103,7 @@ var deserializeAws_restJson1DeleteMultiplexProgramCommandError = function (outpu
|
|
|
3103
3103
|
case 0:
|
|
3104
3104
|
_a = [__assign({}, output)];
|
|
3105
3105
|
_c = {};
|
|
3106
|
-
return [4,
|
|
3106
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3107
3107
|
case 1:
|
|
3108
3108
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3109
3109
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3241,7 +3241,7 @@ var deserializeAws_restJson1DeleteReservationCommandError = function (output, co
|
|
|
3241
3241
|
case 0:
|
|
3242
3242
|
_a = [__assign({}, output)];
|
|
3243
3243
|
_c = {};
|
|
3244
|
-
return [4,
|
|
3244
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3245
3245
|
case 1:
|
|
3246
3246
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3247
3247
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3320,7 +3320,7 @@ var deserializeAws_restJson1DeleteScheduleCommandError = function (output, conte
|
|
|
3320
3320
|
case 0:
|
|
3321
3321
|
_a = [__assign({}, output)];
|
|
3322
3322
|
_c = {};
|
|
3323
|
-
return [4,
|
|
3323
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3324
3324
|
case 1:
|
|
3325
3325
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3326
3326
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3395,7 +3395,7 @@ var deserializeAws_restJson1DeleteTagsCommandError = function (output, context)
|
|
|
3395
3395
|
case 0:
|
|
3396
3396
|
_a = [__assign({}, output)];
|
|
3397
3397
|
_c = {};
|
|
3398
|
-
return [4,
|
|
3398
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3399
3399
|
case 1:
|
|
3400
3400
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3401
3401
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3514,7 +3514,7 @@ var deserializeAws_restJson1DescribeChannelCommandError = function (output, cont
|
|
|
3514
3514
|
case 0:
|
|
3515
3515
|
_a = [__assign({}, output)];
|
|
3516
3516
|
_c = {};
|
|
3517
|
-
return [4,
|
|
3517
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3518
3518
|
case 1:
|
|
3519
3519
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3520
3520
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3639,7 +3639,7 @@ var deserializeAws_restJson1DescribeInputCommandError = function (output, contex
|
|
|
3639
3639
|
case 0:
|
|
3640
3640
|
_a = [__assign({}, output)];
|
|
3641
3641
|
_c = {};
|
|
3642
|
-
return [4,
|
|
3642
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3643
3643
|
case 1:
|
|
3644
3644
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3645
3645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3752,7 +3752,7 @@ var deserializeAws_restJson1DescribeInputDeviceCommandError = function (output,
|
|
|
3752
3752
|
case 0:
|
|
3753
3753
|
_a = [__assign({}, output)];
|
|
3754
3754
|
_c = {};
|
|
3755
|
-
return [4,
|
|
3755
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3756
3756
|
case 1:
|
|
3757
3757
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3758
3758
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3833,7 +3833,7 @@ var deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = function
|
|
|
3833
3833
|
case 0:
|
|
3834
3834
|
_a = [__assign({}, output)];
|
|
3835
3835
|
_c = {};
|
|
3836
|
-
return [4,
|
|
3836
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3837
3837
|
case 1:
|
|
3838
3838
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3839
3839
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -3928,7 +3928,7 @@ var deserializeAws_restJson1DescribeInputSecurityGroupCommandError = function (o
|
|
|
3928
3928
|
case 0:
|
|
3929
3929
|
_a = [__assign({}, output)];
|
|
3930
3930
|
_c = {};
|
|
3931
|
-
return [4,
|
|
3931
|
+
return [4, parseErrorBody(output.body, context)];
|
|
3932
3932
|
case 1:
|
|
3933
3933
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3934
3934
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4035,7 +4035,7 @@ var deserializeAws_restJson1DescribeMultiplexCommandError = function (output, co
|
|
|
4035
4035
|
case 0:
|
|
4036
4036
|
_a = [__assign({}, output)];
|
|
4037
4037
|
_c = {};
|
|
4038
|
-
return [4,
|
|
4038
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4039
4039
|
case 1:
|
|
4040
4040
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4041
4041
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4127,7 +4127,7 @@ var deserializeAws_restJson1DescribeMultiplexProgramCommandError = function (out
|
|
|
4127
4127
|
case 0:
|
|
4128
4128
|
_a = [__assign({}, output)];
|
|
4129
4129
|
_c = {};
|
|
4130
|
-
return [4,
|
|
4130
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4131
4131
|
case 1:
|
|
4132
4132
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4133
4133
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4237,7 +4237,7 @@ var deserializeAws_restJson1DescribeOfferingCommandError = function (output, con
|
|
|
4237
4237
|
case 0:
|
|
4238
4238
|
_a = [__assign({}, output)];
|
|
4239
4239
|
_c = {};
|
|
4240
|
-
return [4,
|
|
4240
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4241
4241
|
case 1:
|
|
4242
4242
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4243
4243
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4371,7 +4371,7 @@ var deserializeAws_restJson1DescribeReservationCommandError = function (output,
|
|
|
4371
4371
|
case 0:
|
|
4372
4372
|
_a = [__assign({}, output)];
|
|
4373
4373
|
_c = {};
|
|
4374
|
-
return [4,
|
|
4374
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4375
4375
|
case 1:
|
|
4376
4376
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4377
4377
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4454,7 +4454,7 @@ var deserializeAws_restJson1DescribeScheduleCommandError = function (output, con
|
|
|
4454
4454
|
case 0:
|
|
4455
4455
|
_a = [__assign({}, output)];
|
|
4456
4456
|
_c = {};
|
|
4457
|
-
return [4,
|
|
4457
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4458
4458
|
case 1:
|
|
4459
4459
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4460
4460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4537,7 +4537,7 @@ var deserializeAws_restJson1ListChannelsCommandError = function (output, context
|
|
|
4537
4537
|
case 0:
|
|
4538
4538
|
_a = [__assign({}, output)];
|
|
4539
4539
|
_c = {};
|
|
4540
|
-
return [4,
|
|
4540
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4541
4541
|
case 1:
|
|
4542
4542
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4543
4543
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4616,7 +4616,7 @@ var deserializeAws_restJson1ListInputDevicesCommandError = function (output, con
|
|
|
4616
4616
|
case 0:
|
|
4617
4617
|
_a = [__assign({}, output)];
|
|
4618
4618
|
_c = {};
|
|
4619
|
-
return [4,
|
|
4619
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4620
4620
|
case 1:
|
|
4621
4621
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4622
4622
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4695,7 +4695,7 @@ var deserializeAws_restJson1ListInputDeviceTransfersCommandError = function (out
|
|
|
4695
4695
|
case 0:
|
|
4696
4696
|
_a = [__assign({}, output)];
|
|
4697
4697
|
_c = {};
|
|
4698
|
-
return [4,
|
|
4698
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4699
4699
|
case 1:
|
|
4700
4700
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4701
4701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4778,7 +4778,7 @@ var deserializeAws_restJson1ListInputsCommandError = function (output, context)
|
|
|
4778
4778
|
case 0:
|
|
4779
4779
|
_a = [__assign({}, output)];
|
|
4780
4780
|
_c = {};
|
|
4781
|
-
return [4,
|
|
4781
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4782
4782
|
case 1:
|
|
4783
4783
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4784
4784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4857,7 +4857,7 @@ var deserializeAws_restJson1ListInputSecurityGroupsCommandError = function (outp
|
|
|
4857
4857
|
case 0:
|
|
4858
4858
|
_a = [__assign({}, output)];
|
|
4859
4859
|
_c = {};
|
|
4860
|
-
return [4,
|
|
4860
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4861
4861
|
case 1:
|
|
4862
4862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4863
4863
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -4936,7 +4936,7 @@ var deserializeAws_restJson1ListMultiplexesCommandError = function (output, cont
|
|
|
4936
4936
|
case 0:
|
|
4937
4937
|
_a = [__assign({}, output)];
|
|
4938
4938
|
_c = {};
|
|
4939
|
-
return [4,
|
|
4939
|
+
return [4, parseErrorBody(output.body, context)];
|
|
4940
4940
|
case 1:
|
|
4941
4941
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4942
4942
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5015,7 +5015,7 @@ var deserializeAws_restJson1ListMultiplexProgramsCommandError = function (output
|
|
|
5015
5015
|
case 0:
|
|
5016
5016
|
_a = [__assign({}, output)];
|
|
5017
5017
|
_c = {};
|
|
5018
|
-
return [4,
|
|
5018
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5019
5019
|
case 1:
|
|
5020
5020
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5021
5021
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5098,7 +5098,7 @@ var deserializeAws_restJson1ListOfferingsCommandError = function (output, contex
|
|
|
5098
5098
|
case 0:
|
|
5099
5099
|
_a = [__assign({}, output)];
|
|
5100
5100
|
_c = {};
|
|
5101
|
-
return [4,
|
|
5101
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5102
5102
|
case 1:
|
|
5103
5103
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5104
5104
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5177,7 +5177,7 @@ var deserializeAws_restJson1ListReservationsCommandError = function (output, con
|
|
|
5177
5177
|
case 0:
|
|
5178
5178
|
_a = [__assign({}, output)];
|
|
5179
5179
|
_c = {};
|
|
5180
|
-
return [4,
|
|
5180
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5181
5181
|
case 1:
|
|
5182
5182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5183
5183
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5253,7 +5253,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
5253
5253
|
case 0:
|
|
5254
5254
|
_a = [__assign({}, output)];
|
|
5255
5255
|
_c = {};
|
|
5256
|
-
return [4,
|
|
5256
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5257
5257
|
case 1:
|
|
5258
5258
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5259
5259
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5321,7 +5321,7 @@ var deserializeAws_restJson1PurchaseOfferingCommandError = function (output, con
|
|
|
5321
5321
|
case 0:
|
|
5322
5322
|
_a = [__assign({}, output)];
|
|
5323
5323
|
_c = {};
|
|
5324
|
-
return [4,
|
|
5324
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5325
5325
|
case 1:
|
|
5326
5326
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5327
5327
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5400,7 +5400,7 @@ var deserializeAws_restJson1RebootInputDeviceCommandError = function (output, co
|
|
|
5400
5400
|
case 0:
|
|
5401
5401
|
_a = [__assign({}, output)];
|
|
5402
5402
|
_c = {};
|
|
5403
|
-
return [4,
|
|
5403
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5404
5404
|
case 1:
|
|
5405
5405
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5406
5406
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5479,7 +5479,7 @@ var deserializeAws_restJson1RejectInputDeviceTransferCommandError = function (ou
|
|
|
5479
5479
|
case 0:
|
|
5480
5480
|
_a = [__assign({}, output)];
|
|
5481
5481
|
_c = {};
|
|
5482
|
-
return [4,
|
|
5482
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5483
5483
|
case 1:
|
|
5484
5484
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5485
5485
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5618,7 +5618,7 @@ var deserializeAws_restJson1StartChannelCommandError = function (output, context
|
|
|
5618
5618
|
case 0:
|
|
5619
5619
|
_a = [__assign({}, output)];
|
|
5620
5620
|
_c = {};
|
|
5621
|
-
return [4,
|
|
5621
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5622
5622
|
case 1:
|
|
5623
5623
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5624
5624
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5697,7 +5697,7 @@ var deserializeAws_restJson1StartInputDeviceMaintenanceWindowCommandError = func
|
|
|
5697
5697
|
case 0:
|
|
5698
5698
|
_a = [__assign({}, output)];
|
|
5699
5699
|
_c = {};
|
|
5700
|
-
return [4,
|
|
5700
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5701
5701
|
case 1:
|
|
5702
5702
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5703
5703
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5808,7 +5808,7 @@ var deserializeAws_restJson1StartMultiplexCommandError = function (output, conte
|
|
|
5808
5808
|
case 0:
|
|
5809
5809
|
_a = [__assign({}, output)];
|
|
5810
5810
|
_c = {};
|
|
5811
|
-
return [4,
|
|
5811
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5812
5812
|
case 1:
|
|
5813
5813
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5814
5814
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -5943,7 +5943,7 @@ var deserializeAws_restJson1StopChannelCommandError = function (output, context)
|
|
|
5943
5943
|
case 0:
|
|
5944
5944
|
_a = [__assign({}, output)];
|
|
5945
5945
|
_c = {};
|
|
5946
|
-
return [4,
|
|
5946
|
+
return [4, parseErrorBody(output.body, context)];
|
|
5947
5947
|
case 1:
|
|
5948
5948
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5949
5949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6054,7 +6054,7 @@ var deserializeAws_restJson1StopMultiplexCommandError = function (output, contex
|
|
|
6054
6054
|
case 0:
|
|
6055
6055
|
_a = [__assign({}, output)];
|
|
6056
6056
|
_c = {};
|
|
6057
|
-
return [4,
|
|
6057
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6058
6058
|
case 1:
|
|
6059
6059
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6060
6060
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6133,7 +6133,7 @@ var deserializeAws_restJson1TransferInputDeviceCommandError = function (output,
|
|
|
6133
6133
|
case 0:
|
|
6134
6134
|
_a = [__assign({}, output)];
|
|
6135
6135
|
_c = {};
|
|
6136
|
-
return [4,
|
|
6136
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6137
6137
|
case 1:
|
|
6138
6138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6139
6139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6221,7 +6221,7 @@ var deserializeAws_restJson1UpdateChannelCommandError = function (output, contex
|
|
|
6221
6221
|
case 0:
|
|
6222
6222
|
_a = [__assign({}, output)];
|
|
6223
6223
|
_c = {};
|
|
6224
|
-
return [4,
|
|
6224
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6225
6225
|
case 1:
|
|
6226
6226
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6227
6227
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6301,7 +6301,7 @@ var deserializeAws_restJson1UpdateChannelClassCommandError = function (output, c
|
|
|
6301
6301
|
case 0:
|
|
6302
6302
|
_a = [__assign({}, output)];
|
|
6303
6303
|
_c = {};
|
|
6304
|
-
return [4,
|
|
6304
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6305
6305
|
case 1:
|
|
6306
6306
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6307
6307
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6389,7 +6389,7 @@ var deserializeAws_restJson1UpdateInputCommandError = function (output, context)
|
|
|
6389
6389
|
case 0:
|
|
6390
6390
|
_a = [__assign({}, output)];
|
|
6391
6391
|
_c = {};
|
|
6392
|
-
return [4,
|
|
6392
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6393
6393
|
case 1:
|
|
6394
6394
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6395
6395
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6502,7 +6502,7 @@ var deserializeAws_restJson1UpdateInputDeviceCommandError = function (output, co
|
|
|
6502
6502
|
case 0:
|
|
6503
6503
|
_a = [__assign({}, output)];
|
|
6504
6504
|
_c = {};
|
|
6505
|
-
return [4,
|
|
6505
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6506
6506
|
case 1:
|
|
6507
6507
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6508
6508
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6586,7 +6586,7 @@ var deserializeAws_restJson1UpdateInputSecurityGroupCommandError = function (out
|
|
|
6586
6586
|
case 0:
|
|
6587
6587
|
_a = [__assign({}, output)];
|
|
6588
6588
|
_c = {};
|
|
6589
|
-
return [4,
|
|
6589
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6590
6590
|
case 1:
|
|
6591
6591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6592
6592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6666,7 +6666,7 @@ var deserializeAws_restJson1UpdateMultiplexCommandError = function (output, cont
|
|
|
6666
6666
|
case 0:
|
|
6667
6667
|
_a = [__assign({}, output)];
|
|
6668
6668
|
_c = {};
|
|
6669
|
-
return [4,
|
|
6669
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6670
6670
|
case 1:
|
|
6671
6671
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6672
6672
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6750,7 +6750,7 @@ var deserializeAws_restJson1UpdateMultiplexProgramCommandError = function (outpu
|
|
|
6750
6750
|
case 0:
|
|
6751
6751
|
_a = [__assign({}, output)];
|
|
6752
6752
|
_c = {};
|
|
6753
|
-
return [4,
|
|
6753
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6754
6754
|
case 1:
|
|
6755
6755
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6756
6756
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -6834,7 +6834,7 @@ var deserializeAws_restJson1UpdateReservationCommandError = function (output, co
|
|
|
6834
6834
|
case 0:
|
|
6835
6835
|
_a = [__assign({}, output)];
|
|
6836
6836
|
_c = {};
|
|
6837
|
-
return [4,
|
|
6837
|
+
return [4, parseErrorBody(output.body, context)];
|
|
6838
6838
|
case 1:
|
|
6839
6839
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6840
6840
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
@@ -10941,6 +10941,19 @@ var parseBody = function (streamBody, context) {
|
|
|
10941
10941
|
return {};
|
|
10942
10942
|
});
|
|
10943
10943
|
};
|
|
10944
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
10945
|
+
var value;
|
|
10946
|
+
var _a;
|
|
10947
|
+
return __generator(this, function (_b) {
|
|
10948
|
+
switch (_b.label) {
|
|
10949
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
10950
|
+
case 1:
|
|
10951
|
+
value = _b.sent();
|
|
10952
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
10953
|
+
return [2, value];
|
|
10954
|
+
}
|
|
10955
|
+
});
|
|
10956
|
+
}); };
|
|
10944
10957
|
var loadRestJsonErrorCode = function (output, data) {
|
|
10945
10958
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
10946
10959
|
var sanitizeErrorCode = function (rawValue) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-medialive",
|
|
3
3
|
"description": "AWS SDK for JavaScript Medialive Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.181.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.181.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.181.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|