@aws-sdk/client-medialive 3.120.0 → 3.121.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +285 -229
- package/dist-es/protocols/Aws_restJson1.js +285 -229
- package/package.json +3 -3
|
@@ -1764,8 +1764,7 @@ const deserializeAws_restJson1AcceptInputDeviceTransferCommandError = async (out
|
|
|
1764
1764
|
body: await parseBody(output.body, context),
|
|
1765
1765
|
};
|
|
1766
1766
|
let response;
|
|
1767
|
-
|
|
1768
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1769
1768
|
switch (errorCode) {
|
|
1770
1769
|
case "BadGatewayException":
|
|
1771
1770
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1796,10 +1795,12 @@ const deserializeAws_restJson1AcceptInputDeviceTransferCommandError = async (out
|
|
|
1796
1795
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1797
1796
|
default:
|
|
1798
1797
|
const parsedBody = parsedOutput.body;
|
|
1798
|
+
const $metadata = deserializeMetadata(output);
|
|
1799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1799
1800
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1801
1802
|
$fault: "client",
|
|
1802
|
-
$metadata
|
|
1803
|
+
$metadata,
|
|
1803
1804
|
});
|
|
1804
1805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1805
1806
|
}
|
|
@@ -1829,8 +1830,7 @@ const deserializeAws_restJson1BatchDeleteCommandError = async (output, context)
|
|
|
1829
1830
|
body: await parseBody(output.body, context),
|
|
1830
1831
|
};
|
|
1831
1832
|
let response;
|
|
1832
|
-
|
|
1833
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
1834
|
switch (errorCode) {
|
|
1835
1835
|
case "BadGatewayException":
|
|
1836
1836
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1858,10 +1858,12 @@ const deserializeAws_restJson1BatchDeleteCommandError = async (output, context)
|
|
|
1858
1858
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1859
1859
|
default:
|
|
1860
1860
|
const parsedBody = parsedOutput.body;
|
|
1861
|
+
const $metadata = deserializeMetadata(output);
|
|
1862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1861
1863
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1863
1865
|
$fault: "client",
|
|
1864
|
-
$metadata
|
|
1866
|
+
$metadata,
|
|
1865
1867
|
});
|
|
1866
1868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1867
1869
|
}
|
|
@@ -1891,8 +1893,7 @@ const deserializeAws_restJson1BatchStartCommandError = async (output, context) =
|
|
|
1891
1893
|
body: await parseBody(output.body, context),
|
|
1892
1894
|
};
|
|
1893
1895
|
let response;
|
|
1894
|
-
|
|
1895
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1897
|
switch (errorCode) {
|
|
1897
1898
|
case "BadGatewayException":
|
|
1898
1899
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1920,10 +1921,12 @@ const deserializeAws_restJson1BatchStartCommandError = async (output, context) =
|
|
|
1920
1921
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1921
1922
|
default:
|
|
1922
1923
|
const parsedBody = parsedOutput.body;
|
|
1924
|
+
const $metadata = deserializeMetadata(output);
|
|
1925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1923
1926
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1924
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1925
1928
|
$fault: "client",
|
|
1926
|
-
$metadata
|
|
1929
|
+
$metadata,
|
|
1927
1930
|
});
|
|
1928
1931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1929
1932
|
}
|
|
@@ -1953,8 +1956,7 @@ const deserializeAws_restJson1BatchStopCommandError = async (output, context) =>
|
|
|
1953
1956
|
body: await parseBody(output.body, context),
|
|
1954
1957
|
};
|
|
1955
1958
|
let response;
|
|
1956
|
-
|
|
1957
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1958
1960
|
switch (errorCode) {
|
|
1959
1961
|
case "BadGatewayException":
|
|
1960
1962
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1982,10 +1984,12 @@ const deserializeAws_restJson1BatchStopCommandError = async (output, context) =>
|
|
|
1982
1984
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1983
1985
|
default:
|
|
1984
1986
|
const parsedBody = parsedOutput.body;
|
|
1987
|
+
const $metadata = deserializeMetadata(output);
|
|
1988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1985
1989
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1986
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1987
1991
|
$fault: "client",
|
|
1988
|
-
$metadata
|
|
1992
|
+
$metadata,
|
|
1989
1993
|
});
|
|
1990
1994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1991
1995
|
}
|
|
@@ -2015,8 +2019,7 @@ const deserializeAws_restJson1BatchUpdateScheduleCommandError = async (output, c
|
|
|
2015
2019
|
body: await parseBody(output.body, context),
|
|
2016
2020
|
};
|
|
2017
2021
|
let response;
|
|
2018
|
-
|
|
2019
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
2023
|
switch (errorCode) {
|
|
2021
2024
|
case "BadGatewayException":
|
|
2022
2025
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2044,10 +2047,12 @@ const deserializeAws_restJson1BatchUpdateScheduleCommandError = async (output, c
|
|
|
2044
2047
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2045
2048
|
default:
|
|
2046
2049
|
const parsedBody = parsedOutput.body;
|
|
2050
|
+
const $metadata = deserializeMetadata(output);
|
|
2051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2052
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2054
|
$fault: "client",
|
|
2050
|
-
$metadata
|
|
2055
|
+
$metadata,
|
|
2051
2056
|
});
|
|
2052
2057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
2058
|
}
|
|
@@ -2069,8 +2074,7 @@ const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (out
|
|
|
2069
2074
|
body: await parseBody(output.body, context),
|
|
2070
2075
|
};
|
|
2071
2076
|
let response;
|
|
2072
|
-
|
|
2073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
2078
|
switch (errorCode) {
|
|
2075
2079
|
case "BadGatewayException":
|
|
2076
2080
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2101,10 +2105,12 @@ const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (out
|
|
|
2101
2105
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2102
2106
|
default:
|
|
2103
2107
|
const parsedBody = parsedOutput.body;
|
|
2108
|
+
const $metadata = deserializeMetadata(output);
|
|
2109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2104
2110
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2105
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2106
2112
|
$fault: "client",
|
|
2107
|
-
$metadata
|
|
2113
|
+
$metadata,
|
|
2108
2114
|
});
|
|
2109
2115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2110
2116
|
}
|
|
@@ -2126,8 +2132,7 @@ const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context)
|
|
|
2126
2132
|
body: await parseBody(output.body, context),
|
|
2127
2133
|
};
|
|
2128
2134
|
let response;
|
|
2129
|
-
|
|
2130
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
2136
|
switch (errorCode) {
|
|
2132
2137
|
case "BadGatewayException":
|
|
2133
2138
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2155,10 +2160,12 @@ const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context)
|
|
|
2155
2160
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2156
2161
|
default:
|
|
2157
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2158
2165
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2159
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2160
2167
|
$fault: "client",
|
|
2161
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2162
2169
|
});
|
|
2163
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2164
2171
|
}
|
|
@@ -2184,8 +2191,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
2184
2191
|
body: await parseBody(output.body, context),
|
|
2185
2192
|
};
|
|
2186
2193
|
let response;
|
|
2187
|
-
|
|
2188
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
2195
|
switch (errorCode) {
|
|
2190
2196
|
case "BadGatewayException":
|
|
2191
2197
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2213,10 +2219,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
2213
2219
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2214
2220
|
default:
|
|
2215
2221
|
const parsedBody = parsedOutput.body;
|
|
2222
|
+
const $metadata = deserializeMetadata(output);
|
|
2223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2216
2224
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2217
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2218
2226
|
$fault: "client",
|
|
2219
|
-
$metadata
|
|
2227
|
+
$metadata,
|
|
2220
2228
|
});
|
|
2221
2229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2222
2230
|
}
|
|
@@ -2242,8 +2250,7 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
2242
2250
|
body: await parseBody(output.body, context),
|
|
2243
2251
|
};
|
|
2244
2252
|
let response;
|
|
2245
|
-
|
|
2246
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
2254
|
switch (errorCode) {
|
|
2248
2255
|
case "BadGatewayException":
|
|
2249
2256
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2265,10 +2272,12 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
2265
2272
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2266
2273
|
default:
|
|
2267
2274
|
const parsedBody = parsedOutput.body;
|
|
2275
|
+
const $metadata = deserializeMetadata(output);
|
|
2276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2268
2277
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2269
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2270
2279
|
$fault: "client",
|
|
2271
|
-
$metadata
|
|
2280
|
+
$metadata,
|
|
2272
2281
|
});
|
|
2273
2282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2274
2283
|
}
|
|
@@ -2294,8 +2303,7 @@ const deserializeAws_restJson1CreateInputSecurityGroupCommandError = async (outp
|
|
|
2294
2303
|
body: await parseBody(output.body, context),
|
|
2295
2304
|
};
|
|
2296
2305
|
let response;
|
|
2297
|
-
|
|
2298
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
2307
|
switch (errorCode) {
|
|
2300
2308
|
case "BadGatewayException":
|
|
2301
2309
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2317,10 +2325,12 @@ const deserializeAws_restJson1CreateInputSecurityGroupCommandError = async (outp
|
|
|
2317
2325
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2318
2326
|
default:
|
|
2319
2327
|
const parsedBody = parsedOutput.body;
|
|
2328
|
+
const $metadata = deserializeMetadata(output);
|
|
2329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2320
2330
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2322
2332
|
$fault: "client",
|
|
2323
|
-
$metadata
|
|
2333
|
+
$metadata,
|
|
2324
2334
|
});
|
|
2325
2335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2326
2336
|
}
|
|
@@ -2346,8 +2356,7 @@ const deserializeAws_restJson1CreateMultiplexCommandError = async (output, conte
|
|
|
2346
2356
|
body: await parseBody(output.body, context),
|
|
2347
2357
|
};
|
|
2348
2358
|
let response;
|
|
2349
|
-
|
|
2350
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2351
2360
|
switch (errorCode) {
|
|
2352
2361
|
case "BadGatewayException":
|
|
2353
2362
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2375,10 +2384,12 @@ const deserializeAws_restJson1CreateMultiplexCommandError = async (output, conte
|
|
|
2375
2384
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2376
2385
|
default:
|
|
2377
2386
|
const parsedBody = parsedOutput.body;
|
|
2387
|
+
const $metadata = deserializeMetadata(output);
|
|
2388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2378
2389
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2380
2391
|
$fault: "client",
|
|
2381
|
-
$metadata
|
|
2392
|
+
$metadata,
|
|
2382
2393
|
});
|
|
2383
2394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2384
2395
|
}
|
|
@@ -2404,8 +2415,7 @@ const deserializeAws_restJson1CreateMultiplexProgramCommandError = async (output
|
|
|
2404
2415
|
body: await parseBody(output.body, context),
|
|
2405
2416
|
};
|
|
2406
2417
|
let response;
|
|
2407
|
-
|
|
2408
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
2419
|
switch (errorCode) {
|
|
2410
2420
|
case "BadGatewayException":
|
|
2411
2421
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2433,10 +2443,12 @@ const deserializeAws_restJson1CreateMultiplexProgramCommandError = async (output
|
|
|
2433
2443
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2434
2444
|
default:
|
|
2435
2445
|
const parsedBody = parsedOutput.body;
|
|
2446
|
+
const $metadata = deserializeMetadata(output);
|
|
2447
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2436
2448
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2449
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2438
2450
|
$fault: "client",
|
|
2439
|
-
$metadata
|
|
2451
|
+
$metadata,
|
|
2440
2452
|
});
|
|
2441
2453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2442
2454
|
}
|
|
@@ -2462,8 +2474,7 @@ const deserializeAws_restJson1CreatePartnerInputCommandError = async (output, co
|
|
|
2462
2474
|
body: await parseBody(output.body, context),
|
|
2463
2475
|
};
|
|
2464
2476
|
let response;
|
|
2465
|
-
|
|
2466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2467
2478
|
switch (errorCode) {
|
|
2468
2479
|
case "BadGatewayException":
|
|
2469
2480
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2485,10 +2496,12 @@ const deserializeAws_restJson1CreatePartnerInputCommandError = async (output, co
|
|
|
2485
2496
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2486
2497
|
default:
|
|
2487
2498
|
const parsedBody = parsedOutput.body;
|
|
2499
|
+
const $metadata = deserializeMetadata(output);
|
|
2500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2488
2501
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2489
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2490
2503
|
$fault: "client",
|
|
2491
|
-
$metadata
|
|
2504
|
+
$metadata,
|
|
2492
2505
|
});
|
|
2493
2506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2494
2507
|
}
|
|
@@ -2510,8 +2523,7 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
2510
2523
|
body: await parseBody(output.body, context),
|
|
2511
2524
|
};
|
|
2512
2525
|
let response;
|
|
2513
|
-
|
|
2514
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2515
2527
|
switch (errorCode) {
|
|
2516
2528
|
case "BadRequestException":
|
|
2517
2529
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -2527,10 +2539,12 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
2527
2539
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2528
2540
|
default:
|
|
2529
2541
|
const parsedBody = parsedOutput.body;
|
|
2542
|
+
const $metadata = deserializeMetadata(output);
|
|
2543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2530
2544
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2531
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2532
2546
|
$fault: "client",
|
|
2533
|
-
$metadata
|
|
2547
|
+
$metadata,
|
|
2534
2548
|
});
|
|
2535
2549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2536
2550
|
}
|
|
@@ -2624,8 +2638,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2624
2638
|
body: await parseBody(output.body, context),
|
|
2625
2639
|
};
|
|
2626
2640
|
let response;
|
|
2627
|
-
|
|
2628
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2629
2642
|
switch (errorCode) {
|
|
2630
2643
|
case "BadGatewayException":
|
|
2631
2644
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2653,10 +2666,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2653
2666
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2654
2667
|
default:
|
|
2655
2668
|
const parsedBody = parsedOutput.body;
|
|
2669
|
+
const $metadata = deserializeMetadata(output);
|
|
2670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2656
2671
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2657
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2658
2673
|
$fault: "client",
|
|
2659
|
-
$metadata
|
|
2674
|
+
$metadata,
|
|
2660
2675
|
});
|
|
2661
2676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2662
2677
|
}
|
|
@@ -2678,8 +2693,7 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
2678
2693
|
body: await parseBody(output.body, context),
|
|
2679
2694
|
};
|
|
2680
2695
|
let response;
|
|
2681
|
-
|
|
2682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2683
2697
|
switch (errorCode) {
|
|
2684
2698
|
case "BadGatewayException":
|
|
2685
2699
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2707,10 +2721,12 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
2707
2721
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2708
2722
|
default:
|
|
2709
2723
|
const parsedBody = parsedOutput.body;
|
|
2724
|
+
const $metadata = deserializeMetadata(output);
|
|
2725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2710
2726
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2711
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2712
2728
|
$fault: "client",
|
|
2713
|
-
$metadata
|
|
2729
|
+
$metadata,
|
|
2714
2730
|
});
|
|
2715
2731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2716
2732
|
}
|
|
@@ -2732,8 +2748,7 @@ const deserializeAws_restJson1DeleteInputSecurityGroupCommandError = async (outp
|
|
|
2732
2748
|
body: await parseBody(output.body, context),
|
|
2733
2749
|
};
|
|
2734
2750
|
let response;
|
|
2735
|
-
|
|
2736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2737
2752
|
switch (errorCode) {
|
|
2738
2753
|
case "BadGatewayException":
|
|
2739
2754
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2758,10 +2773,12 @@ const deserializeAws_restJson1DeleteInputSecurityGroupCommandError = async (outp
|
|
|
2758
2773
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2759
2774
|
default:
|
|
2760
2775
|
const parsedBody = parsedOutput.body;
|
|
2776
|
+
const $metadata = deserializeMetadata(output);
|
|
2777
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2761
2778
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2762
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2763
2780
|
$fault: "client",
|
|
2764
|
-
$metadata
|
|
2781
|
+
$metadata,
|
|
2765
2782
|
});
|
|
2766
2783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2767
2784
|
}
|
|
@@ -2823,8 +2840,7 @@ const deserializeAws_restJson1DeleteMultiplexCommandError = async (output, conte
|
|
|
2823
2840
|
body: await parseBody(output.body, context),
|
|
2824
2841
|
};
|
|
2825
2842
|
let response;
|
|
2826
|
-
|
|
2827
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2828
2844
|
switch (errorCode) {
|
|
2829
2845
|
case "BadGatewayException":
|
|
2830
2846
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2852,10 +2868,12 @@ const deserializeAws_restJson1DeleteMultiplexCommandError = async (output, conte
|
|
|
2852
2868
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2853
2869
|
default:
|
|
2854
2870
|
const parsedBody = parsedOutput.body;
|
|
2871
|
+
const $metadata = deserializeMetadata(output);
|
|
2872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2855
2873
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2856
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2857
2875
|
$fault: "client",
|
|
2858
|
-
$metadata
|
|
2876
|
+
$metadata,
|
|
2859
2877
|
});
|
|
2860
2878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2861
2879
|
}
|
|
@@ -2897,8 +2915,7 @@ const deserializeAws_restJson1DeleteMultiplexProgramCommandError = async (output
|
|
|
2897
2915
|
body: await parseBody(output.body, context),
|
|
2898
2916
|
};
|
|
2899
2917
|
let response;
|
|
2900
|
-
|
|
2901
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
2919
|
switch (errorCode) {
|
|
2903
2920
|
case "BadGatewayException":
|
|
2904
2921
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2926,10 +2943,12 @@ const deserializeAws_restJson1DeleteMultiplexProgramCommandError = async (output
|
|
|
2926
2943
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2927
2944
|
default:
|
|
2928
2945
|
const parsedBody = parsedOutput.body;
|
|
2946
|
+
const $metadata = deserializeMetadata(output);
|
|
2947
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2929
2948
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2930
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2931
2950
|
$fault: "client",
|
|
2932
|
-
$metadata
|
|
2951
|
+
$metadata,
|
|
2933
2952
|
});
|
|
2934
2953
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2935
2954
|
}
|
|
@@ -3027,8 +3046,7 @@ const deserializeAws_restJson1DeleteReservationCommandError = async (output, con
|
|
|
3027
3046
|
body: await parseBody(output.body, context),
|
|
3028
3047
|
};
|
|
3029
3048
|
let response;
|
|
3030
|
-
|
|
3031
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3032
3050
|
switch (errorCode) {
|
|
3033
3051
|
case "BadGatewayException":
|
|
3034
3052
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3056,10 +3074,12 @@ const deserializeAws_restJson1DeleteReservationCommandError = async (output, con
|
|
|
3056
3074
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3057
3075
|
default:
|
|
3058
3076
|
const parsedBody = parsedOutput.body;
|
|
3077
|
+
const $metadata = deserializeMetadata(output);
|
|
3078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3059
3079
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3060
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3061
3081
|
$fault: "client",
|
|
3062
|
-
$metadata
|
|
3082
|
+
$metadata,
|
|
3063
3083
|
});
|
|
3064
3084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3065
3085
|
}
|
|
@@ -3081,8 +3101,7 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
3081
3101
|
body: await parseBody(output.body, context),
|
|
3082
3102
|
};
|
|
3083
3103
|
let response;
|
|
3084
|
-
|
|
3085
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3086
3105
|
switch (errorCode) {
|
|
3087
3106
|
case "BadGatewayException":
|
|
3088
3107
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3107,10 +3126,12 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
3107
3126
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3108
3127
|
default:
|
|
3109
3128
|
const parsedBody = parsedOutput.body;
|
|
3129
|
+
const $metadata = deserializeMetadata(output);
|
|
3130
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3110
3131
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3111
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3112
3133
|
$fault: "client",
|
|
3113
|
-
$metadata
|
|
3134
|
+
$metadata,
|
|
3114
3135
|
});
|
|
3115
3136
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3116
3137
|
}
|
|
@@ -3132,8 +3153,7 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
3132
3153
|
body: await parseBody(output.body, context),
|
|
3133
3154
|
};
|
|
3134
3155
|
let response;
|
|
3135
|
-
|
|
3136
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3137
3157
|
switch (errorCode) {
|
|
3138
3158
|
case "BadRequestException":
|
|
3139
3159
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -3149,10 +3169,12 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
3149
3169
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3150
3170
|
default:
|
|
3151
3171
|
const parsedBody = parsedOutput.body;
|
|
3172
|
+
const $metadata = deserializeMetadata(output);
|
|
3173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3152
3174
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3154
3176
|
$fault: "client",
|
|
3155
|
-
$metadata
|
|
3177
|
+
$metadata,
|
|
3156
3178
|
});
|
|
3157
3179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3158
3180
|
}
|
|
@@ -3246,8 +3268,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
3246
3268
|
body: await parseBody(output.body, context),
|
|
3247
3269
|
};
|
|
3248
3270
|
let response;
|
|
3249
|
-
|
|
3250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
3272
|
switch (errorCode) {
|
|
3252
3273
|
case "BadGatewayException":
|
|
3253
3274
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3272,10 +3293,12 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
3272
3293
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3273
3294
|
default:
|
|
3274
3295
|
const parsedBody = parsedOutput.body;
|
|
3296
|
+
const $metadata = deserializeMetadata(output);
|
|
3297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3275
3298
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3276
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3277
3300
|
$fault: "client",
|
|
3278
|
-
$metadata
|
|
3301
|
+
$metadata,
|
|
3279
3302
|
});
|
|
3280
3303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3281
3304
|
}
|
|
@@ -3361,8 +3384,7 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
3361
3384
|
body: await parseBody(output.body, context),
|
|
3362
3385
|
};
|
|
3363
3386
|
let response;
|
|
3364
|
-
|
|
3365
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
3388
|
switch (errorCode) {
|
|
3367
3389
|
case "BadGatewayException":
|
|
3368
3390
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3387,10 +3409,12 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
3387
3409
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3388
3410
|
default:
|
|
3389
3411
|
const parsedBody = parsedOutput.body;
|
|
3412
|
+
const $metadata = deserializeMetadata(output);
|
|
3413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3390
3414
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3391
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3392
3416
|
$fault: "client",
|
|
3393
|
-
$metadata
|
|
3417
|
+
$metadata,
|
|
3394
3418
|
});
|
|
3395
3419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3396
3420
|
}
|
|
@@ -3460,8 +3484,7 @@ const deserializeAws_restJson1DescribeInputDeviceCommandError = async (output, c
|
|
|
3460
3484
|
body: await parseBody(output.body, context),
|
|
3461
3485
|
};
|
|
3462
3486
|
let response;
|
|
3463
|
-
|
|
3464
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3465
3488
|
switch (errorCode) {
|
|
3466
3489
|
case "BadGatewayException":
|
|
3467
3490
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3486,10 +3509,12 @@ const deserializeAws_restJson1DescribeInputDeviceCommandError = async (output, c
|
|
|
3486
3509
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3487
3510
|
default:
|
|
3488
3511
|
const parsedBody = parsedOutput.body;
|
|
3512
|
+
const $metadata = deserializeMetadata(output);
|
|
3513
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3489
3514
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3490
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3491
3516
|
$fault: "client",
|
|
3492
|
-
$metadata
|
|
3517
|
+
$metadata,
|
|
3493
3518
|
});
|
|
3494
3519
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3495
3520
|
}
|
|
@@ -3529,8 +3554,7 @@ const deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = async (
|
|
|
3529
3554
|
body: await parseBody(output.body, context),
|
|
3530
3555
|
};
|
|
3531
3556
|
let response;
|
|
3532
|
-
|
|
3533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3534
3558
|
switch (errorCode) {
|
|
3535
3559
|
case "BadGatewayException":
|
|
3536
3560
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3555,10 +3579,12 @@ const deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = async (
|
|
|
3555
3579
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3556
3580
|
default:
|
|
3557
3581
|
const parsedBody = parsedOutput.body;
|
|
3582
|
+
const $metadata = deserializeMetadata(output);
|
|
3583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3558
3584
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3559
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3560
3586
|
$fault: "client",
|
|
3561
|
-
$metadata
|
|
3587
|
+
$metadata,
|
|
3562
3588
|
});
|
|
3563
3589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3564
3590
|
}
|
|
@@ -3604,8 +3630,7 @@ const deserializeAws_restJson1DescribeInputSecurityGroupCommandError = async (ou
|
|
|
3604
3630
|
body: await parseBody(output.body, context),
|
|
3605
3631
|
};
|
|
3606
3632
|
let response;
|
|
3607
|
-
|
|
3608
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3609
3634
|
switch (errorCode) {
|
|
3610
3635
|
case "BadGatewayException":
|
|
3611
3636
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3630,10 +3655,12 @@ const deserializeAws_restJson1DescribeInputSecurityGroupCommandError = async (ou
|
|
|
3630
3655
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3631
3656
|
default:
|
|
3632
3657
|
const parsedBody = parsedOutput.body;
|
|
3658
|
+
const $metadata = deserializeMetadata(output);
|
|
3659
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3633
3660
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3634
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3635
3662
|
$fault: "client",
|
|
3636
|
-
$metadata
|
|
3663
|
+
$metadata,
|
|
3637
3664
|
});
|
|
3638
3665
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3639
3666
|
}
|
|
@@ -3695,8 +3722,7 @@ const deserializeAws_restJson1DescribeMultiplexCommandError = async (output, con
|
|
|
3695
3722
|
body: await parseBody(output.body, context),
|
|
3696
3723
|
};
|
|
3697
3724
|
let response;
|
|
3698
|
-
|
|
3699
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3725
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3700
3726
|
switch (errorCode) {
|
|
3701
3727
|
case "BadGatewayException":
|
|
3702
3728
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3721,10 +3747,12 @@ const deserializeAws_restJson1DescribeMultiplexCommandError = async (output, con
|
|
|
3721
3747
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3722
3748
|
default:
|
|
3723
3749
|
const parsedBody = parsedOutput.body;
|
|
3750
|
+
const $metadata = deserializeMetadata(output);
|
|
3751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3724
3752
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3725
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3726
3754
|
$fault: "client",
|
|
3727
|
-
$metadata
|
|
3755
|
+
$metadata,
|
|
3728
3756
|
});
|
|
3729
3757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3730
3758
|
}
|
|
@@ -3766,8 +3794,7 @@ const deserializeAws_restJson1DescribeMultiplexProgramCommandError = async (outp
|
|
|
3766
3794
|
body: await parseBody(output.body, context),
|
|
3767
3795
|
};
|
|
3768
3796
|
let response;
|
|
3769
|
-
|
|
3770
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3771
3798
|
switch (errorCode) {
|
|
3772
3799
|
case "BadGatewayException":
|
|
3773
3800
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3792,10 +3819,12 @@ const deserializeAws_restJson1DescribeMultiplexProgramCommandError = async (outp
|
|
|
3792
3819
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3793
3820
|
default:
|
|
3794
3821
|
const parsedBody = parsedOutput.body;
|
|
3822
|
+
const $metadata = deserializeMetadata(output);
|
|
3823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3795
3824
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3797
3826
|
$fault: "client",
|
|
3798
|
-
$metadata
|
|
3827
|
+
$metadata,
|
|
3799
3828
|
});
|
|
3800
3829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3801
3830
|
}
|
|
@@ -3861,8 +3890,7 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
3861
3890
|
body: await parseBody(output.body, context),
|
|
3862
3891
|
};
|
|
3863
3892
|
let response;
|
|
3864
|
-
|
|
3865
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3866
3894
|
switch (errorCode) {
|
|
3867
3895
|
case "BadGatewayException":
|
|
3868
3896
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3887,10 +3915,12 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
3887
3915
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3888
3916
|
default:
|
|
3889
3917
|
const parsedBody = parsedOutput.body;
|
|
3918
|
+
const $metadata = deserializeMetadata(output);
|
|
3919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3890
3920
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3891
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3892
3922
|
$fault: "client",
|
|
3893
|
-
$metadata
|
|
3923
|
+
$metadata,
|
|
3894
3924
|
});
|
|
3895
3925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3896
3926
|
}
|
|
@@ -3988,8 +4018,7 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
3988
4018
|
body: await parseBody(output.body, context),
|
|
3989
4019
|
};
|
|
3990
4020
|
let response;
|
|
3991
|
-
|
|
3992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3993
4022
|
switch (errorCode) {
|
|
3994
4023
|
case "BadGatewayException":
|
|
3995
4024
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4014,10 +4043,12 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
4014
4043
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4015
4044
|
default:
|
|
4016
4045
|
const parsedBody = parsedOutput.body;
|
|
4046
|
+
const $metadata = deserializeMetadata(output);
|
|
4047
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4017
4048
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4018
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4019
4050
|
$fault: "client",
|
|
4020
|
-
$metadata
|
|
4051
|
+
$metadata,
|
|
4021
4052
|
});
|
|
4022
4053
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4023
4054
|
}
|
|
@@ -4047,8 +4078,7 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
4047
4078
|
body: await parseBody(output.body, context),
|
|
4048
4079
|
};
|
|
4049
4080
|
let response;
|
|
4050
|
-
|
|
4051
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4052
4082
|
switch (errorCode) {
|
|
4053
4083
|
case "BadGatewayException":
|
|
4054
4084
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4073,10 +4103,12 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
4073
4103
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4074
4104
|
default:
|
|
4075
4105
|
const parsedBody = parsedOutput.body;
|
|
4106
|
+
const $metadata = deserializeMetadata(output);
|
|
4107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4076
4108
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4077
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4078
4110
|
$fault: "client",
|
|
4079
|
-
$metadata
|
|
4111
|
+
$metadata,
|
|
4080
4112
|
});
|
|
4081
4113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4082
4114
|
}
|
|
@@ -4106,8 +4138,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
4106
4138
|
body: await parseBody(output.body, context),
|
|
4107
4139
|
};
|
|
4108
4140
|
let response;
|
|
4109
|
-
|
|
4110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4111
4142
|
switch (errorCode) {
|
|
4112
4143
|
case "BadGatewayException":
|
|
4113
4144
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4129,10 +4160,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
4129
4160
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4130
4161
|
default:
|
|
4131
4162
|
const parsedBody = parsedOutput.body;
|
|
4163
|
+
const $metadata = deserializeMetadata(output);
|
|
4164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4132
4165
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4134
4167
|
$fault: "client",
|
|
4135
|
-
$metadata
|
|
4168
|
+
$metadata,
|
|
4136
4169
|
});
|
|
4137
4170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4138
4171
|
}
|
|
@@ -4162,8 +4195,7 @@ const deserializeAws_restJson1ListInputDevicesCommandError = async (output, cont
|
|
|
4162
4195
|
body: await parseBody(output.body, context),
|
|
4163
4196
|
};
|
|
4164
4197
|
let response;
|
|
4165
|
-
|
|
4166
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4167
4199
|
switch (errorCode) {
|
|
4168
4200
|
case "BadGatewayException":
|
|
4169
4201
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4185,10 +4217,12 @@ const deserializeAws_restJson1ListInputDevicesCommandError = async (output, cont
|
|
|
4185
4217
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4186
4218
|
default:
|
|
4187
4219
|
const parsedBody = parsedOutput.body;
|
|
4220
|
+
const $metadata = deserializeMetadata(output);
|
|
4221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4188
4222
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4190
4224
|
$fault: "client",
|
|
4191
|
-
$metadata
|
|
4225
|
+
$metadata,
|
|
4192
4226
|
});
|
|
4193
4227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4194
4228
|
}
|
|
@@ -4218,8 +4252,7 @@ const deserializeAws_restJson1ListInputDeviceTransfersCommandError = async (outp
|
|
|
4218
4252
|
body: await parseBody(output.body, context),
|
|
4219
4253
|
};
|
|
4220
4254
|
let response;
|
|
4221
|
-
|
|
4222
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4223
4256
|
switch (errorCode) {
|
|
4224
4257
|
case "BadGatewayException":
|
|
4225
4258
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4244,10 +4277,12 @@ const deserializeAws_restJson1ListInputDeviceTransfersCommandError = async (outp
|
|
|
4244
4277
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4245
4278
|
default:
|
|
4246
4279
|
const parsedBody = parsedOutput.body;
|
|
4280
|
+
const $metadata = deserializeMetadata(output);
|
|
4281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4247
4282
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4248
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4249
4284
|
$fault: "client",
|
|
4250
|
-
$metadata
|
|
4285
|
+
$metadata,
|
|
4251
4286
|
});
|
|
4252
4287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4253
4288
|
}
|
|
@@ -4277,8 +4312,7 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
4277
4312
|
body: await parseBody(output.body, context),
|
|
4278
4313
|
};
|
|
4279
4314
|
let response;
|
|
4280
|
-
|
|
4281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4282
4316
|
switch (errorCode) {
|
|
4283
4317
|
case "BadGatewayException":
|
|
4284
4318
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4300,10 +4334,12 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
4300
4334
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4301
4335
|
default:
|
|
4302
4336
|
const parsedBody = parsedOutput.body;
|
|
4337
|
+
const $metadata = deserializeMetadata(output);
|
|
4338
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4303
4339
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4304
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4305
4341
|
$fault: "client",
|
|
4306
|
-
$metadata
|
|
4342
|
+
$metadata,
|
|
4307
4343
|
});
|
|
4308
4344
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4309
4345
|
}
|
|
@@ -4333,8 +4369,7 @@ const deserializeAws_restJson1ListInputSecurityGroupsCommandError = async (outpu
|
|
|
4333
4369
|
body: await parseBody(output.body, context),
|
|
4334
4370
|
};
|
|
4335
4371
|
let response;
|
|
4336
|
-
|
|
4337
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4338
4373
|
switch (errorCode) {
|
|
4339
4374
|
case "BadGatewayException":
|
|
4340
4375
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4356,10 +4391,12 @@ const deserializeAws_restJson1ListInputSecurityGroupsCommandError = async (outpu
|
|
|
4356
4391
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4357
4392
|
default:
|
|
4358
4393
|
const parsedBody = parsedOutput.body;
|
|
4394
|
+
const $metadata = deserializeMetadata(output);
|
|
4395
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4359
4396
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4360
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4361
4398
|
$fault: "client",
|
|
4362
|
-
$metadata
|
|
4399
|
+
$metadata,
|
|
4363
4400
|
});
|
|
4364
4401
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4365
4402
|
}
|
|
@@ -4389,8 +4426,7 @@ const deserializeAws_restJson1ListMultiplexesCommandError = async (output, conte
|
|
|
4389
4426
|
body: await parseBody(output.body, context),
|
|
4390
4427
|
};
|
|
4391
4428
|
let response;
|
|
4392
|
-
|
|
4393
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4394
4430
|
switch (errorCode) {
|
|
4395
4431
|
case "BadGatewayException":
|
|
4396
4432
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4412,10 +4448,12 @@ const deserializeAws_restJson1ListMultiplexesCommandError = async (output, conte
|
|
|
4412
4448
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4413
4449
|
default:
|
|
4414
4450
|
const parsedBody = parsedOutput.body;
|
|
4451
|
+
const $metadata = deserializeMetadata(output);
|
|
4452
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4415
4453
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4454
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4417
4455
|
$fault: "client",
|
|
4418
|
-
$metadata
|
|
4456
|
+
$metadata,
|
|
4419
4457
|
});
|
|
4420
4458
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4421
4459
|
}
|
|
@@ -4445,8 +4483,7 @@ const deserializeAws_restJson1ListMultiplexProgramsCommandError = async (output,
|
|
|
4445
4483
|
body: await parseBody(output.body, context),
|
|
4446
4484
|
};
|
|
4447
4485
|
let response;
|
|
4448
|
-
|
|
4449
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4450
4487
|
switch (errorCode) {
|
|
4451
4488
|
case "BadGatewayException":
|
|
4452
4489
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4471,10 +4508,12 @@ const deserializeAws_restJson1ListMultiplexProgramsCommandError = async (output,
|
|
|
4471
4508
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4472
4509
|
default:
|
|
4473
4510
|
const parsedBody = parsedOutput.body;
|
|
4511
|
+
const $metadata = deserializeMetadata(output);
|
|
4512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4474
4513
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4476
4515
|
$fault: "client",
|
|
4477
|
-
$metadata
|
|
4516
|
+
$metadata,
|
|
4478
4517
|
});
|
|
4479
4518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4480
4519
|
}
|
|
@@ -4504,8 +4543,7 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
4504
4543
|
body: await parseBody(output.body, context),
|
|
4505
4544
|
};
|
|
4506
4545
|
let response;
|
|
4507
|
-
|
|
4508
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4509
4547
|
switch (errorCode) {
|
|
4510
4548
|
case "BadGatewayException":
|
|
4511
4549
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4527,10 +4565,12 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
4527
4565
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4528
4566
|
default:
|
|
4529
4567
|
const parsedBody = parsedOutput.body;
|
|
4568
|
+
const $metadata = deserializeMetadata(output);
|
|
4569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4530
4570
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4531
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4532
4572
|
$fault: "client",
|
|
4533
|
-
$metadata
|
|
4573
|
+
$metadata,
|
|
4534
4574
|
});
|
|
4535
4575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4536
4576
|
}
|
|
@@ -4560,8 +4600,7 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
4560
4600
|
body: await parseBody(output.body, context),
|
|
4561
4601
|
};
|
|
4562
4602
|
let response;
|
|
4563
|
-
|
|
4564
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4565
4604
|
switch (errorCode) {
|
|
4566
4605
|
case "BadGatewayException":
|
|
4567
4606
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4583,10 +4622,12 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
4583
4622
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4584
4623
|
default:
|
|
4585
4624
|
const parsedBody = parsedOutput.body;
|
|
4625
|
+
const $metadata = deserializeMetadata(output);
|
|
4626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4586
4627
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4587
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4588
4629
|
$fault: "client",
|
|
4589
|
-
$metadata
|
|
4630
|
+
$metadata,
|
|
4590
4631
|
});
|
|
4591
4632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4592
4633
|
}
|
|
@@ -4612,8 +4653,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4612
4653
|
body: await parseBody(output.body, context),
|
|
4613
4654
|
};
|
|
4614
4655
|
let response;
|
|
4615
|
-
|
|
4616
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4617
4657
|
switch (errorCode) {
|
|
4618
4658
|
case "BadRequestException":
|
|
4619
4659
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -4629,10 +4669,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4629
4669
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4630
4670
|
default:
|
|
4631
4671
|
const parsedBody = parsedOutput.body;
|
|
4672
|
+
const $metadata = deserializeMetadata(output);
|
|
4673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4632
4674
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4633
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4634
4676
|
$fault: "client",
|
|
4635
|
-
$metadata
|
|
4677
|
+
$metadata,
|
|
4636
4678
|
});
|
|
4637
4679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4638
4680
|
}
|
|
@@ -4658,8 +4700,7 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
4658
4700
|
body: await parseBody(output.body, context),
|
|
4659
4701
|
};
|
|
4660
4702
|
let response;
|
|
4661
|
-
|
|
4662
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4663
4704
|
switch (errorCode) {
|
|
4664
4705
|
case "BadGatewayException":
|
|
4665
4706
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4687,10 +4728,12 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
4687
4728
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4688
4729
|
default:
|
|
4689
4730
|
const parsedBody = parsedOutput.body;
|
|
4731
|
+
const $metadata = deserializeMetadata(output);
|
|
4732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4690
4733
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4691
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4692
4735
|
$fault: "client",
|
|
4693
|
-
$metadata
|
|
4736
|
+
$metadata,
|
|
4694
4737
|
});
|
|
4695
4738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4696
4739
|
}
|
|
@@ -4712,8 +4755,7 @@ const deserializeAws_restJson1RejectInputDeviceTransferCommandError = async (out
|
|
|
4712
4755
|
body: await parseBody(output.body, context),
|
|
4713
4756
|
};
|
|
4714
4757
|
let response;
|
|
4715
|
-
|
|
4716
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4717
4759
|
switch (errorCode) {
|
|
4718
4760
|
case "BadGatewayException":
|
|
4719
4761
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4744,10 +4786,12 @@ const deserializeAws_restJson1RejectInputDeviceTransferCommandError = async (out
|
|
|
4744
4786
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4745
4787
|
default:
|
|
4746
4788
|
const parsedBody = parsedOutput.body;
|
|
4789
|
+
const $metadata = deserializeMetadata(output);
|
|
4790
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4747
4791
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4749
4793
|
$fault: "client",
|
|
4750
|
-
$metadata
|
|
4794
|
+
$metadata,
|
|
4751
4795
|
});
|
|
4752
4796
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4753
4797
|
}
|
|
@@ -4841,8 +4885,7 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
4841
4885
|
body: await parseBody(output.body, context),
|
|
4842
4886
|
};
|
|
4843
4887
|
let response;
|
|
4844
|
-
|
|
4845
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4846
4889
|
switch (errorCode) {
|
|
4847
4890
|
case "BadGatewayException":
|
|
4848
4891
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4870,10 +4913,12 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
4870
4913
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4871
4914
|
default:
|
|
4872
4915
|
const parsedBody = parsedOutput.body;
|
|
4916
|
+
const $metadata = deserializeMetadata(output);
|
|
4917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4873
4918
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4875
4920
|
$fault: "client",
|
|
4876
|
-
$metadata
|
|
4921
|
+
$metadata,
|
|
4877
4922
|
});
|
|
4878
4923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4879
4924
|
}
|
|
@@ -4935,8 +4980,7 @@ const deserializeAws_restJson1StartMultiplexCommandError = async (output, contex
|
|
|
4935
4980
|
body: await parseBody(output.body, context),
|
|
4936
4981
|
};
|
|
4937
4982
|
let response;
|
|
4938
|
-
|
|
4939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4940
4984
|
switch (errorCode) {
|
|
4941
4985
|
case "BadGatewayException":
|
|
4942
4986
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4964,10 +5008,12 @@ const deserializeAws_restJson1StartMultiplexCommandError = async (output, contex
|
|
|
4964
5008
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4965
5009
|
default:
|
|
4966
5010
|
const parsedBody = parsedOutput.body;
|
|
5011
|
+
const $metadata = deserializeMetadata(output);
|
|
5012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4967
5013
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4969
5015
|
$fault: "client",
|
|
4970
|
-
$metadata
|
|
5016
|
+
$metadata,
|
|
4971
5017
|
});
|
|
4972
5018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4973
5019
|
}
|
|
@@ -5061,8 +5107,7 @@ const deserializeAws_restJson1StopChannelCommandError = async (output, context)
|
|
|
5061
5107
|
body: await parseBody(output.body, context),
|
|
5062
5108
|
};
|
|
5063
5109
|
let response;
|
|
5064
|
-
|
|
5065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5066
5111
|
switch (errorCode) {
|
|
5067
5112
|
case "BadGatewayException":
|
|
5068
5113
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5090,10 +5135,12 @@ const deserializeAws_restJson1StopChannelCommandError = async (output, context)
|
|
|
5090
5135
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5091
5136
|
default:
|
|
5092
5137
|
const parsedBody = parsedOutput.body;
|
|
5138
|
+
const $metadata = deserializeMetadata(output);
|
|
5139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5093
5140
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5095
5142
|
$fault: "client",
|
|
5096
|
-
$metadata
|
|
5143
|
+
$metadata,
|
|
5097
5144
|
});
|
|
5098
5145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5099
5146
|
}
|
|
@@ -5155,8 +5202,7 @@ const deserializeAws_restJson1StopMultiplexCommandError = async (output, context
|
|
|
5155
5202
|
body: await parseBody(output.body, context),
|
|
5156
5203
|
};
|
|
5157
5204
|
let response;
|
|
5158
|
-
|
|
5159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5160
5206
|
switch (errorCode) {
|
|
5161
5207
|
case "BadGatewayException":
|
|
5162
5208
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5184,10 +5230,12 @@ const deserializeAws_restJson1StopMultiplexCommandError = async (output, context
|
|
|
5184
5230
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5185
5231
|
default:
|
|
5186
5232
|
const parsedBody = parsedOutput.body;
|
|
5233
|
+
const $metadata = deserializeMetadata(output);
|
|
5234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5187
5235
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5188
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5189
5237
|
$fault: "client",
|
|
5190
|
-
$metadata
|
|
5238
|
+
$metadata,
|
|
5191
5239
|
});
|
|
5192
5240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5193
5241
|
}
|
|
@@ -5209,8 +5257,7 @@ const deserializeAws_restJson1TransferInputDeviceCommandError = async (output, c
|
|
|
5209
5257
|
body: await parseBody(output.body, context),
|
|
5210
5258
|
};
|
|
5211
5259
|
let response;
|
|
5212
|
-
|
|
5213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5214
5261
|
switch (errorCode) {
|
|
5215
5262
|
case "BadGatewayException":
|
|
5216
5263
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5241,10 +5288,12 @@ const deserializeAws_restJson1TransferInputDeviceCommandError = async (output, c
|
|
|
5241
5288
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5242
5289
|
default:
|
|
5243
5290
|
const parsedBody = parsedOutput.body;
|
|
5291
|
+
const $metadata = deserializeMetadata(output);
|
|
5292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5244
5293
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5245
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5246
5295
|
$fault: "client",
|
|
5247
|
-
$metadata
|
|
5296
|
+
$metadata,
|
|
5248
5297
|
});
|
|
5249
5298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5250
5299
|
}
|
|
@@ -5270,8 +5319,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
5270
5319
|
body: await parseBody(output.body, context),
|
|
5271
5320
|
};
|
|
5272
5321
|
let response;
|
|
5273
|
-
|
|
5274
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5275
5323
|
switch (errorCode) {
|
|
5276
5324
|
case "BadGatewayException":
|
|
5277
5325
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5296,10 +5344,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
5296
5344
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5297
5345
|
default:
|
|
5298
5346
|
const parsedBody = parsedOutput.body;
|
|
5347
|
+
const $metadata = deserializeMetadata(output);
|
|
5348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5299
5349
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5300
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5301
5351
|
$fault: "client",
|
|
5302
|
-
$metadata
|
|
5352
|
+
$metadata,
|
|
5303
5353
|
});
|
|
5304
5354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5305
5355
|
}
|
|
@@ -5325,8 +5375,7 @@ const deserializeAws_restJson1UpdateChannelClassCommandError = async (output, co
|
|
|
5325
5375
|
body: await parseBody(output.body, context),
|
|
5326
5376
|
};
|
|
5327
5377
|
let response;
|
|
5328
|
-
|
|
5329
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5330
5379
|
switch (errorCode) {
|
|
5331
5380
|
case "BadGatewayException":
|
|
5332
5381
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5357,10 +5406,12 @@ const deserializeAws_restJson1UpdateChannelClassCommandError = async (output, co
|
|
|
5357
5406
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5358
5407
|
default:
|
|
5359
5408
|
const parsedBody = parsedOutput.body;
|
|
5409
|
+
const $metadata = deserializeMetadata(output);
|
|
5410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5360
5411
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5361
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5362
5413
|
$fault: "client",
|
|
5363
|
-
$metadata
|
|
5414
|
+
$metadata,
|
|
5364
5415
|
});
|
|
5365
5416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5366
5417
|
}
|
|
@@ -5386,8 +5437,7 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
5386
5437
|
body: await parseBody(output.body, context),
|
|
5387
5438
|
};
|
|
5388
5439
|
let response;
|
|
5389
|
-
|
|
5390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5391
5441
|
switch (errorCode) {
|
|
5392
5442
|
case "BadGatewayException":
|
|
5393
5443
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5412,10 +5462,12 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
5412
5462
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5413
5463
|
default:
|
|
5414
5464
|
const parsedBody = parsedOutput.body;
|
|
5465
|
+
const $metadata = deserializeMetadata(output);
|
|
5466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5415
5467
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5417
5469
|
$fault: "client",
|
|
5418
|
-
$metadata
|
|
5470
|
+
$metadata,
|
|
5419
5471
|
});
|
|
5420
5472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5421
5473
|
}
|
|
@@ -5485,8 +5537,7 @@ const deserializeAws_restJson1UpdateInputDeviceCommandError = async (output, con
|
|
|
5485
5537
|
body: await parseBody(output.body, context),
|
|
5486
5538
|
};
|
|
5487
5539
|
let response;
|
|
5488
|
-
|
|
5489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5490
5541
|
switch (errorCode) {
|
|
5491
5542
|
case "BadGatewayException":
|
|
5492
5543
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5514,10 +5565,12 @@ const deserializeAws_restJson1UpdateInputDeviceCommandError = async (output, con
|
|
|
5514
5565
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5515
5566
|
default:
|
|
5516
5567
|
const parsedBody = parsedOutput.body;
|
|
5568
|
+
const $metadata = deserializeMetadata(output);
|
|
5569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5517
5570
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5519
5572
|
$fault: "client",
|
|
5520
|
-
$metadata
|
|
5573
|
+
$metadata,
|
|
5521
5574
|
});
|
|
5522
5575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5523
5576
|
}
|
|
@@ -5543,8 +5596,7 @@ const deserializeAws_restJson1UpdateInputSecurityGroupCommandError = async (outp
|
|
|
5543
5596
|
body: await parseBody(output.body, context),
|
|
5544
5597
|
};
|
|
5545
5598
|
let response;
|
|
5546
|
-
|
|
5547
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5548
5600
|
switch (errorCode) {
|
|
5549
5601
|
case "BadGatewayException":
|
|
5550
5602
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5569,10 +5621,12 @@ const deserializeAws_restJson1UpdateInputSecurityGroupCommandError = async (outp
|
|
|
5569
5621
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5570
5622
|
default:
|
|
5571
5623
|
const parsedBody = parsedOutput.body;
|
|
5624
|
+
const $metadata = deserializeMetadata(output);
|
|
5625
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5572
5626
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5573
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5627
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5574
5628
|
$fault: "client",
|
|
5575
|
-
$metadata
|
|
5629
|
+
$metadata,
|
|
5576
5630
|
});
|
|
5577
5631
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5578
5632
|
}
|
|
@@ -5598,8 +5652,7 @@ const deserializeAws_restJson1UpdateMultiplexCommandError = async (output, conte
|
|
|
5598
5652
|
body: await parseBody(output.body, context),
|
|
5599
5653
|
};
|
|
5600
5654
|
let response;
|
|
5601
|
-
|
|
5602
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5603
5656
|
switch (errorCode) {
|
|
5604
5657
|
case "BadGatewayException":
|
|
5605
5658
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5627,10 +5680,12 @@ const deserializeAws_restJson1UpdateMultiplexCommandError = async (output, conte
|
|
|
5627
5680
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5628
5681
|
default:
|
|
5629
5682
|
const parsedBody = parsedOutput.body;
|
|
5683
|
+
const $metadata = deserializeMetadata(output);
|
|
5684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5630
5685
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5631
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5632
5687
|
$fault: "client",
|
|
5633
|
-
$metadata
|
|
5688
|
+
$metadata,
|
|
5634
5689
|
});
|
|
5635
5690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5636
5691
|
}
|
|
@@ -5656,8 +5711,7 @@ const deserializeAws_restJson1UpdateMultiplexProgramCommandError = async (output
|
|
|
5656
5711
|
body: await parseBody(output.body, context),
|
|
5657
5712
|
};
|
|
5658
5713
|
let response;
|
|
5659
|
-
|
|
5660
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5661
5715
|
switch (errorCode) {
|
|
5662
5716
|
case "BadGatewayException":
|
|
5663
5717
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5685,10 +5739,12 @@ const deserializeAws_restJson1UpdateMultiplexProgramCommandError = async (output
|
|
|
5685
5739
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5686
5740
|
default:
|
|
5687
5741
|
const parsedBody = parsedOutput.body;
|
|
5742
|
+
const $metadata = deserializeMetadata(output);
|
|
5743
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5688
5744
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5689
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5745
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5690
5746
|
$fault: "client",
|
|
5691
|
-
$metadata
|
|
5747
|
+
$metadata,
|
|
5692
5748
|
});
|
|
5693
5749
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5694
5750
|
}
|
|
@@ -5714,8 +5770,7 @@ const deserializeAws_restJson1UpdateReservationCommandError = async (output, con
|
|
|
5714
5770
|
body: await parseBody(output.body, context),
|
|
5715
5771
|
};
|
|
5716
5772
|
let response;
|
|
5717
|
-
|
|
5718
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5719
5774
|
switch (errorCode) {
|
|
5720
5775
|
case "BadGatewayException":
|
|
5721
5776
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5743,10 +5798,12 @@ const deserializeAws_restJson1UpdateReservationCommandError = async (output, con
|
|
|
5743
5798
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5744
5799
|
default:
|
|
5745
5800
|
const parsedBody = parsedOutput.body;
|
|
5801
|
+
const $metadata = deserializeMetadata(output);
|
|
5802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5746
5803
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5747
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5748
5805
|
$fault: "client",
|
|
5749
|
-
$metadata
|
|
5806
|
+
$metadata,
|
|
5750
5807
|
});
|
|
5751
5808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5752
5809
|
}
|
|
@@ -11368,5 +11425,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
11368
11425
|
if (data["__type"] !== undefined) {
|
|
11369
11426
|
return sanitizeErrorCode(data["__type"]);
|
|
11370
11427
|
}
|
|
11371
|
-
return "";
|
|
11372
11428
|
};
|