@aws-sdk/client-gamelift 3.504.0 → 3.507.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/dist-cjs/index.js CHANGED
@@ -2019,7 +2019,7 @@ var se_ValidateMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (input,
2019
2019
  }, "se_ValidateMatchmakingRuleSetCommand");
2020
2020
  var de_AcceptMatchCommand = /* @__PURE__ */ __name(async (output, context) => {
2021
2021
  if (output.statusCode >= 300) {
2022
- return de_AcceptMatchCommandError(output, context);
2022
+ return de_CommandError(output, context);
2023
2023
  }
2024
2024
  const data = await parseBody(output.body, context);
2025
2025
  let contents = {};
@@ -2030,37 +2030,9 @@ var de_AcceptMatchCommand = /* @__PURE__ */ __name(async (output, context) => {
2030
2030
  };
2031
2031
  return response;
2032
2032
  }, "de_AcceptMatchCommand");
2033
- var de_AcceptMatchCommandError = /* @__PURE__ */ __name(async (output, context) => {
2034
- const parsedOutput = {
2035
- ...output,
2036
- body: await parseErrorBody(output.body, context)
2037
- };
2038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
- switch (errorCode) {
2040
- case "InternalServiceException":
2041
- case "com.amazonaws.gamelift#InternalServiceException":
2042
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2043
- case "InvalidRequestException":
2044
- case "com.amazonaws.gamelift#InvalidRequestException":
2045
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2046
- case "NotFoundException":
2047
- case "com.amazonaws.gamelift#NotFoundException":
2048
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2049
- case "UnsupportedRegionException":
2050
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2051
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2052
- default:
2053
- const parsedBody = parsedOutput.body;
2054
- return throwDefaultError({
2055
- output,
2056
- parsedBody,
2057
- errorCode
2058
- });
2059
- }
2060
- }, "de_AcceptMatchCommandError");
2061
2033
  var de_ClaimGameServerCommand = /* @__PURE__ */ __name(async (output, context) => {
2062
2034
  if (output.statusCode >= 300) {
2063
- return de_ClaimGameServerCommandError(output, context);
2035
+ return de_CommandError(output, context);
2064
2036
  }
2065
2037
  const data = await parseBody(output.body, context);
2066
2038
  let contents = {};
@@ -2071,43 +2043,9 @@ var de_ClaimGameServerCommand = /* @__PURE__ */ __name(async (output, context) =
2071
2043
  };
2072
2044
  return response;
2073
2045
  }, "de_ClaimGameServerCommand");
2074
- var de_ClaimGameServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
2075
- const parsedOutput = {
2076
- ...output,
2077
- body: await parseErrorBody(output.body, context)
2078
- };
2079
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2080
- switch (errorCode) {
2081
- case "ConflictException":
2082
- case "com.amazonaws.gamelift#ConflictException":
2083
- throw await de_ConflictExceptionRes(parsedOutput, context);
2084
- case "InternalServiceException":
2085
- case "com.amazonaws.gamelift#InternalServiceException":
2086
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2087
- case "InvalidRequestException":
2088
- case "com.amazonaws.gamelift#InvalidRequestException":
2089
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2090
- case "NotFoundException":
2091
- case "com.amazonaws.gamelift#NotFoundException":
2092
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2093
- case "OutOfCapacityException":
2094
- case "com.amazonaws.gamelift#OutOfCapacityException":
2095
- throw await de_OutOfCapacityExceptionRes(parsedOutput, context);
2096
- case "UnauthorizedException":
2097
- case "com.amazonaws.gamelift#UnauthorizedException":
2098
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2099
- default:
2100
- const parsedBody = parsedOutput.body;
2101
- return throwDefaultError({
2102
- output,
2103
- parsedBody,
2104
- errorCode
2105
- });
2106
- }
2107
- }, "de_ClaimGameServerCommandError");
2108
2046
  var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
2109
2047
  if (output.statusCode >= 300) {
2110
- return de_CreateAliasCommandError(output, context);
2048
+ return de_CommandError(output, context);
2111
2049
  }
2112
2050
  const data = await parseBody(output.body, context);
2113
2051
  let contents = {};
@@ -2118,43 +2056,9 @@ var de_CreateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
2118
2056
  };
2119
2057
  return response;
2120
2058
  }, "de_CreateAliasCommand");
2121
- var de_CreateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
2122
- const parsedOutput = {
2123
- ...output,
2124
- body: await parseErrorBody(output.body, context)
2125
- };
2126
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2127
- switch (errorCode) {
2128
- case "ConflictException":
2129
- case "com.amazonaws.gamelift#ConflictException":
2130
- throw await de_ConflictExceptionRes(parsedOutput, context);
2131
- case "InternalServiceException":
2132
- case "com.amazonaws.gamelift#InternalServiceException":
2133
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2134
- case "InvalidRequestException":
2135
- case "com.amazonaws.gamelift#InvalidRequestException":
2136
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2137
- case "LimitExceededException":
2138
- case "com.amazonaws.gamelift#LimitExceededException":
2139
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2140
- case "TaggingFailedException":
2141
- case "com.amazonaws.gamelift#TaggingFailedException":
2142
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2143
- case "UnauthorizedException":
2144
- case "com.amazonaws.gamelift#UnauthorizedException":
2145
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2146
- default:
2147
- const parsedBody = parsedOutput.body;
2148
- return throwDefaultError({
2149
- output,
2150
- parsedBody,
2151
- errorCode
2152
- });
2153
- }
2154
- }, "de_CreateAliasCommandError");
2155
2059
  var de_CreateBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
2156
2060
  if (output.statusCode >= 300) {
2157
- return de_CreateBuildCommandError(output, context);
2061
+ return de_CommandError(output, context);
2158
2062
  }
2159
2063
  const data = await parseBody(output.body, context);
2160
2064
  let contents = {};
@@ -2165,40 +2069,9 @@ var de_CreateBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
2165
2069
  };
2166
2070
  return response;
2167
2071
  }, "de_CreateBuildCommand");
2168
- var de_CreateBuildCommandError = /* @__PURE__ */ __name(async (output, context) => {
2169
- const parsedOutput = {
2170
- ...output,
2171
- body: await parseErrorBody(output.body, context)
2172
- };
2173
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2174
- switch (errorCode) {
2175
- case "ConflictException":
2176
- case "com.amazonaws.gamelift#ConflictException":
2177
- throw await de_ConflictExceptionRes(parsedOutput, context);
2178
- case "InternalServiceException":
2179
- case "com.amazonaws.gamelift#InternalServiceException":
2180
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2181
- case "InvalidRequestException":
2182
- case "com.amazonaws.gamelift#InvalidRequestException":
2183
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2184
- case "TaggingFailedException":
2185
- case "com.amazonaws.gamelift#TaggingFailedException":
2186
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2187
- case "UnauthorizedException":
2188
- case "com.amazonaws.gamelift#UnauthorizedException":
2189
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2190
- default:
2191
- const parsedBody = parsedOutput.body;
2192
- return throwDefaultError({
2193
- output,
2194
- parsedBody,
2195
- errorCode
2196
- });
2197
- }
2198
- }, "de_CreateBuildCommandError");
2199
2072
  var de_CreateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
2200
2073
  if (output.statusCode >= 300) {
2201
- return de_CreateFleetCommandError(output, context);
2074
+ return de_CommandError(output, context);
2202
2075
  }
2203
2076
  const data = await parseBody(output.body, context);
2204
2077
  let contents = {};
@@ -2209,49 +2082,9 @@ var de_CreateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
2209
2082
  };
2210
2083
  return response;
2211
2084
  }, "de_CreateFleetCommand");
2212
- var de_CreateFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2213
- const parsedOutput = {
2214
- ...output,
2215
- body: await parseErrorBody(output.body, context)
2216
- };
2217
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2218
- switch (errorCode) {
2219
- case "ConflictException":
2220
- case "com.amazonaws.gamelift#ConflictException":
2221
- throw await de_ConflictExceptionRes(parsedOutput, context);
2222
- case "InternalServiceException":
2223
- case "com.amazonaws.gamelift#InternalServiceException":
2224
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2225
- case "InvalidRequestException":
2226
- case "com.amazonaws.gamelift#InvalidRequestException":
2227
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2228
- case "LimitExceededException":
2229
- case "com.amazonaws.gamelift#LimitExceededException":
2230
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2231
- case "NotFoundException":
2232
- case "com.amazonaws.gamelift#NotFoundException":
2233
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2234
- case "TaggingFailedException":
2235
- case "com.amazonaws.gamelift#TaggingFailedException":
2236
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2237
- case "UnauthorizedException":
2238
- case "com.amazonaws.gamelift#UnauthorizedException":
2239
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2240
- case "UnsupportedRegionException":
2241
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2242
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2243
- default:
2244
- const parsedBody = parsedOutput.body;
2245
- return throwDefaultError({
2246
- output,
2247
- parsedBody,
2248
- errorCode
2249
- });
2250
- }
2251
- }, "de_CreateFleetCommandError");
2252
2085
  var de_CreateFleetLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2253
2086
  if (output.statusCode >= 300) {
2254
- return de_CreateFleetLocationsCommandError(output, context);
2087
+ return de_CommandError(output, context);
2255
2088
  }
2256
2089
  const data = await parseBody(output.body, context);
2257
2090
  let contents = {};
@@ -2262,49 +2095,9 @@ var de_CreateFleetLocationsCommand = /* @__PURE__ */ __name(async (output, conte
2262
2095
  };
2263
2096
  return response;
2264
2097
  }, "de_CreateFleetLocationsCommand");
2265
- var de_CreateFleetLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2266
- const parsedOutput = {
2267
- ...output,
2268
- body: await parseErrorBody(output.body, context)
2269
- };
2270
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2271
- switch (errorCode) {
2272
- case "ConflictException":
2273
- case "com.amazonaws.gamelift#ConflictException":
2274
- throw await de_ConflictExceptionRes(parsedOutput, context);
2275
- case "InternalServiceException":
2276
- case "com.amazonaws.gamelift#InternalServiceException":
2277
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2278
- case "InvalidFleetStatusException":
2279
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
2280
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
2281
- case "InvalidRequestException":
2282
- case "com.amazonaws.gamelift#InvalidRequestException":
2283
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2284
- case "LimitExceededException":
2285
- case "com.amazonaws.gamelift#LimitExceededException":
2286
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2287
- case "NotFoundException":
2288
- case "com.amazonaws.gamelift#NotFoundException":
2289
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2290
- case "UnauthorizedException":
2291
- case "com.amazonaws.gamelift#UnauthorizedException":
2292
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2293
- case "UnsupportedRegionException":
2294
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2295
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2296
- default:
2297
- const parsedBody = parsedOutput.body;
2298
- return throwDefaultError({
2299
- output,
2300
- parsedBody,
2301
- errorCode
2302
- });
2303
- }
2304
- }, "de_CreateFleetLocationsCommandError");
2305
2098
  var de_CreateGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2306
2099
  if (output.statusCode >= 300) {
2307
- return de_CreateGameServerGroupCommandError(output, context);
2100
+ return de_CommandError(output, context);
2308
2101
  }
2309
2102
  const data = await parseBody(output.body, context);
2310
2103
  let contents = {};
@@ -2315,40 +2108,9 @@ var de_CreateGameServerGroupCommand = /* @__PURE__ */ __name(async (output, cont
2315
2108
  };
2316
2109
  return response;
2317
2110
  }, "de_CreateGameServerGroupCommand");
2318
- var de_CreateGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2319
- const parsedOutput = {
2320
- ...output,
2321
- body: await parseErrorBody(output.body, context)
2322
- };
2323
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2324
- switch (errorCode) {
2325
- case "ConflictException":
2326
- case "com.amazonaws.gamelift#ConflictException":
2327
- throw await de_ConflictExceptionRes(parsedOutput, context);
2328
- case "InternalServiceException":
2329
- case "com.amazonaws.gamelift#InternalServiceException":
2330
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2331
- case "InvalidRequestException":
2332
- case "com.amazonaws.gamelift#InvalidRequestException":
2333
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2334
- case "LimitExceededException":
2335
- case "com.amazonaws.gamelift#LimitExceededException":
2336
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2337
- case "UnauthorizedException":
2338
- case "com.amazonaws.gamelift#UnauthorizedException":
2339
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2340
- default:
2341
- const parsedBody = parsedOutput.body;
2342
- return throwDefaultError({
2343
- output,
2344
- parsedBody,
2345
- errorCode
2346
- });
2347
- }
2348
- }, "de_CreateGameServerGroupCommandError");
2349
2111
  var de_CreateGameSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2350
2112
  if (output.statusCode >= 300) {
2351
- return de_CreateGameSessionCommandError(output, context);
2113
+ return de_CommandError(output, context);
2352
2114
  }
2353
2115
  const data = await parseBody(output.body, context);
2354
2116
  let contents = {};
@@ -2359,105 +2121,22 @@ var de_CreateGameSessionCommand = /* @__PURE__ */ __name(async (output, context)
2359
2121
  };
2360
2122
  return response;
2361
2123
  }, "de_CreateGameSessionCommand");
2362
- var de_CreateGameSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2363
- const parsedOutput = {
2364
- ...output,
2365
- body: await parseErrorBody(output.body, context)
2366
- };
2367
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2368
- switch (errorCode) {
2369
- case "ConflictException":
2370
- case "com.amazonaws.gamelift#ConflictException":
2371
- throw await de_ConflictExceptionRes(parsedOutput, context);
2372
- case "FleetCapacityExceededException":
2373
- case "com.amazonaws.gamelift#FleetCapacityExceededException":
2374
- throw await de_FleetCapacityExceededExceptionRes(parsedOutput, context);
2375
- case "IdempotentParameterMismatchException":
2376
- case "com.amazonaws.gamelift#IdempotentParameterMismatchException":
2377
- throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
2378
- case "InternalServiceException":
2379
- case "com.amazonaws.gamelift#InternalServiceException":
2380
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2381
- case "InvalidFleetStatusException":
2382
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
2383
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
2384
- case "InvalidRequestException":
2385
- case "com.amazonaws.gamelift#InvalidRequestException":
2386
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2387
- case "LimitExceededException":
2388
- case "com.amazonaws.gamelift#LimitExceededException":
2389
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2390
- case "NotFoundException":
2391
- case "com.amazonaws.gamelift#NotFoundException":
2392
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2393
- case "TerminalRoutingStrategyException":
2394
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
2395
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
2396
- case "UnauthorizedException":
2397
- case "com.amazonaws.gamelift#UnauthorizedException":
2398
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2399
- case "UnsupportedRegionException":
2400
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2401
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2402
- default:
2403
- const parsedBody = parsedOutput.body;
2404
- return throwDefaultError({
2405
- output,
2406
- parsedBody,
2407
- errorCode
2408
- });
2409
- }
2410
- }, "de_CreateGameSessionCommandError");
2411
- var de_CreateGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
2412
- if (output.statusCode >= 300) {
2413
- return de_CreateGameSessionQueueCommandError(output, context);
2414
- }
2415
- const data = await parseBody(output.body, context);
2416
- let contents = {};
2417
- contents = (0, import_smithy_client._json)(data);
2418
- const response = {
2419
- $metadata: deserializeMetadata(output),
2420
- ...contents
2124
+ var de_CreateGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
2125
+ if (output.statusCode >= 300) {
2126
+ return de_CommandError(output, context);
2127
+ }
2128
+ const data = await parseBody(output.body, context);
2129
+ let contents = {};
2130
+ contents = (0, import_smithy_client._json)(data);
2131
+ const response = {
2132
+ $metadata: deserializeMetadata(output),
2133
+ ...contents
2421
2134
  };
2422
2135
  return response;
2423
2136
  }, "de_CreateGameSessionQueueCommand");
2424
- var de_CreateGameSessionQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
2425
- const parsedOutput = {
2426
- ...output,
2427
- body: await parseErrorBody(output.body, context)
2428
- };
2429
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2430
- switch (errorCode) {
2431
- case "InternalServiceException":
2432
- case "com.amazonaws.gamelift#InternalServiceException":
2433
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2434
- case "InvalidRequestException":
2435
- case "com.amazonaws.gamelift#InvalidRequestException":
2436
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2437
- case "LimitExceededException":
2438
- case "com.amazonaws.gamelift#LimitExceededException":
2439
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2440
- case "NotFoundException":
2441
- case "com.amazonaws.gamelift#NotFoundException":
2442
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2443
- case "TaggingFailedException":
2444
- case "com.amazonaws.gamelift#TaggingFailedException":
2445
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2446
- case "UnauthorizedException":
2447
- case "com.amazonaws.gamelift#UnauthorizedException":
2448
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2449
- default:
2450
- const parsedBody = parsedOutput.body;
2451
- return throwDefaultError({
2452
- output,
2453
- parsedBody,
2454
- errorCode
2455
- });
2456
- }
2457
- }, "de_CreateGameSessionQueueCommandError");
2458
2137
  var de_CreateLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
2459
2138
  if (output.statusCode >= 300) {
2460
- return de_CreateLocationCommandError(output, context);
2139
+ return de_CommandError(output, context);
2461
2140
  }
2462
2141
  const data = await parseBody(output.body, context);
2463
2142
  let contents = {};
@@ -2468,43 +2147,9 @@ var de_CreateLocationCommand = /* @__PURE__ */ __name(async (output, context) =>
2468
2147
  };
2469
2148
  return response;
2470
2149
  }, "de_CreateLocationCommand");
2471
- var de_CreateLocationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2472
- const parsedOutput = {
2473
- ...output,
2474
- body: await parseErrorBody(output.body, context)
2475
- };
2476
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2477
- switch (errorCode) {
2478
- case "ConflictException":
2479
- case "com.amazonaws.gamelift#ConflictException":
2480
- throw await de_ConflictExceptionRes(parsedOutput, context);
2481
- case "InternalServiceException":
2482
- case "com.amazonaws.gamelift#InternalServiceException":
2483
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2484
- case "InvalidRequestException":
2485
- case "com.amazonaws.gamelift#InvalidRequestException":
2486
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2487
- case "LimitExceededException":
2488
- case "com.amazonaws.gamelift#LimitExceededException":
2489
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2490
- case "TaggingFailedException":
2491
- case "com.amazonaws.gamelift#TaggingFailedException":
2492
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2493
- case "UnauthorizedException":
2494
- case "com.amazonaws.gamelift#UnauthorizedException":
2495
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2496
- default:
2497
- const parsedBody = parsedOutput.body;
2498
- return throwDefaultError({
2499
- output,
2500
- parsedBody,
2501
- errorCode
2502
- });
2503
- }
2504
- }, "de_CreateLocationCommandError");
2505
2150
  var de_CreateMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2506
2151
  if (output.statusCode >= 300) {
2507
- return de_CreateMatchmakingConfigurationCommandError(output, context);
2152
+ return de_CommandError(output, context);
2508
2153
  }
2509
2154
  const data = await parseBody(output.body, context);
2510
2155
  let contents = {};
@@ -2515,43 +2160,9 @@ var de_CreateMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (out
2515
2160
  };
2516
2161
  return response;
2517
2162
  }, "de_CreateMatchmakingConfigurationCommand");
2518
- var de_CreateMatchmakingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2519
- const parsedOutput = {
2520
- ...output,
2521
- body: await parseErrorBody(output.body, context)
2522
- };
2523
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2524
- switch (errorCode) {
2525
- case "InternalServiceException":
2526
- case "com.amazonaws.gamelift#InternalServiceException":
2527
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2528
- case "InvalidRequestException":
2529
- case "com.amazonaws.gamelift#InvalidRequestException":
2530
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2531
- case "LimitExceededException":
2532
- case "com.amazonaws.gamelift#LimitExceededException":
2533
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2534
- case "NotFoundException":
2535
- case "com.amazonaws.gamelift#NotFoundException":
2536
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2537
- case "TaggingFailedException":
2538
- case "com.amazonaws.gamelift#TaggingFailedException":
2539
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2540
- case "UnsupportedRegionException":
2541
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2542
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2543
- default:
2544
- const parsedBody = parsedOutput.body;
2545
- return throwDefaultError({
2546
- output,
2547
- parsedBody,
2548
- errorCode
2549
- });
2550
- }
2551
- }, "de_CreateMatchmakingConfigurationCommandError");
2552
2163
  var de_CreateMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2553
2164
  if (output.statusCode >= 300) {
2554
- return de_CreateMatchmakingRuleSetCommandError(output, context);
2165
+ return de_CommandError(output, context);
2555
2166
  }
2556
2167
  const data = await parseBody(output.body, context);
2557
2168
  let contents = {};
@@ -2562,40 +2173,9 @@ var de_CreateMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output, c
2562
2173
  };
2563
2174
  return response;
2564
2175
  }, "de_CreateMatchmakingRuleSetCommand");
2565
- var de_CreateMatchmakingRuleSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2566
- const parsedOutput = {
2567
- ...output,
2568
- body: await parseErrorBody(output.body, context)
2569
- };
2570
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2571
- switch (errorCode) {
2572
- case "InternalServiceException":
2573
- case "com.amazonaws.gamelift#InternalServiceException":
2574
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2575
- case "InvalidRequestException":
2576
- case "com.amazonaws.gamelift#InvalidRequestException":
2577
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2578
- case "LimitExceededException":
2579
- case "com.amazonaws.gamelift#LimitExceededException":
2580
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2581
- case "TaggingFailedException":
2582
- case "com.amazonaws.gamelift#TaggingFailedException":
2583
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2584
- case "UnsupportedRegionException":
2585
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2586
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2587
- default:
2588
- const parsedBody = parsedOutput.body;
2589
- return throwDefaultError({
2590
- output,
2591
- parsedBody,
2592
- errorCode
2593
- });
2594
- }
2595
- }, "de_CreateMatchmakingRuleSetCommandError");
2596
2176
  var de_CreatePlayerSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
