@aws-sdk/client-location 3.51.0 → 3.54.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/index.js +3 -0
- package/dist-cjs/models/LocationServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +107 -3
- package/dist-cjs/protocols/Aws_restJson1.js +571 -2146
- package/dist-es/index.js +1 -0
- package/dist-es/models/LocationServiceException.js +12 -0
- package/dist-es/models/models_0.js +97 -1
- package/dist-es/protocols/Aws_restJson1.js +1231 -2362
- package/dist-types/LocationClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/LocationServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/LocationClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/LocationServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1UpdateGeofenceCollectionCommand = exports.deseri
|
|
|
5
5
|
exports.deserializeAws_restJson1UpdateTrackerCommand = exports.deserializeAws_restJson1UpdateRouteCalculatorCommand = exports.deserializeAws_restJson1UpdatePlaceIndexCommand = exports.deserializeAws_restJson1UpdateMapCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
+
const LocationServiceException_1 = require("../models/LocationServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, context) => {
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
12
|
const headers = {
|
|
@@ -2092,75 +2094,34 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
|
|
|
2092
2094
|
switch (errorCode) {
|
|
2093
2095
|
case "AccessDeniedException":
|
|
2094
2096
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2095
|
-
|
|
2096
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2097
|
-
name: errorCode,
|
|
2098
|
-
$metadata: deserializeMetadata(output),
|
|
2099
|
-
};
|
|
2100
|
-
break;
|
|
2097
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2101
2098
|
case "ConflictException":
|
|
2102
2099
|
case "com.amazonaws.location#ConflictException":
|
|
2103
|
-
|
|
2104
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2105
|
-
name: errorCode,
|
|
2106
|
-
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
2108
|
-
break;
|
|
2100
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2109
2101
|
case "InternalServerException":
|
|
2110
2102
|
case "com.amazonaws.location#InternalServerException":
|
|
2111
|
-
|
|
2112
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2113
|
-
name: errorCode,
|
|
2114
|
-
$metadata: deserializeMetadata(output),
|
|
2115
|
-
};
|
|
2116
|
-
break;
|
|
2103
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2117
2104
|
case "ResourceNotFoundException":
|
|
2118
2105
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2119
|
-
|
|
2120
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2121
|
-
name: errorCode,
|
|
2122
|
-
$metadata: deserializeMetadata(output),
|
|
2123
|
-
};
|
|
2124
|
-
break;
|
|
2106
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2125
2107
|
case "ServiceQuotaExceededException":
|
|
2126
2108
|
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2127
|
-
|
|
2128
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2129
|
-
name: errorCode,
|
|
2130
|
-
$metadata: deserializeMetadata(output),
|
|
2131
|
-
};
|
|
2132
|
-
break;
|
|
2109
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2133
2110
|
case "ThrottlingException":
|
|
2134
2111
|
case "com.amazonaws.location#ThrottlingException":
|
|
2135
|
-
|
|
2136
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2137
|
-
name: errorCode,
|
|
2138
|
-
$metadata: deserializeMetadata(output),
|
|
2139
|
-
};
|
|
2140
|
-
break;
|
|
2112
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2141
2113
|
case "ValidationException":
|
|
2142
2114
|
case "com.amazonaws.location#ValidationException":
|
|
2143
|
-
|
|
2144
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2145
|
-
name: errorCode,
|
|
2146
|
-
$metadata: deserializeMetadata(output),
|
|
2147
|
-
};
|
|
2148
|
-
break;
|
|
2115
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2149
2116
|
default:
|
|
2150
2117
|
const parsedBody = parsedOutput.body;
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
...parsedBody,
|
|
2154
|
-
name: `${errorCode}`,
|
|
2155
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2118
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2156
2120
|
$fault: "client",
|
|
2157
2121
|
$metadata: deserializeMetadata(output),
|
|
2158
|
-
};
|
|
2122
|
+
});
|
|
2123
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2159
2124
|
}
|
|
2160
|
-
const message = response.message || response.Message || errorCode;
|
|
2161
|
-
response.message = message;
|
|
2162
|
-
delete response.Message;
|
|
2163
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2164
2125
|
};
|
|
2165
2126
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
|
|
2166
2127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2188,59 +2149,28 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
|
|
|
2188
2149
|
switch (errorCode) {
|
|
2189
2150
|
case "AccessDeniedException":
|
|
2190
2151
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2191
|
-
|
|
2192
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2193
|
-
name: errorCode,
|
|
2194
|
-
$metadata: deserializeMetadata(output),
|
|
2195
|
-
};
|
|
2196
|
-
break;
|
|
2152
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2197
2153
|
case "InternalServerException":
|
|
2198
2154
|
case "com.amazonaws.location#InternalServerException":
|
|
2199
|
-
|
|
2200
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2201
|
-
name: errorCode,
|
|
2202
|
-
$metadata: deserializeMetadata(output),
|
|
2203
|
-
};
|
|
2204
|
-
break;
|
|
2155
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2205
2156
|
case "ResourceNotFoundException":
|
|
2206
2157
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2207
|
-
|
|
2208
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2209
|
-
name: errorCode,
|
|
2210
|
-
$metadata: deserializeMetadata(output),
|
|
2211
|
-
};
|
|
2212
|
-
break;
|
|
2158
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2213
2159
|
case "ThrottlingException":
|
|
2214
2160
|
case "com.amazonaws.location#ThrottlingException":
|
|
2215
|
-
|
|
2216
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2217
|
-
name: errorCode,
|
|
2218
|
-
$metadata: deserializeMetadata(output),
|
|
2219
|
-
};
|
|
2220
|
-
break;
|
|
2161
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2221
2162
|
case "ValidationException":
|
|
2222
2163
|
case "com.amazonaws.location#ValidationException":
|
|
2223
|
-
|
|
2224
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2225
|
-
name: errorCode,
|
|
2226
|
-
$metadata: deserializeMetadata(output),
|
|
2227
|
-
};
|
|
2228
|
-
break;
|
|
2164
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2229
2165
|
default:
|
|
2230
2166
|
const parsedBody = parsedOutput.body;
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
...parsedBody,
|
|
2234
|
-
name: `${errorCode}`,
|
|
2235
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2167
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2236
2169
|
$fault: "client",
|
|
2237
2170
|
$metadata: deserializeMetadata(output),
|
|
2238
|
-
};
|
|
2171
|
+
});
|
|
2172
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2239
2173
|
}
|
|
2240
|
-
const message = response.message || response.Message || errorCode;
|
|
2241
|
-
response.message = message;
|
|
2242
|
-
delete response.Message;
|
|
2243
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2244
2174
|
};
|
|
2245
2175
|
const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, context) => {
|
|
2246
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2268,59 +2198,28 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
|
|
|
2268
2198
|
switch (errorCode) {
|
|
2269
2199
|
case "AccessDeniedException":
|
|
2270
2200
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2271
|
-
|
|
2272
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2273
|
-
name: errorCode,
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
2276
|
-
break;
|
|
2201
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2277
2202
|
case "InternalServerException":
|
|
2278
2203
|
case "com.amazonaws.location#InternalServerException":
|
|
2279
|
-
|
|
2280
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2281
|
-
name: errorCode,
|
|
2282
|
-
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
2284
|
-
break;
|
|
2204
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2285
2205
|
case "ResourceNotFoundException":
|
|
2286
2206
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2287
|
-
|
|
2288
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2289
|
-
name: errorCode,
|
|
2290
|
-
$metadata: deserializeMetadata(output),
|
|
2291
|
-
};
|
|
2292
|
-
break;
|
|
2207
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2293
2208
|
case "ThrottlingException":
|
|
2294
2209
|
case "com.amazonaws.location#ThrottlingException":
|
|
2295
|
-
|
|
2296
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2297
|
-
name: errorCode,
|
|
2298
|
-
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
2300
|
-
break;
|
|
2210
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2301
2211
|
case "ValidationException":
|
|
2302
2212
|
case "com.amazonaws.location#ValidationException":
|
|
2303
|
-
|
|
2304
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2305
|
-
name: errorCode,
|
|
2306
|
-
$metadata: deserializeMetadata(output),
|
|
2307
|
-
};
|
|
2308
|
-
break;
|
|
2213
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2309
2214
|
default:
|
|
2310
2215
|
const parsedBody = parsedOutput.body;
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
...parsedBody,
|
|
2314
|
-
name: `${errorCode}`,
|
|
2315
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2216
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2217
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2316
2218
|
$fault: "client",
|
|
2317
2219
|
$metadata: deserializeMetadata(output),
|
|
2318
|
-
};
|
|
2220
|
+
});
|
|
2221
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2319
2222
|
}
|
|
2320
|
-
const message = response.message || response.Message || errorCode;
|
|
2321
|
-
response.message = message;
|
|
2322
|
-
delete response.Message;
|
|
2323
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2324
2223
|
};
|
|
2325
2224
|
const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, context) => {
|
|
2326
2225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2348,59 +2247,28 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
|
|
|
2348
2247
|
switch (errorCode) {
|
|
2349
2248
|
case "AccessDeniedException":
|
|
2350
2249
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2351
|
-
|
|
2352
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2353
|
-
name: errorCode,
|
|
2354
|
-
$metadata: deserializeMetadata(output),
|
|
2355
|
-
};
|
|
2356
|
-
break;
|
|
2250
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2357
2251
|
case "InternalServerException":
|
|
2358
2252
|
case "com.amazonaws.location#InternalServerException":
|
|
2359
|
-
|
|
2360
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2361
|
-
name: errorCode,
|
|
2362
|
-
$metadata: deserializeMetadata(output),
|
|
2363
|
-
};
|
|
2364
|
-
break;
|
|
2253
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2365
2254
|
case "ResourceNotFoundException":
|
|
2366
2255
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2367
|
-
|
|
2368
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2369
|
-
name: errorCode,
|
|
2370
|
-
$metadata: deserializeMetadata(output),
|
|
2371
|
-
};
|
|
2372
|
-
break;
|
|
2256
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2373
2257
|
case "ThrottlingException":
|
|
2374
2258
|
case "com.amazonaws.location#ThrottlingException":
|
|
2375
|
-
|
|
2376
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2377
|
-
name: errorCode,
|
|
2378
|
-
$metadata: deserializeMetadata(output),
|
|
2379
|
-
};
|
|
2380
|
-
break;
|
|
2259
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2381
2260
|
case "ValidationException":
|
|
2382
2261
|
case "com.amazonaws.location#ValidationException":
|
|
2383
|
-
|
|
2384
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2385
|
-
name: errorCode,
|
|
2386
|
-
$metadata: deserializeMetadata(output),
|
|
2387
|
-
};
|
|
2388
|
-
break;
|
|
2262
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2389
2263
|
default:
|
|
2390
2264
|
const parsedBody = parsedOutput.body;
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
...parsedBody,
|
|
2394
|
-
name: `${errorCode}`,
|
|
2395
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2265
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2266
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2396
2267
|
$fault: "client",
|
|
2397
2268
|
$metadata: deserializeMetadata(output),
|
|
2398
|
-
};
|
|
2269
|
+
});
|
|
2270
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2399
2271
|
}
|
|
2400
|
-
const message = response.message || response.Message || errorCode;
|
|
2401
|
-
response.message = message;
|
|
2402
|
-
delete response.Message;
|
|
2403
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2404
2272
|
};
|
|
2405
2273
|
const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, context) => {
|
|
2406
2274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2432,59 +2300,28 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
|
|
|
2432
2300
|
switch (errorCode) {
|
|
2433
2301
|
case "AccessDeniedException":
|
|
2434
2302
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2435
|
-
|
|
2436
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2437
|
-
name: errorCode,
|
|
2438
|
-
$metadata: deserializeMetadata(output),
|
|
2439
|
-
};
|
|
2440
|
-
break;
|
|
2303
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2441
2304
|
case "InternalServerException":
|
|
2442
2305
|
case "com.amazonaws.location#InternalServerException":
|
|
2443
|
-
|
|
2444
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2445
|
-
name: errorCode,
|
|
2446
|
-
$metadata: deserializeMetadata(output),
|
|
2447
|
-
};
|
|
2448
|
-
break;
|
|
2306
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2449
2307
|
case "ResourceNotFoundException":
|
|
2450
2308
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2451
|
-
|
|
2452
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2453
|
-
name: errorCode,
|
|
2454
|
-
$metadata: deserializeMetadata(output),
|
|
2455
|
-
};
|
|
2456
|
-
break;
|
|
2309
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2457
2310
|
case "ThrottlingException":
|
|
2458
2311
|
case "com.amazonaws.location#ThrottlingException":
|
|
2459
|
-
|
|
2460
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2461
|
-
name: errorCode,
|
|
2462
|
-
$metadata: deserializeMetadata(output),
|
|
2463
|
-
};
|
|
2464
|
-
break;
|
|
2312
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2465
2313
|
case "ValidationException":
|
|
2466
2314
|
case "com.amazonaws.location#ValidationException":
|
|
2467
|
-
|
|
2468
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2469
|
-
name: errorCode,
|
|
2470
|
-
$metadata: deserializeMetadata(output),
|
|
2471
|
-
};
|
|
2472
|
-
break;
|
|
2315
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2473
2316
|
default:
|
|
2474
2317
|
const parsedBody = parsedOutput.body;
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
...parsedBody,
|
|
2478
|
-
name: `${errorCode}`,
|
|
2479
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2318
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2319
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2480
2320
|
$fault: "client",
|
|
2481
2321
|
$metadata: deserializeMetadata(output),
|
|
2482
|
-
};
|
|
2322
|
+
});
|
|
2323
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2483
2324
|
}
|
|
2484
|
-
const message = response.message || response.Message || errorCode;
|
|
2485
|
-
response.message = message;
|
|
2486
|
-
delete response.Message;
|
|
2487
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2488
2325
|
};
|
|
2489
2326
|
const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context) => {
|
|
2490
2327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2516,59 +2353,28 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
|
|
|
2516
2353
|
switch (errorCode) {
|
|
2517
2354
|
case "AccessDeniedException":
|
|
2518
2355
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2519
|
-
|
|
2520
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2521
|
-
name: errorCode,
|
|
2522
|
-
$metadata: deserializeMetadata(output),
|
|
2523
|
-
};
|
|
2524
|
-
break;
|
|
2356
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2525
2357
|
case "InternalServerException":
|
|
2526
2358
|
case "com.amazonaws.location#InternalServerException":
|
|
2527
|
-
|
|
2528
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2529
|
-
name: errorCode,
|
|
2530
|
-
$metadata: deserializeMetadata(output),
|
|
2531
|
-
};
|
|
2532
|
-
break;
|
|
2359
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2533
2360
|
case "ResourceNotFoundException":
|
|
2534
2361
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2535
|
-
|
|
2536
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2537
|
-
name: errorCode,
|
|
2538
|
-
$metadata: deserializeMetadata(output),
|
|
2539
|
-
};
|
|
2540
|
-
break;
|
|
2362
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2541
2363
|
case "ThrottlingException":
|
|
2542
2364
|
case "com.amazonaws.location#ThrottlingException":
|
|
2543
|
-
|
|
2544
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2545
|
-
name: errorCode,
|
|
2546
|
-
$metadata: deserializeMetadata(output),
|
|
2547
|
-
};
|
|
2548
|
-
break;
|
|
2365
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2549
2366
|
case "ValidationException":
|
|
2550
2367
|
case "com.amazonaws.location#ValidationException":
|
|
2551
|
-
|
|
2552
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2553
|
-
name: errorCode,
|
|
2554
|
-
$metadata: deserializeMetadata(output),
|
|
2555
|
-
};
|
|
2556
|
-
break;
|
|
2368
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2557
2369
|
default:
|
|
2558
2370
|
const parsedBody = parsedOutput.body;
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
...parsedBody,
|
|
2562
|
-
name: `${errorCode}`,
|
|
2563
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2371
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2372
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2564
2373
|
$fault: "client",
|
|
2565
2374
|
$metadata: deserializeMetadata(output),
|
|
2566
|
-
};
|
|
2375
|
+
});
|
|
2376
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2567
2377
|
}
|
|
2568
|
-
const message = response.message || response.Message || errorCode;
|
|
2569
|
-
response.message = message;
|
|
2570
|
-
delete response.Message;
|
|
2571
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2572
2378
|
};
|
|
2573
2379
|
const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output, context) => {
|
|
2574
2380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2596,59 +2402,28 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
|
|
|
2596
2402
|
switch (errorCode) {
|
|
2597
2403
|
case "AccessDeniedException":
|
|
2598
2404
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2599
|
-
|
|
2600
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2601
|
-
name: errorCode,
|
|
2602
|
-
$metadata: deserializeMetadata(output),
|
|
2603
|
-
};
|
|
2604
|
-
break;
|
|
2405
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2605
2406
|
case "InternalServerException":
|
|
2606
2407
|
case "com.amazonaws.location#InternalServerException":
|
|
2607
|
-
|
|
2608
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2609
|
-
name: errorCode,
|
|
2610
|
-
$metadata: deserializeMetadata(output),
|
|
2611
|
-
};
|
|
2612
|
-
break;
|
|
2408
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2613
2409
|
case "ResourceNotFoundException":
|
|
2614
2410
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2615
|
-
|
|
2616
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2617
|
-
name: errorCode,
|
|
2618
|
-
$metadata: deserializeMetadata(output),
|
|
2619
|
-
};
|
|
2620
|
-
break;
|
|
2411
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2621
2412
|
case "ThrottlingException":
|
|
2622
2413
|
case "com.amazonaws.location#ThrottlingException":
|
|
2623
|
-
|
|
2624
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2625
|
-
name: errorCode,
|
|
2626
|
-
$metadata: deserializeMetadata(output),
|
|
2627
|
-
};
|
|
2628
|
-
break;
|
|
2414
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2629
2415
|
case "ValidationException":
|
|
2630
2416
|
case "com.amazonaws.location#ValidationException":
|
|
2631
|
-
|
|
2632
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2633
|
-
name: errorCode,
|
|
2634
|
-
$metadata: deserializeMetadata(output),
|
|
2635
|
-
};
|
|
2636
|
-
break;
|
|
2417
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2637
2418
|
default:
|
|
2638
2419
|
const parsedBody = parsedOutput.body;
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
...parsedBody,
|
|
2642
|
-
name: `${errorCode}`,
|
|
2643
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2420
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2421
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2644
2422
|
$fault: "client",
|
|
2645
2423
|
$metadata: deserializeMetadata(output),
|
|
2646
|
-
};
|
|
2424
|
+
});
|
|
2425
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2647
2426
|
}
|
|
2648
|
-
const message = response.message || response.Message || errorCode;
|
|
2649
|
-
response.message = message;
|
|
2650
|
-
delete response.Message;
|
|
2651
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2652
2427
|
};
|
|
2653
2428
|
const deserializeAws_restJson1CalculateRouteCommand = async (output, context) => {
|
|
2654
2429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2680,59 +2455,28 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
|
|
|
2680
2455
|
switch (errorCode) {
|
|
2681
2456
|
case "AccessDeniedException":
|
|
2682
2457
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2683
|
-
|
|
2684
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2685
|
-
name: errorCode,
|
|
2686
|
-
$metadata: deserializeMetadata(output),
|
|
2687
|
-
};
|
|
2688
|
-
break;
|
|
2458
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2689
2459
|
case "InternalServerException":
|
|
2690
2460
|
case "com.amazonaws.location#InternalServerException":
|
|
2691
|
-
|
|
2692
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2693
|
-
name: errorCode,
|
|
2694
|
-
$metadata: deserializeMetadata(output),
|
|
2695
|
-
};
|
|
2696
|
-
break;
|
|
2461
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2697
2462
|
case "ResourceNotFoundException":
|
|
2698
2463
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2699
|
-
|
|
2700
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2701
|
-
name: errorCode,
|
|
2702
|
-
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2704
|
-
break;
|
|
2464
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2705
2465
|
case "ThrottlingException":
|
|
2706
2466
|
case "com.amazonaws.location#ThrottlingException":
|
|
2707
|
-
|
|
2708
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2709
|
-
name: errorCode,
|
|
2710
|
-
$metadata: deserializeMetadata(output),
|
|
2711
|
-
};
|
|
2712
|
-
break;
|
|
2467
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2713
2468
|
case "ValidationException":
|
|
2714
2469
|
case "com.amazonaws.location#ValidationException":
|
|
2715
|
-
|
|
2716
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2717
|
-
name: errorCode,
|
|
2718
|
-
$metadata: deserializeMetadata(output),
|
|
2719
|
-
};
|
|
2720
|
-
break;
|
|
2470
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2721
2471
|
default:
|
|
2722
2472
|
const parsedBody = parsedOutput.body;
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
...parsedBody,
|
|
2726
|
-
name: `${errorCode}`,
|
|
2727
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2473
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2474
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2728
2475
|
$fault: "client",
|
|
2729
2476
|
$metadata: deserializeMetadata(output),
|
|
2730
|
-
};
|
|
2477
|
+
});
|
|
2478
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2731
2479
|
}
|
|
2732
|
-
const message = response.message || response.Message || errorCode;
|
|
2733
|
-
response.message = message;
|
|
2734
|
-
delete response.Message;
|
|
2735
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2736
2480
|
};
|
|
2737
2481
|
const deserializeAws_restJson1CalculateRouteMatrixCommand = async (output, context) => {
|
|
2738
2482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2772,59 +2516,28 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
|
|
|
2772
2516
|
switch (errorCode) {
|
|
2773
2517
|
case "AccessDeniedException":
|
|
2774
2518
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2775
|
-
|
|
2776
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2777
|
-
name: errorCode,
|
|
2778
|
-
$metadata: deserializeMetadata(output),
|
|
2779
|
-
};
|
|
2780
|
-
break;
|
|
2519
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2781
2520
|
case "InternalServerException":
|
|
2782
2521
|
case "com.amazonaws.location#InternalServerException":
|
|
2783
|
-
|
|
2784
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2785
|
-
name: errorCode,
|
|
2786
|
-
$metadata: deserializeMetadata(output),
|
|
2787
|
-
};
|
|
2788
|
-
break;
|
|
2522
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2789
2523
|
case "ResourceNotFoundException":
|
|
2790
2524
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2791
|
-
|
|
2792
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2793
|
-
name: errorCode,
|
|
2794
|
-
$metadata: deserializeMetadata(output),
|
|
2795
|
-
};
|
|
2796
|
-
break;
|
|
2525
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2797
2526
|
case "ThrottlingException":
|
|
2798
2527
|
case "com.amazonaws.location#ThrottlingException":
|
|
2799
|
-
|
|
2800
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2801
|
-
name: errorCode,
|
|
2802
|
-
$metadata: deserializeMetadata(output),
|
|
2803
|
-
};
|
|
2804
|
-
break;
|
|
2528
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2805
2529
|
case "ValidationException":
|
|
2806
2530
|
case "com.amazonaws.location#ValidationException":
|
|
2807
|
-
|
|
2808
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2809
|
-
name: errorCode,
|
|
2810
|
-
$metadata: deserializeMetadata(output),
|
|
2811
|
-
};
|
|
2812
|
-
break;
|
|
2531
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2813
2532
|
default:
|
|
2814
2533
|
const parsedBody = parsedOutput.body;
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
...parsedBody,
|
|
2818
|
-
name: `${errorCode}`,
|
|
2819
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2534
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2535
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2820
2536
|
$fault: "client",
|
|
2821
2537
|
$metadata: deserializeMetadata(output),
|
|
2822
|
-
};
|
|
2538
|
+
});
|
|
2539
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2823
2540
|
}
|
|
2824
|
-
const message = response.message || response.Message || errorCode;
|
|
2825
|
-
response.message = message;
|
|
2826
|
-
delete response.Message;
|
|
2827
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2828
2541
|
};
|
|
2829
2542
|
const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, context) => {
|
|
2830
2543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2860,59 +2573,28 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
|
|
|
2860
2573
|
switch (errorCode) {
|
|
2861
2574
|
case "AccessDeniedException":
|
|
2862
2575
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2863
|
-
|
|
2864
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2865
|
-
name: errorCode,
|
|
2866
|
-
$metadata: deserializeMetadata(output),
|
|
2867
|
-
};
|
|
2868
|
-
break;
|
|
2576
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2869
2577
|
case "ConflictException":
|
|
2870
2578
|
case "com.amazonaws.location#ConflictException":
|
|
2871
|
-
|
|
2872
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2873
|
-
name: errorCode,
|
|
2874
|
-
$metadata: deserializeMetadata(output),
|
|
2875
|
-
};
|
|
2876
|
-
break;
|
|
2579
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2877
2580
|
case "InternalServerException":
|
|
2878
2581
|
case "com.amazonaws.location#InternalServerException":
|
|
2879
|
-
|
|
2880
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2881
|
-
name: errorCode,
|
|
2882
|
-
$metadata: deserializeMetadata(output),
|
|
2883
|
-
};
|
|
2884
|
-
break;
|
|
2582
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2885
2583
|
case "ThrottlingException":
|
|
2886
2584
|
case "com.amazonaws.location#ThrottlingException":
|
|
2887
|
-
|
|
2888
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2889
|
-
name: errorCode,
|
|
2890
|
-
$metadata: deserializeMetadata(output),
|
|
2891
|
-
};
|
|
2892
|
-
break;
|
|
2585
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2893
2586
|
case "ValidationException":
|
|
2894
2587
|
case "com.amazonaws.location#ValidationException":
|
|
2895
|
-
|
|
2896
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2897
|
-
name: errorCode,
|
|
2898
|
-
$metadata: deserializeMetadata(output),
|
|
2899
|
-
};
|
|
2900
|
-
break;
|
|
2588
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2901
2589
|
default:
|
|
2902
2590
|
const parsedBody = parsedOutput.body;
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
...parsedBody,
|
|
2906
|
-
name: `${errorCode}`,
|
|
2907
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2591
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2592
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2908
2593
|
$fault: "client",
|
|
2909
2594
|
$metadata: deserializeMetadata(output),
|
|
2910
|
-
};
|
|
2595
|
+
});
|
|
2596
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2911
2597
|
}
|
|
2912
|
-
const message = response.message || response.Message || errorCode;
|
|
2913
|
-
response.message = message;
|
|
2914
|
-
delete response.Message;
|
|
2915
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2916
2598
|
};
|
|
2917
2599
|
const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
|
|
2918
2600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2948,59 +2630,28 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
|
|
|
2948
2630
|
switch (errorCode) {
|
|
2949
2631
|
case "AccessDeniedException":
|
|
2950
2632
|
case "com.amazonaws.location#AccessDeniedException":
|
|
2951
|
-
|
|
2952
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2953
|
-
name: errorCode,
|
|
2954
|
-
$metadata: deserializeMetadata(output),
|
|
2955
|
-
};
|
|
2956
|
-
break;
|
|
2633
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2957
2634
|
case "ConflictException":
|
|
2958
2635
|
case "com.amazonaws.location#ConflictException":
|
|
2959
|
-
|
|
2960
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2961
|
-
name: errorCode,
|
|
2962
|
-
$metadata: deserializeMetadata(output),
|
|
2963
|
-
};
|
|
2964
|
-
break;
|
|
2636
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2965
2637
|
case "InternalServerException":
|
|
2966
2638
|
case "com.amazonaws.location#InternalServerException":
|
|
2967
|
-
|
|
2968
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2969
|
-
name: errorCode,
|
|
2970
|
-
$metadata: deserializeMetadata(output),
|
|
2971
|
-
};
|
|
2972
|
-
break;
|
|
2639
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2973
2640
|
case "ThrottlingException":
|
|
2974
2641
|
case "com.amazonaws.location#ThrottlingException":
|
|
2975
|
-
|
|
2976
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2977
|
-
name: errorCode,
|
|
2978
|
-
$metadata: deserializeMetadata(output),
|
|
2979
|
-
};
|
|
2980
|
-
break;
|
|
2642
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2981
2643
|
case "ValidationException":
|
|
2982
2644
|
case "com.amazonaws.location#ValidationException":
|
|
2983
|
-
|
|
2984
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2985
|
-
name: errorCode,
|
|
2986
|
-
$metadata: deserializeMetadata(output),
|
|
2987
|
-
};
|
|
2988
|
-
break;
|
|
2645
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2989
2646
|
default:
|
|
2990
2647
|
const parsedBody = parsedOutput.body;
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
...parsedBody,
|
|
2994
|
-
name: `${errorCode}`,
|
|
2995
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2648
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2996
2650
|
$fault: "client",
|
|
2997
2651
|
$metadata: deserializeMetadata(output),
|
|
2998
|
-
};
|
|
2652
|
+
});
|
|
2653
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2999
2654
|
}
|
|
3000
|
-
const message = response.message || response.Message || errorCode;
|
|
3001
|
-
response.message = message;
|
|
3002
|
-
delete response.Message;
|
|
3003
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3004
2655
|
};
|
|
3005
2656
|
const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context) => {
|
|
3006
2657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3036,59 +2687,28 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
|
|
|
3036
2687
|
switch (errorCode) {
|
|
3037
2688
|
case "AccessDeniedException":
|
|
3038
2689
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3039
|
-
|
|
3040
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3041
|
-
name: errorCode,
|
|
3042
|
-
$metadata: deserializeMetadata(output),
|
|
3043
|
-
};
|
|
3044
|
-
break;
|
|
2690
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3045
2691
|
case "ConflictException":
|
|
3046
2692
|
case "com.amazonaws.location#ConflictException":
|
|
3047
|
-
|
|
3048
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3049
|
-
name: errorCode,
|
|
3050
|
-
$metadata: deserializeMetadata(output),
|
|
3051
|
-
};
|
|
3052
|
-
break;
|
|
2693
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3053
2694
|
case "InternalServerException":
|
|
3054
2695
|
case "com.amazonaws.location#InternalServerException":
|
|
3055
|
-
|
|
3056
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3057
|
-
name: errorCode,
|
|
3058
|
-
$metadata: deserializeMetadata(output),
|
|
3059
|
-
};
|
|
3060
|
-
break;
|
|
2696
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3061
2697
|
case "ThrottlingException":
|
|
3062
2698
|
case "com.amazonaws.location#ThrottlingException":
|
|
3063
|
-
|
|
3064
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3065
|
-
name: errorCode,
|
|
3066
|
-
$metadata: deserializeMetadata(output),
|
|
3067
|
-
};
|
|
3068
|
-
break;
|
|
2699
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3069
2700
|
case "ValidationException":
|
|
3070
2701
|
case "com.amazonaws.location#ValidationException":
|
|
3071
|
-
|
|
3072
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3073
|
-
name: errorCode,
|
|
3074
|
-
$metadata: deserializeMetadata(output),
|
|
3075
|
-
};
|
|
3076
|
-
break;
|
|
2702
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3077
2703
|
default:
|
|
3078
2704
|
const parsedBody = parsedOutput.body;
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
...parsedBody,
|
|
3082
|
-
name: `${errorCode}`,
|
|
3083
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2705
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2706
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3084
2707
|
$fault: "client",
|
|
3085
2708
|
$metadata: deserializeMetadata(output),
|
|
3086
|
-
};
|
|
2709
|
+
});
|
|
2710
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3087
2711
|
}
|
|
3088
|
-
const message = response.message || response.Message || errorCode;
|
|
3089
|
-
response.message = message;
|
|
3090
|
-
delete response.Message;
|
|
3091
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3092
2712
|
};
|
|
3093
2713
|
const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, context) => {
|
|
3094
2714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3124,59 +2744,28 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
|
|
|
3124
2744
|
switch (errorCode) {
|
|
3125
2745
|
case "AccessDeniedException":
|
|
3126
2746
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3127
|
-
|
|
3128
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3129
|
-
name: errorCode,
|
|
3130
|
-
$metadata: deserializeMetadata(output),
|
|
3131
|
-
};
|
|
3132
|
-
break;
|
|
2747
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3133
2748
|
case "ConflictException":
|
|
3134
2749
|
case "com.amazonaws.location#ConflictException":
|
|
3135
|
-
|
|
3136
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3137
|
-
name: errorCode,
|
|
3138
|
-
$metadata: deserializeMetadata(output),
|
|
3139
|
-
};
|
|
3140
|
-
break;
|
|
2750
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3141
2751
|
case "InternalServerException":
|
|
3142
2752
|
case "com.amazonaws.location#InternalServerException":
|
|
3143
|
-
|
|
3144
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3145
|
-
name: errorCode,
|
|
3146
|
-
$metadata: deserializeMetadata(output),
|
|
3147
|
-
};
|
|
3148
|
-
break;
|
|
2753
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3149
2754
|
case "ThrottlingException":
|
|
3150
2755
|
case "com.amazonaws.location#ThrottlingException":
|
|
3151
|
-
|
|
3152
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3153
|
-
name: errorCode,
|
|
3154
|
-
$metadata: deserializeMetadata(output),
|
|
3155
|
-
};
|
|
3156
|
-
break;
|
|
2756
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3157
2757
|
case "ValidationException":
|
|
3158
2758
|
case "com.amazonaws.location#ValidationException":
|
|
3159
|
-
|
|
3160
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3161
|
-
name: errorCode,
|
|
3162
|
-
$metadata: deserializeMetadata(output),
|
|
3163
|
-
};
|
|
3164
|
-
break;
|
|
2759
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3165
2760
|
default:
|
|
3166
2761
|
const parsedBody = parsedOutput.body;
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
...parsedBody,
|
|
3170
|
-
name: `${errorCode}`,
|
|
3171
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2762
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2763
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3172
2764
|
$fault: "client",
|
|
3173
2765
|
$metadata: deserializeMetadata(output),
|
|
3174
|
-
};
|
|
2766
|
+
});
|
|
2767
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3175
2768
|
}
|
|
3176
|
-
const message = response.message || response.Message || errorCode;
|
|
3177
|
-
response.message = message;
|
|
3178
|
-
delete response.Message;
|
|
3179
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3180
2769
|
};
|
|
3181
2770
|
const deserializeAws_restJson1CreateTrackerCommand = async (output, context) => {
|
|
3182
2771
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3212,59 +2801,28 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
|
|
|
3212
2801
|
switch (errorCode) {
|
|
3213
2802
|
case "AccessDeniedException":
|
|
3214
2803
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3215
|
-
|
|
3216
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3217
|
-
name: errorCode,
|
|
3218
|
-
$metadata: deserializeMetadata(output),
|
|
3219
|
-
};
|
|
3220
|
-
break;
|
|
2804
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3221
2805
|
case "ConflictException":
|
|
3222
2806
|
case "com.amazonaws.location#ConflictException":
|
|
3223
|
-
|
|
3224
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3225
|
-
name: errorCode,
|
|
3226
|
-
$metadata: deserializeMetadata(output),
|
|
3227
|
-
};
|
|
3228
|
-
break;
|
|
2807
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3229
2808
|
case "InternalServerException":
|
|
3230
2809
|
case "com.amazonaws.location#InternalServerException":
|
|
3231
|
-
|
|
3232
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3233
|
-
name: errorCode,
|
|
3234
|
-
$metadata: deserializeMetadata(output),
|
|
3235
|
-
};
|
|
3236
|
-
break;
|
|
2810
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3237
2811
|
case "ThrottlingException":
|
|
3238
2812
|
case "com.amazonaws.location#ThrottlingException":
|
|
3239
|
-
|
|
3240
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3241
|
-
name: errorCode,
|
|
3242
|
-
$metadata: deserializeMetadata(output),
|
|
3243
|
-
};
|
|
3244
|
-
break;
|
|
2813
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3245
2814
|
case "ValidationException":
|
|
3246
2815
|
case "com.amazonaws.location#ValidationException":
|
|
3247
|
-
|
|
3248
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3249
|
-
name: errorCode,
|
|
3250
|
-
$metadata: deserializeMetadata(output),
|
|
3251
|
-
};
|
|
3252
|
-
break;
|
|
2816
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3253
2817
|
default:
|
|
3254
2818
|
const parsedBody = parsedOutput.body;
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
...parsedBody,
|
|
3258
|
-
name: `${errorCode}`,
|
|
3259
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2819
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2820
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3260
2821
|
$fault: "client",
|
|
3261
2822
|
$metadata: deserializeMetadata(output),
|
|
3262
|
-
};
|
|
2823
|
+
});
|
|
2824
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3263
2825
|
}
|
|
3264
|
-
const message = response.message || response.Message || errorCode;
|
|
3265
|
-
response.message = message;
|
|
3266
|
-
delete response.Message;
|
|
3267
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3268
2826
|
};
|
|
3269
2827
|
const deserializeAws_restJson1DeleteGeofenceCollectionCommand = async (output, context) => {
|
|
3270
2828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3288,59 +2846,28 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
|
|
|
3288
2846
|
switch (errorCode) {
|
|
3289
2847
|
case "AccessDeniedException":
|
|
3290
2848
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3291
|
-
|
|
3292
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3293
|
-
name: errorCode,
|
|
3294
|
-
$metadata: deserializeMetadata(output),
|
|
3295
|
-
};
|
|
3296
|
-
break;
|
|
2849
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3297
2850
|
case "InternalServerException":
|
|
3298
2851
|
case "com.amazonaws.location#InternalServerException":
|
|
3299
|
-
|
|
3300
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3301
|
-
name: errorCode,
|
|
3302
|
-
$metadata: deserializeMetadata(output),
|
|
3303
|
-
};
|
|
3304
|
-
break;
|
|
2852
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3305
2853
|
case "ResourceNotFoundException":
|
|
3306
2854
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3307
|
-
|
|
3308
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3309
|
-
name: errorCode,
|
|
3310
|
-
$metadata: deserializeMetadata(output),
|
|
3311
|
-
};
|
|
3312
|
-
break;
|
|
2855
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3313
2856
|
case "ThrottlingException":
|
|
3314
2857
|
case "com.amazonaws.location#ThrottlingException":
|
|
3315
|
-
|
|
3316
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3317
|
-
name: errorCode,
|
|
3318
|
-
$metadata: deserializeMetadata(output),
|
|
3319
|
-
};
|
|
3320
|
-
break;
|
|
2858
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3321
2859
|
case "ValidationException":
|
|
3322
2860
|
case "com.amazonaws.location#ValidationException":
|
|
3323
|
-
|
|
3324
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3325
|
-
name: errorCode,
|
|
3326
|
-
$metadata: deserializeMetadata(output),
|
|
3327
|
-
};
|
|
3328
|
-
break;
|
|
2861
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3329
2862
|
default:
|
|
3330
2863
|
const parsedBody = parsedOutput.body;
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
...parsedBody,
|
|
3334
|
-
name: `${errorCode}`,
|
|
3335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2864
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2865
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3336
2866
|
$fault: "client",
|
|
3337
2867
|
$metadata: deserializeMetadata(output),
|
|
3338
|
-
};
|
|
2868
|
+
});
|
|
2869
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3339
2870
|
}
|
|
3340
|
-
const message = response.message || response.Message || errorCode;
|
|
3341
|
-
response.message = message;
|
|
3342
|
-
delete response.Message;
|
|
3343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3344
2871
|
};
|
|
3345
2872
|
const deserializeAws_restJson1DeleteMapCommand = async (output, context) => {
|
|
3346
2873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3364,59 +2891,28 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
|
|
|
3364
2891
|
switch (errorCode) {
|
|
3365
2892
|
case "AccessDeniedException":
|
|
3366
2893
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3367
|
-
|
|
3368
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3369
|
-
name: errorCode,
|
|
3370
|
-
$metadata: deserializeMetadata(output),
|
|
3371
|
-
};
|
|
3372
|
-
break;
|
|
2894
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3373
2895
|
case "InternalServerException":
|
|
3374
2896
|
case "com.amazonaws.location#InternalServerException":
|
|
3375
|
-
|
|
3376
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3377
|
-
name: errorCode,
|
|
3378
|
-
$metadata: deserializeMetadata(output),
|
|
3379
|
-
};
|
|
3380
|
-
break;
|
|
2897
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3381
2898
|
case "ResourceNotFoundException":
|
|
3382
2899
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3383
|
-
|
|
3384
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3385
|
-
name: errorCode,
|
|
3386
|
-
$metadata: deserializeMetadata(output),
|
|
3387
|
-
};
|
|
3388
|
-
break;
|
|
2900
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3389
2901
|
case "ThrottlingException":
|
|
3390
2902
|
case "com.amazonaws.location#ThrottlingException":
|
|
3391
|
-
|
|
3392
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3393
|
-
name: errorCode,
|
|
3394
|
-
$metadata: deserializeMetadata(output),
|
|
3395
|
-
};
|
|
3396
|
-
break;
|
|
2903
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3397
2904
|
case "ValidationException":
|
|
3398
2905
|
case "com.amazonaws.location#ValidationException":
|
|
3399
|
-
|
|
3400
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3401
|
-
name: errorCode,
|
|
3402
|
-
$metadata: deserializeMetadata(output),
|
|
3403
|
-
};
|
|
3404
|
-
break;
|
|
2906
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3405
2907
|
default:
|
|
3406
2908
|
const parsedBody = parsedOutput.body;
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
...parsedBody,
|
|
3410
|
-
name: `${errorCode}`,
|
|
3411
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2909
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2910
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3412
2911
|
$fault: "client",
|
|
3413
2912
|
$metadata: deserializeMetadata(output),
|
|
3414
|
-
};
|
|
2913
|
+
});
|
|
2914
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3415
2915
|
}
|
|
3416
|
-
const message = response.message || response.Message || errorCode;
|
|
3417
|
-
response.message = message;
|
|
3418
|
-
delete response.Message;
|
|
3419
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3420
2916
|
};
|
|
3421
2917
|
const deserializeAws_restJson1DeletePlaceIndexCommand = async (output, context) => {
|
|
3422
2918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3440,59 +2936,28 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
|
|
|
3440
2936
|
switch (errorCode) {
|
|
3441
2937
|
case "AccessDeniedException":
|
|
3442
2938
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3443
|
-
|
|
3444
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3445
|
-
name: errorCode,
|
|
3446
|
-
$metadata: deserializeMetadata(output),
|
|
3447
|
-
};
|
|
3448
|
-
break;
|
|
2939
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3449
2940
|
case "InternalServerException":
|
|
3450
2941
|
case "com.amazonaws.location#InternalServerException":
|
|
3451
|
-
|
|
3452
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3453
|
-
name: errorCode,
|
|
3454
|
-
$metadata: deserializeMetadata(output),
|
|
3455
|
-
};
|
|
3456
|
-
break;
|
|
2942
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3457
2943
|
case "ResourceNotFoundException":
|
|
3458
2944
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3459
|
-
|
|
3460
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3461
|
-
name: errorCode,
|
|
3462
|
-
$metadata: deserializeMetadata(output),
|
|
3463
|
-
};
|
|
3464
|
-
break;
|
|
2945
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3465
2946
|
case "ThrottlingException":
|
|
3466
2947
|
case "com.amazonaws.location#ThrottlingException":
|
|
3467
|
-
|
|
3468
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3469
|
-
name: errorCode,
|
|
3470
|
-
$metadata: deserializeMetadata(output),
|
|
3471
|
-
};
|
|
3472
|
-
break;
|
|
2948
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3473
2949
|
case "ValidationException":
|
|
3474
2950
|
case "com.amazonaws.location#ValidationException":
|
|
3475
|
-
|
|
3476
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3477
|
-
name: errorCode,
|
|
3478
|
-
$metadata: deserializeMetadata(output),
|
|
3479
|
-
};
|
|
3480
|
-
break;
|
|
2951
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3481
2952
|
default:
|
|
3482
2953
|
const parsedBody = parsedOutput.body;
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
...parsedBody,
|
|
3486
|
-
name: `${errorCode}`,
|
|
3487
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2954
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
2955
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3488
2956
|
$fault: "client",
|
|
3489
2957
|
$metadata: deserializeMetadata(output),
|
|
3490
|
-
};
|
|
2958
|
+
});
|
|
2959
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3491
2960
|
}
|
|
3492
|
-
const message = response.message || response.Message || errorCode;
|
|
3493
|
-
response.message = message;
|
|
3494
|
-
delete response.Message;
|
|
3495
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3496
2961
|
};
|
|
3497
2962
|
const deserializeAws_restJson1DeleteRouteCalculatorCommand = async (output, context) => {
|
|
3498
2963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3516,59 +2981,28 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
|
|
|
3516
2981
|
switch (errorCode) {
|
|
3517
2982
|
case "AccessDeniedException":
|
|
3518
2983
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3519
|
-
|
|
3520
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3521
|
-
name: errorCode,
|
|
3522
|
-
$metadata: deserializeMetadata(output),
|
|
3523
|
-
};
|
|
3524
|
-
break;
|
|
2984
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3525
2985
|
case "InternalServerException":
|
|
3526
2986
|
case "com.amazonaws.location#InternalServerException":
|
|
3527
|
-
|
|
3528
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3529
|
-
name: errorCode,
|
|
3530
|
-
$metadata: deserializeMetadata(output),
|
|
3531
|
-
};
|
|
3532
|
-
break;
|
|
2987
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3533
2988
|
case "ResourceNotFoundException":
|
|
3534
2989
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3535
|
-
|
|
3536
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3537
|
-
name: errorCode,
|
|
3538
|
-
$metadata: deserializeMetadata(output),
|
|
3539
|
-
};
|
|
3540
|
-
break;
|
|
2990
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3541
2991
|
case "ThrottlingException":
|
|
3542
2992
|
case "com.amazonaws.location#ThrottlingException":
|
|
3543
|
-
|
|
3544
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3545
|
-
name: errorCode,
|
|
3546
|
-
$metadata: deserializeMetadata(output),
|
|
3547
|
-
};
|
|
3548
|
-
break;
|
|
2993
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3549
2994
|
case "ValidationException":
|
|
3550
2995
|
case "com.amazonaws.location#ValidationException":
|
|
3551
|
-
|
|
3552
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3553
|
-
name: errorCode,
|
|
3554
|
-
$metadata: deserializeMetadata(output),
|
|
3555
|
-
};
|
|
3556
|
-
break;
|
|
2996
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3557
2997
|
default:
|
|
3558
2998
|
const parsedBody = parsedOutput.body;
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
...parsedBody,
|
|
3562
|
-
name: `${errorCode}`,
|
|
3563
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2999
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3000
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3564
3001
|
$fault: "client",
|
|
3565
3002
|
$metadata: deserializeMetadata(output),
|
|
3566
|
-
};
|
|
3003
|
+
});
|
|
3004
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3567
3005
|
}
|
|
3568
|
-
const message = response.message || response.Message || errorCode;
|
|
3569
|
-
response.message = message;
|
|
3570
|
-
delete response.Message;
|
|
3571
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3572
3006
|
};
|
|
3573
3007
|
const deserializeAws_restJson1DeleteTrackerCommand = async (output, context) => {
|
|
3574
3008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3592,59 +3026,28 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
|
|
|
3592
3026
|
switch (errorCode) {
|
|
3593
3027
|
case "AccessDeniedException":
|
|
3594
3028
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3595
|
-
|
|
3596
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3597
|
-
name: errorCode,
|
|
3598
|
-
$metadata: deserializeMetadata(output),
|
|
3599
|
-
};
|
|
3600
|
-
break;
|
|
3029
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3601
3030
|
case "InternalServerException":
|
|
3602
3031
|
case "com.amazonaws.location#InternalServerException":
|
|
3603
|
-
|
|
3604
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3605
|
-
name: errorCode,
|
|
3606
|
-
$metadata: deserializeMetadata(output),
|
|
3607
|
-
};
|
|
3608
|
-
break;
|
|
3032
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3609
3033
|
case "ResourceNotFoundException":
|
|
3610
3034
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3611
|
-
|
|
3612
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3613
|
-
name: errorCode,
|
|
3614
|
-
$metadata: deserializeMetadata(output),
|
|
3615
|
-
};
|
|
3616
|
-
break;
|
|
3035
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3617
3036
|
case "ThrottlingException":
|
|
3618
3037
|
case "com.amazonaws.location#ThrottlingException":
|
|
3619
|
-
|
|
3620
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3621
|
-
name: errorCode,
|
|
3622
|
-
$metadata: deserializeMetadata(output),
|
|
3623
|
-
};
|
|
3624
|
-
break;
|
|
3038
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3625
3039
|
case "ValidationException":
|
|
3626
3040
|
case "com.amazonaws.location#ValidationException":
|
|
3627
|
-
|
|
3628
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3629
|
-
name: errorCode,
|
|
3630
|
-
$metadata: deserializeMetadata(output),
|
|
3631
|
-
};
|
|
3632
|
-
break;
|
|
3041
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3633
3042
|
default:
|
|
3634
3043
|
const parsedBody = parsedOutput.body;
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
...parsedBody,
|
|
3638
|
-
name: `${errorCode}`,
|
|
3639
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3044
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3045
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3640
3046
|
$fault: "client",
|
|
3641
3047
|
$metadata: deserializeMetadata(output),
|
|
3642
|
-
};
|
|
3048
|
+
});
|
|
3049
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3643
3050
|
}
|
|
3644
|
-
const message = response.message || response.Message || errorCode;
|
|
3645
|
-
response.message = message;
|
|
3646
|
-
delete response.Message;
|
|
3647
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3648
3051
|
};
|
|
3649
3052
|
const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output, context) => {
|
|
3650
3053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3704,59 +3107,28 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
|
|
|
3704
3107
|
switch (errorCode) {
|
|
3705
3108
|
case "AccessDeniedException":
|
|
3706
3109
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3707
|
-
|
|
3708
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3709
|
-
name: errorCode,
|
|
3710
|
-
$metadata: deserializeMetadata(output),
|
|
3711
|
-
};
|
|
3712
|
-
break;
|
|
3110
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3713
3111
|
case "InternalServerException":
|
|
3714
3112
|
case "com.amazonaws.location#InternalServerException":
|
|
3715
|
-
|
|
3716
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3717
|
-
name: errorCode,
|
|
3718
|
-
$metadata: deserializeMetadata(output),
|
|
3719
|
-
};
|
|
3720
|
-
break;
|
|
3113
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3721
3114
|
case "ResourceNotFoundException":
|
|
3722
3115
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3723
|
-
|
|
3724
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3725
|
-
name: errorCode,
|
|
3726
|
-
$metadata: deserializeMetadata(output),
|
|
3727
|
-
};
|
|
3728
|
-
break;
|
|
3116
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3729
3117
|
case "ThrottlingException":
|
|
3730
3118
|
case "com.amazonaws.location#ThrottlingException":
|
|
3731
|
-
|
|
3732
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3733
|
-
name: errorCode,
|
|
3734
|
-
$metadata: deserializeMetadata(output),
|
|
3735
|
-
};
|
|
3736
|
-
break;
|
|
3119
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3737
3120
|
case "ValidationException":
|
|
3738
3121
|
case "com.amazonaws.location#ValidationException":
|
|
3739
|
-
|
|
3740
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3741
|
-
name: errorCode,
|
|
3742
|
-
$metadata: deserializeMetadata(output),
|
|
3743
|
-
};
|
|
3744
|
-
break;
|
|
3122
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3745
3123
|
default:
|
|
3746
3124
|
const parsedBody = parsedOutput.body;
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
...parsedBody,
|
|
3750
|
-
name: `${errorCode}`,
|
|
3751
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3125
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3126
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3752
3127
|
$fault: "client",
|
|
3753
3128
|
$metadata: deserializeMetadata(output),
|
|
3754
|
-
};
|
|
3129
|
+
});
|
|
3130
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3755
3131
|
}
|
|
3756
|
-
const message = response.message || response.Message || errorCode;
|
|
3757
|
-
response.message = message;
|
|
3758
|
-
delete response.Message;
|
|
3759
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3760
3132
|
};
|
|
3761
3133
|
const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
|
|
3762
3134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3816,59 +3188,28 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
|
|
|
3816
3188
|
switch (errorCode) {
|
|
3817
3189
|
case "AccessDeniedException":
|
|
3818
3190
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3819
|
-
|
|
3820
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3821
|
-
name: errorCode,
|
|
3822
|
-
$metadata: deserializeMetadata(output),
|
|
3823
|
-
};
|
|
3824
|
-
break;
|
|
3191
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3825
3192
|
case "InternalServerException":
|
|
3826
3193
|
case "com.amazonaws.location#InternalServerException":
|
|
3827
|
-
|
|
3828
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3829
|
-
name: errorCode,
|
|
3830
|
-
$metadata: deserializeMetadata(output),
|
|
3831
|
-
};
|
|
3832
|
-
break;
|
|
3194
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3833
3195
|
case "ResourceNotFoundException":
|
|
3834
3196
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3835
|
-
|
|
3836
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3837
|
-
name: errorCode,
|
|
3838
|
-
$metadata: deserializeMetadata(output),
|
|
3839
|
-
};
|
|
3840
|
-
break;
|
|
3197
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3841
3198
|
case "ThrottlingException":
|
|
3842
3199
|
case "com.amazonaws.location#ThrottlingException":
|
|
3843
|
-
|
|
3844
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3845
|
-
name: errorCode,
|
|
3846
|
-
$metadata: deserializeMetadata(output),
|
|
3847
|
-
};
|
|
3848
|
-
break;
|
|
3200
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3849
3201
|
case "ValidationException":
|
|
3850
3202
|
case "com.amazonaws.location#ValidationException":
|
|
3851
|
-
|
|
3852
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3853
|
-
name: errorCode,
|
|
3854
|
-
$metadata: deserializeMetadata(output),
|
|
3855
|
-
};
|
|
3856
|
-
break;
|
|
3203
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3857
3204
|
default:
|
|
3858
3205
|
const parsedBody = parsedOutput.body;
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
...parsedBody,
|
|
3862
|
-
name: `${errorCode}`,
|
|
3863
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3206
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3207
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3864
3208
|
$fault: "client",
|
|
3865
3209
|
$metadata: deserializeMetadata(output),
|
|
3866
|
-
};
|
|
3210
|
+
});
|
|
3211
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3867
3212
|
}
|
|
3868
|
-
const message = response.message || response.Message || errorCode;
|
|
3869
|
-
response.message = message;
|
|
3870
|
-
delete response.Message;
|
|
3871
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3872
3213
|
};
|
|
3873
3214
|
const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context) => {
|
|
3874
3215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3928,59 +3269,28 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
|
|
|
3928
3269
|
switch (errorCode) {
|
|
3929
3270
|
case "AccessDeniedException":
|
|
3930
3271
|
case "com.amazonaws.location#AccessDeniedException":
|
|
3931
|
-
|
|
3932
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3933
|
-
name: errorCode,
|
|
3934
|
-
$metadata: deserializeMetadata(output),
|
|
3935
|
-
};
|
|
3936
|
-
break;
|
|
3272
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3937
3273
|
case "InternalServerException":
|
|
3938
3274
|
case "com.amazonaws.location#InternalServerException":
|
|
3939
|
-
|
|
3940
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3941
|
-
name: errorCode,
|
|
3942
|
-
$metadata: deserializeMetadata(output),
|
|
3943
|
-
};
|
|
3944
|
-
break;
|
|
3275
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3945
3276
|
case "ResourceNotFoundException":
|
|
3946
3277
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3947
|
-
|
|
3948
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3949
|
-
name: errorCode,
|
|
3950
|
-
$metadata: deserializeMetadata(output),
|
|
3951
|
-
};
|
|
3952
|
-
break;
|
|
3278
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3953
3279
|
case "ThrottlingException":
|
|
3954
3280
|
case "com.amazonaws.location#ThrottlingException":
|
|
3955
|
-
|
|
3956
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3957
|
-
name: errorCode,
|
|
3958
|
-
$metadata: deserializeMetadata(output),
|
|
3959
|
-
};
|
|
3960
|
-
break;
|
|
3281
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3961
3282
|
case "ValidationException":
|
|
3962
3283
|
case "com.amazonaws.location#ValidationException":
|
|
3963
|
-
|
|
3964
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3965
|
-
name: errorCode,
|
|
3966
|
-
$metadata: deserializeMetadata(output),
|
|
3967
|
-
};
|
|
3968
|
-
break;
|
|
3284
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3969
3285
|
default:
|
|
3970
3286
|
const parsedBody = parsedOutput.body;
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
...parsedBody,
|
|
3974
|
-
name: `${errorCode}`,
|
|
3975
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3287
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3288
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3976
3289
|
$fault: "client",
|
|
3977
3290
|
$metadata: deserializeMetadata(output),
|
|
3978
|
-
};
|
|
3291
|
+
});
|
|
3292
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3979
3293
|
}
|
|
3980
|
-
const message = response.message || response.Message || errorCode;
|
|
3981
|
-
response.message = message;
|
|
3982
|
-
delete response.Message;
|
|
3983
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3984
3294
|
};
|
|
3985
3295
|
const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, context) => {
|
|
3986
3296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4036,59 +3346,28 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
|
|
|
4036
3346
|
switch (errorCode) {
|
|
4037
3347
|
case "AccessDeniedException":
|
|
4038
3348
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4039
|
-
|
|
4040
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4041
|
-
name: errorCode,
|
|
4042
|
-
$metadata: deserializeMetadata(output),
|
|
4043
|
-
};
|
|
4044
|
-
break;
|
|
3349
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4045
3350
|
case "InternalServerException":
|
|
4046
3351
|
case "com.amazonaws.location#InternalServerException":
|
|
4047
|
-
|
|
4048
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4049
|
-
name: errorCode,
|
|
4050
|
-
$metadata: deserializeMetadata(output),
|
|
4051
|
-
};
|
|
4052
|
-
break;
|
|
3352
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4053
3353
|
case "ResourceNotFoundException":
|
|
4054
3354
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4055
|
-
|
|
4056
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4057
|
-
name: errorCode,
|
|
4058
|
-
$metadata: deserializeMetadata(output),
|
|
4059
|
-
};
|
|
4060
|
-
break;
|
|
3355
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4061
3356
|
case "ThrottlingException":
|
|
4062
3357
|
case "com.amazonaws.location#ThrottlingException":
|
|
4063
|
-
|
|
4064
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4065
|
-
name: errorCode,
|
|
4066
|
-
$metadata: deserializeMetadata(output),
|
|
4067
|
-
};
|
|
4068
|
-
break;
|
|
3358
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4069
3359
|
case "ValidationException":
|
|
4070
3360
|
case "com.amazonaws.location#ValidationException":
|
|
4071
|
-
|
|
4072
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4073
|
-
name: errorCode,
|
|
4074
|
-
$metadata: deserializeMetadata(output),
|
|
4075
|
-
};
|
|
4076
|
-
break;
|
|
3361
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4077
3362
|
default:
|
|
4078
3363
|
const parsedBody = parsedOutput.body;
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
...parsedBody,
|
|
4082
|
-
name: `${errorCode}`,
|
|
4083
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3364
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3365
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4084
3366
|
$fault: "client",
|
|
4085
3367
|
$metadata: deserializeMetadata(output),
|
|
4086
|
-
};
|
|
3368
|
+
});
|
|
3369
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4087
3370
|
}
|
|
4088
|
-
const message = response.message || response.Message || errorCode;
|
|
4089
|
-
response.message = message;
|
|
4090
|
-
delete response.Message;
|
|
4091
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4092
3371
|
};
|
|
4093
3372
|
const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) => {
|
|
4094
3373
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4152,59 +3431,28 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
|
|
|
4152
3431
|
switch (errorCode) {
|
|
4153
3432
|
case "AccessDeniedException":
|
|
4154
3433
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4155
|
-
|
|
4156
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4157
|
-
name: errorCode,
|
|
4158
|
-
$metadata: deserializeMetadata(output),
|
|
4159
|
-
};
|
|
4160
|
-
break;
|
|
3434
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4161
3435
|
case "InternalServerException":
|
|
4162
3436
|
case "com.amazonaws.location#InternalServerException":
|
|
4163
|
-
|
|
4164
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4165
|
-
name: errorCode,
|
|
4166
|
-
$metadata: deserializeMetadata(output),
|
|
4167
|
-
};
|
|
4168
|
-
break;
|
|
3437
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4169
3438
|
case "ResourceNotFoundException":
|
|
4170
3439
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4171
|
-
|
|
4172
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4173
|
-
name: errorCode,
|
|
4174
|
-
$metadata: deserializeMetadata(output),
|
|
4175
|
-
};
|
|
4176
|
-
break;
|
|
3440
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4177
3441
|
case "ThrottlingException":
|
|
4178
3442
|
case "com.amazonaws.location#ThrottlingException":
|
|
4179
|
-
|
|
4180
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4181
|
-
name: errorCode,
|
|
4182
|
-
$metadata: deserializeMetadata(output),
|
|
4183
|
-
};
|
|
4184
|
-
break;
|
|
3443
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4185
3444
|
case "ValidationException":
|
|
4186
3445
|
case "com.amazonaws.location#ValidationException":
|
|
4187
|
-
|
|
4188
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4189
|
-
name: errorCode,
|
|
4190
|
-
$metadata: deserializeMetadata(output),
|
|
4191
|
-
};
|
|
4192
|
-
break;
|
|
3446
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4193
3447
|
default:
|
|
4194
3448
|
const parsedBody = parsedOutput.body;
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
...parsedBody,
|
|
4198
|
-
name: `${errorCode}`,
|
|
4199
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3449
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3450
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4200
3451
|
$fault: "client",
|
|
4201
3452
|
$metadata: deserializeMetadata(output),
|
|
4202
|
-
};
|
|
3453
|
+
});
|
|
3454
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4203
3455
|
}
|
|
4204
|
-
const message = response.message || response.Message || errorCode;
|
|
4205
|
-
response.message = message;
|
|
4206
|
-
delete response.Message;
|
|
4207
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4208
3456
|
};
|
|
4209
3457
|
const deserializeAws_restJson1DisassociateTrackerConsumerCommand = async (output, context) => {
|
|
4210
3458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4228,59 +3476,28 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
|
|
|
4228
3476
|
switch (errorCode) {
|
|
4229
3477
|
case "AccessDeniedException":
|
|
4230
3478
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4231
|
-
|
|
4232
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4233
|
-
name: errorCode,
|
|
4234
|
-
$metadata: deserializeMetadata(output),
|
|
4235
|
-
};
|
|
4236
|
-
break;
|
|
3479
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4237
3480
|
case "InternalServerException":
|
|
4238
3481
|
case "com.amazonaws.location#InternalServerException":
|
|
4239
|
-
|
|
4240
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4241
|
-
name: errorCode,
|
|
4242
|
-
$metadata: deserializeMetadata(output),
|
|
4243
|
-
};
|
|
4244
|
-
break;
|
|
3482
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4245
3483
|
case "ResourceNotFoundException":
|
|
4246
3484
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4247
|
-
|
|
4248
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4249
|
-
name: errorCode,
|
|
4250
|
-
$metadata: deserializeMetadata(output),
|
|
4251
|
-
};
|
|
4252
|
-
break;
|
|
3485
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4253
3486
|
case "ThrottlingException":
|
|
4254
3487
|
case "com.amazonaws.location#ThrottlingException":
|
|
4255
|
-
|
|
4256
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4257
|
-
name: errorCode,
|
|
4258
|
-
$metadata: deserializeMetadata(output),
|
|
4259
|
-
};
|
|
4260
|
-
break;
|
|
3488
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4261
3489
|
case "ValidationException":
|
|
4262
3490
|
case "com.amazonaws.location#ValidationException":
|
|
4263
|
-
|
|
4264
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4265
|
-
name: errorCode,
|
|
4266
|
-
$metadata: deserializeMetadata(output),
|
|
4267
|
-
};
|
|
4268
|
-
break;
|
|
3491
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4269
3492
|
default:
|
|
4270
3493
|
const parsedBody = parsedOutput.body;
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
...parsedBody,
|
|
4274
|
-
name: `${errorCode}`,
|
|
4275
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3494
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3495
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4276
3496
|
$fault: "client",
|
|
4277
3497
|
$metadata: deserializeMetadata(output),
|
|
4278
|
-
};
|
|
3498
|
+
});
|
|
3499
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4279
3500
|
}
|
|
4280
|
-
const message = response.message || response.Message || errorCode;
|
|
4281
|
-
response.message = message;
|
|
4282
|
-
delete response.Message;
|
|
4283
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4284
3501
|
};
|
|
4285
3502
|
const deserializeAws_restJson1GetDevicePositionCommand = async (output, context) => {
|
|
4286
3503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4328,59 +3545,28 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
|
|
|
4328
3545
|
switch (errorCode) {
|
|
4329
3546
|
case "AccessDeniedException":
|
|
4330
3547
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4331
|
-
|
|
4332
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4333
|
-
name: errorCode,
|
|
4334
|
-
$metadata: deserializeMetadata(output),
|
|
4335
|
-
};
|
|
4336
|
-
break;
|
|
3548
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4337
3549
|
case "InternalServerException":
|
|
4338
3550
|
case "com.amazonaws.location#InternalServerException":
|
|
4339
|
-
|
|
4340
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4341
|
-
name: errorCode,
|
|
4342
|
-
$metadata: deserializeMetadata(output),
|
|
4343
|
-
};
|
|
4344
|
-
break;
|
|
3551
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4345
3552
|
case "ResourceNotFoundException":
|
|
4346
3553
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4347
|
-
|
|
4348
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4349
|
-
name: errorCode,
|
|
4350
|
-
$metadata: deserializeMetadata(output),
|
|
4351
|
-
};
|
|
4352
|
-
break;
|
|
3554
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4353
3555
|
case "ThrottlingException":
|
|
4354
3556
|
case "com.amazonaws.location#ThrottlingException":
|
|
4355
|
-
|
|
4356
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4357
|
-
name: errorCode,
|
|
4358
|
-
$metadata: deserializeMetadata(output),
|
|
4359
|
-
};
|
|
4360
|
-
break;
|
|
3557
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4361
3558
|
case "ValidationException":
|
|
4362
3559
|
case "com.amazonaws.location#ValidationException":
|
|
4363
|
-
|
|
4364
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4365
|
-
name: errorCode,
|
|
4366
|
-
$metadata: deserializeMetadata(output),
|
|
4367
|
-
};
|
|
4368
|
-
break;
|
|
3560
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4369
3561
|
default:
|
|
4370
3562
|
const parsedBody = parsedOutput.body;
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
...parsedBody,
|
|
4374
|
-
name: `${errorCode}`,
|
|
4375
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3563
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3564
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4376
3565
|
$fault: "client",
|
|
4377
3566
|
$metadata: deserializeMetadata(output),
|
|
4378
|
-
};
|
|
3567
|
+
});
|
|
3568
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4379
3569
|
}
|
|
4380
|
-
const message = response.message || response.Message || errorCode;
|
|
4381
|
-
response.message = message;
|
|
4382
|
-
delete response.Message;
|
|
4383
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4384
3570
|
};
|
|
4385
3571
|
const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, context) => {
|
|
4386
3572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4412,59 +3598,28 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
|
|
|
4412
3598
|
switch (errorCode) {
|
|
4413
3599
|
case "AccessDeniedException":
|
|
4414
3600
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4415
|
-
|
|
4416
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4417
|
-
name: errorCode,
|
|
4418
|
-
$metadata: deserializeMetadata(output),
|
|
4419
|
-
};
|
|
4420
|
-
break;
|
|
3601
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4421
3602
|
case "InternalServerException":
|
|
4422
3603
|
case "com.amazonaws.location#InternalServerException":
|
|
4423
|
-
|
|
4424
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4425
|
-
name: errorCode,
|
|
4426
|
-
$metadata: deserializeMetadata(output),
|
|
4427
|
-
};
|
|
4428
|
-
break;
|
|
3604
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4429
3605
|
case "ResourceNotFoundException":
|
|
4430
3606
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4431
|
-
|
|
4432
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4433
|
-
name: errorCode,
|
|
4434
|
-
$metadata: deserializeMetadata(output),
|
|
4435
|
-
};
|
|
4436
|
-
break;
|
|
3607
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4437
3608
|
case "ThrottlingException":
|
|
4438
3609
|
case "com.amazonaws.location#ThrottlingException":
|
|
4439
|
-
|
|
4440
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4441
|
-
name: errorCode,
|
|
4442
|
-
$metadata: deserializeMetadata(output),
|
|
4443
|
-
};
|
|
4444
|
-
break;
|
|
3610
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4445
3611
|
case "ValidationException":
|
|
4446
3612
|
case "com.amazonaws.location#ValidationException":
|
|
4447
|
-
|
|
4448
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4449
|
-
name: errorCode,
|
|
4450
|
-
$metadata: deserializeMetadata(output),
|
|
4451
|
-
};
|
|
4452
|
-
break;
|
|
3613
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4453
3614
|
default:
|
|
4454
3615
|
const parsedBody = parsedOutput.body;
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
...parsedBody,
|
|
4458
|
-
name: `${errorCode}`,
|
|
4459
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3616
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3617
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4460
3618
|
$fault: "client",
|
|
4461
3619
|
$metadata: deserializeMetadata(output),
|
|
4462
|
-
};
|
|
3620
|
+
});
|
|
3621
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4463
3622
|
}
|
|
4464
|
-
const message = response.message || response.Message || errorCode;
|
|
4465
|
-
response.message = message;
|
|
4466
|
-
delete response.Message;
|
|
4467
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4468
3623
|
};
|
|
4469
3624
|
const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
|
|
4470
3625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4508,59 +3663,28 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
|
|
|
4508
3663
|
switch (errorCode) {
|
|
4509
3664
|
case "AccessDeniedException":
|
|
4510
3665
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4511
|
-
|
|
4512
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4513
|
-
name: errorCode,
|
|
4514
|
-
$metadata: deserializeMetadata(output),
|
|
4515
|
-
};
|
|
4516
|
-
break;
|
|
3666
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4517
3667
|
case "InternalServerException":
|
|
4518
3668
|
case "com.amazonaws.location#InternalServerException":
|
|
4519
|
-
|
|
4520
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4521
|
-
name: errorCode,
|
|
4522
|
-
$metadata: deserializeMetadata(output),
|
|
4523
|
-
};
|
|
4524
|
-
break;
|
|
3669
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4525
3670
|
case "ResourceNotFoundException":
|
|
4526
3671
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4527
|
-
|
|
4528
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4529
|
-
name: errorCode,
|
|
4530
|
-
$metadata: deserializeMetadata(output),
|
|
4531
|
-
};
|
|
4532
|
-
break;
|
|
3672
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4533
3673
|
case "ThrottlingException":
|
|
4534
3674
|
case "com.amazonaws.location#ThrottlingException":
|
|
4535
|
-
|
|
4536
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4537
|
-
name: errorCode,
|
|
4538
|
-
$metadata: deserializeMetadata(output),
|
|
4539
|
-
};
|
|
4540
|
-
break;
|
|
3675
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4541
3676
|
case "ValidationException":
|
|
4542
3677
|
case "com.amazonaws.location#ValidationException":
|
|
4543
|
-
|
|
4544
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4545
|
-
name: errorCode,
|
|
4546
|
-
$metadata: deserializeMetadata(output),
|
|
4547
|
-
};
|
|
4548
|
-
break;
|
|
3678
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4549
3679
|
default:
|
|
4550
3680
|
const parsedBody = parsedOutput.body;
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
...parsedBody,
|
|
4554
|
-
name: `${errorCode}`,
|
|
4555
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3681
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3682
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4556
3683
|
$fault: "client",
|
|
4557
3684
|
$metadata: deserializeMetadata(output),
|
|
4558
|
-
};
|
|
3685
|
+
});
|
|
3686
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4559
3687
|
}
|
|
4560
|
-
const message = response.message || response.Message || errorCode;
|
|
4561
|
-
response.message = message;
|
|
4562
|
-
delete response.Message;
|
|
4563
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4564
3688
|
};
|
|
4565
3689
|
const deserializeAws_restJson1GetMapGlyphsCommand = async (output, context) => {
|
|
4566
3690
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4590,59 +3714,28 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
|
|
|
4590
3714
|
switch (errorCode) {
|
|
4591
3715
|
case "AccessDeniedException":
|
|
4592
3716
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4593
|
-
|
|
4594
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4595
|
-
name: errorCode,
|
|
4596
|
-
$metadata: deserializeMetadata(output),
|
|
4597
|
-
};
|
|
4598
|
-
break;
|
|
3717
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4599
3718
|
case "InternalServerException":
|
|
4600
3719
|
case "com.amazonaws.location#InternalServerException":
|
|
4601
|
-
|
|
4602
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4603
|
-
name: errorCode,
|
|
4604
|
-
$metadata: deserializeMetadata(output),
|
|
4605
|
-
};
|
|
4606
|
-
break;
|
|
3720
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4607
3721
|
case "ResourceNotFoundException":
|
|
4608
3722
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4609
|
-
|
|
4610
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4611
|
-
name: errorCode,
|
|
4612
|
-
$metadata: deserializeMetadata(output),
|
|
4613
|
-
};
|
|
4614
|
-
break;
|
|
3723
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4615
3724
|
case "ThrottlingException":
|
|
4616
3725
|
case "com.amazonaws.location#ThrottlingException":
|
|
4617
|
-
|
|
4618
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4619
|
-
name: errorCode,
|
|
4620
|
-
$metadata: deserializeMetadata(output),
|
|
4621
|
-
};
|
|
4622
|
-
break;
|
|
3726
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4623
3727
|
case "ValidationException":
|
|
4624
3728
|
case "com.amazonaws.location#ValidationException":
|
|
4625
|
-
|
|
4626
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4627
|
-
name: errorCode,
|
|
4628
|
-
$metadata: deserializeMetadata(output),
|
|
4629
|
-
};
|
|
4630
|
-
break;
|
|
3729
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4631
3730
|
default:
|
|
4632
3731
|
const parsedBody = parsedOutput.body;
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
...parsedBody,
|
|
4636
|
-
name: `${errorCode}`,
|
|
4637
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3732
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3733
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4638
3734
|
$fault: "client",
|
|
4639
3735
|
$metadata: deserializeMetadata(output),
|
|
4640
|
-
};
|
|
3736
|
+
});
|
|
3737
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4641
3738
|
}
|
|
4642
|
-
const message = response.message || response.Message || errorCode;
|
|
4643
|
-
response.message = message;
|
|
4644
|
-
delete response.Message;
|
|
4645
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4646
3739
|
};
|
|
4647
3740
|
const deserializeAws_restJson1GetMapSpritesCommand = async (output, context) => {
|
|
4648
3741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4672,59 +3765,28 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
|
|
|
4672
3765
|
switch (errorCode) {
|
|
4673
3766
|
case "AccessDeniedException":
|
|
4674
3767
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4675
|
-
|
|
4676
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4677
|
-
name: errorCode,
|
|
4678
|
-
$metadata: deserializeMetadata(output),
|
|
4679
|
-
};
|
|
4680
|
-
break;
|
|
3768
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4681
3769
|
case "InternalServerException":
|
|
4682
3770
|
case "com.amazonaws.location#InternalServerException":
|
|
4683
|
-
|
|
4684
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4685
|
-
name: errorCode,
|
|
4686
|
-
$metadata: deserializeMetadata(output),
|
|
4687
|
-
};
|
|
4688
|
-
break;
|
|
3771
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4689
3772
|
case "ResourceNotFoundException":
|
|
4690
3773
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4691
|
-
|
|
4692
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4693
|
-
name: errorCode,
|
|
4694
|
-
$metadata: deserializeMetadata(output),
|
|
4695
|
-
};
|
|
4696
|
-
break;
|
|
3774
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4697
3775
|
case "ThrottlingException":
|
|
4698
3776
|
case "com.amazonaws.location#ThrottlingException":
|
|
4699
|
-
|
|
4700
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4701
|
-
name: errorCode,
|
|
4702
|
-
$metadata: deserializeMetadata(output),
|
|
4703
|
-
};
|
|
4704
|
-
break;
|
|
3777
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4705
3778
|
case "ValidationException":
|
|
4706
3779
|
case "com.amazonaws.location#ValidationException":
|
|
4707
|
-
|
|
4708
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4709
|
-
name: errorCode,
|
|
4710
|
-
$metadata: deserializeMetadata(output),
|
|
4711
|
-
};
|
|
4712
|
-
break;
|
|
3780
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4713
3781
|
default:
|
|
4714
3782
|
const parsedBody = parsedOutput.body;
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
...parsedBody,
|
|
4718
|
-
name: `${errorCode}`,
|
|
4719
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3783
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3784
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4720
3785
|
$fault: "client",
|
|
4721
3786
|
$metadata: deserializeMetadata(output),
|
|
4722
|
-
};
|
|
3787
|
+
});
|
|
3788
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4723
3789
|
}
|
|
4724
|
-
const message = response.message || response.Message || errorCode;
|
|
4725
|
-
response.message = message;
|
|
4726
|
-
delete response.Message;
|
|
4727
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4728
3790
|
};
|
|
4729
3791
|
const deserializeAws_restJson1GetMapStyleDescriptorCommand = async (output, context) => {
|
|
4730
3792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4754,59 +3816,28 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
|
|
|
4754
3816
|
switch (errorCode) {
|
|
4755
3817
|
case "AccessDeniedException":
|
|
4756
3818
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4757
|
-
|
|
4758
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4759
|
-
name: errorCode,
|
|
4760
|
-
$metadata: deserializeMetadata(output),
|
|
4761
|
-
};
|
|
4762
|
-
break;
|
|
3819
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4763
3820
|
case "InternalServerException":
|
|
4764
3821
|
case "com.amazonaws.location#InternalServerException":
|
|
4765
|
-
|
|
4766
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4767
|
-
name: errorCode,
|
|
4768
|
-
$metadata: deserializeMetadata(output),
|
|
4769
|
-
};
|
|
4770
|
-
break;
|
|
3822
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4771
3823
|
case "ResourceNotFoundException":
|
|
4772
3824
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4773
|
-
|
|
4774
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4775
|
-
name: errorCode,
|
|
4776
|
-
$metadata: deserializeMetadata(output),
|
|
4777
|
-
};
|
|
4778
|
-
break;
|
|
3825
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4779
3826
|
case "ThrottlingException":
|
|
4780
3827
|
case "com.amazonaws.location#ThrottlingException":
|
|
4781
|
-
|
|
4782
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4783
|
-
name: errorCode,
|
|
4784
|
-
$metadata: deserializeMetadata(output),
|
|
4785
|
-
};
|
|
4786
|
-
break;
|
|
3828
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4787
3829
|
case "ValidationException":
|
|
4788
3830
|
case "com.amazonaws.location#ValidationException":
|
|
4789
|
-
|
|
4790
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4791
|
-
name: errorCode,
|
|
4792
|
-
$metadata: deserializeMetadata(output),
|
|
4793
|
-
};
|
|
4794
|
-
break;
|
|
3831
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4795
3832
|
default:
|
|
4796
3833
|
const parsedBody = parsedOutput.body;
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
...parsedBody,
|
|
4800
|
-
name: `${errorCode}`,
|
|
4801
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3834
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3835
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4802
3836
|
$fault: "client",
|
|
4803
3837
|
$metadata: deserializeMetadata(output),
|
|
4804
|
-
};
|
|
3838
|
+
});
|
|
3839
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4805
3840
|
}
|
|
4806
|
-
const message = response.message || response.Message || errorCode;
|
|
4807
|
-
response.message = message;
|
|
4808
|
-
delete response.Message;
|
|
4809
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4810
3841
|
};
|
|
4811
3842
|
const deserializeAws_restJson1GetMapTileCommand = async (output, context) => {
|
|
4812
3843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4836,59 +3867,28 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
|
|
|
4836
3867
|
switch (errorCode) {
|
|
4837
3868
|
case "AccessDeniedException":
|
|
4838
3869
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4839
|
-
|
|
4840
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4841
|
-
name: errorCode,
|
|
4842
|
-
$metadata: deserializeMetadata(output),
|
|
4843
|
-
};
|
|
4844
|
-
break;
|
|
3870
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4845
3871
|
case "InternalServerException":
|
|
4846
3872
|
case "com.amazonaws.location#InternalServerException":
|
|
4847
|
-
|
|
4848
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4849
|
-
name: errorCode,
|
|
4850
|
-
$metadata: deserializeMetadata(output),
|
|
4851
|
-
};
|
|
4852
|
-
break;
|
|
3873
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4853
3874
|
case "ResourceNotFoundException":
|
|
4854
3875
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4855
|
-
|
|
4856
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4857
|
-
name: errorCode,
|
|
4858
|
-
$metadata: deserializeMetadata(output),
|
|
4859
|
-
};
|
|
4860
|
-
break;
|
|
3876
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4861
3877
|
case "ThrottlingException":
|
|
4862
3878
|
case "com.amazonaws.location#ThrottlingException":
|
|
4863
|
-
|
|
4864
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4865
|
-
name: errorCode,
|
|
4866
|
-
$metadata: deserializeMetadata(output),
|
|
4867
|
-
};
|
|
4868
|
-
break;
|
|
3879
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4869
3880
|
case "ValidationException":
|
|
4870
3881
|
case "com.amazonaws.location#ValidationException":
|
|
4871
|
-
|
|
4872
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4873
|
-
name: errorCode,
|
|
4874
|
-
$metadata: deserializeMetadata(output),
|
|
4875
|
-
};
|
|
4876
|
-
break;
|
|
3882
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4877
3883
|
default:
|
|
4878
3884
|
const parsedBody = parsedOutput.body;
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
...parsedBody,
|
|
4882
|
-
name: `${errorCode}`,
|
|
4883
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3885
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3886
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4884
3887
|
$fault: "client",
|
|
4885
3888
|
$metadata: deserializeMetadata(output),
|
|
4886
|
-
};
|
|
3889
|
+
});
|
|
3890
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4887
3891
|
}
|
|
4888
|
-
const message = response.message || response.Message || errorCode;
|
|
4889
|
-
response.message = message;
|
|
4890
|
-
delete response.Message;
|
|
4891
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4892
3892
|
};
|
|
4893
3893
|
const deserializeAws_restJson1ListDevicePositionsCommand = async (output, context) => {
|
|
4894
3894
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4920,51 +3920,25 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
|
|
|
4920
3920
|
switch (errorCode) {
|
|
4921
3921
|
case "AccessDeniedException":
|
|
4922
3922
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4923
|
-
|
|
4924
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4925
|
-
name: errorCode,
|
|
4926
|
-
$metadata: deserializeMetadata(output),
|
|
4927
|
-
};
|
|
4928
|
-
break;
|
|
3923
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4929
3924
|
case "InternalServerException":
|
|
4930
3925
|
case "com.amazonaws.location#InternalServerException":
|
|
4931
|
-
|
|
4932
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4933
|
-
name: errorCode,
|
|
4934
|
-
$metadata: deserializeMetadata(output),
|
|
4935
|
-
};
|
|
4936
|
-
break;
|
|
3926
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4937
3927
|
case "ThrottlingException":
|
|
4938
3928
|
case "com.amazonaws.location#ThrottlingException":
|
|
4939
|
-
|
|
4940
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4941
|
-
name: errorCode,
|
|
4942
|
-
$metadata: deserializeMetadata(output),
|
|
4943
|
-
};
|
|
4944
|
-
break;
|
|
3929
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4945
3930
|
case "ValidationException":
|
|
4946
3931
|
case "com.amazonaws.location#ValidationException":
|
|
4947
|
-
|
|
4948
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4949
|
-
name: errorCode,
|
|
4950
|
-
$metadata: deserializeMetadata(output),
|
|
4951
|
-
};
|
|
4952
|
-
break;
|
|
3932
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4953
3933
|
default:
|
|
4954
3934
|
const parsedBody = parsedOutput.body;
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
...parsedBody,
|
|
4958
|
-
name: `${errorCode}`,
|
|
4959
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3935
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3936
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4960
3937
|
$fault: "client",
|
|
4961
3938
|
$metadata: deserializeMetadata(output),
|
|
4962
|
-
};
|
|
3939
|
+
});
|
|
3940
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4963
3941
|
}
|
|
4964
|
-
const message = response.message || response.Message || errorCode;
|
|
4965
|
-
response.message = message;
|
|
4966
|
-
delete response.Message;
|
|
4967
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4968
3942
|
};
|
|
4969
3943
|
const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, context) => {
|
|
4970
3944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4996,51 +3970,25 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
|
|
|
4996
3970
|
switch (errorCode) {
|
|
4997
3971
|
case "AccessDeniedException":
|
|
4998
3972
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4999
|
-
|
|
5000
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5001
|
-
name: errorCode,
|
|
5002
|
-
$metadata: deserializeMetadata(output),
|
|
5003
|
-
};
|
|
5004
|
-
break;
|
|
3973
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5005
3974
|
case "InternalServerException":
|
|
5006
3975
|
case "com.amazonaws.location#InternalServerException":
|
|
5007
|
-
|
|
5008
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5009
|
-
name: errorCode,
|
|
5010
|
-
$metadata: deserializeMetadata(output),
|
|
5011
|
-
};
|
|
5012
|
-
break;
|
|
3976
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5013
3977
|
case "ThrottlingException":
|
|
5014
3978
|
case "com.amazonaws.location#ThrottlingException":
|
|
5015
|
-
|
|
5016
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5017
|
-
name: errorCode,
|
|
5018
|
-
$metadata: deserializeMetadata(output),
|
|
5019
|
-
};
|
|
5020
|
-
break;
|
|
3979
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5021
3980
|
case "ValidationException":
|
|
5022
3981
|
case "com.amazonaws.location#ValidationException":
|
|
5023
|
-
|
|
5024
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5025
|
-
name: errorCode,
|
|
5026
|
-
$metadata: deserializeMetadata(output),
|
|
5027
|
-
};
|
|
5028
|
-
break;
|
|
3982
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5029
3983
|
default:
|
|
5030
3984
|
const parsedBody = parsedOutput.body;
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
...parsedBody,
|
|
5034
|
-
name: `${errorCode}`,
|
|
5035
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3985
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
3986
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5036
3987
|
$fault: "client",
|
|
5037
3988
|
$metadata: deserializeMetadata(output),
|
|
5038
|
-
};
|
|
3989
|
+
});
|
|
3990
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5039
3991
|
}
|
|
5040
|
-
const message = response.message || response.Message || errorCode;
|
|
5041
|
-
response.message = message;
|
|
5042
|
-
delete response.Message;
|
|
5043
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5044
3992
|
};
|
|
5045
3993
|
const deserializeAws_restJson1ListGeofencesCommand = async (output, context) => {
|
|
5046
3994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5072,59 +4020,28 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
|
|
|
5072
4020
|
switch (errorCode) {
|
|
5073
4021
|
case "AccessDeniedException":
|
|
5074
4022
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5075
|
-
|
|
5076
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5077
|
-
name: errorCode,
|
|
5078
|
-
$metadata: deserializeMetadata(output),
|
|
5079
|
-
};
|
|
5080
|
-
break;
|
|
4023
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5081
4024
|
case "InternalServerException":
|
|
5082
4025
|
case "com.amazonaws.location#InternalServerException":
|
|
5083
|
-
|
|
5084
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5085
|
-
name: errorCode,
|
|
5086
|
-
$metadata: deserializeMetadata(output),
|
|
5087
|
-
};
|
|
5088
|
-
break;
|
|
4026
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5089
4027
|
case "ResourceNotFoundException":
|
|
5090
4028
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5091
|
-
|
|
5092
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5093
|
-
name: errorCode,
|
|
5094
|
-
$metadata: deserializeMetadata(output),
|
|
5095
|
-
};
|
|
5096
|
-
break;
|
|
4029
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5097
4030
|
case "ThrottlingException":
|
|
5098
4031
|
case "com.amazonaws.location#ThrottlingException":
|
|
5099
|
-
|
|
5100
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5101
|
-
name: errorCode,
|
|
5102
|
-
$metadata: deserializeMetadata(output),
|
|
5103
|
-
};
|
|
5104
|
-
break;
|
|
4032
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5105
4033
|
case "ValidationException":
|
|
5106
4034
|
case "com.amazonaws.location#ValidationException":
|
|
5107
|
-
|
|
5108
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5109
|
-
name: errorCode,
|
|
5110
|
-
$metadata: deserializeMetadata(output),
|
|
5111
|
-
};
|
|
5112
|
-
break;
|
|
4035
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5113
4036
|
default:
|
|
5114
4037
|
const parsedBody = parsedOutput.body;
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
...parsedBody,
|
|
5118
|
-
name: `${errorCode}`,
|
|
5119
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4038
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4039
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5120
4040
|
$fault: "client",
|
|
5121
4041
|
$metadata: deserializeMetadata(output),
|
|
5122
|
-
};
|
|
4042
|
+
});
|
|
4043
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5123
4044
|
}
|
|
5124
|
-
const message = response.message || response.Message || errorCode;
|
|
5125
|
-
response.message = message;
|
|
5126
|
-
delete response.Message;
|
|
5127
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5128
4045
|
};
|
|
5129
4046
|
const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
|
|
5130
4047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5156,51 +4073,25 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
|
|
|
5156
4073
|
switch (errorCode) {
|
|
5157
4074
|
case "AccessDeniedException":
|
|
5158
4075
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5159
|
-
|
|
5160
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5161
|
-
name: errorCode,
|
|
5162
|
-
$metadata: deserializeMetadata(output),
|
|
5163
|
-
};
|
|
5164
|
-
break;
|
|
4076
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5165
4077
|
case "InternalServerException":
|
|
5166
4078
|
case "com.amazonaws.location#InternalServerException":
|
|
5167
|
-
|
|
5168
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5169
|
-
name: errorCode,
|
|
5170
|
-
$metadata: deserializeMetadata(output),
|
|
5171
|
-
};
|
|
5172
|
-
break;
|
|
4079
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5173
4080
|
case "ThrottlingException":
|
|
5174
4081
|
case "com.amazonaws.location#ThrottlingException":
|
|
5175
|
-
|
|
5176
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5177
|
-
name: errorCode,
|
|
5178
|
-
$metadata: deserializeMetadata(output),
|
|
5179
|
-
};
|
|
5180
|
-
break;
|
|
4082
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5181
4083
|
case "ValidationException":
|
|
5182
4084
|
case "com.amazonaws.location#ValidationException":
|
|
5183
|
-
|
|
5184
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5185
|
-
name: errorCode,
|
|
5186
|
-
$metadata: deserializeMetadata(output),
|
|
5187
|
-
};
|
|
5188
|
-
break;
|
|
4085
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5189
4086
|
default:
|
|
5190
4087
|
const parsedBody = parsedOutput.body;
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
...parsedBody,
|
|
5194
|
-
name: `${errorCode}`,
|
|
5195
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4088
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4089
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5196
4090
|
$fault: "client",
|
|
5197
4091
|
$metadata: deserializeMetadata(output),
|
|
5198
|
-
};
|
|
4092
|
+
});
|
|
4093
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5199
4094
|
}
|
|
5200
|
-
const message = response.message || response.Message || errorCode;
|
|
5201
|
-
response.message = message;
|
|
5202
|
-
delete response.Message;
|
|
5203
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5204
4095
|
};
|
|
5205
4096
|
const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context) => {
|
|
5206
4097
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5232,51 +4123,25 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
|
|
|
5232
4123
|
switch (errorCode) {
|
|
5233
4124
|
case "AccessDeniedException":
|
|
5234
4125
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5235
|
-
|
|
5236
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5237
|
-
name: errorCode,
|
|
5238
|
-
$metadata: deserializeMetadata(output),
|
|
5239
|
-
};
|
|
5240
|
-
break;
|
|
4126
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5241
4127
|
case "InternalServerException":
|
|
5242
4128
|
case "com.amazonaws.location#InternalServerException":
|
|
5243
|
-
|
|
5244
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5245
|
-
name: errorCode,
|
|
5246
|
-
$metadata: deserializeMetadata(output),
|
|
5247
|
-
};
|
|
5248
|
-
break;
|
|
4129
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5249
4130
|
case "ThrottlingException":
|
|
5250
4131
|
case "com.amazonaws.location#ThrottlingException":
|
|
5251
|
-
|
|
5252
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5253
|
-
name: errorCode,
|
|
5254
|
-
$metadata: deserializeMetadata(output),
|
|
5255
|
-
};
|
|
5256
|
-
break;
|
|
4132
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5257
4133
|
case "ValidationException":
|
|
5258
4134
|
case "com.amazonaws.location#ValidationException":
|
|
5259
|
-
|
|
5260
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5261
|
-
name: errorCode,
|
|
5262
|
-
$metadata: deserializeMetadata(output),
|
|
5263
|
-
};
|
|
5264
|
-
break;
|
|
4135
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5265
4136
|
default:
|
|
5266
4137
|
const parsedBody = parsedOutput.body;
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
...parsedBody,
|
|
5270
|
-
name: `${errorCode}`,
|
|
5271
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4138
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5272
4140
|
$fault: "client",
|
|
5273
4141
|
$metadata: deserializeMetadata(output),
|
|
5274
|
-
};
|
|
4142
|
+
});
|
|
4143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5275
4144
|
}
|
|
5276
|
-
const message = response.message || response.Message || errorCode;
|
|
5277
|
-
response.message = message;
|
|
5278
|
-
delete response.Message;
|
|
5279
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5280
4145
|
};
|
|
5281
4146
|
const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, context) => {
|
|
5282
4147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5308,51 +4173,25 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
|
|
|
5308
4173
|
switch (errorCode) {
|
|
5309
4174
|
case "AccessDeniedException":
|
|
5310
4175
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5311
|
-
|
|
5312
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5313
|
-
name: errorCode,
|
|
5314
|
-
$metadata: deserializeMetadata(output),
|
|
5315
|
-
};
|
|
5316
|
-
break;
|
|
4176
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5317
4177
|
case "InternalServerException":
|
|
5318
4178
|
case "com.amazonaws.location#InternalServerException":
|
|
5319
|
-
|
|
5320
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5321
|
-
name: errorCode,
|
|
5322
|
-
$metadata: deserializeMetadata(output),
|
|
5323
|
-
};
|
|
5324
|
-
break;
|
|
4179
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5325
4180
|
case "ThrottlingException":
|
|
5326
4181
|
case "com.amazonaws.location#ThrottlingException":
|
|
5327
|
-
|
|
5328
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5329
|
-
name: errorCode,
|
|
5330
|
-
$metadata: deserializeMetadata(output),
|
|
5331
|
-
};
|
|
5332
|
-
break;
|
|
4182
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5333
4183
|
case "ValidationException":
|
|
5334
4184
|
case "com.amazonaws.location#ValidationException":
|
|
5335
|
-
|
|
5336
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5337
|
-
name: errorCode,
|
|
5338
|
-
$metadata: deserializeMetadata(output),
|
|
5339
|
-
};
|
|
5340
|
-
break;
|
|
4185
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5341
4186
|
default:
|
|
5342
4187
|
const parsedBody = parsedOutput.body;
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
...parsedBody,
|
|
5346
|
-
name: `${errorCode}`,
|
|
5347
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4188
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4189
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5348
4190
|
$fault: "client",
|
|
5349
4191
|
$metadata: deserializeMetadata(output),
|
|
5350
|
-
};
|
|
4192
|
+
});
|
|
4193
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5351
4194
|
}
|
|
5352
|
-
const message = response.message || response.Message || errorCode;
|
|
5353
|
-
response.message = message;
|
|
5354
|
-
delete response.Message;
|
|
5355
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5356
4195
|
};
|
|
5357
4196
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
5358
4197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5380,59 +4219,28 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
5380
4219
|
switch (errorCode) {
|
|
5381
4220
|
case "AccessDeniedException":
|
|
5382
4221
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5383
|
-
|
|
5384
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5385
|
-
name: errorCode,
|
|
5386
|
-
$metadata: deserializeMetadata(output),
|
|
5387
|
-
};
|
|
5388
|
-
break;
|
|
4222
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5389
4223
|
case "InternalServerException":
|
|
5390
4224
|
case "com.amazonaws.location#InternalServerException":
|
|
5391
|
-
|
|
5392
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5393
|
-
name: errorCode,
|
|
5394
|
-
$metadata: deserializeMetadata(output),
|
|
5395
|
-
};
|
|
5396
|
-
break;
|
|
4225
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5397
4226
|
case "ResourceNotFoundException":
|
|
5398
4227
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5399
|
-
|
|
5400
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5401
|
-
name: errorCode,
|
|
5402
|
-
$metadata: deserializeMetadata(output),
|
|
5403
|
-
};
|
|
5404
|
-
break;
|
|
4228
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5405
4229
|
case "ThrottlingException":
|
|
5406
4230
|
case "com.amazonaws.location#ThrottlingException":
|
|
5407
|
-
|
|
5408
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5409
|
-
name: errorCode,
|
|
5410
|
-
$metadata: deserializeMetadata(output),
|
|
5411
|
-
};
|
|
5412
|
-
break;
|
|
4231
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5413
4232
|
case "ValidationException":
|
|
5414
4233
|
case "com.amazonaws.location#ValidationException":
|
|
5415
|
-
|
|
5416
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5417
|
-
name: errorCode,
|
|
5418
|
-
$metadata: deserializeMetadata(output),
|
|
5419
|
-
};
|
|
5420
|
-
break;
|
|
4234
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5421
4235
|
default:
|
|
5422
4236
|
const parsedBody = parsedOutput.body;
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
...parsedBody,
|
|
5426
|
-
name: `${errorCode}`,
|
|
5427
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4237
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4238
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5428
4239
|
$fault: "client",
|
|
5429
4240
|
$metadata: deserializeMetadata(output),
|
|
5430
|
-
};
|
|
4241
|
+
});
|
|
4242
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5431
4243
|
}
|
|
5432
|
-
const message = response.message || response.Message || errorCode;
|
|
5433
|
-
response.message = message;
|
|
5434
|
-
delete response.Message;
|
|
5435
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5436
4244
|
};
|
|
5437
4245
|
const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, context) => {
|
|
5438
4246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5464,59 +4272,28 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
|
|
|
5464
4272
|
switch (errorCode) {
|
|
5465
4273
|
case "AccessDeniedException":
|
|
5466
4274
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5467
|
-
|
|
5468
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5469
|
-
name: errorCode,
|
|
5470
|
-
$metadata: deserializeMetadata(output),
|
|
5471
|
-
};
|
|
5472
|
-
break;
|
|
4275
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5473
4276
|
case "InternalServerException":
|
|
5474
4277
|
case "com.amazonaws.location#InternalServerException":
|
|
5475
|
-
|
|
5476
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5477
|
-
name: errorCode,
|
|
5478
|
-
$metadata: deserializeMetadata(output),
|
|
5479
|
-
};
|
|
5480
|
-
break;
|
|
4278
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5481
4279
|
case "ResourceNotFoundException":
|
|
5482
4280
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5483
|
-
|
|
5484
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5485
|
-
name: errorCode,
|
|
5486
|
-
$metadata: deserializeMetadata(output),
|
|
5487
|
-
};
|
|
5488
|
-
break;
|
|
4281
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5489
4282
|
case "ThrottlingException":
|
|
5490
4283
|
case "com.amazonaws.location#ThrottlingException":
|
|
5491
|
-
|
|
5492
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5493
|
-
name: errorCode,
|
|
5494
|
-
$metadata: deserializeMetadata(output),
|
|
5495
|
-
};
|
|
5496
|
-
break;
|
|
4284
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5497
4285
|
case "ValidationException":
|
|
5498
4286
|
case "com.amazonaws.location#ValidationException":
|
|
5499
|
-
|
|
5500
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5501
|
-
name: errorCode,
|
|
5502
|
-
$metadata: deserializeMetadata(output),
|
|
5503
|
-
};
|
|
5504
|
-
break;
|
|
4287
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5505
4288
|
default:
|
|
5506
4289
|
const parsedBody = parsedOutput.body;
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
...parsedBody,
|
|
5510
|
-
name: `${errorCode}`,
|
|
5511
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4290
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4291
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5512
4292
|
$fault: "client",
|
|
5513
4293
|
$metadata: deserializeMetadata(output),
|
|
5514
|
-
};
|
|
4294
|
+
});
|
|
4295
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5515
4296
|
}
|
|
5516
|
-
const message = response.message || response.Message || errorCode;
|
|
5517
|
-
response.message = message;
|
|
5518
|
-
delete response.Message;
|
|
5519
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5520
4297
|
};
|
|
5521
4298
|
const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
|
|
5522
4299
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5548,51 +4325,25 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
|
|
|
5548
4325
|
switch (errorCode) {
|
|
5549
4326
|
case "AccessDeniedException":
|
|
5550
4327
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5551
|
-
|
|
5552
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5553
|
-
name: errorCode,
|
|
5554
|
-
$metadata: deserializeMetadata(output),
|
|
5555
|
-
};
|
|
5556
|
-
break;
|
|
4328
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5557
4329
|
case "InternalServerException":
|
|
5558
4330
|
case "com.amazonaws.location#InternalServerException":
|
|
5559
|
-
|
|
5560
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5561
|
-
name: errorCode,
|
|
5562
|
-
$metadata: deserializeMetadata(output),
|
|
5563
|
-
};
|
|
5564
|
-
break;
|
|
4331
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5565
4332
|
case "ThrottlingException":
|
|
5566
4333
|
case "com.amazonaws.location#ThrottlingException":
|
|
5567
|
-
|
|
5568
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5569
|
-
name: errorCode,
|
|
5570
|
-
$metadata: deserializeMetadata(output),
|
|
5571
|
-
};
|
|
5572
|
-
break;
|
|
4334
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5573
4335
|
case "ValidationException":
|
|
5574
4336
|
case "com.amazonaws.location#ValidationException":
|
|
5575
|
-
|
|
5576
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5577
|
-
name: errorCode,
|
|
5578
|
-
$metadata: deserializeMetadata(output),
|
|
5579
|
-
};
|
|
5580
|
-
break;
|
|
4337
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5581
4338
|
default:
|
|
5582
4339
|
const parsedBody = parsedOutput.body;
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
...parsedBody,
|
|
5586
|
-
name: `${errorCode}`,
|
|
5587
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4340
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4341
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5588
4342
|
$fault: "client",
|
|
5589
4343
|
$metadata: deserializeMetadata(output),
|
|
5590
|
-
};
|
|
4344
|
+
});
|
|
4345
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5591
4346
|
}
|
|
5592
|
-
const message = response.message || response.Message || errorCode;
|
|
5593
|
-
response.message = message;
|
|
5594
|
-
delete response.Message;
|
|
5595
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5596
4347
|
};
|
|
5597
4348
|
const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
|
|
5598
4349
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5628,67 +4379,31 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
|
|
|
5628
4379
|
switch (errorCode) {
|
|
5629
4380
|
case "AccessDeniedException":
|
|
5630
4381
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5631
|
-
|
|
5632
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5633
|
-
name: errorCode,
|
|
5634
|
-
$metadata: deserializeMetadata(output),
|
|
5635
|
-
};
|
|
5636
|
-
break;
|
|
4382
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5637
4383
|
case "ConflictException":
|
|
5638
4384
|
case "com.amazonaws.location#ConflictException":
|
|
5639
|
-
|
|
5640
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
5641
|
-
name: errorCode,
|
|
5642
|
-
$metadata: deserializeMetadata(output),
|
|
5643
|
-
};
|
|
5644
|
-
break;
|
|
4385
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
5645
4386
|
case "InternalServerException":
|
|
5646
4387
|
case "com.amazonaws.location#InternalServerException":
|
|
5647
|
-
|
|
5648
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5649
|
-
name: errorCode,
|
|
5650
|
-
$metadata: deserializeMetadata(output),
|
|
5651
|
-
};
|
|
5652
|
-
break;
|
|
4388
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5653
4389
|
case "ResourceNotFoundException":
|
|
5654
4390
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5655
|
-
|
|
5656
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5657
|
-
name: errorCode,
|
|
5658
|
-
$metadata: deserializeMetadata(output),
|
|
5659
|
-
};
|
|
5660
|
-
break;
|
|
4391
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5661
4392
|
case "ThrottlingException":
|
|
5662
4393
|
case "com.amazonaws.location#ThrottlingException":
|
|
5663
|
-
|
|
5664
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5665
|
-
name: errorCode,
|
|
5666
|
-
$metadata: deserializeMetadata(output),
|
|
5667
|
-
};
|
|
5668
|
-
break;
|
|
4394
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5669
4395
|
case "ValidationException":
|
|
5670
4396
|
case "com.amazonaws.location#ValidationException":
|
|
5671
|
-
|
|
5672
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5673
|
-
name: errorCode,
|
|
5674
|
-
$metadata: deserializeMetadata(output),
|
|
5675
|
-
};
|
|
5676
|
-
break;
|
|
4397
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5677
4398
|
default:
|
|
5678
4399
|
const parsedBody = parsedOutput.body;
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
...parsedBody,
|
|
5682
|
-
name: `${errorCode}`,
|
|
5683
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4400
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4401
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5684
4402
|
$fault: "client",
|
|
5685
4403
|
$metadata: deserializeMetadata(output),
|
|
5686
|
-
};
|
|
4404
|
+
});
|
|
4405
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5687
4406
|
}
|
|
5688
|
-
const message = response.message || response.Message || errorCode;
|
|
5689
|
-
response.message = message;
|
|
5690
|
-
delete response.Message;
|
|
5691
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5692
4407
|
};
|
|
5693
4408
|
const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output, context) => {
|
|
5694
4409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5720,59 +4435,28 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
5720
4435
|
switch (errorCode) {
|
|
5721
4436
|
case "AccessDeniedException":
|
|
5722
4437
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5723
|
-
|
|
5724
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5725
|
-
name: errorCode,
|
|
5726
|
-
$metadata: deserializeMetadata(output),
|
|
5727
|
-
};
|
|
5728
|
-
break;
|
|
4438
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5729
4439
|
case "InternalServerException":
|
|
5730
4440
|
case "com.amazonaws.location#InternalServerException":
|
|
5731
|
-
|
|
5732
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5733
|
-
name: errorCode,
|
|
5734
|
-
$metadata: deserializeMetadata(output),
|
|
5735
|
-
};
|
|
5736
|
-
break;
|
|
4441
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5737
4442
|
case "ResourceNotFoundException":
|
|
5738
4443
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5739
|
-
|
|
5740
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5741
|
-
name: errorCode,
|
|
5742
|
-
$metadata: deserializeMetadata(output),
|
|
5743
|
-
};
|
|
5744
|
-
break;
|
|
4444
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5745
4445
|
case "ThrottlingException":
|
|
5746
4446
|
case "com.amazonaws.location#ThrottlingException":
|
|
5747
|
-
|
|
5748
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5749
|
-
name: errorCode,
|
|
5750
|
-
$metadata: deserializeMetadata(output),
|
|
5751
|
-
};
|
|
5752
|
-
break;
|
|
4447
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5753
4448
|
case "ValidationException":
|
|
5754
4449
|
case "com.amazonaws.location#ValidationException":
|
|
5755
|
-
|
|
5756
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5757
|
-
name: errorCode,
|
|
5758
|
-
$metadata: deserializeMetadata(output),
|
|
5759
|
-
};
|
|
5760
|
-
break;
|
|
4450
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5761
4451
|
default:
|
|
5762
4452
|
const parsedBody = parsedOutput.body;
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
...parsedBody,
|
|
5766
|
-
name: `${errorCode}`,
|
|
5767
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4453
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4454
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5768
4455
|
$fault: "client",
|
|
5769
4456
|
$metadata: deserializeMetadata(output),
|
|
5770
|
-
};
|
|
4457
|
+
});
|
|
4458
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5771
4459
|
}
|
|
5772
|
-
const message = response.message || response.Message || errorCode;
|
|
5773
|
-
response.message = message;
|
|
5774
|
-
delete response.Message;
|
|
5775
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5776
4460
|
};
|
|
5777
4461
|
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
|
|
5778
4462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5804,59 +4488,28 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
|
|
|
5804
4488
|
switch (errorCode) {
|
|
5805
4489
|
case "AccessDeniedException":
|
|
5806
4490
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5807
|
-
|
|
5808
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5809
|
-
name: errorCode,
|
|
5810
|
-
$metadata: deserializeMetadata(output),
|
|
5811
|
-
};
|
|
5812
|
-
break;
|
|
4491
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5813
4492
|
case "InternalServerException":
|
|
5814
4493
|
case "com.amazonaws.location#InternalServerException":
|
|
5815
|
-
|
|
5816
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5817
|
-
name: errorCode,
|
|
5818
|
-
$metadata: deserializeMetadata(output),
|
|
5819
|
-
};
|
|
5820
|
-
break;
|
|
4494
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5821
4495
|
case "ResourceNotFoundException":
|
|
5822
4496
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5823
|
-
|
|
5824
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5825
|
-
name: errorCode,
|
|
5826
|
-
$metadata: deserializeMetadata(output),
|
|
5827
|
-
};
|
|
5828
|
-
break;
|
|
4497
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5829
4498
|
case "ThrottlingException":
|
|
5830
4499
|
case "com.amazonaws.location#ThrottlingException":
|
|
5831
|
-
|
|
5832
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5833
|
-
name: errorCode,
|
|
5834
|
-
$metadata: deserializeMetadata(output),
|
|
5835
|
-
};
|
|
5836
|
-
break;
|
|
4500
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5837
4501
|
case "ValidationException":
|
|
5838
4502
|
case "com.amazonaws.location#ValidationException":
|
|
5839
|
-
|
|
5840
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5841
|
-
name: errorCode,
|
|
5842
|
-
$metadata: deserializeMetadata(output),
|
|
5843
|
-
};
|
|
5844
|
-
break;
|
|
4503
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5845
4504
|
default:
|
|
5846
4505
|
const parsedBody = parsedOutput.body;
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
...parsedBody,
|
|
5850
|
-
name: `${errorCode}`,
|
|
5851
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4506
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4507
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5852
4508
|
$fault: "client",
|
|
5853
4509
|
$metadata: deserializeMetadata(output),
|
|
5854
|
-
};
|
|
4510
|
+
});
|
|
4511
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5855
4512
|
}
|
|
5856
|
-
const message = response.message || response.Message || errorCode;
|
|
5857
|
-
response.message = message;
|
|
5858
|
-
delete response.Message;
|
|
5859
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5860
4513
|
};
|
|
5861
4514
|
const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
5862
4515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5888,59 +4541,28 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
|
|
|
5888
4541
|
switch (errorCode) {
|
|
5889
4542
|
case "AccessDeniedException":
|
|
5890
4543
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5891
|
-
|
|
5892
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5893
|
-
name: errorCode,
|
|
5894
|
-
$metadata: deserializeMetadata(output),
|
|
5895
|
-
};
|
|
5896
|
-
break;
|
|
4544
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5897
4545
|
case "InternalServerException":
|
|
5898
4546
|
case "com.amazonaws.location#InternalServerException":
|
|
5899
|
-
|
|
5900
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5901
|
-
name: errorCode,
|
|
5902
|
-
$metadata: deserializeMetadata(output),
|
|
5903
|
-
};
|
|
5904
|
-
break;
|
|
4547
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5905
4548
|
case "ResourceNotFoundException":
|
|
5906
4549
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5907
|
-
|
|
5908
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5909
|
-
name: errorCode,
|
|
5910
|
-
$metadata: deserializeMetadata(output),
|
|
5911
|
-
};
|
|
5912
|
-
break;
|
|
4550
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5913
4551
|
case "ThrottlingException":
|
|
5914
4552
|
case "com.amazonaws.location#ThrottlingException":
|
|
5915
|
-
|
|
5916
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5917
|
-
name: errorCode,
|
|
5918
|
-
$metadata: deserializeMetadata(output),
|
|
5919
|
-
};
|
|
5920
|
-
break;
|
|
4553
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5921
4554
|
case "ValidationException":
|
|
5922
4555
|
case "com.amazonaws.location#ValidationException":
|
|
5923
|
-
|
|
5924
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5925
|
-
name: errorCode,
|
|
5926
|
-
$metadata: deserializeMetadata(output),
|
|
5927
|
-
};
|
|
5928
|
-
break;
|
|
4556
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
5929
4557
|
default:
|
|
5930
4558
|
const parsedBody = parsedOutput.body;
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
...parsedBody,
|
|
5934
|
-
name: `${errorCode}`,
|
|
5935
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4559
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5936
4561
|
$fault: "client",
|
|
5937
4562
|
$metadata: deserializeMetadata(output),
|
|
5938
|
-
};
|
|
4563
|
+
});
|
|
4564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5939
4565
|
}
|
|
5940
|
-
const message = response.message || response.Message || errorCode;
|
|
5941
|
-
response.message = message;
|
|
5942
|
-
delete response.Message;
|
|
5943
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5944
4566
|
};
|
|
5945
4567
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
5946
4568
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5964,59 +4586,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
5964
4586
|
switch (errorCode) {
|
|
5965
4587
|
case "AccessDeniedException":
|
|
5966
4588
|
case "com.amazonaws.location#AccessDeniedException":
|
|
5967
|
-
|
|
5968
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5969
|
-
name: errorCode,
|
|
5970
|
-
$metadata: deserializeMetadata(output),
|
|
5971
|
-
};
|
|
5972
|
-
break;
|
|
4589
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
5973
4590
|
case "InternalServerException":
|
|
5974
4591
|
case "com.amazonaws.location#InternalServerException":
|
|
5975
|
-
|
|
5976
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5977
|
-
name: errorCode,
|
|
5978
|
-
$metadata: deserializeMetadata(output),
|
|
5979
|
-
};
|
|
5980
|
-
break;
|
|
4592
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
5981
4593
|
case "ResourceNotFoundException":
|
|
5982
4594
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5983
|
-
|
|
5984
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5985
|
-
name: errorCode,
|
|
5986
|
-
$metadata: deserializeMetadata(output),
|
|
5987
|
-
};
|
|
5988
|
-
break;
|
|
4595
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5989
4596
|
case "ThrottlingException":
|
|
5990
4597
|
case "com.amazonaws.location#ThrottlingException":
|
|
5991
|
-
|
|
5992
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5993
|
-
name: errorCode,
|
|
5994
|
-
$metadata: deserializeMetadata(output),
|
|
5995
|
-
};
|
|
5996
|
-
break;
|
|
4598
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
5997
4599
|
case "ValidationException":
|
|
5998
4600
|
case "com.amazonaws.location#ValidationException":
|
|
5999
|
-
|
|
6000
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6001
|
-
name: errorCode,
|
|
6002
|
-
$metadata: deserializeMetadata(output),
|
|
6003
|
-
};
|
|
6004
|
-
break;
|
|
4601
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6005
4602
|
default:
|
|
6006
4603
|
const parsedBody = parsedOutput.body;
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
...parsedBody,
|
|
6010
|
-
name: `${errorCode}`,
|
|
6011
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4604
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4605
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6012
4606
|
$fault: "client",
|
|
6013
4607
|
$metadata: deserializeMetadata(output),
|
|
6014
|
-
};
|
|
4608
|
+
});
|
|
4609
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6015
4610
|
}
|
|
6016
|
-
const message = response.message || response.Message || errorCode;
|
|
6017
|
-
response.message = message;
|
|
6018
|
-
delete response.Message;
|
|
6019
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6020
4611
|
};
|
|
6021
4612
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
6022
4613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6040,59 +4631,28 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6040
4631
|
switch (errorCode) {
|
|
6041
4632
|
case "AccessDeniedException":
|
|
6042
4633
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6043
|
-
|
|
6044
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6045
|
-
name: errorCode,
|
|
6046
|
-
$metadata: deserializeMetadata(output),
|
|
6047
|
-
};
|
|
6048
|
-
break;
|
|
4634
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6049
4635
|
case "InternalServerException":
|
|
6050
4636
|
case "com.amazonaws.location#InternalServerException":
|
|
6051
|
-
|
|
6052
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6053
|
-
name: errorCode,
|
|
6054
|
-
$metadata: deserializeMetadata(output),
|
|
6055
|
-
};
|
|
6056
|
-
break;
|
|
4637
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6057
4638
|
case "ResourceNotFoundException":
|
|
6058
4639
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6059
|
-
|
|
6060
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6061
|
-
name: errorCode,
|
|
6062
|
-
$metadata: deserializeMetadata(output),
|
|
6063
|
-
};
|
|
6064
|
-
break;
|
|
4640
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6065
4641
|
case "ThrottlingException":
|
|
6066
4642
|
case "com.amazonaws.location#ThrottlingException":
|
|
6067
|
-
|
|
6068
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6069
|
-
name: errorCode,
|
|
6070
|
-
$metadata: deserializeMetadata(output),
|
|
6071
|
-
};
|
|
6072
|
-
break;
|
|
4643
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6073
4644
|
case "ValidationException":
|
|
6074
4645
|
case "com.amazonaws.location#ValidationException":
|
|
6075
|
-
|
|
6076
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6077
|
-
name: errorCode,
|
|
6078
|
-
$metadata: deserializeMetadata(output),
|
|
6079
|
-
};
|
|
6080
|
-
break;
|
|
4646
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6081
4647
|
default:
|
|
6082
4648
|
const parsedBody = parsedOutput.body;
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
...parsedBody,
|
|
6086
|
-
name: `${errorCode}`,
|
|
6087
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4649
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4650
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6088
4651
|
$fault: "client",
|
|
6089
4652
|
$metadata: deserializeMetadata(output),
|
|
6090
|
-
};
|
|
4653
|
+
});
|
|
4654
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6091
4655
|
}
|
|
6092
|
-
const message = response.message || response.Message || errorCode;
|
|
6093
|
-
response.message = message;
|
|
6094
|
-
delete response.Message;
|
|
6095
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6096
4656
|
};
|
|
6097
4657
|
const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, context) => {
|
|
6098
4658
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6128,59 +4688,28 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
|
|
|
6128
4688
|
switch (errorCode) {
|
|
6129
4689
|
case "AccessDeniedException":
|
|
6130
4690
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6131
|
-
|
|
6132
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6133
|
-
name: errorCode,
|
|
6134
|
-
$metadata: deserializeMetadata(output),
|
|
6135
|
-
};
|
|
6136
|
-
break;
|
|
4691
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6137
4692
|
case "InternalServerException":
|
|
6138
4693
|
case "com.amazonaws.location#InternalServerException":
|
|
6139
|
-
|
|
6140
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6141
|
-
name: errorCode,
|
|
6142
|
-
$metadata: deserializeMetadata(output),
|
|
6143
|
-
};
|
|
6144
|
-
break;
|
|
4694
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6145
4695
|
case "ResourceNotFoundException":
|
|
6146
4696
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6147
|
-
|
|
6148
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6149
|
-
name: errorCode,
|
|
6150
|
-
$metadata: deserializeMetadata(output),
|
|
6151
|
-
};
|
|
6152
|
-
break;
|
|
4697
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6153
4698
|
case "ThrottlingException":
|
|
6154
4699
|
case "com.amazonaws.location#ThrottlingException":
|
|
6155
|
-
|
|
6156
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6157
|
-
name: errorCode,
|
|
6158
|
-
$metadata: deserializeMetadata(output),
|
|
6159
|
-
};
|
|
6160
|
-
break;
|
|
4700
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6161
4701
|
case "ValidationException":
|
|
6162
4702
|
case "com.amazonaws.location#ValidationException":
|
|
6163
|
-
|
|
6164
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6165
|
-
name: errorCode,
|
|
6166
|
-
$metadata: deserializeMetadata(output),
|
|
6167
|
-
};
|
|
6168
|
-
break;
|
|
4703
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6169
4704
|
default:
|
|
6170
4705
|
const parsedBody = parsedOutput.body;
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
...parsedBody,
|
|
6174
|
-
name: `${errorCode}`,
|
|
6175
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4706
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4707
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6176
4708
|
$fault: "client",
|
|
6177
4709
|
$metadata: deserializeMetadata(output),
|
|
6178
|
-
};
|
|
4710
|
+
});
|
|
4711
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6179
4712
|
}
|
|
6180
|
-
const message = response.message || response.Message || errorCode;
|
|
6181
|
-
response.message = message;
|
|
6182
|
-
delete response.Message;
|
|
6183
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6184
4713
|
};
|
|
6185
4714
|
const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
|
|
6186
4715
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6216,59 +4745,28 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
|
|
|
6216
4745
|
switch (errorCode) {
|
|
6217
4746
|
case "AccessDeniedException":
|
|
6218
4747
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6219
|
-
|
|
6220
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6221
|
-
name: errorCode,
|
|
6222
|
-
$metadata: deserializeMetadata(output),
|
|
6223
|
-
};
|
|
6224
|
-
break;
|
|
4748
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6225
4749
|
case "InternalServerException":
|
|
6226
4750
|
case "com.amazonaws.location#InternalServerException":
|
|
6227
|
-
|
|
6228
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6229
|
-
name: errorCode,
|
|
6230
|
-
$metadata: deserializeMetadata(output),
|
|
6231
|
-
};
|
|
6232
|
-
break;
|
|
4751
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6233
4752
|
case "ResourceNotFoundException":
|
|
6234
4753
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6235
|
-
|
|
6236
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6237
|
-
name: errorCode,
|
|
6238
|
-
$metadata: deserializeMetadata(output),
|
|
6239
|
-
};
|
|
6240
|
-
break;
|
|
4754
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6241
4755
|
case "ThrottlingException":
|
|
6242
4756
|
case "com.amazonaws.location#ThrottlingException":
|
|
6243
|
-
|
|
6244
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6245
|
-
name: errorCode,
|
|
6246
|
-
$metadata: deserializeMetadata(output),
|
|
6247
|
-
};
|
|
6248
|
-
break;
|
|
4757
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6249
4758
|
case "ValidationException":
|
|
6250
4759
|
case "com.amazonaws.location#ValidationException":
|
|
6251
|
-
|
|
6252
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6253
|
-
name: errorCode,
|
|
6254
|
-
$metadata: deserializeMetadata(output),
|
|
6255
|
-
};
|
|
6256
|
-
break;
|
|
4760
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6257
4761
|
default:
|
|
6258
4762
|
const parsedBody = parsedOutput.body;
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
...parsedBody,
|
|
6262
|
-
name: `${errorCode}`,
|
|
6263
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4763
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4764
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6264
4765
|
$fault: "client",
|
|
6265
4766
|
$metadata: deserializeMetadata(output),
|
|
6266
|
-
};
|
|
4767
|
+
});
|
|
4768
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6267
4769
|
}
|
|
6268
|
-
const message = response.message || response.Message || errorCode;
|
|
6269
|
-
response.message = message;
|
|
6270
|
-
delete response.Message;
|
|
6271
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6272
4770
|
};
|
|
6273
4771
|
const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context) => {
|
|
6274
4772
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6304,59 +4802,28 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
|
|
|
6304
4802
|
switch (errorCode) {
|
|
6305
4803
|
case "AccessDeniedException":
|
|
6306
4804
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6307
|
-
|
|
6308
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6309
|
-
name: errorCode,
|
|
6310
|
-
$metadata: deserializeMetadata(output),
|
|
6311
|
-
};
|
|
6312
|
-
break;
|
|
4805
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6313
4806
|
case "InternalServerException":
|
|
6314
4807
|
case "com.amazonaws.location#InternalServerException":
|
|
6315
|
-
|
|
6316
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6317
|
-
name: errorCode,
|
|
6318
|
-
$metadata: deserializeMetadata(output),
|
|
6319
|
-
};
|
|
6320
|
-
break;
|
|
4808
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6321
4809
|
case "ResourceNotFoundException":
|
|
6322
4810
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6323
|
-
|
|
6324
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6325
|
-
name: errorCode,
|
|
6326
|
-
$metadata: deserializeMetadata(output),
|
|
6327
|
-
};
|
|
6328
|
-
break;
|
|
4811
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6329
4812
|
case "ThrottlingException":
|
|
6330
4813
|
case "com.amazonaws.location#ThrottlingException":
|
|
6331
|
-
|
|
6332
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6333
|
-
name: errorCode,
|
|
6334
|
-
$metadata: deserializeMetadata(output),
|
|
6335
|
-
};
|
|
6336
|
-
break;
|
|
4814
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6337
4815
|
case "ValidationException":
|
|
6338
4816
|
case "com.amazonaws.location#ValidationException":
|
|
6339
|
-
|
|
6340
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6341
|
-
name: errorCode,
|
|
6342
|
-
$metadata: deserializeMetadata(output),
|
|
6343
|
-
};
|
|
6344
|
-
break;
|
|
4817
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6345
4818
|
default:
|
|
6346
4819
|
const parsedBody = parsedOutput.body;
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
...parsedBody,
|
|
6350
|
-
name: `${errorCode}`,
|
|
6351
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4820
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4821
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6352
4822
|
$fault: "client",
|
|
6353
4823
|
$metadata: deserializeMetadata(output),
|
|
6354
|
-
};
|
|
4824
|
+
});
|
|
4825
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6355
4826
|
}
|
|
6356
|
-
const message = response.message || response.Message || errorCode;
|
|
6357
|
-
response.message = message;
|
|
6358
|
-
delete response.Message;
|
|
6359
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6360
4827
|
};
|
|
6361
4828
|
const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, context) => {
|
|
6362
4829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6392,59 +4859,28 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
|
|
|
6392
4859
|
switch (errorCode) {
|
|
6393
4860
|
case "AccessDeniedException":
|
|
6394
4861
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6395
|
-
|
|
6396
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6397
|
-
name: errorCode,
|
|
6398
|
-
$metadata: deserializeMetadata(output),
|
|
6399
|
-
};
|
|
6400
|
-
break;
|
|
4862
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6401
4863
|
case "InternalServerException":
|
|
6402
4864
|
case "com.amazonaws.location#InternalServerException":
|
|
6403
|
-
|
|
6404
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6405
|
-
name: errorCode,
|
|
6406
|
-
$metadata: deserializeMetadata(output),
|
|
6407
|
-
};
|
|
6408
|
-
break;
|
|
4865
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6409
4866
|
case "ResourceNotFoundException":
|
|
6410
4867
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6411
|
-
|
|
6412
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6413
|
-
name: errorCode,
|
|
6414
|
-
$metadata: deserializeMetadata(output),
|
|
6415
|
-
};
|
|
6416
|
-
break;
|
|
4868
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6417
4869
|
case "ThrottlingException":
|
|
6418
4870
|
case "com.amazonaws.location#ThrottlingException":
|
|
6419
|
-
|
|
6420
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6421
|
-
name: errorCode,
|
|
6422
|
-
$metadata: deserializeMetadata(output),
|
|
6423
|
-
};
|
|
6424
|
-
break;
|
|
4871
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6425
4872
|
case "ValidationException":
|
|
6426
4873
|
case "com.amazonaws.location#ValidationException":
|
|
6427
|
-
|
|
6428
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6429
|
-
name: errorCode,
|
|
6430
|
-
$metadata: deserializeMetadata(output),
|
|
6431
|
-
};
|
|
6432
|
-
break;
|
|
4874
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6433
4875
|
default:
|
|
6434
4876
|
const parsedBody = parsedOutput.body;
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
...parsedBody,
|
|
6438
|
-
name: `${errorCode}`,
|
|
6439
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4877
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4878
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6440
4879
|
$fault: "client",
|
|
6441
4880
|
$metadata: deserializeMetadata(output),
|
|
6442
|
-
};
|
|
4881
|
+
});
|
|
4882
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6443
4883
|
}
|
|
6444
|
-
const message = response.message || response.Message || errorCode;
|
|
6445
|
-
response.message = message;
|
|
6446
|
-
delete response.Message;
|
|
6447
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6448
4884
|
};
|
|
6449
4885
|
const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) => {
|
|
6450
4886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6480,149 +4916,103 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
|
|
|
6480
4916
|
switch (errorCode) {
|
|
6481
4917
|
case "AccessDeniedException":
|
|
6482
4918
|
case "com.amazonaws.location#AccessDeniedException":
|
|
6483
|
-
|
|
6484
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6485
|
-
name: errorCode,
|
|
6486
|
-
$metadata: deserializeMetadata(output),
|
|
6487
|
-
};
|
|
6488
|
-
break;
|
|
4919
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
6489
4920
|
case "InternalServerException":
|
|
6490
4921
|
case "com.amazonaws.location#InternalServerException":
|
|
6491
|
-
|
|
6492
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
6493
|
-
name: errorCode,
|
|
6494
|
-
$metadata: deserializeMetadata(output),
|
|
6495
|
-
};
|
|
6496
|
-
break;
|
|
4922
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
6497
4923
|
case "ResourceNotFoundException":
|
|
6498
4924
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
6499
|
-
|
|
6500
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6501
|
-
name: errorCode,
|
|
6502
|
-
$metadata: deserializeMetadata(output),
|
|
6503
|
-
};
|
|
6504
|
-
break;
|
|
4925
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6505
4926
|
case "ThrottlingException":
|
|
6506
4927
|
case "com.amazonaws.location#ThrottlingException":
|
|
6507
|
-
|
|
6508
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6509
|
-
name: errorCode,
|
|
6510
|
-
$metadata: deserializeMetadata(output),
|
|
6511
|
-
};
|
|
6512
|
-
break;
|
|
4928
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
6513
4929
|
case "ValidationException":
|
|
6514
4930
|
case "com.amazonaws.location#ValidationException":
|
|
6515
|
-
|
|
6516
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
6517
|
-
name: errorCode,
|
|
6518
|
-
$metadata: deserializeMetadata(output),
|
|
6519
|
-
};
|
|
6520
|
-
break;
|
|
4931
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
6521
4932
|
default:
|
|
6522
4933
|
const parsedBody = parsedOutput.body;
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
...parsedBody,
|
|
6526
|
-
name: `${errorCode}`,
|
|
6527
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4934
|
+
response = new LocationServiceException_1.LocationServiceException({
|
|
4935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6528
4936
|
$fault: "client",
|
|
6529
4937
|
$metadata: deserializeMetadata(output),
|
|
6530
|
-
};
|
|
4938
|
+
});
|
|
4939
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6531
4940
|
}
|
|
6532
|
-
const message = response.message || response.Message || errorCode;
|
|
6533
|
-
response.message = message;
|
|
6534
|
-
delete response.Message;
|
|
6535
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6536
4941
|
};
|
|
6537
4942
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
6538
|
-
const contents = {
|
|
6539
|
-
name: "AccessDeniedException",
|
|
6540
|
-
$fault: "client",
|
|
6541
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6542
|
-
Message: undefined,
|
|
6543
|
-
};
|
|
4943
|
+
const contents = {};
|
|
6544
4944
|
const data = parsedOutput.body;
|
|
6545
4945
|
if (data.message !== undefined && data.message !== null) {
|
|
6546
4946
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6547
4947
|
}
|
|
6548
|
-
|
|
4948
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
4949
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4950
|
+
...contents,
|
|
4951
|
+
});
|
|
4952
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6549
4953
|
};
|
|
6550
4954
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
6551
|
-
const contents = {
|
|
6552
|
-
name: "ConflictException",
|
|
6553
|
-
$fault: "client",
|
|
6554
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6555
|
-
Message: undefined,
|
|
6556
|
-
};
|
|
4955
|
+
const contents = {};
|
|
6557
4956
|
const data = parsedOutput.body;
|
|
6558
4957
|
if (data.message !== undefined && data.message !== null) {
|
|
6559
4958
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6560
4959
|
}
|
|
6561
|
-
|
|
4960
|
+
const exception = new models_0_1.ConflictException({
|
|
4961
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4962
|
+
...contents,
|
|
4963
|
+
});
|
|
4964
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6562
4965
|
};
|
|
6563
4966
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
6564
|
-
const contents = {
|
|
6565
|
-
name: "InternalServerException",
|
|
6566
|
-
$fault: "server",
|
|
6567
|
-
$retryable: {},
|
|
6568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6569
|
-
Message: undefined,
|
|
6570
|
-
};
|
|
4967
|
+
const contents = {};
|
|
6571
4968
|
const data = parsedOutput.body;
|
|
6572
4969
|
if (data.message !== undefined && data.message !== null) {
|
|
6573
4970
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6574
4971
|
}
|
|
6575
|
-
|
|
4972
|
+
const exception = new models_0_1.InternalServerException({
|
|
4973
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4974
|
+
...contents,
|
|
4975
|
+
});
|
|
4976
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6576
4977
|
};
|
|
6577
4978
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
6578
|
-
const contents = {
|
|
6579
|
-
name: "ResourceNotFoundException",
|
|
6580
|
-
$fault: "client",
|
|
6581
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6582
|
-
Message: undefined,
|
|
6583
|
-
};
|
|
4979
|
+
const contents = {};
|
|
6584
4980
|
const data = parsedOutput.body;
|
|
6585
4981
|
if (data.message !== undefined && data.message !== null) {
|
|
6586
4982
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6587
4983
|
}
|
|
6588
|
-
|
|
4984
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
4985
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4986
|
+
...contents,
|
|
4987
|
+
});
|
|
4988
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6589
4989
|
};
|
|
6590
4990
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
6591
|
-
const contents = {
|
|
6592
|
-
name: "ServiceQuotaExceededException",
|
|
6593
|
-
$fault: "client",
|
|
6594
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6595
|
-
Message: undefined,
|
|
6596
|
-
};
|
|
4991
|
+
const contents = {};
|
|
6597
4992
|
const data = parsedOutput.body;
|
|
6598
4993
|
if (data.message !== undefined && data.message !== null) {
|
|
6599
4994
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6600
4995
|
}
|
|
6601
|
-
|
|
4996
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
4997
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4998
|
+
...contents,
|
|
4999
|
+
});
|
|
5000
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6602
5001
|
};
|
|
6603
5002
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
6604
|
-
const contents = {
|
|
6605
|
-
name: "ThrottlingException",
|
|
6606
|
-
$fault: "client",
|
|
6607
|
-
$retryable: {},
|
|
6608
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6609
|
-
Message: undefined,
|
|
6610
|
-
};
|
|
5003
|
+
const contents = {};
|
|
6611
5004
|
const data = parsedOutput.body;
|
|
6612
5005
|
if (data.message !== undefined && data.message !== null) {
|
|
6613
5006
|
contents.Message = smithy_client_1.expectString(data.message);
|
|
6614
5007
|
}
|
|
6615
|
-
|
|
5008
|
+
const exception = new models_0_1.ThrottlingException({
|
|
5009
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5010
|
+
...contents,
|
|
5011
|
+
});
|
|
5012
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6616
5013
|
};
|
|
6617
5014
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
6618
|
-
const contents = {
|
|
6619
|
-
name: "ValidationException",
|
|
6620
|
-
$fault: "client",
|
|
6621
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
6622
|
-
FieldList: undefined,
|
|
6623
|
-
Message: undefined,
|
|
6624
|
-
Reason: undefined,
|
|
6625
|
-
};
|
|
5015
|
+
const contents = {};
|
|
6626
5016
|
const data = parsedOutput.body;
|
|
6627
5017
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
6628
5018
|
contents.FieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
@@ -6633,7 +5023,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
6633
5023
|
if (data.reason !== undefined && data.reason !== null) {
|
|
6634
5024
|
contents.Reason = smithy_client_1.expectString(data.reason);
|
|
6635
5025
|
}
|
|
6636
|
-
|
|
5026
|
+
const exception = new models_0_1.ValidationException({
|
|
5027
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5028
|
+
...contents,
|
|
5029
|
+
});
|
|
5030
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
6637
5031
|
};
|
|
6638
5032
|
const serializeAws_restJson1BatchPutGeofenceRequestEntry = (input, context) => {
|
|
6639
5033
|
return {
|
|
@@ -6842,7 +5236,7 @@ const serializeAws_restJson1WaypointPositionList = (input, context) => {
|
|
|
6842
5236
|
});
|
|
6843
5237
|
};
|
|
6844
5238
|
const deserializeAws_restJson1ArnList = (output, context) => {
|
|
6845
|
-
|
|
5239
|
+
const retVal = (output || [])
|
|
6846
5240
|
.filter((e) => e != null)
|
|
6847
5241
|
.map((entry) => {
|
|
6848
5242
|
if (entry === null) {
|
|
@@ -6850,6 +5244,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
6850
5244
|
}
|
|
6851
5245
|
return smithy_client_1.expectString(entry);
|
|
6852
5246
|
});
|
|
5247
|
+
return retVal;
|
|
6853
5248
|
};
|
|
6854
5249
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
|
|
6855
5250
|
return {
|
|
@@ -6860,7 +5255,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, c
|
|
|
6860
5255
|
};
|
|
6861
5256
|
};
|
|
6862
5257
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
|
|
6863
|
-
|
|
5258
|
+
const retVal = (output || [])
|
|
6864
5259
|
.filter((e) => e != null)
|
|
6865
5260
|
.map((entry) => {
|
|
6866
5261
|
if (entry === null) {
|
|
@@ -6868,6 +5263,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (outpu
|
|
|
6868
5263
|
}
|
|
6869
5264
|
return deserializeAws_restJson1BatchDeleteDevicePositionHistoryError(entry, context);
|
|
6870
5265
|
});
|
|
5266
|
+
return retVal;
|
|
6871
5267
|
};
|
|
6872
5268
|
const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
|
|
6873
5269
|
return {
|
|
@@ -6878,7 +5274,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
|
|
|
6878
5274
|
};
|
|
6879
5275
|
};
|
|
6880
5276
|
const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) => {
|
|
6881
|
-
|
|
5277
|
+
const retVal = (output || [])
|
|
6882
5278
|
.filter((e) => e != null)
|
|
6883
5279
|
.map((entry) => {
|
|
6884
5280
|
if (entry === null) {
|
|
@@ -6886,6 +5282,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) =
|
|
|
6886
5282
|
}
|
|
6887
5283
|
return deserializeAws_restJson1BatchDeleteGeofenceError(entry, context);
|
|
6888
5284
|
});
|
|
5285
|
+
return retVal;
|
|
6889
5286
|
};
|
|
6890
5287
|
const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
|
|
6891
5288
|
return {
|
|
@@ -6899,7 +5296,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) =>
|
|
|
6899
5296
|
};
|
|
6900
5297
|
};
|
|
6901
5298
|
const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
6902
|
-
|
|
5299
|
+
const retVal = (output || [])
|
|
6903
5300
|
.filter((e) => e != null)
|
|
6904
5301
|
.map((entry) => {
|
|
6905
5302
|
if (entry === null) {
|
|
@@ -6907,6 +5304,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context
|
|
|
6907
5304
|
}
|
|
6908
5305
|
return deserializeAws_restJson1BatchEvaluateGeofencesError(entry, context);
|
|
6909
5306
|
});
|
|
5307
|
+
return retVal;
|
|
6910
5308
|
};
|
|
6911
5309
|
const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
|
|
6912
5310
|
return {
|
|
@@ -6917,7 +5315,7 @@ const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) =>
|
|
|
6917
5315
|
};
|
|
6918
5316
|
};
|
|
6919
5317
|
const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context) => {
|
|
6920
|
-
|
|
5318
|
+
const retVal = (output || [])
|
|
6921
5319
|
.filter((e) => e != null)
|
|
6922
5320
|
.map((entry) => {
|
|
6923
5321
|
if (entry === null) {
|
|
@@ -6925,6 +5323,7 @@ const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context
|
|
|
6925
5323
|
}
|
|
6926
5324
|
return deserializeAws_restJson1BatchGetDevicePositionError(entry, context);
|
|
6927
5325
|
});
|
|
5326
|
+
return retVal;
|
|
6928
5327
|
};
|
|
6929
5328
|
const deserializeAws_restJson1BatchItemError = (output, context) => {
|
|
6930
5329
|
return {
|
|
@@ -6941,7 +5340,7 @@ const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
|
|
|
6941
5340
|
};
|
|
6942
5341
|
};
|
|
6943
5342
|
const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
6944
|
-
|
|
5343
|
+
const retVal = (output || [])
|
|
6945
5344
|
.filter((e) => e != null)
|
|
6946
5345
|
.map((entry) => {
|
|
6947
5346
|
if (entry === null) {
|
|
@@ -6949,6 +5348,7 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
|
6949
5348
|
}
|
|
6950
5349
|
return deserializeAws_restJson1BatchPutGeofenceError(entry, context);
|
|
6951
5350
|
});
|
|
5351
|
+
return retVal;
|
|
6952
5352
|
};
|
|
6953
5353
|
const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
6954
5354
|
return {
|
|
@@ -6962,7 +5362,7 @@ const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
|
6962
5362
|
};
|
|
6963
5363
|
};
|
|
6964
5364
|
const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) => {
|
|
6965
|
-
|
|
5365
|
+
const retVal = (output || [])
|
|
6966
5366
|
.filter((e) => e != null)
|
|
6967
5367
|
.map((entry) => {
|
|
6968
5368
|
if (entry === null) {
|
|
@@ -6970,6 +5370,7 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) =>
|
|
|
6970
5370
|
}
|
|
6971
5371
|
return deserializeAws_restJson1BatchPutGeofenceSuccess(entry, context);
|
|
6972
5372
|
});
|
|
5373
|
+
return retVal;
|
|
6973
5374
|
};
|
|
6974
5375
|
const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
|
|
6975
5376
|
return {
|
|
@@ -6983,7 +5384,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context)
|
|
|
6983
5384
|
};
|
|
6984
5385
|
};
|
|
6985
5386
|
const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
6986
|
-
|
|
5387
|
+
const retVal = (output || [])
|
|
6987
5388
|
.filter((e) => e != null)
|
|
6988
5389
|
.map((entry) => {
|
|
6989
5390
|
if (entry === null) {
|
|
@@ -6991,9 +5392,10 @@ const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, cont
|
|
|
6991
5392
|
}
|
|
6992
5393
|
return deserializeAws_restJson1BatchUpdateDevicePositionError(entry, context);
|
|
6993
5394
|
});
|
|
5395
|
+
return retVal;
|
|
6994
5396
|
};
|
|
6995
5397
|
const deserializeAws_restJson1BoundingBox = (output, context) => {
|
|
6996
|
-
|
|
5398
|
+
const retVal = (output || [])
|
|
6997
5399
|
.filter((e) => e != null)
|
|
6998
5400
|
.map((entry) => {
|
|
6999
5401
|
if (entry === null) {
|
|
@@ -7001,6 +5403,7 @@ const deserializeAws_restJson1BoundingBox = (output, context) => {
|
|
|
7001
5403
|
}
|
|
7002
5404
|
return smithy_client_1.limitedParseDouble(entry);
|
|
7003
5405
|
});
|
|
5406
|
+
return retVal;
|
|
7004
5407
|
};
|
|
7005
5408
|
const deserializeAws_restJson1CalculateRouteMatrixSummary = (output, context) => {
|
|
7006
5409
|
return {
|
|
@@ -7022,7 +5425,7 @@ const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
|
7022
5425
|
};
|
|
7023
5426
|
};
|
|
7024
5427
|
const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
7025
|
-
|
|
5428
|
+
const retVal = (output || [])
|
|
7026
5429
|
.filter((e) => e != null)
|
|
7027
5430
|
.map((entry) => {
|
|
7028
5431
|
if (entry === null) {
|
|
@@ -7030,6 +5433,7 @@ const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
|
7030
5433
|
}
|
|
7031
5434
|
return smithy_client_1.expectString(entry);
|
|
7032
5435
|
});
|
|
5436
|
+
return retVal;
|
|
7033
5437
|
};
|
|
7034
5438
|
const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
|
|
7035
5439
|
return {
|
|
@@ -7057,7 +5461,7 @@ const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
|
7057
5461
|
};
|
|
7058
5462
|
};
|
|
7059
5463
|
const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
7060
|
-
|
|
5464
|
+
const retVal = (output || [])
|
|
7061
5465
|
.filter((e) => e != null)
|
|
7062
5466
|
.map((entry) => {
|
|
7063
5467
|
if (entry === null) {
|
|
@@ -7065,6 +5469,7 @@ const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
|
7065
5469
|
}
|
|
7066
5470
|
return deserializeAws_restJson1DevicePosition(entry, context);
|
|
7067
5471
|
});
|
|
5472
|
+
return retVal;
|
|
7068
5473
|
};
|
|
7069
5474
|
const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
7070
5475
|
return {
|
|
@@ -7099,7 +5504,7 @@ const deserializeAws_restJson1LegGeometry = (output, context) => {
|
|
|
7099
5504
|
};
|
|
7100
5505
|
};
|
|
7101
5506
|
const deserializeAws_restJson1LegList = (output, context) => {
|
|
7102
|
-
|
|
5507
|
+
const retVal = (output || [])
|
|
7103
5508
|
.filter((e) => e != null)
|
|
7104
5509
|
.map((entry) => {
|
|
7105
5510
|
if (entry === null) {
|
|
@@ -7107,9 +5512,10 @@ const deserializeAws_restJson1LegList = (output, context) => {
|
|
|
7107
5512
|
}
|
|
7108
5513
|
return deserializeAws_restJson1Leg(entry, context);
|
|
7109
5514
|
});
|
|
5515
|
+
return retVal;
|
|
7110
5516
|
};
|
|
7111
5517
|
const deserializeAws_restJson1LinearRing = (output, context) => {
|
|
7112
|
-
|
|
5518
|
+
const retVal = (output || [])
|
|
7113
5519
|
.filter((e) => e != null)
|
|
7114
5520
|
.map((entry) => {
|
|
7115
5521
|
if (entry === null) {
|
|
@@ -7117,9 +5523,10 @@ const deserializeAws_restJson1LinearRing = (output, context) => {
|
|
|
7117
5523
|
}
|
|
7118
5524
|
return deserializeAws_restJson1Position(entry, context);
|
|
7119
5525
|
});
|
|
5526
|
+
return retVal;
|
|
7120
5527
|
};
|
|
7121
5528
|
const deserializeAws_restJson1LinearRings = (output, context) => {
|
|
7122
|
-
|
|
5529
|
+
const retVal = (output || [])
|
|
7123
5530
|
.filter((e) => e != null)
|
|
7124
5531
|
.map((entry) => {
|
|
7125
5532
|
if (entry === null) {
|
|
@@ -7127,9 +5534,10 @@ const deserializeAws_restJson1LinearRings = (output, context) => {
|
|
|
7127
5534
|
}
|
|
7128
5535
|
return deserializeAws_restJson1LinearRing(entry, context);
|
|
7129
5536
|
});
|
|
5537
|
+
return retVal;
|
|
7130
5538
|
};
|
|
7131
5539
|
const deserializeAws_restJson1LineString = (output, context) => {
|
|
7132
|
-
|
|
5540
|
+
const retVal = (output || [])
|
|
7133
5541
|
.filter((e) => e != null)
|
|
7134
5542
|
.map((entry) => {
|
|
7135
5543
|
if (entry === null) {
|
|
@@ -7137,6 +5545,7 @@ const deserializeAws_restJson1LineString = (output, context) => {
|
|
|
7137
5545
|
}
|
|
7138
5546
|
return deserializeAws_restJson1Position(entry, context);
|
|
7139
5547
|
});
|
|
5548
|
+
return retVal;
|
|
7140
5549
|
};
|
|
7141
5550
|
const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
|
|
7142
5551
|
return {
|
|
@@ -7156,7 +5565,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, contex
|
|
|
7156
5565
|
};
|
|
7157
5566
|
};
|
|
7158
5567
|
const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, context) => {
|
|
7159
|
-
|
|
5568
|
+
const retVal = (output || [])
|
|
7160
5569
|
.filter((e) => e != null)
|
|
7161
5570
|
.map((entry) => {
|
|
7162
5571
|
if (entry === null) {
|
|
@@ -7164,6 +5573,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
|
|
|
7164
5573
|
}
|
|
7165
5574
|
return deserializeAws_restJson1ListDevicePositionsResponseEntry(entry, context);
|
|
7166
5575
|
});
|
|
5576
|
+
return retVal;
|
|
7167
5577
|
};
|
|
7168
5578
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
7169
5579
|
return {
|
|
@@ -7180,7 +5590,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, co
|
|
|
7180
5590
|
};
|
|
7181
5591
|
};
|
|
7182
5592
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
7183
|
-
|
|
5593
|
+
const retVal = (output || [])
|
|
7184
5594
|
.filter((e) => e != null)
|
|
7185
5595
|
.map((entry) => {
|
|
7186
5596
|
if (entry === null) {
|
|
@@ -7188,6 +5598,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
|
|
|
7188
5598
|
}
|
|
7189
5599
|
return deserializeAws_restJson1ListGeofenceCollectionsResponseEntry(entry, context);
|
|
7190
5600
|
});
|
|
5601
|
+
return retVal;
|
|
7191
5602
|
};
|
|
7192
5603
|
const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
7193
5604
|
return {
|
|
@@ -7205,7 +5616,7 @@ const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
|
7205
5616
|
};
|
|
7206
5617
|
};
|
|
7207
5618
|
const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context) => {
|
|
7208
|
-
|
|
5619
|
+
const retVal = (output || [])
|
|
7209
5620
|
.filter((e) => e != null)
|
|
7210
5621
|
.map((entry) => {
|
|
7211
5622
|
if (entry === null) {
|
|
@@ -7213,6 +5624,7 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
|
|
|
7213
5624
|
}
|
|
7214
5625
|
return deserializeAws_restJson1ListGeofenceResponseEntry(entry, context);
|
|
7215
5626
|
});
|
|
5627
|
+
return retVal;
|
|
7216
5628
|
};
|
|
7217
5629
|
const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
7218
5630
|
return {
|
|
@@ -7229,7 +5641,7 @@ const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
|
7229
5641
|
};
|
|
7230
5642
|
};
|
|
7231
5643
|
const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
7232
|
-
|
|
5644
|
+
const retVal = (output || [])
|
|
7233
5645
|
.filter((e) => e != null)
|
|
7234
5646
|
.map((entry) => {
|
|
7235
5647
|
if (entry === null) {
|
|
@@ -7237,6 +5649,7 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
|
7237
5649
|
}
|
|
7238
5650
|
return deserializeAws_restJson1ListMapsResponseEntry(entry, context);
|
|
7239
5651
|
});
|
|
5652
|
+
return retVal;
|
|
7240
5653
|
};
|
|
7241
5654
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
|
|
7242
5655
|
return {
|
|
@@ -7253,7 +5666,7 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context)
|
|
|
7253
5666
|
};
|
|
7254
5667
|
};
|
|
7255
5668
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
7256
|
-
|
|
5669
|
+
const retVal = (output || [])
|
|
7257
5670
|
.filter((e) => e != null)
|
|
7258
5671
|
.map((entry) => {
|
|
7259
5672
|
if (entry === null) {
|
|
@@ -7261,6 +5674,7 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
|
|
|
7261
5674
|
}
|
|
7262
5675
|
return deserializeAws_restJson1ListPlaceIndexesResponseEntry(entry, context);
|
|
7263
5676
|
});
|
|
5677
|
+
return retVal;
|
|
7264
5678
|
};
|
|
7265
5679
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
7266
5680
|
return {
|
|
@@ -7277,7 +5691,7 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, conte
|
|
|
7277
5691
|
};
|
|
7278
5692
|
};
|
|
7279
5693
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
7280
|
-
|
|
5694
|
+
const retVal = (output || [])
|
|
7281
5695
|
.filter((e) => e != null)
|
|
7282
5696
|
.map((entry) => {
|
|
7283
5697
|
if (entry === null) {
|
|
@@ -7285,6 +5699,7 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
|
|
|
7285
5699
|
}
|
|
7286
5700
|
return deserializeAws_restJson1ListRouteCalculatorsResponseEntry(entry, context);
|
|
7287
5701
|
});
|
|
5702
|
+
return retVal;
|
|
7288
5703
|
};
|
|
7289
5704
|
const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
7290
5705
|
return {
|
|
@@ -7301,7 +5716,7 @@ const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
|
7301
5716
|
};
|
|
7302
5717
|
};
|
|
7303
5718
|
const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context) => {
|
|
7304
|
-
|
|
5719
|
+
const retVal = (output || [])
|
|
7305
5720
|
.filter((e) => e != null)
|
|
7306
5721
|
.map((entry) => {
|
|
7307
5722
|
if (entry === null) {
|
|
@@ -7309,6 +5724,7 @@ const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context)
|
|
|
7309
5724
|
}
|
|
7310
5725
|
return deserializeAws_restJson1ListTrackersResponseEntry(entry, context);
|
|
7311
5726
|
});
|
|
5727
|
+
return retVal;
|
|
7312
5728
|
};
|
|
7313
5729
|
const deserializeAws_restJson1MapConfiguration = (output, context) => {
|
|
7314
5730
|
return {
|
|
@@ -7343,7 +5759,7 @@ const deserializeAws_restJson1PlaceGeometry = (output, context) => {
|
|
|
7343
5759
|
};
|
|
7344
5760
|
};
|
|
7345
5761
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
7346
|
-
|
|
5762
|
+
const retVal = (output || [])
|
|
7347
5763
|
.filter((e) => e != null)
|
|
7348
5764
|
.map((entry) => {
|
|
7349
5765
|
if (entry === null) {
|
|
@@ -7351,6 +5767,7 @@ const deserializeAws_restJson1Position = (output, context) => {
|
|
|
7351
5767
|
}
|
|
7352
5768
|
return smithy_client_1.limitedParseDouble(entry);
|
|
7353
5769
|
});
|
|
5770
|
+
return retVal;
|
|
7354
5771
|
};
|
|
7355
5772
|
const deserializeAws_restJson1PositionalAccuracy = (output, context) => {
|
|
7356
5773
|
return {
|
|
@@ -7358,7 +5775,7 @@ const deserializeAws_restJson1PositionalAccuracy = (output, context) => {
|
|
|
7358
5775
|
};
|
|
7359
5776
|
};
|
|
7360
5777
|
const deserializeAws_restJson1PositionList = (output, context) => {
|
|
7361
|
-
|
|
5778
|
+
const retVal = (output || [])
|
|
7362
5779
|
.filter((e) => e != null)
|
|
7363
5780
|
.map((entry) => {
|
|
7364
5781
|
if (entry === null) {
|
|
@@ -7366,6 +5783,7 @@ const deserializeAws_restJson1PositionList = (output, context) => {
|
|
|
7366
5783
|
}
|
|
7367
5784
|
return deserializeAws_restJson1Position(entry, context);
|
|
7368
5785
|
});
|
|
5786
|
+
return retVal;
|
|
7369
5787
|
};
|
|
7370
5788
|
const deserializeAws_restJson1PropertyMap = (output, context) => {
|
|
7371
5789
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -7379,7 +5797,7 @@ const deserializeAws_restJson1PropertyMap = (output, context) => {
|
|
|
7379
5797
|
}, {});
|
|
7380
5798
|
};
|
|
7381
5799
|
const deserializeAws_restJson1RouteMatrix = (output, context) => {
|
|
7382
|
-
|
|
5800
|
+
const retVal = (output || [])
|
|
7383
5801
|
.filter((e) => e != null)
|
|
7384
5802
|
.map((entry) => {
|
|
7385
5803
|
if (entry === null) {
|
|
@@ -7387,6 +5805,7 @@ const deserializeAws_restJson1RouteMatrix = (output, context) => {
|
|
|
7387
5805
|
}
|
|
7388
5806
|
return deserializeAws_restJson1RouteMatrixRow(entry, context);
|
|
7389
5807
|
});
|
|
5808
|
+
return retVal;
|
|
7390
5809
|
};
|
|
7391
5810
|
const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
|
|
7392
5811
|
return {
|
|
@@ -7404,7 +5823,7 @@ const deserializeAws_restJson1RouteMatrixEntryError = (output, context) => {
|
|
|
7404
5823
|
};
|
|
7405
5824
|
};
|
|
7406
5825
|
const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
|
|
7407
|
-
|
|
5826
|
+
const retVal = (output || [])
|
|
7408
5827
|
.filter((e) => e != null)
|
|
7409
5828
|
.map((entry) => {
|
|
7410
5829
|
if (entry === null) {
|
|
@@ -7412,6 +5831,7 @@ const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
|
|
|
7412
5831
|
}
|
|
7413
5832
|
return deserializeAws_restJson1RouteMatrixEntry(entry, context);
|
|
7414
5833
|
});
|
|
5834
|
+
return retVal;
|
|
7415
5835
|
};
|
|
7416
5836
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
7417
5837
|
return {
|
|
@@ -7422,7 +5842,7 @@ const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
|
7422
5842
|
};
|
|
7423
5843
|
};
|
|
7424
5844
|
const deserializeAws_restJson1SearchForPositionResultList = (output, context) => {
|
|
7425
|
-
|
|
5845
|
+
const retVal = (output || [])
|
|
7426
5846
|
.filter((e) => e != null)
|
|
7427
5847
|
.map((entry) => {
|
|
7428
5848
|
if (entry === null) {
|
|
@@ -7430,6 +5850,7 @@ const deserializeAws_restJson1SearchForPositionResultList = (output, context) =>
|
|
|
7430
5850
|
}
|
|
7431
5851
|
return deserializeAws_restJson1SearchForPositionResult(entry, context);
|
|
7432
5852
|
});
|
|
5853
|
+
return retVal;
|
|
7433
5854
|
};
|
|
7434
5855
|
const deserializeAws_restJson1SearchForSuggestionsResult = (output, context) => {
|
|
7435
5856
|
return {
|
|
@@ -7437,7 +5858,7 @@ const deserializeAws_restJson1SearchForSuggestionsResult = (output, context) =>
|
|
|
7437
5858
|
};
|
|
7438
5859
|
};
|
|
7439
5860
|
const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context) => {
|
|
7440
|
-
|
|
5861
|
+
const retVal = (output || [])
|
|
7441
5862
|
.filter((e) => e != null)
|
|
7442
5863
|
.map((entry) => {
|
|
7443
5864
|
if (entry === null) {
|
|
@@ -7445,6 +5866,7 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context)
|
|
|
7445
5866
|
}
|
|
7446
5867
|
return deserializeAws_restJson1SearchForSuggestionsResult(entry, context);
|
|
7447
5868
|
});
|
|
5869
|
+
return retVal;
|
|
7448
5870
|
};
|
|
7449
5871
|
const deserializeAws_restJson1SearchForTextResult = (output, context) => {
|
|
7450
5872
|
return {
|
|
@@ -7456,7 +5878,7 @@ const deserializeAws_restJson1SearchForTextResult = (output, context) => {
|
|
|
7456
5878
|
};
|
|
7457
5879
|
};
|
|
7458
5880
|
const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
7459
|
-
|
|
5881
|
+
const retVal = (output || [])
|
|
7460
5882
|
.filter((e) => e != null)
|
|
7461
5883
|
.map((entry) => {
|
|
7462
5884
|
if (entry === null) {
|
|
@@ -7464,6 +5886,7 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
|
7464
5886
|
}
|
|
7465
5887
|
return deserializeAws_restJson1SearchForTextResult(entry, context);
|
|
7466
5888
|
});
|
|
5889
|
+
return retVal;
|
|
7467
5890
|
};
|
|
7468
5891
|
const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
7469
5892
|
return {
|
|
@@ -7526,7 +5949,7 @@ const deserializeAws_restJson1Step = (output, context) => {
|
|
|
7526
5949
|
};
|
|
7527
5950
|
};
|
|
7528
5951
|
const deserializeAws_restJson1StepList = (output, context) => {
|
|
7529
|
-
|
|
5952
|
+
const retVal = (output || [])
|
|
7530
5953
|
.filter((e) => e != null)
|
|
7531
5954
|
.map((entry) => {
|
|
7532
5955
|
if (entry === null) {
|
|
@@ -7534,6 +5957,7 @@ const deserializeAws_restJson1StepList = (output, context) => {
|
|
|
7534
5957
|
}
|
|
7535
5958
|
return deserializeAws_restJson1Step(entry, context);
|
|
7536
5959
|
});
|
|
5960
|
+
return retVal;
|
|
7537
5961
|
};
|
|
7538
5962
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
7539
5963
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -7559,7 +5983,7 @@ const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
|
7559
5983
|
};
|
|
7560
5984
|
};
|
|
7561
5985
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
7562
|
-
|
|
5986
|
+
const retVal = (output || [])
|
|
7563
5987
|
.filter((e) => e != null)
|
|
7564
5988
|
.map((entry) => {
|
|
7565
5989
|
if (entry === null) {
|
|
@@ -7567,6 +5991,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
7567
5991
|
}
|
|
7568
5992
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
7569
5993
|
});
|
|
5994
|
+
return retVal;
|
|
7570
5995
|
};
|
|
7571
5996
|
const deserializeMetadata = (output) => {
|
|
7572
5997
|
var _a;
|