@aws-sdk/client-location 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +84 -1851
- package/dist-es/protocols/Aws_restJson1.js +117 -1884
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2004,7 +2004,7 @@ var se_UpdateTrackerCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2004
2004
|
}, "se_UpdateTrackerCommand");
|
|
2005
2005
|
var de_AssociateTrackerConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2006
2006
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2007
|
-
return
|
|
2007
|
+
return de_CommandError(output, context);
|
|
2008
2008
|
}
|
|
2009
2009
|
const contents = (0, import_smithy_client.map)({
|
|
2010
2010
|
$metadata: deserializeMetadata(output)
|
|
@@ -2012,46 +2012,9 @@ var de_AssociateTrackerConsumerCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2012
2012
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2013
2013
|
return contents;
|
|
2014
2014
|
}, "de_AssociateTrackerConsumerCommand");
|
|
2015
|
-
var de_AssociateTrackerConsumerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2016
|
-
const parsedOutput = {
|
|
2017
|
-
...output,
|
|
2018
|
-
body: await parseErrorBody(output.body, context)
|
|
2019
|
-
};
|
|
2020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2021
|
-
switch (errorCode) {
|
|
2022
|
-
case "AccessDeniedException":
|
|
2023
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2024
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2025
|
-
case "ConflictException":
|
|
2026
|
-
case "com.amazonaws.location#ConflictException":
|
|
2027
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2028
|
-
case "InternalServerException":
|
|
2029
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2030
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2031
|
-
case "ResourceNotFoundException":
|
|
2032
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2033
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "ServiceQuotaExceededException":
|
|
2035
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2036
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ThrottlingException":
|
|
2038
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2039
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ValidationException":
|
|
2041
|
-
case "com.amazonaws.location#ValidationException":
|
|
2042
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2043
|
-
default:
|
|
2044
|
-
const parsedBody = parsedOutput.body;
|
|
2045
|
-
return throwDefaultError({
|
|
2046
|
-
output,
|
|
2047
|
-
parsedBody,
|
|
2048
|
-
errorCode
|
|
2049
|
-
});
|
|
2050
|
-
}
|
|
2051
|
-
}, "de_AssociateTrackerConsumerCommandError");
|
|
2052
2015
|
var de_BatchDeleteDevicePositionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2053
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2054
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
2055
2018
|
}
|
|
2056
2019
|
const contents = (0, import_smithy_client.map)({
|
|
2057
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -2063,40 +2026,9 @@ var de_BatchDeleteDevicePositionHistoryCommand = /* @__PURE__ */ __name(async (o
|
|
|
2063
2026
|
Object.assign(contents, doc);
|
|
2064
2027
|
return contents;
|
|
2065
2028
|
}, "de_BatchDeleteDevicePositionHistoryCommand");
|
|
2066
|
-
var de_BatchDeleteDevicePositionHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2067
|
-
const parsedOutput = {
|
|
2068
|
-
...output,
|
|
2069
|
-
body: await parseErrorBody(output.body, context)
|
|
2070
|
-
};
|
|
2071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2072
|
-
switch (errorCode) {
|
|
2073
|
-
case "AccessDeniedException":
|
|
2074
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2076
|
-
case "InternalServerException":
|
|
2077
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2078
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2079
|
-
case "ResourceNotFoundException":
|
|
2080
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2081
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2082
|
-
case "ThrottlingException":
|
|
2083
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2084
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2085
|
-
case "ValidationException":
|
|
2086
|
-
case "com.amazonaws.location#ValidationException":
|
|
2087
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2088
|
-
default:
|
|
2089
|
-
const parsedBody = parsedOutput.body;
|
|
2090
|
-
return throwDefaultError({
|
|
2091
|
-
output,
|
|
2092
|
-
parsedBody,
|
|
2093
|
-
errorCode
|
|
2094
|
-
});
|
|
2095
|
-
}
|
|
2096
|
-
}, "de_BatchDeleteDevicePositionHistoryCommandError");
|
|
2097
2029
|
var de_BatchDeleteGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2098
2030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
2031
|
+
return de_CommandError(output, context);
|
|
2100
2032
|
}
|
|
2101
2033
|
const contents = (0, import_smithy_client.map)({
|
|
2102
2034
|
$metadata: deserializeMetadata(output)
|
|
@@ -2108,40 +2040,9 @@ var de_BatchDeleteGeofenceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2108
2040
|
Object.assign(contents, doc);
|
|
2109
2041
|
return contents;
|
|
2110
2042
|
}, "de_BatchDeleteGeofenceCommand");
|
|
2111
|
-
var de_BatchDeleteGeofenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context)
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "AccessDeniedException":
|
|
2119
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "InternalServerException":
|
|
2122
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2123
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "ResourceNotFoundException":
|
|
2125
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2126
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ThrottlingException":
|
|
2128
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2129
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2130
|
-
case "ValidationException":
|
|
2131
|
-
case "com.amazonaws.location#ValidationException":
|
|
2132
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2133
|
-
default:
|
|
2134
|
-
const parsedBody = parsedOutput.body;
|
|
2135
|
-
return throwDefaultError({
|
|
2136
|
-
output,
|
|
2137
|
-
parsedBody,
|
|
2138
|
-
errorCode
|
|
2139
|
-
});
|
|
2140
|
-
}
|
|
2141
|
-
}, "de_BatchDeleteGeofenceCommandError");
|
|
2142
2043
|
var de_BatchEvaluateGeofencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2143
2044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2144
|
-
return
|
|
2045
|
+
return de_CommandError(output, context);
|
|
2145
2046
|
}
|
|
2146
2047
|
const contents = (0, import_smithy_client.map)({
|
|
2147
2048
|
$metadata: deserializeMetadata(output)
|
|
@@ -2153,40 +2054,9 @@ var de_BatchEvaluateGeofencesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2153
2054
|
Object.assign(contents, doc);
|
|
2154
2055
|
return contents;
|
|
2155
2056
|
}, "de_BatchEvaluateGeofencesCommand");
|
|
2156
|
-
var de_BatchEvaluateGeofencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2157
|
-
const parsedOutput = {
|
|
2158
|
-
...output,
|
|
2159
|
-
body: await parseErrorBody(output.body, context)
|
|
2160
|
-
};
|
|
2161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
-
switch (errorCode) {
|
|
2163
|
-
case "AccessDeniedException":
|
|
2164
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "InternalServerException":
|
|
2167
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2168
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ResourceNotFoundException":
|
|
2170
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2171
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "ThrottlingException":
|
|
2173
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2174
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2175
|
-
case "ValidationException":
|
|
2176
|
-
case "com.amazonaws.location#ValidationException":
|
|
2177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2178
|
-
default:
|
|
2179
|
-
const parsedBody = parsedOutput.body;
|
|
2180
|
-
return throwDefaultError({
|
|
2181
|
-
output,
|
|
2182
|
-
parsedBody,
|
|
2183
|
-
errorCode
|
|
2184
|
-
});
|
|
2185
|
-
}
|
|
2186
|
-
}, "de_BatchEvaluateGeofencesCommandError");
|
|
2187
2057
|
var de_BatchGetDevicePositionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2188
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2189
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2190
2060
|
}
|
|
2191
2061
|
const contents = (0, import_smithy_client.map)({
|
|
2192
2062
|
$metadata: deserializeMetadata(output)
|
|
@@ -2199,40 +2069,9 @@ var de_BatchGetDevicePositionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2199
2069
|
Object.assign(contents, doc);
|
|
2200
2070
|
return contents;
|
|
2201
2071
|
}, "de_BatchGetDevicePositionCommand");
|
|
2202
|
-
var de_BatchGetDevicePositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2203
|
-
const parsedOutput = {
|
|
2204
|
-
...output,
|
|
2205
|
-
body: await parseErrorBody(output.body, context)
|
|
2206
|
-
};
|
|
2207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2208
|
-
switch (errorCode) {
|
|
2209
|
-
case "AccessDeniedException":
|
|
2210
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2211
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2212
|
-
case "InternalServerException":
|
|
2213
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2215
|
-
case "ResourceNotFoundException":
|
|
2216
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2218
|
-
case "ThrottlingException":
|
|
2219
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "ValidationException":
|
|
2222
|
-
case "com.amazonaws.location#ValidationException":
|
|
2223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2224
|
-
default:
|
|
2225
|
-
const parsedBody = parsedOutput.body;
|
|
2226
|
-
return throwDefaultError({
|
|
2227
|
-
output,
|
|
2228
|
-
parsedBody,
|
|
2229
|
-
errorCode
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
}, "de_BatchGetDevicePositionCommandError");
|
|
2233
2072
|
var de_BatchPutGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2234
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2235
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2236
2075
|
}
|
|
2237
2076
|
const contents = (0, import_smithy_client.map)({
|
|
2238
2077
|
$metadata: deserializeMetadata(output)
|
|
@@ -2245,40 +2084,9 @@ var de_BatchPutGeofenceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2245
2084
|
Object.assign(contents, doc);
|
|
2246
2085
|
return contents;
|
|
2247
2086
|
}, "de_BatchPutGeofenceCommand");
|
|
2248
|
-
var de_BatchPutGeofenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2249
|
-
const parsedOutput = {
|
|
2250
|
-
...output,
|
|
2251
|
-
body: await parseErrorBody(output.body, context)
|
|
2252
|
-
};
|
|
2253
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2254
|
-
switch (errorCode) {
|
|
2255
|
-
case "AccessDeniedException":
|
|
2256
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2257
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2258
|
-
case "InternalServerException":
|
|
2259
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2260
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "ResourceNotFoundException":
|
|
2262
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ThrottlingException":
|
|
2265
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ValidationException":
|
|
2268
|
-
case "com.amazonaws.location#ValidationException":
|
|
2269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2270
|
-
default:
|
|
2271
|
-
const parsedBody = parsedOutput.body;
|
|
2272
|
-
return throwDefaultError({
|
|
2273
|
-
output,
|
|
2274
|
-
parsedBody,
|
|
2275
|
-
errorCode
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
}, "de_BatchPutGeofenceCommandError");
|
|
2279
2087
|
var de_BatchUpdateDevicePositionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2281
|
-
return
|
|
2089
|
+
return de_CommandError(output, context);
|
|
2282
2090
|
}
|
|
2283
2091
|
const contents = (0, import_smithy_client.map)({
|
|
2284
2092
|
$metadata: deserializeMetadata(output)
|
|
@@ -2290,40 +2098,9 @@ var de_BatchUpdateDevicePositionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2290
2098
|
Object.assign(contents, doc);
|
|
2291
2099
|
return contents;
|
|
2292
2100
|
}, "de_BatchUpdateDevicePositionCommand");
|
|
2293
|
-
var de_BatchUpdateDevicePositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context)
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "AccessDeniedException":
|
|
2301
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2302
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "InternalServerException":
|
|
2304
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2305
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ResourceNotFoundException":
|
|
2307
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2308
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ThrottlingException":
|
|
2310
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2311
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ValidationException":
|
|
2313
|
-
case "com.amazonaws.location#ValidationException":
|
|
2314
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2315
|
-
default:
|
|
2316
|
-
const parsedBody = parsedOutput.body;
|
|
2317
|
-
return throwDefaultError({
|
|
2318
|
-
output,
|
|
2319
|
-
parsedBody,
|
|
2320
|
-
errorCode
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
}, "de_BatchUpdateDevicePositionCommandError");
|
|
2324
2101
|
var de_CalculateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2325
2102
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2326
|
-
return
|
|
2103
|
+
return de_CommandError(output, context);
|
|
2327
2104
|
}
|
|
2328
2105
|
const contents = (0, import_smithy_client.map)({
|
|
2329
2106
|
$metadata: deserializeMetadata(output)
|
|
@@ -2336,40 +2113,9 @@ var de_CalculateRouteCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2336
2113
|
Object.assign(contents, doc);
|
|
2337
2114
|
return contents;
|
|
2338
2115
|
}, "de_CalculateRouteCommand");
|
|
2339
|
-
var de_CalculateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2340
|
-
const parsedOutput = {
|
|
2341
|
-
...output,
|
|
2342
|
-
body: await parseErrorBody(output.body, context)
|
|
2343
|
-
};
|
|
2344
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2345
|
-
switch (errorCode) {
|
|
2346
|
-
case "AccessDeniedException":
|
|
2347
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2348
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2349
|
-
case "InternalServerException":
|
|
2350
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2351
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2352
|
-
case "ResourceNotFoundException":
|
|
2353
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2354
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2355
|
-
case "ThrottlingException":
|
|
2356
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2357
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2358
|
-
case "ValidationException":
|
|
2359
|
-
case "com.amazonaws.location#ValidationException":
|
|
2360
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2361
|
-
default:
|
|
2362
|
-
const parsedBody = parsedOutput.body;
|
|
2363
|
-
return throwDefaultError({
|
|
2364
|
-
output,
|
|
2365
|
-
parsedBody,
|
|
2366
|
-
errorCode
|
|
2367
|
-
});
|
|
2368
|
-
}
|
|
2369
|
-
}, "de_CalculateRouteCommandError");
|
|
2370
2116
|
var de_CalculateRouteMatrixCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2371
2117
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2372
|
-
return
|
|
2118
|
+
return de_CommandError(output, context);
|
|
2373
2119
|
}
|
|
2374
2120
|
const contents = (0, import_smithy_client.map)({
|
|
2375
2121
|
$metadata: deserializeMetadata(output)
|
|
@@ -2384,40 +2130,9 @@ var de_CalculateRouteMatrixCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2384
2130
|
Object.assign(contents, doc);
|
|
2385
2131
|
return contents;
|
|
2386
2132
|
}, "de_CalculateRouteMatrixCommand");
|
|
2387
|
-
var de_CalculateRouteMatrixCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2388
|
-
const parsedOutput = {
|
|
2389
|
-
...output,
|
|
2390
|
-
body: await parseErrorBody(output.body, context)
|
|
2391
|
-
};
|
|
2392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2393
|
-
switch (errorCode) {
|
|
2394
|
-
case "AccessDeniedException":
|
|
2395
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2396
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "InternalServerException":
|
|
2398
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "ResourceNotFoundException":
|
|
2401
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ThrottlingException":
|
|
2404
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "ValidationException":
|
|
2407
|
-
case "com.amazonaws.location#ValidationException":
|
|
2408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2409
|
-
default:
|
|
2410
|
-
const parsedBody = parsedOutput.body;
|
|
2411
|
-
return throwDefaultError({
|
|
2412
|
-
output,
|
|
2413
|
-
parsedBody,
|
|
2414
|
-
errorCode
|
|
2415
|
-
});
|
|
2416
|
-
}
|
|
2417
|
-
}, "de_CalculateRouteMatrixCommandError");
|
|
2418
2133
|
var de_CreateGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2419
2134
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2420
|
-
return
|
|
2135
|
+
return de_CommandError(output, context);
|
|
2421
2136
|
}
|
|
2422
2137
|
const contents = (0, import_smithy_client.map)({
|
|
2423
2138
|
$metadata: deserializeMetadata(output)
|
|
@@ -2431,43 +2146,9 @@ var de_CreateGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2431
2146
|
Object.assign(contents, doc);
|
|
2432
2147
|
return contents;
|
|
2433
2148
|
}, "de_CreateGeofenceCollectionCommand");
|
|
2434
|
-
var de_CreateGeofenceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2435
|
-
const parsedOutput = {
|
|
2436
|
-
...output,
|
|
2437
|
-
body: await parseErrorBody(output.body, context)
|
|
2438
|
-
};
|
|
2439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
-
switch (errorCode) {
|
|
2441
|
-
case "AccessDeniedException":
|
|
2442
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2443
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ConflictException":
|
|
2445
|
-
case "com.amazonaws.location#ConflictException":
|
|
2446
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "InternalServerException":
|
|
2448
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2449
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "ServiceQuotaExceededException":
|
|
2451
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2452
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ThrottlingException":
|
|
2454
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2455
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "ValidationException":
|
|
2457
|
-
case "com.amazonaws.location#ValidationException":
|
|
2458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2459
|
-
default:
|
|
2460
|
-
const parsedBody = parsedOutput.body;
|
|
2461
|
-
return throwDefaultError({
|
|
2462
|
-
output,
|
|
2463
|
-
parsedBody,
|
|
2464
|
-
errorCode
|
|
2465
|
-
});
|
|
2466
|
-
}
|
|
2467
|
-
}, "de_CreateGeofenceCollectionCommandError");
|
|
2468
2149
|
var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2469
2150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2470
|
-
return
|
|
2151
|
+
return de_CommandError(output, context);
|
|
2471
2152
|
}
|
|
2472
2153
|
const contents = (0, import_smithy_client.map)({
|
|
2473
2154
|
$metadata: deserializeMetadata(output)
|
|
@@ -2482,43 +2163,9 @@ var de_CreateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2482
2163
|
Object.assign(contents, doc);
|
|
2483
2164
|
return contents;
|
|
2484
2165
|
}, "de_CreateKeyCommand");
|
|
2485
|
-
var de_CreateKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2486
|
-
const parsedOutput = {
|
|
2487
|
-
...output,
|
|
2488
|
-
body: await parseErrorBody(output.body, context)
|
|
2489
|
-
};
|
|
2490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2491
|
-
switch (errorCode) {
|
|
2492
|
-
case "AccessDeniedException":
|
|
2493
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2494
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ConflictException":
|
|
2496
|
-
case "com.amazonaws.location#ConflictException":
|
|
2497
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "InternalServerException":
|
|
2499
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2500
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "ServiceQuotaExceededException":
|
|
2502
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2503
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "ThrottlingException":
|
|
2505
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2506
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "ValidationException":
|
|
2508
|
-
case "com.amazonaws.location#ValidationException":
|
|
2509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2510
|
-
default:
|
|
2511
|
-
const parsedBody = parsedOutput.body;
|
|
2512
|
-
return throwDefaultError({
|
|
2513
|
-
output,
|
|
2514
|
-
parsedBody,
|
|
2515
|
-
errorCode
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
}, "de_CreateKeyCommandError");
|
|
2519
2166
|
var de_CreateMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2520
2167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2521
|
-
return
|
|
2168
|
+
return de_CommandError(output, context);
|
|
2522
2169
|
}
|
|
2523
2170
|
const contents = (0, import_smithy_client.map)({
|
|
2524
2171
|
$metadata: deserializeMetadata(output)
|
|
@@ -2532,43 +2179,9 @@ var de_CreateMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2532
2179
|
Object.assign(contents, doc);
|
|
2533
2180
|
return contents;
|
|
2534
2181
|
}, "de_CreateMapCommand");
|
|
2535
|
-
var de_CreateMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2536
|
-
const parsedOutput = {
|
|
2537
|
-
...output,
|
|
2538
|
-
body: await parseErrorBody(output.body, context)
|
|
2539
|
-
};
|
|
2540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2541
|
-
switch (errorCode) {
|
|
2542
|
-
case "AccessDeniedException":
|
|
2543
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2544
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "ConflictException":
|
|
2546
|
-
case "com.amazonaws.location#ConflictException":
|
|
2547
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InternalServerException":
|
|
2549
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ServiceQuotaExceededException":
|
|
2552
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2553
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "ThrottlingException":
|
|
2555
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2556
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ValidationException":
|
|
2558
|
-
case "com.amazonaws.location#ValidationException":
|
|
2559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
}, "de_CreateMapCommandError");
|
|
2569
2182
|
var de_CreatePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2570
2183
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2571
|
-
return
|
|
2184
|
+
return de_CommandError(output, context);
|
|
2572
2185
|
}
|
|
2573
2186
|
const contents = (0, import_smithy_client.map)({
|
|
2574
2187
|
$metadata: deserializeMetadata(output)
|
|
@@ -2582,43 +2195,9 @@ var de_CreatePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2582
2195
|
Object.assign(contents, doc);
|
|
2583
2196
|
return contents;
|
|
2584
2197
|
}, "de_CreatePlaceIndexCommand");
|
|
2585
|
-
var de_CreatePlaceIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2586
|
-
const parsedOutput = {
|
|
2587
|
-
...output,
|
|
2588
|
-
body: await parseErrorBody(output.body, context)
|
|
2589
|
-
};
|
|
2590
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
|
-
switch (errorCode) {
|
|
2592
|
-
case "AccessDeniedException":
|
|
2593
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2594
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2595
|
-
case "ConflictException":
|
|
2596
|
-
case "com.amazonaws.location#ConflictException":
|
|
2597
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2598
|
-
case "InternalServerException":
|
|
2599
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2600
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2601
|
-
case "ServiceQuotaExceededException":
|
|
2602
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2603
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2604
|
-
case "ThrottlingException":
|
|
2605
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2606
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2607
|
-
case "ValidationException":
|
|
2608
|
-
case "com.amazonaws.location#ValidationException":
|
|
2609
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2610
|
-
default:
|
|
2611
|
-
const parsedBody = parsedOutput.body;
|
|
2612
|
-
return throwDefaultError({
|
|
2613
|
-
output,
|
|
2614
|
-
parsedBody,
|
|
2615
|
-
errorCode
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
}, "de_CreatePlaceIndexCommandError");
|
|
2619
2198
|
var de_CreateRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2620
2199
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2621
|
-
return
|
|
2200
|
+
return de_CommandError(output, context);
|
|
2622
2201
|
}
|
|
2623
2202
|
const contents = (0, import_smithy_client.map)({
|
|
2624
2203
|
$metadata: deserializeMetadata(output)
|
|
@@ -2632,43 +2211,9 @@ var de_CreateRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2632
2211
|
Object.assign(contents, doc);
|
|
2633
2212
|
return contents;
|
|
2634
2213
|
}, "de_CreateRouteCalculatorCommand");
|
|
2635
|
-
var de_CreateRouteCalculatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2636
|
-
const parsedOutput = {
|
|
2637
|
-
...output,
|
|
2638
|
-
body: await parseErrorBody(output.body, context)
|
|
2639
|
-
};
|
|
2640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2641
|
-
switch (errorCode) {
|
|
2642
|
-
case "AccessDeniedException":
|
|
2643
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2644
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2645
|
-
case "ConflictException":
|
|
2646
|
-
case "com.amazonaws.location#ConflictException":
|
|
2647
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2648
|
-
case "InternalServerException":
|
|
2649
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2650
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2651
|
-
case "ServiceQuotaExceededException":
|
|
2652
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2653
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2654
|
-
case "ThrottlingException":
|
|
2655
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2656
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "ValidationException":
|
|
2658
|
-
case "com.amazonaws.location#ValidationException":
|
|
2659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2660
|
-
default:
|
|
2661
|
-
const parsedBody = parsedOutput.body;
|
|
2662
|
-
return throwDefaultError({
|
|
2663
|
-
output,
|
|
2664
|
-
parsedBody,
|
|
2665
|
-
errorCode
|
|
2666
|
-
});
|
|
2667
|
-
}
|
|
2668
|
-
}, "de_CreateRouteCalculatorCommandError");
|
|
2669
2214
|
var de_CreateTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2670
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2671
|
-
return
|
|
2216
|
+
return de_CommandError(output, context);
|
|
2672
2217
|
}
|
|
2673
2218
|
const contents = (0, import_smithy_client.map)({
|
|
2674
2219
|
$metadata: deserializeMetadata(output)
|
|
@@ -2682,43 +2227,9 @@ var de_CreateTrackerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2682
2227
|
Object.assign(contents, doc);
|
|
2683
2228
|
return contents;
|
|
2684
2229
|
}, "de_CreateTrackerCommand");
|
|
2685
|
-
var de_CreateTrackerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2686
|
-
const parsedOutput = {
|
|
2687
|
-
...output,
|
|
2688
|
-
body: await parseErrorBody(output.body, context)
|
|
2689
|
-
};
|
|
2690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
|
-
switch (errorCode) {
|
|
2692
|
-
case "AccessDeniedException":
|
|
2693
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2694
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "ConflictException":
|
|
2696
|
-
case "com.amazonaws.location#ConflictException":
|
|
2697
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2698
|
-
case "InternalServerException":
|
|
2699
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2700
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "ServiceQuotaExceededException":
|
|
2702
|
-
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2703
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2704
|
-
case "ThrottlingException":
|
|
2705
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2706
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2707
|
-
case "ValidationException":
|
|
2708
|
-
case "com.amazonaws.location#ValidationException":
|
|
2709
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2710
|
-
default:
|
|
2711
|
-
const parsedBody = parsedOutput.body;
|
|
2712
|
-
return throwDefaultError({
|
|
2713
|
-
output,
|
|
2714
|
-
parsedBody,
|
|
2715
|
-
errorCode
|
|
2716
|
-
});
|
|
2717
|
-
}
|
|
2718
|
-
}, "de_CreateTrackerCommandError");
|
|
2719
2230
|
var de_DeleteGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2720
2231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2721
|
-
return
|
|
2232
|
+
return de_CommandError(output, context);
|
|
2722
2233
|
}
|
|
2723
2234
|
const contents = (0, import_smithy_client.map)({
|
|
2724
2235
|
$metadata: deserializeMetadata(output)
|
|
@@ -2726,40 +2237,9 @@ var de_DeleteGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2726
2237
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2727
2238
|
return contents;
|
|
2728
2239
|
}, "de_DeleteGeofenceCollectionCommand");
|
|
2729
|
-
var de_DeleteGeofenceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2730
|
-
const parsedOutput = {
|
|
2731
|
-
...output,
|
|
2732
|
-
body: await parseErrorBody(output.body, context)
|
|
2733
|
-
};
|
|
2734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2735
|
-
switch (errorCode) {
|
|
2736
|
-
case "AccessDeniedException":
|
|
2737
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2738
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2739
|
-
case "InternalServerException":
|
|
2740
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2741
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "ResourceNotFoundException":
|
|
2743
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2744
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ThrottlingException":
|
|
2746
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2747
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ValidationException":
|
|
2749
|
-
case "com.amazonaws.location#ValidationException":
|
|
2750
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
return throwDefaultError({
|
|
2754
|
-
output,
|
|
2755
|
-
parsedBody,
|
|
2756
|
-
errorCode
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
}, "de_DeleteGeofenceCollectionCommandError");
|
|
2760
2240
|
var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2761
2241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2762
|
-
return
|
|
2242
|
+
return de_CommandError(output, context);
|
|
2763
2243
|
}
|
|
2764
2244
|
const contents = (0, import_smithy_client.map)({
|
|
2765
2245
|
$metadata: deserializeMetadata(output)
|
|
@@ -2767,40 +2247,9 @@ var de_DeleteKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2767
2247
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2768
2248
|
return contents;
|
|
2769
2249
|
}, "de_DeleteKeyCommand");
|
|
2770
|
-
var de_DeleteKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2771
|
-
const parsedOutput = {
|
|
2772
|
-
...output,
|
|
2773
|
-
body: await parseErrorBody(output.body, context)
|
|
2774
|
-
};
|
|
2775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
|
-
switch (errorCode) {
|
|
2777
|
-
case "AccessDeniedException":
|
|
2778
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "InternalServerException":
|
|
2781
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2782
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "ResourceNotFoundException":
|
|
2784
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2785
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ThrottlingException":
|
|
2787
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2788
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "ValidationException":
|
|
2790
|
-
case "com.amazonaws.location#ValidationException":
|
|
2791
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2792
|
-
default:
|
|
2793
|
-
const parsedBody = parsedOutput.body;
|
|
2794
|
-
return throwDefaultError({
|
|
2795
|
-
output,
|
|
2796
|
-
parsedBody,
|
|
2797
|
-
errorCode
|
|
2798
|
-
});
|
|
2799
|
-
}
|
|
2800
|
-
}, "de_DeleteKeyCommandError");
|
|
2801
2250
|
var de_DeleteMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2802
2251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2803
|
-
return
|
|
2252
|
+
return de_CommandError(output, context);
|
|
2804
2253
|
}
|
|
2805
2254
|
const contents = (0, import_smithy_client.map)({
|
|
2806
2255
|
$metadata: deserializeMetadata(output)
|
|
@@ -2808,40 +2257,9 @@ var de_DeleteMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2808
2257
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2809
2258
|
return contents;
|
|
2810
2259
|
}, "de_DeleteMapCommand");
|
|
2811
|
-
var de_DeleteMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2812
|
-
const parsedOutput = {
|
|
2813
|
-
...output,
|
|
2814
|
-
body: await parseErrorBody(output.body, context)
|
|
2815
|
-
};
|
|
2816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2817
|
-
switch (errorCode) {
|
|
2818
|
-
case "AccessDeniedException":
|
|
2819
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2820
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2821
|
-
case "InternalServerException":
|
|
2822
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2823
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2824
|
-
case "ResourceNotFoundException":
|
|
2825
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2826
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2827
|
-
case "ThrottlingException":
|
|
2828
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2829
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "ValidationException":
|
|
2831
|
-
case "com.amazonaws.location#ValidationException":
|
|
2832
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2833
|
-
default:
|
|
2834
|
-
const parsedBody = parsedOutput.body;
|
|
2835
|
-
return throwDefaultError({
|
|
2836
|
-
output,
|
|
2837
|
-
parsedBody,
|
|
2838
|
-
errorCode
|
|
2839
|
-
});
|
|
2840
|
-
}
|
|
2841
|
-
}, "de_DeleteMapCommandError");
|
|
2842
2260
|
var de_DeletePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2843
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2844
|
-
return
|
|
2262
|
+
return de_CommandError(output, context);
|
|
2845
2263
|
}
|
|
2846
2264
|
const contents = (0, import_smithy_client.map)({
|
|
2847
2265
|
$metadata: deserializeMetadata(output)
|
|
@@ -2849,40 +2267,9 @@ var de_DeletePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2849
2267
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2850
2268
|
return contents;
|
|
2851
2269
|
}, "de_DeletePlaceIndexCommand");
|
|
2852
|
-
var de_DeletePlaceIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2853
|
-
const parsedOutput = {
|
|
2854
|
-
...output,
|
|
2855
|
-
body: await parseErrorBody(output.body, context)
|
|
2856
|
-
};
|
|
2857
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2858
|
-
switch (errorCode) {
|
|
2859
|
-
case "AccessDeniedException":
|
|
2860
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2861
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2862
|
-
case "InternalServerException":
|
|
2863
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2864
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2865
|
-
case "ResourceNotFoundException":
|
|
2866
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2867
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2868
|
-
case "ThrottlingException":
|
|
2869
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2870
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2871
|
-
case "ValidationException":
|
|
2872
|
-
case "com.amazonaws.location#ValidationException":
|
|
2873
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2874
|
-
default:
|
|
2875
|
-
const parsedBody = parsedOutput.body;
|
|
2876
|
-
return throwDefaultError({
|
|
2877
|
-
output,
|
|
2878
|
-
parsedBody,
|
|
2879
|
-
errorCode
|
|
2880
|
-
});
|
|
2881
|
-
}
|
|
2882
|
-
}, "de_DeletePlaceIndexCommandError");
|
|
2883
2270
|
var de_DeleteRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2884
2271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2885
|
-
return
|
|
2272
|
+
return de_CommandError(output, context);
|
|
2886
2273
|
}
|
|
2887
2274
|
const contents = (0, import_smithy_client.map)({
|
|
2888
2275
|
$metadata: deserializeMetadata(output)
|
|
@@ -2890,40 +2277,9 @@ var de_DeleteRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2890
2277
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2891
2278
|
return contents;
|
|
2892
2279
|
}, "de_DeleteRouteCalculatorCommand");
|
|
2893
|
-
var de_DeleteRouteCalculatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2894
|
-
const parsedOutput = {
|
|
2895
|
-
...output,
|
|
2896
|
-
body: await parseErrorBody(output.body, context)
|
|
2897
|
-
};
|
|
2898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2899
|
-
switch (errorCode) {
|
|
2900
|
-
case "AccessDeniedException":
|
|
2901
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2903
|
-
case "InternalServerException":
|
|
2904
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "ResourceNotFoundException":
|
|
2907
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "ThrottlingException":
|
|
2910
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ValidationException":
|
|
2913
|
-
case "com.amazonaws.location#ValidationException":
|
|
2914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2915
|
-
default:
|
|
2916
|
-
const parsedBody = parsedOutput.body;
|
|
2917
|
-
return throwDefaultError({
|
|
2918
|
-
output,
|
|
2919
|
-
parsedBody,
|
|
2920
|
-
errorCode
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
}, "de_DeleteRouteCalculatorCommandError");
|
|
2924
2280
|
var de_DeleteTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
2281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2926
|
-
return
|
|
2282
|
+
return de_CommandError(output, context);
|
|
2927
2283
|
}
|
|
2928
2284
|
const contents = (0, import_smithy_client.map)({
|
|
2929
2285
|
$metadata: deserializeMetadata(output)
|
|
@@ -2931,40 +2287,9 @@ var de_DeleteTrackerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2931
2287
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2932
2288
|
return contents;
|
|
2933
2289
|
}, "de_DeleteTrackerCommand");
|
|
2934
|
-
var de_DeleteTrackerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2935
|
-
const parsedOutput = {
|
|
2936
|
-
...output,
|
|
2937
|
-
body: await parseErrorBody(output.body, context)
|
|
2938
|
-
};
|
|
2939
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2940
|
-
switch (errorCode) {
|
|
2941
|
-
case "AccessDeniedException":
|
|
2942
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2943
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2944
|
-
case "InternalServerException":
|
|
2945
|
-
case "com.amazonaws.location#InternalServerException":
|
|
2946
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "ResourceNotFoundException":
|
|
2948
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
2949
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "ThrottlingException":
|
|
2951
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
2952
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "ValidationException":
|
|
2954
|
-
case "com.amazonaws.location#ValidationException":
|
|
2955
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2956
|
-
default:
|
|
2957
|
-
const parsedBody = parsedOutput.body;
|
|
2958
|
-
return throwDefaultError({
|
|
2959
|
-
output,
|
|
2960
|
-
parsedBody,
|
|
2961
|
-
errorCode
|
|
2962
|
-
});
|
|
2963
|
-
}
|
|
2964
|
-
}, "de_DeleteTrackerCommandError");
|
|
2965
2290
|
var de_DescribeGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2966
2291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2967
|
-
return
|
|
2292
|
+
return de_CommandError(output, context);
|
|
2968
2293
|
}
|
|
2969
2294
|
const contents = (0, import_smithy_client.map)({
|
|
2970
2295
|
$metadata: deserializeMetadata(output)
|
|
@@ -2985,40 +2310,9 @@ var de_DescribeGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2985
2310
|
Object.assign(contents, doc);
|
|
2986
2311
|
return contents;
|
|
2987
2312
|
}, "de_DescribeGeofenceCollectionCommand");
|
|
2988
|
-
var de_DescribeGeofenceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2989
|
-
const parsedOutput = {
|
|
2990
|
-
...output,
|
|
2991
|
-
body: await parseErrorBody(output.body, context)
|
|
2992
|
-
};
|
|
2993
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2994
|
-
switch (errorCode) {
|
|
2995
|
-
case "AccessDeniedException":
|
|
2996
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
2997
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2998
|
-
case "InternalServerException":
|
|
2999
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3000
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3001
|
-
case "ResourceNotFoundException":
|
|
3002
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3003
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3004
|
-
case "ThrottlingException":
|
|
3005
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3006
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3007
|
-
case "ValidationException":
|
|
3008
|
-
case "com.amazonaws.location#ValidationException":
|
|
3009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3010
|
-
default:
|
|
3011
|
-
const parsedBody = parsedOutput.body;
|
|
3012
|
-
return throwDefaultError({
|
|
3013
|
-
output,
|
|
3014
|
-
parsedBody,
|
|
3015
|
-
errorCode
|
|
3016
|
-
});
|
|
3017
|
-
}
|
|
3018
|
-
}, "de_DescribeGeofenceCollectionCommandError");
|
|
3019
2313
|
var de_DescribeKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3020
2314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3021
|
-
return
|
|
2315
|
+
return de_CommandError(output, context);
|
|
3022
2316
|
}
|
|
3023
2317
|
const contents = (0, import_smithy_client.map)({
|
|
3024
2318
|
$metadata: deserializeMetadata(output)
|
|
@@ -3038,40 +2332,9 @@ var de_DescribeKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3038
2332
|
Object.assign(contents, doc);
|
|
3039
2333
|
return contents;
|
|
3040
2334
|
}, "de_DescribeKeyCommand");
|
|
3041
|
-
var de_DescribeKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3042
|
-
const parsedOutput = {
|
|
3043
|
-
...output,
|
|
3044
|
-
body: await parseErrorBody(output.body, context)
|
|
3045
|
-
};
|
|
3046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3047
|
-
switch (errorCode) {
|
|
3048
|
-
case "AccessDeniedException":
|
|
3049
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3051
|
-
case "InternalServerException":
|
|
3052
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3054
|
-
case "ResourceNotFoundException":
|
|
3055
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3057
|
-
case "ThrottlingException":
|
|
3058
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3059
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ValidationException":
|
|
3061
|
-
case "com.amazonaws.location#ValidationException":
|
|
3062
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3063
|
-
default:
|
|
3064
|
-
const parsedBody = parsedOutput.body;
|
|
3065
|
-
return throwDefaultError({
|
|
3066
|
-
output,
|
|
3067
|
-
parsedBody,
|
|
3068
|
-
errorCode
|
|
3069
|
-
});
|
|
3070
|
-
}
|
|
3071
|
-
}, "de_DescribeKeyCommandError");
|
|
3072
2335
|
var de_DescribeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3073
2336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3074
|
-
return
|
|
2337
|
+
return de_CommandError(output, context);
|
|
3075
2338
|
}
|
|
3076
2339
|
const contents = (0, import_smithy_client.map)({
|
|
3077
2340
|
$metadata: deserializeMetadata(output)
|
|
@@ -3091,40 +2354,9 @@ var de_DescribeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3091
2354
|
Object.assign(contents, doc);
|
|
3092
2355
|
return contents;
|
|
3093
2356
|
}, "de_DescribeMapCommand");
|
|
3094
|
-
var de_DescribeMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3095
|
-
const parsedOutput = {
|
|
3096
|
-
...output,
|
|
3097
|
-
body: await parseErrorBody(output.body, context)
|
|
3098
|
-
};
|
|
3099
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3100
|
-
switch (errorCode) {
|
|
3101
|
-
case "AccessDeniedException":
|
|
3102
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3103
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "InternalServerException":
|
|
3105
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3107
|
-
case "ResourceNotFoundException":
|
|
3108
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3109
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3110
|
-
case "ThrottlingException":
|
|
3111
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3112
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3113
|
-
case "ValidationException":
|
|
3114
|
-
case "com.amazonaws.location#ValidationException":
|
|
3115
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3116
|
-
default:
|
|
3117
|
-
const parsedBody = parsedOutput.body;
|
|
3118
|
-
return throwDefaultError({
|
|
3119
|
-
output,
|
|
3120
|
-
parsedBody,
|
|
3121
|
-
errorCode
|
|
3122
|
-
});
|
|
3123
|
-
}
|
|
3124
|
-
}, "de_DescribeMapCommandError");
|
|
3125
2357
|
var de_DescribePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3126
2358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3127
|
-
return
|
|
2359
|
+
return de_CommandError(output, context);
|
|
3128
2360
|
}
|
|
3129
2361
|
const contents = (0, import_smithy_client.map)({
|
|
3130
2362
|
$metadata: deserializeMetadata(output)
|
|
@@ -3144,40 +2376,9 @@ var de_DescribePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3144
2376
|
Object.assign(contents, doc);
|
|
3145
2377
|
return contents;
|
|
3146
2378
|
}, "de_DescribePlaceIndexCommand");
|
|
3147
|
-
var de_DescribePlaceIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3148
|
-
const parsedOutput = {
|
|
3149
|
-
...output,
|
|
3150
|
-
body: await parseErrorBody(output.body, context)
|
|
3151
|
-
};
|
|
3152
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3153
|
-
switch (errorCode) {
|
|
3154
|
-
case "AccessDeniedException":
|
|
3155
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3156
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "InternalServerException":
|
|
3158
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3159
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "ResourceNotFoundException":
|
|
3161
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3162
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "ThrottlingException":
|
|
3164
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3165
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ValidationException":
|
|
3167
|
-
case "com.amazonaws.location#ValidationException":
|
|
3168
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3169
|
-
default:
|
|
3170
|
-
const parsedBody = parsedOutput.body;
|
|
3171
|
-
return throwDefaultError({
|
|
3172
|
-
output,
|
|
3173
|
-
parsedBody,
|
|
3174
|
-
errorCode
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
}, "de_DescribePlaceIndexCommandError");
|
|
3178
2379
|
var de_DescribeRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3179
2380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3180
|
-
return
|
|
2381
|
+
return de_CommandError(output, context);
|
|
3181
2382
|
}
|
|
3182
2383
|
const contents = (0, import_smithy_client.map)({
|
|
3183
2384
|
$metadata: deserializeMetadata(output)
|
|
@@ -3196,40 +2397,9 @@ var de_DescribeRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3196
2397
|
Object.assign(contents, doc);
|
|
3197
2398
|
return contents;
|
|
3198
2399
|
}, "de_DescribeRouteCalculatorCommand");
|
|
3199
|
-
var de_DescribeRouteCalculatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3200
|
-
const parsedOutput = {
|
|
3201
|
-
...output,
|
|
3202
|
-
body: await parseErrorBody(output.body, context)
|
|
3203
|
-
};
|
|
3204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3205
|
-
switch (errorCode) {
|
|
3206
|
-
case "AccessDeniedException":
|
|
3207
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3208
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3209
|
-
case "InternalServerException":
|
|
3210
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3211
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "ResourceNotFoundException":
|
|
3213
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3214
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "ThrottlingException":
|
|
3216
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3217
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3218
|
-
case "ValidationException":
|
|
3219
|
-
case "com.amazonaws.location#ValidationException":
|
|
3220
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3221
|
-
default:
|
|
3222
|
-
const parsedBody = parsedOutput.body;
|
|
3223
|
-
return throwDefaultError({
|
|
3224
|
-
output,
|
|
3225
|
-
parsedBody,
|
|
3226
|
-
errorCode
|
|
3227
|
-
});
|
|
3228
|
-
}
|
|
3229
|
-
}, "de_DescribeRouteCalculatorCommandError");
|
|
3230
2400
|
var de_DescribeTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3231
2401
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3232
|
-
return
|
|
2402
|
+
return de_CommandError(output, context);
|
|
3233
2403
|
}
|
|
3234
2404
|
const contents = (0, import_smithy_client.map)({
|
|
3235
2405
|
$metadata: deserializeMetadata(output)
|
|
@@ -3252,40 +2422,9 @@ var de_DescribeTrackerCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3252
2422
|
Object.assign(contents, doc);
|
|
3253
2423
|
return contents;
|
|
3254
2424
|
}, "de_DescribeTrackerCommand");
|
|
3255
|
-
var de_DescribeTrackerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3256
|
-
const parsedOutput = {
|
|
3257
|
-
...output,
|
|
3258
|
-
body: await parseErrorBody(output.body, context)
|
|
3259
|
-
};
|
|
3260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "AccessDeniedException":
|
|
3263
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3264
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "InternalServerException":
|
|
3266
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3267
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "ResourceNotFoundException":
|
|
3269
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "ThrottlingException":
|
|
3272
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3273
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "ValidationException":
|
|
3275
|
-
case "com.amazonaws.location#ValidationException":
|
|
3276
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3277
|
-
default:
|
|
3278
|
-
const parsedBody = parsedOutput.body;
|
|
3279
|
-
return throwDefaultError({
|
|
3280
|
-
output,
|
|
3281
|
-
parsedBody,
|
|
3282
|
-
errorCode
|
|
3283
|
-
});
|
|
3284
|
-
}
|
|
3285
|
-
}, "de_DescribeTrackerCommandError");
|
|
3286
2425
|
var de_DisassociateTrackerConsumerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3287
2426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3288
|
-
return
|
|
2427
|
+
return de_CommandError(output, context);
|
|
3289
2428
|
}
|
|
3290
2429
|
const contents = (0, import_smithy_client.map)({
|
|
3291
2430
|
$metadata: deserializeMetadata(output)
|
|
@@ -3293,40 +2432,9 @@ var de_DisassociateTrackerConsumerCommand = /* @__PURE__ */ __name(async (output
|
|
|
3293
2432
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3294
2433
|
return contents;
|
|
3295
2434
|
}, "de_DisassociateTrackerConsumerCommand");
|
|
3296
|
-
var de_DisassociateTrackerConsumerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3297
|
-
const parsedOutput = {
|
|
3298
|
-
...output,
|
|
3299
|
-
body: await parseErrorBody(output.body, context)
|
|
3300
|
-
};
|
|
3301
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3302
|
-
switch (errorCode) {
|
|
3303
|
-
case "AccessDeniedException":
|
|
3304
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3305
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3306
|
-
case "InternalServerException":
|
|
3307
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3308
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "ResourceNotFoundException":
|
|
3310
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3311
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "ThrottlingException":
|
|
3313
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3314
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "ValidationException":
|
|
3316
|
-
case "com.amazonaws.location#ValidationException":
|
|
3317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3318
|
-
default:
|
|
3319
|
-
const parsedBody = parsedOutput.body;
|
|
3320
|
-
return throwDefaultError({
|
|
3321
|
-
output,
|
|
3322
|
-
parsedBody,
|
|
3323
|
-
errorCode
|
|
3324
|
-
});
|
|
3325
|
-
}
|
|
3326
|
-
}, "de_DisassociateTrackerConsumerCommandError");
|
|
3327
2435
|
var de_GetDevicePositionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3328
2436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3329
|
-
return
|
|
2437
|
+
return de_CommandError(output, context);
|
|
3330
2438
|
}
|
|
3331
2439
|
const contents = (0, import_smithy_client.map)({
|
|
3332
2440
|
$metadata: deserializeMetadata(output)
|
|
@@ -3343,40 +2451,9 @@ var de_GetDevicePositionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3343
2451
|
Object.assign(contents, doc);
|
|
3344
2452
|
return contents;
|
|
3345
2453
|
}, "de_GetDevicePositionCommand");
|
|
3346
|
-
var de_GetDevicePositionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3347
|
-
const parsedOutput = {
|
|
3348
|
-
...output,
|
|
3349
|
-
body: await parseErrorBody(output.body, context)
|
|
3350
|
-
};
|
|
3351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3352
|
-
switch (errorCode) {
|
|
3353
|
-
case "AccessDeniedException":
|
|
3354
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3355
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3356
|
-
case "InternalServerException":
|
|
3357
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3358
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3359
|
-
case "ResourceNotFoundException":
|
|
3360
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3361
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3362
|
-
case "ThrottlingException":
|
|
3363
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3364
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3365
|
-
case "ValidationException":
|
|
3366
|
-
case "com.amazonaws.location#ValidationException":
|
|
3367
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3368
|
-
default:
|
|
3369
|
-
const parsedBody = parsedOutput.body;
|
|
3370
|
-
return throwDefaultError({
|
|
3371
|
-
output,
|
|
3372
|
-
parsedBody,
|
|
3373
|
-
errorCode
|
|
3374
|
-
});
|
|
3375
|
-
}
|
|
3376
|
-
}, "de_GetDevicePositionCommandError");
|
|
3377
2454
|
var de_GetDevicePositionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3378
2455
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3379
|
-
return
|
|
2456
|
+
return de_CommandError(output, context);
|
|
3380
2457
|
}
|
|
3381
2458
|
const contents = (0, import_smithy_client.map)({
|
|
3382
2459
|
$metadata: deserializeMetadata(output)
|
|
@@ -3389,40 +2466,9 @@ var de_GetDevicePositionHistoryCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3389
2466
|
Object.assign(contents, doc);
|
|
3390
2467
|
return contents;
|
|
3391
2468
|
}, "de_GetDevicePositionHistoryCommand");
|
|
3392
|
-
var de_GetDevicePositionHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3393
|
-
const parsedOutput = {
|
|
3394
|
-
...output,
|
|
3395
|
-
body: await parseErrorBody(output.body, context)
|
|
3396
|
-
};
|
|
3397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3398
|
-
switch (errorCode) {
|
|
3399
|
-
case "AccessDeniedException":
|
|
3400
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3401
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3402
|
-
case "InternalServerException":
|
|
3403
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3404
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ResourceNotFoundException":
|
|
3406
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3407
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "ThrottlingException":
|
|
3409
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3410
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3411
|
-
case "ValidationException":
|
|
3412
|
-
case "com.amazonaws.location#ValidationException":
|
|
3413
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3414
|
-
default:
|
|
3415
|
-
const parsedBody = parsedOutput.body;
|
|
3416
|
-
return throwDefaultError({
|
|
3417
|
-
output,
|
|
3418
|
-
parsedBody,
|
|
3419
|
-
errorCode
|
|
3420
|
-
});
|
|
3421
|
-
}
|
|
3422
|
-
}, "de_GetDevicePositionHistoryCommandError");
|
|
3423
2469
|
var de_GetGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3424
2470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3425
|
-
return
|
|
2471
|
+
return de_CommandError(output, context);
|
|
3426
2472
|
}
|
|
3427
2473
|
const contents = (0, import_smithy_client.map)({
|
|
3428
2474
|
$metadata: deserializeMetadata(output)
|
|
@@ -3439,40 +2485,9 @@ var de_GetGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3439
2485
|
Object.assign(contents, doc);
|
|
3440
2486
|
return contents;
|
|
3441
2487
|
}, "de_GetGeofenceCommand");
|
|
3442
|
-
var de_GetGeofenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3443
|
-
const parsedOutput = {
|
|
3444
|
-
...output,
|
|
3445
|
-
body: await parseErrorBody(output.body, context)
|
|
3446
|
-
};
|
|
3447
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
|
-
switch (errorCode) {
|
|
3449
|
-
case "AccessDeniedException":
|
|
3450
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3451
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3452
|
-
case "InternalServerException":
|
|
3453
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3454
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3455
|
-
case "ResourceNotFoundException":
|
|
3456
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3457
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3458
|
-
case "ThrottlingException":
|
|
3459
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3460
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3461
|
-
case "ValidationException":
|
|
3462
|
-
case "com.amazonaws.location#ValidationException":
|
|
3463
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3464
|
-
default:
|
|
3465
|
-
const parsedBody = parsedOutput.body;
|
|
3466
|
-
return throwDefaultError({
|
|
3467
|
-
output,
|
|
3468
|
-
parsedBody,
|
|
3469
|
-
errorCode
|
|
3470
|
-
});
|
|
3471
|
-
}
|
|
3472
|
-
}, "de_GetGeofenceCommandError");
|
|
3473
2488
|
var de_GetMapGlyphsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3474
2489
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3475
|
-
return
|
|
2490
|
+
return de_CommandError(output, context);
|
|
3476
2491
|
}
|
|
3477
2492
|
const contents = (0, import_smithy_client.map)({
|
|
3478
2493
|
$metadata: deserializeMetadata(output),
|
|
@@ -3483,40 +2498,9 @@ var de_GetMapGlyphsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3483
2498
|
contents.Blob = data;
|
|
3484
2499
|
return contents;
|
|
3485
2500
|
}, "de_GetMapGlyphsCommand");
|
|
3486
|
-
var de_GetMapGlyphsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3487
|
-
const parsedOutput = {
|
|
3488
|
-
...output,
|
|
3489
|
-
body: await parseErrorBody(output.body, context)
|
|
3490
|
-
};
|
|
3491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
|
-
switch (errorCode) {
|
|
3493
|
-
case "AccessDeniedException":
|
|
3494
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3495
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "InternalServerException":
|
|
3497
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3498
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "ResourceNotFoundException":
|
|
3500
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3501
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "ThrottlingException":
|
|
3503
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3504
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3505
|
-
case "ValidationException":
|
|
3506
|
-
case "com.amazonaws.location#ValidationException":
|
|
3507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3508
|
-
default:
|
|
3509
|
-
const parsedBody = parsedOutput.body;
|
|
3510
|
-
return throwDefaultError({
|
|
3511
|
-
output,
|
|
3512
|
-
parsedBody,
|
|
3513
|
-
errorCode
|
|
3514
|
-
});
|
|
3515
|
-
}
|
|
3516
|
-
}, "de_GetMapGlyphsCommandError");
|
|
3517
2501
|
var de_GetMapSpritesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3518
2502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3519
|
-
return
|
|
2503
|
+
return de_CommandError(output, context);
|
|
3520
2504
|
}
|
|
3521
2505
|
const contents = (0, import_smithy_client.map)({
|
|
3522
2506
|
$metadata: deserializeMetadata(output),
|
|
@@ -3527,40 +2511,9 @@ var de_GetMapSpritesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3527
2511
|
contents.Blob = data;
|
|
3528
2512
|
return contents;
|
|
3529
2513
|
}, "de_GetMapSpritesCommand");
|
|
3530
|
-
var de_GetMapSpritesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3531
|
-
const parsedOutput = {
|
|
3532
|
-
...output,
|
|
3533
|
-
body: await parseErrorBody(output.body, context)
|
|
3534
|
-
};
|
|
3535
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3536
|
-
switch (errorCode) {
|
|
3537
|
-
case "AccessDeniedException":
|
|
3538
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3539
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3540
|
-
case "InternalServerException":
|
|
3541
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3542
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3543
|
-
case "ResourceNotFoundException":
|
|
3544
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3546
|
-
case "ThrottlingException":
|
|
3547
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3548
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "ValidationException":
|
|
3550
|
-
case "com.amazonaws.location#ValidationException":
|
|
3551
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3552
|
-
default:
|
|
3553
|
-
const parsedBody = parsedOutput.body;
|
|
3554
|
-
return throwDefaultError({
|
|
3555
|
-
output,
|
|
3556
|
-
parsedBody,
|
|
3557
|
-
errorCode
|
|
3558
|
-
});
|
|
3559
|
-
}
|
|
3560
|
-
}, "de_GetMapSpritesCommandError");
|
|
3561
2514
|
var de_GetMapStyleDescriptorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3562
2515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3563
|
-
return
|
|
2516
|
+
return de_CommandError(output, context);
|
|
3564
2517
|
}
|
|
3565
2518
|
const contents = (0, import_smithy_client.map)({
|
|
3566
2519
|
$metadata: deserializeMetadata(output),
|
|
@@ -3571,40 +2524,9 @@ var de_GetMapStyleDescriptorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3571
2524
|
contents.Blob = data;
|
|
3572
2525
|
return contents;
|
|
3573
2526
|
}, "de_GetMapStyleDescriptorCommand");
|
|
3574
|
-
var de_GetMapStyleDescriptorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3575
|
-
const parsedOutput = {
|
|
3576
|
-
...output,
|
|
3577
|
-
body: await parseErrorBody(output.body, context)
|
|
3578
|
-
};
|
|
3579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3580
|
-
switch (errorCode) {
|
|
3581
|
-
case "AccessDeniedException":
|
|
3582
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3583
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3584
|
-
case "InternalServerException":
|
|
3585
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3586
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3587
|
-
case "ResourceNotFoundException":
|
|
3588
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3590
|
-
case "ThrottlingException":
|
|
3591
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3592
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ValidationException":
|
|
3594
|
-
case "com.amazonaws.location#ValidationException":
|
|
3595
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3596
|
-
default:
|
|
3597
|
-
const parsedBody = parsedOutput.body;
|
|
3598
|
-
return throwDefaultError({
|
|
3599
|
-
output,
|
|
3600
|
-
parsedBody,
|
|
3601
|
-
errorCode
|
|
3602
|
-
});
|
|
3603
|
-
}
|
|
3604
|
-
}, "de_GetMapStyleDescriptorCommandError");
|
|
3605
2527
|
var de_GetMapTileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3606
2528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3607
|
-
return
|
|
2529
|
+
return de_CommandError(output, context);
|
|
3608
2530
|
}
|
|
3609
2531
|
const contents = (0, import_smithy_client.map)({
|
|
3610
2532
|
$metadata: deserializeMetadata(output),
|
|
@@ -3615,40 +2537,9 @@ var de_GetMapTileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3615
2537
|
contents.Blob = data;
|
|
3616
2538
|
return contents;
|
|
3617
2539
|
}, "de_GetMapTileCommand");
|
|
3618
|
-
var de_GetMapTileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3619
|
-
const parsedOutput = {
|
|
3620
|
-
...output,
|
|
3621
|
-
body: await parseErrorBody(output.body, context)
|
|
3622
|
-
};
|
|
3623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3624
|
-
switch (errorCode) {
|
|
3625
|
-
case "AccessDeniedException":
|
|
3626
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3627
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "InternalServerException":
|
|
3629
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3630
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3631
|
-
case "ResourceNotFoundException":
|
|
3632
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3634
|
-
case "ThrottlingException":
|
|
3635
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3636
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3637
|
-
case "ValidationException":
|
|
3638
|
-
case "com.amazonaws.location#ValidationException":
|
|
3639
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3640
|
-
default:
|
|
3641
|
-
const parsedBody = parsedOutput.body;
|
|
3642
|
-
return throwDefaultError({
|
|
3643
|
-
output,
|
|
3644
|
-
parsedBody,
|
|
3645
|
-
errorCode
|
|
3646
|
-
});
|
|
3647
|
-
}
|
|
3648
|
-
}, "de_GetMapTileCommandError");
|
|
3649
2540
|
var de_GetPlaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3650
2541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3651
|
-
return
|
|
2542
|
+
return de_CommandError(output, context);
|
|
3652
2543
|
}
|
|
3653
2544
|
const contents = (0, import_smithy_client.map)({
|
|
3654
2545
|
$metadata: deserializeMetadata(output)
|
|
@@ -3660,40 +2551,9 @@ var de_GetPlaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3660
2551
|
Object.assign(contents, doc);
|
|
3661
2552
|
return contents;
|
|
3662
2553
|
}, "de_GetPlaceCommand");
|
|
3663
|
-
var de_GetPlaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3664
|
-
const parsedOutput = {
|
|
3665
|
-
...output,
|
|
3666
|
-
body: await parseErrorBody(output.body, context)
|
|
3667
|
-
};
|
|
3668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3669
|
-
switch (errorCode) {
|
|
3670
|
-
case "AccessDeniedException":
|
|
3671
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3672
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3673
|
-
case "InternalServerException":
|
|
3674
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3675
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3676
|
-
case "ResourceNotFoundException":
|
|
3677
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3678
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3679
|
-
case "ThrottlingException":
|
|
3680
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3681
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3682
|
-
case "ValidationException":
|
|
3683
|
-
case "com.amazonaws.location#ValidationException":
|
|
3684
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3685
|
-
default:
|
|
3686
|
-
const parsedBody = parsedOutput.body;
|
|
3687
|
-
return throwDefaultError({
|
|
3688
|
-
output,
|
|
3689
|
-
parsedBody,
|
|
3690
|
-
errorCode
|
|
3691
|
-
});
|
|
3692
|
-
}
|
|
3693
|
-
}, "de_GetPlaceCommandError");
|
|
3694
2554
|
var de_ListDevicePositionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3695
2555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3696
|
-
return
|
|
2556
|
+
return de_CommandError(output, context);
|
|
3697
2557
|
}
|
|
3698
2558
|
const contents = (0, import_smithy_client.map)({
|
|
3699
2559
|
$metadata: deserializeMetadata(output)
|
|
@@ -3706,37 +2566,9 @@ var de_ListDevicePositionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3706
2566
|
Object.assign(contents, doc);
|
|
3707
2567
|
return contents;
|
|
3708
2568
|
}, "de_ListDevicePositionsCommand");
|
|
3709
|
-
var de_ListDevicePositionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3710
|
-
const parsedOutput = {
|
|
3711
|
-
...output,
|
|
3712
|
-
body: await parseErrorBody(output.body, context)
|
|
3713
|
-
};
|
|
3714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3715
|
-
switch (errorCode) {
|
|
3716
|
-
case "AccessDeniedException":
|
|
3717
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3718
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3719
|
-
case "InternalServerException":
|
|
3720
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3721
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3722
|
-
case "ThrottlingException":
|
|
3723
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3724
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3725
|
-
case "ValidationException":
|
|
3726
|
-
case "com.amazonaws.location#ValidationException":
|
|
3727
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3728
|
-
default:
|
|
3729
|
-
const parsedBody = parsedOutput.body;
|
|
3730
|
-
return throwDefaultError({
|
|
3731
|
-
output,
|
|
3732
|
-
parsedBody,
|
|
3733
|
-
errorCode
|
|
3734
|
-
});
|
|
3735
|
-
}
|
|
3736
|
-
}, "de_ListDevicePositionsCommandError");
|
|
3737
2569
|
var de_ListGeofenceCollectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3738
2570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3739
|
-
return
|
|
2571
|
+
return de_CommandError(output, context);
|
|
3740
2572
|
}
|
|
3741
2573
|
const contents = (0, import_smithy_client.map)({
|
|
3742
2574
|
$metadata: deserializeMetadata(output)
|
|
@@ -3749,37 +2581,9 @@ var de_ListGeofenceCollectionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3749
2581
|
Object.assign(contents, doc);
|
|
3750
2582
|
return contents;
|
|
3751
2583
|
}, "de_ListGeofenceCollectionsCommand");
|
|
3752
|
-
var de_ListGeofenceCollectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3753
|
-
const parsedOutput = {
|
|
3754
|
-
...output,
|
|
3755
|
-
body: await parseErrorBody(output.body, context)
|
|
3756
|
-
};
|
|
3757
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3758
|
-
switch (errorCode) {
|
|
3759
|
-
case "AccessDeniedException":
|
|
3760
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3761
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3762
|
-
case "InternalServerException":
|
|
3763
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3764
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3765
|
-
case "ThrottlingException":
|
|
3766
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3768
|
-
case "ValidationException":
|
|
3769
|
-
case "com.amazonaws.location#ValidationException":
|
|
3770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3771
|
-
default:
|
|
3772
|
-
const parsedBody = parsedOutput.body;
|
|
3773
|
-
return throwDefaultError({
|
|
3774
|
-
output,
|
|
3775
|
-
parsedBody,
|
|
3776
|
-
errorCode
|
|
3777
|
-
});
|
|
3778
|
-
}
|
|
3779
|
-
}, "de_ListGeofenceCollectionsCommandError");
|
|
3780
2584
|
var de_ListGeofencesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3781
2585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3782
|
-
return
|
|
2586
|
+
return de_CommandError(output, context);
|
|
3783
2587
|
}
|
|
3784
2588
|
const contents = (0, import_smithy_client.map)({
|
|
3785
2589
|
$metadata: deserializeMetadata(output)
|
|
@@ -3792,40 +2596,9 @@ var de_ListGeofencesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3792
2596
|
Object.assign(contents, doc);
|
|
3793
2597
|
return contents;
|
|
3794
2598
|
}, "de_ListGeofencesCommand");
|
|
3795
|
-
var de_ListGeofencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3796
|
-
const parsedOutput = {
|
|
3797
|
-
...output,
|
|
3798
|
-
body: await parseErrorBody(output.body, context)
|
|
3799
|
-
};
|
|
3800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3801
|
-
switch (errorCode) {
|
|
3802
|
-
case "AccessDeniedException":
|
|
3803
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3805
|
-
case "InternalServerException":
|
|
3806
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3807
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3808
|
-
case "ResourceNotFoundException":
|
|
3809
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
3810
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3811
|
-
case "ThrottlingException":
|
|
3812
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3813
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3814
|
-
case "ValidationException":
|
|
3815
|
-
case "com.amazonaws.location#ValidationException":
|
|
3816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3817
|
-
default:
|
|
3818
|
-
const parsedBody = parsedOutput.body;
|
|
3819
|
-
return throwDefaultError({
|
|
3820
|
-
output,
|
|
3821
|
-
parsedBody,
|
|
3822
|
-
errorCode
|
|
3823
|
-
});
|
|
3824
|
-
}
|
|
3825
|
-
}, "de_ListGeofencesCommandError");
|
|
3826
2599
|
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3827
2600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3828
|
-
return
|
|
2601
|
+
return de_CommandError(output, context);
|
|
3829
2602
|
}
|
|
3830
2603
|
const contents = (0, import_smithy_client.map)({
|
|
3831
2604
|
$metadata: deserializeMetadata(output)
|
|
@@ -3838,37 +2611,9 @@ var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3838
2611
|
Object.assign(contents, doc);
|
|
3839
2612
|
return contents;
|
|
3840
2613
|
}, "de_ListKeysCommand");
|
|
3841
|
-
var de_ListKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3842
|
-
const parsedOutput = {
|
|
3843
|
-
...output,
|
|
3844
|
-
body: await parseErrorBody(output.body, context)
|
|
3845
|
-
};
|
|
3846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3847
|
-
switch (errorCode) {
|
|
3848
|
-
case "AccessDeniedException":
|
|
3849
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3851
|
-
case "InternalServerException":
|
|
3852
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3853
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3854
|
-
case "ThrottlingException":
|
|
3855
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3856
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3857
|
-
case "ValidationException":
|
|
3858
|
-
case "com.amazonaws.location#ValidationException":
|
|
3859
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3860
|
-
default:
|
|
3861
|
-
const parsedBody = parsedOutput.body;
|
|
3862
|
-
return throwDefaultError({
|
|
3863
|
-
output,
|
|
3864
|
-
parsedBody,
|
|
3865
|
-
errorCode
|
|
3866
|
-
});
|
|
3867
|
-
}
|
|
3868
|
-
}, "de_ListKeysCommandError");
|
|
3869
2614
|
var de_ListMapsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3870
2615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3871
|
-
return
|
|
2616
|
+
return de_CommandError(output, context);
|
|
3872
2617
|
}
|
|
3873
2618
|
const contents = (0, import_smithy_client.map)({
|
|
3874
2619
|
$metadata: deserializeMetadata(output)
|
|
@@ -3881,37 +2626,9 @@ var de_ListMapsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3881
2626
|
Object.assign(contents, doc);
|
|
3882
2627
|
return contents;
|
|
3883
2628
|
}, "de_ListMapsCommand");
|
|
3884
|
-
var de_ListMapsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3885
|
-
const parsedOutput = {
|
|
3886
|
-
...output,
|
|
3887
|
-
body: await parseErrorBody(output.body, context)
|
|
3888
|
-
};
|
|
3889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3890
|
-
switch (errorCode) {
|
|
3891
|
-
case "AccessDeniedException":
|
|
3892
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3893
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3894
|
-
case "InternalServerException":
|
|
3895
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3896
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3897
|
-
case "ThrottlingException":
|
|
3898
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3899
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3900
|
-
case "ValidationException":
|
|
3901
|
-
case "com.amazonaws.location#ValidationException":
|
|
3902
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3903
|
-
default:
|
|
3904
|
-
const parsedBody = parsedOutput.body;
|
|
3905
|
-
return throwDefaultError({
|
|
3906
|
-
output,
|
|
3907
|
-
parsedBody,
|
|
3908
|
-
errorCode
|
|
3909
|
-
});
|
|
3910
|
-
}
|
|
3911
|
-
}, "de_ListMapsCommandError");
|
|
3912
2629
|
var de_ListPlaceIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3913
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3914
|
-
return
|
|
2631
|
+
return de_CommandError(output, context);
|
|
3915
2632
|
}
|
|
3916
2633
|
const contents = (0, import_smithy_client.map)({
|
|
3917
2634
|
$metadata: deserializeMetadata(output)
|
|
@@ -3924,37 +2641,9 @@ var de_ListPlaceIndexesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3924
2641
|
Object.assign(contents, doc);
|
|
3925
2642
|
return contents;
|
|
3926
2643
|
}, "de_ListPlaceIndexesCommand");
|
|
3927
|
-
var de_ListPlaceIndexesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3928
|
-
const parsedOutput = {
|
|
3929
|
-
...output,
|
|
3930
|
-
body: await parseErrorBody(output.body, context)
|
|
3931
|
-
};
|
|
3932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3933
|
-
switch (errorCode) {
|
|
3934
|
-
case "AccessDeniedException":
|
|
3935
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3937
|
-
case "InternalServerException":
|
|
3938
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3940
|
-
case "ThrottlingException":
|
|
3941
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3943
|
-
case "ValidationException":
|
|
3944
|
-
case "com.amazonaws.location#ValidationException":
|
|
3945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3946
|
-
default:
|
|
3947
|
-
const parsedBody = parsedOutput.body;
|
|
3948
|
-
return throwDefaultError({
|
|
3949
|
-
output,
|
|
3950
|
-
parsedBody,
|
|
3951
|
-
errorCode
|
|
3952
|
-
});
|
|
3953
|
-
}
|
|
3954
|
-
}, "de_ListPlaceIndexesCommandError");
|
|
3955
2644
|
var de_ListRouteCalculatorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3956
2645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3957
|
-
return
|
|
2646
|
+
return de_CommandError(output, context);
|
|
3958
2647
|
}
|
|
3959
2648
|
const contents = (0, import_smithy_client.map)({
|
|
3960
2649
|
$metadata: deserializeMetadata(output)
|
|
@@ -3967,37 +2656,9 @@ var de_ListRouteCalculatorsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3967
2656
|
Object.assign(contents, doc);
|
|
3968
2657
|
return contents;
|
|
3969
2658
|
}, "de_ListRouteCalculatorsCommand");
|
|
3970
|
-
var de_ListRouteCalculatorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3971
|
-
const parsedOutput = {
|
|
3972
|
-
...output,
|
|
3973
|
-
body: await parseErrorBody(output.body, context)
|
|
3974
|
-
};
|
|
3975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3976
|
-
switch (errorCode) {
|
|
3977
|
-
case "AccessDeniedException":
|
|
3978
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
3979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "InternalServerException":
|
|
3981
|
-
case "com.amazonaws.location#InternalServerException":
|
|
3982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3983
|
-
case "ThrottlingException":
|
|
3984
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
3985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3986
|
-
case "ValidationException":
|
|
3987
|
-
case "com.amazonaws.location#ValidationException":
|
|
3988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3989
|
-
default:
|
|
3990
|
-
const parsedBody = parsedOutput.body;
|
|
3991
|
-
return throwDefaultError({
|
|
3992
|
-
output,
|
|
3993
|
-
parsedBody,
|
|
3994
|
-
errorCode
|
|
3995
|
-
});
|
|
3996
|
-
}
|
|
3997
|
-
}, "de_ListRouteCalculatorsCommandError");
|
|
3998
2659
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3999
2660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4000
|
-
return
|
|
2661
|
+
return de_CommandError(output, context);
|
|
4001
2662
|
}
|
|
4002
2663
|
const contents = (0, import_smithy_client.map)({
|
|
4003
2664
|
$metadata: deserializeMetadata(output)
|
|
@@ -4009,40 +2670,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4009
2670
|
Object.assign(contents, doc);
|
|
4010
2671
|
return contents;
|
|
4011
2672
|
}, "de_ListTagsForResourceCommand");
|
|
4012
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4013
|
-
const parsedOutput = {
|
|
4014
|
-
...output,
|
|
4015
|
-
body: await parseErrorBody(output.body, context)
|
|
4016
|
-
};
|
|
4017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4018
|
-
switch (errorCode) {
|
|
4019
|
-
case "AccessDeniedException":
|
|
4020
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4022
|
-
case "InternalServerException":
|
|
4023
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4024
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4025
|
-
case "ResourceNotFoundException":
|
|
4026
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4028
|
-
case "ThrottlingException":
|
|
4029
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4030
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4031
|
-
case "ValidationException":
|
|
4032
|
-
case "com.amazonaws.location#ValidationException":
|
|
4033
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4034
|
-
default:
|
|
4035
|
-
const parsedBody = parsedOutput.body;
|
|
4036
|
-
return throwDefaultError({
|
|
4037
|
-
output,
|
|
4038
|
-
parsedBody,
|
|
4039
|
-
errorCode
|
|
4040
|
-
});
|
|
4041
|
-
}
|
|
4042
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4043
2673
|
var de_ListTrackerConsumersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4044
2674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4045
|
-
return
|
|
2675
|
+
return de_CommandError(output, context);
|
|
4046
2676
|
}
|
|
4047
2677
|
const contents = (0, import_smithy_client.map)({
|
|
4048
2678
|
$metadata: deserializeMetadata(output)
|
|
@@ -4055,40 +2685,9 @@ var de_ListTrackerConsumersCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4055
2685
|
Object.assign(contents, doc);
|
|
4056
2686
|
return contents;
|
|
4057
2687
|
}, "de_ListTrackerConsumersCommand");
|
|
4058
|
-
var de_ListTrackerConsumersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4059
|
-
const parsedOutput = {
|
|
4060
|
-
...output,
|
|
4061
|
-
body: await parseErrorBody(output.body, context)
|
|
4062
|
-
};
|
|
4063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
|
-
switch (errorCode) {
|
|
4065
|
-
case "AccessDeniedException":
|
|
4066
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4067
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4068
|
-
case "InternalServerException":
|
|
4069
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4071
|
-
case "ResourceNotFoundException":
|
|
4072
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4074
|
-
case "ThrottlingException":
|
|
4075
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4077
|
-
case "ValidationException":
|
|
4078
|
-
case "com.amazonaws.location#ValidationException":
|
|
4079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4080
|
-
default:
|
|
4081
|
-
const parsedBody = parsedOutput.body;
|
|
4082
|
-
return throwDefaultError({
|
|
4083
|
-
output,
|
|
4084
|
-
parsedBody,
|
|
4085
|
-
errorCode
|
|
4086
|
-
});
|
|
4087
|
-
}
|
|
4088
|
-
}, "de_ListTrackerConsumersCommandError");
|
|
4089
2688
|
var de_ListTrackersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4090
2689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4091
|
-
return
|
|
2690
|
+
return de_CommandError(output, context);
|
|
4092
2691
|
}
|
|
4093
2692
|
const contents = (0, import_smithy_client.map)({
|
|
4094
2693
|
$metadata: deserializeMetadata(output)
|
|
@@ -4101,37 +2700,9 @@ var de_ListTrackersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4101
2700
|
Object.assign(contents, doc);
|
|
4102
2701
|
return contents;
|
|
4103
2702
|
}, "de_ListTrackersCommand");
|
|
4104
|
-
var de_ListTrackersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4105
|
-
const parsedOutput = {
|
|
4106
|
-
...output,
|
|
4107
|
-
body: await parseErrorBody(output.body, context)
|
|
4108
|
-
};
|
|
4109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4110
|
-
switch (errorCode) {
|
|
4111
|
-
case "AccessDeniedException":
|
|
4112
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4114
|
-
case "InternalServerException":
|
|
4115
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4117
|
-
case "ThrottlingException":
|
|
4118
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4120
|
-
case "ValidationException":
|
|
4121
|
-
case "com.amazonaws.location#ValidationException":
|
|
4122
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4123
|
-
default:
|
|
4124
|
-
const parsedBody = parsedOutput.body;
|
|
4125
|
-
return throwDefaultError({
|
|
4126
|
-
output,
|
|
4127
|
-
parsedBody,
|
|
4128
|
-
errorCode
|
|
4129
|
-
});
|
|
4130
|
-
}
|
|
4131
|
-
}, "de_ListTrackersCommandError");
|
|
4132
2703
|
var de_PutGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4133
2704
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4134
|
-
return
|
|
2705
|
+
return de_CommandError(output, context);
|
|
4135
2706
|
}
|
|
4136
2707
|
const contents = (0, import_smithy_client.map)({
|
|
4137
2708
|
$metadata: deserializeMetadata(output)
|
|
@@ -4145,43 +2716,9 @@ var de_PutGeofenceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4145
2716
|
Object.assign(contents, doc);
|
|
4146
2717
|
return contents;
|
|
4147
2718
|
}, "de_PutGeofenceCommand");
|
|
4148
|
-
var de_PutGeofenceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4149
|
-
const parsedOutput = {
|
|
4150
|
-
...output,
|
|
4151
|
-
body: await parseErrorBody(output.body, context)
|
|
4152
|
-
};
|
|
4153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4154
|
-
switch (errorCode) {
|
|
4155
|
-
case "AccessDeniedException":
|
|
4156
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4157
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ConflictException":
|
|
4159
|
-
case "com.amazonaws.location#ConflictException":
|
|
4160
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4161
|
-
case "InternalServerException":
|
|
4162
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4163
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4164
|
-
case "ResourceNotFoundException":
|
|
4165
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4167
|
-
case "ThrottlingException":
|
|
4168
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4169
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4170
|
-
case "ValidationException":
|
|
4171
|
-
case "com.amazonaws.location#ValidationException":
|
|
4172
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4173
|
-
default:
|
|
4174
|
-
const parsedBody = parsedOutput.body;
|
|
4175
|
-
return throwDefaultError({
|
|
4176
|
-
output,
|
|
4177
|
-
parsedBody,
|
|
4178
|
-
errorCode
|
|
4179
|
-
});
|
|
4180
|
-
}
|
|
4181
|
-
}, "de_PutGeofenceCommandError");
|
|
4182
2719
|
var de_SearchPlaceIndexForPositionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4183
2720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4184
|
-
return
|
|
2721
|
+
return de_CommandError(output, context);
|
|
4185
2722
|
}
|
|
4186
2723
|
const contents = (0, import_smithy_client.map)({
|
|
4187
2724
|
$metadata: deserializeMetadata(output)
|
|
@@ -4189,91 +2726,29 @@ var de_SearchPlaceIndexForPositionCommand = /* @__PURE__ */ __name(async (output
|
|
|
4189
2726
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4190
2727
|
const doc = (0, import_smithy_client.take)(data, {
|
|
4191
2728
|
Results: (_) => de_SearchForPositionResultList(_, context),
|
|
4192
|
-
Summary: (_) => de_SearchPlaceIndexForPositionSummary(_, context)
|
|
4193
|
-
});
|
|
4194
|
-
Object.assign(contents, doc);
|
|
4195
|
-
return contents;
|
|
4196
|
-
}, "de_SearchPlaceIndexForPositionCommand");
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
body: await parseErrorBody(output.body, context)
|
|
4201
|
-
};
|
|
4202
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4203
|
-
switch (errorCode) {
|
|
4204
|
-
case "AccessDeniedException":
|
|
4205
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4206
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4207
|
-
case "InternalServerException":
|
|
4208
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4210
|
-
case "ResourceNotFoundException":
|
|
4211
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4213
|
-
case "ThrottlingException":
|
|
4214
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4215
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4216
|
-
case "ValidationException":
|
|
4217
|
-
case "com.amazonaws.location#ValidationException":
|
|
4218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4219
|
-
default:
|
|
4220
|
-
const parsedBody = parsedOutput.body;
|
|
4221
|
-
return throwDefaultError({
|
|
4222
|
-
output,
|
|
4223
|
-
parsedBody,
|
|
4224
|
-
errorCode
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4227
|
-
}, "de_SearchPlaceIndexForPositionCommandError");
|
|
4228
|
-
var de_SearchPlaceIndexForSuggestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4229
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4230
|
-
return de_SearchPlaceIndexForSuggestionsCommandError(output, context);
|
|
4231
|
-
}
|
|
4232
|
-
const contents = (0, import_smithy_client.map)({
|
|
4233
|
-
$metadata: deserializeMetadata(output)
|
|
4234
|
-
});
|
|
4235
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4236
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
4237
|
-
Results: import_smithy_client._json,
|
|
4238
|
-
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context)
|
|
4239
|
-
});
|
|
4240
|
-
Object.assign(contents, doc);
|
|
4241
|
-
return contents;
|
|
4242
|
-
}, "de_SearchPlaceIndexForSuggestionsCommand");
|
|
4243
|
-
var de_SearchPlaceIndexForSuggestionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4244
|
-
const parsedOutput = {
|
|
4245
|
-
...output,
|
|
4246
|
-
body: await parseErrorBody(output.body, context)
|
|
4247
|
-
};
|
|
4248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4249
|
-
switch (errorCode) {
|
|
4250
|
-
case "AccessDeniedException":
|
|
4251
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4253
|
-
case "InternalServerException":
|
|
4254
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4256
|
-
case "ResourceNotFoundException":
|
|
4257
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4258
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "ThrottlingException":
|
|
4260
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4261
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "ValidationException":
|
|
4263
|
-
case "com.amazonaws.location#ValidationException":
|
|
4264
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4265
|
-
default:
|
|
4266
|
-
const parsedBody = parsedOutput.body;
|
|
4267
|
-
return throwDefaultError({
|
|
4268
|
-
output,
|
|
4269
|
-
parsedBody,
|
|
4270
|
-
errorCode
|
|
4271
|
-
});
|
|
2729
|
+
Summary: (_) => de_SearchPlaceIndexForPositionSummary(_, context)
|
|
2730
|
+
});
|
|
2731
|
+
Object.assign(contents, doc);
|
|
2732
|
+
return contents;
|
|
2733
|
+
}, "de_SearchPlaceIndexForPositionCommand");
|
|
2734
|
+
var de_SearchPlaceIndexForSuggestionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2736
|
+
return de_CommandError(output, context);
|
|
4272
2737
|
}
|
|
4273
|
-
|
|
2738
|
+
const contents = (0, import_smithy_client.map)({
|
|
2739
|
+
$metadata: deserializeMetadata(output)
|
|
2740
|
+
});
|
|
2741
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2742
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2743
|
+
Results: import_smithy_client._json,
|
|
2744
|
+
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context)
|
|
2745
|
+
});
|
|
2746
|
+
Object.assign(contents, doc);
|
|
2747
|
+
return contents;
|
|
2748
|
+
}, "de_SearchPlaceIndexForSuggestionsCommand");
|
|
4274
2749
|
var de_SearchPlaceIndexForTextCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4275
2750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4276
|
-
return
|
|
2751
|
+
return de_CommandError(output, context);
|
|
4277
2752
|
}
|
|
4278
2753
|
const contents = (0, import_smithy_client.map)({
|
|
4279
2754
|
$metadata: deserializeMetadata(output)
|
|
@@ -4286,40 +2761,9 @@ var de_SearchPlaceIndexForTextCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4286
2761
|
Object.assign(contents, doc);
|
|
4287
2762
|
return contents;
|
|
4288
2763
|
}, "de_SearchPlaceIndexForTextCommand");
|
|
4289
|
-
var de_SearchPlaceIndexForTextCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4290
|
-
const parsedOutput = {
|
|
4291
|
-
...output,
|
|
4292
|
-
body: await parseErrorBody(output.body, context)
|
|
4293
|
-
};
|
|
4294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4295
|
-
switch (errorCode) {
|
|
4296
|
-
case "AccessDeniedException":
|
|
4297
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4299
|
-
case "InternalServerException":
|
|
4300
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4301
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4302
|
-
case "ResourceNotFoundException":
|
|
4303
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4305
|
-
case "ThrottlingException":
|
|
4306
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4308
|
-
case "ValidationException":
|
|
4309
|
-
case "com.amazonaws.location#ValidationException":
|
|
4310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4311
|
-
default:
|
|
4312
|
-
const parsedBody = parsedOutput.body;
|
|
4313
|
-
return throwDefaultError({
|
|
4314
|
-
output,
|
|
4315
|
-
parsedBody,
|
|
4316
|
-
errorCode
|
|
4317
|
-
});
|
|
4318
|
-
}
|
|
4319
|
-
}, "de_SearchPlaceIndexForTextCommandError");
|
|
4320
2764
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4321
2765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4322
|
-
return
|
|
2766
|
+
return de_CommandError(output, context);
|
|
4323
2767
|
}
|
|
4324
2768
|
const contents = (0, import_smithy_client.map)({
|
|
4325
2769
|
$metadata: deserializeMetadata(output)
|
|
@@ -4327,40 +2771,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4327
2771
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4328
2772
|
return contents;
|
|
4329
2773
|
}, "de_TagResourceCommand");
|
|
4330
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4331
|
-
const parsedOutput = {
|
|
4332
|
-
...output,
|
|
4333
|
-
body: await parseErrorBody(output.body, context)
|
|
4334
|
-
};
|
|
4335
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4336
|
-
switch (errorCode) {
|
|
4337
|
-
case "AccessDeniedException":
|
|
4338
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4339
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4340
|
-
case "InternalServerException":
|
|
4341
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4342
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4343
|
-
case "ResourceNotFoundException":
|
|
4344
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4345
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4346
|
-
case "ThrottlingException":
|
|
4347
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4348
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4349
|
-
case "ValidationException":
|
|
4350
|
-
case "com.amazonaws.location#ValidationException":
|
|
4351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4352
|
-
default:
|
|
4353
|
-
const parsedBody = parsedOutput.body;
|
|
4354
|
-
return throwDefaultError({
|
|
4355
|
-
output,
|
|
4356
|
-
parsedBody,
|
|
4357
|
-
errorCode
|
|
4358
|
-
});
|
|
4359
|
-
}
|
|
4360
|
-
}, "de_TagResourceCommandError");
|
|
4361
2774
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4362
2775
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4363
|
-
return
|
|
2776
|
+
return de_CommandError(output, context);
|
|
4364
2777
|
}
|
|
4365
2778
|
const contents = (0, import_smithy_client.map)({
|
|
4366
2779
|
$metadata: deserializeMetadata(output)
|
|
@@ -4368,40 +2781,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4368
2781
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4369
2782
|
return contents;
|
|
4370
2783
|
}, "de_UntagResourceCommand");
|
|
4371
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4372
|
-
const parsedOutput = {
|
|
4373
|
-
...output,
|
|
4374
|
-
body: await parseErrorBody(output.body, context)
|
|
4375
|
-
};
|
|
4376
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4377
|
-
switch (errorCode) {
|
|
4378
|
-
case "AccessDeniedException":
|
|
4379
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4380
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4381
|
-
case "InternalServerException":
|
|
4382
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4383
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4384
|
-
case "ResourceNotFoundException":
|
|
4385
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4386
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4387
|
-
case "ThrottlingException":
|
|
4388
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4389
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4390
|
-
case "ValidationException":
|
|
4391
|
-
case "com.amazonaws.location#ValidationException":
|
|
4392
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4393
|
-
default:
|
|
4394
|
-
const parsedBody = parsedOutput.body;
|
|
4395
|
-
return throwDefaultError({
|
|
4396
|
-
output,
|
|
4397
|
-
parsedBody,
|
|
4398
|
-
errorCode
|
|
4399
|
-
});
|
|
4400
|
-
}
|
|
4401
|
-
}, "de_UntagResourceCommandError");
|
|
4402
2784
|
var de_UpdateGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4403
2785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4404
|
-
return
|
|
2786
|
+
return de_CommandError(output, context);
|
|
4405
2787
|
}
|
|
4406
2788
|
const contents = (0, import_smithy_client.map)({
|
|
4407
2789
|
$metadata: deserializeMetadata(output)
|
|
@@ -4415,40 +2797,9 @@ var de_UpdateGeofenceCollectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4415
2797
|
Object.assign(contents, doc);
|
|
4416
2798
|
return contents;
|
|
4417
2799
|
}, "de_UpdateGeofenceCollectionCommand");
|
|
4418
|
-
var de_UpdateGeofenceCollectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4419
|
-
const parsedOutput = {
|
|
4420
|
-
...output,
|
|
4421
|
-
body: await parseErrorBody(output.body, context)
|
|
4422
|
-
};
|
|
4423
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4424
|
-
switch (errorCode) {
|
|
4425
|
-
case "AccessDeniedException":
|
|
4426
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4427
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4428
|
-
case "InternalServerException":
|
|
4429
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4431
|
-
case "ResourceNotFoundException":
|
|
4432
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4434
|
-
case "ThrottlingException":
|
|
4435
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4436
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4437
|
-
case "ValidationException":
|
|
4438
|
-
case "com.amazonaws.location#ValidationException":
|
|
4439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4440
|
-
default:
|
|
4441
|
-
const parsedBody = parsedOutput.body;
|
|
4442
|
-
return throwDefaultError({
|
|
4443
|
-
output,
|
|
4444
|
-
parsedBody,
|
|
4445
|
-
errorCode
|
|
4446
|
-
});
|
|
4447
|
-
}
|
|
4448
|
-
}, "de_UpdateGeofenceCollectionCommandError");
|
|
4449
2800
|
var de_UpdateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4450
2801
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4451
|
-
return
|
|
2802
|
+
return de_CommandError(output, context);
|
|
4452
2803
|
}
|
|
4453
2804
|
const contents = (0, import_smithy_client.map)({
|
|
4454
2805
|
$metadata: deserializeMetadata(output)
|
|
@@ -4462,40 +2813,9 @@ var de_UpdateKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4462
2813
|
Object.assign(contents, doc);
|
|
4463
2814
|
return contents;
|
|
4464
2815
|
}, "de_UpdateKeyCommand");
|
|
4465
|
-
var de_UpdateKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4466
|
-
const parsedOutput = {
|
|
4467
|
-
...output,
|
|
4468
|
-
body: await parseErrorBody(output.body, context)
|
|
4469
|
-
};
|
|
4470
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4471
|
-
switch (errorCode) {
|
|
4472
|
-
case "AccessDeniedException":
|
|
4473
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4474
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4475
|
-
case "InternalServerException":
|
|
4476
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4478
|
-
case "ResourceNotFoundException":
|
|
4479
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "ThrottlingException":
|
|
4482
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ValidationException":
|
|
4485
|
-
case "com.amazonaws.location#ValidationException":
|
|
4486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4487
|
-
default:
|
|
4488
|
-
const parsedBody = parsedOutput.body;
|
|
4489
|
-
return throwDefaultError({
|
|
4490
|
-
output,
|
|
4491
|
-
parsedBody,
|
|
4492
|
-
errorCode
|
|
4493
|
-
});
|
|
4494
|
-
}
|
|
4495
|
-
}, "de_UpdateKeyCommandError");
|
|
4496
2816
|
var de_UpdateMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4497
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4498
|
-
return
|
|
2818
|
+
return de_CommandError(output, context);
|
|
4499
2819
|
}
|
|
4500
2820
|
const contents = (0, import_smithy_client.map)({
|
|
4501
2821
|
$metadata: deserializeMetadata(output)
|
|
@@ -4509,40 +2829,9 @@ var de_UpdateMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4509
2829
|
Object.assign(contents, doc);
|
|
4510
2830
|
return contents;
|
|
4511
2831
|
}, "de_UpdateMapCommand");
|
|
4512
|
-
var de_UpdateMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4513
|
-
const parsedOutput = {
|
|
4514
|
-
...output,
|
|
4515
|
-
body: await parseErrorBody(output.body, context)
|
|
4516
|
-
};
|
|
4517
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4518
|
-
switch (errorCode) {
|
|
4519
|
-
case "AccessDeniedException":
|
|
4520
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4521
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4522
|
-
case "InternalServerException":
|
|
4523
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4524
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4525
|
-
case "ResourceNotFoundException":
|
|
4526
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4527
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4528
|
-
case "ThrottlingException":
|
|
4529
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4530
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4531
|
-
case "ValidationException":
|
|
4532
|
-
case "com.amazonaws.location#ValidationException":
|
|
4533
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4534
|
-
default:
|
|
4535
|
-
const parsedBody = parsedOutput.body;
|
|
4536
|
-
return throwDefaultError({
|
|
4537
|
-
output,
|
|
4538
|
-
parsedBody,
|
|
4539
|
-
errorCode
|
|
4540
|
-
});
|
|
4541
|
-
}
|
|
4542
|
-
}, "de_UpdateMapCommandError");
|
|
4543
2832
|
var de_UpdatePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4544
2833
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4545
|
-
return
|
|
2834
|
+
return de_CommandError(output, context);
|
|
4546
2835
|
}
|
|
4547
2836
|
const contents = (0, import_smithy_client.map)({
|
|
4548
2837
|
$metadata: deserializeMetadata(output)
|
|
@@ -4556,40 +2845,9 @@ var de_UpdatePlaceIndexCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4556
2845
|
Object.assign(contents, doc);
|
|
4557
2846
|
return contents;
|
|
4558
2847
|
}, "de_UpdatePlaceIndexCommand");
|
|
4559
|
-
var de_UpdatePlaceIndexCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4560
|
-
const parsedOutput = {
|
|
4561
|
-
...output,
|
|
4562
|
-
body: await parseErrorBody(output.body, context)
|
|
4563
|
-
};
|
|
4564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4565
|
-
switch (errorCode) {
|
|
4566
|
-
case "AccessDeniedException":
|
|
4567
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4569
|
-
case "InternalServerException":
|
|
4570
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4571
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4572
|
-
case "ResourceNotFoundException":
|
|
4573
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4574
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4575
|
-
case "ThrottlingException":
|
|
4576
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4577
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4578
|
-
case "ValidationException":
|
|
4579
|
-
case "com.amazonaws.location#ValidationException":
|
|
4580
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4581
|
-
default:
|
|
4582
|
-
const parsedBody = parsedOutput.body;
|
|
4583
|
-
return throwDefaultError({
|
|
4584
|
-
output,
|
|
4585
|
-
parsedBody,
|
|
4586
|
-
errorCode
|
|
4587
|
-
});
|
|
4588
|
-
}
|
|
4589
|
-
}, "de_UpdatePlaceIndexCommandError");
|
|
4590
2848
|
var de_UpdateRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4591
2849
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4592
|
-
return
|
|
2850
|
+
return de_CommandError(output, context);
|
|
4593
2851
|
}
|
|
4594
2852
|
const contents = (0, import_smithy_client.map)({
|
|
4595
2853
|
$metadata: deserializeMetadata(output)
|
|
@@ -4603,40 +2861,9 @@ var de_UpdateRouteCalculatorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4603
2861
|
Object.assign(contents, doc);
|
|
4604
2862
|
return contents;
|
|
4605
2863
|
}, "de_UpdateRouteCalculatorCommand");
|
|
4606
|
-
var de_UpdateRouteCalculatorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4607
|
-
const parsedOutput = {
|
|
4608
|
-
...output,
|
|
4609
|
-
body: await parseErrorBody(output.body, context)
|
|
4610
|
-
};
|
|
4611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4612
|
-
switch (errorCode) {
|
|
4613
|
-
case "AccessDeniedException":
|
|
4614
|
-
case "com.amazonaws.location#AccessDeniedException":
|
|
4615
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4616
|
-
case "InternalServerException":
|
|
4617
|
-
case "com.amazonaws.location#InternalServerException":
|
|
4618
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4619
|
-
case "ResourceNotFoundException":
|
|
4620
|
-
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4621
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4622
|
-
case "ThrottlingException":
|
|
4623
|
-
case "com.amazonaws.location#ThrottlingException":
|
|
4624
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4625
|
-
case "ValidationException":
|
|
4626
|
-
case "com.amazonaws.location#ValidationException":
|
|
4627
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4628
|
-
default:
|
|
4629
|
-
const parsedBody = parsedOutput.body;
|
|
4630
|
-
return throwDefaultError({
|
|
4631
|
-
output,
|
|
4632
|
-
parsedBody,
|
|
4633
|
-
errorCode
|
|
4634
|
-
});
|
|
4635
|
-
}
|
|
4636
|
-
}, "de_UpdateRouteCalculatorCommandError");
|
|
4637
2864
|
var de_UpdateTrackerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4638
2865
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4639
|
-
return
|
|
2866
|
+
return de_CommandError(output, context);
|
|
4640
2867
|
}
|
|
4641
2868
|
const contents = (0, import_smithy_client.map)({
|
|
4642
2869
|
$metadata: deserializeMetadata(output)
|
|
@@ -4650,7 +2877,7 @@ var de_UpdateTrackerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4650
2877
|
Object.assign(contents, doc);
|
|
4651
2878
|
return contents;
|
|
4652
2879
|
}, "de_UpdateTrackerCommand");
|
|
4653
|
-
var
|
|
2880
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4654
2881
|
const parsedOutput = {
|
|
4655
2882
|
...output,
|
|
4656
2883
|
body: await parseErrorBody(output.body, context)
|
|
@@ -4660,12 +2887,18 @@ var de_UpdateTrackerCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4660
2887
|
case "AccessDeniedException":
|
|
4661
2888
|
case "com.amazonaws.location#AccessDeniedException":
|
|
4662
2889
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2890
|
+
case "ConflictException":
|
|
2891
|
+
case "com.amazonaws.location#ConflictException":
|
|
2892
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4663
2893
|
case "InternalServerException":
|
|
4664
2894
|
case "com.amazonaws.location#InternalServerException":
|
|
4665
2895
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4666
2896
|
case "ResourceNotFoundException":
|
|
4667
2897
|
case "com.amazonaws.location#ResourceNotFoundException":
|
|
4668
2898
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2899
|
+
case "ServiceQuotaExceededException":
|
|
2900
|
+
case "com.amazonaws.location#ServiceQuotaExceededException":
|
|
2901
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4669
2902
|
case "ThrottlingException":
|
|
4670
2903
|
case "com.amazonaws.location#ThrottlingException":
|
|
4671
2904
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4680,7 +2913,7 @@ var de_UpdateTrackerCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4680
2913
|
errorCode
|
|
4681
2914
|
});
|
|
4682
2915
|
}
|
|
4683
|
-
}, "
|
|
2916
|
+
}, "de_CommandError");
|
|
4684
2917
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(LocationServiceException);
|
|
4685
2918
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4686
2919
|
const contents = (0, import_smithy_client.map)({});
|