@aws-sdk/client-location 3.112.0 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +260 -209
- package/dist-es/protocols/Aws_restJson1.js +260 -209
- package/package.json +6 -6
|
@@ -2091,8 +2091,7 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
|
|
|
2091
2091
|
body: await parseBody(output.body, context),
|
|
2092
2092
|
};
|
|
2093
2093
|
let response;
|
|
2094
|
-
|
|
2095
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
2095
|
switch (errorCode) {
|
|
2097
2096
|
case "AccessDeniedException":
|
|
2098
2097
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2117,10 +2116,12 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
|
|
|
2117
2116
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2118
2117
|
default:
|
|
2119
2118
|
const parsedBody = parsedOutput.body;
|
|
2119
|
+
const $metadata = deserializeMetadata(output);
|
|
2120
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2120
2121
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2122
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2122
2123
|
$fault: "client",
|
|
2123
|
-
$metadata
|
|
2124
|
+
$metadata,
|
|
2124
2125
|
});
|
|
2125
2126
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2126
2127
|
}
|
|
@@ -2146,8 +2147,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
|
|
|
2146
2147
|
body: await parseBody(output.body, context),
|
|
2147
2148
|
};
|
|
2148
2149
|
let response;
|
|
2149
|
-
|
|
2150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2151
|
switch (errorCode) {
|
|
2152
2152
|
case "AccessDeniedException":
|
|
2153
2153
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2166,10 +2166,12 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
|
|
|
2166
2166
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2167
2167
|
default:
|
|
2168
2168
|
const parsedBody = parsedOutput.body;
|
|
2169
|
+
const $metadata = deserializeMetadata(output);
|
|
2170
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2169
2171
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2172
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2171
2173
|
$fault: "client",
|
|
2172
|
-
$metadata
|
|
2174
|
+
$metadata,
|
|
2173
2175
|
});
|
|
2174
2176
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2175
2177
|
}
|
|
@@ -2195,8 +2197,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
|
|
|
2195
2197
|
body: await parseBody(output.body, context),
|
|
2196
2198
|
};
|
|
2197
2199
|
let response;
|
|
2198
|
-
|
|
2199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
2201
|
switch (errorCode) {
|
|
2201
2202
|
case "AccessDeniedException":
|
|
2202
2203
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2215,10 +2216,12 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
|
|
|
2215
2216
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2216
2217
|
default:
|
|
2217
2218
|
const parsedBody = parsedOutput.body;
|
|
2219
|
+
const $metadata = deserializeMetadata(output);
|
|
2220
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2218
2221
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2222
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2220
2223
|
$fault: "client",
|
|
2221
|
-
$metadata
|
|
2224
|
+
$metadata,
|
|
2222
2225
|
});
|
|
2223
2226
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2224
2227
|
}
|
|
@@ -2244,8 +2247,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
|
|
|
2244
2247
|
body: await parseBody(output.body, context),
|
|
2245
2248
|
};
|
|
2246
2249
|
let response;
|
|
2247
|
-
|
|
2248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2250
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
2251
|
switch (errorCode) {
|
|
2250
2252
|
case "AccessDeniedException":
|
|
2251
2253
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2264,10 +2266,12 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
|
|
|
2264
2266
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2265
2267
|
default:
|
|
2266
2268
|
const parsedBody = parsedOutput.body;
|
|
2269
|
+
const $metadata = deserializeMetadata(output);
|
|
2270
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2267
2271
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2272
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2269
2273
|
$fault: "client",
|
|
2270
|
-
$metadata
|
|
2274
|
+
$metadata,
|
|
2271
2275
|
});
|
|
2272
2276
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2273
2277
|
}
|
|
@@ -2297,8 +2301,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
|
|
|
2297
2301
|
body: await parseBody(output.body, context),
|
|
2298
2302
|
};
|
|
2299
2303
|
let response;
|
|
2300
|
-
|
|
2301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2305
|
switch (errorCode) {
|
|
2303
2306
|
case "AccessDeniedException":
|
|
2304
2307
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2317,10 +2320,12 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
|
|
|
2317
2320
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2318
2321
|
default:
|
|
2319
2322
|
const parsedBody = parsedOutput.body;
|
|
2323
|
+
const $metadata = deserializeMetadata(output);
|
|
2324
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2320
2325
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2326
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2322
2327
|
$fault: "client",
|
|
2323
|
-
$metadata
|
|
2328
|
+
$metadata,
|
|
2324
2329
|
});
|
|
2325
2330
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2326
2331
|
}
|
|
@@ -2350,8 +2355,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
|
|
|
2350
2355
|
body: await parseBody(output.body, context),
|
|
2351
2356
|
};
|
|
2352
2357
|
let response;
|
|
2353
|
-
|
|
2354
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2359
|
switch (errorCode) {
|
|
2356
2360
|
case "AccessDeniedException":
|
|
2357
2361
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2370,10 +2374,12 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
|
|
|
2370
2374
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2371
2375
|
default:
|
|
2372
2376
|
const parsedBody = parsedOutput.body;
|
|
2377
|
+
const $metadata = deserializeMetadata(output);
|
|
2378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2373
2379
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2375
2381
|
$fault: "client",
|
|
2376
|
-
$metadata
|
|
2382
|
+
$metadata,
|
|
2377
2383
|
});
|
|
2378
2384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2379
2385
|
}
|
|
@@ -2399,8 +2405,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
|
|
|
2399
2405
|
body: await parseBody(output.body, context),
|
|
2400
2406
|
};
|
|
2401
2407
|
let response;
|
|
2402
|
-
|
|
2403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2409
|
switch (errorCode) {
|
|
2405
2410
|
case "AccessDeniedException":
|
|
2406
2411
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2419,10 +2424,12 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
|
|
|
2419
2424
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2420
2425
|
default:
|
|
2421
2426
|
const parsedBody = parsedOutput.body;
|
|
2427
|
+
const $metadata = deserializeMetadata(output);
|
|
2428
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2422
2429
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2430
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2424
2431
|
$fault: "client",
|
|
2425
|
-
$metadata
|
|
2432
|
+
$metadata,
|
|
2426
2433
|
});
|
|
2427
2434
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2428
2435
|
}
|
|
@@ -2452,8 +2459,7 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
|
|
|
2452
2459
|
body: await parseBody(output.body, context),
|
|
2453
2460
|
};
|
|
2454
2461
|
let response;
|
|
2455
|
-
|
|
2456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
2463
|
switch (errorCode) {
|
|
2458
2464
|
case "AccessDeniedException":
|
|
2459
2465
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2472,10 +2478,12 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
|
|
|
2472
2478
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2473
2479
|
default:
|
|
2474
2480
|
const parsedBody = parsedOutput.body;
|
|
2481
|
+
const $metadata = deserializeMetadata(output);
|
|
2482
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2475
2483
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2484
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2477
2485
|
$fault: "client",
|
|
2478
|
-
$metadata
|
|
2486
|
+
$metadata,
|
|
2479
2487
|
});
|
|
2480
2488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2481
2489
|
}
|
|
@@ -2513,8 +2521,7 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
|
|
|
2513
2521
|
body: await parseBody(output.body, context),
|
|
2514
2522
|
};
|
|
2515
2523
|
let response;
|
|
2516
|
-
|
|
2517
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
2525
|
switch (errorCode) {
|
|
2519
2526
|
case "AccessDeniedException":
|
|
2520
2527
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2533,10 +2540,12 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
|
|
|
2533
2540
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2534
2541
|
default:
|
|
2535
2542
|
const parsedBody = parsedOutput.body;
|
|
2543
|
+
const $metadata = deserializeMetadata(output);
|
|
2544
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2536
2545
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2546
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2538
2547
|
$fault: "client",
|
|
2539
|
-
$metadata
|
|
2548
|
+
$metadata,
|
|
2540
2549
|
});
|
|
2541
2550
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2542
2551
|
}
|
|
@@ -2570,8 +2579,7 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
|
|
|
2570
2579
|
body: await parseBody(output.body, context),
|
|
2571
2580
|
};
|
|
2572
2581
|
let response;
|
|
2573
|
-
|
|
2574
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
2583
|
switch (errorCode) {
|
|
2576
2584
|
case "AccessDeniedException":
|
|
2577
2585
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2590,10 +2598,12 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
|
|
|
2590
2598
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2591
2599
|
default:
|
|
2592
2600
|
const parsedBody = parsedOutput.body;
|
|
2601
|
+
const $metadata = deserializeMetadata(output);
|
|
2602
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2593
2603
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2604
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2595
2605
|
$fault: "client",
|
|
2596
|
-
$metadata
|
|
2606
|
+
$metadata,
|
|
2597
2607
|
});
|
|
2598
2608
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2599
2609
|
}
|
|
@@ -2627,8 +2637,7 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
|
|
|
2627
2637
|
body: await parseBody(output.body, context),
|
|
2628
2638
|
};
|
|
2629
2639
|
let response;
|
|
2630
|
-
|
|
2631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
2641
|
switch (errorCode) {
|
|
2633
2642
|
case "AccessDeniedException":
|
|
2634
2643
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2647,10 +2656,12 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
|
|
|
2647
2656
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2648
2657
|
default:
|
|
2649
2658
|
const parsedBody = parsedOutput.body;
|
|
2659
|
+
const $metadata = deserializeMetadata(output);
|
|
2660
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2650
2661
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2662
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2652
2663
|
$fault: "client",
|
|
2653
|
-
$metadata
|
|
2664
|
+
$metadata,
|
|
2654
2665
|
});
|
|
2655
2666
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2656
2667
|
}
|
|
@@ -2684,8 +2695,7 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
|
|
|
2684
2695
|
body: await parseBody(output.body, context),
|
|
2685
2696
|
};
|
|
2686
2697
|
let response;
|
|
2687
|
-
|
|
2688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2698
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
2699
|
switch (errorCode) {
|
|
2690
2700
|
case "AccessDeniedException":
|
|
2691
2701
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2704,10 +2714,12 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
|
|
|
2704
2714
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2705
2715
|
default:
|
|
2706
2716
|
const parsedBody = parsedOutput.body;
|
|
2717
|
+
const $metadata = deserializeMetadata(output);
|
|
2718
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2707
2719
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2720
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2709
2721
|
$fault: "client",
|
|
2710
|
-
$metadata
|
|
2722
|
+
$metadata,
|
|
2711
2723
|
});
|
|
2712
2724
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2713
2725
|
}
|
|
@@ -2741,8 +2753,7 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
|
|
|
2741
2753
|
body: await parseBody(output.body, context),
|
|
2742
2754
|
};
|
|
2743
2755
|
let response;
|
|
2744
|
-
|
|
2745
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
2757
|
switch (errorCode) {
|
|
2747
2758
|
case "AccessDeniedException":
|
|
2748
2759
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2761,10 +2772,12 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
|
|
|
2761
2772
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2762
2773
|
default:
|
|
2763
2774
|
const parsedBody = parsedOutput.body;
|
|
2775
|
+
const $metadata = deserializeMetadata(output);
|
|
2776
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2764
2777
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2778
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2766
2779
|
$fault: "client",
|
|
2767
|
-
$metadata
|
|
2780
|
+
$metadata,
|
|
2768
2781
|
});
|
|
2769
2782
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2770
2783
|
}
|
|
@@ -2798,8 +2811,7 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
|
|
|
2798
2811
|
body: await parseBody(output.body, context),
|
|
2799
2812
|
};
|
|
2800
2813
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2815
|
switch (errorCode) {
|
|
2804
2816
|
case "AccessDeniedException":
|
|
2805
2817
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2818,10 +2830,12 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
|
|
|
2818
2830
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2819
2831
|
default:
|
|
2820
2832
|
const parsedBody = parsedOutput.body;
|
|
2833
|
+
const $metadata = deserializeMetadata(output);
|
|
2834
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2821
2835
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2822
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2836
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2823
2837
|
$fault: "client",
|
|
2824
|
-
$metadata
|
|
2838
|
+
$metadata,
|
|
2825
2839
|
});
|
|
2826
2840
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2827
2841
|
}
|
|
@@ -2843,8 +2857,7 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
|
|
|
2843
2857
|
body: await parseBody(output.body, context),
|
|
2844
2858
|
};
|
|
2845
2859
|
let response;
|
|
2846
|
-
|
|
2847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2860
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2861
|
switch (errorCode) {
|
|
2849
2862
|
case "AccessDeniedException":
|
|
2850
2863
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2863,10 +2876,12 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
|
|
|
2863
2876
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2864
2877
|
default:
|
|
2865
2878
|
const parsedBody = parsedOutput.body;
|
|
2879
|
+
const $metadata = deserializeMetadata(output);
|
|
2880
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2881
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2867
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2882
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2883
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2884
|
+
$metadata,
|
|
2870
2885
|
});
|
|
2871
2886
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2872
2887
|
}
|
|
@@ -2888,8 +2903,7 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
|
|
|
2888
2903
|
body: await parseBody(output.body, context),
|
|
2889
2904
|
};
|
|
2890
2905
|
let response;
|
|
2891
|
-
|
|
2892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2906
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
2907
|
switch (errorCode) {
|
|
2894
2908
|
case "AccessDeniedException":
|
|
2895
2909
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2908,10 +2922,12 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
|
|
|
2908
2922
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2909
2923
|
default:
|
|
2910
2924
|
const parsedBody = parsedOutput.body;
|
|
2925
|
+
const $metadata = deserializeMetadata(output);
|
|
2926
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2911
2927
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2928
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2913
2929
|
$fault: "client",
|
|
2914
|
-
$metadata
|
|
2930
|
+
$metadata,
|
|
2915
2931
|
});
|
|
2916
2932
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2917
2933
|
}
|
|
@@ -2933,8 +2949,7 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
|
|
|
2933
2949
|
body: await parseBody(output.body, context),
|
|
2934
2950
|
};
|
|
2935
2951
|
let response;
|
|
2936
|
-
|
|
2937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2938
2953
|
switch (errorCode) {
|
|
2939
2954
|
case "AccessDeniedException":
|
|
2940
2955
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2953,10 +2968,12 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
|
|
|
2953
2968
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2954
2969
|
default:
|
|
2955
2970
|
const parsedBody = parsedOutput.body;
|
|
2971
|
+
const $metadata = deserializeMetadata(output);
|
|
2972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2956
2973
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2957
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2958
2975
|
$fault: "client",
|
|
2959
|
-
$metadata
|
|
2976
|
+
$metadata,
|
|
2960
2977
|
});
|
|
2961
2978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2962
2979
|
}
|
|
@@ -2978,8 +2995,7 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
|
|
|
2978
2995
|
body: await parseBody(output.body, context),
|
|
2979
2996
|
};
|
|
2980
2997
|
let response;
|
|
2981
|
-
|
|
2982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2998
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
2999
|
switch (errorCode) {
|
|
2984
3000
|
case "AccessDeniedException":
|
|
2985
3001
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2998,10 +3014,12 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
|
|
|
2998
3014
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2999
3015
|
default:
|
|
3000
3016
|
const parsedBody = parsedOutput.body;
|
|
3017
|
+
const $metadata = deserializeMetadata(output);
|
|
3018
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3001
3019
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3002
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3020
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3003
3021
|
$fault: "client",
|
|
3004
|
-
$metadata
|
|
3022
|
+
$metadata,
|
|
3005
3023
|
});
|
|
3006
3024
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3007
3025
|
}
|
|
@@ -3023,8 +3041,7 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
|
|
|
3023
3041
|
body: await parseBody(output.body, context),
|
|
3024
3042
|
};
|
|
3025
3043
|
let response;
|
|
3026
|
-
|
|
3027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3044
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
3045
|
switch (errorCode) {
|
|
3029
3046
|
case "AccessDeniedException":
|
|
3030
3047
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3043,10 +3060,12 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
|
|
|
3043
3060
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3044
3061
|
default:
|
|
3045
3062
|
const parsedBody = parsedOutput.body;
|
|
3063
|
+
const $metadata = deserializeMetadata(output);
|
|
3064
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3046
3065
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3066
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3048
3067
|
$fault: "client",
|
|
3049
|
-
$metadata
|
|
3068
|
+
$metadata,
|
|
3050
3069
|
});
|
|
3051
3070
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3052
3071
|
}
|
|
@@ -3104,8 +3123,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
|
|
|
3104
3123
|
body: await parseBody(output.body, context),
|
|
3105
3124
|
};
|
|
3106
3125
|
let response;
|
|
3107
|
-
|
|
3108
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3126
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
3127
|
switch (errorCode) {
|
|
3110
3128
|
case "AccessDeniedException":
|
|
3111
3129
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3124,10 +3142,12 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
|
|
|
3124
3142
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3125
3143
|
default:
|
|
3126
3144
|
const parsedBody = parsedOutput.body;
|
|
3145
|
+
const $metadata = deserializeMetadata(output);
|
|
3146
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3127
3147
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3148
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3129
3149
|
$fault: "client",
|
|
3130
|
-
$metadata
|
|
3150
|
+
$metadata,
|
|
3131
3151
|
});
|
|
3132
3152
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3133
3153
|
}
|
|
@@ -3185,8 +3205,7 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
|
|
|
3185
3205
|
body: await parseBody(output.body, context),
|
|
3186
3206
|
};
|
|
3187
3207
|
let response;
|
|
3188
|
-
|
|
3189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
3209
|
switch (errorCode) {
|
|
3191
3210
|
case "AccessDeniedException":
|
|
3192
3211
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3205,10 +3224,12 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
|
|
|
3205
3224
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3206
3225
|
default:
|
|
3207
3226
|
const parsedBody = parsedOutput.body;
|
|
3227
|
+
const $metadata = deserializeMetadata(output);
|
|
3228
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3208
3229
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3230
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3210
3231
|
$fault: "client",
|
|
3211
|
-
$metadata
|
|
3232
|
+
$metadata,
|
|
3212
3233
|
});
|
|
3213
3234
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3214
3235
|
}
|
|
@@ -3266,8 +3287,7 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
|
|
|
3266
3287
|
body: await parseBody(output.body, context),
|
|
3267
3288
|
};
|
|
3268
3289
|
let response;
|
|
3269
|
-
|
|
3270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3271
3291
|
switch (errorCode) {
|
|
3272
3292
|
case "AccessDeniedException":
|
|
3273
3293
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3286,10 +3306,12 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
|
|
|
3286
3306
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3287
3307
|
default:
|
|
3288
3308
|
const parsedBody = parsedOutput.body;
|
|
3309
|
+
const $metadata = deserializeMetadata(output);
|
|
3310
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3311
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3312
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3313
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3314
|
+
$metadata,
|
|
3293
3315
|
});
|
|
3294
3316
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3317
|
}
|
|
@@ -3343,8 +3365,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
|
|
|
3343
3365
|
body: await parseBody(output.body, context),
|
|
3344
3366
|
};
|
|
3345
3367
|
let response;
|
|
3346
|
-
|
|
3347
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3368
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
3369
|
switch (errorCode) {
|
|
3349
3370
|
case "AccessDeniedException":
|
|
3350
3371
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3363,10 +3384,12 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
|
|
|
3363
3384
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3364
3385
|
default:
|
|
3365
3386
|
const parsedBody = parsedOutput.body;
|
|
3387
|
+
const $metadata = deserializeMetadata(output);
|
|
3388
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3366
3389
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3390
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3368
3391
|
$fault: "client",
|
|
3369
|
-
$metadata
|
|
3392
|
+
$metadata,
|
|
3370
3393
|
});
|
|
3371
3394
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3372
3395
|
}
|
|
@@ -3428,8 +3451,7 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
|
|
|
3428
3451
|
body: await parseBody(output.body, context),
|
|
3429
3452
|
};
|
|
3430
3453
|
let response;
|
|
3431
|
-
|
|
3432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3454
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
3455
|
switch (errorCode) {
|
|
3434
3456
|
case "AccessDeniedException":
|
|
3435
3457
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3448,10 +3470,12 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
|
|
|
3448
3470
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3449
3471
|
default:
|
|
3450
3472
|
const parsedBody = parsedOutput.body;
|
|
3473
|
+
const $metadata = deserializeMetadata(output);
|
|
3474
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3451
3475
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3476
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3453
3477
|
$fault: "client",
|
|
3454
|
-
$metadata
|
|
3478
|
+
$metadata,
|
|
3455
3479
|
});
|
|
3456
3480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3457
3481
|
}
|
|
@@ -3473,8 +3497,7 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
|
|
|
3473
3497
|
body: await parseBody(output.body, context),
|
|
3474
3498
|
};
|
|
3475
3499
|
let response;
|
|
3476
|
-
|
|
3477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3500
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3478
3501
|
switch (errorCode) {
|
|
3479
3502
|
case "AccessDeniedException":
|
|
3480
3503
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3493,10 +3516,12 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
|
|
|
3493
3516
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3494
3517
|
default:
|
|
3495
3518
|
const parsedBody = parsedOutput.body;
|
|
3519
|
+
const $metadata = deserializeMetadata(output);
|
|
3520
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3496
3521
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3498
3523
|
$fault: "client",
|
|
3499
|
-
$metadata
|
|
3524
|
+
$metadata,
|
|
3500
3525
|
});
|
|
3501
3526
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3502
3527
|
}
|
|
@@ -3542,8 +3567,7 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
|
|
|
3542
3567
|
body: await parseBody(output.body, context),
|
|
3543
3568
|
};
|
|
3544
3569
|
let response;
|
|
3545
|
-
|
|
3546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
3571
|
switch (errorCode) {
|
|
3548
3572
|
case "AccessDeniedException":
|
|
3549
3573
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3562,10 +3586,12 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
|
|
|
3562
3586
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3563
3587
|
default:
|
|
3564
3588
|
const parsedBody = parsedOutput.body;
|
|
3589
|
+
const $metadata = deserializeMetadata(output);
|
|
3590
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3565
3591
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3566
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3592
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3567
3593
|
$fault: "client",
|
|
3568
|
-
$metadata
|
|
3594
|
+
$metadata,
|
|
3569
3595
|
});
|
|
3570
3596
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3571
3597
|
}
|
|
@@ -3595,8 +3621,7 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
|
|
|
3595
3621
|
body: await parseBody(output.body, context),
|
|
3596
3622
|
};
|
|
3597
3623
|
let response;
|
|
3598
|
-
|
|
3599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3600
3625
|
switch (errorCode) {
|
|
3601
3626
|
case "AccessDeniedException":
|
|
3602
3627
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3615,10 +3640,12 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
|
|
|
3615
3640
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3616
3641
|
default:
|
|
3617
3642
|
const parsedBody = parsedOutput.body;
|
|
3643
|
+
const $metadata = deserializeMetadata(output);
|
|
3644
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3618
3645
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3646
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3620
3647
|
$fault: "client",
|
|
3621
|
-
$metadata
|
|
3648
|
+
$metadata,
|
|
3622
3649
|
});
|
|
3623
3650
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3624
3651
|
}
|
|
@@ -3660,8 +3687,7 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
|
|
|
3660
3687
|
body: await parseBody(output.body, context),
|
|
3661
3688
|
};
|
|
3662
3689
|
let response;
|
|
3663
|
-
|
|
3664
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3690
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3665
3691
|
switch (errorCode) {
|
|
3666
3692
|
case "AccessDeniedException":
|
|
3667
3693
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3680,10 +3706,12 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
|
|
|
3680
3706
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3681
3707
|
default:
|
|
3682
3708
|
const parsedBody = parsedOutput.body;
|
|
3709
|
+
const $metadata = deserializeMetadata(output);
|
|
3710
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3683
3711
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3712
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3685
3713
|
$fault: "client",
|
|
3686
|
-
$metadata
|
|
3714
|
+
$metadata,
|
|
3687
3715
|
});
|
|
3688
3716
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3689
3717
|
}
|
|
@@ -3711,8 +3739,7 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
|
|
|
3711
3739
|
body: await parseBody(output.body, context),
|
|
3712
3740
|
};
|
|
3713
3741
|
let response;
|
|
3714
|
-
|
|
3715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3716
3743
|
switch (errorCode) {
|
|
3717
3744
|
case "AccessDeniedException":
|
|
3718
3745
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3731,10 +3758,12 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
|
|
|
3731
3758
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3732
3759
|
default:
|
|
3733
3760
|
const parsedBody = parsedOutput.body;
|
|
3761
|
+
const $metadata = deserializeMetadata(output);
|
|
3762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3734
3763
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3736
3765
|
$fault: "client",
|
|
3737
|
-
$metadata
|
|
3766
|
+
$metadata,
|
|
3738
3767
|
});
|
|
3739
3768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3740
3769
|
}
|
|
@@ -3762,8 +3791,7 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
|
|
|
3762
3791
|
body: await parseBody(output.body, context),
|
|
3763
3792
|
};
|
|
3764
3793
|
let response;
|
|
3765
|
-
|
|
3766
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3794
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
3795
|
switch (errorCode) {
|
|
3768
3796
|
case "AccessDeniedException":
|
|
3769
3797
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3782,10 +3810,12 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
|
|
|
3782
3810
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3783
3811
|
default:
|
|
3784
3812
|
const parsedBody = parsedOutput.body;
|
|
3813
|
+
const $metadata = deserializeMetadata(output);
|
|
3814
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3785
3815
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3786
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3816
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3787
3817
|
$fault: "client",
|
|
3788
|
-
$metadata
|
|
3818
|
+
$metadata,
|
|
3789
3819
|
});
|
|
3790
3820
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3791
3821
|
}
|
|
@@ -3813,8 +3843,7 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
|
|
|
3813
3843
|
body: await parseBody(output.body, context),
|
|
3814
3844
|
};
|
|
3815
3845
|
let response;
|
|
3816
|
-
|
|
3817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3846
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
3847
|
switch (errorCode) {
|
|
3819
3848
|
case "AccessDeniedException":
|
|
3820
3849
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3833,10 +3862,12 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
|
|
|
3833
3862
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3834
3863
|
default:
|
|
3835
3864
|
const parsedBody = parsedOutput.body;
|
|
3865
|
+
const $metadata = deserializeMetadata(output);
|
|
3866
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3836
3867
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3868
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3838
3869
|
$fault: "client",
|
|
3839
|
-
$metadata
|
|
3870
|
+
$metadata,
|
|
3840
3871
|
});
|
|
3841
3872
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3842
3873
|
}
|
|
@@ -3864,8 +3895,7 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
|
|
|
3864
3895
|
body: await parseBody(output.body, context),
|
|
3865
3896
|
};
|
|
3866
3897
|
let response;
|
|
3867
|
-
|
|
3868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3898
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
3899
|
switch (errorCode) {
|
|
3870
3900
|
case "AccessDeniedException":
|
|
3871
3901
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3884,10 +3914,12 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
|
|
|
3884
3914
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3885
3915
|
default:
|
|
3886
3916
|
const parsedBody = parsedOutput.body;
|
|
3917
|
+
const $metadata = deserializeMetadata(output);
|
|
3918
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3887
3919
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3920
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3889
3921
|
$fault: "client",
|
|
3890
|
-
$metadata
|
|
3922
|
+
$metadata,
|
|
3891
3923
|
});
|
|
3892
3924
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3893
3925
|
}
|
|
@@ -3917,8 +3949,7 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
|
|
|
3917
3949
|
body: await parseBody(output.body, context),
|
|
3918
3950
|
};
|
|
3919
3951
|
let response;
|
|
3920
|
-
|
|
3921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3952
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3922
3953
|
switch (errorCode) {
|
|
3923
3954
|
case "AccessDeniedException":
|
|
3924
3955
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3934,10 +3965,12 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
|
|
|
3934
3965
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3935
3966
|
default:
|
|
3936
3967
|
const parsedBody = parsedOutput.body;
|
|
3968
|
+
const $metadata = deserializeMetadata(output);
|
|
3969
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3937
3970
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3971
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3939
3972
|
$fault: "client",
|
|
3940
|
-
$metadata
|
|
3973
|
+
$metadata,
|
|
3941
3974
|
});
|
|
3942
3975
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3943
3976
|
}
|
|
@@ -3967,8 +4000,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
|
|
|
3967
4000
|
body: await parseBody(output.body, context),
|
|
3968
4001
|
};
|
|
3969
4002
|
let response;
|
|
3970
|
-
|
|
3971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3972
4004
|
switch (errorCode) {
|
|
3973
4005
|
case "AccessDeniedException":
|
|
3974
4006
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3984,10 +4016,12 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
|
|
|
3984
4016
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3985
4017
|
default:
|
|
3986
4018
|
const parsedBody = parsedOutput.body;
|
|
4019
|
+
const $metadata = deserializeMetadata(output);
|
|
4020
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3987
4021
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4022
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3989
4023
|
$fault: "client",
|
|
3990
|
-
$metadata
|
|
4024
|
+
$metadata,
|
|
3991
4025
|
});
|
|
3992
4026
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3993
4027
|
}
|
|
@@ -4017,8 +4051,7 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
|
|
|
4017
4051
|
body: await parseBody(output.body, context),
|
|
4018
4052
|
};
|
|
4019
4053
|
let response;
|
|
4020
|
-
|
|
4021
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4054
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4022
4055
|
switch (errorCode) {
|
|
4023
4056
|
case "AccessDeniedException":
|
|
4024
4057
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4037,10 +4070,12 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
|
|
|
4037
4070
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4038
4071
|
default:
|
|
4039
4072
|
const parsedBody = parsedOutput.body;
|
|
4073
|
+
const $metadata = deserializeMetadata(output);
|
|
4074
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4040
4075
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4041
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4076
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4042
4077
|
$fault: "client",
|
|
4043
|
-
$metadata
|
|
4078
|
+
$metadata,
|
|
4044
4079
|
});
|
|
4045
4080
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4046
4081
|
}
|
|
@@ -4070,8 +4105,7 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
|
|
|
4070
4105
|
body: await parseBody(output.body, context),
|
|
4071
4106
|
};
|
|
4072
4107
|
let response;
|
|
4073
|
-
|
|
4074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4075
4109
|
switch (errorCode) {
|
|
4076
4110
|
case "AccessDeniedException":
|
|
4077
4111
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4087,10 +4121,12 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
|
|
|
4087
4121
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4088
4122
|
default:
|
|
4089
4123
|
const parsedBody = parsedOutput.body;
|
|
4124
|
+
const $metadata = deserializeMetadata(output);
|
|
4125
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4090
4126
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4091
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4127
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4092
4128
|
$fault: "client",
|
|
4093
|
-
$metadata
|
|
4129
|
+
$metadata,
|
|
4094
4130
|
});
|
|
4095
4131
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4096
4132
|
}
|
|
@@ -4120,8 +4156,7 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
|
|
|
4120
4156
|
body: await parseBody(output.body, context),
|
|
4121
4157
|
};
|
|
4122
4158
|
let response;
|
|
4123
|
-
|
|
4124
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4159
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4125
4160
|
switch (errorCode) {
|
|
4126
4161
|
case "AccessDeniedException":
|
|
4127
4162
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4137,10 +4172,12 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
|
|
|
4137
4172
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4138
4173
|
default:
|
|
4139
4174
|
const parsedBody = parsedOutput.body;
|
|
4175
|
+
const $metadata = deserializeMetadata(output);
|
|
4176
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4140
4177
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4178
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4142
4179
|
$fault: "client",
|
|
4143
|
-
$metadata
|
|
4180
|
+
$metadata,
|
|
4144
4181
|
});
|
|
4145
4182
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4146
4183
|
}
|
|
@@ -4170,8 +4207,7 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
|
|
|
4170
4207
|
body: await parseBody(output.body, context),
|
|
4171
4208
|
};
|
|
4172
4209
|
let response;
|
|
4173
|
-
|
|
4174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4210
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4175
4211
|
switch (errorCode) {
|
|
4176
4212
|
case "AccessDeniedException":
|
|
4177
4213
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4187,10 +4223,12 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
|
|
|
4187
4223
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4188
4224
|
default:
|
|
4189
4225
|
const parsedBody = parsedOutput.body;
|
|
4226
|
+
const $metadata = deserializeMetadata(output);
|
|
4227
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4190
4228
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4229
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4192
4230
|
$fault: "client",
|
|
4193
|
-
$metadata
|
|
4231
|
+
$metadata,
|
|
4194
4232
|
});
|
|
4195
4233
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4196
4234
|
}
|
|
@@ -4216,8 +4254,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4216
4254
|
body: await parseBody(output.body, context),
|
|
4217
4255
|
};
|
|
4218
4256
|
let response;
|
|
4219
|
-
|
|
4220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4221
4258
|
switch (errorCode) {
|
|
4222
4259
|
case "AccessDeniedException":
|
|
4223
4260
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4236,10 +4273,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4236
4273
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4237
4274
|
default:
|
|
4238
4275
|
const parsedBody = parsedOutput.body;
|
|
4276
|
+
const $metadata = deserializeMetadata(output);
|
|
4277
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4239
4278
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4279
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4241
4280
|
$fault: "client",
|
|
4242
|
-
$metadata
|
|
4281
|
+
$metadata,
|
|
4243
4282
|
});
|
|
4244
4283
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4245
4284
|
}
|
|
@@ -4269,8 +4308,7 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
|
|
|
4269
4308
|
body: await parseBody(output.body, context),
|
|
4270
4309
|
};
|
|
4271
4310
|
let response;
|
|
4272
|
-
|
|
4273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4311
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
4312
|
switch (errorCode) {
|
|
4275
4313
|
case "AccessDeniedException":
|
|
4276
4314
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4289,10 +4327,12 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
|
|
|
4289
4327
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4290
4328
|
default:
|
|
4291
4329
|
const parsedBody = parsedOutput.body;
|
|
4330
|
+
const $metadata = deserializeMetadata(output);
|
|
4331
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4292
4332
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4294
4334
|
$fault: "client",
|
|
4295
|
-
$metadata
|
|
4335
|
+
$metadata,
|
|
4296
4336
|
});
|
|
4297
4337
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4298
4338
|
}
|
|
@@ -4322,8 +4362,7 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
|
|
|
4322
4362
|
body: await parseBody(output.body, context),
|
|
4323
4363
|
};
|
|
4324
4364
|
let response;
|
|
4325
|
-
|
|
4326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4365
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4327
4366
|
switch (errorCode) {
|
|
4328
4367
|
case "AccessDeniedException":
|
|
4329
4368
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4339,10 +4378,12 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
|
|
|
4339
4378
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4340
4379
|
default:
|
|
4341
4380
|
const parsedBody = parsedOutput.body;
|
|
4381
|
+
const $metadata = deserializeMetadata(output);
|
|
4382
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4342
4383
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4384
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4344
4385
|
$fault: "client",
|
|
4345
|
-
$metadata
|
|
4386
|
+
$metadata,
|
|
4346
4387
|
});
|
|
4347
4388
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4348
4389
|
}
|
|
@@ -4376,8 +4417,7 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
|
|
|
4376
4417
|
body: await parseBody(output.body, context),
|
|
4377
4418
|
};
|
|
4378
4419
|
let response;
|
|
4379
|
-
|
|
4380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4420
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
4421
|
switch (errorCode) {
|
|
4382
4422
|
case "AccessDeniedException":
|
|
4383
4423
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4399,10 +4439,12 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
|
|
|
4399
4439
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4400
4440
|
default:
|
|
4401
4441
|
const parsedBody = parsedOutput.body;
|
|
4442
|
+
const $metadata = deserializeMetadata(output);
|
|
4443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4444
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4446
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4447
|
+
$metadata,
|
|
4406
4448
|
});
|
|
4407
4449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4450
|
}
|
|
@@ -4432,8 +4474,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
4432
4474
|
body: await parseBody(output.body, context),
|
|
4433
4475
|
};
|
|
4434
4476
|
let response;
|
|
4435
|
-
|
|
4436
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4437
4478
|
switch (errorCode) {
|
|
4438
4479
|
case "AccessDeniedException":
|
|
4439
4480
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4452,10 +4493,12 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
4452
4493
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4453
4494
|
default:
|
|
4454
4495
|
const parsedBody = parsedOutput.body;
|
|
4496
|
+
const $metadata = deserializeMetadata(output);
|
|
4497
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4455
4498
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4499
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4457
4500
|
$fault: "client",
|
|
4458
|
-
$metadata
|
|
4501
|
+
$metadata,
|
|
4459
4502
|
});
|
|
4460
4503
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4461
4504
|
}
|
|
@@ -4485,8 +4528,7 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
|
|
|
4485
4528
|
body: await parseBody(output.body, context),
|
|
4486
4529
|
};
|
|
4487
4530
|
let response;
|
|
4488
|
-
|
|
4489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4490
4532
|
switch (errorCode) {
|
|
4491
4533
|
case "AccessDeniedException":
|
|
4492
4534
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4505,10 +4547,12 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
|
|
|
4505
4547
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4506
4548
|
default:
|
|
4507
4549
|
const parsedBody = parsedOutput.body;
|
|
4550
|
+
const $metadata = deserializeMetadata(output);
|
|
4551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4508
4552
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4510
4554
|
$fault: "client",
|
|
4511
|
-
$metadata
|
|
4555
|
+
$metadata,
|
|
4512
4556
|
});
|
|
4513
4557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4514
4558
|
}
|
|
@@ -4538,8 +4582,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
|
|
|
4538
4582
|
body: await parseBody(output.body, context),
|
|
4539
4583
|
};
|
|
4540
4584
|
let response;
|
|
4541
|
-
|
|
4542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4543
4586
|
switch (errorCode) {
|
|
4544
4587
|
case "AccessDeniedException":
|
|
4545
4588
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4558,10 +4601,12 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
|
|
|
4558
4601
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4559
4602
|
default:
|
|
4560
4603
|
const parsedBody = parsedOutput.body;
|
|
4604
|
+
const $metadata = deserializeMetadata(output);
|
|
4605
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4561
4606
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4607
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4563
4608
|
$fault: "client",
|
|
4564
|
-
$metadata
|
|
4609
|
+
$metadata,
|
|
4565
4610
|
});
|
|
4566
4611
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4567
4612
|
}
|
|
@@ -4583,8 +4628,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4583
4628
|
body: await parseBody(output.body, context),
|
|
4584
4629
|
};
|
|
4585
4630
|
let response;
|
|
4586
|
-
|
|
4587
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4631
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4588
4632
|
switch (errorCode) {
|
|
4589
4633
|
case "AccessDeniedException":
|
|
4590
4634
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4603,10 +4647,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4603
4647
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4604
4648
|
default:
|
|
4605
4649
|
const parsedBody = parsedOutput.body;
|
|
4650
|
+
const $metadata = deserializeMetadata(output);
|
|
4651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4606
4652
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4608
4654
|
$fault: "client",
|
|
4609
|
-
$metadata
|
|
4655
|
+
$metadata,
|
|
4610
4656
|
});
|
|
4611
4657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4612
4658
|
}
|
|
@@ -4628,8 +4674,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4628
4674
|
body: await parseBody(output.body, context),
|
|
4629
4675
|
};
|
|
4630
4676
|
let response;
|
|
4631
|
-
|
|
4632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4633
4678
|
switch (errorCode) {
|
|
4634
4679
|
case "AccessDeniedException":
|
|
4635
4680
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4648,10 +4693,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4648
4693
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4649
4694
|
default:
|
|
4650
4695
|
const parsedBody = parsedOutput.body;
|
|
4696
|
+
const $metadata = deserializeMetadata(output);
|
|
4697
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4651
4698
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4652
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4699
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4653
4700
|
$fault: "client",
|
|
4654
|
-
$metadata
|
|
4701
|
+
$metadata,
|
|
4655
4702
|
});
|
|
4656
4703
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4657
4704
|
}
|
|
@@ -4685,8 +4732,7 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
|
|
|
4685
4732
|
body: await parseBody(output.body, context),
|
|
4686
4733
|
};
|
|
4687
4734
|
let response;
|
|
4688
|
-
|
|
4689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4735
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4690
4736
|
switch (errorCode) {
|
|
4691
4737
|
case "AccessDeniedException":
|
|
4692
4738
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4705,10 +4751,12 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
|
|
|
4705
4751
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4706
4752
|
default:
|
|
4707
4753
|
const parsedBody = parsedOutput.body;
|
|
4754
|
+
const $metadata = deserializeMetadata(output);
|
|
4755
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4708
4756
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4757
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4710
4758
|
$fault: "client",
|
|
4711
|
-
$metadata
|
|
4759
|
+
$metadata,
|
|
4712
4760
|
});
|
|
4713
4761
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4714
4762
|
}
|
|
@@ -4742,8 +4790,7 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
|
|
|
4742
4790
|
body: await parseBody(output.body, context),
|
|
4743
4791
|
};
|
|
4744
4792
|
let response;
|
|
4745
|
-
|
|
4746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4793
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4747
4794
|
switch (errorCode) {
|
|
4748
4795
|
case "AccessDeniedException":
|
|
4749
4796
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4762,10 +4809,12 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
|
|
|
4762
4809
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4763
4810
|
default:
|
|
4764
4811
|
const parsedBody = parsedOutput.body;
|
|
4812
|
+
const $metadata = deserializeMetadata(output);
|
|
4813
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4765
4814
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4815
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4767
4816
|
$fault: "client",
|
|
4768
|
-
$metadata
|
|
4817
|
+
$metadata,
|
|
4769
4818
|
});
|
|
4770
4819
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4771
4820
|
}
|
|
@@ -4799,8 +4848,7 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
|
|
|
4799
4848
|
body: await parseBody(output.body, context),
|
|
4800
4849
|
};
|
|
4801
4850
|
let response;
|
|
4802
|
-
|
|
4803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4851
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
4852
|
switch (errorCode) {
|
|
4805
4853
|
case "AccessDeniedException":
|
|
4806
4854
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4819,10 +4867,12 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
|
|
|
4819
4867
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4820
4868
|
default:
|
|
4821
4869
|
const parsedBody = parsedOutput.body;
|
|
4870
|
+
const $metadata = deserializeMetadata(output);
|
|
4871
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4822
4872
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4873
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4824
4874
|
$fault: "client",
|
|
4825
|
-
$metadata
|
|
4875
|
+
$metadata,
|
|
4826
4876
|
});
|
|
4827
4877
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4828
4878
|
}
|
|
@@ -4856,8 +4906,7 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
|
|
|
4856
4906
|
body: await parseBody(output.body, context),
|
|
4857
4907
|
};
|
|
4858
4908
|
let response;
|
|
4859
|
-
|
|
4860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4909
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4861
4910
|
switch (errorCode) {
|
|
4862
4911
|
case "AccessDeniedException":
|
|
4863
4912
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4876,10 +4925,12 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
|
|
|
4876
4925
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4877
4926
|
default:
|
|
4878
4927
|
const parsedBody = parsedOutput.body;
|
|
4928
|
+
const $metadata = deserializeMetadata(output);
|
|
4929
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4879
4930
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4880
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4931
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4881
4932
|
$fault: "client",
|
|
4882
|
-
$metadata
|
|
4933
|
+
$metadata,
|
|
4883
4934
|
});
|
|
4884
4935
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4885
4936
|
}
|
|
@@ -4913,8 +4964,7 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
|
|
|
4913
4964
|
body: await parseBody(output.body, context),
|
|
4914
4965
|
};
|
|
4915
4966
|
let response;
|
|
4916
|
-
|
|
4917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4967
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4918
4968
|
switch (errorCode) {
|
|
4919
4969
|
case "AccessDeniedException":
|
|
4920
4970
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4933,10 +4983,12 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
|
|
|
4933
4983
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4934
4984
|
default:
|
|
4935
4985
|
const parsedBody = parsedOutput.body;
|
|
4986
|
+
const $metadata = deserializeMetadata(output);
|
|
4987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4936
4988
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4938
4990
|
$fault: "client",
|
|
4939
|
-
$metadata
|
|
4991
|
+
$metadata,
|
|
4940
4992
|
});
|
|
4941
4993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4942
4994
|
}
|
|
@@ -6044,5 +6096,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6044
6096
|
if (data["__type"] !== undefined) {
|
|
6045
6097
|
return sanitizeErrorCode(data["__type"]);
|
|
6046
6098
|
}
|
|
6047
|
-
return "";
|
|
6048
6099
|
};
|