2597
2177
  if (output.statusCode >= 300) {
2598
- return de_CreatePlayerSessionCommandError(output, context);
2178
+ return de_CommandError(output, context);
2599
2179
  }
2600
2180
  const data = await parseBody(output.body, context);
2601
2181
  let contents = {};
@@ -2606,46 +2186,9 @@ var de_CreatePlayerSessionCommand = /* @__PURE__ */ __name(async (output, contex
2606
2186
  };
2607
2187
  return response;
2608
2188
  }, "de_CreatePlayerSessionCommand");
2609
- var de_CreatePlayerSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2610
- const parsedOutput = {
2611
- ...output,
2612
- body: await parseErrorBody(output.body, context)
2613
- };
2614
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2615
- switch (errorCode) {
2616
- case "GameSessionFullException":
2617
- case "com.amazonaws.gamelift#GameSessionFullException":
2618
- throw await de_GameSessionFullExceptionRes(parsedOutput, context);
2619
- case "InternalServiceException":
2620
- case "com.amazonaws.gamelift#InternalServiceException":
2621
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2622
- case "InvalidGameSessionStatusException":
2623
- case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
2624
- throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
2625
- case "InvalidRequestException":
2626
- case "com.amazonaws.gamelift#InvalidRequestException":
2627
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2628
- case "NotFoundException":
2629
- case "com.amazonaws.gamelift#NotFoundException":
2630
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2631
- case "TerminalRoutingStrategyException":
2632
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
2633
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
2634
- case "UnauthorizedException":
2635
- case "com.amazonaws.gamelift#UnauthorizedException":
2636
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2637
- default:
2638
- const parsedBody = parsedOutput.body;
2639
- return throwDefaultError({
2640
- output,
2641
- parsedBody,
2642
- errorCode
2643
- });
2644
- }
2645
- }, "de_CreatePlayerSessionCommandError");
2646
2189
  var de_CreatePlayerSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2647
2190
  if (output.statusCode >= 300) {
2648
- return de_CreatePlayerSessionsCommandError(output, context);
2191
+ return de_CommandError(output, context);
2649
2192
  }
2650
2193
  const data = await parseBody(output.body, context);
2651
2194
  let contents = {};
@@ -2656,46 +2199,9 @@ var de_CreatePlayerSessionsCommand = /* @__PURE__ */ __name(async (output, conte
2656
2199
  };
2657
2200
  return response;
2658
2201
  }, "de_CreatePlayerSessionsCommand");
2659
- var de_CreatePlayerSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2660
- const parsedOutput = {
2661
- ...output,
2662
- body: await parseErrorBody(output.body, context)
2663
- };
2664
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2665
- switch (errorCode) {
2666
- case "GameSessionFullException":
2667
- case "com.amazonaws.gamelift#GameSessionFullException":
2668
- throw await de_GameSessionFullExceptionRes(parsedOutput, context);
2669
- case "InternalServiceException":
2670
- case "com.amazonaws.gamelift#InternalServiceException":
2671
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2672
- case "InvalidGameSessionStatusException":
2673
- case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
2674
- throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
2675
- case "InvalidRequestException":
2676
- case "com.amazonaws.gamelift#InvalidRequestException":
2677
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2678
- case "NotFoundException":
2679
- case "com.amazonaws.gamelift#NotFoundException":
2680
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2681
- case "TerminalRoutingStrategyException":
2682
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
2683
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
2684
- case "UnauthorizedException":
2685
- case "com.amazonaws.gamelift#UnauthorizedException":
2686
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2687
- default:
2688
- const parsedBody = parsedOutput.body;
2689
- return throwDefaultError({
2690
- output,
2691
- parsedBody,
2692
- errorCode
2693
- });
2694
- }
2695
- }, "de_CreatePlayerSessionsCommandError");
2696
2202
  var de_CreateScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
2697
2203
  if (output.statusCode >= 300) {
2698
- return de_CreateScriptCommandError(output, context);
2204
+ return de_CommandError(output, context);
2699
2205
  }
2700
2206
  const data = await parseBody(output.body, context);
2701
2207
  let contents = {};
@@ -2706,81 +2212,22 @@ var de_CreateScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
2706
2212
  };
2707
2213
  return response;
2708
2214
  }, "de_CreateScriptCommand");
2709
- var de_CreateScriptCommandError = /* @__PURE__ */ __name(async (output, context) => {
2710
- const parsedOutput = {
2711
- ...output,
2712
- body: await parseErrorBody(output.body, context)
2713
- };
2714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2715
- switch (errorCode) {
2716
- case "ConflictException":
2717
- case "com.amazonaws.gamelift#ConflictException":
2718
- throw await de_ConflictExceptionRes(parsedOutput, context);
2719
- case "InternalServiceException":
2720
- case "com.amazonaws.gamelift#InternalServiceException":
2721
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2722
- case "InvalidRequestException":
2723
- case "com.amazonaws.gamelift#InvalidRequestException":
2724
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2725
- case "TaggingFailedException":
2726
- case "com.amazonaws.gamelift#TaggingFailedException":
2727
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2728
- case "UnauthorizedException":
2729
- case "com.amazonaws.gamelift#UnauthorizedException":
2730
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2731
- default:
2732
- const parsedBody = parsedOutput.body;
2733
- return throwDefaultError({
2734
- output,
2735
- parsedBody,
2736
- errorCode
2737
- });
2738
- }
2739
- }, "de_CreateScriptCommandError");
2740
- var de_CreateVpcPeeringAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
2741
- if (output.statusCode >= 300) {
2742
- return de_CreateVpcPeeringAuthorizationCommandError(output, context);
2743
- }
2744
- const data = await parseBody(output.body, context);
2745
- let contents = {};
2746
- contents = de_CreateVpcPeeringAuthorizationOutput(data, context);
2747
- const response = {
2748
- $metadata: deserializeMetadata(output),
2749
- ...contents
2215
+ var de_CreateVpcPeeringAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
2216
+ if (output.statusCode >= 300) {
2217
+ return de_CommandError(output, context);
2218
+ }
2219
+ const data = await parseBody(output.body, context);
2220
+ let contents = {};
2221
+ contents = de_CreateVpcPeeringAuthorizationOutput(data, context);
2222
+ const response = {
2223
+ $metadata: deserializeMetadata(output),
2224
+ ...contents
2750
2225
  };
2751
2226
  return response;
2752
2227
  }, "de_CreateVpcPeeringAuthorizationCommand");
2753
- var de_CreateVpcPeeringAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2754
- const parsedOutput = {
2755
- ...output,
2756
- body: await parseErrorBody(output.body, context)
2757
- };
2758
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2759
- switch (errorCode) {
2760
- case "InternalServiceException":
2761
- case "com.amazonaws.gamelift#InternalServiceException":
2762
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2763
- case "InvalidRequestException":
2764
- case "com.amazonaws.gamelift#InvalidRequestException":
2765
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2766
- case "NotFoundException":
2767
- case "com.amazonaws.gamelift#NotFoundException":
2768
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2769
- case "UnauthorizedException":
2770
- case "com.amazonaws.gamelift#UnauthorizedException":
2771
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2772
- default:
2773
- const parsedBody = parsedOutput.body;
2774
- return throwDefaultError({
2775
- output,
2776
- parsedBody,
2777
- errorCode
2778
- });
2779
- }
2780
- }, "de_CreateVpcPeeringAuthorizationCommandError");
2781
2228
  var de_CreateVpcPeeringConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2782
2229
  if (output.statusCode >= 300) {
2783
- return de_CreateVpcPeeringConnectionCommandError(output, context);
2230
+ return de_CommandError(output, context);
2784
2231
  }
2785
2232
  const data = await parseBody(output.body, context);
2786
2233
  let contents = {};
@@ -2791,37 +2238,9 @@ var de_CreateVpcPeeringConnectionCommand = /* @__PURE__ */ __name(async (output,
2791
2238
  };
2792
2239
  return response;
2793
2240
  }, "de_CreateVpcPeeringConnectionCommand");
2794
- var de_CreateVpcPeeringConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2795
- const parsedOutput = {
2796
- ...output,
2797
- body: await parseErrorBody(output.body, context)
2798
- };
2799
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2800
- switch (errorCode) {
2801
- case "InternalServiceException":
2802
- case "com.amazonaws.gamelift#InternalServiceException":
2803
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2804
- case "InvalidRequestException":
2805
- case "com.amazonaws.gamelift#InvalidRequestException":
2806
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2807
- case "NotFoundException":
2808
- case "com.amazonaws.gamelift#NotFoundException":
2809
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2810
- case "UnauthorizedException":
2811
- case "com.amazonaws.gamelift#UnauthorizedException":
2812
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2813
- default:
2814
- const parsedBody = parsedOutput.body;
2815
- return throwDefaultError({
2816
- output,
2817
- parsedBody,
2818
- errorCode
2819
- });
2820
- }
2821
- }, "de_CreateVpcPeeringConnectionCommandError");
2822
2241
  var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
2823
2242
  if (output.statusCode >= 300) {
2824
- return de_DeleteAliasCommandError(output, context);
2243
+ return de_CommandError(output, context);
2825
2244
  }
2826
2245
  await (0, import_smithy_client.collectBody)(output.body, context);
2827
2246
  const response = {
@@ -2829,40 +2248,9 @@ var de_DeleteAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
2829
2248
  };
2830
2249
  return response;
2831
2250
  }, "de_DeleteAliasCommand");
2832
- var de_DeleteAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
2833
- const parsedOutput = {
2834
- ...output,
2835
- body: await parseErrorBody(output.body, context)
2836
- };
2837
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2838
- switch (errorCode) {
2839
- case "InternalServiceException":
2840
- case "com.amazonaws.gamelift#InternalServiceException":
2841
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2842
- case "InvalidRequestException":
2843
- case "com.amazonaws.gamelift#InvalidRequestException":
2844
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2845
- case "NotFoundException":
2846
- case "com.amazonaws.gamelift#NotFoundException":
2847
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2848
- case "TaggingFailedException":
2849
- case "com.amazonaws.gamelift#TaggingFailedException":
2850
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2851
- case "UnauthorizedException":
2852
- case "com.amazonaws.gamelift#UnauthorizedException":
2853
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2854
- default:
2855
- const parsedBody = parsedOutput.body;
2856
- return throwDefaultError({
2857
- output,
2858
- parsedBody,
2859
- errorCode
2860
- });
2861
- }
2862
- }, "de_DeleteAliasCommandError");
2863
2251
  var de_DeleteBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
2864
2252
  if (output.statusCode >= 300) {
2865
- return de_DeleteBuildCommandError(output, context);
2253
+ return de_CommandError(output, context);
2866
2254
  }
2867
2255
  await (0, import_smithy_client.collectBody)(output.body, context);
2868
2256
  const response = {
@@ -2870,40 +2258,9 @@ var de_DeleteBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
2870
2258
  };
2871
2259
  return response;
2872
2260
  }, "de_DeleteBuildCommand");
2873
- var de_DeleteBuildCommandError = /* @__PURE__ */ __name(async (output, context) => {
2874
- const parsedOutput = {
2875
- ...output,
2876
- body: await parseErrorBody(output.body, context)
2877
- };
2878
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2879
- switch (errorCode) {
2880
- case "InternalServiceException":
2881
- case "com.amazonaws.gamelift#InternalServiceException":
2882
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2883
- case "InvalidRequestException":
2884
- case "com.amazonaws.gamelift#InvalidRequestException":
2885
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2886
- case "NotFoundException":
2887
- case "com.amazonaws.gamelift#NotFoundException":
2888
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2889
- case "TaggingFailedException":
2890
- case "com.amazonaws.gamelift#TaggingFailedException":
2891
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2892
- case "UnauthorizedException":
2893
- case "com.amazonaws.gamelift#UnauthorizedException":
2894
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2895
- default:
2896
- const parsedBody = parsedOutput.body;
2897
- return throwDefaultError({
2898
- output,
2899
- parsedBody,
2900
- errorCode
2901
- });
2902
- }
2903
- }, "de_DeleteBuildCommandError");
2904
2261
  var de_DeleteFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
2905
2262
  if (output.statusCode >= 300) {
2906
- return de_DeleteFleetCommandError(output, context);
2263
+ return de_CommandError(output, context);
2907
2264
  }
2908
2265
  await (0, import_smithy_client.collectBody)(output.body, context);
2909
2266
  const response = {
@@ -2911,43 +2268,9 @@ var de_DeleteFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
2911
2268
  };
2912
2269
  return response;
2913
2270
  }, "de_DeleteFleetCommand");
2914
- var de_DeleteFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2915
- const parsedOutput = {
2916
- ...output,
2917
- body: await parseErrorBody(output.body, context)
2918
- };
2919
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2920
- switch (errorCode) {
2921
- case "InternalServiceException":
2922
- case "com.amazonaws.gamelift#InternalServiceException":
2923
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2924
- case "InvalidFleetStatusException":
2925
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
2926
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
2927
- case "InvalidRequestException":
2928
- case "com.amazonaws.gamelift#InvalidRequestException":
2929
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2930
- case "NotFoundException":
2931
- case "com.amazonaws.gamelift#NotFoundException":
2932
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2933
- case "TaggingFailedException":
2934
- case "com.amazonaws.gamelift#TaggingFailedException":
2935
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
2936
- case "UnauthorizedException":
2937
- case "com.amazonaws.gamelift#UnauthorizedException":
2938
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2939
- default:
2940
- const parsedBody = parsedOutput.body;
2941
- return throwDefaultError({
2942
- output,
2943
- parsedBody,
2944
- errorCode
2945
- });
2946
- }
2947
- }, "de_DeleteFleetCommandError");
2948
2271
  var de_DeleteFleetLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2949
2272
  if (output.statusCode >= 300) {
2950
- return de_DeleteFleetLocationsCommandError(output, context);
2273
+ return de_CommandError(output, context);
2951
2274
  }
2952
2275
  const data = await parseBody(output.body, context);
2953
2276
  let contents = {};
@@ -2958,40 +2281,9 @@ var de_DeleteFleetLocationsCommand = /* @__PURE__ */ __name(async (output, conte
2958
2281
  };
2959
2282
  return response;
2960
2283
  }, "de_DeleteFleetLocationsCommand");
2961
- var de_DeleteFleetLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2962
- const parsedOutput = {
2963
- ...output,
2964
- body: await parseErrorBody(output.body, context)
2965
- };
2966
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2967
- switch (errorCode) {
2968
- case "InternalServiceException":
2969
- case "com.amazonaws.gamelift#InternalServiceException":
2970
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2971
- case "InvalidRequestException":
2972
- case "com.amazonaws.gamelift#InvalidRequestException":
2973
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2974
- case "NotFoundException":
2975
- case "com.amazonaws.gamelift#NotFoundException":
2976
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2977
- case "UnauthorizedException":
2978
- case "com.amazonaws.gamelift#UnauthorizedException":
2979
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
2980
- case "UnsupportedRegionException":
2981
- case "com.amazonaws.gamelift#UnsupportedRegionException":
2982
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
2983
- default:
2984
- const parsedBody = parsedOutput.body;
2985
- return throwDefaultError({
2986
- output,
2987
- parsedBody,
2988
- errorCode
2989
- });
2990
- }
2991
- }, "de_DeleteFleetLocationsCommandError");
2992
2284
  var de_DeleteGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2993
2285
  if (output.statusCode >= 300) {
2994
- return de_DeleteGameServerGroupCommandError(output, context);
2286
+ return de_CommandError(output, context);
2995
2287
  }
2996
2288
  const data = await parseBody(output.body, context);
2997
2289
  let contents = {};
@@ -3002,37 +2294,9 @@ var de_DeleteGameServerGroupCommand = /* @__PURE__ */ __name(async (output, cont
3002
2294
  };
3003
2295
  return response;
3004
2296
  }, "de_DeleteGameServerGroupCommand");
3005
- var de_DeleteGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3006
- const parsedOutput = {
3007
- ...output,
3008
- body: await parseErrorBody(output.body, context)
3009
- };
3010
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3011
- switch (errorCode) {
3012
- case "InternalServiceException":
3013
- case "com.amazonaws.gamelift#InternalServiceException":
3014
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3015
- case "InvalidRequestException":
3016
- case "com.amazonaws.gamelift#InvalidRequestException":
3017
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3018
- case "NotFoundException":
3019
- case "com.amazonaws.gamelift#NotFoundException":
3020
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3021
- case "UnauthorizedException":
3022
- case "com.amazonaws.gamelift#UnauthorizedException":
3023
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3024
- default:
3025
- const parsedBody = parsedOutput.body;
3026
- return throwDefaultError({
3027
- output,
3028
- parsedBody,
3029
- errorCode
3030
- });
3031
- }
3032
- }, "de_DeleteGameServerGroupCommandError");
3033
2297
  var de_DeleteGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
3034
2298
  if (output.statusCode >= 300) {
3035
- return de_DeleteGameSessionQueueCommandError(output, context);
2299
+ return de_CommandError(output, context);
3036
2300
  }
3037
2301
  const data = await parseBody(output.body, context);
3038
2302
  let contents = {};
@@ -3043,40 +2307,9 @@ var de_DeleteGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, con
3043
2307
  };
3044
2308
  return response;
3045
2309
  }, "de_DeleteGameSessionQueueCommand");
3046
- var de_DeleteGameSessionQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
3047
- const parsedOutput = {
3048
- ...output,
3049
- body: await parseErrorBody(output.body, context)
3050
- };
3051
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3052
- switch (errorCode) {
3053
- case "InternalServiceException":
3054
- case "com.amazonaws.gamelift#InternalServiceException":
3055
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3056
- case "InvalidRequestException":
3057
- case "com.amazonaws.gamelift#InvalidRequestException":
3058
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3059
- case "NotFoundException":
3060
- case "com.amazonaws.gamelift#NotFoundException":
3061
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3062
- case "TaggingFailedException":
3063
- case "com.amazonaws.gamelift#TaggingFailedException":
3064
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
3065
- case "UnauthorizedException":
3066
- case "com.amazonaws.gamelift#UnauthorizedException":
3067
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3068
- default:
3069
- const parsedBody = parsedOutput.body;
3070
- return throwDefaultError({
3071
- output,
3072
- parsedBody,
3073
- errorCode
3074
- });
3075
- }
3076
- }, "de_DeleteGameSessionQueueCommandError");
3077
2310
  var de_DeleteLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
3078
2311
  if (output.statusCode >= 300) {
3079
- return de_DeleteLocationCommandError(output, context);
2312
+ return de_CommandError(output, context);
3080
2313
  }
3081
2314
  const data = await parseBody(output.body, context);
3082
2315
  let contents = {};
@@ -3087,37 +2320,9 @@ var de_DeleteLocationCommand = /* @__PURE__ */ __name(async (output, context) =>
3087
2320
  };
3088
2321
  return response;
3089
2322
  }, "de_DeleteLocationCommand");
3090
- var de_DeleteLocationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3091
- const parsedOutput = {
3092
- ...output,
3093
- body: await parseErrorBody(output.body, context)
3094
- };
3095
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3096
- switch (errorCode) {
3097
- case "InternalServiceException":
3098
- case "com.amazonaws.gamelift#InternalServiceException":
3099
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3100
- case "InvalidRequestException":
3101
- case "com.amazonaws.gamelift#InvalidRequestException":
3102
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3103
- case "NotFoundException":
3104
- case "com.amazonaws.gamelift#NotFoundException":
3105
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3106
- case "UnauthorizedException":
3107
- case "com.amazonaws.gamelift#UnauthorizedException":
3108
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3109
- default:
3110
- const parsedBody = parsedOutput.body;
3111
- return throwDefaultError({
3112
- output,
3113
- parsedBody,
3114
- errorCode
3115
- });
3116
- }
3117
- }, "de_DeleteLocationCommandError");
3118
2323
  var de_DeleteMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3119
2324
  if (output.statusCode >= 300) {
3120
- return de_DeleteMatchmakingConfigurationCommandError(output, context);
2325
+ return de_CommandError(output, context);
3121
2326
  }
3122
2327
  const data = await parseBody(output.body, context);
3123
2328
  let contents = {};
@@ -3128,40 +2333,9 @@ var de_DeleteMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (out
3128
2333
  };
3129
2334
  return response;
3130
2335
  }, "de_DeleteMatchmakingConfigurationCommand");
