@aws-sdk/client-medialive 3.118.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 +30 -0
- package/dist-cjs/commands/UpdateMultiplexCommand.js +3 -3
- package/dist-cjs/commands/UpdateMultiplexProgramCommand.js +1 -2
- package/dist-cjs/models/models_0.js +11 -11
- package/dist-cjs/models/models_1.js +24 -24
- package/dist-cjs/models/models_2.js +19 -1
- package/dist-cjs/protocols/Aws_restJson1.js +319 -229
- package/dist-es/commands/UpdateMultiplexCommand.js +1 -1
- package/dist-es/commands/UpdateMultiplexProgramCommand.js +1 -2
- package/dist-es/models/models_0.js +6 -6
- package/dist-es/models/models_1.js +16 -12
- package/dist-es/models/models_2.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +316 -232
- package/dist-types/commands/UpdateMultiplexCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMultiplexProgramCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +9 -5
- package/dist-types/models/models_1.d.ts +46 -62
- package/dist-types/models/models_2.d.ts +66 -1
- package/dist-types/ts3.4/commands/UpdateMultiplexCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMultiplexProgramCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +7 -5
- package/dist-types/ts3.4/models/models_1.d.ts +30 -36
- package/dist-types/ts3.4/models/models_2.d.ts +38 -1
- package/package.json +6 -6
|
@@ -1230,6 +1230,10 @@ const serializeAws_restJson1PurchaseOfferingCommand = async (input, context) =>
|
|
|
1230
1230
|
body = JSON.stringify({
|
|
1231
1231
|
...(input.Count !== undefined && input.Count !== null && { count: input.Count }),
|
|
1232
1232
|
...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
|
|
1233
|
+
...(input.RenewalSettings !== undefined &&
|
|
1234
|
+
input.RenewalSettings !== null && {
|
|
1235
|
+
renewalSettings: serializeAws_restJson1RenewalSettings(input.RenewalSettings, context),
|
|
1236
|
+
}),
|
|
1233
1237
|
requestId: (_a = input.RequestId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1234
1238
|
...(input.Start !== undefined && input.Start !== null && { start: input.Start }),
|
|
1235
1239
|
...(input.Tags !== undefined && input.Tags !== null && { tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
@@ -1727,6 +1731,10 @@ const serializeAws_restJson1UpdateReservationCommand = async (input, context) =>
|
|
|
1727
1731
|
let body;
|
|
1728
1732
|
body = JSON.stringify({
|
|
1729
1733
|
...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
|
|
1734
|
+
...(input.RenewalSettings !== undefined &&
|
|
1735
|
+
input.RenewalSettings !== null && {
|
|
1736
|
+
renewalSettings: serializeAws_restJson1RenewalSettings(input.RenewalSettings, context),
|
|
1737
|
+
}),
|
|
1730
1738
|
});
|
|
1731
1739
|
return new protocol_http_1.HttpRequest({
|
|
1732
1740
|
protocol,
|
|
@@ -1756,8 +1764,7 @@ const deserializeAws_restJson1AcceptInputDeviceTransferCommandError = async (out
|
|
|
1756
1764
|
body: await parseBody(output.body, context),
|
|
1757
1765
|
};
|
|
1758
1766
|
let response;
|
|
1759
|
-
|
|
1760
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1761
1768
|
switch (errorCode) {
|
|
1762
1769
|
case "BadGatewayException":
|
|
1763
1770
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1788,10 +1795,12 @@ const deserializeAws_restJson1AcceptInputDeviceTransferCommandError = async (out
|
|
|
1788
1795
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
1789
1796
|
default:
|
|
1790
1797
|
const parsedBody = parsedOutput.body;
|
|
1798
|
+
const $metadata = deserializeMetadata(output);
|
|
1799
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1791
1800
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1801
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1793
1802
|
$fault: "client",
|
|
1794
|
-
$metadata
|
|
1803
|
+
$metadata,
|
|
1795
1804
|
});
|
|
1796
1805
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1797
1806
|
}
|
|
@@ -1821,8 +1830,7 @@ const deserializeAws_restJson1BatchDeleteCommandError = async (output, context)
|
|
|
1821
1830
|
body: await parseBody(output.body, context),
|
|
1822
1831
|
};
|
|
1823
1832
|
let response;
|
|
1824
|
-
|
|
1825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
1834
|
switch (errorCode) {
|
|
1827
1835
|
case "BadGatewayException":
|
|
1828
1836
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1850,10 +1858,12 @@ const deserializeAws_restJson1BatchDeleteCommandError = async (output, context)
|
|
|
1850
1858
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1851
1859
|
default:
|
|
1852
1860
|
const parsedBody = parsedOutput.body;
|
|
1861
|
+
const $metadata = deserializeMetadata(output);
|
|
1862
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1853
1863
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1854
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1864
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1855
1865
|
$fault: "client",
|
|
1856
|
-
$metadata
|
|
1866
|
+
$metadata,
|
|
1857
1867
|
});
|
|
1858
1868
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1859
1869
|
}
|
|
@@ -1883,8 +1893,7 @@ const deserializeAws_restJson1BatchStartCommandError = async (output, context) =
|
|
|
1883
1893
|
body: await parseBody(output.body, context),
|
|
1884
1894
|
};
|
|
1885
1895
|
let response;
|
|
1886
|
-
|
|
1887
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
1897
|
switch (errorCode) {
|
|
1889
1898
|
case "BadGatewayException":
|
|
1890
1899
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1912,10 +1921,12 @@ const deserializeAws_restJson1BatchStartCommandError = async (output, context) =
|
|
|
1912
1921
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1913
1922
|
default:
|
|
1914
1923
|
const parsedBody = parsedOutput.body;
|
|
1924
|
+
const $metadata = deserializeMetadata(output);
|
|
1925
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1915
1926
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1916
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1927
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1917
1928
|
$fault: "client",
|
|
1918
|
-
$metadata
|
|
1929
|
+
$metadata,
|
|
1919
1930
|
});
|
|
1920
1931
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1921
1932
|
}
|
|
@@ -1945,8 +1956,7 @@ const deserializeAws_restJson1BatchStopCommandError = async (output, context) =>
|
|
|
1945
1956
|
body: await parseBody(output.body, context),
|
|
1946
1957
|
};
|
|
1947
1958
|
let response;
|
|
1948
|
-
|
|
1949
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
1960
|
switch (errorCode) {
|
|
1951
1961
|
case "BadGatewayException":
|
|
1952
1962
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -1974,10 +1984,12 @@ const deserializeAws_restJson1BatchStopCommandError = async (output, context) =>
|
|
|
1974
1984
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1975
1985
|
default:
|
|
1976
1986
|
const parsedBody = parsedOutput.body;
|
|
1987
|
+
const $metadata = deserializeMetadata(output);
|
|
1988
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1977
1989
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
1978
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1990
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1979
1991
|
$fault: "client",
|
|
1980
|
-
$metadata
|
|
1992
|
+
$metadata,
|
|
1981
1993
|
});
|
|
1982
1994
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1983
1995
|
}
|
|
@@ -2007,8 +2019,7 @@ const deserializeAws_restJson1BatchUpdateScheduleCommandError = async (output, c
|
|
|
2007
2019
|
body: await parseBody(output.body, context),
|
|
2008
2020
|
};
|
|
2009
2021
|
let response;
|
|
2010
|
-
|
|
2011
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2022
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2012
2023
|
switch (errorCode) {
|
|
2013
2024
|
case "BadGatewayException":
|
|
2014
2025
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2036,10 +2047,12 @@ const deserializeAws_restJson1BatchUpdateScheduleCommandError = async (output, c
|
|
|
2036
2047
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2037
2048
|
default:
|
|
2038
2049
|
const parsedBody = parsedOutput.body;
|
|
2050
|
+
const $metadata = deserializeMetadata(output);
|
|
2051
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2039
2052
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2053
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2041
2054
|
$fault: "client",
|
|
2042
|
-
$metadata
|
|
2055
|
+
$metadata,
|
|
2043
2056
|
});
|
|
2044
2057
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2045
2058
|
}
|
|
@@ -2061,8 +2074,7 @@ const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (out
|
|
|
2061
2074
|
body: await parseBody(output.body, context),
|
|
2062
2075
|
};
|
|
2063
2076
|
let response;
|
|
2064
|
-
|
|
2065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
2078
|
switch (errorCode) {
|
|
2067
2079
|
case "BadGatewayException":
|
|
2068
2080
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2093,10 +2105,12 @@ const deserializeAws_restJson1CancelInputDeviceTransferCommandError = async (out
|
|
|
2093
2105
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2094
2106
|
default:
|
|
2095
2107
|
const parsedBody = parsedOutput.body;
|
|
2108
|
+
const $metadata = deserializeMetadata(output);
|
|
2109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2096
2110
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2097
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2098
2112
|
$fault: "client",
|
|
2099
|
-
$metadata
|
|
2113
|
+
$metadata,
|
|
2100
2114
|
});
|
|
2101
2115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2102
2116
|
}
|
|
@@ -2118,8 +2132,7 @@ const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context)
|
|
|
2118
2132
|
body: await parseBody(output.body, context),
|
|
2119
2133
|
};
|
|
2120
2134
|
let response;
|
|
2121
|
-
|
|
2122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2136
|
switch (errorCode) {
|
|
2124
2137
|
case "BadGatewayException":
|
|
2125
2138
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2147,10 +2160,12 @@ const deserializeAws_restJson1ClaimDeviceCommandError = async (output, context)
|
|
|
2147
2160
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2148
2161
|
default:
|
|
2149
2162
|
const parsedBody = parsedOutput.body;
|
|
2163
|
+
const $metadata = deserializeMetadata(output);
|
|
2164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2150
2165
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2151
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2152
2167
|
$fault: "client",
|
|
2153
|
-
$metadata
|
|
2168
|
+
$metadata,
|
|
2154
2169
|
});
|
|
2155
2170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2156
2171
|
}
|
|
@@ -2176,8 +2191,7 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
2176
2191
|
body: await parseBody(output.body, context),
|
|
2177
2192
|
};
|
|
2178
2193
|
let response;
|
|
2179
|
-
|
|
2180
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
2195
|
switch (errorCode) {
|
|
2182
2196
|
case "BadGatewayException":
|
|
2183
2197
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2205,10 +2219,12 @@ const deserializeAws_restJson1CreateChannelCommandError = async (output, context
|
|
|
2205
2219
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2206
2220
|
default:
|
|
2207
2221
|
const parsedBody = parsedOutput.body;
|
|
2222
|
+
const $metadata = deserializeMetadata(output);
|
|
2223
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2208
2224
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2225
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2210
2226
|
$fault: "client",
|
|
2211
|
-
$metadata
|
|
2227
|
+
$metadata,
|
|
2212
2228
|
});
|
|
2213
2229
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2214
2230
|
}
|
|
@@ -2234,8 +2250,7 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
2234
2250
|
body: await parseBody(output.body, context),
|
|
2235
2251
|
};
|
|
2236
2252
|
let response;
|
|
2237
|
-
|
|
2238
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2239
2254
|
switch (errorCode) {
|
|
2240
2255
|
case "BadGatewayException":
|
|
2241
2256
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2257,10 +2272,12 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
2257
2272
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2258
2273
|
default:
|
|
2259
2274
|
const parsedBody = parsedOutput.body;
|
|
2275
|
+
const $metadata = deserializeMetadata(output);
|
|
2276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2260
2277
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2261
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2262
2279
|
$fault: "client",
|
|
2263
|
-
$metadata
|
|
2280
|
+
$metadata,
|
|
2264
2281
|
});
|
|
2265
2282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2266
2283
|
}
|
|
@@ -2286,8 +2303,7 @@ const deserializeAws_restJson1CreateInputSecurityGroupCommandError = async (outp
|
|
|
2286
2303
|
body: await parseBody(output.body, context),
|
|
2287
2304
|
};
|
|
2288
2305
|
let response;
|
|
2289
|
-
|
|
2290
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2291
2307
|
switch (errorCode) {
|
|
2292
2308
|
case "BadGatewayException":
|
|
2293
2309
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2309,10 +2325,12 @@ const deserializeAws_restJson1CreateInputSecurityGroupCommandError = async (outp
|
|
|
2309
2325
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2310
2326
|
default:
|
|
2311
2327
|
const parsedBody = parsedOutput.body;
|
|
2328
|
+
const $metadata = deserializeMetadata(output);
|
|
2329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2312
2330
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2313
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2314
2332
|
$fault: "client",
|
|
2315
|
-
$metadata
|
|
2333
|
+
$metadata,
|
|
2316
2334
|
});
|
|
2317
2335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2318
2336
|
}
|
|
@@ -2338,8 +2356,7 @@ const deserializeAws_restJson1CreateMultiplexCommandError = async (output, conte
|
|
|
2338
2356
|
body: await parseBody(output.body, context),
|
|
2339
2357
|
};
|
|
2340
2358
|
let response;
|
|
2341
|
-
|
|
2342
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
2360
|
switch (errorCode) {
|
|
2344
2361
|
case "BadGatewayException":
|
|
2345
2362
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2367,10 +2384,12 @@ const deserializeAws_restJson1CreateMultiplexCommandError = async (output, conte
|
|
|
2367
2384
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2368
2385
|
default:
|
|
2369
2386
|
const parsedBody = parsedOutput.body;
|
|
2387
|
+
const $metadata = deserializeMetadata(output);
|
|
2388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2370
2389
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2371
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2372
2391
|
$fault: "client",
|
|
2373
|
-
$metadata
|
|
2392
|
+
$metadata,
|
|
2374
2393
|
});
|
|
2375
2394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2376
2395
|
}
|
|
@@ -2396,8 +2415,7 @@ const deserializeAws_restJson1CreateMultiplexProgramCommandError = async (output
|
|
|
2396
2415
|
body: await parseBody(output.body, context),
|
|
2397
2416
|
};
|
|
2398
2417
|
let response;
|
|
2399
|
-
|
|
2400
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
2419
|
switch (errorCode) {
|
|
2402
2420
|
case "BadGatewayException":
|
|
2403
2421
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2425,10 +2443,12 @@ const deserializeAws_restJson1CreateMultiplexProgramCommandError = async (output
|
|
|
2425
2443
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
2426
2444
|
default:
|
|
2427
2445
|
const parsedBody = parsedOutput.body;
|
|
2446
|
+
const $metadata = deserializeMetadata(output);
|
|
2447
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2428
2448
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2429
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2449
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2430
2450
|
$fault: "client",
|
|
2431
|
-
$metadata
|
|
2451
|
+
$metadata,
|
|
2432
2452
|
});
|
|
2433
2453
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2434
2454
|
}
|
|
@@ -2454,8 +2474,7 @@ const deserializeAws_restJson1CreatePartnerInputCommandError = async (output, co
|
|
|
2454
2474
|
body: await parseBody(output.body, context),
|
|
2455
2475
|
};
|
|
2456
2476
|
let response;
|
|
2457
|
-
|
|
2458
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2459
2478
|
switch (errorCode) {
|
|
2460
2479
|
case "BadGatewayException":
|
|
2461
2480
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2477,10 +2496,12 @@ const deserializeAws_restJson1CreatePartnerInputCommandError = async (output, co
|
|
|
2477
2496
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2478
2497
|
default:
|
|
2479
2498
|
const parsedBody = parsedOutput.body;
|
|
2499
|
+
const $metadata = deserializeMetadata(output);
|
|
2500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2480
2501
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2482
2503
|
$fault: "client",
|
|
2483
|
-
$metadata
|
|
2504
|
+
$metadata,
|
|
2484
2505
|
});
|
|
2485
2506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2486
2507
|
}
|
|
@@ -2502,8 +2523,7 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
2502
2523
|
body: await parseBody(output.body, context),
|
|
2503
2524
|
};
|
|
2504
2525
|
let response;
|
|
2505
|
-
|
|
2506
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2507
2527
|
switch (errorCode) {
|
|
2508
2528
|
case "BadRequestException":
|
|
2509
2529
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -2519,10 +2539,12 @@ const deserializeAws_restJson1CreateTagsCommandError = async (output, context) =
|
|
|
2519
2539
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
2520
2540
|
default:
|
|
2521
2541
|
const parsedBody = parsedOutput.body;
|
|
2542
|
+
const $metadata = deserializeMetadata(output);
|
|
2543
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2522
2544
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2545
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2524
2546
|
$fault: "client",
|
|
2525
|
-
$metadata
|
|
2547
|
+
$metadata,
|
|
2526
2548
|
});
|
|
2527
2549
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2550
|
}
|
|
@@ -2616,8 +2638,7 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2616
2638
|
body: await parseBody(output.body, context),
|
|
2617
2639
|
};
|
|
2618
2640
|
let response;
|
|
2619
|
-
|
|
2620
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2621
2642
|
switch (errorCode) {
|
|
2622
2643
|
case "BadGatewayException":
|
|
2623
2644
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2645,10 +2666,12 @@ const deserializeAws_restJson1DeleteChannelCommandError = async (output, context
|
|
|
2645
2666
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2646
2667
|
default:
|
|
2647
2668
|
const parsedBody = parsedOutput.body;
|
|
2669
|
+
const $metadata = deserializeMetadata(output);
|
|
2670
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2648
2671
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2650
2673
|
$fault: "client",
|
|
2651
|
-
$metadata
|
|
2674
|
+
$metadata,
|
|
2652
2675
|
});
|
|
2653
2676
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2654
2677
|
}
|
|
@@ -2670,8 +2693,7 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
2670
2693
|
body: await parseBody(output.body, context),
|
|
2671
2694
|
};
|
|
2672
2695
|
let response;
|
|
2673
|
-
|
|
2674
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2675
2697
|
switch (errorCode) {
|
|
2676
2698
|
case "BadGatewayException":
|
|
2677
2699
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2699,10 +2721,12 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
2699
2721
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2700
2722
|
default:
|
|
2701
2723
|
const parsedBody = parsedOutput.body;
|
|
2724
|
+
const $metadata = deserializeMetadata(output);
|
|
2725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2702
2726
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2703
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2704
2728
|
$fault: "client",
|
|
2705
|
-
$metadata
|
|
2729
|
+
$metadata,
|
|
2706
2730
|
});
|
|
2707
2731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2708
2732
|
}
|
|
@@ -2724,8 +2748,7 @@ const deserializeAws_restJson1DeleteInputSecurityGroupCommandError = async (outp
|
|
|
2724
2748
|
body: await parseBody(output.body, context),
|
|
2725
2749
|
};
|
|
2726
2750
|
let response;
|
|
2727
|
-
|
|
2728
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2729
2752
|
switch (errorCode) {
|
|
2730
2753
|
case "BadGatewayException":
|
|
2731
2754
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2750,10 +2773,12 @@ const deserializeAws_restJson1DeleteInputSecurityGroupCommandError = async (outp
|
|
|
2750
2773
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2751
2774
|
default:
|
|
2752
2775
|
const parsedBody = parsedOutput.body;
|
|
2776
|
+
const $metadata = deserializeMetadata(output);
|
|
2777
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2753
2778
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2755
2780
|
$fault: "client",
|
|
2756
|
-
$metadata
|
|
2781
|
+
$metadata,
|
|
2757
2782
|
});
|
|
2758
2783
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2759
2784
|
}
|
|
@@ -2815,8 +2840,7 @@ const deserializeAws_restJson1DeleteMultiplexCommandError = async (output, conte
|
|
|
2815
2840
|
body: await parseBody(output.body, context),
|
|
2816
2841
|
};
|
|
2817
2842
|
let response;
|
|
2818
|
-
|
|
2819
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2844
|
switch (errorCode) {
|
|
2821
2845
|
case "BadGatewayException":
|
|
2822
2846
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2844,10 +2868,12 @@ const deserializeAws_restJson1DeleteMultiplexCommandError = async (output, conte
|
|
|
2844
2868
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2845
2869
|
default:
|
|
2846
2870
|
const parsedBody = parsedOutput.body;
|
|
2871
|
+
const $metadata = deserializeMetadata(output);
|
|
2872
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2847
2873
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2848
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2874
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2849
2875
|
$fault: "client",
|
|
2850
|
-
$metadata
|
|
2876
|
+
$metadata,
|
|
2851
2877
|
});
|
|
2852
2878
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2853
2879
|
}
|
|
@@ -2889,8 +2915,7 @@ const deserializeAws_restJson1DeleteMultiplexProgramCommandError = async (output
|
|
|
2889
2915
|
body: await parseBody(output.body, context),
|
|
2890
2916
|
};
|
|
2891
2917
|
let response;
|
|
2892
|
-
|
|
2893
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2894
2919
|
switch (errorCode) {
|
|
2895
2920
|
case "BadGatewayException":
|
|
2896
2921
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -2918,10 +2943,12 @@ const deserializeAws_restJson1DeleteMultiplexProgramCommandError = async (output
|
|
|
2918
2943
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
2919
2944
|
default:
|
|
2920
2945
|
const parsedBody = parsedOutput.body;
|
|
2946
|
+
const $metadata = deserializeMetadata(output);
|
|
2947
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2921
2948
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
2922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2949
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2923
2950
|
$fault: "client",
|
|
2924
|
-
$metadata
|
|
2951
|
+
$metadata,
|
|
2925
2952
|
});
|
|
2926
2953
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2927
2954
|
}
|
|
@@ -2944,6 +2971,7 @@ const deserializeAws_restJson1DeleteReservationCommand = async (output, context)
|
|
|
2944
2971
|
OfferingId: undefined,
|
|
2945
2972
|
OfferingType: undefined,
|
|
2946
2973
|
Region: undefined,
|
|
2974
|
+
RenewalSettings: undefined,
|
|
2947
2975
|
ReservationId: undefined,
|
|
2948
2976
|
ResourceSpecification: undefined,
|
|
2949
2977
|
Start: undefined,
|
|
@@ -2988,6 +3016,9 @@ const deserializeAws_restJson1DeleteReservationCommand = async (output, context)
|
|
|
2988
3016
|
if (data.region !== undefined && data.region !== null) {
|
|
2989
3017
|
contents.Region = (0, smithy_client_1.expectString)(data.region);
|
|
2990
3018
|
}
|
|
3019
|
+
if (data.renewalSettings !== undefined && data.renewalSettings !== null) {
|
|
3020
|
+
contents.RenewalSettings = deserializeAws_restJson1RenewalSettings(data.renewalSettings, context);
|
|
3021
|
+
}
|
|
2991
3022
|
if (data.reservationId !== undefined && data.reservationId !== null) {
|
|
2992
3023
|
contents.ReservationId = (0, smithy_client_1.expectString)(data.reservationId);
|
|
2993
3024
|
}
|
|
@@ -3015,8 +3046,7 @@ const deserializeAws_restJson1DeleteReservationCommandError = async (output, con
|
|
|
3015
3046
|
body: await parseBody(output.body, context),
|
|
3016
3047
|
};
|
|
3017
3048
|
let response;
|
|
3018
|
-
|
|
3019
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3020
3050
|
switch (errorCode) {
|
|
3021
3051
|
case "BadGatewayException":
|
|
3022
3052
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3044,10 +3074,12 @@ const deserializeAws_restJson1DeleteReservationCommandError = async (output, con
|
|
|
3044
3074
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3045
3075
|
default:
|
|
3046
3076
|
const parsedBody = parsedOutput.body;
|
|
3077
|
+
const $metadata = deserializeMetadata(output);
|
|
3078
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3047
3079
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3080
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3049
3081
|
$fault: "client",
|
|
3050
|
-
$metadata
|
|
3082
|
+
$metadata,
|
|
3051
3083
|
});
|
|
3052
3084
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3053
3085
|
}
|
|
@@ -3069,8 +3101,7 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
3069
3101
|
body: await parseBody(output.body, context),
|
|
3070
3102
|
};
|
|
3071
3103
|
let response;
|
|
3072
|
-
|
|
3073
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3074
3105
|
switch (errorCode) {
|
|
3075
3106
|
case "BadGatewayException":
|
|
3076
3107
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3095,10 +3126,12 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
3095
3126
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3096
3127
|
default:
|
|
3097
3128
|
const parsedBody = parsedOutput.body;
|
|
3129
|
+
const $metadata = deserializeMetadata(output);
|
|
3130
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3098
3131
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3099
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3132
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3100
3133
|
$fault: "client",
|
|
3101
|
-
$metadata
|
|
3134
|
+
$metadata,
|
|
3102
3135
|
});
|
|
3103
3136
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3104
3137
|
}
|
|
@@ -3120,8 +3153,7 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
3120
3153
|
body: await parseBody(output.body, context),
|
|
3121
3154
|
};
|
|
3122
3155
|
let response;
|
|
3123
|
-
|
|
3124
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3125
3157
|
switch (errorCode) {
|
|
3126
3158
|
case "BadRequestException":
|
|
3127
3159
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -3137,10 +3169,12 @@ const deserializeAws_restJson1DeleteTagsCommandError = async (output, context) =
|
|
|
3137
3169
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
3138
3170
|
default:
|
|
3139
3171
|
const parsedBody = parsedOutput.body;
|
|
3172
|
+
const $metadata = deserializeMetadata(output);
|
|
3173
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3140
3174
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3175
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3142
3176
|
$fault: "client",
|
|
3143
|
-
$metadata
|
|
3177
|
+
$metadata,
|
|
3144
3178
|
});
|
|
3145
3179
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3146
3180
|
}
|
|
@@ -3234,8 +3268,7 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
3234
3268
|
body: await parseBody(output.body, context),
|
|
3235
3269
|
};
|
|
3236
3270
|
let response;
|
|
3237
|
-
|
|
3238
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3239
3272
|
switch (errorCode) {
|
|
3240
3273
|
case "BadGatewayException":
|
|
3241
3274
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3260,10 +3293,12 @@ const deserializeAws_restJson1DescribeChannelCommandError = async (output, conte
|
|
|
3260
3293
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3261
3294
|
default:
|
|
3262
3295
|
const parsedBody = parsedOutput.body;
|
|
3296
|
+
const $metadata = deserializeMetadata(output);
|
|
3297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3263
3298
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3264
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3265
3300
|
$fault: "client",
|
|
3266
|
-
$metadata
|
|
3301
|
+
$metadata,
|
|
3267
3302
|
});
|
|
3268
3303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3269
3304
|
}
|
|
@@ -3349,8 +3384,7 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
3349
3384
|
body: await parseBody(output.body, context),
|
|
3350
3385
|
};
|
|
3351
3386
|
let response;
|
|
3352
|
-
|
|
3353
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3354
3388
|
switch (errorCode) {
|
|
3355
3389
|
case "BadGatewayException":
|
|
3356
3390
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3375,10 +3409,12 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
3375
3409
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3376
3410
|
default:
|
|
3377
3411
|
const parsedBody = parsedOutput.body;
|
|
3412
|
+
const $metadata = deserializeMetadata(output);
|
|
3413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3378
3414
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3379
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3380
3416
|
$fault: "client",
|
|
3381
|
-
$metadata
|
|
3417
|
+
$metadata,
|
|
3382
3418
|
});
|
|
3383
3419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3384
3420
|
}
|
|
@@ -3448,8 +3484,7 @@ const deserializeAws_restJson1DescribeInputDeviceCommandError = async (output, c
|
|
|
3448
3484
|
body: await parseBody(output.body, context),
|
|
3449
3485
|
};
|
|
3450
3486
|
let response;
|
|
3451
|
-
|
|
3452
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3453
3488
|
switch (errorCode) {
|
|
3454
3489
|
case "BadGatewayException":
|
|
3455
3490
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3474,10 +3509,12 @@ const deserializeAws_restJson1DescribeInputDeviceCommandError = async (output, c
|
|
|
3474
3509
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3475
3510
|
default:
|
|
3476
3511
|
const parsedBody = parsedOutput.body;
|
|
3512
|
+
const $metadata = deserializeMetadata(output);
|
|
3513
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3477
3514
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3478
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3515
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3479
3516
|
$fault: "client",
|
|
3480
|
-
$metadata
|
|
3517
|
+
$metadata,
|
|
3481
3518
|
});
|
|
3482
3519
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3483
3520
|
}
|
|
@@ -3517,8 +3554,7 @@ const deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = async (
|
|
|
3517
3554
|
body: await parseBody(output.body, context),
|
|
3518
3555
|
};
|
|
3519
3556
|
let response;
|
|
3520
|
-
|
|
3521
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3522
3558
|
switch (errorCode) {
|
|
3523
3559
|
case "BadGatewayException":
|
|
3524
3560
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3543,10 +3579,12 @@ const deserializeAws_restJson1DescribeInputDeviceThumbnailCommandError = async (
|
|
|
3543
3579
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3544
3580
|
default:
|
|
3545
3581
|
const parsedBody = parsedOutput.body;
|
|
3582
|
+
const $metadata = deserializeMetadata(output);
|
|
3583
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3546
3584
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3585
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3548
3586
|
$fault: "client",
|
|
3549
|
-
$metadata
|
|
3587
|
+
$metadata,
|
|
3550
3588
|
});
|
|
3551
3589
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3552
3590
|
}
|
|
@@ -3592,8 +3630,7 @@ const deserializeAws_restJson1DescribeInputSecurityGroupCommandError = async (ou
|
|
|
3592
3630
|
body: await parseBody(output.body, context),
|
|
3593
3631
|
};
|
|
3594
3632
|
let response;
|
|
3595
|
-
|
|
3596
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3633
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3597
3634
|
switch (errorCode) {
|
|
3598
3635
|
case "BadGatewayException":
|
|
3599
3636
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3618,10 +3655,12 @@ const deserializeAws_restJson1DescribeInputSecurityGroupCommandError = async (ou
|
|
|
3618
3655
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3619
3656
|
default:
|
|
3620
3657
|
const parsedBody = parsedOutput.body;
|
|
3658
|
+
const $metadata = deserializeMetadata(output);
|
|
3659
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3621
3660
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3661
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3623
3662
|
$fault: "client",
|
|
3624
|
-
$metadata
|
|
3663
|
+
$metadata,
|
|
3625
3664
|
});
|
|
3626
3665
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3627
3666
|
}
|
|
@@ -3683,8 +3722,7 @@ const deserializeAws_restJson1DescribeMultiplexCommandError = async (output, con
|
|
|
3683
3722
|
body: await parseBody(output.body, context),
|
|
3684
3723
|
};
|
|
3685
3724
|
let response;
|
|
3686
|
-
|
|
3687
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3725
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3688
3726
|
switch (errorCode) {
|
|
3689
3727
|
case "BadGatewayException":
|
|
3690
3728
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3709,10 +3747,12 @@ const deserializeAws_restJson1DescribeMultiplexCommandError = async (output, con
|
|
|
3709
3747
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3710
3748
|
default:
|
|
3711
3749
|
const parsedBody = parsedOutput.body;
|
|
3750
|
+
const $metadata = deserializeMetadata(output);
|
|
3751
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3712
3752
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3713
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3753
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3714
3754
|
$fault: "client",
|
|
3715
|
-
$metadata
|
|
3755
|
+
$metadata,
|
|
3716
3756
|
});
|
|
3717
3757
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3718
3758
|
}
|
|
@@ -3754,8 +3794,7 @@ const deserializeAws_restJson1DescribeMultiplexProgramCommandError = async (outp
|
|
|
3754
3794
|
body: await parseBody(output.body, context),
|
|
3755
3795
|
};
|
|
3756
3796
|
let response;
|
|
3757
|
-
|
|
3758
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3759
3798
|
switch (errorCode) {
|
|
3760
3799
|
case "BadGatewayException":
|
|
3761
3800
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3780,10 +3819,12 @@ const deserializeAws_restJson1DescribeMultiplexProgramCommandError = async (outp
|
|
|
3780
3819
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3781
3820
|
default:
|
|
3782
3821
|
const parsedBody = parsedOutput.body;
|
|
3822
|
+
const $metadata = deserializeMetadata(output);
|
|
3823
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3783
3824
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3825
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3785
3826
|
$fault: "client",
|
|
3786
|
-
$metadata
|
|
3827
|
+
$metadata,
|
|
3787
3828
|
});
|
|
3788
3829
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3789
3830
|
}
|
|
@@ -3849,8 +3890,7 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
3849
3890
|
body: await parseBody(output.body, context),
|
|
3850
3891
|
};
|
|
3851
3892
|
let response;
|
|
3852
|
-
|
|
3853
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3893
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3854
3894
|
switch (errorCode) {
|
|
3855
3895
|
case "BadGatewayException":
|
|
3856
3896
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3875,10 +3915,12 @@ const deserializeAws_restJson1DescribeOfferingCommandError = async (output, cont
|
|
|
3875
3915
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3876
3916
|
default:
|
|
3877
3917
|
const parsedBody = parsedOutput.body;
|
|
3918
|
+
const $metadata = deserializeMetadata(output);
|
|
3919
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3878
3920
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
3879
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3921
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3880
3922
|
$fault: "client",
|
|
3881
|
-
$metadata
|
|
3923
|
+
$metadata,
|
|
3882
3924
|
});
|
|
3883
3925
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3884
3926
|
}
|
|
@@ -3901,6 +3943,7 @@ const deserializeAws_restJson1DescribeReservationCommand = async (output, contex
|
|
|
3901
3943
|
OfferingId: undefined,
|
|
3902
3944
|
OfferingType: undefined,
|
|
3903
3945
|
Region: undefined,
|
|
3946
|
+
RenewalSettings: undefined,
|
|
3904
3947
|
ReservationId: undefined,
|
|
3905
3948
|
ResourceSpecification: undefined,
|
|
3906
3949
|
Start: undefined,
|
|
@@ -3945,6 +3988,9 @@ const deserializeAws_restJson1DescribeReservationCommand = async (output, contex
|
|
|
3945
3988
|
if (data.region !== undefined && data.region !== null) {
|
|
3946
3989
|
contents.Region = (0, smithy_client_1.expectString)(data.region);
|
|
3947
3990
|
}
|
|
3991
|
+
if (data.renewalSettings !== undefined && data.renewalSettings !== null) {
|
|
3992
|
+
contents.RenewalSettings = deserializeAws_restJson1RenewalSettings(data.renewalSettings, context);
|
|
3993
|
+
}
|
|
3948
3994
|
if (data.reservationId !== undefined && data.reservationId !== null) {
|
|
3949
3995
|
contents.ReservationId = (0, smithy_client_1.expectString)(data.reservationId);
|
|
3950
3996
|
}
|
|
@@ -3972,8 +4018,7 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
3972
4018
|
body: await parseBody(output.body, context),
|
|
3973
4019
|
};
|
|
3974
4020
|
let response;
|
|
3975
|
-
|
|
3976
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4021
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3977
4022
|
switch (errorCode) {
|
|
3978
4023
|
case "BadGatewayException":
|
|
3979
4024
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -3998,10 +4043,12 @@ const deserializeAws_restJson1DescribeReservationCommandError = async (output, c
|
|
|
3998
4043
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
3999
4044
|
default:
|
|
4000
4045
|
const parsedBody = parsedOutput.body;
|
|
4046
|
+
const $metadata = deserializeMetadata(output);
|
|
4047
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4001
4048
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4002
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4049
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4003
4050
|
$fault: "client",
|
|
4004
|
-
$metadata
|
|
4051
|
+
$metadata,
|
|
4005
4052
|
});
|
|
4006
4053
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4007
4054
|
}
|
|
@@ -4031,8 +4078,7 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
4031
4078
|
body: await parseBody(output.body, context),
|
|
4032
4079
|
};
|
|
4033
4080
|
let response;
|
|
4034
|
-
|
|
4035
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4036
4082
|
switch (errorCode) {
|
|
4037
4083
|
case "BadGatewayException":
|
|
4038
4084
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4057,10 +4103,12 @@ const deserializeAws_restJson1DescribeScheduleCommandError = async (output, cont
|
|
|
4057
4103
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4058
4104
|
default:
|
|
4059
4105
|
const parsedBody = parsedOutput.body;
|
|
4106
|
+
const $metadata = deserializeMetadata(output);
|
|
4107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4060
4108
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4061
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4062
4110
|
$fault: "client",
|
|
4063
|
-
$metadata
|
|
4111
|
+
$metadata,
|
|
4064
4112
|
});
|
|
4065
4113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4066
4114
|
}
|
|
@@ -4090,8 +4138,7 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
4090
4138
|
body: await parseBody(output.body, context),
|
|
4091
4139
|
};
|
|
4092
4140
|
let response;
|
|
4093
|
-
|
|
4094
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4141
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4095
4142
|
switch (errorCode) {
|
|
4096
4143
|
case "BadGatewayException":
|
|
4097
4144
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4113,10 +4160,12 @@ const deserializeAws_restJson1ListChannelsCommandError = async (output, context)
|
|
|
4113
4160
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4114
4161
|
default:
|
|
4115
4162
|
const parsedBody = parsedOutput.body;
|
|
4163
|
+
const $metadata = deserializeMetadata(output);
|
|
4164
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4116
4165
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4166
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4118
4167
|
$fault: "client",
|
|
4119
|
-
$metadata
|
|
4168
|
+
$metadata,
|
|
4120
4169
|
});
|
|
4121
4170
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4122
4171
|
}
|
|
@@ -4146,8 +4195,7 @@ const deserializeAws_restJson1ListInputDevicesCommandError = async (output, cont
|
|
|
4146
4195
|
body: await parseBody(output.body, context),
|
|
4147
4196
|
};
|
|
4148
4197
|
let response;
|
|
4149
|
-
|
|
4150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4198
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4151
4199
|
switch (errorCode) {
|
|
4152
4200
|
case "BadGatewayException":
|
|
4153
4201
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4169,10 +4217,12 @@ const deserializeAws_restJson1ListInputDevicesCommandError = async (output, cont
|
|
|
4169
4217
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4170
4218
|
default:
|
|
4171
4219
|
const parsedBody = parsedOutput.body;
|
|
4220
|
+
const $metadata = deserializeMetadata(output);
|
|
4221
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4172
4222
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4173
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4223
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4174
4224
|
$fault: "client",
|
|
4175
|
-
$metadata
|
|
4225
|
+
$metadata,
|
|
4176
4226
|
});
|
|
4177
4227
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4178
4228
|
}
|
|
@@ -4202,8 +4252,7 @@ const deserializeAws_restJson1ListInputDeviceTransfersCommandError = async (outp
|
|
|
4202
4252
|
body: await parseBody(output.body, context),
|
|
4203
4253
|
};
|
|
4204
4254
|
let response;
|
|
4205
|
-
|
|
4206
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4207
4256
|
switch (errorCode) {
|
|
4208
4257
|
case "BadGatewayException":
|
|
4209
4258
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4228,10 +4277,12 @@ const deserializeAws_restJson1ListInputDeviceTransfersCommandError = async (outp
|
|
|
4228
4277
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4229
4278
|
default:
|
|
4230
4279
|
const parsedBody = parsedOutput.body;
|
|
4280
|
+
const $metadata = deserializeMetadata(output);
|
|
4281
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4231
4282
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4232
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4233
4284
|
$fault: "client",
|
|
4234
|
-
$metadata
|
|
4285
|
+
$metadata,
|
|
4235
4286
|
});
|
|
4236
4287
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4237
4288
|
}
|
|
@@ -4261,8 +4312,7 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
4261
4312
|
body: await parseBody(output.body, context),
|
|
4262
4313
|
};
|
|
4263
4314
|
let response;
|
|
4264
|
-
|
|
4265
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4315
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4266
4316
|
switch (errorCode) {
|
|
4267
4317
|
case "BadGatewayException":
|
|
4268
4318
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4284,10 +4334,12 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
4284
4334
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4285
4335
|
default:
|
|
4286
4336
|
const parsedBody = parsedOutput.body;
|
|
4337
|
+
const $metadata = deserializeMetadata(output);
|
|
4338
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4287
4339
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4288
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4289
4341
|
$fault: "client",
|
|
4290
|
-
$metadata
|
|
4342
|
+
$metadata,
|
|
4291
4343
|
});
|
|
4292
4344
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4293
4345
|
}
|
|
@@ -4317,8 +4369,7 @@ const deserializeAws_restJson1ListInputSecurityGroupsCommandError = async (outpu
|
|
|
4317
4369
|
body: await parseBody(output.body, context),
|
|
4318
4370
|
};
|
|
4319
4371
|
let response;
|
|
4320
|
-
|
|
4321
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4372
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4322
4373
|
switch (errorCode) {
|
|
4323
4374
|
case "BadGatewayException":
|
|
4324
4375
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4340,10 +4391,12 @@ const deserializeAws_restJson1ListInputSecurityGroupsCommandError = async (outpu
|
|
|
4340
4391
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4341
4392
|
default:
|
|
4342
4393
|
const parsedBody = parsedOutput.body;
|
|
4394
|
+
const $metadata = deserializeMetadata(output);
|
|
4395
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4343
4396
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4344
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4397
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4345
4398
|
$fault: "client",
|
|
4346
|
-
$metadata
|
|
4399
|
+
$metadata,
|
|
4347
4400
|
});
|
|
4348
4401
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4349
4402
|
}
|
|
@@ -4373,8 +4426,7 @@ const deserializeAws_restJson1ListMultiplexesCommandError = async (output, conte
|
|
|
4373
4426
|
body: await parseBody(output.body, context),
|
|
4374
4427
|
};
|
|
4375
4428
|
let response;
|
|
4376
|
-
|
|
4377
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4429
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4378
4430
|
switch (errorCode) {
|
|
4379
4431
|
case "BadGatewayException":
|
|
4380
4432
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4396,10 +4448,12 @@ const deserializeAws_restJson1ListMultiplexesCommandError = async (output, conte
|
|
|
4396
4448
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4397
4449
|
default:
|
|
4398
4450
|
const parsedBody = parsedOutput.body;
|
|
4451
|
+
const $metadata = deserializeMetadata(output);
|
|
4452
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4399
4453
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4454
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4401
4455
|
$fault: "client",
|
|
4402
|
-
$metadata
|
|
4456
|
+
$metadata,
|
|
4403
4457
|
});
|
|
4404
4458
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4405
4459
|
}
|
|
@@ -4429,8 +4483,7 @@ const deserializeAws_restJson1ListMultiplexProgramsCommandError = async (output,
|
|
|
4429
4483
|
body: await parseBody(output.body, context),
|
|
4430
4484
|
};
|
|
4431
4485
|
let response;
|
|
4432
|
-
|
|
4433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4486
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4434
4487
|
switch (errorCode) {
|
|
4435
4488
|
case "BadGatewayException":
|
|
4436
4489
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4455,10 +4508,12 @@ const deserializeAws_restJson1ListMultiplexProgramsCommandError = async (output,
|
|
|
4455
4508
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4456
4509
|
default:
|
|
4457
4510
|
const parsedBody = parsedOutput.body;
|
|
4511
|
+
const $metadata = deserializeMetadata(output);
|
|
4512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4458
4513
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4459
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4460
4515
|
$fault: "client",
|
|
4461
|
-
$metadata
|
|
4516
|
+
$metadata,
|
|
4462
4517
|
});
|
|
4463
4518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4464
4519
|
}
|
|
@@ -4488,8 +4543,7 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
4488
4543
|
body: await parseBody(output.body, context),
|
|
4489
4544
|
};
|
|
4490
4545
|
let response;
|
|
4491
|
-
|
|
4492
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4493
4547
|
switch (errorCode) {
|
|
4494
4548
|
case "BadGatewayException":
|
|
4495
4549
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4511,10 +4565,12 @@ const deserializeAws_restJson1ListOfferingsCommandError = async (output, context
|
|
|
4511
4565
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4512
4566
|
default:
|
|
4513
4567
|
const parsedBody = parsedOutput.body;
|
|
4568
|
+
const $metadata = deserializeMetadata(output);
|
|
4569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4514
4570
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4515
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4516
4572
|
$fault: "client",
|
|
4517
|
-
$metadata
|
|
4573
|
+
$metadata,
|
|
4518
4574
|
});
|
|
4519
4575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4520
4576
|
}
|
|
@@ -4544,8 +4600,7 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
4544
4600
|
body: await parseBody(output.body, context),
|
|
4545
4601
|
};
|
|
4546
4602
|
let response;
|
|
4547
|
-
|
|
4548
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4549
4604
|
switch (errorCode) {
|
|
4550
4605
|
case "BadGatewayException":
|
|
4551
4606
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4567,10 +4622,12 @@ const deserializeAws_restJson1ListReservationsCommandError = async (output, cont
|
|
|
4567
4622
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4568
4623
|
default:
|
|
4569
4624
|
const parsedBody = parsedOutput.body;
|
|
4625
|
+
const $metadata = deserializeMetadata(output);
|
|
4626
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4570
4627
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4628
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4572
4629
|
$fault: "client",
|
|
4573
|
-
$metadata
|
|
4630
|
+
$metadata,
|
|
4574
4631
|
});
|
|
4575
4632
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4576
4633
|
}
|
|
@@ -4596,8 +4653,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4596
4653
|
body: await parseBody(output.body, context),
|
|
4597
4654
|
};
|
|
4598
4655
|
let response;
|
|
4599
|
-
|
|
4600
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4601
4657
|
switch (errorCode) {
|
|
4602
4658
|
case "BadRequestException":
|
|
4603
4659
|
case "com.amazonaws.medialive#BadRequestException":
|
|
@@ -4613,10 +4669,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4613
4669
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
4614
4670
|
default:
|
|
4615
4671
|
const parsedBody = parsedOutput.body;
|
|
4672
|
+
const $metadata = deserializeMetadata(output);
|
|
4673
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4616
4674
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4617
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4675
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4618
4676
|
$fault: "client",
|
|
4619
|
-
$metadata
|
|
4677
|
+
$metadata,
|
|
4620
4678
|
});
|
|
4621
4679
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4622
4680
|
}
|
|
@@ -4642,8 +4700,7 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
4642
4700
|
body: await parseBody(output.body, context),
|
|
4643
4701
|
};
|
|
4644
4702
|
let response;
|
|
4645
|
-
|
|
4646
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4647
4704
|
switch (errorCode) {
|
|
4648
4705
|
case "BadGatewayException":
|
|
4649
4706
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4671,10 +4728,12 @@ const deserializeAws_restJson1PurchaseOfferingCommandError = async (output, cont
|
|
|
4671
4728
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4672
4729
|
default:
|
|
4673
4730
|
const parsedBody = parsedOutput.body;
|
|
4731
|
+
const $metadata = deserializeMetadata(output);
|
|
4732
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4674
4733
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4675
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4734
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4676
4735
|
$fault: "client",
|
|
4677
|
-
$metadata
|
|
4736
|
+
$metadata,
|
|
4678
4737
|
});
|
|
4679
4738
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4680
4739
|
}
|
|
@@ -4696,8 +4755,7 @@ const deserializeAws_restJson1RejectInputDeviceTransferCommandError = async (out
|
|
|
4696
4755
|
body: await parseBody(output.body, context),
|
|
4697
4756
|
};
|
|
4698
4757
|
let response;
|
|
4699
|
-
|
|
4700
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4701
4759
|
switch (errorCode) {
|
|
4702
4760
|
case "BadGatewayException":
|
|
4703
4761
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4728,10 +4786,12 @@ const deserializeAws_restJson1RejectInputDeviceTransferCommandError = async (out
|
|
|
4728
4786
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
4729
4787
|
default:
|
|
4730
4788
|
const parsedBody = parsedOutput.body;
|
|
4789
|
+
const $metadata = deserializeMetadata(output);
|
|
4790
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4731
4791
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4732
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4733
4793
|
$fault: "client",
|
|
4734
|
-
$metadata
|
|
4794
|
+
$metadata,
|
|
4735
4795
|
});
|
|
4736
4796
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4737
4797
|
}
|
|
@@ -4825,8 +4885,7 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
4825
4885
|
body: await parseBody(output.body, context),
|
|
4826
4886
|
};
|
|
4827
4887
|
let response;
|
|
4828
|
-
|
|
4829
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4888
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4830
4889
|
switch (errorCode) {
|
|
4831
4890
|
case "BadGatewayException":
|
|
4832
4891
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4854,10 +4913,12 @@ const deserializeAws_restJson1StartChannelCommandError = async (output, context)
|
|
|
4854
4913
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4855
4914
|
default:
|
|
4856
4915
|
const parsedBody = parsedOutput.body;
|
|
4916
|
+
const $metadata = deserializeMetadata(output);
|
|
4917
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4857
4918
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4858
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4919
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4859
4920
|
$fault: "client",
|
|
4860
|
-
$metadata
|
|
4921
|
+
$metadata,
|
|
4861
4922
|
});
|
|
4862
4923
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4863
4924
|
}
|
|
@@ -4919,8 +4980,7 @@ const deserializeAws_restJson1StartMultiplexCommandError = async (output, contex
|
|
|
4919
4980
|
body: await parseBody(output.body, context),
|
|
4920
4981
|
};
|
|
4921
4982
|
let response;
|
|
4922
|
-
|
|
4923
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4983
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4924
4984
|
switch (errorCode) {
|
|
4925
4985
|
case "BadGatewayException":
|
|
4926
4986
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -4948,10 +5008,12 @@ const deserializeAws_restJson1StartMultiplexCommandError = async (output, contex
|
|
|
4948
5008
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
4949
5009
|
default:
|
|
4950
5010
|
const parsedBody = parsedOutput.body;
|
|
5011
|
+
const $metadata = deserializeMetadata(output);
|
|
5012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4951
5013
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
4952
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4953
5015
|
$fault: "client",
|
|
4954
|
-
$metadata
|
|
5016
|
+
$metadata,
|
|
4955
5017
|
});
|
|
4956
5018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4957
5019
|
}
|
|
@@ -5045,8 +5107,7 @@ const deserializeAws_restJson1StopChannelCommandError = async (output, context)
|
|
|
5045
5107
|
body: await parseBody(output.body, context),
|
|
5046
5108
|
};
|
|
5047
5109
|
let response;
|
|
5048
|
-
|
|
5049
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5110
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5050
5111
|
switch (errorCode) {
|
|
5051
5112
|
case "BadGatewayException":
|
|
5052
5113
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5074,10 +5135,12 @@ const deserializeAws_restJson1StopChannelCommandError = async (output, context)
|
|
|
5074
5135
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5075
5136
|
default:
|
|
5076
5137
|
const parsedBody = parsedOutput.body;
|
|
5138
|
+
const $metadata = deserializeMetadata(output);
|
|
5139
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5077
5140
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5078
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5141
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5079
5142
|
$fault: "client",
|
|
5080
|
-
$metadata
|
|
5143
|
+
$metadata,
|
|
5081
5144
|
});
|
|
5082
5145
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5083
5146
|
}
|
|
@@ -5139,8 +5202,7 @@ const deserializeAws_restJson1StopMultiplexCommandError = async (output, context
|
|
|
5139
5202
|
body: await parseBody(output.body, context),
|
|
5140
5203
|
};
|
|
5141
5204
|
let response;
|
|
5142
|
-
|
|
5143
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5205
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5144
5206
|
switch (errorCode) {
|
|
5145
5207
|
case "BadGatewayException":
|
|
5146
5208
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5168,10 +5230,12 @@ const deserializeAws_restJson1StopMultiplexCommandError = async (output, context
|
|
|
5168
5230
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5169
5231
|
default:
|
|
5170
5232
|
const parsedBody = parsedOutput.body;
|
|
5233
|
+
const $metadata = deserializeMetadata(output);
|
|
5234
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5171
5235
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5236
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5173
5237
|
$fault: "client",
|
|
5174
|
-
$metadata
|
|
5238
|
+
$metadata,
|
|
5175
5239
|
});
|
|
5176
5240
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5177
5241
|
}
|
|
@@ -5193,8 +5257,7 @@ const deserializeAws_restJson1TransferInputDeviceCommandError = async (output, c
|
|
|
5193
5257
|
body: await parseBody(output.body, context),
|
|
5194
5258
|
};
|
|
5195
5259
|
let response;
|
|
5196
|
-
|
|
5197
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5198
5261
|
switch (errorCode) {
|
|
5199
5262
|
case "BadGatewayException":
|
|
5200
5263
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5225,10 +5288,12 @@ const deserializeAws_restJson1TransferInputDeviceCommandError = async (output, c
|
|
|
5225
5288
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5226
5289
|
default:
|
|
5227
5290
|
const parsedBody = parsedOutput.body;
|
|
5291
|
+
const $metadata = deserializeMetadata(output);
|
|
5292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5228
5293
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5229
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5230
5295
|
$fault: "client",
|
|
5231
|
-
$metadata
|
|
5296
|
+
$metadata,
|
|
5232
5297
|
});
|
|
5233
5298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5234
5299
|
}
|
|
@@ -5254,8 +5319,7 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
5254
5319
|
body: await parseBody(output.body, context),
|
|
5255
5320
|
};
|
|
5256
5321
|
let response;
|
|
5257
|
-
|
|
5258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5322
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5259
5323
|
switch (errorCode) {
|
|
5260
5324
|
case "BadGatewayException":
|
|
5261
5325
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5280,10 +5344,12 @@ const deserializeAws_restJson1UpdateChannelCommandError = async (output, context
|
|
|
5280
5344
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5281
5345
|
default:
|
|
5282
5346
|
const parsedBody = parsedOutput.body;
|
|
5347
|
+
const $metadata = deserializeMetadata(output);
|
|
5348
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5283
5349
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5284
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5350
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5285
5351
|
$fault: "client",
|
|
5286
|
-
$metadata
|
|
5352
|
+
$metadata,
|
|
5287
5353
|
});
|
|
5288
5354
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5289
5355
|
}
|
|
@@ -5309,8 +5375,7 @@ const deserializeAws_restJson1UpdateChannelClassCommandError = async (output, co
|
|
|
5309
5375
|
body: await parseBody(output.body, context),
|
|
5310
5376
|
};
|
|
5311
5377
|
let response;
|
|
5312
|
-
|
|
5313
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5314
5379
|
switch (errorCode) {
|
|
5315
5380
|
case "BadGatewayException":
|
|
5316
5381
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5341,10 +5406,12 @@ const deserializeAws_restJson1UpdateChannelClassCommandError = async (output, co
|
|
|
5341
5406
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5342
5407
|
default:
|
|
5343
5408
|
const parsedBody = parsedOutput.body;
|
|
5409
|
+
const $metadata = deserializeMetadata(output);
|
|
5410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5344
5411
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5345
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5346
5413
|
$fault: "client",
|
|
5347
|
-
$metadata
|
|
5414
|
+
$metadata,
|
|
5348
5415
|
});
|
|
5349
5416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5350
5417
|
}
|
|
@@ -5370,8 +5437,7 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
5370
5437
|
body: await parseBody(output.body, context),
|
|
5371
5438
|
};
|
|
5372
5439
|
let response;
|
|
5373
|
-
|
|
5374
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5375
5441
|
switch (errorCode) {
|
|
5376
5442
|
case "BadGatewayException":
|
|
5377
5443
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5396,10 +5462,12 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
5396
5462
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5397
5463
|
default:
|
|
5398
5464
|
const parsedBody = parsedOutput.body;
|
|
5465
|
+
const $metadata = deserializeMetadata(output);
|
|
5466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5399
5467
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5401
5469
|
$fault: "client",
|
|
5402
|
-
$metadata
|
|
5470
|
+
$metadata,
|
|
5403
5471
|
});
|
|
5404
5472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5405
5473
|
}
|
|
@@ -5469,8 +5537,7 @@ const deserializeAws_restJson1UpdateInputDeviceCommandError = async (output, con
|
|
|
5469
5537
|
body: await parseBody(output.body, context),
|
|
5470
5538
|
};
|
|
5471
5539
|
let response;
|
|
5472
|
-
|
|
5473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5474
5541
|
switch (errorCode) {
|
|
5475
5542
|
case "BadGatewayException":
|
|
5476
5543
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5498,10 +5565,12 @@ const deserializeAws_restJson1UpdateInputDeviceCommandError = async (output, con
|
|
|
5498
5565
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5499
5566
|
default:
|
|
5500
5567
|
const parsedBody = parsedOutput.body;
|
|
5568
|
+
const $metadata = deserializeMetadata(output);
|
|
5569
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5501
5570
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5502
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5571
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5503
5572
|
$fault: "client",
|
|
5504
|
-
$metadata
|
|
5573
|
+
$metadata,
|
|
5505
5574
|
});
|
|
5506
5575
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5507
5576
|
}
|
|
@@ -5527,8 +5596,7 @@ const deserializeAws_restJson1UpdateInputSecurityGroupCommandError = async (outp
|
|
|
5527
5596
|
body: await parseBody(output.body, context),
|
|
5528
5597
|
};
|
|
5529
5598
|
let response;
|
|
5530
|
-
|
|
5531
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5532
5600
|
switch (errorCode) {
|
|
5533
5601
|
case "BadGatewayException":
|
|
5534
5602
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5553,10 +5621,12 @@ const deserializeAws_restJson1UpdateInputSecurityGroupCommandError = async (outp
|
|
|
5553
5621
|
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
5554
5622
|
default:
|
|
5555
5623
|
const parsedBody = parsedOutput.body;
|
|
5624
|
+
const $metadata = deserializeMetadata(output);
|
|
5625
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5556
5626
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5557
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5627
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5558
5628
|
$fault: "client",
|
|
5559
|
-
$metadata
|
|
5629
|
+
$metadata,
|
|
5560
5630
|
});
|
|
5561
5631
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5562
5632
|
}
|
|
@@ -5582,8 +5652,7 @@ const deserializeAws_restJson1UpdateMultiplexCommandError = async (output, conte
|
|
|
5582
5652
|
body: await parseBody(output.body, context),
|
|
5583
5653
|
};
|
|
5584
5654
|
let response;
|
|
5585
|
-
|
|
5586
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5655
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5587
5656
|
switch (errorCode) {
|
|
5588
5657
|
case "BadGatewayException":
|
|
5589
5658
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5611,10 +5680,12 @@ const deserializeAws_restJson1UpdateMultiplexCommandError = async (output, conte
|
|
|
5611
5680
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5612
5681
|
default:
|
|
5613
5682
|
const parsedBody = parsedOutput.body;
|
|
5683
|
+
const $metadata = deserializeMetadata(output);
|
|
5684
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5614
5685
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5615
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5686
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5616
5687
|
$fault: "client",
|
|
5617
|
-
$metadata
|
|
5688
|
+
$metadata,
|
|
5618
5689
|
});
|
|
5619
5690
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5620
5691
|
}
|
|
@@ -5640,8 +5711,7 @@ const deserializeAws_restJson1UpdateMultiplexProgramCommandError = async (output
|
|
|
5640
5711
|
body: await parseBody(output.body, context),
|
|
5641
5712
|
};
|
|
5642
5713
|
let response;
|
|
5643
|
-
|
|
5644
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5714
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5645
5715
|
switch (errorCode) {
|
|
5646
5716
|
case "BadGatewayException":
|
|
5647
5717
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5669,10 +5739,12 @@ const deserializeAws_restJson1UpdateMultiplexProgramCommandError = async (output
|
|
|
5669
5739
|
throw await deserializeAws_restJson1UnprocessableEntityExceptionResponse(parsedOutput, context);
|
|
5670
5740
|
default:
|
|
5671
5741
|
const parsedBody = parsedOutput.body;
|
|
5742
|
+
const $metadata = deserializeMetadata(output);
|
|
5743
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5672
5744
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5673
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5745
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5674
5746
|
$fault: "client",
|
|
5675
|
-
$metadata
|
|
5747
|
+
$metadata,
|
|
5676
5748
|
});
|
|
5677
5749
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5678
5750
|
}
|
|
@@ -5698,8 +5770,7 @@ const deserializeAws_restJson1UpdateReservationCommandError = async (output, con
|
|
|
5698
5770
|
body: await parseBody(output.body, context),
|
|
5699
5771
|
};
|
|
5700
5772
|
let response;
|
|
5701
|
-
|
|
5702
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5703
5774
|
switch (errorCode) {
|
|
5704
5775
|
case "BadGatewayException":
|
|
5705
5776
|
case "com.amazonaws.medialive#BadGatewayException":
|
|
@@ -5727,10 +5798,12 @@ const deserializeAws_restJson1UpdateReservationCommandError = async (output, con
|
|
|
5727
5798
|
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
5728
5799
|
default:
|
|
5729
5800
|
const parsedBody = parsedOutput.body;
|
|
5801
|
+
const $metadata = deserializeMetadata(output);
|
|
5802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5730
5803
|
response = new MediaLiveServiceException_1.MediaLiveServiceException({
|
|
5731
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5732
5805
|
$fault: "client",
|
|
5733
|
-
$metadata
|
|
5806
|
+
$metadata,
|
|
5734
5807
|
});
|
|
5735
5808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
5736
5809
|
}
|
|
@@ -6467,6 +6540,7 @@ const serializeAws_restJson1BurnInDestinationSettings = (input, context) => {
|
|
|
6467
6540
|
};
|
|
6468
6541
|
const serializeAws_restJson1CaptionDescription = (input, context) => {
|
|
6469
6542
|
return {
|
|
6543
|
+
...(input.Accessibility !== undefined && input.Accessibility !== null && { accessibility: input.Accessibility }),
|
|
6470
6544
|
...(input.CaptionSelectorName !== undefined &&
|
|
6471
6545
|
input.CaptionSelectorName !== null && { captionSelectorName: input.CaptionSelectorName }),
|
|
6472
6546
|
...(input.DestinationSettings !== undefined &&
|
|
@@ -8012,6 +8086,13 @@ const serializeAws_restJson1RemixSettings = (input, context) => {
|
|
|
8012
8086
|
...(input.ChannelsOut !== undefined && input.ChannelsOut !== null && { channelsOut: input.ChannelsOut }),
|
|
8013
8087
|
};
|
|
8014
8088
|
};
|
|
8089
|
+
const serializeAws_restJson1RenewalSettings = (input, context) => {
|
|
8090
|
+
return {
|
|
8091
|
+
...(input.AutomaticRenewal !== undefined &&
|
|
8092
|
+
input.AutomaticRenewal !== null && { automaticRenewal: input.AutomaticRenewal }),
|
|
8093
|
+
...(input.RenewalCount !== undefined && input.RenewalCount !== null && { renewalCount: input.RenewalCount }),
|
|
8094
|
+
};
|
|
8095
|
+
};
|
|
8015
8096
|
const serializeAws_restJson1RtmpCaptionInfoDestinationSettings = (input, context) => {
|
|
8016
8097
|
return {};
|
|
8017
8098
|
};
|
|
@@ -9273,6 +9354,7 @@ const deserializeAws_restJson1BurnInDestinationSettings = (output, context) => {
|
|
|
9273
9354
|
};
|
|
9274
9355
|
const deserializeAws_restJson1CaptionDescription = (output, context) => {
|
|
9275
9356
|
return {
|
|
9357
|
+
Accessibility: (0, smithy_client_1.expectString)(output.accessibility),
|
|
9276
9358
|
CaptionSelectorName: (0, smithy_client_1.expectString)(output.captionSelectorName),
|
|
9277
9359
|
DestinationSettings: output.destinationSettings !== undefined && output.destinationSettings !== null
|
|
9278
9360
|
? deserializeAws_restJson1CaptionDestinationSettings(output.destinationSettings, context)
|
|
@@ -10829,6 +10911,12 @@ const deserializeAws_restJson1RemixSettings = (output, context) => {
|
|
|
10829
10911
|
ChannelsOut: (0, smithy_client_1.expectInt32)(output.channelsOut),
|
|
10830
10912
|
};
|
|
10831
10913
|
};
|
|
10914
|
+
const deserializeAws_restJson1RenewalSettings = (output, context) => {
|
|
10915
|
+
return {
|
|
10916
|
+
AutomaticRenewal: (0, smithy_client_1.expectString)(output.automaticRenewal),
|
|
10917
|
+
RenewalCount: (0, smithy_client_1.expectInt32)(output.renewalCount),
|
|
10918
|
+
};
|
|
10919
|
+
};
|
|
10832
10920
|
const deserializeAws_restJson1Reservation = (output, context) => {
|
|
10833
10921
|
return {
|
|
10834
10922
|
Arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -10843,6 +10931,9 @@ const deserializeAws_restJson1Reservation = (output, context) => {
|
|
|
10843
10931
|
OfferingId: (0, smithy_client_1.expectString)(output.offeringId),
|
|
10844
10932
|
OfferingType: (0, smithy_client_1.expectString)(output.offeringType),
|
|
10845
10933
|
Region: (0, smithy_client_1.expectString)(output.region),
|
|
10934
|
+
RenewalSettings: output.renewalSettings !== undefined && output.renewalSettings !== null
|
|
10935
|
+
? deserializeAws_restJson1RenewalSettings(output.renewalSettings, context)
|
|
10936
|
+
: undefined,
|
|
10846
10937
|
ReservationId: (0, smithy_client_1.expectString)(output.reservationId),
|
|
10847
10938
|
ResourceSpecification: output.resourceSpecification !== undefined && output.resourceSpecification !== null
|
|
10848
10939
|
? deserializeAws_restJson1ReservationResourceSpecification(output.resourceSpecification, context)
|
|
@@ -11334,5 +11425,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
11334
11425
|
if (data["__type"] !== undefined) {
|
|
11335
11426
|
return sanitizeErrorCode(data["__type"]);
|
|
11336
11427
|
}
|
|
11337
|
-
return "";
|
|
11338
11428
|
};
|