@aws-sdk/client-location 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +443 -542
- package/dist-es/protocols/Aws_restJson1.js +372 -471
- package/package.json +26 -26
|
@@ -26,7 +26,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.ConsumerArn
|
|
29
|
+
...(input.ConsumerArn != null && { ConsumerArn: input.ConsumerArn }),
|
|
30
30
|
});
|
|
31
31
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
32
32
|
if (context.disableHostPrefix !== true) {
|
|
@@ -65,8 +65,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
|
|
|
65
65
|
}
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify({
|
|
68
|
-
...(input.DeviceIds
|
|
69
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) }),
|
|
68
|
+
...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) }),
|
|
70
69
|
});
|
|
71
70
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
72
71
|
if (context.disableHostPrefix !== true) {
|
|
@@ -105,8 +104,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
|
|
|
105
104
|
}
|
|
106
105
|
let body;
|
|
107
106
|
body = JSON.stringify({
|
|
108
|
-
...(input.GeofenceIds
|
|
109
|
-
input.GeofenceIds !== null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) }),
|
|
107
|
+
...(input.GeofenceIds != null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) }),
|
|
110
108
|
});
|
|
111
109
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
112
110
|
if (context.disableHostPrefix !== true) {
|
|
@@ -145,8 +143,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
|
|
|
145
143
|
}
|
|
146
144
|
let body;
|
|
147
145
|
body = JSON.stringify({
|
|
148
|
-
...(input.DevicePositionUpdates
|
|
149
|
-
input.DevicePositionUpdates !== null && {
|
|
146
|
+
...(input.DevicePositionUpdates != null && {
|
|
150
147
|
DevicePositionUpdates: serializeAws_restJson1DevicePositionUpdateList(input.DevicePositionUpdates, context),
|
|
151
148
|
}),
|
|
152
149
|
});
|
|
@@ -187,8 +184,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
|
|
|
187
184
|
}
|
|
188
185
|
let body;
|
|
189
186
|
body = JSON.stringify({
|
|
190
|
-
...(input.DeviceIds
|
|
191
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) }),
|
|
187
|
+
...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) }),
|
|
192
188
|
});
|
|
193
189
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
194
190
|
if (context.disableHostPrefix !== true) {
|
|
@@ -227,8 +223,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
|
|
|
227
223
|
}
|
|
228
224
|
let body;
|
|
229
225
|
body = JSON.stringify({
|
|
230
|
-
...(input.Entries
|
|
231
|
-
input.Entries !== null && {
|
|
226
|
+
...(input.Entries != null && {
|
|
232
227
|
Entries: serializeAws_restJson1BatchPutGeofenceRequestEntryList(input.Entries, context),
|
|
233
228
|
}),
|
|
234
229
|
});
|
|
@@ -269,8 +264,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
|
|
|
269
264
|
}
|
|
270
265
|
let body;
|
|
271
266
|
body = JSON.stringify({
|
|
272
|
-
...(input.Updates
|
|
273
|
-
input.Updates !== null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) }),
|
|
267
|
+
...(input.Updates != null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) }),
|
|
274
268
|
});
|
|
275
269
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
276
270
|
if (context.disableHostPrefix !== true) {
|
|
@@ -309,31 +303,24 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
|
|
|
309
303
|
}
|
|
310
304
|
let body;
|
|
311
305
|
body = JSON.stringify({
|
|
312
|
-
...(input.CarModeOptions
|
|
313
|
-
input.CarModeOptions !== null && {
|
|
306
|
+
...(input.CarModeOptions != null && {
|
|
314
307
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
315
308
|
}),
|
|
316
|
-
...(input.DepartNow
|
|
317
|
-
...(input.DeparturePosition
|
|
318
|
-
input.DeparturePosition !== null && {
|
|
309
|
+
...(input.DepartNow != null && { DepartNow: input.DepartNow }),
|
|
310
|
+
...(input.DeparturePosition != null && {
|
|
319
311
|
DeparturePosition: serializeAws_restJson1Position(input.DeparturePosition, context),
|
|
320
312
|
}),
|
|
321
|
-
...(input.DepartureTime
|
|
322
|
-
|
|
323
|
-
...(input.DestinationPosition !== undefined &&
|
|
324
|
-
input.DestinationPosition !== null && {
|
|
313
|
+
...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
|
|
314
|
+
...(input.DestinationPosition != null && {
|
|
325
315
|
DestinationPosition: serializeAws_restJson1Position(input.DestinationPosition, context),
|
|
326
316
|
}),
|
|
327
|
-
...(input.DistanceUnit
|
|
328
|
-
...(input.IncludeLegGeometry
|
|
329
|
-
|
|
330
|
-
...(input.
|
|
331
|
-
...(input.TruckModeOptions !== undefined &&
|
|
332
|
-
input.TruckModeOptions !== null && {
|
|
317
|
+
...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
|
|
318
|
+
...(input.IncludeLegGeometry != null && { IncludeLegGeometry: input.IncludeLegGeometry }),
|
|
319
|
+
...(input.TravelMode != null && { TravelMode: input.TravelMode }),
|
|
320
|
+
...(input.TruckModeOptions != null && {
|
|
333
321
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
334
322
|
}),
|
|
335
|
-
...(input.WaypointPositions
|
|
336
|
-
input.WaypointPositions !== null && {
|
|
323
|
+
...(input.WaypointPositions != null && {
|
|
337
324
|
WaypointPositions: serializeAws_restJson1WaypointPositionList(input.WaypointPositions, context),
|
|
338
325
|
}),
|
|
339
326
|
});
|
|
@@ -374,25 +361,20 @@ const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context)
|
|
|
374
361
|
}
|
|
375
362
|
let body;
|
|
376
363
|
body = JSON.stringify({
|
|
377
|
-
...(input.CarModeOptions
|
|
378
|
-
input.CarModeOptions !== null && {
|
|
364
|
+
...(input.CarModeOptions != null && {
|
|
379
365
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
380
366
|
}),
|
|
381
|
-
...(input.DepartNow
|
|
382
|
-
...(input.DeparturePositions
|
|
383
|
-
input.DeparturePositions !== null && {
|
|
367
|
+
...(input.DepartNow != null && { DepartNow: input.DepartNow }),
|
|
368
|
+
...(input.DeparturePositions != null && {
|
|
384
369
|
DeparturePositions: serializeAws_restJson1PositionList(input.DeparturePositions, context),
|
|
385
370
|
}),
|
|
386
|
-
...(input.DepartureTime
|
|
387
|
-
|
|
388
|
-
...(input.DestinationPositions !== undefined &&
|
|
389
|
-
input.DestinationPositions !== null && {
|
|
371
|
+
...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
|
|
372
|
+
...(input.DestinationPositions != null && {
|
|
390
373
|
DestinationPositions: serializeAws_restJson1PositionList(input.DestinationPositions, context),
|
|
391
374
|
}),
|
|
392
|
-
...(input.DistanceUnit
|
|
393
|
-
...(input.TravelMode
|
|
394
|
-
...(input.TruckModeOptions
|
|
395
|
-
input.TruckModeOptions !== null && {
|
|
375
|
+
...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
|
|
376
|
+
...(input.TravelMode != null && { TravelMode: input.TravelMode }),
|
|
377
|
+
...(input.TruckModeOptions != null && {
|
|
396
378
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
397
379
|
}),
|
|
398
380
|
});
|
|
@@ -422,14 +404,12 @@ const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, cont
|
|
|
422
404
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/collections";
|
|
423
405
|
let body;
|
|
424
406
|
body = JSON.stringify({
|
|
425
|
-
...(input.CollectionName
|
|
426
|
-
|
|
427
|
-
...(input.
|
|
428
|
-
...(input.
|
|
429
|
-
...(input.
|
|
430
|
-
...(input.
|
|
431
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
432
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
407
|
+
...(input.CollectionName != null && { CollectionName: input.CollectionName }),
|
|
408
|
+
...(input.Description != null && { Description: input.Description }),
|
|
409
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
410
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
411
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
412
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
433
413
|
});
|
|
434
414
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
435
415
|
if (context.disableHostPrefix !== true) {
|
|
@@ -457,14 +437,13 @@ const serializeAws_restJson1CreateMapCommand = async (input, context) => {
|
|
|
457
437
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps";
|
|
458
438
|
let body;
|
|
459
439
|
body = JSON.stringify({
|
|
460
|
-
...(input.Configuration
|
|
461
|
-
input.Configuration !== null && {
|
|
440
|
+
...(input.Configuration != null && {
|
|
462
441
|
Configuration: serializeAws_restJson1MapConfiguration(input.Configuration, context),
|
|
463
442
|
}),
|
|
464
|
-
...(input.Description
|
|
465
|
-
...(input.MapName
|
|
466
|
-
...(input.PricingPlan
|
|
467
|
-
...(input.Tags
|
|
443
|
+
...(input.Description != null && { Description: input.Description }),
|
|
444
|
+
...(input.MapName != null && { MapName: input.MapName }),
|
|
445
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
446
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
468
447
|
});
|
|
469
448
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
470
449
|
if (context.disableHostPrefix !== true) {
|
|
@@ -492,15 +471,14 @@ const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) =>
|
|
|
492
471
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes";
|
|
493
472
|
let body;
|
|
494
473
|
body = JSON.stringify({
|
|
495
|
-
...(input.DataSource
|
|
496
|
-
...(input.DataSourceConfiguration
|
|
497
|
-
input.DataSourceConfiguration !== null && {
|
|
474
|
+
...(input.DataSource != null && { DataSource: input.DataSource }),
|
|
475
|
+
...(input.DataSourceConfiguration != null && {
|
|
498
476
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
499
477
|
}),
|
|
500
|
-
...(input.Description
|
|
501
|
-
...(input.IndexName
|
|
502
|
-
...(input.PricingPlan
|
|
503
|
-
...(input.Tags
|
|
478
|
+
...(input.Description != null && { Description: input.Description }),
|
|
479
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
480
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
481
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
504
482
|
});
|
|
505
483
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
506
484
|
if (context.disableHostPrefix !== true) {
|
|
@@ -528,12 +506,11 @@ const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context
|
|
|
528
506
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators";
|
|
529
507
|
let body;
|
|
530
508
|
body = JSON.stringify({
|
|
531
|
-
...(input.CalculatorName
|
|
532
|
-
|
|
533
|
-
...(input.
|
|
534
|
-
...(input.
|
|
535
|
-
...(input.
|
|
536
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
509
|
+
...(input.CalculatorName != null && { CalculatorName: input.CalculatorName }),
|
|
510
|
+
...(input.DataSource != null && { DataSource: input.DataSource }),
|
|
511
|
+
...(input.Description != null && { Description: input.Description }),
|
|
512
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
513
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
537
514
|
});
|
|
538
515
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
539
516
|
if (context.disableHostPrefix !== true) {
|
|
@@ -561,15 +538,13 @@ const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
|
|
|
561
538
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers";
|
|
562
539
|
let body;
|
|
563
540
|
body = JSON.stringify({
|
|
564
|
-
...(input.Description
|
|
565
|
-
...(input.KmsKeyId
|
|
566
|
-
...(input.PositionFiltering
|
|
567
|
-
|
|
568
|
-
...(input.
|
|
569
|
-
...(input.
|
|
570
|
-
|
|
571
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
572
|
-
...(input.TrackerName !== undefined && input.TrackerName !== null && { TrackerName: input.TrackerName }),
|
|
541
|
+
...(input.Description != null && { Description: input.Description }),
|
|
542
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
543
|
+
...(input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering }),
|
|
544
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
545
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
546
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
547
|
+
...(input.TrackerName != null && { TrackerName: input.TrackerName }),
|
|
573
548
|
});
|
|
574
549
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
575
550
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1038,14 +1013,12 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
1038
1013
|
}
|
|
1039
1014
|
let body;
|
|
1040
1015
|
body = JSON.stringify({
|
|
1041
|
-
...(input.EndTimeExclusive
|
|
1042
|
-
input.EndTimeExclusive !== null && {
|
|
1016
|
+
...(input.EndTimeExclusive != null && {
|
|
1043
1017
|
EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
|
|
1044
1018
|
}),
|
|
1045
|
-
...(input.MaxResults
|
|
1046
|
-
...(input.NextToken
|
|
1047
|
-
...(input.StartTimeInclusive
|
|
1048
|
-
input.StartTimeInclusive !== null && {
|
|
1019
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1020
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1021
|
+
...(input.StartTimeInclusive != null && {
|
|
1049
1022
|
StartTimeInclusive: input.StartTimeInclusive.toISOString().split(".")[0] + "Z",
|
|
1050
1023
|
}),
|
|
1051
1024
|
});
|
|
@@ -1324,8 +1297,8 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
|
|
|
1324
1297
|
}
|
|
1325
1298
|
let body;
|
|
1326
1299
|
body = JSON.stringify({
|
|
1327
|
-
...(input.MaxResults
|
|
1328
|
-
...(input.NextToken
|
|
1300
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1301
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1329
1302
|
});
|
|
1330
1303
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1331
1304
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1353,8 +1326,8 @@ const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, conte
|
|
|
1353
1326
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/list-collections";
|
|
1354
1327
|
let body;
|
|
1355
1328
|
body = JSON.stringify({
|
|
1356
|
-
...(input.MaxResults
|
|
1357
|
-
...(input.NextToken
|
|
1329
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1330
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1358
1331
|
});
|
|
1359
1332
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1360
1333
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1393,8 +1366,8 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
|
|
|
1393
1366
|
}
|
|
1394
1367
|
let body;
|
|
1395
1368
|
body = JSON.stringify({
|
|
1396
|
-
...(input.MaxResults
|
|
1397
|
-
...(input.NextToken
|
|
1369
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1370
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1398
1371
|
});
|
|
1399
1372
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1400
1373
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1422,8 +1395,8 @@ const serializeAws_restJson1ListMapsCommand = async (input, context) => {
|
|
|
1422
1395
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/list-maps";
|
|
1423
1396
|
let body;
|
|
1424
1397
|
body = JSON.stringify({
|
|
1425
|
-
...(input.MaxResults
|
|
1426
|
-
...(input.NextToken
|
|
1398
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1399
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1427
1400
|
});
|
|
1428
1401
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1429
1402
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1451,8 +1424,8 @@ const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) =>
|
|
|
1451
1424
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/list-indexes";
|
|
1452
1425
|
let body;
|
|
1453
1426
|
body = JSON.stringify({
|
|
1454
|
-
...(input.MaxResults
|
|
1455
|
-
...(input.NextToken
|
|
1427
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1428
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1456
1429
|
});
|
|
1457
1430
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1458
1431
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1480,8 +1453,8 @@ const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context)
|
|
|
1480
1453
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/list-calculators";
|
|
1481
1454
|
let body;
|
|
1482
1455
|
body = JSON.stringify({
|
|
1483
|
-
...(input.MaxResults
|
|
1484
|
-
...(input.NextToken
|
|
1456
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1457
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1485
1458
|
});
|
|
1486
1459
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1487
1460
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1553,8 +1526,8 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
|
|
|
1553
1526
|
}
|
|
1554
1527
|
let body;
|
|
1555
1528
|
body = JSON.stringify({
|
|
1556
|
-
...(input.MaxResults
|
|
1557
|
-
...(input.NextToken
|
|
1529
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1530
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1558
1531
|
});
|
|
1559
1532
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1560
1533
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1582,8 +1555,8 @@ const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
|
|
|
1582
1555
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/list-trackers";
|
|
1583
1556
|
let body;
|
|
1584
1557
|
body = JSON.stringify({
|
|
1585
|
-
...(input.MaxResults
|
|
1586
|
-
...(input.NextToken
|
|
1558
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1559
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1587
1560
|
});
|
|
1588
1561
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1589
1562
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1632,8 +1605,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1632
1605
|
}
|
|
1633
1606
|
let body;
|
|
1634
1607
|
body = JSON.stringify({
|
|
1635
|
-
...(input.Geometry
|
|
1636
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
1608
|
+
...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
1637
1609
|
});
|
|
1638
1610
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1639
1611
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1672,10 +1644,9 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1672
1644
|
}
|
|
1673
1645
|
let body;
|
|
1674
1646
|
body = JSON.stringify({
|
|
1675
|
-
...(input.Language
|
|
1676
|
-
...(input.MaxResults
|
|
1677
|
-
...(input.Position
|
|
1678
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
1647
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1648
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1649
|
+
...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
1679
1650
|
});
|
|
1680
1651
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1681
1652
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1714,17 +1685,14 @@ const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input
|
|
|
1714
1685
|
}
|
|
1715
1686
|
let body;
|
|
1716
1687
|
body = JSON.stringify({
|
|
1717
|
-
...(input.BiasPosition
|
|
1718
|
-
|
|
1719
|
-
...(input.
|
|
1720
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1721
|
-
...(input.FilterCountries !== undefined &&
|
|
1722
|
-
input.FilterCountries !== null && {
|
|
1688
|
+
...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
|
|
1689
|
+
...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1690
|
+
...(input.FilterCountries != null && {
|
|
1723
1691
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1724
1692
|
}),
|
|
1725
|
-
...(input.Language
|
|
1726
|
-
...(input.MaxResults
|
|
1727
|
-
...(input.Text
|
|
1693
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1694
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1695
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1728
1696
|
});
|
|
1729
1697
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1730
1698
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1763,17 +1731,14 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1763
1731
|
}
|
|
1764
1732
|
let body;
|
|
1765
1733
|
body = JSON.stringify({
|
|
1766
|
-
...(input.BiasPosition
|
|
1767
|
-
|
|
1768
|
-
...(input.
|
|
1769
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1770
|
-
...(input.FilterCountries !== undefined &&
|
|
1771
|
-
input.FilterCountries !== null && {
|
|
1734
|
+
...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
|
|
1735
|
+
...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1736
|
+
...(input.FilterCountries != null && {
|
|
1772
1737
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1773
1738
|
}),
|
|
1774
|
-
...(input.Language
|
|
1775
|
-
...(input.MaxResults
|
|
1776
|
-
...(input.Text
|
|
1739
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1740
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1741
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1777
1742
|
});
|
|
1778
1743
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1779
1744
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1811,7 +1776,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1811
1776
|
}
|
|
1812
1777
|
let body;
|
|
1813
1778
|
body = JSON.stringify({
|
|
1814
|
-
...(input.Tags
|
|
1779
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
1815
1780
|
});
|
|
1816
1781
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1817
1782
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1887,10 +1852,9 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
|
|
|
1887
1852
|
}
|
|
1888
1853
|
let body;
|
|
1889
1854
|
body = JSON.stringify({
|
|
1890
|
-
...(input.Description
|
|
1891
|
-
...(input.PricingPlan
|
|
1892
|
-
...(input.PricingPlanDataSource
|
|
1893
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
1855
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1856
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1857
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
1894
1858
|
});
|
|
1895
1859
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1896
1860
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1928,8 +1892,8 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
|
|
|
1928
1892
|
}
|
|
1929
1893
|
let body;
|
|
1930
1894
|
body = JSON.stringify({
|
|
1931
|
-
...(input.Description
|
|
1932
|
-
...(input.PricingPlan
|
|
1895
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1896
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1933
1897
|
});
|
|
1934
1898
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1935
1899
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1967,12 +1931,11 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
|
|
|
1967
1931
|
}
|
|
1968
1932
|
let body;
|
|
1969
1933
|
body = JSON.stringify({
|
|
1970
|
-
...(input.DataSourceConfiguration
|
|
1971
|
-
input.DataSourceConfiguration !== null && {
|
|
1934
|
+
...(input.DataSourceConfiguration != null && {
|
|
1972
1935
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
1973
1936
|
}),
|
|
1974
|
-
...(input.Description
|
|
1975
|
-
...(input.PricingPlan
|
|
1937
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1938
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1976
1939
|
});
|
|
1977
1940
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1978
1941
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2010,8 +1973,8 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
|
|
|
2010
1973
|
}
|
|
2011
1974
|
let body;
|
|
2012
1975
|
body = JSON.stringify({
|
|
2013
|
-
...(input.Description
|
|
2014
|
-
...(input.PricingPlan
|
|
1976
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1977
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2015
1978
|
});
|
|
2016
1979
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2017
1980
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2049,12 +2012,10 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
|
|
|
2049
2012
|
}
|
|
2050
2013
|
let body;
|
|
2051
2014
|
body = JSON.stringify({
|
|
2052
|
-
...(input.Description
|
|
2053
|
-
...(input.PositionFiltering
|
|
2054
|
-
|
|
2055
|
-
...(input.
|
|
2056
|
-
...(input.PricingPlanDataSource !== undefined &&
|
|
2057
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
2015
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2016
|
+
...(input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering }),
|
|
2017
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2018
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
2058
2019
|
});
|
|
2059
2020
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2060
2021
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2091,8 +2052,7 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
|
|
|
2091
2052
|
body: await parseBody(output.body, context),
|
|
2092
2053
|
};
|
|
2093
2054
|
let response;
|
|
2094
|
-
|
|
2095
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
2056
|
switch (errorCode) {
|
|
2097
2057
|
case "AccessDeniedException":
|
|
2098
2058
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2117,10 +2077,12 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
|
|
|
2117
2077
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2118
2078
|
default:
|
|
2119
2079
|
const parsedBody = parsedOutput.body;
|
|
2080
|
+
const $metadata = deserializeMetadata(output);
|
|
2081
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2120
2082
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2121
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2122
2084
|
$fault: "client",
|
|
2123
|
-
$metadata
|
|
2085
|
+
$metadata,
|
|
2124
2086
|
});
|
|
2125
2087
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2126
2088
|
}
|
|
@@ -2146,8 +2108,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
|
|
|
2146
2108
|
body: await parseBody(output.body, context),
|
|
2147
2109
|
};
|
|
2148
2110
|
let response;
|
|
2149
|
-
|
|
2150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
2112
|
switch (errorCode) {
|
|
2152
2113
|
case "AccessDeniedException":
|
|
2153
2114
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2166,10 +2127,12 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
|
|
|
2166
2127
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2167
2128
|
default:
|
|
2168
2129
|
const parsedBody = parsedOutput.body;
|
|
2130
|
+
const $metadata = deserializeMetadata(output);
|
|
2131
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2169
2132
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2171
2134
|
$fault: "client",
|
|
2172
|
-
$metadata
|
|
2135
|
+
$metadata,
|
|
2173
2136
|
});
|
|
2174
2137
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2175
2138
|
}
|
|
@@ -2195,8 +2158,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
|
|
|
2195
2158
|
body: await parseBody(output.body, context),
|
|
2196
2159
|
};
|
|
2197
2160
|
let response;
|
|
2198
|
-
|
|
2199
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
2162
|
switch (errorCode) {
|
|
2201
2163
|
case "AccessDeniedException":
|
|
2202
2164
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2215,10 +2177,12 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
|
|
|
2215
2177
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2216
2178
|
default:
|
|
2217
2179
|
const parsedBody = parsedOutput.body;
|
|
2180
|
+
const $metadata = deserializeMetadata(output);
|
|
2181
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2218
2182
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2219
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2183
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2220
2184
|
$fault: "client",
|
|
2221
|
-
$metadata
|
|
2185
|
+
$metadata,
|
|
2222
2186
|
});
|
|
2223
2187
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2224
2188
|
}
|
|
@@ -2244,8 +2208,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
|
|
|
2244
2208
|
body: await parseBody(output.body, context),
|
|
2245
2209
|
};
|
|
2246
2210
|
let response;
|
|
2247
|
-
|
|
2248
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
2212
|
switch (errorCode) {
|
|
2250
2213
|
case "AccessDeniedException":
|
|
2251
2214
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2264,10 +2227,12 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
|
|
|
2264
2227
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2265
2228
|
default:
|
|
2266
2229
|
const parsedBody = parsedOutput.body;
|
|
2230
|
+
const $metadata = deserializeMetadata(output);
|
|
2231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2267
2232
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2268
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2269
2234
|
$fault: "client",
|
|
2270
|
-
$metadata
|
|
2235
|
+
$metadata,
|
|
2271
2236
|
});
|
|
2272
2237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2273
2238
|
}
|
|
@@ -2297,8 +2262,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
|
|
|
2297
2262
|
body: await parseBody(output.body, context),
|
|
2298
2263
|
};
|
|
2299
2264
|
let response;
|
|
2300
|
-
|
|
2301
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2265
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2302
2266
|
switch (errorCode) {
|
|
2303
2267
|
case "AccessDeniedException":
|
|
2304
2268
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2317,10 +2281,12 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
|
|
|
2317
2281
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2318
2282
|
default:
|
|
2319
2283
|
const parsedBody = parsedOutput.body;
|
|
2284
|
+
const $metadata = deserializeMetadata(output);
|
|
2285
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2320
2286
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2321
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2287
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2322
2288
|
$fault: "client",
|
|
2323
|
-
$metadata
|
|
2289
|
+
$metadata,
|
|
2324
2290
|
});
|
|
2325
2291
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2326
2292
|
}
|
|
@@ -2350,8 +2316,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
|
|
|
2350
2316
|
body: await parseBody(output.body, context),
|
|
2351
2317
|
};
|
|
2352
2318
|
let response;
|
|
2353
|
-
|
|
2354
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2319
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2355
2320
|
switch (errorCode) {
|
|
2356
2321
|
case "AccessDeniedException":
|
|
2357
2322
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2370,10 +2335,12 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
|
|
|
2370
2335
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2371
2336
|
default:
|
|
2372
2337
|
const parsedBody = parsedOutput.body;
|
|
2338
|
+
const $metadata = deserializeMetadata(output);
|
|
2339
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2373
2340
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2341
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2375
2342
|
$fault: "client",
|
|
2376
|
-
$metadata
|
|
2343
|
+
$metadata,
|
|
2377
2344
|
});
|
|
2378
2345
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2379
2346
|
}
|
|
@@ -2399,8 +2366,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
|
|
|
2399
2366
|
body: await parseBody(output.body, context),
|
|
2400
2367
|
};
|
|
2401
2368
|
let response;
|
|
2402
|
-
|
|
2403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2370
|
switch (errorCode) {
|
|
2405
2371
|
case "AccessDeniedException":
|
|
2406
2372
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2419,10 +2385,12 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
|
|
|
2419
2385
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2420
2386
|
default:
|
|
2421
2387
|
const parsedBody = parsedOutput.body;
|
|
2388
|
+
const $metadata = deserializeMetadata(output);
|
|
2389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2422
2390
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2423
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2424
2392
|
$fault: "client",
|
|
2425
|
-
$metadata
|
|
2393
|
+
$metadata,
|
|
2426
2394
|
});
|
|
2427
2395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2428
2396
|
}
|
|
@@ -2452,8 +2420,7 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
|
|
|
2452
2420
|
body: await parseBody(output.body, context),
|
|
2453
2421
|
};
|
|
2454
2422
|
let response;
|
|
2455
|
-
|
|
2456
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2423
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
2424
|
switch (errorCode) {
|
|
2458
2425
|
case "AccessDeniedException":
|
|
2459
2426
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2472,10 +2439,12 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
|
|
|
2472
2439
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2473
2440
|
default:
|
|
2474
2441
|
const parsedBody = parsedOutput.body;
|
|
2442
|
+
const $metadata = deserializeMetadata(output);
|
|
2443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2475
2444
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2476
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2477
2446
|
$fault: "client",
|
|
2478
|
-
$metadata
|
|
2447
|
+
$metadata,
|
|
2479
2448
|
});
|
|
2480
2449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2481
2450
|
}
|
|
@@ -2513,8 +2482,7 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
|
|
|
2513
2482
|
body: await parseBody(output.body, context),
|
|
2514
2483
|
};
|
|
2515
2484
|
let response;
|
|
2516
|
-
|
|
2517
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2485
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2518
2486
|
switch (errorCode) {
|
|
2519
2487
|
case "AccessDeniedException":
|
|
2520
2488
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2533,10 +2501,12 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
|
|
|
2533
2501
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2534
2502
|
default:
|
|
2535
2503
|
const parsedBody = parsedOutput.body;
|
|
2504
|
+
const $metadata = deserializeMetadata(output);
|
|
2505
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2536
2506
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2537
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2507
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2538
2508
|
$fault: "client",
|
|
2539
|
-
$metadata
|
|
2509
|
+
$metadata,
|
|
2540
2510
|
});
|
|
2541
2511
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2542
2512
|
}
|
|
@@ -2570,8 +2540,7 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
|
|
|
2570
2540
|
body: await parseBody(output.body, context),
|
|
2571
2541
|
};
|
|
2572
2542
|
let response;
|
|
2573
|
-
|
|
2574
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2543
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
2544
|
switch (errorCode) {
|
|
2576
2545
|
case "AccessDeniedException":
|
|
2577
2546
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2590,10 +2559,12 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
|
|
|
2590
2559
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2591
2560
|
default:
|
|
2592
2561
|
const parsedBody = parsedOutput.body;
|
|
2562
|
+
const $metadata = deserializeMetadata(output);
|
|
2563
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2593
2564
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2594
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2565
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2595
2566
|
$fault: "client",
|
|
2596
|
-
$metadata
|
|
2567
|
+
$metadata,
|
|
2597
2568
|
});
|
|
2598
2569
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2599
2570
|
}
|
|
@@ -2627,8 +2598,7 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
|
|
|
2627
2598
|
body: await parseBody(output.body, context),
|
|
2628
2599
|
};
|
|
2629
2600
|
let response;
|
|
2630
|
-
|
|
2631
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2601
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2632
2602
|
switch (errorCode) {
|
|
2633
2603
|
case "AccessDeniedException":
|
|
2634
2604
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2647,10 +2617,12 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
|
|
|
2647
2617
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2648
2618
|
default:
|
|
2649
2619
|
const parsedBody = parsedOutput.body;
|
|
2620
|
+
const $metadata = deserializeMetadata(output);
|
|
2621
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2650
2622
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2651
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2623
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2652
2624
|
$fault: "client",
|
|
2653
|
-
$metadata
|
|
2625
|
+
$metadata,
|
|
2654
2626
|
});
|
|
2655
2627
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2656
2628
|
}
|
|
@@ -2684,8 +2656,7 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
|
|
|
2684
2656
|
body: await parseBody(output.body, context),
|
|
2685
2657
|
};
|
|
2686
2658
|
let response;
|
|
2687
|
-
|
|
2688
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2659
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2689
2660
|
switch (errorCode) {
|
|
2690
2661
|
case "AccessDeniedException":
|
|
2691
2662
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2704,10 +2675,12 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
|
|
|
2704
2675
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2705
2676
|
default:
|
|
2706
2677
|
const parsedBody = parsedOutput.body;
|
|
2678
|
+
const $metadata = deserializeMetadata(output);
|
|
2679
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2707
2680
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2709
2682
|
$fault: "client",
|
|
2710
|
-
$metadata
|
|
2683
|
+
$metadata,
|
|
2711
2684
|
});
|
|
2712
2685
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2713
2686
|
}
|
|
@@ -2741,8 +2714,7 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
|
|
|
2741
2714
|
body: await parseBody(output.body, context),
|
|
2742
2715
|
};
|
|
2743
2716
|
let response;
|
|
2744
|
-
|
|
2745
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2746
2718
|
switch (errorCode) {
|
|
2747
2719
|
case "AccessDeniedException":
|
|
2748
2720
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2761,10 +2733,12 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
|
|
|
2761
2733
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2762
2734
|
default:
|
|
2763
2735
|
const parsedBody = parsedOutput.body;
|
|
2736
|
+
const $metadata = deserializeMetadata(output);
|
|
2737
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2764
2738
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2765
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2739
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2766
2740
|
$fault: "client",
|
|
2767
|
-
$metadata
|
|
2741
|
+
$metadata,
|
|
2768
2742
|
});
|
|
2769
2743
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2770
2744
|
}
|
|
@@ -2798,8 +2772,7 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
|
|
|
2798
2772
|
body: await parseBody(output.body, context),
|
|
2799
2773
|
};
|
|
2800
2774
|
let response;
|
|
2801
|
-
|
|
2802
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2775
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2803
2776
|
switch (errorCode) {
|
|
2804
2777
|
case "AccessDeniedException":
|
|
2805
2778
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2818,10 +2791,12 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
|
|
|
2818
2791
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2819
2792
|
default:
|
|
2820
2793
|
const parsedBody = parsedOutput.body;
|
|
2794
|
+
const $metadata = deserializeMetadata(output);
|
|
2795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2821
2796
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2822
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2823
2798
|
$fault: "client",
|
|
2824
|
-
$metadata
|
|
2799
|
+
$metadata,
|
|
2825
2800
|
});
|
|
2826
2801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2827
2802
|
}
|
|
@@ -2843,8 +2818,7 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
|
|
|
2843
2818
|
body: await parseBody(output.body, context),
|
|
2844
2819
|
};
|
|
2845
2820
|
let response;
|
|
2846
|
-
|
|
2847
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2821
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
2822
|
switch (errorCode) {
|
|
2849
2823
|
case "AccessDeniedException":
|
|
2850
2824
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2863,10 +2837,12 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
|
|
|
2863
2837
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2864
2838
|
default:
|
|
2865
2839
|
const parsedBody = parsedOutput.body;
|
|
2840
|
+
const $metadata = deserializeMetadata(output);
|
|
2841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2866
2842
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2867
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2868
2844
|
$fault: "client",
|
|
2869
|
-
$metadata
|
|
2845
|
+
$metadata,
|
|
2870
2846
|
});
|
|
2871
2847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2872
2848
|
}
|
|
@@ -2888,8 +2864,7 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
|
|
|
2888
2864
|
body: await parseBody(output.body, context),
|
|
2889
2865
|
};
|
|
2890
2866
|
let response;
|
|
2891
|
-
|
|
2892
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2867
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
2868
|
switch (errorCode) {
|
|
2894
2869
|
case "AccessDeniedException":
|
|
2895
2870
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2908,10 +2883,12 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
|
|
|
2908
2883
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2909
2884
|
default:
|
|
2910
2885
|
const parsedBody = parsedOutput.body;
|
|
2886
|
+
const $metadata = deserializeMetadata(output);
|
|
2887
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2911
2888
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2912
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2889
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2913
2890
|
$fault: "client",
|
|
2914
|
-
$metadata
|
|
2891
|
+
$metadata,
|
|
2915
2892
|
});
|
|
2916
2893
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2917
2894
|
}
|
|
@@ -2933,8 +2910,7 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
|
|
|
2933
2910
|
body: await parseBody(output.body, context),
|
|
2934
2911
|
};
|
|
2935
2912
|
let response;
|
|
2936
|
-
|
|
2937
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2938
2914
|
switch (errorCode) {
|
|
2939
2915
|
case "AccessDeniedException":
|
|
2940
2916
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2953,10 +2929,12 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
|
|
|
2953
2929
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2954
2930
|
default:
|
|
2955
2931
|
const parsedBody = parsedOutput.body;
|
|
2932
|
+
const $metadata = deserializeMetadata(output);
|
|
2933
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2956
2934
|
response = new LocationServiceException_1.LocationServiceException({
|
|
2957
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2935
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2958
2936
|
$fault: "client",
|
|
2959
|
-
$metadata
|
|
2937
|
+
$metadata,
|
|
2960
2938
|
});
|
|
2961
2939
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2962
2940
|
}
|
|
@@ -2978,8 +2956,7 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
|
|
|
2978
2956
|
body: await parseBody(output.body, context),
|
|
2979
2957
|
};
|
|
2980
2958
|
let response;
|
|
2981
|
-
|
|
2982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2959
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
2960
|
switch (errorCode) {
|
|
2984
2961
|
case "AccessDeniedException":
|
|
2985
2962
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -2998,10 +2975,12 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
|
|
|
2998
2975
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2999
2976
|
default:
|
|
3000
2977
|
const parsedBody = parsedOutput.body;
|
|
2978
|
+
const $metadata = deserializeMetadata(output);
|
|
2979
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3001
2980
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3002
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2981
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3003
2982
|
$fault: "client",
|
|
3004
|
-
$metadata
|
|
2983
|
+
$metadata,
|
|
3005
2984
|
});
|
|
3006
2985
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3007
2986
|
}
|
|
@@ -3023,8 +3002,7 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
|
|
|
3023
3002
|
body: await parseBody(output.body, context),
|
|
3024
3003
|
};
|
|
3025
3004
|
let response;
|
|
3026
|
-
|
|
3027
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3028
3006
|
switch (errorCode) {
|
|
3029
3007
|
case "AccessDeniedException":
|
|
3030
3008
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3043,10 +3021,12 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
|
|
|
3043
3021
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3044
3022
|
default:
|
|
3045
3023
|
const parsedBody = parsedOutput.body;
|
|
3024
|
+
const $metadata = deserializeMetadata(output);
|
|
3025
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3046
3026
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3047
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3027
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3048
3028
|
$fault: "client",
|
|
3049
|
-
$metadata
|
|
3029
|
+
$metadata,
|
|
3050
3030
|
});
|
|
3051
3031
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3052
3032
|
}
|
|
@@ -3104,8 +3084,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
|
|
|
3104
3084
|
body: await parseBody(output.body, context),
|
|
3105
3085
|
};
|
|
3106
3086
|
let response;
|
|
3107
|
-
|
|
3108
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3109
3088
|
switch (errorCode) {
|
|
3110
3089
|
case "AccessDeniedException":
|
|
3111
3090
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3124,10 +3103,12 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
|
|
|
3124
3103
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3125
3104
|
default:
|
|
3126
3105
|
const parsedBody = parsedOutput.body;
|
|
3106
|
+
const $metadata = deserializeMetadata(output);
|
|
3107
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3127
3108
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3128
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3129
3110
|
$fault: "client",
|
|
3130
|
-
$metadata
|
|
3111
|
+
$metadata,
|
|
3131
3112
|
});
|
|
3132
3113
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3133
3114
|
}
|
|
@@ -3185,8 +3166,7 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
|
|
|
3185
3166
|
body: await parseBody(output.body, context),
|
|
3186
3167
|
};
|
|
3187
3168
|
let response;
|
|
3188
|
-
|
|
3189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3169
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
3170
|
switch (errorCode) {
|
|
3191
3171
|
case "AccessDeniedException":
|
|
3192
3172
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3205,10 +3185,12 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
|
|
|
3205
3185
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3206
3186
|
default:
|
|
3207
3187
|
const parsedBody = parsedOutput.body;
|
|
3188
|
+
const $metadata = deserializeMetadata(output);
|
|
3189
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3208
3190
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3209
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3210
3192
|
$fault: "client",
|
|
3211
|
-
$metadata
|
|
3193
|
+
$metadata,
|
|
3212
3194
|
});
|
|
3213
3195
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3214
3196
|
}
|
|
@@ -3266,8 +3248,7 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
|
|
|
3266
3248
|
body: await parseBody(output.body, context),
|
|
3267
3249
|
};
|
|
3268
3250
|
let response;
|
|
3269
|
-
|
|
3270
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3251
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3271
3252
|
switch (errorCode) {
|
|
3272
3253
|
case "AccessDeniedException":
|
|
3273
3254
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3286,10 +3267,12 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
|
|
|
3286
3267
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3287
3268
|
default:
|
|
3288
3269
|
const parsedBody = parsedOutput.body;
|
|
3270
|
+
const $metadata = deserializeMetadata(output);
|
|
3271
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3272
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3273
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3274
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3275
|
+
$metadata,
|
|
3293
3276
|
});
|
|
3294
3277
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3278
|
}
|
|
@@ -3343,8 +3326,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
|
|
|
3343
3326
|
body: await parseBody(output.body, context),
|
|
3344
3327
|
};
|
|
3345
3328
|
let response;
|
|
3346
|
-
|
|
3347
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3329
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3348
3330
|
switch (errorCode) {
|
|
3349
3331
|
case "AccessDeniedException":
|
|
3350
3332
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3363,10 +3345,12 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
|
|
|
3363
3345
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3364
3346
|
default:
|
|
3365
3347
|
const parsedBody = parsedOutput.body;
|
|
3348
|
+
const $metadata = deserializeMetadata(output);
|
|
3349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3366
3350
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3368
3352
|
$fault: "client",
|
|
3369
|
-
$metadata
|
|
3353
|
+
$metadata,
|
|
3370
3354
|
});
|
|
3371
3355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3372
3356
|
}
|
|
@@ -3428,8 +3412,7 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
|
|
|
3428
3412
|
body: await parseBody(output.body, context),
|
|
3429
3413
|
};
|
|
3430
3414
|
let response;
|
|
3431
|
-
|
|
3432
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3433
3416
|
switch (errorCode) {
|
|
3434
3417
|
case "AccessDeniedException":
|
|
3435
3418
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3448,10 +3431,12 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
|
|
|
3448
3431
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3449
3432
|
default:
|
|
3450
3433
|
const parsedBody = parsedOutput.body;
|
|
3434
|
+
const $metadata = deserializeMetadata(output);
|
|
3435
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3451
3436
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3452
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3437
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3453
3438
|
$fault: "client",
|
|
3454
|
-
$metadata
|
|
3439
|
+
$metadata,
|
|
3455
3440
|
});
|
|
3456
3441
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3457
3442
|
}
|
|
@@ -3473,8 +3458,7 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
|
|
|
3473
3458
|
body: await parseBody(output.body, context),
|
|
3474
3459
|
};
|
|
3475
3460
|
let response;
|
|
3476
|
-
|
|
3477
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3461
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3478
3462
|
switch (errorCode) {
|
|
3479
3463
|
case "AccessDeniedException":
|
|
3480
3464
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3493,10 +3477,12 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
|
|
|
3493
3477
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3494
3478
|
default:
|
|
3495
3479
|
const parsedBody = parsedOutput.body;
|
|
3480
|
+
const $metadata = deserializeMetadata(output);
|
|
3481
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3496
3482
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3497
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3483
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3498
3484
|
$fault: "client",
|
|
3499
|
-
$metadata
|
|
3485
|
+
$metadata,
|
|
3500
3486
|
});
|
|
3501
3487
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3502
3488
|
}
|
|
@@ -3542,8 +3528,7 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
|
|
|
3542
3528
|
body: await parseBody(output.body, context),
|
|
3543
3529
|
};
|
|
3544
3530
|
let response;
|
|
3545
|
-
|
|
3546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3531
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3547
3532
|
switch (errorCode) {
|
|
3548
3533
|
case "AccessDeniedException":
|
|
3549
3534
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3562,10 +3547,12 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
|
|
|
3562
3547
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3563
3548
|
default:
|
|
3564
3549
|
const parsedBody = parsedOutput.body;
|
|
3550
|
+
const $metadata = deserializeMetadata(output);
|
|
3551
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3565
3552
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3566
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3567
3554
|
$fault: "client",
|
|
3568
|
-
$metadata
|
|
3555
|
+
$metadata,
|
|
3569
3556
|
});
|
|
3570
3557
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3571
3558
|
}
|
|
@@ -3595,8 +3582,7 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
|
|
|
3595
3582
|
body: await parseBody(output.body, context),
|
|
3596
3583
|
};
|
|
3597
3584
|
let response;
|
|
3598
|
-
|
|
3599
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3585
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3600
3586
|
switch (errorCode) {
|
|
3601
3587
|
case "AccessDeniedException":
|
|
3602
3588
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3615,10 +3601,12 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
|
|
|
3615
3601
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3616
3602
|
default:
|
|
3617
3603
|
const parsedBody = parsedOutput.body;
|
|
3604
|
+
const $metadata = deserializeMetadata(output);
|
|
3605
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3618
3606
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3619
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3607
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3620
3608
|
$fault: "client",
|
|
3621
|
-
$metadata
|
|
3609
|
+
$metadata,
|
|
3622
3610
|
});
|
|
3623
3611
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3624
3612
|
}
|
|
@@ -3660,8 +3648,7 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
|
|
|
3660
3648
|
body: await parseBody(output.body, context),
|
|
3661
3649
|
};
|
|
3662
3650
|
let response;
|
|
3663
|
-
|
|
3664
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3651
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3665
3652
|
switch (errorCode) {
|
|
3666
3653
|
case "AccessDeniedException":
|
|
3667
3654
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3680,10 +3667,12 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
|
|
|
3680
3667
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3681
3668
|
default:
|
|
3682
3669
|
const parsedBody = parsedOutput.body;
|
|
3670
|
+
const $metadata = deserializeMetadata(output);
|
|
3671
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3683
3672
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3673
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3685
3674
|
$fault: "client",
|
|
3686
|
-
$metadata
|
|
3675
|
+
$metadata,
|
|
3687
3676
|
});
|
|
3688
3677
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3689
3678
|
}
|
|
@@ -3711,8 +3700,7 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
|
|
|
3711
3700
|
body: await parseBody(output.body, context),
|
|
3712
3701
|
};
|
|
3713
3702
|
let response;
|
|
3714
|
-
|
|
3715
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3703
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3716
3704
|
switch (errorCode) {
|
|
3717
3705
|
case "AccessDeniedException":
|
|
3718
3706
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3731,10 +3719,12 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
|
|
|
3731
3719
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3732
3720
|
default:
|
|
3733
3721
|
const parsedBody = parsedOutput.body;
|
|
3722
|
+
const $metadata = deserializeMetadata(output);
|
|
3723
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3734
3724
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3725
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3736
3726
|
$fault: "client",
|
|
3737
|
-
$metadata
|
|
3727
|
+
$metadata,
|
|
3738
3728
|
});
|
|
3739
3729
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3740
3730
|
}
|
|
@@ -3762,8 +3752,7 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
|
|
|
3762
3752
|
body: await parseBody(output.body, context),
|
|
3763
3753
|
};
|
|
3764
3754
|
let response;
|
|
3765
|
-
|
|
3766
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3755
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3767
3756
|
switch (errorCode) {
|
|
3768
3757
|
case "AccessDeniedException":
|
|
3769
3758
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3782,10 +3771,12 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
|
|
|
3782
3771
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3783
3772
|
default:
|
|
3784
3773
|
const parsedBody = parsedOutput.body;
|
|
3774
|
+
const $metadata = deserializeMetadata(output);
|
|
3775
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3785
3776
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3786
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3777
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3787
3778
|
$fault: "client",
|
|
3788
|
-
$metadata
|
|
3779
|
+
$metadata,
|
|
3789
3780
|
});
|
|
3790
3781
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3791
3782
|
}
|
|
@@ -3813,8 +3804,7 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
|
|
|
3813
3804
|
body: await parseBody(output.body, context),
|
|
3814
3805
|
};
|
|
3815
3806
|
let response;
|
|
3816
|
-
|
|
3817
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3807
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3818
3808
|
switch (errorCode) {
|
|
3819
3809
|
case "AccessDeniedException":
|
|
3820
3810
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3833,10 +3823,12 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
|
|
|
3833
3823
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3834
3824
|
default:
|
|
3835
3825
|
const parsedBody = parsedOutput.body;
|
|
3826
|
+
const $metadata = deserializeMetadata(output);
|
|
3827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3836
3828
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3838
3830
|
$fault: "client",
|
|
3839
|
-
$metadata
|
|
3831
|
+
$metadata,
|
|
3840
3832
|
});
|
|
3841
3833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3842
3834
|
}
|
|
@@ -3864,8 +3856,7 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
|
|
|
3864
3856
|
body: await parseBody(output.body, context),
|
|
3865
3857
|
};
|
|
3866
3858
|
let response;
|
|
3867
|
-
|
|
3868
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3859
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3869
3860
|
switch (errorCode) {
|
|
3870
3861
|
case "AccessDeniedException":
|
|
3871
3862
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3884,10 +3875,12 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
|
|
|
3884
3875
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3885
3876
|
default:
|
|
3886
3877
|
const parsedBody = parsedOutput.body;
|
|
3878
|
+
const $metadata = deserializeMetadata(output);
|
|
3879
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3887
3880
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3881
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3889
3882
|
$fault: "client",
|
|
3890
|
-
$metadata
|
|
3883
|
+
$metadata,
|
|
3891
3884
|
});
|
|
3892
3885
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3893
3886
|
}
|
|
@@ -3917,8 +3910,7 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
|
|
|
3917
3910
|
body: await parseBody(output.body, context),
|
|
3918
3911
|
};
|
|
3919
3912
|
let response;
|
|
3920
|
-
|
|
3921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3922
3914
|
switch (errorCode) {
|
|
3923
3915
|
case "AccessDeniedException":
|
|
3924
3916
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3934,10 +3926,12 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
|
|
|
3934
3926
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3935
3927
|
default:
|
|
3936
3928
|
const parsedBody = parsedOutput.body;
|
|
3929
|
+
const $metadata = deserializeMetadata(output);
|
|
3930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3937
3931
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3939
3933
|
$fault: "client",
|
|
3940
|
-
$metadata
|
|
3934
|
+
$metadata,
|
|
3941
3935
|
});
|
|
3942
3936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3943
3937
|
}
|
|
@@ -3967,8 +3961,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
|
|
|
3967
3961
|
body: await parseBody(output.body, context),
|
|
3968
3962
|
};
|
|
3969
3963
|
let response;
|
|
3970
|
-
|
|
3971
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3972
3965
|
switch (errorCode) {
|
|
3973
3966
|
case "AccessDeniedException":
|
|
3974
3967
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -3984,10 +3977,12 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
|
|
|
3984
3977
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3985
3978
|
default:
|
|
3986
3979
|
const parsedBody = parsedOutput.body;
|
|
3980
|
+
const $metadata = deserializeMetadata(output);
|
|
3981
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3987
3982
|
response = new LocationServiceException_1.LocationServiceException({
|
|
3988
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3983
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3989
3984
|
$fault: "client",
|
|
3990
|
-
$metadata
|
|
3985
|
+
$metadata,
|
|
3991
3986
|
});
|
|
3992
3987
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3993
3988
|
}
|
|
@@ -4017,8 +4012,7 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
|
|
|
4017
4012
|
body: await parseBody(output.body, context),
|
|
4018
4013
|
};
|
|
4019
4014
|
let response;
|
|
4020
|
-
|
|
4021
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4022
4016
|
switch (errorCode) {
|
|
4023
4017
|
case "AccessDeniedException":
|
|
4024
4018
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4037,10 +4031,12 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
|
|
|
4037
4031
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4038
4032
|
default:
|
|
4039
4033
|
const parsedBody = parsedOutput.body;
|
|
4034
|
+
const $metadata = deserializeMetadata(output);
|
|
4035
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4040
4036
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4041
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4037
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4042
4038
|
$fault: "client",
|
|
4043
|
-
$metadata
|
|
4039
|
+
$metadata,
|
|
4044
4040
|
});
|
|
4045
4041
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4046
4042
|
}
|
|
@@ -4070,8 +4066,7 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
|
|
|
4070
4066
|
body: await parseBody(output.body, context),
|
|
4071
4067
|
};
|
|
4072
4068
|
let response;
|
|
4073
|
-
|
|
4074
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4069
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4075
4070
|
switch (errorCode) {
|
|
4076
4071
|
case "AccessDeniedException":
|
|
4077
4072
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4087,10 +4082,12 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
|
|
|
4087
4082
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4088
4083
|
default:
|
|
4089
4084
|
const parsedBody = parsedOutput.body;
|
|
4085
|
+
const $metadata = deserializeMetadata(output);
|
|
4086
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4090
4087
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4091
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4088
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4092
4089
|
$fault: "client",
|
|
4093
|
-
$metadata
|
|
4090
|
+
$metadata,
|
|
4094
4091
|
});
|
|
4095
4092
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4096
4093
|
}
|
|
@@ -4120,8 +4117,7 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
|
|
|
4120
4117
|
body: await parseBody(output.body, context),
|
|
4121
4118
|
};
|
|
4122
4119
|
let response;
|
|
4123
|
-
|
|
4124
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4120
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4125
4121
|
switch (errorCode) {
|
|
4126
4122
|
case "AccessDeniedException":
|
|
4127
4123
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4137,10 +4133,12 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
|
|
|
4137
4133
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4138
4134
|
default:
|
|
4139
4135
|
const parsedBody = parsedOutput.body;
|
|
4136
|
+
const $metadata = deserializeMetadata(output);
|
|
4137
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4140
4138
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4141
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4139
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4142
4140
|
$fault: "client",
|
|
4143
|
-
$metadata
|
|
4141
|
+
$metadata,
|
|
4144
4142
|
});
|
|
4145
4143
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4146
4144
|
}
|
|
@@ -4170,8 +4168,7 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
|
|
|
4170
4168
|
body: await parseBody(output.body, context),
|
|
4171
4169
|
};
|
|
4172
4170
|
let response;
|
|
4173
|
-
|
|
4174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4171
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4175
4172
|
switch (errorCode) {
|
|
4176
4173
|
case "AccessDeniedException":
|
|
4177
4174
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4187,10 +4184,12 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
|
|
|
4187
4184
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4188
4185
|
default:
|
|
4189
4186
|
const parsedBody = parsedOutput.body;
|
|
4187
|
+
const $metadata = deserializeMetadata(output);
|
|
4188
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4190
4189
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4190
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4192
4191
|
$fault: "client",
|
|
4193
|
-
$metadata
|
|
4192
|
+
$metadata,
|
|
4194
4193
|
});
|
|
4195
4194
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4196
4195
|
}
|
|
@@ -4216,8 +4215,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4216
4215
|
body: await parseBody(output.body, context),
|
|
4217
4216
|
};
|
|
4218
4217
|
let response;
|
|
4219
|
-
|
|
4220
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4221
4219
|
switch (errorCode) {
|
|
4222
4220
|
case "AccessDeniedException":
|
|
4223
4221
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4236,10 +4234,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4236
4234
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4237
4235
|
default:
|
|
4238
4236
|
const parsedBody = parsedOutput.body;
|
|
4237
|
+
const $metadata = deserializeMetadata(output);
|
|
4238
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4239
4239
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4240
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4240
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4241
4241
|
$fault: "client",
|
|
4242
|
-
$metadata
|
|
4242
|
+
$metadata,
|
|
4243
4243
|
});
|
|
4244
4244
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4245
4245
|
}
|
|
@@ -4269,8 +4269,7 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
|
|
|
4269
4269
|
body: await parseBody(output.body, context),
|
|
4270
4270
|
};
|
|
4271
4271
|
let response;
|
|
4272
|
-
|
|
4273
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4272
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4274
4273
|
switch (errorCode) {
|
|
4275
4274
|
case "AccessDeniedException":
|
|
4276
4275
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4289,10 +4288,12 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
|
|
|
4289
4288
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4290
4289
|
default:
|
|
4291
4290
|
const parsedBody = parsedOutput.body;
|
|
4291
|
+
const $metadata = deserializeMetadata(output);
|
|
4292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4292
4293
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4293
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4294
4295
|
$fault: "client",
|
|
4295
|
-
$metadata
|
|
4296
|
+
$metadata,
|
|
4296
4297
|
});
|
|
4297
4298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4298
4299
|
}
|
|
@@ -4322,8 +4323,7 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
|
|
|
4322
4323
|
body: await parseBody(output.body, context),
|
|
4323
4324
|
};
|
|
4324
4325
|
let response;
|
|
4325
|
-
|
|
4326
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4326
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4327
4327
|
switch (errorCode) {
|
|
4328
4328
|
case "AccessDeniedException":
|
|
4329
4329
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4339,10 +4339,12 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
|
|
|
4339
4339
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4340
4340
|
default:
|
|
4341
4341
|
const parsedBody = parsedOutput.body;
|
|
4342
|
+
const $metadata = deserializeMetadata(output);
|
|
4343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4342
4344
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4343
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4344
4346
|
$fault: "client",
|
|
4345
|
-
$metadata
|
|
4347
|
+
$metadata,
|
|
4346
4348
|
});
|
|
4347
4349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4348
4350
|
}
|
|
@@ -4376,8 +4378,7 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
|
|
|
4376
4378
|
body: await parseBody(output.body, context),
|
|
4377
4379
|
};
|
|
4378
4380
|
let response;
|
|
4379
|
-
|
|
4380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
4382
|
switch (errorCode) {
|
|
4382
4383
|
case "AccessDeniedException":
|
|
4383
4384
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4399,10 +4400,12 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
|
|
|
4399
4400
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4400
4401
|
default:
|
|
4401
4402
|
const parsedBody = parsedOutput.body;
|
|
4403
|
+
const $metadata = deserializeMetadata(output);
|
|
4404
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4402
4405
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4406
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4404
4407
|
$fault: "client",
|
|
4405
|
-
$metadata
|
|
4408
|
+
$metadata,
|
|
4406
4409
|
});
|
|
4407
4410
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4408
4411
|
}
|
|
@@ -4432,8 +4435,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
4432
4435
|
body: await parseBody(output.body, context),
|
|
4433
4436
|
};
|
|
4434
4437
|
let response;
|
|
4435
|
-
|
|
4436
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4437
4439
|
switch (errorCode) {
|
|
4438
4440
|
case "AccessDeniedException":
|
|
4439
4441
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4452,10 +4454,12 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
4452
4454
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4453
4455
|
default:
|
|
4454
4456
|
const parsedBody = parsedOutput.body;
|
|
4457
|
+
const $metadata = deserializeMetadata(output);
|
|
4458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4455
4459
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4456
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4457
4461
|
$fault: "client",
|
|
4458
|
-
$metadata
|
|
4462
|
+
$metadata,
|
|
4459
4463
|
});
|
|
4460
4464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4461
4465
|
}
|
|
@@ -4485,8 +4489,7 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
|
|
|
4485
4489
|
body: await parseBody(output.body, context),
|
|
4486
4490
|
};
|
|
4487
4491
|
let response;
|
|
4488
|
-
|
|
4489
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4492
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4490
4493
|
switch (errorCode) {
|
|
4491
4494
|
case "AccessDeniedException":
|
|
4492
4495
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4505,10 +4508,12 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
|
|
|
4505
4508
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4506
4509
|
default:
|
|
4507
4510
|
const parsedBody = parsedOutput.body;
|
|
4511
|
+
const $metadata = deserializeMetadata(output);
|
|
4512
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4508
4513
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4509
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4514
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4510
4515
|
$fault: "client",
|
|
4511
|
-
$metadata
|
|
4516
|
+
$metadata,
|
|
4512
4517
|
});
|
|
4513
4518
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4514
4519
|
}
|
|
@@ -4538,8 +4543,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
|
|
|
4538
4543
|
body: await parseBody(output.body, context),
|
|
4539
4544
|
};
|
|
4540
4545
|
let response;
|
|
4541
|
-
|
|
4542
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4543
4547
|
switch (errorCode) {
|
|
4544
4548
|
case "AccessDeniedException":
|
|
4545
4549
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4558,10 +4562,12 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
|
|
|
4558
4562
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4559
4563
|
default:
|
|
4560
4564
|
const parsedBody = parsedOutput.body;
|
|
4565
|
+
const $metadata = deserializeMetadata(output);
|
|
4566
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4561
4567
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4568
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4563
4569
|
$fault: "client",
|
|
4564
|
-
$metadata
|
|
4570
|
+
$metadata,
|
|
4565
4571
|
});
|
|
4566
4572
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4567
4573
|
}
|
|
@@ -4583,8 +4589,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4583
4589
|
body: await parseBody(output.body, context),
|
|
4584
4590
|
};
|
|
4585
4591
|
let response;
|
|
4586
|
-
|
|
4587
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4592
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4588
4593
|
switch (errorCode) {
|
|
4589
4594
|
case "AccessDeniedException":
|
|
4590
4595
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4603,10 +4608,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4603
4608
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4604
4609
|
default:
|
|
4605
4610
|
const parsedBody = parsedOutput.body;
|
|
4611
|
+
const $metadata = deserializeMetadata(output);
|
|
4612
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4606
4613
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4607
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4614
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4608
4615
|
$fault: "client",
|
|
4609
|
-
$metadata
|
|
4616
|
+
$metadata,
|
|
4610
4617
|
});
|
|
4611
4618
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4612
4619
|
}
|
|
@@ -4628,8 +4635,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4628
4635
|
body: await parseBody(output.body, context),
|
|
4629
4636
|
};
|
|
4630
4637
|
let response;
|
|
4631
|
-
|
|
4632
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4633
4639
|
switch (errorCode) {
|
|
4634
4640
|
case "AccessDeniedException":
|
|
4635
4641
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4648,10 +4654,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4648
4654
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4649
4655
|
default:
|
|
4650
4656
|
const parsedBody = parsedOutput.body;
|
|
4657
|
+
const $metadata = deserializeMetadata(output);
|
|
4658
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4651
4659
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4652
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4660
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4653
4661
|
$fault: "client",
|
|
4654
|
-
$metadata
|
|
4662
|
+
$metadata,
|
|
4655
4663
|
});
|
|
4656
4664
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4657
4665
|
}
|
|
@@ -4685,8 +4693,7 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
|
|
|
4685
4693
|
body: await parseBody(output.body, context),
|
|
4686
4694
|
};
|
|
4687
4695
|
let response;
|
|
4688
|
-
|
|
4689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4690
4697
|
switch (errorCode) {
|
|
4691
4698
|
case "AccessDeniedException":
|
|
4692
4699
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4705,10 +4712,12 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
|
|
|
4705
4712
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4706
4713
|
default:
|
|
4707
4714
|
const parsedBody = parsedOutput.body;
|
|
4715
|
+
const $metadata = deserializeMetadata(output);
|
|
4716
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4708
4717
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4709
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4718
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4710
4719
|
$fault: "client",
|
|
4711
|
-
$metadata
|
|
4720
|
+
$metadata,
|
|
4712
4721
|
});
|
|
4713
4722
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4714
4723
|
}
|
|
@@ -4742,8 +4751,7 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
|
|
|
4742
4751
|
body: await parseBody(output.body, context),
|
|
4743
4752
|
};
|
|
4744
4753
|
let response;
|
|
4745
|
-
|
|
4746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4747
4755
|
switch (errorCode) {
|
|
4748
4756
|
case "AccessDeniedException":
|
|
4749
4757
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4762,10 +4770,12 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
|
|
|
4762
4770
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4763
4771
|
default:
|
|
4764
4772
|
const parsedBody = parsedOutput.body;
|
|
4773
|
+
const $metadata = deserializeMetadata(output);
|
|
4774
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4765
4775
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4766
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4767
4777
|
$fault: "client",
|
|
4768
|
-
$metadata
|
|
4778
|
+
$metadata,
|
|
4769
4779
|
});
|
|
4770
4780
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4771
4781
|
}
|
|
@@ -4799,8 +4809,7 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
|
|
|
4799
4809
|
body: await parseBody(output.body, context),
|
|
4800
4810
|
};
|
|
4801
4811
|
let response;
|
|
4802
|
-
|
|
4803
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4812
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4804
4813
|
switch (errorCode) {
|
|
4805
4814
|
case "AccessDeniedException":
|
|
4806
4815
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4819,10 +4828,12 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
|
|
|
4819
4828
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4820
4829
|
default:
|
|
4821
4830
|
const parsedBody = parsedOutput.body;
|
|
4831
|
+
const $metadata = deserializeMetadata(output);
|
|
4832
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4822
4833
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4823
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4834
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4824
4835
|
$fault: "client",
|
|
4825
|
-
$metadata
|
|
4836
|
+
$metadata,
|
|
4826
4837
|
});
|
|
4827
4838
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4828
4839
|
}
|
|
@@ -4856,8 +4867,7 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
|
|
|
4856
4867
|
body: await parseBody(output.body, context),
|
|
4857
4868
|
};
|
|
4858
4869
|
let response;
|
|
4859
|
-
|
|
4860
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4861
4871
|
switch (errorCode) {
|
|
4862
4872
|
case "AccessDeniedException":
|
|
4863
4873
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4876,10 +4886,12 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
|
|
|
4876
4886
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4877
4887
|
default:
|
|
4878
4888
|
const parsedBody = parsedOutput.body;
|
|
4889
|
+
const $metadata = deserializeMetadata(output);
|
|
4890
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4879
4891
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4880
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4892
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4881
4893
|
$fault: "client",
|
|
4882
|
-
$metadata
|
|
4894
|
+
$metadata,
|
|
4883
4895
|
});
|
|
4884
4896
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4885
4897
|
}
|
|
@@ -4913,8 +4925,7 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
|
|
|
4913
4925
|
body: await parseBody(output.body, context),
|
|
4914
4926
|
};
|
|
4915
4927
|
let response;
|
|
4916
|
-
|
|
4917
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4928
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4918
4929
|
switch (errorCode) {
|
|
4919
4930
|
case "AccessDeniedException":
|
|
4920
4931
|
case "com.amazonaws.location#AccessDeniedException":
|
|
@@ -4933,10 +4944,12 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
|
|
|
4933
4944
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4934
4945
|
default:
|
|
4935
4946
|
const parsedBody = parsedOutput.body;
|
|
4947
|
+
const $metadata = deserializeMetadata(output);
|
|
4948
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4936
4949
|
response = new LocationServiceException_1.LocationServiceException({
|
|
4937
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4938
4951
|
$fault: "client",
|
|
4939
|
-
$metadata
|
|
4952
|
+
$metadata,
|
|
4940
4953
|
});
|
|
4941
4954
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4942
4955
|
}
|
|
@@ -5033,9 +5046,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
5033
5046
|
};
|
|
5034
5047
|
const serializeAws_restJson1BatchPutGeofenceRequestEntry = (input, context) => {
|
|
5035
5048
|
return {
|
|
5036
|
-
...(input.GeofenceId
|
|
5037
|
-
...(input.Geometry
|
|
5038
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
5049
|
+
...(input.GeofenceId != null && { GeofenceId: input.GeofenceId }),
|
|
5050
|
+
...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
5039
5051
|
};
|
|
5040
5052
|
};
|
|
5041
5053
|
const serializeAws_restJson1BatchPutGeofenceRequestEntryList = (input, context) => {
|
|
@@ -5060,18 +5072,16 @@ const serializeAws_restJson1BoundingBox = (input, context) => {
|
|
|
5060
5072
|
};
|
|
5061
5073
|
const serializeAws_restJson1CalculateRouteCarModeOptions = (input, context) => {
|
|
5062
5074
|
return {
|
|
5063
|
-
...(input.AvoidFerries
|
|
5064
|
-
...(input.AvoidTolls
|
|
5075
|
+
...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
|
|
5076
|
+
...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
|
|
5065
5077
|
};
|
|
5066
5078
|
};
|
|
5067
5079
|
const serializeAws_restJson1CalculateRouteTruckModeOptions = (input, context) => {
|
|
5068
5080
|
return {
|
|
5069
|
-
...(input.AvoidFerries
|
|
5070
|
-
...(input.AvoidTolls
|
|
5071
|
-
...(input.Dimensions
|
|
5072
|
-
|
|
5073
|
-
...(input.Weight !== undefined &&
|
|
5074
|
-
input.Weight !== null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
|
|
5081
|
+
...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
|
|
5082
|
+
...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
|
|
5083
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) }),
|
|
5084
|
+
...(input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
|
|
5075
5085
|
};
|
|
5076
5086
|
};
|
|
5077
5087
|
const serializeAws_restJson1CountryCodeList = (input, context) => {
|
|
@@ -5086,7 +5096,7 @@ const serializeAws_restJson1CountryCodeList = (input, context) => {
|
|
|
5086
5096
|
};
|
|
5087
5097
|
const serializeAws_restJson1DataSourceConfiguration = (input, context) => {
|
|
5088
5098
|
return {
|
|
5089
|
-
...(input.IntendedUse
|
|
5099
|
+
...(input.IntendedUse != null && { IntendedUse: input.IntendedUse }),
|
|
5090
5100
|
};
|
|
5091
5101
|
};
|
|
5092
5102
|
const serializeAws_restJson1DeviceIdsList = (input, context) => {
|
|
@@ -5101,17 +5111,13 @@ const serializeAws_restJson1DeviceIdsList = (input, context) => {
|
|
|
5101
5111
|
};
|
|
5102
5112
|
const serializeAws_restJson1DevicePositionUpdate = (input, context) => {
|
|
5103
5113
|
return {
|
|
5104
|
-
...(input.Accuracy
|
|
5105
|
-
|
|
5106
|
-
...(input.
|
|
5107
|
-
...(input.
|
|
5108
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
5109
|
-
...(input.PositionProperties !== undefined &&
|
|
5110
|
-
input.PositionProperties !== null && {
|
|
5114
|
+
...(input.Accuracy != null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) }),
|
|
5115
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
5116
|
+
...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
5117
|
+
...(input.PositionProperties != null && {
|
|
5111
5118
|
PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
|
|
5112
5119
|
}),
|
|
5113
|
-
...(input.SampleTime
|
|
5114
|
-
input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
|
|
5120
|
+
...(input.SampleTime != null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
|
|
5115
5121
|
};
|
|
5116
5122
|
};
|
|
5117
5123
|
const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
|
|
@@ -5126,8 +5132,7 @@ const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
|
|
|
5126
5132
|
};
|
|
5127
5133
|
const serializeAws_restJson1GeofenceGeometry = (input, context) => {
|
|
5128
5134
|
return {
|
|
5129
|
-
...(input.Polygon
|
|
5130
|
-
input.Polygon !== null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
|
|
5135
|
+
...(input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
|
|
5131
5136
|
};
|
|
5132
5137
|
};
|
|
5133
5138
|
const serializeAws_restJson1IdList = (input, context) => {
|
|
@@ -5162,7 +5167,7 @@ const serializeAws_restJson1LinearRings = (input, context) => {
|
|
|
5162
5167
|
};
|
|
5163
5168
|
const serializeAws_restJson1MapConfiguration = (input, context) => {
|
|
5164
5169
|
return {
|
|
5165
|
-
...(input.Style
|
|
5170
|
+
...(input.Style != null && { Style: input.Style }),
|
|
5166
5171
|
};
|
|
5167
5172
|
};
|
|
5168
5173
|
const serializeAws_restJson1Position = (input, context) => {
|
|
@@ -5177,8 +5182,7 @@ const serializeAws_restJson1Position = (input, context) => {
|
|
|
5177
5182
|
};
|
|
5178
5183
|
const serializeAws_restJson1PositionalAccuracy = (input, context) => {
|
|
5179
5184
|
return {
|
|
5180
|
-
...(input.Horizontal
|
|
5181
|
-
input.Horizontal !== null && { Horizontal: (0, smithy_client_1.serializeFloat)(input.Horizontal) }),
|
|
5185
|
+
...(input.Horizontal != null && { Horizontal: (0, smithy_client_1.serializeFloat)(input.Horizontal) }),
|
|
5182
5186
|
};
|
|
5183
5187
|
};
|
|
5184
5188
|
const serializeAws_restJson1PositionList = (input, context) => {
|
|
@@ -5215,16 +5219,16 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
5215
5219
|
};
|
|
5216
5220
|
const serializeAws_restJson1TruckDimensions = (input, context) => {
|
|
5217
5221
|
return {
|
|
5218
|
-
...(input.Height
|
|
5219
|
-
...(input.Length
|
|
5220
|
-
...(input.Unit
|
|
5221
|
-
...(input.Width
|
|
5222
|
+
...(input.Height != null && { Height: (0, smithy_client_1.serializeFloat)(input.Height) }),
|
|
5223
|
+
...(input.Length != null && { Length: (0, smithy_client_1.serializeFloat)(input.Length) }),
|
|
5224
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
5225
|
+
...(input.Width != null && { Width: (0, smithy_client_1.serializeFloat)(input.Width) }),
|
|
5222
5226
|
};
|
|
5223
5227
|
};
|
|
5224
5228
|
const serializeAws_restJson1TruckWeight = (input, context) => {
|
|
5225
5229
|
return {
|
|
5226
|
-
...(input.Total
|
|
5227
|
-
...(input.Unit
|
|
5230
|
+
...(input.Total != null && { Total: (0, smithy_client_1.serializeFloat)(input.Total) }),
|
|
5231
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
5228
5232
|
};
|
|
5229
5233
|
};
|
|
5230
5234
|
const serializeAws_restJson1WaypointPositionList = (input, context) => {
|
|
@@ -5251,9 +5255,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
5251
5255
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
|
|
5252
5256
|
return {
|
|
5253
5257
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5254
|
-
Error: output.Error
|
|
5255
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5256
|
-
: undefined,
|
|
5258
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5257
5259
|
};
|
|
5258
5260
|
};
|
|
5259
5261
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
|
|
@@ -5269,9 +5271,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (outpu
|
|
|
5269
5271
|
};
|
|
5270
5272
|
const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
|
|
5271
5273
|
return {
|
|
5272
|
-
Error: output.Error
|
|
5273
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5274
|
-
: undefined,
|
|
5274
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5275
5275
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5276
5276
|
};
|
|
5277
5277
|
};
|
|
@@ -5289,12 +5289,8 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) =
|
|
|
5289
5289
|
const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
|
|
5290
5290
|
return {
|
|
5291
5291
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5292
|
-
Error: output.Error
|
|
5293
|
-
|
|
5294
|
-
: undefined,
|
|
5295
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5296
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5297
|
-
: undefined,
|
|
5292
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5293
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5298
5294
|
};
|
|
5299
5295
|
};
|
|
5300
5296
|
const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
@@ -5311,9 +5307,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context
|
|
|
5311
5307
|
const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
|
|
5312
5308
|
return {
|
|
5313
5309
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5314
|
-
Error: output.Error
|
|
5315
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5316
|
-
: undefined,
|
|
5310
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5317
5311
|
};
|
|
5318
5312
|
};
|
|
5319
5313
|
const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context) => {
|
|
@@ -5335,9 +5329,7 @@ const deserializeAws_restJson1BatchItemError = (output, context) => {
|
|
|
5335
5329
|
};
|
|
5336
5330
|
const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
|
|
5337
5331
|
return {
|
|
5338
|
-
Error: output.Error
|
|
5339
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5340
|
-
: undefined,
|
|
5332
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5341
5333
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5342
5334
|
};
|
|
5343
5335
|
};
|
|
@@ -5354,13 +5346,9 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
|
5354
5346
|
};
|
|
5355
5347
|
const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
5356
5348
|
return {
|
|
5357
|
-
CreateTime: output.CreateTime
|
|
5358
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5359
|
-
: undefined,
|
|
5349
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5360
5350
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5361
|
-
UpdateTime: output.UpdateTime
|
|
5362
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5363
|
-
: undefined,
|
|
5351
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5364
5352
|
};
|
|
5365
5353
|
};
|
|
5366
5354
|
const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) => {
|
|
@@ -5377,12 +5365,8 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) =>
|
|
|
5377
5365
|
const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
|
|
5378
5366
|
return {
|
|
5379
5367
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5380
|
-
Error: output.Error
|
|
5381
|
-
|
|
5382
|
-
: undefined,
|
|
5383
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5384
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5385
|
-
: undefined,
|
|
5368
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5369
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5386
5370
|
};
|
|
5387
5371
|
};
|
|
5388
5372
|
const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
@@ -5421,9 +5405,7 @@ const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
|
5421
5405
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5422
5406
|
DistanceUnit: (0, smithy_client_1.expectString)(output.DistanceUnit),
|
|
5423
5407
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5424
|
-
RouteBBox: output.RouteBBox
|
|
5425
|
-
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
5426
|
-
: undefined,
|
|
5408
|
+
RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
|
|
5427
5409
|
};
|
|
5428
5410
|
};
|
|
5429
5411
|
const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
@@ -5444,22 +5426,14 @@ const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
|
|
|
5444
5426
|
};
|
|
5445
5427
|
const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
5446
5428
|
return {
|
|
5447
|
-
Accuracy: output.Accuracy
|
|
5448
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
5449
|
-
: undefined,
|
|
5429
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
5450
5430
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5451
|
-
Position: output.Position
|
|
5452
|
-
|
|
5453
|
-
: undefined,
|
|
5454
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
5431
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5432
|
+
PositionProperties: output.PositionProperties != null
|
|
5455
5433
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
5456
5434
|
: undefined,
|
|
5457
|
-
ReceivedTime: output.ReceivedTime
|
|
5458
|
-
|
|
5459
|
-
: undefined,
|
|
5460
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5461
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5462
|
-
: undefined,
|
|
5435
|
+
ReceivedTime: output.ReceivedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ReceivedTime)) : undefined,
|
|
5436
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5463
5437
|
};
|
|
5464
5438
|
};
|
|
5465
5439
|
const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
@@ -5475,34 +5449,22 @@ const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
|
5475
5449
|
};
|
|
5476
5450
|
const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
5477
5451
|
return {
|
|
5478
|
-
Polygon: output.Polygon
|
|
5479
|
-
? deserializeAws_restJson1LinearRings(output.Polygon, context)
|
|
5480
|
-
: undefined,
|
|
5452
|
+
Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
|
|
5481
5453
|
};
|
|
5482
5454
|
};
|
|
5483
5455
|
const deserializeAws_restJson1Leg = (output, context) => {
|
|
5484
5456
|
return {
|
|
5485
5457
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5486
5458
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5487
|
-
EndPosition: output.EndPosition
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
? deserializeAws_restJson1LegGeometry(output.Geometry, context)
|
|
5492
|
-
: undefined,
|
|
5493
|
-
StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
|
|
5494
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
5495
|
-
: undefined,
|
|
5496
|
-
Steps: output.Steps !== undefined && output.Steps !== null
|
|
5497
|
-
? deserializeAws_restJson1StepList(output.Steps, context)
|
|
5498
|
-
: undefined,
|
|
5459
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
5460
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1LegGeometry(output.Geometry, context) : undefined,
|
|
5461
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
5462
|
+
Steps: output.Steps != null ? deserializeAws_restJson1StepList(output.Steps, context) : undefined,
|
|
5499
5463
|
};
|
|
5500
5464
|
};
|
|
5501
5465
|
const deserializeAws_restJson1LegGeometry = (output, context) => {
|
|
5502
5466
|
return {
|
|
5503
|
-
LineString: output.LineString
|
|
5504
|
-
? deserializeAws_restJson1LineString(output.LineString, context)
|
|
5505
|
-
: undefined,
|
|
5467
|
+
LineString: output.LineString != null ? deserializeAws_restJson1LineString(output.LineString, context) : undefined,
|
|
5506
5468
|
};
|
|
5507
5469
|
};
|
|
5508
5470
|
const deserializeAws_restJson1LegList = (output, context) => {
|
|
@@ -5551,19 +5513,13 @@ const deserializeAws_restJson1LineString = (output, context) => {
|
|
|
5551
5513
|
};
|
|
5552
5514
|
const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
|
|
5553
5515
|
return {
|
|
5554
|
-
Accuracy: output.Accuracy
|
|
5555
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
5556
|
-
: undefined,
|
|
5516
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
5557
5517
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5558
|
-
Position: output.Position
|
|
5559
|
-
|
|
5560
|
-
: undefined,
|
|
5561
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
5518
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5519
|
+
PositionProperties: output.PositionProperties != null
|
|
5562
5520
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
5563
5521
|
: undefined,
|
|
5564
|
-
SampleTime: output.SampleTime
|
|
5565
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5566
|
-
: undefined,
|
|
5522
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5567
5523
|
};
|
|
5568
5524
|
};
|
|
5569
5525
|
const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, context) => {
|
|
@@ -5580,15 +5536,11 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
|
|
|
5580
5536
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
5581
5537
|
return {
|
|
5582
5538
|
CollectionName: (0, smithy_client_1.expectString)(output.CollectionName),
|
|
5583
|
-
CreateTime: output.CreateTime
|
|
5584
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5585
|
-
: undefined,
|
|
5539
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5586
5540
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5587
5541
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5588
5542
|
PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
|
|
5589
|
-
UpdateTime: output.UpdateTime
|
|
5590
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5591
|
-
: undefined,
|
|
5543
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5592
5544
|
};
|
|
5593
5545
|
};
|
|
5594
5546
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
@@ -5604,17 +5556,11 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
|
|
|
5604
5556
|
};
|
|
5605
5557
|
const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
5606
5558
|
return {
|
|
5607
|
-
CreateTime: output.CreateTime
|
|
5608
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5609
|
-
: undefined,
|
|
5559
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5610
5560
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5611
|
-
Geometry: output.Geometry
|
|
5612
|
-
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
5613
|
-
: undefined,
|
|
5561
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context) : undefined,
|
|
5614
5562
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5615
|
-
UpdateTime: output.UpdateTime
|
|
5616
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5617
|
-
: undefined,
|
|
5563
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5618
5564
|
};
|
|
5619
5565
|
};
|
|
5620
5566
|
const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context) => {
|
|
@@ -5630,16 +5576,12 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
|
|
|
5630
5576
|
};
|
|
5631
5577
|
const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
5632
5578
|
return {
|
|
5633
|
-
CreateTime: output.CreateTime
|
|
5634
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5635
|
-
: undefined,
|
|
5579
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5636
5580
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5637
5581
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5638
5582
|
MapName: (0, smithy_client_1.expectString)(output.MapName),
|
|
5639
5583
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5640
|
-
UpdateTime: output.UpdateTime
|
|
5641
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5642
|
-
: undefined,
|
|
5584
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5643
5585
|
};
|
|
5644
5586
|
};
|
|
5645
5587
|
const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
@@ -5655,16 +5597,12 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
|
5655
5597
|
};
|
|
5656
5598
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
|
|
5657
5599
|
return {
|
|
5658
|
-
CreateTime: output.CreateTime
|
|
5659
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5660
|
-
: undefined,
|
|
5600
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5661
5601
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5662
5602
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5663
5603
|
IndexName: (0, smithy_client_1.expectString)(output.IndexName),
|
|
5664
5604
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5665
|
-
UpdateTime: output.UpdateTime
|
|
5666
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5667
|
-
: undefined,
|
|
5605
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5668
5606
|
};
|
|
5669
5607
|
};
|
|
5670
5608
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
@@ -5681,15 +5619,11 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
|
|
|
5681
5619
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
5682
5620
|
return {
|
|
5683
5621
|
CalculatorName: (0, smithy_client_1.expectString)(output.CalculatorName),
|
|
5684
|
-
CreateTime: output.CreateTime
|
|
5685
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5686
|
-
: undefined,
|
|
5622
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5687
5623
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5688
5624
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5689
5625
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5690
|
-
UpdateTime: output.UpdateTime
|
|
5691
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5692
|
-
: undefined,
|
|
5626
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5693
5627
|
};
|
|
5694
5628
|
};
|
|
5695
5629
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
@@ -5705,16 +5639,12 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
|
|
|
5705
5639
|
};
|
|
5706
5640
|
const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
5707
5641
|
return {
|
|
5708
|
-
CreateTime: output.CreateTime
|
|
5709
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5710
|
-
: undefined,
|
|
5642
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5711
5643
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5712
5644
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5713
5645
|
PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
|
|
5714
5646
|
TrackerName: (0, smithy_client_1.expectString)(output.TrackerName),
|
|
5715
|
-
UpdateTime: output.UpdateTime
|
|
5716
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5717
|
-
: undefined,
|
|
5647
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5718
5648
|
};
|
|
5719
5649
|
};
|
|
5720
5650
|
const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context) => {
|
|
@@ -5737,9 +5667,7 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
5737
5667
|
return {
|
|
5738
5668
|
AddressNumber: (0, smithy_client_1.expectString)(output.AddressNumber),
|
|
5739
5669
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
5740
|
-
Geometry: output.Geometry
|
|
5741
|
-
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
5742
|
-
: undefined,
|
|
5670
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context) : undefined,
|
|
5743
5671
|
Interpolated: (0, smithy_client_1.expectBoolean)(output.Interpolated),
|
|
5744
5672
|
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
5745
5673
|
Municipality: (0, smithy_client_1.expectString)(output.Municipality),
|
|
@@ -5748,16 +5676,12 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
5748
5676
|
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
5749
5677
|
Street: (0, smithy_client_1.expectString)(output.Street),
|
|
5750
5678
|
SubRegion: (0, smithy_client_1.expectString)(output.SubRegion),
|
|
5751
|
-
TimeZone: output.TimeZone
|
|
5752
|
-
? deserializeAws_restJson1TimeZone(output.TimeZone, context)
|
|
5753
|
-
: undefined,
|
|
5679
|
+
TimeZone: output.TimeZone != null ? deserializeAws_restJson1TimeZone(output.TimeZone, context) : undefined,
|
|
5754
5680
|
};
|
|
5755
5681
|
};
|
|
5756
5682
|
const deserializeAws_restJson1PlaceGeometry = (output, context) => {
|
|
5757
5683
|
return {
|
|
5758
|
-
Point: output.Point
|
|
5759
|
-
? deserializeAws_restJson1Position(output.Point, context)
|
|
5760
|
-
: undefined,
|
|
5684
|
+
Point: output.Point != null ? deserializeAws_restJson1Position(output.Point, context) : undefined,
|
|
5761
5685
|
};
|
|
5762
5686
|
};
|
|
5763
5687
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
@@ -5813,9 +5737,7 @@ const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
|
|
|
5813
5737
|
return {
|
|
5814
5738
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5815
5739
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5816
|
-
Error: output.Error
|
|
5817
|
-
? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context)
|
|
5818
|
-
: undefined,
|
|
5740
|
+
Error: output.Error != null ? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context) : undefined,
|
|
5819
5741
|
};
|
|
5820
5742
|
};
|
|
5821
5743
|
const deserializeAws_restJson1RouteMatrixEntryError = (output, context) => {
|
|
@@ -5838,9 +5760,7 @@ const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
|
|
|
5838
5760
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
5839
5761
|
return {
|
|
5840
5762
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5841
|
-
Place: output.Place
|
|
5842
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
5843
|
-
: undefined,
|
|
5763
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
5844
5764
|
};
|
|
5845
5765
|
};
|
|
5846
5766
|
const deserializeAws_restJson1SearchForPositionResultList = (output, context) => {
|
|
@@ -5873,9 +5793,7 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context)
|
|
|
5873
5793
|
const deserializeAws_restJson1SearchForTextResult = (output, context) => {
|
|
5874
5794
|
return {
|
|
5875
5795
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5876
|
-
Place: output.Place
|
|
5877
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
5878
|
-
: undefined,
|
|
5796
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
5879
5797
|
Relevance: (0, smithy_client_1.limitedParseDouble)(output.Relevance),
|
|
5880
5798
|
};
|
|
5881
5799
|
};
|
|
@@ -5895,21 +5813,15 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, cont
|
|
|
5895
5813
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5896
5814
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
5897
5815
|
MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
|
|
5898
|
-
Position: output.Position
|
|
5899
|
-
? deserializeAws_restJson1Position(output.Position, context)
|
|
5900
|
-
: undefined,
|
|
5816
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5901
5817
|
};
|
|
5902
5818
|
};
|
|
5903
5819
|
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, context) => {
|
|
5904
5820
|
return {
|
|
5905
|
-
BiasPosition: output.BiasPosition
|
|
5906
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
5907
|
-
: undefined,
|
|
5821
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
5908
5822
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5909
|
-
FilterBBox: output.FilterBBox
|
|
5910
|
-
|
|
5911
|
-
: undefined,
|
|
5912
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
5823
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
5824
|
+
FilterCountries: output.FilterCountries != null
|
|
5913
5825
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
5914
5826
|
: undefined,
|
|
5915
5827
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
@@ -5919,21 +5831,15 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, c
|
|
|
5919
5831
|
};
|
|
5920
5832
|
const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context) => {
|
|
5921
5833
|
return {
|
|
5922
|
-
BiasPosition: output.BiasPosition
|
|
5923
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
5924
|
-
: undefined,
|
|
5834
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
5925
5835
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5926
|
-
FilterBBox: output.FilterBBox
|
|
5927
|
-
|
|
5928
|
-
: undefined,
|
|
5929
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
5836
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
5837
|
+
FilterCountries: output.FilterCountries != null
|
|
5930
5838
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
5931
5839
|
: undefined,
|
|
5932
5840
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
5933
5841
|
MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
|
|
5934
|
-
ResultBBox: output.ResultBBox
|
|
5935
|
-
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
5936
|
-
: undefined,
|
|
5842
|
+
ResultBBox: output.ResultBBox != null ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context) : undefined,
|
|
5937
5843
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
5938
5844
|
};
|
|
5939
5845
|
};
|
|
@@ -5941,13 +5847,9 @@ const deserializeAws_restJson1Step = (output, context) => {
|
|
|
5941
5847
|
return {
|
|
5942
5848
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5943
5849
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5944
|
-
EndPosition: output.EndPosition
|
|
5945
|
-
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
5946
|
-
: undefined,
|
|
5850
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
5947
5851
|
GeometryOffset: (0, smithy_client_1.expectInt32)(output.GeometryOffset),
|
|
5948
|
-
StartPosition: output.StartPosition
|
|
5949
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
5950
|
-
: undefined,
|
|
5852
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
5951
5853
|
};
|
|
5952
5854
|
};
|
|
5953
5855
|
const deserializeAws_restJson1StepList = (output, context) => {
|
|
@@ -6044,5 +5946,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6044
5946
|
if (data["__type"] !== undefined) {
|
|
6045
5947
|
return sanitizeErrorCode(data["__type"]);
|
|
6046
5948
|
}
|
|
6047
|
-
return "";
|
|
6048
5949
|
};
|