3131
- var de_DeleteMatchmakingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3132
- const parsedOutput = {
3133
- ...output,
3134
- body: await parseErrorBody(output.body, context)
3135
- };
3136
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3137
- switch (errorCode) {
3138
- case "InternalServiceException":
3139
- case "com.amazonaws.gamelift#InternalServiceException":
3140
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3141
- case "InvalidRequestException":
3142
- case "com.amazonaws.gamelift#InvalidRequestException":
3143
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3144
- case "NotFoundException":
3145
- case "com.amazonaws.gamelift#NotFoundException":
3146
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3147
- case "TaggingFailedException":
3148
- case "com.amazonaws.gamelift#TaggingFailedException":
3149
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
3150
- case "UnsupportedRegionException":
3151
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3152
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3153
- default:
3154
- const parsedBody = parsedOutput.body;
3155
- return throwDefaultError({
3156
- output,
3157
- parsedBody,
3158
- errorCode
3159
- });
3160
- }
3161
- }, "de_DeleteMatchmakingConfigurationCommandError");
3162
2336
  var de_DeleteMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output, context) => {
3163
2337
  if (output.statusCode >= 300) {
3164
- return de_DeleteMatchmakingRuleSetCommandError(output, context);
2338
+ return de_CommandError(output, context);
3165
2339
  }
3166
2340
  const data = await parseBody(output.body, context);
3167
2341
  let contents = {};
@@ -3172,40 +2346,9 @@ var de_DeleteMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output, c
3172
2346
  };
3173
2347
  return response;
3174
2348
  }, "de_DeleteMatchmakingRuleSetCommand");
3175
- var de_DeleteMatchmakingRuleSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3176
- const parsedOutput = {
3177
- ...output,
3178
- body: await parseErrorBody(output.body, context)
3179
- };
3180
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3181
- switch (errorCode) {
3182
- case "InternalServiceException":
3183
- case "com.amazonaws.gamelift#InternalServiceException":
3184
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3185
- case "InvalidRequestException":
3186
- case "com.amazonaws.gamelift#InvalidRequestException":
3187
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3188
- case "NotFoundException":
3189
- case "com.amazonaws.gamelift#NotFoundException":
3190
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3191
- case "TaggingFailedException":
3192
- case "com.amazonaws.gamelift#TaggingFailedException":
3193
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
3194
- case "UnsupportedRegionException":
3195
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3196
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3197
- default:
3198
- const parsedBody = parsedOutput.body;
3199
- return throwDefaultError({
3200
- output,
3201
- parsedBody,
3202
- errorCode
3203
- });
3204
- }
3205
- }, "de_DeleteMatchmakingRuleSetCommandError");
3206
2349
  var de_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
3207
2350
  if (output.statusCode >= 300) {
3208
- return de_DeleteScalingPolicyCommandError(output, context);
2351
+ return de_CommandError(output, context);
3209
2352
  }
3210
2353
  await (0, import_smithy_client.collectBody)(output.body, context);
3211
2354
  const response = {
@@ -3213,37 +2356,9 @@ var de_DeleteScalingPolicyCommand = /* @__PURE__ */ __name(async (output, contex
3213
2356
  };
3214
2357
  return response;
3215
2358
  }, "de_DeleteScalingPolicyCommand");
3216
- var de_DeleteScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
3217
- const parsedOutput = {
3218
- ...output,
3219
- body: await parseErrorBody(output.body, context)
3220
- };
3221
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3222
- switch (errorCode) {
3223
- case "InternalServiceException":
3224
- case "com.amazonaws.gamelift#InternalServiceException":
3225
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3226
- case "InvalidRequestException":
3227
- case "com.amazonaws.gamelift#InvalidRequestException":
3228
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3229
- case "NotFoundException":
3230
- case "com.amazonaws.gamelift#NotFoundException":
3231
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3232
- case "UnauthorizedException":
3233
- case "com.amazonaws.gamelift#UnauthorizedException":
3234
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3235
- default:
3236
- const parsedBody = parsedOutput.body;
3237
- return throwDefaultError({
3238
- output,
3239
- parsedBody,
3240
- errorCode
3241
- });
3242
- }
3243
- }, "de_DeleteScalingPolicyCommandError");
3244
2359
  var de_DeleteScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
3245
2360
  if (output.statusCode >= 300) {
3246
- return de_DeleteScriptCommandError(output, context);
2361
+ return de_CommandError(output, context);
3247
2362
  }
3248
2363
  await (0, import_smithy_client.collectBody)(output.body, context);
3249
2364
  const response = {
@@ -3251,40 +2366,9 @@ var de_DeleteScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
3251
2366
  };
3252
2367
  return response;
3253
2368
  }, "de_DeleteScriptCommand");
3254
- var de_DeleteScriptCommandError = /* @__PURE__ */ __name(async (output, context) => {
3255
- const parsedOutput = {
3256
- ...output,
3257
- body: await parseErrorBody(output.body, context)
3258
- };
3259
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3260
- switch (errorCode) {
3261
- case "InternalServiceException":
3262
- case "com.amazonaws.gamelift#InternalServiceException":
3263
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3264
- case "InvalidRequestException":
3265
- case "com.amazonaws.gamelift#InvalidRequestException":
3266
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3267
- case "NotFoundException":
3268
- case "com.amazonaws.gamelift#NotFoundException":
3269
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3270
- case "TaggingFailedException":
3271
- case "com.amazonaws.gamelift#TaggingFailedException":
3272
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
3273
- case "UnauthorizedException":
3274
- case "com.amazonaws.gamelift#UnauthorizedException":
3275
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3276
- default:
3277
- const parsedBody = parsedOutput.body;
3278
- return throwDefaultError({
3279
- output,
3280
- parsedBody,
3281
- errorCode
3282
- });
3283
- }
3284
- }, "de_DeleteScriptCommandError");
3285
2369
  var de_DeleteVpcPeeringAuthorizationCommand = /* @__PURE__ */ __name(async (output, context) => {
3286
2370
  if (output.statusCode >= 300) {
3287
- return de_DeleteVpcPeeringAuthorizationCommandError(output, context);
2371
+ return de_CommandError(output, context);
3288
2372
  }
3289
2373
  const data = await parseBody(output.body, context);
3290
2374
  let contents = {};
@@ -3295,37 +2379,9 @@ var de_DeleteVpcPeeringAuthorizationCommand = /* @__PURE__ */ __name(async (outp
3295
2379
  };
3296
2380
  return response;
3297
2381
  }, "de_DeleteVpcPeeringAuthorizationCommand");
3298
- var de_DeleteVpcPeeringAuthorizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3299
- const parsedOutput = {
3300
- ...output,
3301
- body: await parseErrorBody(output.body, context)
3302
- };
3303
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3304
- switch (errorCode) {
3305
- case "InternalServiceException":
3306
- case "com.amazonaws.gamelift#InternalServiceException":
3307
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3308
- case "InvalidRequestException":
3309
- case "com.amazonaws.gamelift#InvalidRequestException":
3310
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3311
- case "NotFoundException":
3312
- case "com.amazonaws.gamelift#NotFoundException":
3313
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3314
- case "UnauthorizedException":
3315
- case "com.amazonaws.gamelift#UnauthorizedException":
3316
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3317
- default:
3318
- const parsedBody = parsedOutput.body;
3319
- return throwDefaultError({
3320
- output,
3321
- parsedBody,
3322
- errorCode
3323
- });
3324
- }
3325
- }, "de_DeleteVpcPeeringAuthorizationCommandError");
3326
2382
  var de_DeleteVpcPeeringConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
3327
2383
  if (output.statusCode >= 300) {
3328
- return de_DeleteVpcPeeringConnectionCommandError(output, context);
2384
+ return de_CommandError(output, context);
3329
2385
  }
3330
2386
  const data = await parseBody(output.body, context);
3331
2387
  let contents = {};
@@ -3336,37 +2392,9 @@ var de_DeleteVpcPeeringConnectionCommand = /* @__PURE__ */ __name(async (output,
3336
2392
  };
3337
2393
  return response;
3338
2394
  }, "de_DeleteVpcPeeringConnectionCommand");
3339
- var de_DeleteVpcPeeringConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3340
- const parsedOutput = {
3341
- ...output,
3342
- body: await parseErrorBody(output.body, context)
3343
- };
3344
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3345
- switch (errorCode) {
3346
- case "InternalServiceException":
3347
- case "com.amazonaws.gamelift#InternalServiceException":
3348
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3349
- case "InvalidRequestException":
3350
- case "com.amazonaws.gamelift#InvalidRequestException":
3351
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3352
- case "NotFoundException":
3353
- case "com.amazonaws.gamelift#NotFoundException":
3354
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3355
- case "UnauthorizedException":
3356
- case "com.amazonaws.gamelift#UnauthorizedException":
3357
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3358
- default:
3359
- const parsedBody = parsedOutput.body;
3360
- return throwDefaultError({
3361
- output,
3362
- parsedBody,
3363
- errorCode
3364
- });
3365
- }
3366
- }, "de_DeleteVpcPeeringConnectionCommandError");
3367
2395
  var de_DeregisterComputeCommand = /* @__PURE__ */ __name(async (output, context) => {
3368
2396
  if (output.statusCode >= 300) {
3369
- return de_DeregisterComputeCommandError(output, context);
2397
+ return de_CommandError(output, context);
3370
2398
  }
3371
2399
  const data = await parseBody(output.body, context);
3372
2400
  let contents = {};
@@ -3377,37 +2405,9 @@ var de_DeregisterComputeCommand = /* @__PURE__ */ __name(async (output, context)
3377
2405
  };
3378
2406
  return response;
3379
2407
  }, "de_DeregisterComputeCommand");
3380
- var de_DeregisterComputeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3381
- const parsedOutput = {
3382
- ...output,
3383
- body: await parseErrorBody(output.body, context)
3384
- };
3385
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3386
- switch (errorCode) {
3387
- case "InternalServiceException":
3388
- case "com.amazonaws.gamelift#InternalServiceException":
3389
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3390
- case "InvalidRequestException":
3391
- case "com.amazonaws.gamelift#InvalidRequestException":
3392
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3393
- case "NotFoundException":
3394
- case "com.amazonaws.gamelift#NotFoundException":
3395
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3396
- case "UnauthorizedException":
3397
- case "com.amazonaws.gamelift#UnauthorizedException":
3398
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3399
- default:
3400
- const parsedBody = parsedOutput.body;
3401
- return throwDefaultError({
3402
- output,
3403
- parsedBody,
3404
- errorCode
3405
- });
3406
- }
3407
- }, "de_DeregisterComputeCommandError");
3408
2408
  var de_DeregisterGameServerCommand = /* @__PURE__ */ __name(async (output, context) => {
3409
2409
  if (output.statusCode >= 300) {
3410
- return de_DeregisterGameServerCommandError(output, context);
2410
+ return de_CommandError(output, context);
3411
2411
  }
3412
2412
  await (0, import_smithy_client.collectBody)(output.body, context);
3413
2413
  const response = {
@@ -3415,37 +2415,9 @@ var de_DeregisterGameServerCommand = /* @__PURE__ */ __name(async (output, conte
3415
2415
  };
3416
2416
  return response;
3417
2417
  }, "de_DeregisterGameServerCommand");
3418
- var de_DeregisterGameServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
3419
- const parsedOutput = {
3420
- ...output,
3421
- body: await parseErrorBody(output.body, context)
3422
- };
3423
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3424
- switch (errorCode) {
3425
- case "InternalServiceException":
3426
- case "com.amazonaws.gamelift#InternalServiceException":
3427
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3428
- case "InvalidRequestException":
3429
- case "com.amazonaws.gamelift#InvalidRequestException":
3430
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3431
- case "NotFoundException":
3432
- case "com.amazonaws.gamelift#NotFoundException":
3433
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3434
- case "UnauthorizedException":
3435
- case "com.amazonaws.gamelift#UnauthorizedException":
3436
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3437
- default:
3438
- const parsedBody = parsedOutput.body;
3439
- return throwDefaultError({
3440
- output,
3441
- parsedBody,
3442
- errorCode
3443
- });
3444
- }
3445
- }, "de_DeregisterGameServerCommandError");
3446
2418
  var de_DescribeAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
3447
2419
  if (output.statusCode >= 300) {
3448
- return de_DescribeAliasCommandError(output, context);
2420
+ return de_CommandError(output, context);
3449
2421
  }
3450
2422
  const data = await parseBody(output.body, context);
3451
2423
  let contents = {};
@@ -3456,78 +2428,22 @@ var de_DescribeAliasCommand = /* @__PURE__ */ __name(async (output, context) =>
3456
2428
  };
3457
2429
  return response;
3458
2430
  }, "de_DescribeAliasCommand");
3459
- var de_DescribeAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
3460
- const parsedOutput = {
3461
- ...output,
3462
- body: await parseErrorBody(output.body, context)
3463
- };
3464
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3465
- switch (errorCode) {
3466
- case "InternalServiceException":
3467
- case "com.amazonaws.gamelift#InternalServiceException":
3468
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3469
- case "InvalidRequestException":
3470
- case "com.amazonaws.gamelift#InvalidRequestException":
3471
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3472
- case "NotFoundException":
3473
- case "com.amazonaws.gamelift#NotFoundException":
3474
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3475
- case "UnauthorizedException":
3476
- case "com.amazonaws.gamelift#UnauthorizedException":
3477
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3478
- default:
3479
- const parsedBody = parsedOutput.body;
3480
- return throwDefaultError({
3481
- output,
3482
- parsedBody,
3483
- errorCode
3484
- });
3485
- }
3486
- }, "de_DescribeAliasCommandError");
3487
- var de_DescribeBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
3488
- if (output.statusCode >= 300) {
3489
- return de_DescribeBuildCommandError(output, context);
3490
- }
3491
- const data = await parseBody(output.body, context);
3492
- let contents = {};
3493
- contents = de_DescribeBuildOutput(data, context);
3494
- const response = {
3495
- $metadata: deserializeMetadata(output),
3496
- ...contents
2431
+ var de_DescribeBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
2432
+ if (output.statusCode >= 300) {
2433
+ return de_CommandError(output, context);
2434
+ }
2435
+ const data = await parseBody(output.body, context);
2436
+ let contents = {};
2437
+ contents = de_DescribeBuildOutput(data, context);
2438
+ const response = {
2439
+ $metadata: deserializeMetadata(output),
2440
+ ...contents
3497
2441
  };
3498
2442
  return response;
3499
2443
  }, "de_DescribeBuildCommand");
3500
- var de_DescribeBuildCommandError = /* @__PURE__ */ __name(async (output, context) => {
3501
- const parsedOutput = {
3502
- ...output,
3503
- body: await parseErrorBody(output.body, context)
3504
- };
3505
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3506
- switch (errorCode) {
3507
- case "InternalServiceException":
3508
- case "com.amazonaws.gamelift#InternalServiceException":
3509
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3510
- case "InvalidRequestException":
3511
- case "com.amazonaws.gamelift#InvalidRequestException":
3512
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3513
- case "NotFoundException":
3514
- case "com.amazonaws.gamelift#NotFoundException":
3515
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3516
- case "UnauthorizedException":
3517
- case "com.amazonaws.gamelift#UnauthorizedException":
3518
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3519
- default:
3520
- const parsedBody = parsedOutput.body;
3521
- return throwDefaultError({
3522
- output,
3523
- parsedBody,
3524
- errorCode
3525
- });
3526
- }
3527
- }, "de_DescribeBuildCommandError");
3528
2444
  var de_DescribeComputeCommand = /* @__PURE__ */ __name(async (output, context) => {
3529
2445
  if (output.statusCode >= 300) {
3530
- return de_DescribeComputeCommandError(output, context);
2446
+ return de_CommandError(output, context);
3531
2447
  }
3532
2448
  const data = await parseBody(output.body, context);
3533
2449
  let contents = {};
@@ -3538,37 +2454,9 @@ var de_DescribeComputeCommand = /* @__PURE__ */ __name(async (output, context) =
3538
2454
  };
3539
2455
  return response;
3540
2456
  }, "de_DescribeComputeCommand");
3541
- var de_DescribeComputeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3542
- const parsedOutput = {
3543
- ...output,
3544
- body: await parseErrorBody(output.body, context)
3545
- };
3546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3547
- switch (errorCode) {
3548
- case "InternalServiceException":
3549
- case "com.amazonaws.gamelift#InternalServiceException":
3550
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3551
- case "InvalidRequestException":
3552
- case "com.amazonaws.gamelift#InvalidRequestException":
3553
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3554
- case "NotFoundException":
3555
- case "com.amazonaws.gamelift#NotFoundException":
3556
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3557
- case "UnauthorizedException":
3558
- case "com.amazonaws.gamelift#UnauthorizedException":
3559
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3560
- default:
3561
- const parsedBody = parsedOutput.body;
3562
- return throwDefaultError({
3563
- output,
3564
- parsedBody,
3565
- errorCode
3566
- });
3567
- }
3568
- }, "de_DescribeComputeCommandError");
3569
2457
  var de_DescribeEC2InstanceLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
3570
2458
  if (output.statusCode >= 300) {
3571
- return de_DescribeEC2InstanceLimitsCommandError(output, context);
2459
+ return de_CommandError(output, context);
3572
2460
  }
3573
2461
  const data = await parseBody(output.body, context);
3574
2462
  let contents = {};
@@ -3579,37 +2467,9 @@ var de_DescribeEC2InstanceLimitsCommand = /* @__PURE__ */ __name(async (output,
3579
2467
  };
3580
2468
  return response;
3581
2469
  }, "de_DescribeEC2InstanceLimitsCommand");
3582
- var de_DescribeEC2InstanceLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3583
- const parsedOutput = {
3584
- ...output,
3585
- body: await parseErrorBody(output.body, context)
3586
- };
3587
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3588
- switch (errorCode) {
3589
- case "InternalServiceException":
3590
- case "com.amazonaws.gamelift#InternalServiceException":
3591
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3592
- case "InvalidRequestException":
3593
- case "com.amazonaws.gamelift#InvalidRequestException":
3594
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3595
- case "UnauthorizedException":
3596
- case "com.amazonaws.gamelift#UnauthorizedException":
3597
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3598
- case "UnsupportedRegionException":
3599
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3600
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3601
- default:
3602
- const parsedBody = parsedOutput.body;
3603
- return throwDefaultError({
3604
- output,
3605
- parsedBody,
3606
- errorCode
3607
- });
3608
- }
3609
- }, "de_DescribeEC2InstanceLimitsCommandError");
3610
2470
  var de_DescribeFleetAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
3611
2471
  if (output.statusCode >= 300) {
3612
- return de_DescribeFleetAttributesCommandError(output, context);
2472
+ return de_CommandError(output, context);
3613
2473
  }
3614
2474
  const data = await parseBody(output.body, context);
3615
2475
  let contents = {};
@@ -3620,37 +2480,9 @@ var de_DescribeFleetAttributesCommand = /* @__PURE__ */ __name(async (output, co
3620
2480
  };
3621
2481
  return response;
3622
2482
  }, "de_DescribeFleetAttributesCommand");
3623
- var de_DescribeFleetAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3624
- const parsedOutput = {
3625
- ...output,
3626
- body: await parseErrorBody(output.body, context)
3627
- };
3628
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3629
- switch (errorCode) {
3630
- case "InternalServiceException":
3631
- case "com.amazonaws.gamelift#InternalServiceException":
3632
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3633
- case "InvalidRequestException":
3634
- case "com.amazonaws.gamelift#InvalidRequestException":
3635
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3636
- case "NotFoundException":
3637
- case "com.amazonaws.gamelift#NotFoundException":
3638
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3639
- case "UnauthorizedException":
3640
- case "com.amazonaws.gamelift#UnauthorizedException":
3641
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3642
- default:
3643
- const parsedBody = parsedOutput.body;
3644
- return throwDefaultError({
3645
- output,
3646
- parsedBody,
3647
- errorCode
3648
- });
3649
- }
3650
- }, "de_DescribeFleetAttributesCommandError");
3651
2483
  var de_DescribeFleetCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
3652
2484
  if (output.statusCode >= 300) {
3653
- return de_DescribeFleetCapacityCommandError(output, context);
2485
+ return de_CommandError(output, context);
3654
2486
  }
3655
2487
  const data = await parseBody(output.body, context);
3656
2488
  let contents = {};
@@ -3661,37 +2493,9 @@ var de_DescribeFleetCapacityCommand = /* @__PURE__ */ __name(async (output, cont
3661
2493
  };
3662
2494
  return response;
3663
2495
  }, "de_DescribeFleetCapacityCommand");
3664
- var de_DescribeFleetCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
3665
- const parsedOutput = {
3666
- ...output,
3667
- body: await parseErrorBody(output.body, context)
3668
- };
3669
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3670
- switch (errorCode) {
3671
- case "InternalServiceException":
3672
- case "com.amazonaws.gamelift#InternalServiceException":
3673
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3674
- case "InvalidRequestException":
3675
- case "com.amazonaws.gamelift#InvalidRequestException":
3676
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3677
- case "NotFoundException":
3678
- case "com.amazonaws.gamelift#NotFoundException":
3679
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3680
- case "UnauthorizedException":
3681
- case "com.amazonaws.gamelift#UnauthorizedException":
3682
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3683
- default:
3684
- const parsedBody = parsedOutput.body;
3685
- return throwDefaultError({
3686
- output,
3687
- parsedBody,
3688
- errorCode
3689
- });
3690
- }
3691
- }, "de_DescribeFleetCapacityCommandError");
3692
2496
  var de_DescribeFleetEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
3693
2497
  if (output.statusCode >= 300) {
3694
- return de_DescribeFleetEventsCommandError(output, context);
2498
+ return de_CommandError(output, context);
3695
2499
  }
3696
2500
  const data = await parseBody(output.body, context);
3697
2501
  let contents = {};
@@ -3702,37 +2506,9 @@ var de_DescribeFleetEventsCommand = /* @__PURE__ */ __name(async (output, contex
3702
2506
  };
3703
2507
  return response;
3704
2508
  }, "de_DescribeFleetEventsCommand");
3705
- var de_DescribeFleetEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3706
- const parsedOutput = {
3707
- ...output,
3708
- body: await parseErrorBody(output.body, context)
3709
- };
3710
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3711
- switch (errorCode) {
3712
- case "InternalServiceException":
3713
- case "com.amazonaws.gamelift#InternalServiceException":
3714
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3715
- case "InvalidRequestException":
3716
- case "com.amazonaws.gamelift#InvalidRequestException":
3717
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3718
- case "NotFoundException":
3719
- case "com.amazonaws.gamelift#NotFoundException":
3720
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3721
- case "UnauthorizedException":
3722
- case "com.amazonaws.gamelift#UnauthorizedException":
3723
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3724
- default:
3725
- const parsedBody = parsedOutput.body;
3726
- return throwDefaultError({
3727
- output,
3728
- parsedBody,
3729
- errorCode
3730
- });
3731
- }
3732
- }, "de_DescribeFleetEventsCommandError");
3733
2509
  var de_DescribeFleetLocationAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
3734
2510
  if (output.statusCode >= 300) {
3735
- return de_DescribeFleetLocationAttributesCommandError(output, context);
2511
+ return de_CommandError(output, context);
3736
2512
  }
3737
2513
  const data = await parseBody(output.body, context);
3738
2514
  let contents = {};
@@ -3743,40 +2519,9 @@ var de_DescribeFleetLocationAttributesCommand = /* @__PURE__ */ __name(async (ou
3743
2519
  };
3744
2520
  return response;
3745
2521
  }, "de_DescribeFleetLocationAttributesCommand");
3746
- var de_DescribeFleetLocationAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3747
- const parsedOutput = {
3748
- ...output,
3749
- body: await parseErrorBody(output.body, context)
3750
- };
3751
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3752
- switch (errorCode) {
3753
- case "InternalServiceException":
3754
- case "com.amazonaws.gamelift#InternalServiceException":
3755
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3756
- case "InvalidRequestException":
3757
- case "com.amazonaws.gamelift#InvalidRequestException":
3758
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3759
- case "NotFoundException":
3760
- case "com.amazonaws.gamelift#NotFoundException":
3761
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3762
- case "UnauthorizedException":
3763
- case "com.amazonaws.gamelift#UnauthorizedException":
3764
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3765
- case "UnsupportedRegionException":
3766
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3767
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3768
- default:
3769
- const parsedBody = parsedOutput.body;
3770
- return throwDefaultError({
3771
- output,
3772
- parsedBody,
3773
- errorCode
3774
- });
3775
- }
3776
- }, "de_DescribeFleetLocationAttributesCommandError");
3777
2522
  var de_DescribeFleetLocationCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
3778
2523
  if (output.statusCode >= 300) {
3779
- return de_DescribeFleetLocationCapacityCommandError(output, context);
2524
+ return de_CommandError(output, context);
3780
2525
  }
3781
2526
  const data = await parseBody(output.body, context);
3782
2527
  let contents = {};
@@ -3787,40 +2532,9 @@ var de_DescribeFleetLocationCapacityCommand = /* @__PURE__ */ __name(async (outp
3787
2532
  };
3788
2533
  return response;
3789
2534
  }, "de_DescribeFleetLocationCapacityCommand");
3790
- var de_DescribeFleetLocationCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
3791
- const parsedOutput = {
3792
- ...output,
3793
- body: await parseErrorBody(output.body, context)
3794
- };
3795
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3796
- switch (errorCode) {
3797
- case "InternalServiceException":
3798
- case "com.amazonaws.gamelift#InternalServiceException":
3799
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3800
- case "InvalidRequestException":
3801
- case "com.amazonaws.gamelift#InvalidRequestException":
3802
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3803
- case "NotFoundException":
3804
- case "com.amazonaws.gamelift#NotFoundException":
3805
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3806
- case "UnauthorizedException":
3807
- case "com.amazonaws.gamelift#UnauthorizedException":
3808
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3809
- case "UnsupportedRegionException":
3810
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3811
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3812
- default:
3813
- const parsedBody = parsedOutput.body;
3814
- return throwDefaultError({
3815
- output,
3816
- parsedBody,
3817
- errorCode
3818
- });
3819
- }
3820
- }, "de_DescribeFleetLocationCapacityCommandError");
3821
2535
  var de_DescribeFleetLocationUtilizationCommand = /* @__PURE__ */ __name(async (output, context) => {
3822
2536
  if (output.statusCode >= 300) {
3823
- return de_DescribeFleetLocationUtilizationCommandError(output, context);
2537
+ return de_CommandError(output, context);
3824
2538
  }
3825
2539
  const data = await parseBody(output.body, context);
3826
2540
  let contents = {};
@@ -3831,84 +2545,22 @@ var de_DescribeFleetLocationUtilizationCommand = /* @__PURE__ */ __name(async (o
3831
2545
  };
3832
2546
  return response;
3833
2547
  }, "de_DescribeFleetLocationUtilizationCommand");
3834
- var de_DescribeFleetLocationUtilizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3835
- const parsedOutput = {
3836
- ...output,
3837
- body: await parseErrorBody(output.body, context)
3838
- };
3839
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3840
- switch (errorCode) {
3841
- case "InternalServiceException":
3842
- case "com.amazonaws.gamelift#InternalServiceException":
3843
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3844
- case "InvalidRequestException":
3845
- case "com.amazonaws.gamelift#InvalidRequestException":
3846
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3847
- case "NotFoundException":
3848
- case "com.amazonaws.gamelift#NotFoundException":
3849
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3850
- case "UnauthorizedException":
3851
- case "com.amazonaws.gamelift#UnauthorizedException":
3852
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3853
- case "UnsupportedRegionException":
3854
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3855
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3856
- default:
3857
- const parsedBody = parsedOutput.body;
3858
- return throwDefaultError({
3859
- output,
3860
- parsedBody,
3861
- errorCode
3862
- });
3863
- }
3864
- }, "de_DescribeFleetLocationUtilizationCommandError");
3865
- var de_DescribeFleetPortSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3866
- if (output.statusCode >= 300) {
3867
- return de_DescribeFleetPortSettingsCommandError(output, context);
3868
- }
3869
- const data = await parseBody(output.body, context);
3870
- let contents = {};
3871
- contents = (0, import_smithy_client._json)(data);
3872
- const response = {
3873
- $metadata: deserializeMetadata(output),
3874
- ...contents
2548
+ var de_DescribeFleetPortSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2549
+ if (output.statusCode >= 300) {
2550
+ return de_CommandError(output, context);
2551
+ }
2552
+ const data = await parseBody(output.body, context);
2553
+ let contents = {};
2554
+ contents = (0, import_smithy_client._json)(data);
2555
+ const response = {
2556
+ $metadata: deserializeMetadata(output),
2557
+ ...contents
3875
2558
  };
3876
2559
  return response;
3877
2560
  }, "de_DescribeFleetPortSettingsCommand");
3878
- var de_DescribeFleetPortSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3879
- const parsedOutput = {
3880
- ...output,
3881
- body: await parseErrorBody(output.body, context)
3882
- };
3883
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3884
- switch (errorCode) {
3885
- case "InternalServiceException":
3886
- case "com.amazonaws.gamelift#InternalServiceException":
3887
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3888
- case "InvalidRequestException":
3889
- case "com.amazonaws.gamelift#InvalidRequestException":
3890
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3891
- case "NotFoundException":
3892
- case "com.amazonaws.gamelift#NotFoundException":
3893
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3894
- case "UnauthorizedException":
3895
- case "com.amazonaws.gamelift#UnauthorizedException":
3896
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3897
- case "UnsupportedRegionException":
3898
- case "com.amazonaws.gamelift#UnsupportedRegionException":
3899
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3900
- default:
3901
- const parsedBody = parsedOutput.body;
3902
- return throwDefaultError({
3903
- output,
3904
- parsedBody,
3905
- errorCode
3906
- });
3907
- }
3908
- }, "de_DescribeFleetPortSettingsCommandError");
3909
2561
  var de_DescribeFleetUtilizationCommand = /* @__PURE__ */ __name(async (output, context) => {
3910
2562
  if (output.statusCode >= 300) {
3911
- return de_DescribeFleetUtilizationCommandError(output, context);
2563
+ return de_CommandError(output, context);
3912
2564
  }
3913
2565
  const data = await parseBody(output.body, context);
3914
2566
  let contents = {};
@@ -3919,37 +2571,9 @@ var de_DescribeFleetUtilizationCommand = /* @__PURE__ */ __name(async (output, c
3919
2571
  };
3920
2572
  return response;
3921
2573
  }, "de_DescribeFleetUtilizationCommand");
3922
- var de_DescribeFleetUtilizationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3923
- const parsedOutput = {
3924
- ...output,
3925
- body: await parseErrorBody(output.body, context)
3926
- };
3927
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3928
- switch (errorCode) {
3929
- case "InternalServiceException":
3930
- case "com.amazonaws.gamelift#InternalServiceException":
3931
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3932
- case "InvalidRequestException":
3933
- case "com.amazonaws.gamelift#InvalidRequestException":
3934
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3935
- case "NotFoundException":
3936
- case "com.amazonaws.gamelift#NotFoundException":
3937
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3938
- case "UnauthorizedException":
3939
- case "com.amazonaws.gamelift#UnauthorizedException":
3940
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3941
- default:
3942
- const parsedBody = parsedOutput.body;
3943
- return throwDefaultError({
3944
- output,
3945
- parsedBody,
3946
- errorCode
3947
- });
3948
- }
3949
- }, "de_DescribeFleetUtilizationCommandError");
3950
2574
  var de_DescribeGameServerCommand = /* @__PURE__ */ __name(async (output, context) => {
3951
2575
  if (output.statusCode >= 300) {
3952
- return de_DescribeGameServerCommandError(output, context);
2576
+ return de_CommandError(output, context);
3953
2577
  }
3954
2578
  const data = await parseBody(output.body, context);
3955
2579
  let contents = {};
@@ -3960,37 +2584,9 @@ var de_DescribeGameServerCommand = /* @__PURE__ */ __name(async (output, context
3960
2584
  };
3961
2585
  return response;
3962
2586
  }, "de_DescribeGameServerCommand");
3963
- var de_DescribeGameServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
3964
- const parsedOutput = {
3965
- ...output,
3966
- body: await parseErrorBody(output.body, context)
3967
- };
3968
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3969
- switch (errorCode) {
3970
- case "InternalServiceException":
3971
- case "com.amazonaws.gamelift#InternalServiceException":
3972
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3973
- case "InvalidRequestException":
3974
- case "com.amazonaws.gamelift#InvalidRequestException":
3975
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3976
- case "NotFoundException":
3977
- case "com.amazonaws.gamelift#NotFoundException":
3978
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3979
- case "UnauthorizedException":
3980
- case "com.amazonaws.gamelift#UnauthorizedException":
3981
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3982
- default:
3983
- const parsedBody = parsedOutput.body;
3984
- return throwDefaultError({
3985
- output,
3986
- parsedBody,
3987
- errorCode
3988
- });
3989
- }
3990
- }, "de_DescribeGameServerCommandError");
3991
2587
  var de_DescribeGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3992
2588
  if (output.statusCode >= 300) {
3993
- return de_DescribeGameServerGroupCommandError(output, context);
2589
+ return de_CommandError(output, context);
3994
2590
  }
3995
2591
  const data = await parseBody(output.body, context);
3996
2592
  let contents = {};
@@ -4001,37 +2597,9 @@ var de_DescribeGameServerGroupCommand = /* @__PURE__ */ __name(async (output, co
4001
2597
  };
4002
2598
  return response;
4003
2599
  }, "de_DescribeGameServerGroupCommand");
4004
- var de_DescribeGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
4005
- const parsedOutput = {
4006
- ...output,
4007
- body: await parseErrorBody(output.body, context)
4008
- };
4009
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4010
- switch (errorCode) {
4011
- case "InternalServiceException":
4012
- case "com.amazonaws.gamelift#InternalServiceException":
4013
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4014
- case "InvalidRequestException":
4015
- case "com.amazonaws.gamelift#InvalidRequestException":
4016
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4017
- case "NotFoundException":
4018
- case "com.amazonaws.gamelift#NotFoundException":
4019
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4020
- case "UnauthorizedException":
4021
- case "com.amazonaws.gamelift#UnauthorizedException":
4022
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4023
- default:
4024
- const parsedBody = parsedOutput.body;
4025
- return throwDefaultError({
4026
- output,
4027
- parsedBody,
4028
- errorCode
4029
- });
4030
- }
4031
- }, "de_DescribeGameServerGroupCommandError");
4032
2600
  var de_DescribeGameServerInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
4033
2601
  if (output.statusCode >= 300) {
4034
- return de_DescribeGameServerInstancesCommandError(output, context);
2602
+ return de_CommandError(output, context);
4035
2603
  }
4036
2604
  const data = await parseBody(output.body, context);
4037
2605
  let contents = {};
@@ -4042,37 +2610,9 @@ var de_DescribeGameServerInstancesCommand = /* @__PURE__ */ __name(async (output
4042
2610
  };
4043
2611
  return response;
4044
2612
  }, "de_DescribeGameServerInstancesCommand");
4045
- var de_DescribeGameServerInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4046
- const parsedOutput = {
4047
- ...output,
4048
- body: await parseErrorBody(output.body, context)
4049
- };
4050
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4051
- switch (errorCode) {
4052
- case "InternalServiceException":
4053
- case "com.amazonaws.gamelift#InternalServiceException":
4054
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4055
- case "InvalidRequestException":
4056
- case "com.amazonaws.gamelift#InvalidRequestException":
4057
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4058
- case "NotFoundException":
4059
- case "com.amazonaws.gamelift#NotFoundException":
4060
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4061
- case "UnauthorizedException":
4062
- case "com.amazonaws.gamelift#UnauthorizedException":
4063
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4064
- default:
4065
- const parsedBody = parsedOutput.body;
4066
- return throwDefaultError({
4067
- output,
4068
- parsedBody,
4069
- errorCode
4070
- });
4071
- }
4072
- }, "de_DescribeGameServerInstancesCommandError");
4073
2613
  var de_DescribeGameSessionDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
4074
2614
  if (output.statusCode >= 300) {
4075
- return de_DescribeGameSessionDetailsCommandError(output, context);
2615
+ return de_CommandError(output, context);
4076
2616
  }
4077
2617
  const data = await parseBody(output.body, context);
4078
2618
  let contents = {};
@@ -4083,43 +2623,9 @@ var de_DescribeGameSessionDetailsCommand = /* @__PURE__ */ __name(async (output,
4083
2623
  };
4084
2624
  return response;
4085
2625
  }, "de_DescribeGameSessionDetailsCommand");
4086
- var de_DescribeGameSessionDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4087
- const parsedOutput = {
4088
- ...output,
4089
- body: await parseErrorBody(output.body, context)
4090
- };
4091
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4092
- switch (errorCode) {
4093
- case "InternalServiceException":
4094
- case "com.amazonaws.gamelift#InternalServiceException":
4095
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4096
- case "InvalidRequestException":
4097
- case "com.amazonaws.gamelift#InvalidRequestException":
4098
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4099
- case "NotFoundException":
4100
- case "com.amazonaws.gamelift#NotFoundException":
4101
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4102
- case "TerminalRoutingStrategyException":
4103
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
4104
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
4105
- case "UnauthorizedException":
4106
- case "com.amazonaws.gamelift#UnauthorizedException":
4107
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4108
- case "UnsupportedRegionException":
4109
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4110
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4111
- default:
4112
- const parsedBody = parsedOutput.body;
4113
- return throwDefaultError({
4114
- output,
4115
- parsedBody,
4116
- errorCode
4117
- });
4118
- }
4119
- }, "de_DescribeGameSessionDetailsCommandError");
4120
2626
  var de_DescribeGameSessionPlacementCommand = /* @__PURE__ */ __name(async (output, context) => {
4121
2627
  if (output.statusCode >= 300) {
4122
- return de_DescribeGameSessionPlacementCommandError(output, context);
2628
+ return de_CommandError(output, context);
4123
2629
  }
4124
2630
  const data = await parseBody(output.body, context);
4125
2631
  let contents = {};
@@ -4130,37 +2636,9 @@ var de_DescribeGameSessionPlacementCommand = /* @__PURE__ */ __name(async (outpu
4130
2636
  };
4131
2637
  return response;
4132
2638
  }, "de_DescribeGameSessionPlacementCommand");
4133
- var de_DescribeGameSessionPlacementCommandError = /* @__PURE__ */ __name(async (output, context) => {
4134
- const parsedOutput = {
4135
- ...output,
4136
- body: await parseErrorBody(output.body, context)
4137
- };
4138
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4139
- switch (errorCode) {
4140
- case "InternalServiceException":
4141
- case "com.amazonaws.gamelift#InternalServiceException":
4142
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4143
- case "InvalidRequestException":
4144
- case "com.amazonaws.gamelift#InvalidRequestException":
4145
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4146
- case "NotFoundException":
4147
- case "com.amazonaws.gamelift#NotFoundException":
4148
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4149
- case "UnauthorizedException":
4150
- case "com.amazonaws.gamelift#UnauthorizedException":
4151
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4152
- default:
4153
- const parsedBody = parsedOutput.body;
4154
- return throwDefaultError({
4155
- output,
4156
- parsedBody,
4157
- errorCode
4158
- });
4159
- }
4160
- }, "de_DescribeGameSessionPlacementCommandError");
4161
2639
  var de_DescribeGameSessionQueuesCommand = /* @__PURE__ */ __name(async (output, context) => {
4162
2640
  if (output.statusCode >= 300) {
4163
- return de_DescribeGameSessionQueuesCommandError(output, context);
2641
+ return de_CommandError(output, context);
4164
2642
  }
4165
2643
  const data = await parseBody(output.body, context);
4166
2644
  let contents = {};
@@ -4171,37 +2649,9 @@ var de_DescribeGameSessionQueuesCommand = /* @__PURE__ */ __name(async (output,
4171
2649
  };
4172
2650
  return response;
4173
2651
  }, "de_DescribeGameSessionQueuesCommand");
4174
- var de_DescribeGameSessionQueuesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4175
- const parsedOutput = {
4176
- ...output,
4177
- body: await parseErrorBody(output.body, context)
4178
- };
4179
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4180
- switch (errorCode) {
4181
- case "InternalServiceException":
4182
- case "com.amazonaws.gamelift#InternalServiceException":
4183
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4184
- case "InvalidRequestException":
4185
- case "com.amazonaws.gamelift#InvalidRequestException":
4186
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4187
- case "NotFoundException":
4188
- case "com.amazonaws.gamelift#NotFoundException":
4189
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4190
- case "UnauthorizedException":
4191
- case "com.amazonaws.gamelift#UnauthorizedException":
4192
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4193
- default:
4194
- const parsedBody = parsedOutput.body;
4195
- return throwDefaultError({
4196
- output,
4197
- parsedBody,
4198
- errorCode
4199
- });
4200
- }
4201
- }, "de_DescribeGameSessionQueuesCommandError");
4202
2652
  var de_DescribeGameSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
4203
2653
  if (output.statusCode >= 300) {
4204
- return de_DescribeGameSessionsCommandError(output, context);
2654
+ return de_CommandError(output, context);
4205
2655
  }
4206
2656
  const data = await parseBody(output.body, context);
4207
2657
  let contents = {};
@@ -4212,87 +2662,22 @@ var de_DescribeGameSessionsCommand = /* @__PURE__ */ __name(async (output, conte
4212
2662
  };
4213
2663
  return response;
4214
2664
  }, "de_DescribeGameSessionsCommand");
4215
- var de_DescribeGameSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4216
- const parsedOutput = {
4217
- ...output,
4218
- body: await parseErrorBody(output.body, context)
4219
- };
4220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4221
- switch (errorCode) {
4222
- case "InternalServiceException":
4223
- case "com.amazonaws.gamelift#InternalServiceException":
4224
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4225
- case "InvalidRequestException":
4226
- case "com.amazonaws.gamelift#InvalidRequestException":
4227
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4228
- case "NotFoundException":
4229
- case "com.amazonaws.gamelift#NotFoundException":
4230
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4231
- case "TerminalRoutingStrategyException":
4232
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
4233
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
4234
- case "UnauthorizedException":
4235
- case "com.amazonaws.gamelift#UnauthorizedException":
4236
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4237
- case "UnsupportedRegionException":
4238
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4239
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4240
- default:
4241
- const parsedBody = parsedOutput.body;
4242
- return throwDefaultError({
4243
- output,
4244
- parsedBody,
4245
- errorCode
4246
- });
4247
- }
4248
- }, "de_DescribeGameSessionsCommandError");
4249
- var de_DescribeInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
4250
- if (output.statusCode >= 300) {
4251
- return de_DescribeInstancesCommandError(output, context);
4252
- }
4253
- const data = await parseBody(output.body, context);
4254
- let contents = {};
4255
- contents = de_DescribeInstancesOutput(data, context);
4256
- const response = {
4257
- $metadata: deserializeMetadata(output),
4258
- ...contents
2665
+ var de_DescribeInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
2666
+ if (output.statusCode >= 300) {
2667
+ return de_CommandError(output, context);
2668
+ }
2669
+ const data = await parseBody(output.body, context);
2670
+ let contents = {};
2671
+ contents = de_DescribeInstancesOutput(data, context);
2672
+ const response = {
2673
+ $metadata: deserializeMetadata(output),
2674
+ ...contents
4259
2675
  };
4260
2676
  return response;
4261
2677
  }, "de_DescribeInstancesCommand");
4262
- var de_DescribeInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4263
- const parsedOutput = {
4264
- ...output,
4265
- body: await parseErrorBody(output.body, context)
4266
- };
4267
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4268
- switch (errorCode) {
4269
- case "InternalServiceException":
4270
- case "com.amazonaws.gamelift#InternalServiceException":
4271
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4272
- case "InvalidRequestException":
4273
- case "com.amazonaws.gamelift#InvalidRequestException":
4274
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4275
- case "NotFoundException":
4276
- case "com.amazonaws.gamelift#NotFoundException":
4277
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4278
- case "UnauthorizedException":
4279
- case "com.amazonaws.gamelift#UnauthorizedException":
4280
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4281
- case "UnsupportedRegionException":
4282
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4283
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4284
- default:
4285
- const parsedBody = parsedOutput.body;
4286
- return throwDefaultError({
4287
- output,
4288
- parsedBody,
4289
- errorCode
4290
- });
4291
- }
4292
- }, "de_DescribeInstancesCommandError");
4293
2678
  var de_DescribeMatchmakingCommand = /* @__PURE__ */ __name(async (output, context) => {
4294
2679
  if (output.statusCode >= 300) {
4295
- return de_DescribeMatchmakingCommandError(output, context);
2680
+ return de_CommandError(output, context);
4296
2681
  }
4297
2682
  const data = await parseBody(output.body, context);
4298
2683
  let contents = {};
@@ -4303,34 +2688,9 @@ var de_DescribeMatchmakingCommand = /* @__PURE__ */ __name(async (output, contex
4303
2688
  };
4304
2689
  return response;
4305
2690
  }, "de_DescribeMatchmakingCommand");
4306
- var de_DescribeMatchmakingCommandError = /* @__PURE__ */ __name(async (output, context) => {
4307
- const parsedOutput = {
4308
- ...output,
4309
- body: await parseErrorBody(output.body, context)
4310
- };
4311
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4312
- switch (errorCode) {
4313
- case "InternalServiceException":
4314
- case "com.amazonaws.gamelift#InternalServiceException":
4315
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4316
- case "InvalidRequestException":
4317
- case "com.amazonaws.gamelift#InvalidRequestException":
4318
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4319
- case "UnsupportedRegionException":
4320
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4321
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4322
- default:
4323
- const parsedBody = parsedOutput.body;
4324
- return throwDefaultError({
4325
- output,
4326
- parsedBody,
4327
- errorCode
4328
- });
4329
- }
4330
- }, "de_DescribeMatchmakingCommandError");
4331
2691
  var de_DescribeMatchmakingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
4332
2692
  if (output.statusCode >= 300) {
4333
- return de_DescribeMatchmakingConfigurationsCommandError(output, context);
2693
+ return de_CommandError(output, context);
4334
2694
  }
4335
2695
  const data = await parseBody(output.body, context);
4336
2696
  let contents = {};
@@ -4341,34 +2701,9 @@ var de_DescribeMatchmakingConfigurationsCommand = /* @__PURE__ */ __name(async (
4341
2701
  };
4342
2702
  return response;
4343
2703
  }, "de_DescribeMatchmakingConfigurationsCommand");
4344
- var de_DescribeMatchmakingConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4345
- const parsedOutput = {
4346
- ...output,
4347
- body: await parseErrorBody(output.body, context)
4348
- };
4349
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4350
- switch (errorCode) {
4351
- case "InternalServiceException":
4352
- case "com.amazonaws.gamelift#InternalServiceException":
4353
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4354
- case "InvalidRequestException":
4355
- case "com.amazonaws.gamelift#InvalidRequestException":
4356
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4357
- case "UnsupportedRegionException":
4358
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4359
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4360
- default:
4361
- const parsedBody = parsedOutput.body;
4362
- return throwDefaultError({
4363
- output,
4364
- parsedBody,
4365
- errorCode
4366
- });
4367
- }
4368
- }, "de_DescribeMatchmakingConfigurationsCommandError");
4369
2704
  var de_DescribeMatchmakingRuleSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
4370
2705
  if (output.statusCode >= 300) {
4371
- return de_DescribeMatchmakingRuleSetsCommandError(output, context);
2706
+ return de_CommandError(output, context);
4372
2707
  }
4373
2708
  const data = await parseBody(output.body, context);
4374
2709
  let contents = {};
@@ -4379,37 +2714,9 @@ var de_DescribeMatchmakingRuleSetsCommand = /* @__PURE__ */ __name(async (output
4379
2714
  };
4380
2715
  return response;
4381
2716
  }, "de_DescribeMatchmakingRuleSetsCommand");
4382
- var de_DescribeMatchmakingRuleSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4383
- const parsedOutput = {
4384
- ...output,
4385
- body: await parseErrorBody(output.body, context)
4386
- };
4387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4388
- switch (errorCode) {
4389
- case "InternalServiceException":
4390
- case "com.amazonaws.gamelift#InternalServiceException":
4391
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4392
- case "InvalidRequestException":
4393
- case "com.amazonaws.gamelift#InvalidRequestException":
4394
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4395
- case "NotFoundException":
4396
- case "com.amazonaws.gamelift#NotFoundException":
4397
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4398
- case "UnsupportedRegionException":
4399
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4400
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4401
- default:
4402
- const parsedBody = parsedOutput.body;
4403
- return throwDefaultError({
4404
- output,
4405
- parsedBody,
4406
- errorCode
4407
- });
4408
- }
4409
- }, "de_DescribeMatchmakingRuleSetsCommandError");
4410
2717
  var de_DescribePlayerSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
4411
2718
  if (output.statusCode >= 300) {
4412
- return de_DescribePlayerSessionsCommandError(output, context);
2719
+ return de_CommandError(output, context);
4413
2720
  }
4414
2721
  const data = await parseBody(output.body, context);
4415
2722
  let contents = {};
@@ -4420,37 +2727,9 @@ var de_DescribePlayerSessionsCommand = /* @__PURE__ */ __name(async (output, con
4420
2727
  };
4421
2728
  return response;
4422
2729
  }, "de_DescribePlayerSessionsCommand");
4423
- var de_DescribePlayerSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4424
- const parsedOutput = {
4425
- ...output,
4426
- body: await parseErrorBody(output.body, context)
4427
- };
4428
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4429
- switch (errorCode) {
4430
- case "InternalServiceException":
4431
- case "com.amazonaws.gamelift#InternalServiceException":
4432
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4433
- case "InvalidRequestException":
4434
- case "com.amazonaws.gamelift#InvalidRequestException":
4435
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4436
- case "NotFoundException":
4437
- case "com.amazonaws.gamelift#NotFoundException":
4438
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4439
- case "UnauthorizedException":
4440
- case "com.amazonaws.gamelift#UnauthorizedException":
4441
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4442
- default:
4443
- const parsedBody = parsedOutput.body;
4444
- return throwDefaultError({
4445
- output,
4446
- parsedBody,
4447
- errorCode
4448
- });
4449
- }
4450
- }, "de_DescribePlayerSessionsCommandError");
4451
2730
  var de_DescribeRuntimeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4452
2731
  if (output.statusCode >= 300) {
4453
- return de_DescribeRuntimeConfigurationCommandError(output, context);
2732
+ return de_CommandError(output, context);
4454
2733
  }
4455
2734
  const data = await parseBody(output.body, context);
4456
2735
  let contents = {};
@@ -4461,37 +2740,9 @@ var de_DescribeRuntimeConfigurationCommand = /* @__PURE__ */ __name(async (outpu
4461
2740
  };
4462
2741
  return response;
4463
2742
  }, "de_DescribeRuntimeConfigurationCommand");
4464
- var de_DescribeRuntimeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4465
- const parsedOutput = {
4466
- ...output,
4467
- body: await parseErrorBody(output.body, context)
4468
- };
4469
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4470
- switch (errorCode) {
4471
- case "InternalServiceException":
4472
- case "com.amazonaws.gamelift#InternalServiceException":
4473
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4474
- case "InvalidRequestException":
4475
- case "com.amazonaws.gamelift#InvalidRequestException":
4476
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4477
- case "NotFoundException":
4478
- case "com.amazonaws.gamelift#NotFoundException":
4479
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4480
- case "UnauthorizedException":
4481
- case "com.amazonaws.gamelift#UnauthorizedException":
4482
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4483
- default:
4484
- const parsedBody = parsedOutput.body;
4485
- return throwDefaultError({
4486
- output,
4487
- parsedBody,
4488
- errorCode
4489
- });
4490
- }
4491
- }, "de_DescribeRuntimeConfigurationCommandError");
4492
2743
  var de_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
4493
2744
  if (output.statusCode >= 300) {
4494
- return de_DescribeScalingPoliciesCommandError(output, context);
2745
+ return de_CommandError(output, context);
4495
2746
  }
4496
2747
  const data = await parseBody(output.body, context);
4497
2748
  let contents = {};
@@ -4502,40 +2753,9 @@ var de_DescribeScalingPoliciesCommand = /* @__PURE__ */ __name(async (output, co
4502
2753
  };
4503
2754
  return response;
4504
2755
  }, "de_DescribeScalingPoliciesCommand");
4505
- var de_DescribeScalingPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4506
- const parsedOutput = {
4507
- ...output,
4508
- body: await parseErrorBody(output.body, context)
4509
- };
4510
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4511
- switch (errorCode) {
4512
- case "InternalServiceException":
4513
- case "com.amazonaws.gamelift#InternalServiceException":
4514
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4515
- case "InvalidRequestException":
4516
- case "com.amazonaws.gamelift#InvalidRequestException":
4517
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4518
- case "NotFoundException":
4519
- case "com.amazonaws.gamelift#NotFoundException":
4520
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4521
- case "UnauthorizedException":
4522
- case "com.amazonaws.gamelift#UnauthorizedException":
4523
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4524
- case "UnsupportedRegionException":
4525
- case "com.amazonaws.gamelift#UnsupportedRegionException":
4526
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
4527
- default:
4528
- const parsedBody = parsedOutput.body;
4529
- return throwDefaultError({
4530
- output,
4531
- parsedBody,
4532
- errorCode
4533
- });
4534
- }
4535
- }, "de_DescribeScalingPoliciesCommandError");
4536
2756
  var de_DescribeScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
4537
2757
  if (output.statusCode >= 300) {
4538
- return de_DescribeScriptCommandError(output, context);
2758
+ return de_CommandError(output, context);
4539
2759
  }
4540
2760
  const data = await parseBody(output.body, context);
4541
2761
  let contents = {};
@@ -4546,37 +2766,9 @@ var de_DescribeScriptCommand = /* @__PURE__ */ __name(async (output, context) =>
4546
2766
  };
4547
2767
  return response;
4548
2768
  }, "de_DescribeScriptCommand");
4549
- var de_DescribeScriptCommandError = /* @__PURE__ */ __name(async (output, context) => {
4550
- const parsedOutput = {
4551
- ...output,
4552
- body: await parseErrorBody(output.body, context)
4553
- };
4554
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4555
- switch (errorCode) {
4556
- case "InternalServiceException":
4557
- case "com.amazonaws.gamelift#InternalServiceException":
4558
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4559
- case "InvalidRequestException":
4560
- case "com.amazonaws.gamelift#InvalidRequestException":
4561
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4562
- case "NotFoundException":
4563
- case "com.amazonaws.gamelift#NotFoundException":
4564
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4565
- case "UnauthorizedException":
4566
- case "com.amazonaws.gamelift#UnauthorizedException":
4567
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4568
- default:
4569
- const parsedBody = parsedOutput.body;
4570
- return throwDefaultError({
4571
- output,
4572
- parsedBody,
4573
- errorCode
4574
- });
4575
- }
4576
- }, "de_DescribeScriptCommandError");
4577
2769
  var de_DescribeVpcPeeringAuthorizationsCommand = /* @__PURE__ */ __name(async (output, context) => {
4578
2770
  if (output.statusCode >= 300) {
4579
- return de_DescribeVpcPeeringAuthorizationsCommandError(output, context);
2771
+ return de_CommandError(output, context);
4580
2772
  }
4581
2773
  const data = await parseBody(output.body, context);
4582
2774
  let contents = {};
@@ -4587,75 +2779,22 @@ var de_DescribeVpcPeeringAuthorizationsCommand = /* @__PURE__ */ __name(async (o
4587
2779
  };
4588
2780
  return response;
4589
2781
  }, "de_DescribeVpcPeeringAuthorizationsCommand");
4590
- var de_DescribeVpcPeeringAuthorizationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4591
- const parsedOutput = {
4592
- ...output,
4593
- body: await parseErrorBody(output.body, context)
4594
- };
4595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4596
- switch (errorCode) {
4597
- case "InternalServiceException":
4598
- case "com.amazonaws.gamelift#InternalServiceException":
4599
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4600
- case "InvalidRequestException":
4601
- case "com.amazonaws.gamelift#InvalidRequestException":
4602
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4603
- case "UnauthorizedException":
4604
- case "com.amazonaws.gamelift#UnauthorizedException":
4605
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4606
- default:
4607
- const parsedBody = parsedOutput.body;
4608
- return throwDefaultError({
4609
- output,
4610
- parsedBody,
4611
- errorCode
4612
- });
4613
- }
4614
- }, "de_DescribeVpcPeeringAuthorizationsCommandError");
4615
- var de_DescribeVpcPeeringConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
4616
- if (output.statusCode >= 300) {
4617
- return de_DescribeVpcPeeringConnectionsCommandError(output, context);
4618
- }
4619
- const data = await parseBody(output.body, context);
4620
- let contents = {};
4621
- contents = (0, import_smithy_client._json)(data);
4622
- const response = {
4623
- $metadata: deserializeMetadata(output),
4624
- ...contents
2782
+ var de_DescribeVpcPeeringConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2783
+ if (output.statusCode >= 300) {
2784
+ return de_CommandError(output, context);
2785
+ }
2786
+ const data = await parseBody(output.body, context);
2787
+ let contents = {};
2788
+ contents = (0, import_smithy_client._json)(data);
2789
+ const response = {
2790
+ $metadata: deserializeMetadata(output),
2791
+ ...contents
4625
2792
  };
4626
2793
  return response;
4627
2794
  }, "de_DescribeVpcPeeringConnectionsCommand");
4628
- var de_DescribeVpcPeeringConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4629
- const parsedOutput = {
4630
- ...output,
4631
- body: await parseErrorBody(output.body, context)
4632
- };
4633
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4634
- switch (errorCode) {
4635
- case "InternalServiceException":
4636
- case "com.amazonaws.gamelift#InternalServiceException":
4637
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4638
- case "InvalidRequestException":
4639
- case "com.amazonaws.gamelift#InvalidRequestException":
4640
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4641
- case "NotFoundException":
4642
- case "com.amazonaws.gamelift#NotFoundException":
4643
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4644
- case "UnauthorizedException":
4645
- case "com.amazonaws.gamelift#UnauthorizedException":
4646
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4647
- default:
4648
- const parsedBody = parsedOutput.body;
4649
- return throwDefaultError({
4650
- output,
4651
- parsedBody,
4652
- errorCode
4653
- });
4654
- }
4655
- }, "de_DescribeVpcPeeringConnectionsCommandError");
4656
2795
  var de_GetComputeAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
4657
2796
  if (output.statusCode >= 300) {
4658
- return de_GetComputeAccessCommandError(output, context);
2797
+ return de_CommandError(output, context);
4659
2798
  }
4660
2799
  const data = await parseBody(output.body, context);
4661
2800
  let contents = {};
@@ -4666,37 +2805,9 @@ var de_GetComputeAccessCommand = /* @__PURE__ */ __name(async (output, context)
4666
2805
  };
4667
2806
  return response;
4668
2807
  }, "de_GetComputeAccessCommand");
4669
- var de_GetComputeAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
4670
- const parsedOutput = {
4671
- ...output,
4672
- body: await parseErrorBody(output.body, context)
4673
- };
4674
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4675
- switch (errorCode) {
4676
- case "InternalServiceException":
4677
- case "com.amazonaws.gamelift#InternalServiceException":
4678
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4679
- case "InvalidRequestException":
4680
- case "com.amazonaws.gamelift#InvalidRequestException":
4681
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4682
- case "NotFoundException":
4683
- case "com.amazonaws.gamelift#NotFoundException":
4684
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4685
- case "UnauthorizedException":
4686
- case "com.amazonaws.gamelift#UnauthorizedException":
4687
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4688
- default:
4689
- const parsedBody = parsedOutput.body;
4690
- return throwDefaultError({
4691
- output,
4692
- parsedBody,
4693
- errorCode
4694
- });
4695
- }
4696
- }, "de_GetComputeAccessCommandError");
4697
2808
  var de_GetComputeAuthTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
4698
2809
  if (output.statusCode >= 300) {
4699
- return de_GetComputeAuthTokenCommandError(output, context);
2810
+ return de_CommandError(output, context);
4700
2811
  }
4701
2812
  const data = await parseBody(output.body, context);
4702
2813
  let contents = {};
@@ -4707,37 +2818,9 @@ var de_GetComputeAuthTokenCommand = /* @__PURE__ */ __name(async (output, contex
4707
2818
  };
4708
2819
  return response;
4709
2820
  }, "de_GetComputeAuthTokenCommand");
4710
- var de_GetComputeAuthTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
4711
- const parsedOutput = {
4712
- ...output,
4713
- body: await parseErrorBody(output.body, context)
4714
- };
4715
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4716
- switch (errorCode) {
4717
- case "InternalServiceException":
4718
- case "com.amazonaws.gamelift#InternalServiceException":
4719
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4720
- case "InvalidRequestException":
4721
- case "com.amazonaws.gamelift#InvalidRequestException":
4722
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4723
- case "NotFoundException":
4724
- case "com.amazonaws.gamelift#NotFoundException":
4725
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4726
- case "UnauthorizedException":
4727
- case "com.amazonaws.gamelift#UnauthorizedException":
4728
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4729
- default:
4730
- const parsedBody = parsedOutput.body;
4731
- return throwDefaultError({
4732
- output,
4733
- parsedBody,
4734
- errorCode
4735
- });
4736
- }
4737
- }, "de_GetComputeAuthTokenCommandError");
4738
2821
  var de_GetGameSessionLogUrlCommand = /* @__PURE__ */ __name(async (output, context) => {
4739
2822
  if (output.statusCode >= 300) {
4740
- return de_GetGameSessionLogUrlCommandError(output, context);
2823
+ return de_CommandError(output, context);
4741
2824
  }
4742
2825
  const data = await parseBody(output.body, context);
4743
2826
  let contents = {};
@@ -4748,37 +2831,9 @@ var de_GetGameSessionLogUrlCommand = /* @__PURE__ */ __name(async (output, conte
4748
2831
  };
4749
2832
  return response;
4750
2833
  }, "de_GetGameSessionLogUrlCommand");
4751
- var de_GetGameSessionLogUrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
4752
- const parsedOutput = {
4753
- ...output,
4754
- body: await parseErrorBody(output.body, context)
4755
- };
4756
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4757
- switch (errorCode) {
4758
- case "InternalServiceException":
4759
- case "com.amazonaws.gamelift#InternalServiceException":
4760
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4761
- case "InvalidRequestException":
4762
- case "com.amazonaws.gamelift#InvalidRequestException":
4763
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4764
- case "NotFoundException":
4765
- case "com.amazonaws.gamelift#NotFoundException":
4766
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4767
- case "UnauthorizedException":
4768
- case "com.amazonaws.gamelift#UnauthorizedException":
4769
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4770
- default:
4771
- const parsedBody = parsedOutput.body;
4772
- return throwDefaultError({
4773
- output,
4774
- parsedBody,
4775
- errorCode
4776
- });
4777
- }
4778
- }, "de_GetGameSessionLogUrlCommandError");
4779
2834
  var de_GetInstanceAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
4780
2835
  if (output.statusCode >= 300) {
4781
- return de_GetInstanceAccessCommandError(output, context);
2836
+ return de_CommandError(output, context);
4782
2837
  }
4783
2838
  const data = await parseBody(output.body, context);
4784
2839
  let contents = {};
@@ -4789,37 +2844,9 @@ var de_GetInstanceAccessCommand = /* @__PURE__ */ __name(async (output, context)
4789
2844
  };
4790
2845
  return response;
4791
2846
  }, "de_GetInstanceAccessCommand");
4792
- var de_GetInstanceAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
4793
- const parsedOutput = {
4794
- ...output,
4795
- body: await parseErrorBody(output.body, context)
4796
- };
4797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4798
- switch (errorCode) {
4799
- case "InternalServiceException":
4800
- case "com.amazonaws.gamelift#InternalServiceException":
4801
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4802
- case "InvalidRequestException":
4803
- case "com.amazonaws.gamelift#InvalidRequestException":
4804
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4805
- case "NotFoundException":
4806
- case "com.amazonaws.gamelift#NotFoundException":
4807
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4808
- case "UnauthorizedException":
4809
- case "com.amazonaws.gamelift#UnauthorizedException":
4810
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4811
- default:
4812
- const parsedBody = parsedOutput.body;
4813
- return throwDefaultError({
4814
- output,
4815
- parsedBody,
4816
- errorCode
4817
- });
4818
- }
4819
- }, "de_GetInstanceAccessCommandError");
4820
2847
  var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
4821
2848
  if (output.statusCode >= 300) {
4822
- return de_ListAliasesCommandError(output, context);
2849
+ return de_CommandError(output, context);
4823
2850
  }
4824
2851
  const data = await parseBody(output.body, context);
4825
2852
  let contents = {};
@@ -4830,34 +2857,9 @@ var de_ListAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
4830
2857
  };
4831
2858
  return response;
4832
2859
  }, "de_ListAliasesCommand");
4833
- var de_ListAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4834
- const parsedOutput = {
4835
- ...output,
4836
- body: await parseErrorBody(output.body, context)
4837
- };
4838
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4839
- switch (errorCode) {
4840
- case "InternalServiceException":
4841
- case "com.amazonaws.gamelift#InternalServiceException":
4842
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4843
- case "InvalidRequestException":
4844
- case "com.amazonaws.gamelift#InvalidRequestException":
4845
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4846
- case "UnauthorizedException":
4847
- case "com.amazonaws.gamelift#UnauthorizedException":
4848
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4849
- default:
4850
- const parsedBody = parsedOutput.body;
4851
- return throwDefaultError({
4852
- output,
4853
- parsedBody,
4854
- errorCode
4855
- });
4856
- }
4857
- }, "de_ListAliasesCommandError");
4858
2860
  var de_ListBuildsCommand = /* @__PURE__ */ __name(async (output, context) => {
4859
2861
  if (output.statusCode >= 300) {
4860
- return de_ListBuildsCommandError(output, context);
2862
+ return de_CommandError(output, context);
4861
2863
  }
4862
2864
  const data = await parseBody(output.body, context);
4863
2865
  let contents = {};
@@ -4868,34 +2870,9 @@ var de_ListBuildsCommand = /* @__PURE__ */ __name(async (output, context) => {
4868
2870
  };
4869
2871
  return response;
4870
2872
  }, "de_ListBuildsCommand");
4871
- var de_ListBuildsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4872
- const parsedOutput = {
4873
- ...output,
4874
- body: await parseErrorBody(output.body, context)
4875
- };
4876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4877
- switch (errorCode) {
4878
- case "InternalServiceException":
4879
- case "com.amazonaws.gamelift#InternalServiceException":
4880
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4881
- case "InvalidRequestException":
4882
- case "com.amazonaws.gamelift#InvalidRequestException":
4883
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4884
- case "UnauthorizedException":
4885
- case "com.amazonaws.gamelift#UnauthorizedException":
4886
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4887
- default:
4888
- const parsedBody = parsedOutput.body;
4889
- return throwDefaultError({
4890
- output,
4891
- parsedBody,
4892
- errorCode
4893
- });
4894
- }
4895
- }, "de_ListBuildsCommandError");
4896
2873
  var de_ListComputeCommand = /* @__PURE__ */ __name(async (output, context) => {
4897
2874
  if (output.statusCode >= 300) {
4898
- return de_ListComputeCommandError(output, context);
2875
+ return de_CommandError(output, context);
4899
2876
  }
4900
2877
  const data = await parseBody(output.body, context);
4901
2878
  let contents = {};
@@ -4906,34 +2883,9 @@ var de_ListComputeCommand = /* @__PURE__ */ __name(async (output, context) => {
4906
2883
  };
4907
2884
  return response;
4908
2885
  }, "de_ListComputeCommand");
4909
- var de_ListComputeCommandError = /* @__PURE__ */ __name(async (output, context) => {
4910
- const parsedOutput = {
4911
- ...output,
4912
- body: await parseErrorBody(output.body, context)
4913
- };
4914
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4915
- switch (errorCode) {
4916
- case "InternalServiceException":
4917
- case "com.amazonaws.gamelift#InternalServiceException":
4918
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4919
- case "InvalidRequestException":
4920
- case "com.amazonaws.gamelift#InvalidRequestException":
4921
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4922
- case "UnauthorizedException":
4923
- case "com.amazonaws.gamelift#UnauthorizedException":
4924
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4925
- default:
4926
- const parsedBody = parsedOutput.body;
4927
- return throwDefaultError({
4928
- output,
4929
- parsedBody,
4930
- errorCode
4931
- });
4932
- }
4933
- }, "de_ListComputeCommandError");
4934
2886
  var de_ListFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
4935
2887
  if (output.statusCode >= 300) {
4936
- return de_ListFleetsCommandError(output, context);
2888
+ return de_CommandError(output, context);
4937
2889
  }
4938
2890
  const data = await parseBody(output.body, context);
4939
2891
  let contents = {};
@@ -4944,37 +2896,9 @@ var de_ListFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
4944
2896
  };
4945
2897
  return response;
4946
2898
  }, "de_ListFleetsCommand");
4947
- var de_ListFleetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4948
- const parsedOutput = {
4949
- ...output,
4950
- body: await parseErrorBody(output.body, context)
4951
- };
4952
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4953
- switch (errorCode) {
4954
- case "InternalServiceException":
4955
- case "com.amazonaws.gamelift#InternalServiceException":
4956
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4957
- case "InvalidRequestException":
4958
- case "com.amazonaws.gamelift#InvalidRequestException":
4959
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
4960
- case "NotFoundException":
4961
- case "com.amazonaws.gamelift#NotFoundException":
4962
- throw await de_NotFoundExceptionRes(parsedOutput, context);
4963
- case "UnauthorizedException":
4964
- case "com.amazonaws.gamelift#UnauthorizedException":
4965
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
4966
- default:
4967
- const parsedBody = parsedOutput.body;
4968
- return throwDefaultError({
4969
- output,
4970
- parsedBody,
4971
- errorCode
4972
- });
4973
- }
4974
- }, "de_ListFleetsCommandError");
4975
2899
  var de_ListGameServerGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
4976
2900
  if (output.statusCode >= 300) {
4977
- return de_ListGameServerGroupsCommandError(output, context);
2901
+ return de_CommandError(output, context);
4978
2902
  }
4979
2903
  const data = await parseBody(output.body, context);
4980
2904
  let contents = {};
@@ -4985,34 +2909,9 @@ var de_ListGameServerGroupsCommand = /* @__PURE__ */ __name(async (output, conte
4985
2909
  };
4986
2910
  return response;
4987
2911
  }, "de_ListGameServerGroupsCommand");
4988
- var de_ListGameServerGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4989
- const parsedOutput = {
4990
- ...output,
4991
- body: await parseErrorBody(output.body, context)
4992
- };
4993
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4994
- switch (errorCode) {
4995
- case "InternalServiceException":
4996
- case "com.amazonaws.gamelift#InternalServiceException":
4997
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
4998
- case "InvalidRequestException":
4999
- case "com.amazonaws.gamelift#InvalidRequestException":
5000
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5001
- case "UnauthorizedException":
5002
- case "com.amazonaws.gamelift#UnauthorizedException":
5003
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5004
- default:
5005
- const parsedBody = parsedOutput.body;
5006
- return throwDefaultError({
5007
- output,
5008
- parsedBody,
5009
- errorCode
5010
- });
5011
- }
5012
- }, "de_ListGameServerGroupsCommandError");
5013
2912
  var de_ListGameServersCommand = /* @__PURE__ */ __name(async (output, context) => {
5014
2913
  if (output.statusCode >= 300) {
5015
- return de_ListGameServersCommandError(output, context);
2914
+ return de_CommandError(output, context);
5016
2915
  }
5017
2916
  const data = await parseBody(output.body, context);
5018
2917
  let contents = {};
@@ -5023,34 +2922,9 @@ var de_ListGameServersCommand = /* @__PURE__ */ __name(async (output, context) =
5023
2922
  };
5024
2923
  return response;
5025
2924
  }, "de_ListGameServersCommand");
5026
- var de_ListGameServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
5027
- const parsedOutput = {
5028
- ...output,
5029
- body: await parseErrorBody(output.body, context)
5030
- };
5031
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5032
- switch (errorCode) {
5033
- case "InternalServiceException":
5034
- case "com.amazonaws.gamelift#InternalServiceException":
5035
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5036
- case "InvalidRequestException":
5037
- case "com.amazonaws.gamelift#InvalidRequestException":
5038
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5039
- case "UnauthorizedException":
5040
- case "com.amazonaws.gamelift#UnauthorizedException":
5041
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5042
- default:
5043
- const parsedBody = parsedOutput.body;
5044
- return throwDefaultError({
5045
- output,
5046
- parsedBody,
5047
- errorCode
5048
- });
5049
- }
5050
- }, "de_ListGameServersCommandError");
5051
2925
  var de_ListLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
5052
2926
  if (output.statusCode >= 300) {
5053
- return de_ListLocationsCommandError(output, context);
2927
+ return de_CommandError(output, context);
5054
2928
  }
5055
2929
  const data = await parseBody(output.body, context);
5056
2930
  let contents = {};
@@ -5061,34 +2935,9 @@ var de_ListLocationsCommand = /* @__PURE__ */ __name(async (output, context) =>
5061
2935
  };
5062
2936
  return response;
5063
2937
  }, "de_ListLocationsCommand");
5064
- var de_ListLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5065
- const parsedOutput = {
5066
- ...output,
5067
- body: await parseErrorBody(output.body, context)
5068
- };
5069
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5070
- switch (errorCode) {
5071
- case "InternalServiceException":
5072
- case "com.amazonaws.gamelift#InternalServiceException":
5073
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5074
- case "InvalidRequestException":
5075
- case "com.amazonaws.gamelift#InvalidRequestException":
5076
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5077
- case "UnauthorizedException":
5078
- case "com.amazonaws.gamelift#UnauthorizedException":
5079
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5080
- default:
5081
- const parsedBody = parsedOutput.body;
5082
- return throwDefaultError({
5083
- output,
5084
- parsedBody,
5085
- errorCode
5086
- });
5087
- }
5088
- }, "de_ListLocationsCommandError");
5089
2938
  var de_ListScriptsCommand = /* @__PURE__ */ __name(async (output, context) => {
5090
2939
  if (output.statusCode >= 300) {
5091
- return de_ListScriptsCommandError(output, context);
2940
+ return de_CommandError(output, context);
5092
2941
  }
5093
2942
  const data = await parseBody(output.body, context);
5094
2943
  let contents = {};
@@ -5099,34 +2948,9 @@ var de_ListScriptsCommand = /* @__PURE__ */ __name(async (output, context) => {
5099
2948
  };
5100
2949
  return response;
5101
2950
  }, "de_ListScriptsCommand");
5102
- var de_ListScriptsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5103
- const parsedOutput = {
5104
- ...output,
5105
- body: await parseErrorBody(output.body, context)
5106
- };
5107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5108
- switch (errorCode) {
5109
- case "InternalServiceException":
5110
- case "com.amazonaws.gamelift#InternalServiceException":
5111
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5112
- case "InvalidRequestException":
5113
- case "com.amazonaws.gamelift#InvalidRequestException":
5114
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5115
- case "UnauthorizedException":
5116
- case "com.amazonaws.gamelift#UnauthorizedException":
5117
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5118
- default:
5119
- const parsedBody = parsedOutput.body;
5120
- return throwDefaultError({
5121
- output,
5122
- parsedBody,
5123
- errorCode
5124
- });
5125
- }
5126
- }, "de_ListScriptsCommandError");
5127
2951
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5128
2952
  if (output.statusCode >= 300) {
5129
- return de_ListTagsForResourceCommandError(output, context);
2953
+ return de_CommandError(output, context);
5130
2954
  }
5131
2955
  const data = await parseBody(output.body, context);
5132
2956
  let contents = {};
@@ -5137,37 +2961,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
5137
2961
  };
5138
2962
  return response;
5139
2963
  }, "de_ListTagsForResourceCommand");
5140
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5141
- const parsedOutput = {
5142
- ...output,
5143
- body: await parseErrorBody(output.body, context)
5144
- };
5145
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5146
- switch (errorCode) {
5147
- case "InternalServiceException":
5148
- case "com.amazonaws.gamelift#InternalServiceException":
5149
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5150
- case "InvalidRequestException":
5151
- case "com.amazonaws.gamelift#InvalidRequestException":
5152
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5153
- case "NotFoundException":
5154
- case "com.amazonaws.gamelift#NotFoundException":
5155
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5156
- case "TaggingFailedException":
5157
- case "com.amazonaws.gamelift#TaggingFailedException":
5158
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
5159
- default:
5160
- const parsedBody = parsedOutput.body;
5161
- return throwDefaultError({
5162
- output,
5163
- parsedBody,
5164
- errorCode
5165
- });
5166
- }
5167
- }, "de_ListTagsForResourceCommandError");
5168
2964
  var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
5169
2965
  if (output.statusCode >= 300) {
5170
- return de_PutScalingPolicyCommandError(output, context);
2966
+ return de_CommandError(output, context);
5171
2967
  }
5172
2968
  const data = await parseBody(output.body, context);
5173
2969
  let contents = {};
@@ -5178,37 +2974,9 @@ var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context)
5178
2974
  };
5179
2975
  return response;
5180
2976
  }, "de_PutScalingPolicyCommand");
5181
- var de_PutScalingPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
5182
- const parsedOutput = {
5183
- ...output,
5184
- body: await parseErrorBody(output.body, context)
5185
- };
5186
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5187
- switch (errorCode) {
5188
- case "InternalServiceException":
5189
- case "com.amazonaws.gamelift#InternalServiceException":
5190
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5191
- case "InvalidRequestException":
5192
- case "com.amazonaws.gamelift#InvalidRequestException":
5193
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5194
- case "NotFoundException":
5195
- case "com.amazonaws.gamelift#NotFoundException":
5196
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5197
- case "UnauthorizedException":
5198
- case "com.amazonaws.gamelift#UnauthorizedException":
5199
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5200
- default:
5201
- const parsedBody = parsedOutput.body;
5202
- return throwDefaultError({
5203
- output,
5204
- parsedBody,
5205
- errorCode
5206
- });
5207
- }
5208
- }, "de_PutScalingPolicyCommandError");
5209
2977
  var de_RegisterComputeCommand = /* @__PURE__ */ __name(async (output, context) => {
5210
2978
  if (output.statusCode >= 300) {
5211
- return de_RegisterComputeCommandError(output, context);
2979
+ return de_CommandError(output, context);
5212
2980
  }
5213
2981
  const data = await parseBody(output.body, context);
5214
2982
  let contents = {};
@@ -5219,40 +2987,9 @@ var de_RegisterComputeCommand = /* @__PURE__ */ __name(async (output, context) =
5219
2987
  };
5220
2988
  return response;
5221
2989
  }, "de_RegisterComputeCommand");
5222
- var de_RegisterComputeCommandError = /* @__PURE__ */ __name(async (output, context) => {
5223
- const parsedOutput = {
5224
- ...output,
5225
- body: await parseErrorBody(output.body, context)
5226
- };
5227
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5228
- switch (errorCode) {
5229
- case "ConflictException":
5230
- case "com.amazonaws.gamelift#ConflictException":
5231
- throw await de_ConflictExceptionRes(parsedOutput, context);
5232
- case "InternalServiceException":
5233
- case "com.amazonaws.gamelift#InternalServiceException":
5234
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5235
- case "InvalidRequestException":
5236
- case "com.amazonaws.gamelift#InvalidRequestException":
5237
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5238
- case "LimitExceededException":
5239
- case "com.amazonaws.gamelift#LimitExceededException":
5240
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
5241
- case "UnauthorizedException":
5242
- case "com.amazonaws.gamelift#UnauthorizedException":
5243
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5244
- default:
5245
- const parsedBody = parsedOutput.body;
5246
- return throwDefaultError({
5247
- output,
5248
- parsedBody,
5249
- errorCode
5250
- });
5251
- }
5252
- }, "de_RegisterComputeCommandError");
5253
2990
  var de_RegisterGameServerCommand = /* @__PURE__ */ __name(async (output, context) => {
5254
2991
  if (output.statusCode >= 300) {
5255
- return de_RegisterGameServerCommandError(output, context);
2992
+ return de_CommandError(output, context);
5256
2993
  }
5257
2994
  const data = await parseBody(output.body, context);
5258
2995
  let contents = {};
@@ -5263,40 +3000,9 @@ var de_RegisterGameServerCommand = /* @__PURE__ */ __name(async (output, context
5263
3000
  };
5264
3001
  return response;
5265
3002
  }, "de_RegisterGameServerCommand");
5266
- var de_RegisterGameServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
5267
- const parsedOutput = {
5268
- ...output,
5269
- body: await parseErrorBody(output.body, context)
5270
- };
5271
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5272
- switch (errorCode) {
5273
- case "ConflictException":
5274
- case "com.amazonaws.gamelift#ConflictException":
5275
- throw await de_ConflictExceptionRes(parsedOutput, context);
5276
- case "InternalServiceException":
5277
- case "com.amazonaws.gamelift#InternalServiceException":
5278
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5279
- case "InvalidRequestException":
5280
- case "com.amazonaws.gamelift#InvalidRequestException":
5281
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5282
- case "LimitExceededException":
5283
- case "com.amazonaws.gamelift#LimitExceededException":
5284
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
5285
- case "UnauthorizedException":
5286
- case "com.amazonaws.gamelift#UnauthorizedException":
5287
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5288
- default:
5289
- const parsedBody = parsedOutput.body;
5290
- return throwDefaultError({
5291
- output,
5292
- parsedBody,
5293
- errorCode
5294
- });
5295
- }
5296
- }, "de_RegisterGameServerCommandError");
5297
3003
  var de_RequestUploadCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
5298
3004
  if (output.statusCode >= 300) {
5299
- return de_RequestUploadCredentialsCommandError(output, context);
3005
+ return de_CommandError(output, context);
5300
3006
  }
5301
3007
  const data = await parseBody(output.body, context);
5302
3008
  let contents = {};
@@ -5307,37 +3013,9 @@ var de_RequestUploadCredentialsCommand = /* @__PURE__ */ __name(async (output, c
5307
3013
  };
5308
3014
  return response;
5309
3015
  }, "de_RequestUploadCredentialsCommand");
5310
- var de_RequestUploadCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5311
- const parsedOutput = {
5312
- ...output,
5313
- body: await parseErrorBody(output.body, context)
5314
- };
5315
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5316
- switch (errorCode) {
5317
- case "InternalServiceException":
5318
- case "com.amazonaws.gamelift#InternalServiceException":
5319
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5320
- case "InvalidRequestException":
5321
- case "com.amazonaws.gamelift#InvalidRequestException":
5322
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5323
- case "NotFoundException":
5324
- case "com.amazonaws.gamelift#NotFoundException":
5325
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5326
- case "UnauthorizedException":
5327
- case "com.amazonaws.gamelift#UnauthorizedException":
5328
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5329
- default:
5330
- const parsedBody = parsedOutput.body;
5331
- return throwDefaultError({
5332
- output,
5333
- parsedBody,
5334
- errorCode
5335
- });
5336
- }
5337
- }, "de_RequestUploadCredentialsCommandError");
5338
3016
  var de_ResolveAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
5339
3017
  if (output.statusCode >= 300) {
5340
- return de_ResolveAliasCommandError(output, context);
3018
+ return de_CommandError(output, context);
5341
3019
  }
5342
3020
  const data = await parseBody(output.body, context);
5343
3021
  let contents = {};
@@ -5348,40 +3026,9 @@ var de_ResolveAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
5348
3026
  };
5349
3027
  return response;
5350
3028
  }, "de_ResolveAliasCommand");
5351
- var de_ResolveAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
5352
- const parsedOutput = {
5353
- ...output,
5354
- body: await parseErrorBody(output.body, context)
5355
- };
5356
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5357
- switch (errorCode) {
5358
- case "InternalServiceException":
5359
- case "com.amazonaws.gamelift#InternalServiceException":
5360
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5361
- case "InvalidRequestException":
5362
- case "com.amazonaws.gamelift#InvalidRequestException":
5363
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5364
- case "NotFoundException":
5365
- case "com.amazonaws.gamelift#NotFoundException":
5366
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5367
- case "TerminalRoutingStrategyException":
5368
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
5369
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
5370
- case "UnauthorizedException":
5371
- case "com.amazonaws.gamelift#UnauthorizedException":
5372
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5373
- default:
5374
- const parsedBody = parsedOutput.body;
5375
- return throwDefaultError({
5376
- output,
5377
- parsedBody,
5378
- errorCode
5379
- });
5380
- }
5381
- }, "de_ResolveAliasCommandError");
5382
3029
  var de_ResumeGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
5383
3030
  if (output.statusCode >= 300) {
5384
- return de_ResumeGameServerGroupCommandError(output, context);
3031
+ return de_CommandError(output, context);
5385
3032
  }
5386
3033
  const data = await parseBody(output.body, context);
5387
3034
  let contents = {};
@@ -5392,37 +3039,9 @@ var de_ResumeGameServerGroupCommand = /* @__PURE__ */ __name(async (output, cont
5392
3039
  };
5393
3040
  return response;
5394
3041
  }, "de_ResumeGameServerGroupCommand");
5395
- var de_ResumeGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
5396
- const parsedOutput = {
5397
- ...output,
5398
- body: await parseErrorBody(output.body, context)
5399
- };
5400
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5401
- switch (errorCode) {
5402
- case "InternalServiceException":
5403
- case "com.amazonaws.gamelift#InternalServiceException":
5404
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5405
- case "InvalidRequestException":
5406
- case "com.amazonaws.gamelift#InvalidRequestException":
5407
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5408
- case "NotFoundException":
5409
- case "com.amazonaws.gamelift#NotFoundException":
5410
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5411
- case "UnauthorizedException":
5412
- case "com.amazonaws.gamelift#UnauthorizedException":
5413
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5414
- default:
5415
- const parsedBody = parsedOutput.body;
5416
- return throwDefaultError({
5417
- output,
5418
- parsedBody,
5419
- errorCode
5420
- });
5421
- }
5422
- }, "de_ResumeGameServerGroupCommandError");
5423
3042
  var de_SearchGameSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5424
3043
  if (output.statusCode >= 300) {
5425
- return de_SearchGameSessionsCommandError(output, context);
3044
+ return de_CommandError(output, context);
5426
3045
  }
5427
3046
  const data = await parseBody(output.body, context);
5428
3047
  let contents = {};
@@ -5433,43 +3052,9 @@ var de_SearchGameSessionsCommand = /* @__PURE__ */ __name(async (output, context
5433
3052
  };
5434
3053
  return response;
5435
3054
  }, "de_SearchGameSessionsCommand");
5436
- var de_SearchGameSessionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5437
- const parsedOutput = {
5438
- ...output,
5439
- body: await parseErrorBody(output.body, context)
5440
- };
5441
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5442
- switch (errorCode) {
5443
- case "InternalServiceException":
5444
- case "com.amazonaws.gamelift#InternalServiceException":
5445
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5446
- case "InvalidRequestException":
5447
- case "com.amazonaws.gamelift#InvalidRequestException":
5448
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5449
- case "NotFoundException":
5450
- case "com.amazonaws.gamelift#NotFoundException":
5451
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5452
- case "TerminalRoutingStrategyException":
5453
- case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
5454
- throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
5455
- case "UnauthorizedException":
5456
- case "com.amazonaws.gamelift#UnauthorizedException":
5457
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5458
- case "UnsupportedRegionException":
5459
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5460
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5461
- default:
5462
- const parsedBody = parsedOutput.body;
5463
- return throwDefaultError({
5464
- output,
5465
- parsedBody,
5466
- errorCode
5467
- });
5468
- }
5469
- }, "de_SearchGameSessionsCommandError");
5470
3055
  var de_StartFleetActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5471
3056
  if (output.statusCode >= 300) {
5472
- return de_StartFleetActionsCommandError(output, context);
3057
+ return de_CommandError(output, context);
5473
3058
  }
5474
3059
  const data = await parseBody(output.body, context);
5475
3060
  let contents = {};
@@ -5480,40 +3065,9 @@ var de_StartFleetActionsCommand = /* @__PURE__ */ __name(async (output, context)
5480
3065
  };
5481
3066
  return response;
5482
3067
  }, "de_StartFleetActionsCommand");
5483
- var de_StartFleetActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5484
- const parsedOutput = {
5485
- ...output,
5486
- body: await parseErrorBody(output.body, context)
5487
- };
5488
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5489
- switch (errorCode) {
5490
- case "InternalServiceException":
5491
- case "com.amazonaws.gamelift#InternalServiceException":
5492
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5493
- case "InvalidRequestException":
5494
- case "com.amazonaws.gamelift#InvalidRequestException":
5495
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5496
- case "NotFoundException":
5497
- case "com.amazonaws.gamelift#NotFoundException":
5498
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5499
- case "UnauthorizedException":
5500
- case "com.amazonaws.gamelift#UnauthorizedException":
5501
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5502
- case "UnsupportedRegionException":
5503
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5504
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5505
- default:
5506
- const parsedBody = parsedOutput.body;
5507
- return throwDefaultError({
5508
- output,
5509
- parsedBody,
5510
- errorCode
5511
- });
5512
- }
5513
- }, "de_StartFleetActionsCommandError");
5514
3068
  var de_StartGameSessionPlacementCommand = /* @__PURE__ */ __name(async (output, context) => {
5515
3069
  if (output.statusCode >= 300) {
5516
- return de_StartGameSessionPlacementCommandError(output, context);
3070
+ return de_CommandError(output, context);
5517
3071
  }
5518
3072
  const data = await parseBody(output.body, context);
5519
3073
  let contents = {};
@@ -5524,37 +3078,9 @@ var de_StartGameSessionPlacementCommand = /* @__PURE__ */ __name(async (output,
5524
3078
  };
5525
3079
  return response;
5526
3080
  }, "de_StartGameSessionPlacementCommand");
5527
- var de_StartGameSessionPlacementCommandError = /* @__PURE__ */ __name(async (output, context) => {
5528
- const parsedOutput = {
5529
- ...output,
5530
- body: await parseErrorBody(output.body, context)
5531
- };
5532
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5533
- switch (errorCode) {
5534
- case "InternalServiceException":
5535
- case "com.amazonaws.gamelift#InternalServiceException":
5536
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5537
- case "InvalidRequestException":
5538
- case "com.amazonaws.gamelift#InvalidRequestException":
5539
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5540
- case "NotFoundException":
5541
- case "com.amazonaws.gamelift#NotFoundException":
5542
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5543
- case "UnauthorizedException":
5544
- case "com.amazonaws.gamelift#UnauthorizedException":
5545
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5546
- default:
5547
- const parsedBody = parsedOutput.body;
5548
- return throwDefaultError({
5549
- output,
5550
- parsedBody,
5551
- errorCode
5552
- });
5553
- }
5554
- }, "de_StartGameSessionPlacementCommandError");
5555
3081
  var de_StartMatchBackfillCommand = /* @__PURE__ */ __name(async (output, context) => {
5556
3082
  if (output.statusCode >= 300) {
5557
- return de_StartMatchBackfillCommandError(output, context);
3083
+ return de_CommandError(output, context);
5558
3084
  }
5559
3085
  const data = await parseBody(output.body, context);
5560
3086
  let contents = {};
@@ -5565,37 +3091,9 @@ var de_StartMatchBackfillCommand = /* @__PURE__ */ __name(async (output, context
5565
3091
  };
5566
3092
  return response;
5567
3093
  }, "de_StartMatchBackfillCommand");
5568
- var de_StartMatchBackfillCommandError = /* @__PURE__ */ __name(async (output, context) => {
5569
- const parsedOutput = {
5570
- ...output,
5571
- body: await parseErrorBody(output.body, context)
5572
- };
5573
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5574
- switch (errorCode) {
5575
- case "InternalServiceException":
5576
- case "com.amazonaws.gamelift#InternalServiceException":
5577
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5578
- case "InvalidRequestException":
5579
- case "com.amazonaws.gamelift#InvalidRequestException":
5580
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5581
- case "NotFoundException":
5582
- case "com.amazonaws.gamelift#NotFoundException":
5583
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5584
- case "UnsupportedRegionException":
5585
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5586
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5587
- default:
5588
- const parsedBody = parsedOutput.body;
5589
- return throwDefaultError({
5590
- output,
5591
- parsedBody,
5592
- errorCode
5593
- });
5594
- }
5595
- }, "de_StartMatchBackfillCommandError");
5596
3094
  var de_StartMatchmakingCommand = /* @__PURE__ */ __name(async (output, context) => {
5597
3095
  if (output.statusCode >= 300) {
5598
- return de_StartMatchmakingCommandError(output, context);
3096
+ return de_CommandError(output, context);
5599
3097
  }
5600
3098
  const data = await parseBody(output.body, context);
5601
3099
  let contents = {};
@@ -5606,37 +3104,9 @@ var de_StartMatchmakingCommand = /* @__PURE__ */ __name(async (output, context)
5606
3104
  };
5607
3105
  return response;
5608
3106
  }, "de_StartMatchmakingCommand");
5609
- var de_StartMatchmakingCommandError = /* @__PURE__ */ __name(async (output, context) => {
5610
- const parsedOutput = {
5611
- ...output,
5612
- body: await parseErrorBody(output.body, context)
5613
- };
5614
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5615
- switch (errorCode) {
5616
- case "InternalServiceException":
5617
- case "com.amazonaws.gamelift#InternalServiceException":
5618
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5619
- case "InvalidRequestException":
5620
- case "com.amazonaws.gamelift#InvalidRequestException":
5621
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5622
- case "NotFoundException":
5623
- case "com.amazonaws.gamelift#NotFoundException":
5624
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5625
- case "UnsupportedRegionException":
5626
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5627
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5628
- default:
5629
- const parsedBody = parsedOutput.body;
5630
- return throwDefaultError({
5631
- output,
5632
- parsedBody,
5633
- errorCode
5634
- });
5635
- }
5636
- }, "de_StartMatchmakingCommandError");
5637
3107
  var de_StopFleetActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5638
3108
  if (output.statusCode >= 300) {
5639
- return de_StopFleetActionsCommandError(output, context);
3109
+ return de_CommandError(output, context);
5640
3110
  }
5641
3111
  const data = await parseBody(output.body, context);
5642
3112
  let contents = {};
@@ -5647,40 +3117,9 @@ var de_StopFleetActionsCommand = /* @__PURE__ */ __name(async (output, context)
5647
3117
  };
5648
3118
  return response;
5649
3119
  }, "de_StopFleetActionsCommand");
5650
- var de_StopFleetActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5651
- const parsedOutput = {
5652
- ...output,
5653
- body: await parseErrorBody(output.body, context)
5654
- };
5655
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5656
- switch (errorCode) {
5657
- case "InternalServiceException":
5658
- case "com.amazonaws.gamelift#InternalServiceException":
5659
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5660
- case "InvalidRequestException":
5661
- case "com.amazonaws.gamelift#InvalidRequestException":
5662
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5663
- case "NotFoundException":
5664
- case "com.amazonaws.gamelift#NotFoundException":
5665
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5666
- case "UnauthorizedException":
5667
- case "com.amazonaws.gamelift#UnauthorizedException":
5668
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5669
- case "UnsupportedRegionException":
5670
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5671
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5672
- default:
5673
- const parsedBody = parsedOutput.body;
5674
- return throwDefaultError({
5675
- output,
5676
- parsedBody,
5677
- errorCode
5678
- });
5679
- }
5680
- }, "de_StopFleetActionsCommandError");
5681
3120
  var de_StopGameSessionPlacementCommand = /* @__PURE__ */ __name(async (output, context) => {
5682
3121
  if (output.statusCode >= 300) {
5683
- return de_StopGameSessionPlacementCommandError(output, context);
3122
+ return de_CommandError(output, context);
5684
3123
  }
5685
3124
  const data = await parseBody(output.body, context);
5686
3125
  let contents = {};
@@ -5691,37 +3130,9 @@ var de_StopGameSessionPlacementCommand = /* @__PURE__ */ __name(async (output, c
5691
3130
  };
5692
3131
  return response;
5693
3132
  }, "de_StopGameSessionPlacementCommand");
5694
- var de_StopGameSessionPlacementCommandError = /* @__PURE__ */ __name(async (output, context) => {
5695
- const parsedOutput = {
5696
- ...output,
5697
- body: await parseErrorBody(output.body, context)
5698
- };
5699
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5700
- switch (errorCode) {
5701
- case "InternalServiceException":
5702
- case "com.amazonaws.gamelift#InternalServiceException":
5703
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5704
- case "InvalidRequestException":
5705
- case "com.amazonaws.gamelift#InvalidRequestException":
5706
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5707
- case "NotFoundException":
5708
- case "com.amazonaws.gamelift#NotFoundException":
5709
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5710
- case "UnauthorizedException":
5711
- case "com.amazonaws.gamelift#UnauthorizedException":
5712
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5713
- default:
5714
- const parsedBody = parsedOutput.body;
5715
- return throwDefaultError({
5716
- output,
5717
- parsedBody,
5718
- errorCode
5719
- });
5720
- }
5721
- }, "de_StopGameSessionPlacementCommandError");
5722
3133
  var de_StopMatchmakingCommand = /* @__PURE__ */ __name(async (output, context) => {
5723
3134
  if (output.statusCode >= 300) {
5724
- return de_StopMatchmakingCommandError(output, context);
3135
+ return de_CommandError(output, context);
5725
3136
  }
5726
3137
  const data = await parseBody(output.body, context);
5727
3138
  let contents = {};
@@ -5732,37 +3143,9 @@ var de_StopMatchmakingCommand = /* @__PURE__ */ __name(async (output, context) =
5732
3143
  };
5733
3144
  return response;
5734
3145
  }, "de_StopMatchmakingCommand");
5735
- var de_StopMatchmakingCommandError = /* @__PURE__ */ __name(async (output, context) => {
5736
- const parsedOutput = {
5737
- ...output,
5738
- body: await parseErrorBody(output.body, context)
5739
- };
5740
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5741
- switch (errorCode) {
5742
- case "InternalServiceException":
5743
- case "com.amazonaws.gamelift#InternalServiceException":
5744
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5745
- case "InvalidRequestException":
5746
- case "com.amazonaws.gamelift#InvalidRequestException":
5747
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5748
- case "NotFoundException":
5749
- case "com.amazonaws.gamelift#NotFoundException":
5750
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5751
- case "UnsupportedRegionException":
5752
- case "com.amazonaws.gamelift#UnsupportedRegionException":
5753
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
5754
- default:
5755
- const parsedBody = parsedOutput.body;
5756
- return throwDefaultError({
5757
- output,
5758
- parsedBody,
5759
- errorCode
5760
- });
5761
- }
5762
- }, "de_StopMatchmakingCommandError");
5763
3146
  var de_SuspendGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
5764
3147
  if (output.statusCode >= 300) {
5765
- return de_SuspendGameServerGroupCommandError(output, context);
3148
+ return de_CommandError(output, context);
5766
3149
  }
5767
3150
  const data = await parseBody(output.body, context);
5768
3151
  let contents = {};
@@ -5773,37 +3156,9 @@ var de_SuspendGameServerGroupCommand = /* @__PURE__ */ __name(async (output, con
5773
3156
  };
5774
3157
  return response;
5775
3158
  }, "de_SuspendGameServerGroupCommand");
5776
- var de_SuspendGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
5777
- const parsedOutput = {
5778
- ...output,
5779
- body: await parseErrorBody(output.body, context)
5780
- };
5781
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5782
- switch (errorCode) {
5783
- case "InternalServiceException":
5784
- case "com.amazonaws.gamelift#InternalServiceException":
5785
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5786
- case "InvalidRequestException":
5787
- case "com.amazonaws.gamelift#InvalidRequestException":
5788
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5789
- case "NotFoundException":
5790
- case "com.amazonaws.gamelift#NotFoundException":
5791
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5792
- case "UnauthorizedException":
5793
- case "com.amazonaws.gamelift#UnauthorizedException":
5794
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5795
- default:
5796
- const parsedBody = parsedOutput.body;
5797
- return throwDefaultError({
5798
- output,
5799
- parsedBody,
5800
- errorCode
5801
- });
5802
- }
5803
- }, "de_SuspendGameServerGroupCommandError");
5804
3159
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5805
3160
  if (output.statusCode >= 300) {
5806
- return de_TagResourceCommandError(output, context);
3161
+ return de_CommandError(output, context);
5807
3162
  }
5808
3163
  const data = await parseBody(output.body, context);
5809
3164
  let contents = {};
@@ -5814,37 +3169,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5814
3169
  };
5815
3170
  return response;
5816
3171
  }, "de_TagResourceCommand");
5817
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5818
- const parsedOutput = {
5819
- ...output,
5820
- body: await parseErrorBody(output.body, context)
5821
- };
5822
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5823
- switch (errorCode) {
5824
- case "InternalServiceException":
5825
- case "com.amazonaws.gamelift#InternalServiceException":
5826
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5827
- case "InvalidRequestException":
5828
- case "com.amazonaws.gamelift#InvalidRequestException":
5829
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5830
- case "NotFoundException":
5831
- case "com.amazonaws.gamelift#NotFoundException":
5832
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5833
- case "TaggingFailedException":
5834
- case "com.amazonaws.gamelift#TaggingFailedException":
5835
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
5836
- default:
5837
- const parsedBody = parsedOutput.body;
5838
- return throwDefaultError({
5839
- output,
5840
- parsedBody,
5841
- errorCode
5842
- });
5843
- }
5844
- }, "de_TagResourceCommandError");
5845
3172
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5846
3173
  if (output.statusCode >= 300) {
5847
- return de_UntagResourceCommandError(output, context);
3174
+ return de_CommandError(output, context);
5848
3175
  }
5849
3176
  const data = await parseBody(output.body, context);
5850
3177
  let contents = {};
@@ -5855,37 +3182,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
5855
3182
  };
5856
3183
  return response;
5857
3184
  }, "de_UntagResourceCommand");
5858
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5859
- const parsedOutput = {
5860
- ...output,
5861
- body: await parseErrorBody(output.body, context)
5862
- };
5863
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5864
- switch (errorCode) {
5865
- case "InternalServiceException":
5866
- case "com.amazonaws.gamelift#InternalServiceException":
5867
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5868
- case "InvalidRequestException":
5869
- case "com.amazonaws.gamelift#InvalidRequestException":
5870
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5871
- case "NotFoundException":
5872
- case "com.amazonaws.gamelift#NotFoundException":
5873
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5874
- case "TaggingFailedException":
5875
- case "com.amazonaws.gamelift#TaggingFailedException":
5876
- throw await de_TaggingFailedExceptionRes(parsedOutput, context);
5877
- default:
5878
- const parsedBody = parsedOutput.body;
5879
- return throwDefaultError({
5880
- output,
5881
- parsedBody,
5882
- errorCode
5883
- });
5884
- }
5885
- }, "de_UntagResourceCommandError");
5886
3185
  var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
5887
3186
  if (output.statusCode >= 300) {
5888
- return de_UpdateAliasCommandError(output, context);
3187
+ return de_CommandError(output, context);
5889
3188
  }
5890
3189
  const data = await parseBody(output.body, context);
5891
3190
  let contents = {};
@@ -5896,37 +3195,9 @@ var de_UpdateAliasCommand = /* @__PURE__ */ __name(async (output, context) => {
5896
3195
  };
5897
3196
  return response;
5898
3197
  }, "de_UpdateAliasCommand");
5899
- var de_UpdateAliasCommandError = /* @__PURE__ */ __name(async (output, context) => {
5900
- const parsedOutput = {
5901
- ...output,
5902
- body: await parseErrorBody(output.body, context)
5903
- };
5904
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5905
- switch (errorCode) {
5906
- case "InternalServiceException":
5907
- case "com.amazonaws.gamelift#InternalServiceException":
5908
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5909
- case "InvalidRequestException":
5910
- case "com.amazonaws.gamelift#InvalidRequestException":
5911
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5912
- case "NotFoundException":
5913
- case "com.amazonaws.gamelift#NotFoundException":
5914
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5915
- case "UnauthorizedException":
5916
- case "com.amazonaws.gamelift#UnauthorizedException":
5917
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5918
- default:
5919
- const parsedBody = parsedOutput.body;
5920
- return throwDefaultError({
5921
- output,
5922
- parsedBody,
5923
- errorCode
5924
- });
5925
- }
5926
- }, "de_UpdateAliasCommandError");
5927
3198
  var de_UpdateBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
5928
3199
  if (output.statusCode >= 300) {
5929
- return de_UpdateBuildCommandError(output, context);
3200
+ return de_CommandError(output, context);
5930
3201
  }
5931
3202
  const data = await parseBody(output.body, context);
5932
3203
  let contents = {};
@@ -5937,190 +3208,48 @@ var de_UpdateBuildCommand = /* @__PURE__ */ __name(async (output, context) => {
5937
3208
  };
5938
3209
  return response;
5939
3210
  }, "de_UpdateBuildCommand");
5940
- var de_UpdateBuildCommandError = /* @__PURE__ */ __name(async (output, context) => {
5941
- const parsedOutput = {
5942
- ...output,
5943
- body: await parseErrorBody(output.body, context)
5944
- };
5945
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5946
- switch (errorCode) {
5947
- case "InternalServiceException":
5948
- case "com.amazonaws.gamelift#InternalServiceException":
5949
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5950
- case "InvalidRequestException":
5951
- case "com.amazonaws.gamelift#InvalidRequestException":
5952
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
5953
- case "NotFoundException":
5954
- case "com.amazonaws.gamelift#NotFoundException":
5955
- throw await de_NotFoundExceptionRes(parsedOutput, context);
5956
- case "UnauthorizedException":
5957
- case "com.amazonaws.gamelift#UnauthorizedException":
5958
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
5959
- default:
5960
- const parsedBody = parsedOutput.body;
5961
- return throwDefaultError({
5962
- output,
5963
- parsedBody,
5964
- errorCode
5965
- });
5966
- }
5967
- }, "de_UpdateBuildCommandError");
5968
3211
  var de_UpdateFleetAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
5969
3212
  if (output.statusCode >= 300) {
5970
- return de_UpdateFleetAttributesCommandError(output, context);
5971
- }
5972
- const data = await parseBody(output.body, context);
5973
- let contents = {};
5974
- contents = (0, import_smithy_client._json)(data);
5975
- const response = {
5976
- $metadata: deserializeMetadata(output),
5977
- ...contents
5978
- };
5979
- return response;
5980
- }, "de_UpdateFleetAttributesCommand");
5981
- var de_UpdateFleetAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5982
- const parsedOutput = {
5983
- ...output,
5984
- body: await parseErrorBody(output.body, context)
5985
- };
5986
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5987
- switch (errorCode) {
5988
- case "ConflictException":
5989
- case "com.amazonaws.gamelift#ConflictException":
5990
- throw await de_ConflictExceptionRes(parsedOutput, context);
5991
- case "InternalServiceException":
5992
- case "com.amazonaws.gamelift#InternalServiceException":
5993
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
5994
- case "InvalidFleetStatusException":
5995
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
5996
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
5997
- case "InvalidRequestException":
5998
- case "com.amazonaws.gamelift#InvalidRequestException":
5999
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6000
- case "LimitExceededException":
6001
- case "com.amazonaws.gamelift#LimitExceededException":
6002
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6003
- case "NotFoundException":
6004
- case "com.amazonaws.gamelift#NotFoundException":
6005
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6006
- case "UnauthorizedException":
6007
- case "com.amazonaws.gamelift#UnauthorizedException":
6008
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6009
- default:
6010
- const parsedBody = parsedOutput.body;
6011
- return throwDefaultError({
6012
- output,
6013
- parsedBody,
6014
- errorCode
6015
- });
6016
- }
6017
- }, "de_UpdateFleetAttributesCommandError");
6018
- var de_UpdateFleetCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
6019
- if (output.statusCode >= 300) {
6020
- return de_UpdateFleetCapacityCommandError(output, context);
6021
- }
6022
- const data = await parseBody(output.body, context);
6023
- let contents = {};
6024
- contents = (0, import_smithy_client._json)(data);
6025
- const response = {
6026
- $metadata: deserializeMetadata(output),
6027
- ...contents
6028
- };
6029
- return response;
6030
- }, "de_UpdateFleetCapacityCommand");
6031
- var de_UpdateFleetCapacityCommandError = /* @__PURE__ */ __name(async (output, context) => {
6032
- const parsedOutput = {
6033
- ...output,
6034
- body: await parseErrorBody(output.body, context)
6035
- };
6036
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6037
- switch (errorCode) {
6038
- case "ConflictException":
6039
- case "com.amazonaws.gamelift#ConflictException":
6040
- throw await de_ConflictExceptionRes(parsedOutput, context);
6041
- case "InternalServiceException":
6042
- case "com.amazonaws.gamelift#InternalServiceException":
6043
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6044
- case "InvalidFleetStatusException":
6045
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
6046
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
6047
- case "InvalidRequestException":
6048
- case "com.amazonaws.gamelift#InvalidRequestException":
6049
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6050
- case "LimitExceededException":
6051
- case "com.amazonaws.gamelift#LimitExceededException":
6052
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6053
- case "NotFoundException":
6054
- case "com.amazonaws.gamelift#NotFoundException":
6055
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6056
- case "UnauthorizedException":
6057
- case "com.amazonaws.gamelift#UnauthorizedException":
6058
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6059
- case "UnsupportedRegionException":
6060
- case "com.amazonaws.gamelift#UnsupportedRegionException":
6061
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
6062
- default:
6063
- const parsedBody = parsedOutput.body;
6064
- return throwDefaultError({
6065
- output,
6066
- parsedBody,
6067
- errorCode
6068
- });
6069
- }
6070
- }, "de_UpdateFleetCapacityCommandError");
6071
- var de_UpdateFleetPortSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
6072
- if (output.statusCode >= 300) {
6073
- return de_UpdateFleetPortSettingsCommandError(output, context);
3213
+ return de_CommandError(output, context);
6074
3214
  }
6075
3215
  const data = await parseBody(output.body, context);
6076
3216
  let contents = {};
6077
3217
  contents = (0, import_smithy_client._json)(data);
6078
- const response = {
6079
- $metadata: deserializeMetadata(output),
6080
- ...contents
6081
- };
6082
- return response;
6083
- }, "de_UpdateFleetPortSettingsCommand");
6084
- var de_UpdateFleetPortSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
6085
- const parsedOutput = {
6086
- ...output,
6087
- body: await parseErrorBody(output.body, context)
6088
- };
6089
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6090
- switch (errorCode) {
6091
- case "ConflictException":
6092
- case "com.amazonaws.gamelift#ConflictException":
6093
- throw await de_ConflictExceptionRes(parsedOutput, context);
6094
- case "InternalServiceException":
6095
- case "com.amazonaws.gamelift#InternalServiceException":
6096
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6097
- case "InvalidFleetStatusException":
6098
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
6099
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
6100
- case "InvalidRequestException":
6101
- case "com.amazonaws.gamelift#InvalidRequestException":
6102
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6103
- case "LimitExceededException":
6104
- case "com.amazonaws.gamelift#LimitExceededException":
6105
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
6106
- case "NotFoundException":
6107
- case "com.amazonaws.gamelift#NotFoundException":
6108
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6109
- case "UnauthorizedException":
6110
- case "com.amazonaws.gamelift#UnauthorizedException":
6111
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6112
- default:
6113
- const parsedBody = parsedOutput.body;
6114
- return throwDefaultError({
6115
- output,
6116
- parsedBody,
6117
- errorCode
6118
- });
3218
+ const response = {
3219
+ $metadata: deserializeMetadata(output),
3220
+ ...contents
3221
+ };
3222
+ return response;
3223
+ }, "de_UpdateFleetAttributesCommand");
3224
+ var de_UpdateFleetCapacityCommand = /* @__PURE__ */ __name(async (output, context) => {
3225
+ if (output.statusCode >= 300) {
3226
+ return de_CommandError(output, context);
3227
+ }
3228
+ const data = await parseBody(output.body, context);
3229
+ let contents = {};
3230
+ contents = (0, import_smithy_client._json)(data);
3231
+ const response = {
3232
+ $metadata: deserializeMetadata(output),
3233
+ ...contents
3234
+ };
3235
+ return response;
3236
+ }, "de_UpdateFleetCapacityCommand");
3237
+ var de_UpdateFleetPortSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3238
+ if (output.statusCode >= 300) {
3239
+ return de_CommandError(output, context);
6119
3240
  }
6120
- }, "de_UpdateFleetPortSettingsCommandError");
3241
+ const data = await parseBody(output.body, context);
3242
+ let contents = {};
3243
+ contents = (0, import_smithy_client._json)(data);
3244
+ const response = {
3245
+ $metadata: deserializeMetadata(output),
3246
+ ...contents
3247
+ };
3248
+ return response;
3249
+ }, "de_UpdateFleetPortSettingsCommand");
6121
3250
  var de_UpdateGameServerCommand = /* @__PURE__ */ __name(async (output, context) => {
6122
3251
  if (output.statusCode >= 300) {
6123
- return de_UpdateGameServerCommandError(output, context);
3252
+ return de_CommandError(output, context);
6124
3253
  }
6125
3254
  const data = await parseBody(output.body, context);
6126
3255
  let contents = {};
@@ -6131,37 +3260,9 @@ var de_UpdateGameServerCommand = /* @__PURE__ */ __name(async (output, context)
6131
3260
  };
6132
3261
  return response;
6133
3262
  }, "de_UpdateGameServerCommand");
6134
- var de_UpdateGameServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
6135
- const parsedOutput = {
6136
- ...output,
6137
- body: await parseErrorBody(output.body, context)
6138
- };
6139
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6140
- switch (errorCode) {
6141
- case "InternalServiceException":
6142
- case "com.amazonaws.gamelift#InternalServiceException":
6143
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6144
- case "InvalidRequestException":
6145
- case "com.amazonaws.gamelift#InvalidRequestException":
6146
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6147
- case "NotFoundException":
6148
- case "com.amazonaws.gamelift#NotFoundException":
6149
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6150
- case "UnauthorizedException":
6151
- case "com.amazonaws.gamelift#UnauthorizedException":
6152
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6153
- default:
6154
- const parsedBody = parsedOutput.body;
6155
- return throwDefaultError({
6156
- output,
6157
- parsedBody,
6158
- errorCode
6159
- });
6160
- }
6161
- }, "de_UpdateGameServerCommandError");
6162
3263
  var de_UpdateGameServerGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
6163
3264
  if (output.statusCode >= 300) {
6164
- return de_UpdateGameServerGroupCommandError(output, context);
3265
+ return de_CommandError(output, context);
6165
3266
  }
6166
3267
  const data = await parseBody(output.body, context);
6167
3268
  let contents = {};
@@ -6172,37 +3273,9 @@ var de_UpdateGameServerGroupCommand = /* @__PURE__ */ __name(async (output, cont
6172
3273
  };
6173
3274
  return response;
6174
3275
  }, "de_UpdateGameServerGroupCommand");
6175
- var de_UpdateGameServerGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
6176
- const parsedOutput = {
6177
- ...output,
6178
- body: await parseErrorBody(output.body, context)
6179
- };
6180
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6181
- switch (errorCode) {
6182
- case "InternalServiceException":
6183
- case "com.amazonaws.gamelift#InternalServiceException":
6184
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6185
- case "InvalidRequestException":
6186
- case "com.amazonaws.gamelift#InvalidRequestException":
6187
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6188
- case "NotFoundException":
6189
- case "com.amazonaws.gamelift#NotFoundException":
6190
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6191
- case "UnauthorizedException":
6192
- case "com.amazonaws.gamelift#UnauthorizedException":
6193
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6194
- default:
6195
- const parsedBody = parsedOutput.body;
6196
- return throwDefaultError({
6197
- output,
6198
- parsedBody,
6199
- errorCode
6200
- });
6201
- }
6202
- }, "de_UpdateGameServerGroupCommandError");
6203
3276
  var de_UpdateGameSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
6204
3277
  if (output.statusCode >= 300) {
6205
- return de_UpdateGameSessionCommandError(output, context);
3278
+ return de_CommandError(output, context);
6206
3279
  }
6207
3280
  const data = await parseBody(output.body, context);
6208
3281
  let contents = {};
@@ -6213,43 +3286,9 @@ var de_UpdateGameSessionCommand = /* @__PURE__ */ __name(async (output, context)
6213
3286
  };
6214
3287
  return response;
6215
3288
  }, "de_UpdateGameSessionCommand");
6216
- var de_UpdateGameSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
6217
- const parsedOutput = {
6218
- ...output,
6219
- body: await parseErrorBody(output.body, context)
6220
- };
6221
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6222
- switch (errorCode) {
6223
- case "ConflictException":
6224
- case "com.amazonaws.gamelift#ConflictException":
6225
- throw await de_ConflictExceptionRes(parsedOutput, context);
6226
- case "InternalServiceException":
6227
- case "com.amazonaws.gamelift#InternalServiceException":
6228
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6229
- case "InvalidGameSessionStatusException":
6230
- case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
6231
- throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
6232
- case "InvalidRequestException":
6233
- case "com.amazonaws.gamelift#InvalidRequestException":
6234
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6235
- case "NotFoundException":
6236
- case "com.amazonaws.gamelift#NotFoundException":
6237
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6238
- case "UnauthorizedException":
6239
- case "com.amazonaws.gamelift#UnauthorizedException":
6240
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6241
- default:
6242
- const parsedBody = parsedOutput.body;
6243
- return throwDefaultError({
6244
- output,
6245
- parsedBody,
6246
- errorCode
6247
- });
6248
- }
6249
- }, "de_UpdateGameSessionCommandError");
6250
3289
  var de_UpdateGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, context) => {
6251
3290
  if (output.statusCode >= 300) {
6252
- return de_UpdateGameSessionQueueCommandError(output, context);
3291
+ return de_CommandError(output, context);
6253
3292
  }
6254
3293
  const data = await parseBody(output.body, context);
6255
3294
  let contents = {};
@@ -6260,37 +3299,9 @@ var de_UpdateGameSessionQueueCommand = /* @__PURE__ */ __name(async (output, con
6260
3299
  };
6261
3300
  return response;
6262
3301
  }, "de_UpdateGameSessionQueueCommand");
6263
- var de_UpdateGameSessionQueueCommandError = /* @__PURE__ */ __name(async (output, context) => {
6264
- const parsedOutput = {
6265
- ...output,
6266
- body: await parseErrorBody(output.body, context)
6267
- };
6268
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6269
- switch (errorCode) {
6270
- case "InternalServiceException":
6271
- case "com.amazonaws.gamelift#InternalServiceException":
6272
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6273
- case "InvalidRequestException":
6274
- case "com.amazonaws.gamelift#InvalidRequestException":
6275
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6276
- case "NotFoundException":
6277
- case "com.amazonaws.gamelift#NotFoundException":
6278
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6279
- case "UnauthorizedException":
6280
- case "com.amazonaws.gamelift#UnauthorizedException":
6281
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6282
- default:
6283
- const parsedBody = parsedOutput.body;
6284
- return throwDefaultError({
6285
- output,
6286
- parsedBody,
6287
- errorCode
6288
- });
6289
- }
6290
- }, "de_UpdateGameSessionQueueCommandError");
6291
3302
  var de_UpdateMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
6292
3303
  if (output.statusCode >= 300) {
6293
- return de_UpdateMatchmakingConfigurationCommandError(output, context);
3304
+ return de_CommandError(output, context);
6294
3305
  }
6295
3306
  const data = await parseBody(output.body, context);
6296
3307
  let contents = {};
@@ -6301,37 +3312,9 @@ var de_UpdateMatchmakingConfigurationCommand = /* @__PURE__ */ __name(async (out
6301
3312
  };
6302
3313
  return response;
6303
3314
  }, "de_UpdateMatchmakingConfigurationCommand");
6304
- var de_UpdateMatchmakingConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
6305
- const parsedOutput = {
6306
- ...output,
6307
- body: await parseErrorBody(output.body, context)
6308
- };
6309
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6310
- switch (errorCode) {
6311
- case "InternalServiceException":
6312
- case "com.amazonaws.gamelift#InternalServiceException":
6313
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6314
- case "InvalidRequestException":
6315
- case "com.amazonaws.gamelift#InvalidRequestException":
6316
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6317
- case "NotFoundException":
6318
- case "com.amazonaws.gamelift#NotFoundException":
6319
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6320
- case "UnsupportedRegionException":
6321
- case "com.amazonaws.gamelift#UnsupportedRegionException":
6322
- throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
6323
- default:
6324
- const parsedBody = parsedOutput.body;
6325
- return throwDefaultError({
6326
- output,
6327
- parsedBody,
6328
- errorCode
6329
- });
6330
- }
6331
- }, "de_UpdateMatchmakingConfigurationCommandError");
6332
3315
  var de_UpdateRuntimeConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
6333
3316
  if (output.statusCode >= 300) {
6334
- return de_UpdateRuntimeConfigurationCommandError(output, context);
3317
+ return de_CommandError(output, context);
6335
3318
  }
6336
3319
  const data = await parseBody(output.body, context);
6337
3320
  let contents = {};
@@ -6342,40 +3325,9 @@ var de_UpdateRuntimeConfigurationCommand = /* @__PURE__ */ __name(async (output,
6342
3325
  };
6343
3326
  return response;
6344
3327
  }, "de_UpdateRuntimeConfigurationCommand");
6345
- var de_UpdateRuntimeConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
6346
- const parsedOutput = {
6347
- ...output,
6348
- body: await parseErrorBody(output.body, context)
6349
- };
6350
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6351
- switch (errorCode) {
6352
- case "InternalServiceException":
6353
- case "com.amazonaws.gamelift#InternalServiceException":
6354
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6355
- case "InvalidFleetStatusException":
6356
- case "com.amazonaws.gamelift#InvalidFleetStatusException":
6357
- throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
6358
- case "InvalidRequestException":
6359
- case "com.amazonaws.gamelift#InvalidRequestException":
6360
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6361
- case "NotFoundException":
6362
- case "com.amazonaws.gamelift#NotFoundException":
6363
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6364
- case "UnauthorizedException":
6365
- case "com.amazonaws.gamelift#UnauthorizedException":
6366
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6367
- default:
6368
- const parsedBody = parsedOutput.body;
6369
- return throwDefaultError({
6370
- output,
6371
- parsedBody,
6372
- errorCode
6373
- });
6374
- }
6375
- }, "de_UpdateRuntimeConfigurationCommandError");
6376
3328
  var de_UpdateScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
6377
3329
  if (output.statusCode >= 300) {
6378
- return de_UpdateScriptCommandError(output, context);
3330
+ return de_CommandError(output, context);
6379
3331
  }
6380
3332
  const data = await parseBody(output.body, context);
6381
3333
  let contents = {};
@@ -6386,37 +3338,9 @@ var de_UpdateScriptCommand = /* @__PURE__ */ __name(async (output, context) => {
6386
3338
  };
6387
3339
  return response;
6388
3340
  }, "de_UpdateScriptCommand");
6389
- var de_UpdateScriptCommandError = /* @__PURE__ */ __name(async (output, context) => {
6390
- const parsedOutput = {
6391
- ...output,
6392
- body: await parseErrorBody(output.body, context)
6393
- };
6394
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6395
- switch (errorCode) {
6396
- case "InternalServiceException":
6397
- case "com.amazonaws.gamelift#InternalServiceException":
6398
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
6399
- case "InvalidRequestException":
6400
- case "com.amazonaws.gamelift#InvalidRequestException":
6401
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6402
- case "NotFoundException":
6403
- case "com.amazonaws.gamelift#NotFoundException":
6404
- throw await de_NotFoundExceptionRes(parsedOutput, context);
6405
- case "UnauthorizedException":
6406
- case "com.amazonaws.gamelift#UnauthorizedException":
6407
- throw await de_UnauthorizedExceptionRes(parsedOutput, context);
6408
- default:
6409
- const parsedBody = parsedOutput.body;
6410
- return throwDefaultError({
6411
- output,
6412
- parsedBody,
6413
- errorCode
6414
- });
6415
- }
6416
- }, "de_UpdateScriptCommandError");
6417
3341
  var de_ValidateMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output, context) => {
6418
3342
  if (output.statusCode >= 300) {
6419
- return de_ValidateMatchmakingRuleSetCommandError(output, context);
3343
+ return de_CommandError(output, context);
6420
3344
  }
6421
3345
  const data = await parseBody(output.body, context);
6422
3346
  let contents = {};
@@ -6427,7 +3351,7 @@ var de_ValidateMatchmakingRuleSetCommand = /* @__PURE__ */ __name(async (output,
6427
3351
  };
6428
3352
  return response;
6429
3353
  }, "de_ValidateMatchmakingRuleSetCommand");
6430
- var de_ValidateMatchmakingRuleSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3354
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
6431
3355
  const parsedOutput = {
6432
3356
  ...output,
6433
3357
  body: await parseErrorBody(output.body, context)
@@ -6440,9 +3364,45 @@ var de_ValidateMatchmakingRuleSetCommandError = /* @__PURE__ */ __name(async (ou
6440
3364
  case "InvalidRequestException":
6441
3365
  case "com.amazonaws.gamelift#InvalidRequestException":
6442
3366
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
3367
+ case "NotFoundException":
3368
+ case "com.amazonaws.gamelift#NotFoundException":
3369
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
6443
3370
  case "UnsupportedRegionException":
6444
3371
  case "com.amazonaws.gamelift#UnsupportedRegionException":
6445
3372
  throw await de_UnsupportedRegionExceptionRes(parsedOutput, context);
3373
+ case "ConflictException":
3374
+ case "com.amazonaws.gamelift#ConflictException":
3375
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3376
+ case "OutOfCapacityException":
3377
+ case "com.amazonaws.gamelift#OutOfCapacityException":
3378
+ throw await de_OutOfCapacityExceptionRes(parsedOutput, context);
3379
+ case "UnauthorizedException":
3380
+ case "com.amazonaws.gamelift#UnauthorizedException":
3381
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3382
+ case "LimitExceededException":
3383
+ case "com.amazonaws.gamelift#LimitExceededException":
3384
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3385
+ case "TaggingFailedException":
3386
+ case "com.amazonaws.gamelift#TaggingFailedException":
3387
+ throw await de_TaggingFailedExceptionRes(parsedOutput, context);
3388
+ case "InvalidFleetStatusException":
3389
+ case "com.amazonaws.gamelift#InvalidFleetStatusException":
3390
+ throw await de_InvalidFleetStatusExceptionRes(parsedOutput, context);
3391
+ case "FleetCapacityExceededException":
3392
+ case "com.amazonaws.gamelift#FleetCapacityExceededException":
3393
+ throw await de_FleetCapacityExceededExceptionRes(parsedOutput, context);
3394
+ case "IdempotentParameterMismatchException":
3395
+ case "com.amazonaws.gamelift#IdempotentParameterMismatchException":
3396
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
3397
+ case "TerminalRoutingStrategyException":
3398
+ case "com.amazonaws.gamelift#TerminalRoutingStrategyException":
3399
+ throw await de_TerminalRoutingStrategyExceptionRes(parsedOutput, context);
3400
+ case "GameSessionFullException":
3401
+ case "com.amazonaws.gamelift#GameSessionFullException":
3402
+ throw await de_GameSessionFullExceptionRes(parsedOutput, context);
3403
+ case "InvalidGameSessionStatusException":
3404
+ case "com.amazonaws.gamelift#InvalidGameSessionStatusException":
3405
+ throw await de_InvalidGameSessionStatusExceptionRes(parsedOutput, context);
6446
3406
  default:
6447
3407
  const parsedBody = parsedOutput.body;
6448
3408
  return throwDefaultError({
@@ -6451,7 +3411,7 @@ var de_ValidateMatchmakingRuleSetCommandError = /* @__PURE__ */ __name(async (ou
6451
3411
  errorCode
6452
3412
  });
6453
3413
  }
6454
- }, "de_ValidateMatchmakingRuleSetCommandError");
3414
+ }, "de_CommandError");
6455
3415
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
6456
3416
  const body = parsedOutput.body;
6457
3417
  const deserialized = (0, import_smithy_client._json)(body);