@aws-sdk/client-location 3.306.0 → 3.310.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.
Files changed (121) hide show
  1. package/dist-cjs/commands/AssociateTrackerConsumerCommand.js +2 -2
  2. package/dist-cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +2 -2
  3. package/dist-cjs/commands/BatchDeleteGeofenceCommand.js +2 -2
  4. package/dist-cjs/commands/BatchEvaluateGeofencesCommand.js +2 -2
  5. package/dist-cjs/commands/BatchGetDevicePositionCommand.js +2 -2
  6. package/dist-cjs/commands/BatchPutGeofenceCommand.js +2 -2
  7. package/dist-cjs/commands/BatchUpdateDevicePositionCommand.js +2 -2
  8. package/dist-cjs/commands/CalculateRouteCommand.js +2 -2
  9. package/dist-cjs/commands/CalculateRouteMatrixCommand.js +2 -2
  10. package/dist-cjs/commands/CreateGeofenceCollectionCommand.js +2 -2
  11. package/dist-cjs/commands/CreateKeyCommand.js +2 -2
  12. package/dist-cjs/commands/CreateMapCommand.js +2 -2
  13. package/dist-cjs/commands/CreatePlaceIndexCommand.js +2 -2
  14. package/dist-cjs/commands/CreateRouteCalculatorCommand.js +2 -2
  15. package/dist-cjs/commands/CreateTrackerCommand.js +2 -2
  16. package/dist-cjs/commands/DeleteGeofenceCollectionCommand.js +2 -2
  17. package/dist-cjs/commands/DeleteKeyCommand.js +2 -2
  18. package/dist-cjs/commands/DeleteMapCommand.js +2 -2
  19. package/dist-cjs/commands/DeletePlaceIndexCommand.js +2 -2
  20. package/dist-cjs/commands/DeleteRouteCalculatorCommand.js +2 -2
  21. package/dist-cjs/commands/DeleteTrackerCommand.js +2 -2
  22. package/dist-cjs/commands/DescribeGeofenceCollectionCommand.js +2 -2
  23. package/dist-cjs/commands/DescribeKeyCommand.js +2 -2
  24. package/dist-cjs/commands/DescribeMapCommand.js +2 -2
  25. package/dist-cjs/commands/DescribePlaceIndexCommand.js +2 -2
  26. package/dist-cjs/commands/DescribeRouteCalculatorCommand.js +2 -2
  27. package/dist-cjs/commands/DescribeTrackerCommand.js +2 -2
  28. package/dist-cjs/commands/DisassociateTrackerConsumerCommand.js +2 -2
  29. package/dist-cjs/commands/GetDevicePositionCommand.js +2 -2
  30. package/dist-cjs/commands/GetDevicePositionHistoryCommand.js +2 -2
  31. package/dist-cjs/commands/GetGeofenceCommand.js +2 -2
  32. package/dist-cjs/commands/GetMapGlyphsCommand.js +2 -2
  33. package/dist-cjs/commands/GetMapSpritesCommand.js +2 -2
  34. package/dist-cjs/commands/GetMapStyleDescriptorCommand.js +2 -2
  35. package/dist-cjs/commands/GetMapTileCommand.js +2 -2
  36. package/dist-cjs/commands/GetPlaceCommand.js +2 -2
  37. package/dist-cjs/commands/ListDevicePositionsCommand.js +2 -2
  38. package/dist-cjs/commands/ListGeofenceCollectionsCommand.js +2 -2
  39. package/dist-cjs/commands/ListGeofencesCommand.js +2 -2
  40. package/dist-cjs/commands/ListKeysCommand.js +2 -2
  41. package/dist-cjs/commands/ListMapsCommand.js +2 -2
  42. package/dist-cjs/commands/ListPlaceIndexesCommand.js +2 -2
  43. package/dist-cjs/commands/ListRouteCalculatorsCommand.js +2 -2
  44. package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
  45. package/dist-cjs/commands/ListTrackerConsumersCommand.js +2 -2
  46. package/dist-cjs/commands/ListTrackersCommand.js +2 -2
  47. package/dist-cjs/commands/PutGeofenceCommand.js +2 -2
  48. package/dist-cjs/commands/SearchPlaceIndexForPositionCommand.js +2 -2
  49. package/dist-cjs/commands/SearchPlaceIndexForSuggestionsCommand.js +2 -2
  50. package/dist-cjs/commands/SearchPlaceIndexForTextCommand.js +2 -2
  51. package/dist-cjs/commands/TagResourceCommand.js +2 -2
  52. package/dist-cjs/commands/UntagResourceCommand.js +2 -2
  53. package/dist-cjs/commands/UpdateGeofenceCollectionCommand.js +2 -2
  54. package/dist-cjs/commands/UpdateKeyCommand.js +2 -2
  55. package/dist-cjs/commands/UpdateMapCommand.js +2 -2
  56. package/dist-cjs/commands/UpdatePlaceIndexCommand.js +2 -2
  57. package/dist-cjs/commands/UpdateRouteCalculatorCommand.js +2 -2
  58. package/dist-cjs/commands/UpdateTrackerCommand.js +2 -2
  59. package/dist-cjs/protocols/Aws_restJson1.js +925 -963
  60. package/dist-es/commands/AssociateTrackerConsumerCommand.js +3 -3
  61. package/dist-es/commands/BatchDeleteDevicePositionHistoryCommand.js +3 -3
  62. package/dist-es/commands/BatchDeleteGeofenceCommand.js +3 -3
  63. package/dist-es/commands/BatchEvaluateGeofencesCommand.js +3 -3
  64. package/dist-es/commands/BatchGetDevicePositionCommand.js +3 -3
  65. package/dist-es/commands/BatchPutGeofenceCommand.js +3 -3
  66. package/dist-es/commands/BatchUpdateDevicePositionCommand.js +3 -3
  67. package/dist-es/commands/CalculateRouteCommand.js +3 -3
  68. package/dist-es/commands/CalculateRouteMatrixCommand.js +3 -3
  69. package/dist-es/commands/CreateGeofenceCollectionCommand.js +3 -3
  70. package/dist-es/commands/CreateKeyCommand.js +3 -3
  71. package/dist-es/commands/CreateMapCommand.js +3 -3
  72. package/dist-es/commands/CreatePlaceIndexCommand.js +3 -3
  73. package/dist-es/commands/CreateRouteCalculatorCommand.js +3 -3
  74. package/dist-es/commands/CreateTrackerCommand.js +3 -3
  75. package/dist-es/commands/DeleteGeofenceCollectionCommand.js +3 -3
  76. package/dist-es/commands/DeleteKeyCommand.js +3 -3
  77. package/dist-es/commands/DeleteMapCommand.js +3 -3
  78. package/dist-es/commands/DeletePlaceIndexCommand.js +3 -3
  79. package/dist-es/commands/DeleteRouteCalculatorCommand.js +3 -3
  80. package/dist-es/commands/DeleteTrackerCommand.js +3 -3
  81. package/dist-es/commands/DescribeGeofenceCollectionCommand.js +3 -3
  82. package/dist-es/commands/DescribeKeyCommand.js +3 -3
  83. package/dist-es/commands/DescribeMapCommand.js +3 -3
  84. package/dist-es/commands/DescribePlaceIndexCommand.js +3 -3
  85. package/dist-es/commands/DescribeRouteCalculatorCommand.js +3 -3
  86. package/dist-es/commands/DescribeTrackerCommand.js +3 -3
  87. package/dist-es/commands/DisassociateTrackerConsumerCommand.js +3 -3
  88. package/dist-es/commands/GetDevicePositionCommand.js +3 -3
  89. package/dist-es/commands/GetDevicePositionHistoryCommand.js +3 -3
  90. package/dist-es/commands/GetGeofenceCommand.js +3 -3
  91. package/dist-es/commands/GetMapGlyphsCommand.js +3 -3
  92. package/dist-es/commands/GetMapSpritesCommand.js +3 -3
  93. package/dist-es/commands/GetMapStyleDescriptorCommand.js +3 -3
  94. package/dist-es/commands/GetMapTileCommand.js +3 -3
  95. package/dist-es/commands/GetPlaceCommand.js +3 -3
  96. package/dist-es/commands/ListDevicePositionsCommand.js +3 -3
  97. package/dist-es/commands/ListGeofenceCollectionsCommand.js +3 -3
  98. package/dist-es/commands/ListGeofencesCommand.js +3 -3
  99. package/dist-es/commands/ListKeysCommand.js +3 -3
  100. package/dist-es/commands/ListMapsCommand.js +3 -3
  101. package/dist-es/commands/ListPlaceIndexesCommand.js +3 -3
  102. package/dist-es/commands/ListRouteCalculatorsCommand.js +3 -3
  103. package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
  104. package/dist-es/commands/ListTrackerConsumersCommand.js +3 -3
  105. package/dist-es/commands/ListTrackersCommand.js +3 -3
  106. package/dist-es/commands/PutGeofenceCommand.js +3 -3
  107. package/dist-es/commands/SearchPlaceIndexForPositionCommand.js +3 -3
  108. package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +3 -3
  109. package/dist-es/commands/SearchPlaceIndexForTextCommand.js +3 -3
  110. package/dist-es/commands/TagResourceCommand.js +3 -3
  111. package/dist-es/commands/UntagResourceCommand.js +3 -3
  112. package/dist-es/commands/UpdateGeofenceCollectionCommand.js +3 -3
  113. package/dist-es/commands/UpdateKeyCommand.js +3 -3
  114. package/dist-es/commands/UpdateMapCommand.js +3 -3
  115. package/dist-es/commands/UpdatePlaceIndexCommand.js +3 -3
  116. package/dist-es/commands/UpdateRouteCalculatorCommand.js +3 -3
  117. package/dist-es/commands/UpdateTrackerCommand.js +3 -3
  118. package/dist-es/protocols/Aws_restJson1.js +806 -844
  119. package/dist-types/protocols/Aws_restJson1.d.ts +464 -116
  120. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +116 -116
  121. package/package.json +35 -35
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } f
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { LocationServiceException as __BaseException } from "../models/LocationServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
- export const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, context) => {
5
+ export const se_AssociateTrackerConsumerCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {
8
8
  "content-type": "application/json",
@@ -31,7 +31,7 @@ export const serializeAws_restJson1AssociateTrackerConsumerCommand = async (inpu
31
31
  body,
32
32
  });
33
33
  };
34
- export const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (input, context) => {
34
+ export const se_BatchDeleteDevicePositionHistoryCommand = async (input, context) => {
35
35
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
36
  const headers = {
37
37
  "content-type": "application/json",
@@ -41,7 +41,7 @@ export const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = asy
41
41
  resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
42
42
  let body;
43
43
  body = JSON.stringify({
44
- ...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) }),
44
+ ...(input.DeviceIds != null && { DeviceIds: se_DeviceIdsList(input.DeviceIds, context) }),
45
45
  });
46
46
  let { hostname: resolvedHostname } = await context.endpoint();
47
47
  if (context.disableHostPrefix !== true) {
@@ -60,7 +60,7 @@ export const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = asy
60
60
  body,
61
61
  });
62
62
  };
63
- export const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context) => {
63
+ export const se_BatchDeleteGeofenceCommand = async (input, context) => {
64
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
65
  const headers = {
66
66
  "content-type": "application/json",
@@ -70,7 +70,7 @@ export const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, co
70
70
  resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
71
71
  let body;
72
72
  body = JSON.stringify({
73
- ...(input.GeofenceIds != null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) }),
73
+ ...(input.GeofenceIds != null && { GeofenceIds: se_IdList(input.GeofenceIds, context) }),
74
74
  });
75
75
  let { hostname: resolvedHostname } = await context.endpoint();
76
76
  if (context.disableHostPrefix !== true) {
@@ -89,7 +89,7 @@ export const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, co
89
89
  body,
90
90
  });
91
91
  };
92
- export const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, context) => {
92
+ export const se_BatchEvaluateGeofencesCommand = async (input, context) => {
93
93
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
94
94
  const headers = {
95
95
  "content-type": "application/json",
@@ -100,7 +100,7 @@ export const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input,
100
100
  let body;
101
101
  body = JSON.stringify({
102
102
  ...(input.DevicePositionUpdates != null && {
103
- DevicePositionUpdates: serializeAws_restJson1DevicePositionUpdateList(input.DevicePositionUpdates, context),
103
+ DevicePositionUpdates: se_DevicePositionUpdateList(input.DevicePositionUpdates, context),
104
104
  }),
105
105
  });
106
106
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -120,7 +120,7 @@ export const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input,
120
120
  body,
121
121
  });
122
122
  };
123
- export const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, context) => {
123
+ export const se_BatchGetDevicePositionCommand = async (input, context) => {
124
124
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
125
  const headers = {
126
126
  "content-type": "application/json",
@@ -130,7 +130,7 @@ export const serializeAws_restJson1BatchGetDevicePositionCommand = async (input,
130
130
  resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
131
131
  let body;
132
132
  body = JSON.stringify({
133
- ...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) }),
133
+ ...(input.DeviceIds != null && { DeviceIds: se_IdList(input.DeviceIds, context) }),
134
134
  });
135
135
  let { hostname: resolvedHostname } = await context.endpoint();
136
136
  if (context.disableHostPrefix !== true) {
@@ -149,7 +149,7 @@ export const serializeAws_restJson1BatchGetDevicePositionCommand = async (input,
149
149
  body,
150
150
  });
151
151
  };
152
- export const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) => {
152
+ export const se_BatchPutGeofenceCommand = async (input, context) => {
153
153
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
154
154
  const headers = {
155
155
  "content-type": "application/json",
@@ -159,9 +159,7 @@ export const serializeAws_restJson1BatchPutGeofenceCommand = async (input, conte
159
159
  resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
160
160
  let body;
161
161
  body = JSON.stringify({
162
- ...(input.Entries != null && {
163
- Entries: serializeAws_restJson1BatchPutGeofenceRequestEntryList(input.Entries, context),
164
- }),
162
+ ...(input.Entries != null && { Entries: se_BatchPutGeofenceRequestEntryList(input.Entries, context) }),
165
163
  });
166
164
  let { hostname: resolvedHostname } = await context.endpoint();
167
165
  if (context.disableHostPrefix !== true) {
@@ -180,7 +178,7 @@ export const serializeAws_restJson1BatchPutGeofenceCommand = async (input, conte
180
178
  body,
181
179
  });
182
180
  };
183
- export const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, context) => {
181
+ export const se_BatchUpdateDevicePositionCommand = async (input, context) => {
184
182
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
185
183
  const headers = {
186
184
  "content-type": "application/json",
@@ -190,7 +188,7 @@ export const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (inp
190
188
  resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
191
189
  let body;
192
190
  body = JSON.stringify({
193
- ...(input.Updates != null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) }),
191
+ ...(input.Updates != null && { Updates: se_DevicePositionUpdateList(input.Updates, context) }),
194
192
  });
195
193
  let { hostname: resolvedHostname } = await context.endpoint();
196
194
  if (context.disableHostPrefix !== true) {
@@ -209,7 +207,7 @@ export const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (inp
209
207
  body,
210
208
  });
211
209
  };
212
- export const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
210
+ export const se_CalculateRouteCommand = async (input, context) => {
213
211
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
214
212
  const headers = {
215
213
  "content-type": "application/json",
@@ -220,24 +218,20 @@ export const serializeAws_restJson1CalculateRouteCommand = async (input, context
220
218
  let body;
221
219
  body = JSON.stringify({
222
220
  ...(input.CarModeOptions != null && {
223
- CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
221
+ CarModeOptions: se_CalculateRouteCarModeOptions(input.CarModeOptions, context),
224
222
  }),
225
223
  ...(input.DepartNow != null && { DepartNow: input.DepartNow }),
226
- ...(input.DeparturePosition != null && {
227
- DeparturePosition: serializeAws_restJson1Position(input.DeparturePosition, context),
228
- }),
224
+ ...(input.DeparturePosition != null && { DeparturePosition: se_Position(input.DeparturePosition, context) }),
229
225
  ...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
230
- ...(input.DestinationPosition != null && {
231
- DestinationPosition: serializeAws_restJson1Position(input.DestinationPosition, context),
232
- }),
226
+ ...(input.DestinationPosition != null && { DestinationPosition: se_Position(input.DestinationPosition, context) }),
233
227
  ...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
234
228
  ...(input.IncludeLegGeometry != null && { IncludeLegGeometry: input.IncludeLegGeometry }),
235
229
  ...(input.TravelMode != null && { TravelMode: input.TravelMode }),
236
230
  ...(input.TruckModeOptions != null && {
237
- TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
231
+ TruckModeOptions: se_CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
238
232
  }),
239
233
  ...(input.WaypointPositions != null && {
240
- WaypointPositions: serializeAws_restJson1WaypointPositionList(input.WaypointPositions, context),
234
+ WaypointPositions: se_WaypointPositionList(input.WaypointPositions, context),
241
235
  }),
242
236
  });
243
237
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -257,7 +251,7 @@ export const serializeAws_restJson1CalculateRouteCommand = async (input, context
257
251
  body,
258
252
  });
259
253
  };
260
- export const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context) => {
254
+ export const se_CalculateRouteMatrixCommand = async (input, context) => {
261
255
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
262
256
  const headers = {
263
257
  "content-type": "application/json",
@@ -268,20 +262,18 @@ export const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, c
268
262
  let body;
269
263
  body = JSON.stringify({
270
264
  ...(input.CarModeOptions != null && {
271
- CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
265
+ CarModeOptions: se_CalculateRouteCarModeOptions(input.CarModeOptions, context),
272
266
  }),
273
267
  ...(input.DepartNow != null && { DepartNow: input.DepartNow }),
274
- ...(input.DeparturePositions != null && {
275
- DeparturePositions: serializeAws_restJson1PositionList(input.DeparturePositions, context),
276
- }),
268
+ ...(input.DeparturePositions != null && { DeparturePositions: se_PositionList(input.DeparturePositions, context) }),
277
269
  ...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
278
270
  ...(input.DestinationPositions != null && {
279
- DestinationPositions: serializeAws_restJson1PositionList(input.DestinationPositions, context),
271
+ DestinationPositions: se_PositionList(input.DestinationPositions, context),
280
272
  }),
281
273
  ...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
282
274
  ...(input.TravelMode != null && { TravelMode: input.TravelMode }),
283
275
  ...(input.TruckModeOptions != null && {
284
- TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
276
+ TruckModeOptions: se_CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
285
277
  }),
286
278
  });
287
279
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -301,7 +293,7 @@ export const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, c
301
293
  body,
302
294
  });
303
295
  };
304
- export const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, context) => {
296
+ export const se_CreateGeofenceCollectionCommand = async (input, context) => {
305
297
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
306
298
  const headers = {
307
299
  "content-type": "application/json",
@@ -314,7 +306,7 @@ export const serializeAws_restJson1CreateGeofenceCollectionCommand = async (inpu
314
306
  ...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
315
307
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
316
308
  ...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
317
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
309
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
318
310
  });
319
311
  let { hostname: resolvedHostname } = await context.endpoint();
320
312
  if (context.disableHostPrefix !== true) {
@@ -333,7 +325,7 @@ export const serializeAws_restJson1CreateGeofenceCollectionCommand = async (inpu
333
325
  body,
334
326
  });
335
327
  };
336
- export const serializeAws_restJson1CreateKeyCommand = async (input, context) => {
328
+ export const se_CreateKeyCommand = async (input, context) => {
337
329
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
338
330
  const headers = {
339
331
  "content-type": "application/json",
@@ -345,10 +337,8 @@ export const serializeAws_restJson1CreateKeyCommand = async (input, context) =>
345
337
  ...(input.ExpireTime != null && { ExpireTime: input.ExpireTime.toISOString().split(".")[0] + "Z" }),
346
338
  ...(input.KeyName != null && { KeyName: input.KeyName }),
347
339
  ...(input.NoExpiry != null && { NoExpiry: input.NoExpiry }),
348
- ...(input.Restrictions != null && {
349
- Restrictions: serializeAws_restJson1ApiKeyRestrictions(input.Restrictions, context),
350
- }),
351
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
340
+ ...(input.Restrictions != null && { Restrictions: se_ApiKeyRestrictions(input.Restrictions, context) }),
341
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
352
342
  });
353
343
  let { hostname: resolvedHostname } = await context.endpoint();
354
344
  if (context.disableHostPrefix !== true) {
@@ -367,7 +357,7 @@ export const serializeAws_restJson1CreateKeyCommand = async (input, context) =>
367
357
  body,
368
358
  });
369
359
  };
370
- export const serializeAws_restJson1CreateMapCommand = async (input, context) => {
360
+ export const se_CreateMapCommand = async (input, context) => {
371
361
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
372
362
  const headers = {
373
363
  "content-type": "application/json",
@@ -375,13 +365,11 @@ export const serializeAws_restJson1CreateMapCommand = async (input, context) =>
375
365
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps";
376
366
  let body;
377
367
  body = JSON.stringify({
378
- ...(input.Configuration != null && {
379
- Configuration: serializeAws_restJson1MapConfiguration(input.Configuration, context),
380
- }),
368
+ ...(input.Configuration != null && { Configuration: se_MapConfiguration(input.Configuration, context) }),
381
369
  ...(input.Description != null && { Description: input.Description }),
382
370
  ...(input.MapName != null && { MapName: input.MapName }),
383
371
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
384
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
372
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
385
373
  });
386
374
  let { hostname: resolvedHostname } = await context.endpoint();
387
375
  if (context.disableHostPrefix !== true) {
@@ -400,7 +388,7 @@ export const serializeAws_restJson1CreateMapCommand = async (input, context) =>
400
388
  body,
401
389
  });
402
390
  };
403
- export const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) => {
391
+ export const se_CreatePlaceIndexCommand = async (input, context) => {
404
392
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
393
  const headers = {
406
394
  "content-type": "application/json",
@@ -410,12 +398,12 @@ export const serializeAws_restJson1CreatePlaceIndexCommand = async (input, conte
410
398
  body = JSON.stringify({
411
399
  ...(input.DataSource != null && { DataSource: input.DataSource }),
412
400
  ...(input.DataSourceConfiguration != null && {
413
- DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
401
+ DataSourceConfiguration: se_DataSourceConfiguration(input.DataSourceConfiguration, context),
414
402
  }),
415
403
  ...(input.Description != null && { Description: input.Description }),
416
404
  ...(input.IndexName != null && { IndexName: input.IndexName }),
417
405
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
418
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
406
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
419
407
  });
420
408
  let { hostname: resolvedHostname } = await context.endpoint();
421
409
  if (context.disableHostPrefix !== true) {
@@ -434,7 +422,7 @@ export const serializeAws_restJson1CreatePlaceIndexCommand = async (input, conte
434
422
  body,
435
423
  });
436
424
  };
437
- export const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context) => {
425
+ export const se_CreateRouteCalculatorCommand = async (input, context) => {
438
426
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
439
427
  const headers = {
440
428
  "content-type": "application/json",
@@ -446,7 +434,7 @@ export const serializeAws_restJson1CreateRouteCalculatorCommand = async (input,
446
434
  ...(input.DataSource != null && { DataSource: input.DataSource }),
447
435
  ...(input.Description != null && { Description: input.Description }),
448
436
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
449
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
437
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
450
438
  });
451
439
  let { hostname: resolvedHostname } = await context.endpoint();
452
440
  if (context.disableHostPrefix !== true) {
@@ -465,7 +453,7 @@ export const serializeAws_restJson1CreateRouteCalculatorCommand = async (input,
465
453
  body,
466
454
  });
467
455
  };
468
- export const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
456
+ export const se_CreateTrackerCommand = async (input, context) => {
469
457
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
470
458
  const headers = {
471
459
  "content-type": "application/json",
@@ -478,7 +466,7 @@ export const serializeAws_restJson1CreateTrackerCommand = async (input, context)
478
466
  ...(input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering }),
479
467
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
480
468
  ...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
481
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
469
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
482
470
  ...(input.TrackerName != null && { TrackerName: input.TrackerName }),
483
471
  });
484
472
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -498,7 +486,7 @@ export const serializeAws_restJson1CreateTrackerCommand = async (input, context)
498
486
  body,
499
487
  });
500
488
  };
501
- export const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, context) => {
489
+ export const se_DeleteGeofenceCollectionCommand = async (input, context) => {
502
490
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
503
491
  const headers = {};
504
492
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -522,7 +510,7 @@ export const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (inpu
522
510
  body,
523
511
  });
524
512
  };
525
- export const serializeAws_restJson1DeleteKeyCommand = async (input, context) => {
513
+ export const se_DeleteKeyCommand = async (input, context) => {
526
514
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
527
515
  const headers = {};
528
516
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}";
@@ -545,7 +533,7 @@ export const serializeAws_restJson1DeleteKeyCommand = async (input, context) =>
545
533
  body,
546
534
  });
547
535
  };
548
- export const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
536
+ export const se_DeleteMapCommand = async (input, context) => {
549
537
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
550
538
  const headers = {};
551
539
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
@@ -568,7 +556,7 @@ export const serializeAws_restJson1DeleteMapCommand = async (input, context) =>
568
556
  body,
569
557
  });
570
558
  };
571
- export const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) => {
559
+ export const se_DeletePlaceIndexCommand = async (input, context) => {
572
560
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
573
561
  const headers = {};
574
562
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
@@ -591,7 +579,7 @@ export const serializeAws_restJson1DeletePlaceIndexCommand = async (input, conte
591
579
  body,
592
580
  });
593
581
  };
594
- export const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context) => {
582
+ export const se_DeleteRouteCalculatorCommand = async (input, context) => {
595
583
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
596
584
  const headers = {};
597
585
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}";
@@ -614,7 +602,7 @@ export const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input,
614
602
  body,
615
603
  });
616
604
  };
617
- export const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
605
+ export const se_DeleteTrackerCommand = async (input, context) => {
618
606
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
619
607
  const headers = {};
620
608
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
@@ -637,7 +625,7 @@ export const serializeAws_restJson1DeleteTrackerCommand = async (input, context)
637
625
  body,
638
626
  });
639
627
  };
640
- export const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, context) => {
628
+ export const se_DescribeGeofenceCollectionCommand = async (input, context) => {
641
629
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
642
630
  const headers = {};
643
631
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -661,7 +649,7 @@ export const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (in
661
649
  body,
662
650
  });
663
651
  };
664
- export const serializeAws_restJson1DescribeKeyCommand = async (input, context) => {
652
+ export const se_DescribeKeyCommand = async (input, context) => {
665
653
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
666
654
  const headers = {};
667
655
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}";
@@ -684,7 +672,7 @@ export const serializeAws_restJson1DescribeKeyCommand = async (input, context) =
684
672
  body,
685
673
  });
686
674
  };
687
- export const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
675
+ export const se_DescribeMapCommand = async (input, context) => {
688
676
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
689
677
  const headers = {};
690
678
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
@@ -707,7 +695,7 @@ export const serializeAws_restJson1DescribeMapCommand = async (input, context) =
707
695
  body,
708
696
  });
709
697
  };
710
- export const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) => {
698
+ export const se_DescribePlaceIndexCommand = async (input, context) => {
711
699
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
712
700
  const headers = {};
713
701
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
@@ -730,7 +718,7 @@ export const serializeAws_restJson1DescribePlaceIndexCommand = async (input, con
730
718
  body,
731
719
  });
732
720
  };
733
- export const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input, context) => {
721
+ export const se_DescribeRouteCalculatorCommand = async (input, context) => {
734
722
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
735
723
  const headers = {};
736
724
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}";
@@ -753,7 +741,7 @@ export const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input
753
741
  body,
754
742
  });
755
743
  };
756
- export const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
744
+ export const se_DescribeTrackerCommand = async (input, context) => {
757
745
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
758
746
  const headers = {};
759
747
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
@@ -776,7 +764,7 @@ export const serializeAws_restJson1DescribeTrackerCommand = async (input, contex
776
764
  body,
777
765
  });
778
766
  };
779
- export const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, context) => {
767
+ export const se_DisassociateTrackerConsumerCommand = async (input, context) => {
780
768
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
781
769
  const headers = {};
782
770
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -801,7 +789,7 @@ export const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (i
801
789
  body,
802
790
  });
803
791
  };
804
- export const serializeAws_restJson1GetDevicePositionCommand = async (input, context) => {
792
+ export const se_GetDevicePositionCommand = async (input, context) => {
805
793
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
806
794
  const headers = {};
807
795
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -826,7 +814,7 @@ export const serializeAws_restJson1GetDevicePositionCommand = async (input, cont
826
814
  body,
827
815
  });
828
816
  };
829
- export const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, context) => {
817
+ export const se_GetDevicePositionHistoryCommand = async (input, context) => {
830
818
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
831
819
  const headers = {
832
820
  "content-type": "application/json",
@@ -863,7 +851,7 @@ export const serializeAws_restJson1GetDevicePositionHistoryCommand = async (inpu
863
851
  body,
864
852
  });
865
853
  };
866
- export const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
854
+ export const se_GetGeofenceCommand = async (input, context) => {
867
855
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
868
856
  const headers = {};
869
857
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -888,7 +876,7 @@ export const serializeAws_restJson1GetGeofenceCommand = async (input, context) =
888
876
  body,
889
877
  });
890
878
  };
891
- export const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
879
+ export const se_GetMapGlyphsCommand = async (input, context) => {
892
880
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
893
881
  const headers = {};
894
882
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -918,7 +906,7 @@ export const serializeAws_restJson1GetMapGlyphsCommand = async (input, context)
918
906
  body,
919
907
  });
920
908
  };
921
- export const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
909
+ export const se_GetMapSpritesCommand = async (input, context) => {
922
910
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
923
911
  const headers = {};
924
912
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -947,7 +935,7 @@ export const serializeAws_restJson1GetMapSpritesCommand = async (input, context)
947
935
  body,
948
936
  });
949
937
  };
950
- export const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context) => {
938
+ export const se_GetMapStyleDescriptorCommand = async (input, context) => {
951
939
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
952
940
  const headers = {};
953
941
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/style-descriptor";
@@ -974,7 +962,7 @@ export const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input,
974
962
  body,
975
963
  });
976
964
  };
977
- export const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
965
+ export const se_GetMapTileCommand = async (input, context) => {
978
966
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
979
967
  const headers = {};
980
968
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}";
@@ -1004,7 +992,7 @@ export const serializeAws_restJson1GetMapTileCommand = async (input, context) =>
1004
992
  body,
1005
993
  });
1006
994
  };
1007
- export const serializeAws_restJson1GetPlaceCommand = async (input, context) => {
995
+ export const se_GetPlaceCommand = async (input, context) => {
1008
996
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1009
997
  const headers = {};
1010
998
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
@@ -1033,7 +1021,7 @@ export const serializeAws_restJson1GetPlaceCommand = async (input, context) => {
1033
1021
  body,
1034
1022
  });
1035
1023
  };
1036
- export const serializeAws_restJson1ListDevicePositionsCommand = async (input, context) => {
1024
+ export const se_ListDevicePositionsCommand = async (input, context) => {
1037
1025
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1038
1026
  const headers = {
1039
1027
  "content-type": "application/json",
@@ -1063,7 +1051,7 @@ export const serializeAws_restJson1ListDevicePositionsCommand = async (input, co
1063
1051
  body,
1064
1052
  });
1065
1053
  };
1066
- export const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, context) => {
1054
+ export const se_ListGeofenceCollectionsCommand = async (input, context) => {
1067
1055
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1068
1056
  const headers = {
1069
1057
  "content-type": "application/json",
@@ -1091,7 +1079,7 @@ export const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input
1091
1079
  body,
1092
1080
  });
1093
1081
  };
1094
- export const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
1082
+ export const se_ListGeofencesCommand = async (input, context) => {
1095
1083
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1096
1084
  const headers = {
1097
1085
  "content-type": "application/json",
@@ -1121,7 +1109,7 @@ export const serializeAws_restJson1ListGeofencesCommand = async (input, context)
1121
1109
  body,
1122
1110
  });
1123
1111
  };
1124
- export const serializeAws_restJson1ListKeysCommand = async (input, context) => {
1112
+ export const se_ListKeysCommand = async (input, context) => {
1125
1113
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1126
1114
  const headers = {
1127
1115
  "content-type": "application/json",
@@ -1129,7 +1117,7 @@ export const serializeAws_restJson1ListKeysCommand = async (input, context) => {
1129
1117
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/list-keys";
1130
1118
  let body;
1131
1119
  body = JSON.stringify({
1132
- ...(input.Filter != null && { Filter: serializeAws_restJson1ApiKeyFilter(input.Filter, context) }),
1120
+ ...(input.Filter != null && { Filter: se_ApiKeyFilter(input.Filter, context) }),
1133
1121
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1134
1122
  ...(input.NextToken != null && { NextToken: input.NextToken }),
1135
1123
  });
@@ -1150,7 +1138,7 @@ export const serializeAws_restJson1ListKeysCommand = async (input, context) => {
1150
1138
  body,
1151
1139
  });
1152
1140
  };
1153
- export const serializeAws_restJson1ListMapsCommand = async (input, context) => {
1141
+ export const se_ListMapsCommand = async (input, context) => {
1154
1142
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1155
1143
  const headers = {
1156
1144
  "content-type": "application/json",
@@ -1178,7 +1166,7 @@ export const serializeAws_restJson1ListMapsCommand = async (input, context) => {
1178
1166
  body,
1179
1167
  });
1180
1168
  };
1181
- export const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) => {
1169
+ export const se_ListPlaceIndexesCommand = async (input, context) => {
1182
1170
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1183
1171
  const headers = {
1184
1172
  "content-type": "application/json",
@@ -1206,7 +1194,7 @@ export const serializeAws_restJson1ListPlaceIndexesCommand = async (input, conte
1206
1194
  body,
1207
1195
  });
1208
1196
  };
1209
- export const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context) => {
1197
+ export const se_ListRouteCalculatorsCommand = async (input, context) => {
1210
1198
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1211
1199
  const headers = {
1212
1200
  "content-type": "application/json",
@@ -1234,7 +1222,7 @@ export const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, c
1234
1222
  body,
1235
1223
  });
1236
1224
  };
1237
- export const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
1225
+ export const se_ListTagsForResourceCommand = async (input, context) => {
1238
1226
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1239
1227
  const headers = {};
1240
1228
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -1257,7 +1245,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
1257
1245
  body,
1258
1246
  });
1259
1247
  };
1260
- export const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context) => {
1248
+ export const se_ListTrackerConsumersCommand = async (input, context) => {
1261
1249
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1262
1250
  const headers = {
1263
1251
  "content-type": "application/json",
@@ -1287,7 +1275,7 @@ export const serializeAws_restJson1ListTrackerConsumersCommand = async (input, c
1287
1275
  body,
1288
1276
  });
1289
1277
  };
1290
- export const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
1278
+ export const se_ListTrackersCommand = async (input, context) => {
1291
1279
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1292
1280
  const headers = {
1293
1281
  "content-type": "application/json",
@@ -1315,7 +1303,7 @@ export const serializeAws_restJson1ListTrackersCommand = async (input, context)
1315
1303
  body,
1316
1304
  });
1317
1305
  };
1318
- export const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
1306
+ export const se_PutGeofenceCommand = async (input, context) => {
1319
1307
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1320
1308
  const headers = {
1321
1309
  "content-type": "application/json",
@@ -1326,7 +1314,7 @@ export const serializeAws_restJson1PutGeofenceCommand = async (input, context) =
1326
1314
  resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
1327
1315
  let body;
1328
1316
  body = JSON.stringify({
1329
- ...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
1317
+ ...(input.Geometry != null && { Geometry: se_GeofenceGeometry(input.Geometry, context) }),
1330
1318
  });
1331
1319
  let { hostname: resolvedHostname } = await context.endpoint();
1332
1320
  if (context.disableHostPrefix !== true) {
@@ -1345,7 +1333,7 @@ export const serializeAws_restJson1PutGeofenceCommand = async (input, context) =
1345
1333
  body,
1346
1334
  });
1347
1335
  };
1348
- export const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, context) => {
1336
+ export const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
1349
1337
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1350
1338
  const headers = {
1351
1339
  "content-type": "application/json",
@@ -1357,7 +1345,7 @@ export const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (i
1357
1345
  body = JSON.stringify({
1358
1346
  ...(input.Language != null && { Language: input.Language }),
1359
1347
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1360
- ...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
1348
+ ...(input.Position != null && { Position: se_Position(input.Position, context) }),
1361
1349
  });
1362
1350
  let { hostname: resolvedHostname } = await context.endpoint();
1363
1351
  if (context.disableHostPrefix !== true) {
@@ -1376,7 +1364,7 @@ export const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (i
1376
1364
  body,
1377
1365
  });
1378
1366
  };
1379
- export const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
1367
+ export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
1380
1368
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1381
1369
  const headers = {
1382
1370
  "content-type": "application/json",
@@ -1386,11 +1374,9 @@ export const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async
1386
1374
  resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
1387
1375
  let body;
1388
1376
  body = JSON.stringify({
1389
- ...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
1390
- ...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
1391
- ...(input.FilterCountries != null && {
1392
- FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
1393
- }),
1377
+ ...(input.BiasPosition != null && { BiasPosition: se_Position(input.BiasPosition, context) }),
1378
+ ...(input.FilterBBox != null && { FilterBBox: se_BoundingBox(input.FilterBBox, context) }),
1379
+ ...(input.FilterCountries != null && { FilterCountries: se_CountryCodeList(input.FilterCountries, context) }),
1394
1380
  ...(input.Language != null && { Language: input.Language }),
1395
1381
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1396
1382
  ...(input.Text != null && { Text: input.Text }),
@@ -1412,7 +1398,7 @@ export const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async
1412
1398
  body,
1413
1399
  });
1414
1400
  };
1415
- export const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, context) => {
1401
+ export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
1416
1402
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1417
1403
  const headers = {
1418
1404
  "content-type": "application/json",
@@ -1422,11 +1408,9 @@ export const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input
1422
1408
  resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
1423
1409
  let body;
1424
1410
  body = JSON.stringify({
1425
- ...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
1426
- ...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
1427
- ...(input.FilterCountries != null && {
1428
- FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
1429
- }),
1411
+ ...(input.BiasPosition != null && { BiasPosition: se_Position(input.BiasPosition, context) }),
1412
+ ...(input.FilterBBox != null && { FilterBBox: se_BoundingBox(input.FilterBBox, context) }),
1413
+ ...(input.FilterCountries != null && { FilterCountries: se_CountryCodeList(input.FilterCountries, context) }),
1430
1414
  ...(input.Language != null && { Language: input.Language }),
1431
1415
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1432
1416
  ...(input.Text != null && { Text: input.Text }),
@@ -1448,7 +1432,7 @@ export const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input
1448
1432
  body,
1449
1433
  });
1450
1434
  };
1451
- export const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1435
+ export const se_TagResourceCommand = async (input, context) => {
1452
1436
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1453
1437
  const headers = {
1454
1438
  "content-type": "application/json",
@@ -1457,7 +1441,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1457
1441
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1458
1442
  let body;
1459
1443
  body = JSON.stringify({
1460
- ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1444
+ ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
1461
1445
  });
1462
1446
  let { hostname: resolvedHostname } = await context.endpoint();
1463
1447
  if (context.disableHostPrefix !== true) {
@@ -1476,7 +1460,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
1476
1460
  body,
1477
1461
  });
1478
1462
  };
1479
- export const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1463
+ export const se_UntagResourceCommand = async (input, context) => {
1480
1464
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1481
1465
  const headers = {};
1482
1466
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
@@ -1506,7 +1490,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
1506
1490
  body,
1507
1491
  });
1508
1492
  };
1509
- export const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, context) => {
1493
+ export const se_UpdateGeofenceCollectionCommand = async (input, context) => {
1510
1494
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1511
1495
  const headers = {
1512
1496
  "content-type": "application/json",
@@ -1537,7 +1521,7 @@ export const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (inpu
1537
1521
  body,
1538
1522
  });
1539
1523
  };
1540
- export const serializeAws_restJson1UpdateKeyCommand = async (input, context) => {
1524
+ export const se_UpdateKeyCommand = async (input, context) => {
1541
1525
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1542
1526
  const headers = {
1543
1527
  "content-type": "application/json",
@@ -1550,9 +1534,7 @@ export const serializeAws_restJson1UpdateKeyCommand = async (input, context) =>
1550
1534
  ...(input.ExpireTime != null && { ExpireTime: input.ExpireTime.toISOString().split(".")[0] + "Z" }),
1551
1535
  ...(input.ForceUpdate != null && { ForceUpdate: input.ForceUpdate }),
1552
1536
  ...(input.NoExpiry != null && { NoExpiry: input.NoExpiry }),
1553
- ...(input.Restrictions != null && {
1554
- Restrictions: serializeAws_restJson1ApiKeyRestrictions(input.Restrictions, context),
1555
- }),
1537
+ ...(input.Restrictions != null && { Restrictions: se_ApiKeyRestrictions(input.Restrictions, context) }),
1556
1538
  });
1557
1539
  let { hostname: resolvedHostname } = await context.endpoint();
1558
1540
  if (context.disableHostPrefix !== true) {
@@ -1571,7 +1553,7 @@ export const serializeAws_restJson1UpdateKeyCommand = async (input, context) =>
1571
1553
  body,
1572
1554
  });
1573
1555
  };
1574
- export const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
1556
+ export const se_UpdateMapCommand = async (input, context) => {
1575
1557
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1576
1558
  const headers = {
1577
1559
  "content-type": "application/json",
@@ -1600,7 +1582,7 @@ export const serializeAws_restJson1UpdateMapCommand = async (input, context) =>
1600
1582
  body,
1601
1583
  });
1602
1584
  };
1603
- export const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) => {
1585
+ export const se_UpdatePlaceIndexCommand = async (input, context) => {
1604
1586
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1605
1587
  const headers = {
1606
1588
  "content-type": "application/json",
@@ -1610,7 +1592,7 @@ export const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, conte
1610
1592
  let body;
1611
1593
  body = JSON.stringify({
1612
1594
  ...(input.DataSourceConfiguration != null && {
1613
- DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
1595
+ DataSourceConfiguration: se_DataSourceConfiguration(input.DataSourceConfiguration, context),
1614
1596
  }),
1615
1597
  ...(input.Description != null && { Description: input.Description }),
1616
1598
  ...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
@@ -1632,7 +1614,7 @@ export const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, conte
1632
1614
  body,
1633
1615
  });
1634
1616
  };
1635
- export const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context) => {
1617
+ export const se_UpdateRouteCalculatorCommand = async (input, context) => {
1636
1618
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1637
1619
  const headers = {
1638
1620
  "content-type": "application/json",
@@ -1661,7 +1643,7 @@ export const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input,
1661
1643
  body,
1662
1644
  });
1663
1645
  };
1664
- export const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
1646
+ export const se_UpdateTrackerCommand = async (input, context) => {
1665
1647
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1666
1648
  const headers = {
1667
1649
  "content-type": "application/json",
@@ -1692,9 +1674,9 @@ export const serializeAws_restJson1UpdateTrackerCommand = async (input, context)
1692
1674
  body,
1693
1675
  });
1694
1676
  };
1695
- export const deserializeAws_restJson1AssociateTrackerConsumerCommand = async (output, context) => {
1677
+ export const de_AssociateTrackerConsumerCommand = async (output, context) => {
1696
1678
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1697
- return deserializeAws_restJson1AssociateTrackerConsumerCommandError(output, context);
1679
+ return de_AssociateTrackerConsumerCommandError(output, context);
1698
1680
  }
1699
1681
  const contents = map({
1700
1682
  $metadata: deserializeMetadata(output),
@@ -1702,7 +1684,7 @@ export const deserializeAws_restJson1AssociateTrackerConsumerCommand = async (ou
1702
1684
  await collectBody(output.body, context);
1703
1685
  return contents;
1704
1686
  };
1705
- const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (output, context) => {
1687
+ const de_AssociateTrackerConsumerCommandError = async (output, context) => {
1706
1688
  const parsedOutput = {
1707
1689
  ...output,
1708
1690
  body: await parseErrorBody(output.body, context),
@@ -1711,25 +1693,25 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
1711
1693
  switch (errorCode) {
1712
1694
  case "AccessDeniedException":
1713
1695
  case "com.amazonaws.location#AccessDeniedException":
1714
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1696
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1715
1697
  case "ConflictException":
1716
1698
  case "com.amazonaws.location#ConflictException":
1717
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1699
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1718
1700
  case "InternalServerException":
1719
1701
  case "com.amazonaws.location#InternalServerException":
1720
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1702
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1721
1703
  case "ResourceNotFoundException":
1722
1704
  case "com.amazonaws.location#ResourceNotFoundException":
1723
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1705
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1724
1706
  case "ServiceQuotaExceededException":
1725
1707
  case "com.amazonaws.location#ServiceQuotaExceededException":
1726
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1708
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1727
1709
  case "ThrottlingException":
1728
1710
  case "com.amazonaws.location#ThrottlingException":
1729
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1711
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1730
1712
  case "ValidationException":
1731
1713
  case "com.amazonaws.location#ValidationException":
1732
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1714
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1733
1715
  default:
1734
1716
  const parsedBody = parsedOutput.body;
1735
1717
  throwDefaultError({
@@ -1740,20 +1722,20 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
1740
1722
  });
1741
1723
  }
1742
1724
  };
1743
- export const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
1725
+ export const de_BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
1744
1726
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1745
- return deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError(output, context);
1727
+ return de_BatchDeleteDevicePositionHistoryCommandError(output, context);
1746
1728
  }
1747
1729
  const contents = map({
1748
1730
  $metadata: deserializeMetadata(output),
1749
1731
  });
1750
1732
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1751
1733
  if (data.Errors != null) {
1752
- contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
1734
+ contents.Errors = de_BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
1753
1735
  }
1754
1736
  return contents;
1755
1737
  };
1756
- const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = async (output, context) => {
1738
+ const de_BatchDeleteDevicePositionHistoryCommandError = async (output, context) => {
1757
1739
  const parsedOutput = {
1758
1740
  ...output,
1759
1741
  body: await parseErrorBody(output.body, context),
@@ -1762,19 +1744,19 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
1762
1744
  switch (errorCode) {
1763
1745
  case "AccessDeniedException":
1764
1746
  case "com.amazonaws.location#AccessDeniedException":
1765
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1747
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1766
1748
  case "InternalServerException":
1767
1749
  case "com.amazonaws.location#InternalServerException":
1768
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1750
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1769
1751
  case "ResourceNotFoundException":
1770
1752
  case "com.amazonaws.location#ResourceNotFoundException":
1771
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1753
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1772
1754
  case "ThrottlingException":
1773
1755
  case "com.amazonaws.location#ThrottlingException":
1774
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1756
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1775
1757
  case "ValidationException":
1776
1758
  case "com.amazonaws.location#ValidationException":
1777
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1759
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1778
1760
  default:
1779
1761
  const parsedBody = parsedOutput.body;
1780
1762
  throwDefaultError({
@@ -1785,20 +1767,20 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
1785
1767
  });
1786
1768
  }
1787
1769
  };
1788
- export const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, context) => {
1770
+ export const de_BatchDeleteGeofenceCommand = async (output, context) => {
1789
1771
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1790
- return deserializeAws_restJson1BatchDeleteGeofenceCommandError(output, context);
1772
+ return de_BatchDeleteGeofenceCommandError(output, context);
1791
1773
  }
1792
1774
  const contents = map({
1793
1775
  $metadata: deserializeMetadata(output),
1794
1776
  });
1795
1777
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1796
1778
  if (data.Errors != null) {
1797
- contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
1779
+ contents.Errors = de_BatchDeleteGeofenceErrorList(data.Errors, context);
1798
1780
  }
1799
1781
  return contents;
1800
1782
  };
1801
- const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, context) => {
1783
+ const de_BatchDeleteGeofenceCommandError = async (output, context) => {
1802
1784
  const parsedOutput = {
1803
1785
  ...output,
1804
1786
  body: await parseErrorBody(output.body, context),
@@ -1807,19 +1789,19 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
1807
1789
  switch (errorCode) {
1808
1790
  case "AccessDeniedException":
1809
1791
  case "com.amazonaws.location#AccessDeniedException":
1810
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1792
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1811
1793
  case "InternalServerException":
1812
1794
  case "com.amazonaws.location#InternalServerException":
1813
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1795
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1814
1796
  case "ResourceNotFoundException":
1815
1797
  case "com.amazonaws.location#ResourceNotFoundException":
1816
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1798
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1817
1799
  case "ThrottlingException":
1818
1800
  case "com.amazonaws.location#ThrottlingException":
1819
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1801
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1820
1802
  case "ValidationException":
1821
1803
  case "com.amazonaws.location#ValidationException":
1822
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1804
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1823
1805
  default:
1824
1806
  const parsedBody = parsedOutput.body;
1825
1807
  throwDefaultError({
@@ -1830,20 +1812,20 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
1830
1812
  });
1831
1813
  }
1832
1814
  };
1833
- export const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, context) => {
1815
+ export const de_BatchEvaluateGeofencesCommand = async (output, context) => {
1834
1816
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1835
- return deserializeAws_restJson1BatchEvaluateGeofencesCommandError(output, context);
1817
+ return de_BatchEvaluateGeofencesCommandError(output, context);
1836
1818
  }
1837
1819
  const contents = map({
1838
1820
  $metadata: deserializeMetadata(output),
1839
1821
  });
1840
1822
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1841
1823
  if (data.Errors != null) {
1842
- contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
1824
+ contents.Errors = de_BatchEvaluateGeofencesErrorList(data.Errors, context);
1843
1825
  }
1844
1826
  return contents;
1845
1827
  };
1846
- const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output, context) => {
1828
+ const de_BatchEvaluateGeofencesCommandError = async (output, context) => {
1847
1829
  const parsedOutput = {
1848
1830
  ...output,
1849
1831
  body: await parseErrorBody(output.body, context),
@@ -1852,19 +1834,19 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
1852
1834
  switch (errorCode) {
1853
1835
  case "AccessDeniedException":
1854
1836
  case "com.amazonaws.location#AccessDeniedException":
1855
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1837
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1856
1838
  case "InternalServerException":
1857
1839
  case "com.amazonaws.location#InternalServerException":
1858
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1840
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1859
1841
  case "ResourceNotFoundException":
1860
1842
  case "com.amazonaws.location#ResourceNotFoundException":
1861
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1843
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1862
1844
  case "ThrottlingException":
1863
1845
  case "com.amazonaws.location#ThrottlingException":
1864
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1846
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1865
1847
  case "ValidationException":
1866
1848
  case "com.amazonaws.location#ValidationException":
1867
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1849
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1868
1850
  default:
1869
1851
  const parsedBody = parsedOutput.body;
1870
1852
  throwDefaultError({
@@ -1875,23 +1857,23 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
1875
1857
  });
1876
1858
  }
1877
1859
  };
1878
- export const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, context) => {
1860
+ export const de_BatchGetDevicePositionCommand = async (output, context) => {
1879
1861
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1880
- return deserializeAws_restJson1BatchGetDevicePositionCommandError(output, context);
1862
+ return de_BatchGetDevicePositionCommandError(output, context);
1881
1863
  }
1882
1864
  const contents = map({
1883
1865
  $metadata: deserializeMetadata(output),
1884
1866
  });
1885
1867
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1886
1868
  if (data.DevicePositions != null) {
1887
- contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
1869
+ contents.DevicePositions = de_DevicePositionList(data.DevicePositions, context);
1888
1870
  }
1889
1871
  if (data.Errors != null) {
1890
- contents.Errors = deserializeAws_restJson1BatchGetDevicePositionErrorList(data.Errors, context);
1872
+ contents.Errors = de_BatchGetDevicePositionErrorList(data.Errors, context);
1891
1873
  }
1892
1874
  return contents;
1893
1875
  };
1894
- const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output, context) => {
1876
+ const de_BatchGetDevicePositionCommandError = async (output, context) => {
1895
1877
  const parsedOutput = {
1896
1878
  ...output,
1897
1879
  body: await parseErrorBody(output.body, context),
@@ -1900,19 +1882,19 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
1900
1882
  switch (errorCode) {
1901
1883
  case "AccessDeniedException":
1902
1884
  case "com.amazonaws.location#AccessDeniedException":
1903
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1885
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1904
1886
  case "InternalServerException":
1905
1887
  case "com.amazonaws.location#InternalServerException":
1906
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1888
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1907
1889
  case "ResourceNotFoundException":
1908
1890
  case "com.amazonaws.location#ResourceNotFoundException":
1909
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1891
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1910
1892
  case "ThrottlingException":
1911
1893
  case "com.amazonaws.location#ThrottlingException":
1912
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1894
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1913
1895
  case "ValidationException":
1914
1896
  case "com.amazonaws.location#ValidationException":
1915
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1897
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1916
1898
  default:
1917
1899
  const parsedBody = parsedOutput.body;
1918
1900
  throwDefaultError({
@@ -1923,23 +1905,23 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
1923
1905
  });
1924
1906
  }
1925
1907
  };
1926
- export const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context) => {
1908
+ export const de_BatchPutGeofenceCommand = async (output, context) => {
1927
1909
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1928
- return deserializeAws_restJson1BatchPutGeofenceCommandError(output, context);
1910
+ return de_BatchPutGeofenceCommandError(output, context);
1929
1911
  }
1930
1912
  const contents = map({
1931
1913
  $metadata: deserializeMetadata(output),
1932
1914
  });
1933
1915
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1934
1916
  if (data.Errors != null) {
1935
- contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
1917
+ contents.Errors = de_BatchPutGeofenceErrorList(data.Errors, context);
1936
1918
  }
1937
1919
  if (data.Successes != null) {
1938
- contents.Successes = deserializeAws_restJson1BatchPutGeofenceSuccessList(data.Successes, context);
1920
+ contents.Successes = de_BatchPutGeofenceSuccessList(data.Successes, context);
1939
1921
  }
1940
1922
  return contents;
1941
1923
  };
1942
- const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, context) => {
1924
+ const de_BatchPutGeofenceCommandError = async (output, context) => {
1943
1925
  const parsedOutput = {
1944
1926
  ...output,
1945
1927
  body: await parseErrorBody(output.body, context),
@@ -1948,19 +1930,19 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
1948
1930
  switch (errorCode) {
1949
1931
  case "AccessDeniedException":
1950
1932
  case "com.amazonaws.location#AccessDeniedException":
1951
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1933
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1952
1934
  case "InternalServerException":
1953
1935
  case "com.amazonaws.location#InternalServerException":
1954
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1936
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1955
1937
  case "ResourceNotFoundException":
1956
1938
  case "com.amazonaws.location#ResourceNotFoundException":
1957
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1939
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1958
1940
  case "ThrottlingException":
1959
1941
  case "com.amazonaws.location#ThrottlingException":
1960
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1942
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1961
1943
  case "ValidationException":
1962
1944
  case "com.amazonaws.location#ValidationException":
1963
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1945
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1964
1946
  default:
1965
1947
  const parsedBody = parsedOutput.body;
1966
1948
  throwDefaultError({
@@ -1971,20 +1953,20 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
1971
1953
  });
1972
1954
  }
1973
1955
  };
1974
- export const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output, context) => {
1956
+ export const de_BatchUpdateDevicePositionCommand = async (output, context) => {
1975
1957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1976
- return deserializeAws_restJson1BatchUpdateDevicePositionCommandError(output, context);
1958
+ return de_BatchUpdateDevicePositionCommandError(output, context);
1977
1959
  }
1978
1960
  const contents = map({
1979
1961
  $metadata: deserializeMetadata(output),
1980
1962
  });
1981
1963
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1982
1964
  if (data.Errors != null) {
1983
- contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
1965
+ contents.Errors = de_BatchUpdateDevicePositionErrorList(data.Errors, context);
1984
1966
  }
1985
1967
  return contents;
1986
1968
  };
1987
- const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (output, context) => {
1969
+ const de_BatchUpdateDevicePositionCommandError = async (output, context) => {
1988
1970
  const parsedOutput = {
1989
1971
  ...output,
1990
1972
  body: await parseErrorBody(output.body, context),
@@ -1993,19 +1975,19 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
1993
1975
  switch (errorCode) {
1994
1976
  case "AccessDeniedException":
1995
1977
  case "com.amazonaws.location#AccessDeniedException":
1996
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1978
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1997
1979
  case "InternalServerException":
1998
1980
  case "com.amazonaws.location#InternalServerException":
1999
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
1981
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2000
1982
  case "ResourceNotFoundException":
2001
1983
  case "com.amazonaws.location#ResourceNotFoundException":
2002
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1984
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2003
1985
  case "ThrottlingException":
2004
1986
  case "com.amazonaws.location#ThrottlingException":
2005
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1987
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2006
1988
  case "ValidationException":
2007
1989
  case "com.amazonaws.location#ValidationException":
2008
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
1990
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2009
1991
  default:
2010
1992
  const parsedBody = parsedOutput.body;
2011
1993
  throwDefaultError({
@@ -2016,23 +1998,23 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
2016
1998
  });
2017
1999
  }
2018
2000
  };
2019
- export const deserializeAws_restJson1CalculateRouteCommand = async (output, context) => {
2001
+ export const de_CalculateRouteCommand = async (output, context) => {
2020
2002
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2021
- return deserializeAws_restJson1CalculateRouteCommandError(output, context);
2003
+ return de_CalculateRouteCommandError(output, context);
2022
2004
  }
2023
2005
  const contents = map({
2024
2006
  $metadata: deserializeMetadata(output),
2025
2007
  });
2026
2008
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2027
2009
  if (data.Legs != null) {
2028
- contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
2010
+ contents.Legs = de_LegList(data.Legs, context);
2029
2011
  }
2030
2012
  if (data.Summary != null) {
2031
- contents.Summary = deserializeAws_restJson1CalculateRouteSummary(data.Summary, context);
2013
+ contents.Summary = de_CalculateRouteSummary(data.Summary, context);
2032
2014
  }
2033
2015
  return contents;
2034
2016
  };
2035
- const deserializeAws_restJson1CalculateRouteCommandError = async (output, context) => {
2017
+ const de_CalculateRouteCommandError = async (output, context) => {
2036
2018
  const parsedOutput = {
2037
2019
  ...output,
2038
2020
  body: await parseErrorBody(output.body, context),
@@ -2041,19 +2023,19 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
2041
2023
  switch (errorCode) {
2042
2024
  case "AccessDeniedException":
2043
2025
  case "com.amazonaws.location#AccessDeniedException":
2044
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2026
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2045
2027
  case "InternalServerException":
2046
2028
  case "com.amazonaws.location#InternalServerException":
2047
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2029
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2048
2030
  case "ResourceNotFoundException":
2049
2031
  case "com.amazonaws.location#ResourceNotFoundException":
2050
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2032
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2051
2033
  case "ThrottlingException":
2052
2034
  case "com.amazonaws.location#ThrottlingException":
2053
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2035
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2054
2036
  case "ValidationException":
2055
2037
  case "com.amazonaws.location#ValidationException":
2056
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2038
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2057
2039
  default:
2058
2040
  const parsedBody = parsedOutput.body;
2059
2041
  throwDefaultError({
@@ -2064,29 +2046,29 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
2064
2046
  });
2065
2047
  }
2066
2048
  };
2067
- export const deserializeAws_restJson1CalculateRouteMatrixCommand = async (output, context) => {
2049
+ export const de_CalculateRouteMatrixCommand = async (output, context) => {
2068
2050
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2069
- return deserializeAws_restJson1CalculateRouteMatrixCommandError(output, context);
2051
+ return de_CalculateRouteMatrixCommandError(output, context);
2070
2052
  }
2071
2053
  const contents = map({
2072
2054
  $metadata: deserializeMetadata(output),
2073
2055
  });
2074
2056
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2075
2057
  if (data.RouteMatrix != null) {
2076
- contents.RouteMatrix = deserializeAws_restJson1RouteMatrix(data.RouteMatrix, context);
2058
+ contents.RouteMatrix = de_RouteMatrix(data.RouteMatrix, context);
2077
2059
  }
2078
2060
  if (data.SnappedDeparturePositions != null) {
2079
- contents.SnappedDeparturePositions = deserializeAws_restJson1PositionList(data.SnappedDeparturePositions, context);
2061
+ contents.SnappedDeparturePositions = de_PositionList(data.SnappedDeparturePositions, context);
2080
2062
  }
2081
2063
  if (data.SnappedDestinationPositions != null) {
2082
- contents.SnappedDestinationPositions = deserializeAws_restJson1PositionList(data.SnappedDestinationPositions, context);
2064
+ contents.SnappedDestinationPositions = de_PositionList(data.SnappedDestinationPositions, context);
2083
2065
  }
2084
2066
  if (data.Summary != null) {
2085
- contents.Summary = deserializeAws_restJson1CalculateRouteMatrixSummary(data.Summary, context);
2067
+ contents.Summary = de_CalculateRouteMatrixSummary(data.Summary, context);
2086
2068
  }
2087
2069
  return contents;
2088
2070
  };
2089
- const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output, context) => {
2071
+ const de_CalculateRouteMatrixCommandError = async (output, context) => {
2090
2072
  const parsedOutput = {
2091
2073
  ...output,
2092
2074
  body: await parseErrorBody(output.body, context),
@@ -2095,19 +2077,19 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
2095
2077
  switch (errorCode) {
2096
2078
  case "AccessDeniedException":
2097
2079
  case "com.amazonaws.location#AccessDeniedException":
2098
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2080
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2099
2081
  case "InternalServerException":
2100
2082
  case "com.amazonaws.location#InternalServerException":
2101
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2083
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2102
2084
  case "ResourceNotFoundException":
2103
2085
  case "com.amazonaws.location#ResourceNotFoundException":
2104
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2086
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2105
2087
  case "ThrottlingException":
2106
2088
  case "com.amazonaws.location#ThrottlingException":
2107
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2089
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2108
2090
  case "ValidationException":
2109
2091
  case "com.amazonaws.location#ValidationException":
2110
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2092
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2111
2093
  default:
2112
2094
  const parsedBody = parsedOutput.body;
2113
2095
  throwDefaultError({
@@ -2118,9 +2100,9 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
2118
2100
  });
2119
2101
  }
2120
2102
  };
2121
- export const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, context) => {
2103
+ export const de_CreateGeofenceCollectionCommand = async (output, context) => {
2122
2104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2123
- return deserializeAws_restJson1CreateGeofenceCollectionCommandError(output, context);
2105
+ return de_CreateGeofenceCollectionCommandError(output, context);
2124
2106
  }
2125
2107
  const contents = map({
2126
2108
  $metadata: deserializeMetadata(output),
@@ -2137,7 +2119,7 @@ export const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (ou
2137
2119
  }
2138
2120
  return contents;
2139
2121
  };
2140
- const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (output, context) => {
2122
+ const de_CreateGeofenceCollectionCommandError = async (output, context) => {
2141
2123
  const parsedOutput = {
2142
2124
  ...output,
2143
2125
  body: await parseErrorBody(output.body, context),
@@ -2146,22 +2128,22 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
2146
2128
  switch (errorCode) {
2147
2129
  case "AccessDeniedException":
2148
2130
  case "com.amazonaws.location#AccessDeniedException":
2149
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2131
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2150
2132
  case "ConflictException":
2151
2133
  case "com.amazonaws.location#ConflictException":
2152
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2134
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2153
2135
  case "InternalServerException":
2154
2136
  case "com.amazonaws.location#InternalServerException":
2155
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2137
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2156
2138
  case "ServiceQuotaExceededException":
2157
2139
  case "com.amazonaws.location#ServiceQuotaExceededException":
2158
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2140
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2159
2141
  case "ThrottlingException":
2160
2142
  case "com.amazonaws.location#ThrottlingException":
2161
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2143
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2162
2144
  case "ValidationException":
2163
2145
  case "com.amazonaws.location#ValidationException":
2164
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2146
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2165
2147
  default:
2166
2148
  const parsedBody = parsedOutput.body;
2167
2149
  throwDefaultError({
@@ -2172,9 +2154,9 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
2172
2154
  });
2173
2155
  }
2174
2156
  };
2175
- export const deserializeAws_restJson1CreateKeyCommand = async (output, context) => {
2157
+ export const de_CreateKeyCommand = async (output, context) => {
2176
2158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2177
- return deserializeAws_restJson1CreateKeyCommandError(output, context);
2159
+ return de_CreateKeyCommandError(output, context);
2178
2160
  }
2179
2161
  const contents = map({
2180
2162
  $metadata: deserializeMetadata(output),
@@ -2194,7 +2176,7 @@ export const deserializeAws_restJson1CreateKeyCommand = async (output, context)
2194
2176
  }
2195
2177
  return contents;
2196
2178
  };
2197
- const deserializeAws_restJson1CreateKeyCommandError = async (output, context) => {
2179
+ const de_CreateKeyCommandError = async (output, context) => {
2198
2180
  const parsedOutput = {
2199
2181
  ...output,
2200
2182
  body: await parseErrorBody(output.body, context),
@@ -2203,22 +2185,22 @@ const deserializeAws_restJson1CreateKeyCommandError = async (output, context) =>
2203
2185
  switch (errorCode) {
2204
2186
  case "AccessDeniedException":
2205
2187
  case "com.amazonaws.location#AccessDeniedException":
2206
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2188
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2207
2189
  case "ConflictException":
2208
2190
  case "com.amazonaws.location#ConflictException":
2209
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2191
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2210
2192
  case "InternalServerException":
2211
2193
  case "com.amazonaws.location#InternalServerException":
2212
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2194
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2213
2195
  case "ServiceQuotaExceededException":
2214
2196
  case "com.amazonaws.location#ServiceQuotaExceededException":
2215
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2197
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2216
2198
  case "ThrottlingException":
2217
2199
  case "com.amazonaws.location#ThrottlingException":
2218
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2200
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2219
2201
  case "ValidationException":
2220
2202
  case "com.amazonaws.location#ValidationException":
2221
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2203
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2222
2204
  default:
2223
2205
  const parsedBody = parsedOutput.body;
2224
2206
  throwDefaultError({
@@ -2229,9 +2211,9 @@ const deserializeAws_restJson1CreateKeyCommandError = async (output, context) =>
2229
2211
  });
2230
2212
  }
2231
2213
  };
2232
- export const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
2214
+ export const de_CreateMapCommand = async (output, context) => {
2233
2215
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2234
- return deserializeAws_restJson1CreateMapCommandError(output, context);
2216
+ return de_CreateMapCommandError(output, context);
2235
2217
  }
2236
2218
  const contents = map({
2237
2219
  $metadata: deserializeMetadata(output),
@@ -2248,7 +2230,7 @@ export const deserializeAws_restJson1CreateMapCommand = async (output, context)
2248
2230
  }
2249
2231
  return contents;
2250
2232
  };
2251
- const deserializeAws_restJson1CreateMapCommandError = async (output, context) => {
2233
+ const de_CreateMapCommandError = async (output, context) => {
2252
2234
  const parsedOutput = {
2253
2235
  ...output,
2254
2236
  body: await parseErrorBody(output.body, context),
@@ -2257,22 +2239,22 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
2257
2239
  switch (errorCode) {
2258
2240
  case "AccessDeniedException":
2259
2241
  case "com.amazonaws.location#AccessDeniedException":
2260
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2242
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2261
2243
  case "ConflictException":
2262
2244
  case "com.amazonaws.location#ConflictException":
2263
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2245
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2264
2246
  case "InternalServerException":
2265
2247
  case "com.amazonaws.location#InternalServerException":
2266
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2248
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2267
2249
  case "ServiceQuotaExceededException":
2268
2250
  case "com.amazonaws.location#ServiceQuotaExceededException":
2269
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2251
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2270
2252
  case "ThrottlingException":
2271
2253
  case "com.amazonaws.location#ThrottlingException":
2272
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2254
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2273
2255
  case "ValidationException":
2274
2256
  case "com.amazonaws.location#ValidationException":
2275
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2257
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2276
2258
  default:
2277
2259
  const parsedBody = parsedOutput.body;
2278
2260
  throwDefaultError({
@@ -2283,9 +2265,9 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
2283
2265
  });
2284
2266
  }
2285
2267
  };
2286
- export const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context) => {
2268
+ export const de_CreatePlaceIndexCommand = async (output, context) => {
2287
2269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2288
- return deserializeAws_restJson1CreatePlaceIndexCommandError(output, context);
2270
+ return de_CreatePlaceIndexCommandError(output, context);
2289
2271
  }
2290
2272
  const contents = map({
2291
2273
  $metadata: deserializeMetadata(output),
@@ -2302,7 +2284,7 @@ export const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, co
2302
2284
  }
2303
2285
  return contents;
2304
2286
  };
2305
- const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, context) => {
2287
+ const de_CreatePlaceIndexCommandError = async (output, context) => {
2306
2288
  const parsedOutput = {
2307
2289
  ...output,
2308
2290
  body: await parseErrorBody(output.body, context),
@@ -2311,22 +2293,22 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
2311
2293
  switch (errorCode) {
2312
2294
  case "AccessDeniedException":
2313
2295
  case "com.amazonaws.location#AccessDeniedException":
2314
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2296
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2315
2297
  case "ConflictException":
2316
2298
  case "com.amazonaws.location#ConflictException":
2317
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2299
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2318
2300
  case "InternalServerException":
2319
2301
  case "com.amazonaws.location#InternalServerException":
2320
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2302
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2321
2303
  case "ServiceQuotaExceededException":
2322
2304
  case "com.amazonaws.location#ServiceQuotaExceededException":
2323
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2305
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2324
2306
  case "ThrottlingException":
2325
2307
  case "com.amazonaws.location#ThrottlingException":
2326
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2308
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2327
2309
  case "ValidationException":
2328
2310
  case "com.amazonaws.location#ValidationException":
2329
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2311
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2330
2312
  default:
2331
2313
  const parsedBody = parsedOutput.body;
2332
2314
  throwDefaultError({
@@ -2337,9 +2319,9 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
2337
2319
  });
2338
2320
  }
2339
2321
  };
2340
- export const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, context) => {
2322
+ export const de_CreateRouteCalculatorCommand = async (output, context) => {
2341
2323
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2342
- return deserializeAws_restJson1CreateRouteCalculatorCommandError(output, context);
2324
+ return de_CreateRouteCalculatorCommandError(output, context);
2343
2325
  }
2344
2326
  const contents = map({
2345
2327
  $metadata: deserializeMetadata(output),
@@ -2356,7 +2338,7 @@ export const deserializeAws_restJson1CreateRouteCalculatorCommand = async (outpu
2356
2338
  }
2357
2339
  return contents;
2358
2340
  };
2359
- const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output, context) => {
2341
+ const de_CreateRouteCalculatorCommandError = async (output, context) => {
2360
2342
  const parsedOutput = {
2361
2343
  ...output,
2362
2344
  body: await parseErrorBody(output.body, context),
@@ -2365,22 +2347,22 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
2365
2347
  switch (errorCode) {
2366
2348
  case "AccessDeniedException":
2367
2349
  case "com.amazonaws.location#AccessDeniedException":
2368
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2350
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2369
2351
  case "ConflictException":
2370
2352
  case "com.amazonaws.location#ConflictException":
2371
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2353
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2372
2354
  case "InternalServerException":
2373
2355
  case "com.amazonaws.location#InternalServerException":
2374
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2356
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2375
2357
  case "ServiceQuotaExceededException":
2376
2358
  case "com.amazonaws.location#ServiceQuotaExceededException":
2377
- throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
2359
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2378
2360
  case "ThrottlingException":
2379
2361
  case "com.amazonaws.location#ThrottlingException":
2380
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2362
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2381
2363
  case "ValidationException":
2382
2364
  case "com.amazonaws.location#ValidationException":
2383
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2365
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2384
2366
  default:
2385
2367
  const parsedBody = parsedOutput.body;
2386
2368
  throwDefaultError({
@@ -2391,9 +2373,9 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
2391
2373
  });
2392
2374
  }
2393
2375
  };
2394
- export const deserializeAws_restJson1CreateTrackerCommand = async (output, context) => {
2376
+ export const de_CreateTrackerCommand = async (output, context) => {
2395
2377
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2396
- return deserializeAws_restJson1CreateTrackerCommandError(output, context);
2378
+ return de_CreateTrackerCommandError(output, context);
2397
2379
  }
2398
2380
  const contents = map({
2399
2381
  $metadata: deserializeMetadata(output),
@@ -2410,7 +2392,7 @@ export const deserializeAws_restJson1CreateTrackerCommand = async (output, conte
2410
2392
  }
2411
2393
  return contents;
2412
2394
  };
2413
- const deserializeAws_restJson1CreateTrackerCommandError = async (output, context) => {
2395
+ const de_CreateTrackerCommandError = async (output, context) => {
2414
2396
  const parsedOutput = {
2415
2397
  ...output,
2416
2398
  body: await parseErrorBody(output.body, context),
@@ -2419,19 +2401,19 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
2419
2401
  switch (errorCode) {
2420
2402
  case "AccessDeniedException":
2421
2403
  case "com.amazonaws.location#AccessDeniedException":
2422
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2404
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2423
2405
  case "ConflictException":
2424
2406
  case "com.amazonaws.location#ConflictException":
2425
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2407
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2426
2408
  case "InternalServerException":
2427
2409
  case "com.amazonaws.location#InternalServerException":
2428
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2410
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2429
2411
  case "ThrottlingException":
2430
2412
  case "com.amazonaws.location#ThrottlingException":
2431
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2413
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2432
2414
  case "ValidationException":
2433
2415
  case "com.amazonaws.location#ValidationException":
2434
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2416
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2435
2417
  default:
2436
2418
  const parsedBody = parsedOutput.body;
2437
2419
  throwDefaultError({
@@ -2442,9 +2424,9 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
2442
2424
  });
2443
2425
  }
2444
2426
  };
2445
- export const deserializeAws_restJson1DeleteGeofenceCollectionCommand = async (output, context) => {
2427
+ export const de_DeleteGeofenceCollectionCommand = async (output, context) => {
2446
2428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2447
- return deserializeAws_restJson1DeleteGeofenceCollectionCommandError(output, context);
2429
+ return de_DeleteGeofenceCollectionCommandError(output, context);
2448
2430
  }
2449
2431
  const contents = map({
2450
2432
  $metadata: deserializeMetadata(output),
@@ -2452,7 +2434,7 @@ export const deserializeAws_restJson1DeleteGeofenceCollectionCommand = async (ou
2452
2434
  await collectBody(output.body, context);
2453
2435
  return contents;
2454
2436
  };
2455
- const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (output, context) => {
2437
+ const de_DeleteGeofenceCollectionCommandError = async (output, context) => {
2456
2438
  const parsedOutput = {
2457
2439
  ...output,
2458
2440
  body: await parseErrorBody(output.body, context),
@@ -2461,19 +2443,19 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
2461
2443
  switch (errorCode) {
2462
2444
  case "AccessDeniedException":
2463
2445
  case "com.amazonaws.location#AccessDeniedException":
2464
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2446
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2465
2447
  case "InternalServerException":
2466
2448
  case "com.amazonaws.location#InternalServerException":
2467
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2449
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2468
2450
  case "ResourceNotFoundException":
2469
2451
  case "com.amazonaws.location#ResourceNotFoundException":
2470
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2452
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2471
2453
  case "ThrottlingException":
2472
2454
  case "com.amazonaws.location#ThrottlingException":
2473
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2455
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2474
2456
  case "ValidationException":
2475
2457
  case "com.amazonaws.location#ValidationException":
2476
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2458
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2477
2459
  default:
2478
2460
  const parsedBody = parsedOutput.body;
2479
2461
  throwDefaultError({
@@ -2484,9 +2466,9 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
2484
2466
  });
2485
2467
  }
2486
2468
  };
2487
- export const deserializeAws_restJson1DeleteKeyCommand = async (output, context) => {
2469
+ export const de_DeleteKeyCommand = async (output, context) => {
2488
2470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2489
- return deserializeAws_restJson1DeleteKeyCommandError(output, context);
2471
+ return de_DeleteKeyCommandError(output, context);
2490
2472
  }
2491
2473
  const contents = map({
2492
2474
  $metadata: deserializeMetadata(output),
@@ -2494,7 +2476,7 @@ export const deserializeAws_restJson1DeleteKeyCommand = async (output, context)
2494
2476
  await collectBody(output.body, context);
2495
2477
  return contents;
2496
2478
  };
2497
- const deserializeAws_restJson1DeleteKeyCommandError = async (output, context) => {
2479
+ const de_DeleteKeyCommandError = async (output, context) => {
2498
2480
  const parsedOutput = {
2499
2481
  ...output,
2500
2482
  body: await parseErrorBody(output.body, context),
@@ -2503,19 +2485,19 @@ const deserializeAws_restJson1DeleteKeyCommandError = async (output, context) =>
2503
2485
  switch (errorCode) {
2504
2486
  case "AccessDeniedException":
2505
2487
  case "com.amazonaws.location#AccessDeniedException":
2506
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2488
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2507
2489
  case "InternalServerException":
2508
2490
  case "com.amazonaws.location#InternalServerException":
2509
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2491
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2510
2492
  case "ResourceNotFoundException":
2511
2493
  case "com.amazonaws.location#ResourceNotFoundException":
2512
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2494
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2513
2495
  case "ThrottlingException":
2514
2496
  case "com.amazonaws.location#ThrottlingException":
2515
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2497
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2516
2498
  case "ValidationException":
2517
2499
  case "com.amazonaws.location#ValidationException":
2518
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2500
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2519
2501
  default:
2520
2502
  const parsedBody = parsedOutput.body;
2521
2503
  throwDefaultError({
@@ -2526,9 +2508,9 @@ const deserializeAws_restJson1DeleteKeyCommandError = async (output, context) =>
2526
2508
  });
2527
2509
  }
2528
2510
  };
2529
- export const deserializeAws_restJson1DeleteMapCommand = async (output, context) => {
2511
+ export const de_DeleteMapCommand = async (output, context) => {
2530
2512
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2531
- return deserializeAws_restJson1DeleteMapCommandError(output, context);
2513
+ return de_DeleteMapCommandError(output, context);
2532
2514
  }
2533
2515
  const contents = map({
2534
2516
  $metadata: deserializeMetadata(output),
@@ -2536,7 +2518,7 @@ export const deserializeAws_restJson1DeleteMapCommand = async (output, context)
2536
2518
  await collectBody(output.body, context);
2537
2519
  return contents;
2538
2520
  };
2539
- const deserializeAws_restJson1DeleteMapCommandError = async (output, context) => {
2521
+ const de_DeleteMapCommandError = async (output, context) => {
2540
2522
  const parsedOutput = {
2541
2523
  ...output,
2542
2524
  body: await parseErrorBody(output.body, context),
@@ -2545,19 +2527,19 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
2545
2527
  switch (errorCode) {
2546
2528
  case "AccessDeniedException":
2547
2529
  case "com.amazonaws.location#AccessDeniedException":
2548
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2530
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2549
2531
  case "InternalServerException":
2550
2532
  case "com.amazonaws.location#InternalServerException":
2551
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2533
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2552
2534
  case "ResourceNotFoundException":
2553
2535
  case "com.amazonaws.location#ResourceNotFoundException":
2554
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2536
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2555
2537
  case "ThrottlingException":
2556
2538
  case "com.amazonaws.location#ThrottlingException":
2557
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2539
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2558
2540
  case "ValidationException":
2559
2541
  case "com.amazonaws.location#ValidationException":
2560
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2542
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2561
2543
  default:
2562
2544
  const parsedBody = parsedOutput.body;
2563
2545
  throwDefaultError({
@@ -2568,9 +2550,9 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
2568
2550
  });
2569
2551
  }
2570
2552
  };
2571
- export const deserializeAws_restJson1DeletePlaceIndexCommand = async (output, context) => {
2553
+ export const de_DeletePlaceIndexCommand = async (output, context) => {
2572
2554
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2573
- return deserializeAws_restJson1DeletePlaceIndexCommandError(output, context);
2555
+ return de_DeletePlaceIndexCommandError(output, context);
2574
2556
  }
2575
2557
  const contents = map({
2576
2558
  $metadata: deserializeMetadata(output),
@@ -2578,7 +2560,7 @@ export const deserializeAws_restJson1DeletePlaceIndexCommand = async (output, co
2578
2560
  await collectBody(output.body, context);
2579
2561
  return contents;
2580
2562
  };
2581
- const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, context) => {
2563
+ const de_DeletePlaceIndexCommandError = async (output, context) => {
2582
2564
  const parsedOutput = {
2583
2565
  ...output,
2584
2566
  body: await parseErrorBody(output.body, context),
@@ -2587,19 +2569,19 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
2587
2569
  switch (errorCode) {
2588
2570
  case "AccessDeniedException":
2589
2571
  case "com.amazonaws.location#AccessDeniedException":
2590
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2572
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2591
2573
  case "InternalServerException":
2592
2574
  case "com.amazonaws.location#InternalServerException":
2593
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2575
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2594
2576
  case "ResourceNotFoundException":
2595
2577
  case "com.amazonaws.location#ResourceNotFoundException":
2596
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2578
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2597
2579
  case "ThrottlingException":
2598
2580
  case "com.amazonaws.location#ThrottlingException":
2599
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2581
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2600
2582
  case "ValidationException":
2601
2583
  case "com.amazonaws.location#ValidationException":
2602
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2584
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2603
2585
  default:
2604
2586
  const parsedBody = parsedOutput.body;
2605
2587
  throwDefaultError({
@@ -2610,9 +2592,9 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
2610
2592
  });
2611
2593
  }
2612
2594
  };
2613
- export const deserializeAws_restJson1DeleteRouteCalculatorCommand = async (output, context) => {
2595
+ export const de_DeleteRouteCalculatorCommand = async (output, context) => {
2614
2596
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2615
- return deserializeAws_restJson1DeleteRouteCalculatorCommandError(output, context);
2597
+ return de_DeleteRouteCalculatorCommandError(output, context);
2616
2598
  }
2617
2599
  const contents = map({
2618
2600
  $metadata: deserializeMetadata(output),
@@ -2620,7 +2602,7 @@ export const deserializeAws_restJson1DeleteRouteCalculatorCommand = async (outpu
2620
2602
  await collectBody(output.body, context);
2621
2603
  return contents;
2622
2604
  };
2623
- const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output, context) => {
2605
+ const de_DeleteRouteCalculatorCommandError = async (output, context) => {
2624
2606
  const parsedOutput = {
2625
2607
  ...output,
2626
2608
  body: await parseErrorBody(output.body, context),
@@ -2629,19 +2611,19 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
2629
2611
  switch (errorCode) {
2630
2612
  case "AccessDeniedException":
2631
2613
  case "com.amazonaws.location#AccessDeniedException":
2632
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2614
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2633
2615
  case "InternalServerException":
2634
2616
  case "com.amazonaws.location#InternalServerException":
2635
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2617
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2636
2618
  case "ResourceNotFoundException":
2637
2619
  case "com.amazonaws.location#ResourceNotFoundException":
2638
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2620
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2639
2621
  case "ThrottlingException":
2640
2622
  case "com.amazonaws.location#ThrottlingException":
2641
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2623
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2642
2624
  case "ValidationException":
2643
2625
  case "com.amazonaws.location#ValidationException":
2644
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2626
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2645
2627
  default:
2646
2628
  const parsedBody = parsedOutput.body;
2647
2629
  throwDefaultError({
@@ -2652,9 +2634,9 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
2652
2634
  });
2653
2635
  }
2654
2636
  };
2655
- export const deserializeAws_restJson1DeleteTrackerCommand = async (output, context) => {
2637
+ export const de_DeleteTrackerCommand = async (output, context) => {
2656
2638
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2657
- return deserializeAws_restJson1DeleteTrackerCommandError(output, context);
2639
+ return de_DeleteTrackerCommandError(output, context);
2658
2640
  }
2659
2641
  const contents = map({
2660
2642
  $metadata: deserializeMetadata(output),
@@ -2662,7 +2644,7 @@ export const deserializeAws_restJson1DeleteTrackerCommand = async (output, conte
2662
2644
  await collectBody(output.body, context);
2663
2645
  return contents;
2664
2646
  };
2665
- const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context) => {
2647
+ const de_DeleteTrackerCommandError = async (output, context) => {
2666
2648
  const parsedOutput = {
2667
2649
  ...output,
2668
2650
  body: await parseErrorBody(output.body, context),
@@ -2671,19 +2653,19 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
2671
2653
  switch (errorCode) {
2672
2654
  case "AccessDeniedException":
2673
2655
  case "com.amazonaws.location#AccessDeniedException":
2674
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2656
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2675
2657
  case "InternalServerException":
2676
2658
  case "com.amazonaws.location#InternalServerException":
2677
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2659
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2678
2660
  case "ResourceNotFoundException":
2679
2661
  case "com.amazonaws.location#ResourceNotFoundException":
2680
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2662
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2681
2663
  case "ThrottlingException":
2682
2664
  case "com.amazonaws.location#ThrottlingException":
2683
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2665
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2684
2666
  case "ValidationException":
2685
2667
  case "com.amazonaws.location#ValidationException":
2686
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2668
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2687
2669
  default:
2688
2670
  const parsedBody = parsedOutput.body;
2689
2671
  throwDefaultError({
@@ -2694,9 +2676,9 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
2694
2676
  });
2695
2677
  }
2696
2678
  };
2697
- export const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output, context) => {
2679
+ export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
2698
2680
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2699
- return deserializeAws_restJson1DescribeGeofenceCollectionCommandError(output, context);
2681
+ return de_DescribeGeofenceCollectionCommandError(output, context);
2700
2682
  }
2701
2683
  const contents = map({
2702
2684
  $metadata: deserializeMetadata(output),
@@ -2724,14 +2706,14 @@ export const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (
2724
2706
  contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
2725
2707
  }
2726
2708
  if (data.Tags != null) {
2727
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2709
+ contents.Tags = de_TagMap(data.Tags, context);
2728
2710
  }
2729
2711
  if (data.UpdateTime != null) {
2730
2712
  contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
2731
2713
  }
2732
2714
  return contents;
2733
2715
  };
2734
- const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (output, context) => {
2716
+ const de_DescribeGeofenceCollectionCommandError = async (output, context) => {
2735
2717
  const parsedOutput = {
2736
2718
  ...output,
2737
2719
  body: await parseErrorBody(output.body, context),
@@ -2740,19 +2722,19 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
2740
2722
  switch (errorCode) {
2741
2723
  case "AccessDeniedException":
2742
2724
  case "com.amazonaws.location#AccessDeniedException":
2743
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2725
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2744
2726
  case "InternalServerException":
2745
2727
  case "com.amazonaws.location#InternalServerException":
2746
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2728
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2747
2729
  case "ResourceNotFoundException":
2748
2730
  case "com.amazonaws.location#ResourceNotFoundException":
2749
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2731
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2750
2732
  case "ThrottlingException":
2751
2733
  case "com.amazonaws.location#ThrottlingException":
2752
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2734
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2753
2735
  case "ValidationException":
2754
2736
  case "com.amazonaws.location#ValidationException":
2755
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2737
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2756
2738
  default:
2757
2739
  const parsedBody = parsedOutput.body;
2758
2740
  throwDefaultError({
@@ -2763,9 +2745,9 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
2763
2745
  });
2764
2746
  }
2765
2747
  };
2766
- export const deserializeAws_restJson1DescribeKeyCommand = async (output, context) => {
2748
+ export const de_DescribeKeyCommand = async (output, context) => {
2767
2749
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2768
- return deserializeAws_restJson1DescribeKeyCommandError(output, context);
2750
+ return de_DescribeKeyCommandError(output, context);
2769
2751
  }
2770
2752
  const contents = map({
2771
2753
  $metadata: deserializeMetadata(output),
@@ -2790,17 +2772,17 @@ export const deserializeAws_restJson1DescribeKeyCommand = async (output, context
2790
2772
  contents.KeyName = __expectString(data.KeyName);
2791
2773
  }
2792
2774
  if (data.Restrictions != null) {
2793
- contents.Restrictions = deserializeAws_restJson1ApiKeyRestrictions(data.Restrictions, context);
2775
+ contents.Restrictions = de_ApiKeyRestrictions(data.Restrictions, context);
2794
2776
  }
2795
2777
  if (data.Tags != null) {
2796
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2778
+ contents.Tags = de_TagMap(data.Tags, context);
2797
2779
  }
2798
2780
  if (data.UpdateTime != null) {
2799
2781
  contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
2800
2782
  }
2801
2783
  return contents;
2802
2784
  };
2803
- const deserializeAws_restJson1DescribeKeyCommandError = async (output, context) => {
2785
+ const de_DescribeKeyCommandError = async (output, context) => {
2804
2786
  const parsedOutput = {
2805
2787
  ...output,
2806
2788
  body: await parseErrorBody(output.body, context),
@@ -2809,19 +2791,19 @@ const deserializeAws_restJson1DescribeKeyCommandError = async (output, context)
2809
2791
  switch (errorCode) {
2810
2792
  case "AccessDeniedException":
2811
2793
  case "com.amazonaws.location#AccessDeniedException":
2812
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2794
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2813
2795
  case "InternalServerException":
2814
2796
  case "com.amazonaws.location#InternalServerException":
2815
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2797
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2816
2798
  case "ResourceNotFoundException":
2817
2799
  case "com.amazonaws.location#ResourceNotFoundException":
2818
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2800
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2819
2801
  case "ThrottlingException":
2820
2802
  case "com.amazonaws.location#ThrottlingException":
2821
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2803
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2822
2804
  case "ValidationException":
2823
2805
  case "com.amazonaws.location#ValidationException":
2824
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2806
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2825
2807
  default:
2826
2808
  const parsedBody = parsedOutput.body;
2827
2809
  throwDefaultError({
@@ -2832,16 +2814,16 @@ const deserializeAws_restJson1DescribeKeyCommandError = async (output, context)
2832
2814
  });
2833
2815
  }
2834
2816
  };
2835
- export const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
2817
+ export const de_DescribeMapCommand = async (output, context) => {
2836
2818
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2837
- return deserializeAws_restJson1DescribeMapCommandError(output, context);
2819
+ return de_DescribeMapCommandError(output, context);
2838
2820
  }
2839
2821
  const contents = map({
2840
2822
  $metadata: deserializeMetadata(output),
2841
2823
  });
2842
2824
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2843
2825
  if (data.Configuration != null) {
2844
- contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
2826
+ contents.Configuration = de_MapConfiguration(data.Configuration, context);
2845
2827
  }
2846
2828
  if (data.CreateTime != null) {
2847
2829
  contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreateTime));
@@ -2862,14 +2844,14 @@ export const deserializeAws_restJson1DescribeMapCommand = async (output, context
2862
2844
  contents.PricingPlan = __expectString(data.PricingPlan);
2863
2845
  }
2864
2846
  if (data.Tags != null) {
2865
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2847
+ contents.Tags = de_TagMap(data.Tags, context);
2866
2848
  }
2867
2849
  if (data.UpdateTime != null) {
2868
2850
  contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
2869
2851
  }
2870
2852
  return contents;
2871
2853
  };
2872
- const deserializeAws_restJson1DescribeMapCommandError = async (output, context) => {
2854
+ const de_DescribeMapCommandError = async (output, context) => {
2873
2855
  const parsedOutput = {
2874
2856
  ...output,
2875
2857
  body: await parseErrorBody(output.body, context),
@@ -2878,19 +2860,19 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
2878
2860
  switch (errorCode) {
2879
2861
  case "AccessDeniedException":
2880
2862
  case "com.amazonaws.location#AccessDeniedException":
2881
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2863
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2882
2864
  case "InternalServerException":
2883
2865
  case "com.amazonaws.location#InternalServerException":
2884
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2866
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2885
2867
  case "ResourceNotFoundException":
2886
2868
  case "com.amazonaws.location#ResourceNotFoundException":
2887
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2869
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2888
2870
  case "ThrottlingException":
2889
2871
  case "com.amazonaws.location#ThrottlingException":
2890
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2872
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2891
2873
  case "ValidationException":
2892
2874
  case "com.amazonaws.location#ValidationException":
2893
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2875
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2894
2876
  default:
2895
2877
  const parsedBody = parsedOutput.body;
2896
2878
  throwDefaultError({
@@ -2901,9 +2883,9 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
2901
2883
  });
2902
2884
  }
2903
2885
  };
2904
- export const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context) => {
2886
+ export const de_DescribePlaceIndexCommand = async (output, context) => {
2905
2887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2906
- return deserializeAws_restJson1DescribePlaceIndexCommandError(output, context);
2888
+ return de_DescribePlaceIndexCommandError(output, context);
2907
2889
  }
2908
2890
  const contents = map({
2909
2891
  $metadata: deserializeMetadata(output),
@@ -2916,7 +2898,7 @@ export const deserializeAws_restJson1DescribePlaceIndexCommand = async (output,
2916
2898
  contents.DataSource = __expectString(data.DataSource);
2917
2899
  }
2918
2900
  if (data.DataSourceConfiguration != null) {
2919
- contents.DataSourceConfiguration = deserializeAws_restJson1DataSourceConfiguration(data.DataSourceConfiguration, context);
2901
+ contents.DataSourceConfiguration = de_DataSourceConfiguration(data.DataSourceConfiguration, context);
2920
2902
  }
2921
2903
  if (data.Description != null) {
2922
2904
  contents.Description = __expectString(data.Description);
@@ -2931,14 +2913,14 @@ export const deserializeAws_restJson1DescribePlaceIndexCommand = async (output,
2931
2913
  contents.PricingPlan = __expectString(data.PricingPlan);
2932
2914
  }
2933
2915
  if (data.Tags != null) {
2934
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2916
+ contents.Tags = de_TagMap(data.Tags, context);
2935
2917
  }
2936
2918
  if (data.UpdateTime != null) {
2937
2919
  contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
2938
2920
  }
2939
2921
  return contents;
2940
2922
  };
2941
- const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, context) => {
2923
+ const de_DescribePlaceIndexCommandError = async (output, context) => {
2942
2924
  const parsedOutput = {
2943
2925
  ...output,
2944
2926
  body: await parseErrorBody(output.body, context),
@@ -2947,19 +2929,19 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
2947
2929
  switch (errorCode) {
2948
2930
  case "AccessDeniedException":
2949
2931
  case "com.amazonaws.location#AccessDeniedException":
2950
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2932
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2951
2933
  case "InternalServerException":
2952
2934
  case "com.amazonaws.location#InternalServerException":
2953
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2935
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2954
2936
  case "ResourceNotFoundException":
2955
2937
  case "com.amazonaws.location#ResourceNotFoundException":
2956
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2938
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2957
2939
  case "ThrottlingException":
2958
2940
  case "com.amazonaws.location#ThrottlingException":
2959
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2941
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2960
2942
  case "ValidationException":
2961
2943
  case "com.amazonaws.location#ValidationException":
2962
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2944
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2963
2945
  default:
2964
2946
  const parsedBody = parsedOutput.body;
2965
2947
  throwDefaultError({
@@ -2970,9 +2952,9 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
2970
2952
  });
2971
2953
  }
2972
2954
  };
2973
- export const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, context) => {
2955
+ export const de_DescribeRouteCalculatorCommand = async (output, context) => {
2974
2956
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2975
- return deserializeAws_restJson1DescribeRouteCalculatorCommandError(output, context);
2957
+ return de_DescribeRouteCalculatorCommandError(output, context);
2976
2958
  }
2977
2959
  const contents = map({
2978
2960
  $metadata: deserializeMetadata(output),
@@ -2997,14 +2979,14 @@ export const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (out
2997
2979
  contents.PricingPlan = __expectString(data.PricingPlan);
2998
2980
  }
2999
2981
  if (data.Tags != null) {
3000
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
2982
+ contents.Tags = de_TagMap(data.Tags, context);
3001
2983
  }
3002
2984
  if (data.UpdateTime != null) {
3003
2985
  contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
3004
2986
  }
3005
2987
  return contents;
3006
2988
  };
3007
- const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (output, context) => {
2989
+ const de_DescribeRouteCalculatorCommandError = async (output, context) => {
3008
2990
  const parsedOutput = {
3009
2991
  ...output,
3010
2992
  body: await parseErrorBody(output.body, context),
@@ -3013,19 +2995,19 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
3013
2995
  switch (errorCode) {
3014
2996
  case "AccessDeniedException":
3015
2997
  case "com.amazonaws.location#AccessDeniedException":
3016
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2998
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3017
2999
  case "InternalServerException":
3018
3000
  case "com.amazonaws.location#InternalServerException":
3019
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3001
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3020
3002
  case "ResourceNotFoundException":
3021
3003
  case "com.amazonaws.location#ResourceNotFoundException":
3022
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3004
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3023
3005
  case "ThrottlingException":
3024
3006
  case "com.amazonaws.location#ThrottlingException":
3025
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3007
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3026
3008
  case "ValidationException":
3027
3009
  case "com.amazonaws.location#ValidationException":
3028
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3010
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3029
3011
  default:
3030
3012
  const parsedBody = parsedOutput.body;
3031
3013
  throwDefaultError({
@@ -3036,9 +3018,9 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
3036
3018
  });
3037
3019
  }
3038
3020
  };
3039
- export const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) => {
3021
+ export const de_DescribeTrackerCommand = async (output, context) => {
3040
3022
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3041
- return deserializeAws_restJson1DescribeTrackerCommandError(output, context);
3023
+ return de_DescribeTrackerCommandError(output, context);
3042
3024
  }
3043
3025
  const contents = map({
3044
3026
  $metadata: deserializeMetadata(output),
@@ -3063,7 +3045,7 @@ export const deserializeAws_restJson1DescribeTrackerCommand = async (output, con
3063
3045
  contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
3064
3046
  }
3065
3047
  if (data.Tags != null) {
3066
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3048
+ contents.Tags = de_TagMap(data.Tags, context);
3067
3049
  }
3068
3050
  if (data.TrackerArn != null) {
3069
3051
  contents.TrackerArn = __expectString(data.TrackerArn);
@@ -3076,7 +3058,7 @@ export const deserializeAws_restJson1DescribeTrackerCommand = async (output, con
3076
3058
  }
3077
3059
  return contents;
3078
3060
  };
3079
- const deserializeAws_restJson1DescribeTrackerCommandError = async (output, context) => {
3061
+ const de_DescribeTrackerCommandError = async (output, context) => {
3080
3062
  const parsedOutput = {
3081
3063
  ...output,
3082
3064
  body: await parseErrorBody(output.body, context),
@@ -3085,19 +3067,19 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
3085
3067
  switch (errorCode) {
3086
3068
  case "AccessDeniedException":
3087
3069
  case "com.amazonaws.location#AccessDeniedException":
3088
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3070
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3089
3071
  case "InternalServerException":
3090
3072
  case "com.amazonaws.location#InternalServerException":
3091
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3073
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3092
3074
  case "ResourceNotFoundException":
3093
3075
  case "com.amazonaws.location#ResourceNotFoundException":
3094
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3076
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3095
3077
  case "ThrottlingException":
3096
3078
  case "com.amazonaws.location#ThrottlingException":
3097
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3079
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3098
3080
  case "ValidationException":
3099
3081
  case "com.amazonaws.location#ValidationException":
3100
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3082
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3101
3083
  default:
3102
3084
  const parsedBody = parsedOutput.body;
3103
3085
  throwDefaultError({
@@ -3108,9 +3090,9 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
3108
3090
  });
3109
3091
  }
3110
3092
  };
3111
- export const deserializeAws_restJson1DisassociateTrackerConsumerCommand = async (output, context) => {
3093
+ export const de_DisassociateTrackerConsumerCommand = async (output, context) => {
3112
3094
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3113
- return deserializeAws_restJson1DisassociateTrackerConsumerCommandError(output, context);
3095
+ return de_DisassociateTrackerConsumerCommandError(output, context);
3114
3096
  }
3115
3097
  const contents = map({
3116
3098
  $metadata: deserializeMetadata(output),
@@ -3118,7 +3100,7 @@ export const deserializeAws_restJson1DisassociateTrackerConsumerCommand = async
3118
3100
  await collectBody(output.body, context);
3119
3101
  return contents;
3120
3102
  };
3121
- const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (output, context) => {
3103
+ const de_DisassociateTrackerConsumerCommandError = async (output, context) => {
3122
3104
  const parsedOutput = {
3123
3105
  ...output,
3124
3106
  body: await parseErrorBody(output.body, context),
@@ -3127,19 +3109,19 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
3127
3109
  switch (errorCode) {
3128
3110
  case "AccessDeniedException":
3129
3111
  case "com.amazonaws.location#AccessDeniedException":
3130
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3112
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3131
3113
  case "InternalServerException":
3132
3114
  case "com.amazonaws.location#InternalServerException":
3133
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3115
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3134
3116
  case "ResourceNotFoundException":
3135
3117
  case "com.amazonaws.location#ResourceNotFoundException":
3136
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3118
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3137
3119
  case "ThrottlingException":
3138
3120
  case "com.amazonaws.location#ThrottlingException":
3139
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3121
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3140
3122
  case "ValidationException":
3141
3123
  case "com.amazonaws.location#ValidationException":
3142
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3124
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3143
3125
  default:
3144
3126
  const parsedBody = parsedOutput.body;
3145
3127
  throwDefaultError({
@@ -3150,25 +3132,25 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
3150
3132
  });
3151
3133
  }
3152
3134
  };
3153
- export const deserializeAws_restJson1GetDevicePositionCommand = async (output, context) => {
3135
+ export const de_GetDevicePositionCommand = async (output, context) => {
3154
3136
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3155
- return deserializeAws_restJson1GetDevicePositionCommandError(output, context);
3137
+ return de_GetDevicePositionCommandError(output, context);
3156
3138
  }
3157
3139
  const contents = map({
3158
3140
  $metadata: deserializeMetadata(output),
3159
3141
  });
3160
3142
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3161
3143
  if (data.Accuracy != null) {
3162
- contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
3144
+ contents.Accuracy = de_PositionalAccuracy(data.Accuracy, context);
3163
3145
  }
3164
3146
  if (data.DeviceId != null) {
3165
3147
  contents.DeviceId = __expectString(data.DeviceId);
3166
3148
  }
3167
3149
  if (data.Position != null) {
3168
- contents.Position = deserializeAws_restJson1Position(data.Position, context);
3150
+ contents.Position = de_Position(data.Position, context);
3169
3151
  }
3170
3152
  if (data.PositionProperties != null) {
3171
- contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
3153
+ contents.PositionProperties = de_PropertyMap(data.PositionProperties, context);
3172
3154
  }
3173
3155
  if (data.ReceivedTime != null) {
3174
3156
  contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.ReceivedTime));
@@ -3178,7 +3160,7 @@ export const deserializeAws_restJson1GetDevicePositionCommand = async (output, c
3178
3160
  }
3179
3161
  return contents;
3180
3162
  };
3181
- const deserializeAws_restJson1GetDevicePositionCommandError = async (output, context) => {
3163
+ const de_GetDevicePositionCommandError = async (output, context) => {
3182
3164
  const parsedOutput = {
3183
3165
  ...output,
3184
3166
  body: await parseErrorBody(output.body, context),
@@ -3187,19 +3169,19 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
3187
3169
  switch (errorCode) {
3188
3170
  case "AccessDeniedException":
3189
3171
  case "com.amazonaws.location#AccessDeniedException":
3190
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3172
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3191
3173
  case "InternalServerException":
3192
3174
  case "com.amazonaws.location#InternalServerException":
3193
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3175
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3194
3176
  case "ResourceNotFoundException":
3195
3177
  case "com.amazonaws.location#ResourceNotFoundException":
3196
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3178
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3197
3179
  case "ThrottlingException":
3198
3180
  case "com.amazonaws.location#ThrottlingException":
3199
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3181
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3200
3182
  case "ValidationException":
3201
3183
  case "com.amazonaws.location#ValidationException":
3202
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3184
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3203
3185
  default:
3204
3186
  const parsedBody = parsedOutput.body;
3205
3187
  throwDefaultError({
@@ -3210,23 +3192,23 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
3210
3192
  });
3211
3193
  }
3212
3194
  };
3213
- export const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, context) => {
3195
+ export const de_GetDevicePositionHistoryCommand = async (output, context) => {
3214
3196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3215
- return deserializeAws_restJson1GetDevicePositionHistoryCommandError(output, context);
3197
+ return de_GetDevicePositionHistoryCommandError(output, context);
3216
3198
  }
3217
3199
  const contents = map({
3218
3200
  $metadata: deserializeMetadata(output),
3219
3201
  });
3220
3202
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3221
3203
  if (data.DevicePositions != null) {
3222
- contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
3204
+ contents.DevicePositions = de_DevicePositionList(data.DevicePositions, context);
3223
3205
  }
3224
3206
  if (data.NextToken != null) {
3225
3207
  contents.NextToken = __expectString(data.NextToken);
3226
3208
  }
3227
3209
  return contents;
3228
3210
  };
3229
- const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (output, context) => {
3211
+ const de_GetDevicePositionHistoryCommandError = async (output, context) => {
3230
3212
  const parsedOutput = {
3231
3213
  ...output,
3232
3214
  body: await parseErrorBody(output.body, context),
@@ -3235,19 +3217,19 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
3235
3217
  switch (errorCode) {
3236
3218
  case "AccessDeniedException":
3237
3219
  case "com.amazonaws.location#AccessDeniedException":
3238
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3220
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3239
3221
  case "InternalServerException":
3240
3222
  case "com.amazonaws.location#InternalServerException":
3241
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3223
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3242
3224
  case "ResourceNotFoundException":
3243
3225
  case "com.amazonaws.location#ResourceNotFoundException":
3244
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3226
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3245
3227
  case "ThrottlingException":
3246
3228
  case "com.amazonaws.location#ThrottlingException":
3247
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3229
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3248
3230
  case "ValidationException":
3249
3231
  case "com.amazonaws.location#ValidationException":
3250
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3232
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3251
3233
  default:
3252
3234
  const parsedBody = parsedOutput.body;
3253
3235
  throwDefaultError({
@@ -3258,9 +3240,9 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
3258
3240
  });
3259
3241
  }
3260
3242
  };
3261
- export const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
3243
+ export const de_GetGeofenceCommand = async (output, context) => {
3262
3244
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3263
- return deserializeAws_restJson1GetGeofenceCommandError(output, context);
3245
+ return de_GetGeofenceCommandError(output, context);
3264
3246
  }
3265
3247
  const contents = map({
3266
3248
  $metadata: deserializeMetadata(output),
@@ -3273,7 +3255,7 @@ export const deserializeAws_restJson1GetGeofenceCommand = async (output, context
3273
3255
  contents.GeofenceId = __expectString(data.GeofenceId);
3274
3256
  }
3275
3257
  if (data.Geometry != null) {
3276
- contents.Geometry = deserializeAws_restJson1GeofenceGeometry(data.Geometry, context);
3258
+ contents.Geometry = de_GeofenceGeometry(data.Geometry, context);
3277
3259
  }
3278
3260
  if (data.Status != null) {
3279
3261
  contents.Status = __expectString(data.Status);
@@ -3283,7 +3265,7 @@ export const deserializeAws_restJson1GetGeofenceCommand = async (output, context
3283
3265
  }
3284
3266
  return contents;
3285
3267
  };
3286
- const deserializeAws_restJson1GetGeofenceCommandError = async (output, context) => {
3268
+ const de_GetGeofenceCommandError = async (output, context) => {
3287
3269
  const parsedOutput = {
3288
3270
  ...output,
3289
3271
  body: await parseErrorBody(output.body, context),
@@ -3292,19 +3274,19 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
3292
3274
  switch (errorCode) {
3293
3275
  case "AccessDeniedException":
3294
3276
  case "com.amazonaws.location#AccessDeniedException":
3295
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3277
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3296
3278
  case "InternalServerException":
3297
3279
  case "com.amazonaws.location#InternalServerException":
3298
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3280
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3299
3281
  case "ResourceNotFoundException":
3300
3282
  case "com.amazonaws.location#ResourceNotFoundException":
3301
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3283
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3302
3284
  case "ThrottlingException":
3303
3285
  case "com.amazonaws.location#ThrottlingException":
3304
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3286
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3305
3287
  case "ValidationException":
3306
3288
  case "com.amazonaws.location#ValidationException":
3307
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3289
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3308
3290
  default:
3309
3291
  const parsedBody = parsedOutput.body;
3310
3292
  throwDefaultError({
@@ -3315,9 +3297,9 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
3315
3297
  });
3316
3298
  }
3317
3299
  };
3318
- export const deserializeAws_restJson1GetMapGlyphsCommand = async (output, context) => {
3300
+ export const de_GetMapGlyphsCommand = async (output, context) => {
3319
3301
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3320
- return deserializeAws_restJson1GetMapGlyphsCommandError(output, context);
3302
+ return de_GetMapGlyphsCommandError(output, context);
3321
3303
  }
3322
3304
  const contents = map({
3323
3305
  $metadata: deserializeMetadata(output),
@@ -3328,7 +3310,7 @@ export const deserializeAws_restJson1GetMapGlyphsCommand = async (output, contex
3328
3310
  contents.Blob = data;
3329
3311
  return contents;
3330
3312
  };
3331
- const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context) => {
3313
+ const de_GetMapGlyphsCommandError = async (output, context) => {
3332
3314
  const parsedOutput = {
3333
3315
  ...output,
3334
3316
  body: await parseErrorBody(output.body, context),
@@ -3337,19 +3319,19 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
3337
3319
  switch (errorCode) {
3338
3320
  case "AccessDeniedException":
3339
3321
  case "com.amazonaws.location#AccessDeniedException":
3340
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3322
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3341
3323
  case "InternalServerException":
3342
3324
  case "com.amazonaws.location#InternalServerException":
3343
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3325
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3344
3326
  case "ResourceNotFoundException":
3345
3327
  case "com.amazonaws.location#ResourceNotFoundException":
3346
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3328
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3347
3329
  case "ThrottlingException":
3348
3330
  case "com.amazonaws.location#ThrottlingException":
3349
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3331
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3350
3332
  case "ValidationException":
3351
3333
  case "com.amazonaws.location#ValidationException":
3352
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3334
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3353
3335
  default:
3354
3336
  const parsedBody = parsedOutput.body;
3355
3337
  throwDefaultError({
@@ -3360,9 +3342,9 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
3360
3342
  });
3361
3343
  }
3362
3344
  };
3363
- export const deserializeAws_restJson1GetMapSpritesCommand = async (output, context) => {
3345
+ export const de_GetMapSpritesCommand = async (output, context) => {
3364
3346
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3365
- return deserializeAws_restJson1GetMapSpritesCommandError(output, context);
3347
+ return de_GetMapSpritesCommandError(output, context);
3366
3348
  }
3367
3349
  const contents = map({
3368
3350
  $metadata: deserializeMetadata(output),
@@ -3373,7 +3355,7 @@ export const deserializeAws_restJson1GetMapSpritesCommand = async (output, conte
3373
3355
  contents.Blob = data;
3374
3356
  return contents;
3375
3357
  };
3376
- const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context) => {
3358
+ const de_GetMapSpritesCommandError = async (output, context) => {
3377
3359
  const parsedOutput = {
3378
3360
  ...output,
3379
3361
  body: await parseErrorBody(output.body, context),
@@ -3382,19 +3364,19 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
3382
3364
  switch (errorCode) {
3383
3365
  case "AccessDeniedException":
3384
3366
  case "com.amazonaws.location#AccessDeniedException":
3385
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3367
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3386
3368
  case "InternalServerException":
3387
3369
  case "com.amazonaws.location#InternalServerException":
3388
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3370
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3389
3371
  case "ResourceNotFoundException":
3390
3372
  case "com.amazonaws.location#ResourceNotFoundException":
3391
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3373
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3392
3374
  case "ThrottlingException":
3393
3375
  case "com.amazonaws.location#ThrottlingException":
3394
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3376
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3395
3377
  case "ValidationException":
3396
3378
  case "com.amazonaws.location#ValidationException":
3397
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3379
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3398
3380
  default:
3399
3381
  const parsedBody = parsedOutput.body;
3400
3382
  throwDefaultError({
@@ -3405,9 +3387,9 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
3405
3387
  });
3406
3388
  }
3407
3389
  };
3408
- export const deserializeAws_restJson1GetMapStyleDescriptorCommand = async (output, context) => {
3390
+ export const de_GetMapStyleDescriptorCommand = async (output, context) => {
3409
3391
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3410
- return deserializeAws_restJson1GetMapStyleDescriptorCommandError(output, context);
3392
+ return de_GetMapStyleDescriptorCommandError(output, context);
3411
3393
  }
3412
3394
  const contents = map({
3413
3395
  $metadata: deserializeMetadata(output),
@@ -3418,7 +3400,7 @@ export const deserializeAws_restJson1GetMapStyleDescriptorCommand = async (outpu
3418
3400
  contents.Blob = data;
3419
3401
  return contents;
3420
3402
  };
3421
- const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output, context) => {
3403
+ const de_GetMapStyleDescriptorCommandError = async (output, context) => {
3422
3404
  const parsedOutput = {
3423
3405
  ...output,
3424
3406
  body: await parseErrorBody(output.body, context),
@@ -3427,19 +3409,19 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
3427
3409
  switch (errorCode) {
3428
3410
  case "AccessDeniedException":
3429
3411
  case "com.amazonaws.location#AccessDeniedException":
3430
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3412
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3431
3413
  case "InternalServerException":
3432
3414
  case "com.amazonaws.location#InternalServerException":
3433
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3415
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3434
3416
  case "ResourceNotFoundException":
3435
3417
  case "com.amazonaws.location#ResourceNotFoundException":
3436
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3418
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3437
3419
  case "ThrottlingException":
3438
3420
  case "com.amazonaws.location#ThrottlingException":
3439
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3421
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3440
3422
  case "ValidationException":
3441
3423
  case "com.amazonaws.location#ValidationException":
3442
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3424
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3443
3425
  default:
3444
3426
  const parsedBody = parsedOutput.body;
3445
3427
  throwDefaultError({
@@ -3450,9 +3432,9 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
3450
3432
  });
3451
3433
  }
3452
3434
  };
3453
- export const deserializeAws_restJson1GetMapTileCommand = async (output, context) => {
3435
+ export const de_GetMapTileCommand = async (output, context) => {
3454
3436
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3455
- return deserializeAws_restJson1GetMapTileCommandError(output, context);
3437
+ return de_GetMapTileCommandError(output, context);
3456
3438
  }
3457
3439
  const contents = map({
3458
3440
  $metadata: deserializeMetadata(output),
@@ -3463,7 +3445,7 @@ export const deserializeAws_restJson1GetMapTileCommand = async (output, context)
3463
3445
  contents.Blob = data;
3464
3446
  return contents;
3465
3447
  };
3466
- const deserializeAws_restJson1GetMapTileCommandError = async (output, context) => {
3448
+ const de_GetMapTileCommandError = async (output, context) => {
3467
3449
  const parsedOutput = {
3468
3450
  ...output,
3469
3451
  body: await parseErrorBody(output.body, context),
@@ -3472,19 +3454,19 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
3472
3454
  switch (errorCode) {
3473
3455
  case "AccessDeniedException":
3474
3456
  case "com.amazonaws.location#AccessDeniedException":
3475
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3457
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3476
3458
  case "InternalServerException":
3477
3459
  case "com.amazonaws.location#InternalServerException":
3478
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3460
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3479
3461
  case "ResourceNotFoundException":
3480
3462
  case "com.amazonaws.location#ResourceNotFoundException":
3481
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3463
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3482
3464
  case "ThrottlingException":
3483
3465
  case "com.amazonaws.location#ThrottlingException":
3484
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3466
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3485
3467
  case "ValidationException":
3486
3468
  case "com.amazonaws.location#ValidationException":
3487
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3469
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3488
3470
  default:
3489
3471
  const parsedBody = parsedOutput.body;
3490
3472
  throwDefaultError({
@@ -3495,20 +3477,20 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
3495
3477
  });
3496
3478
  }
3497
3479
  };
3498
- export const deserializeAws_restJson1GetPlaceCommand = async (output, context) => {
3480
+ export const de_GetPlaceCommand = async (output, context) => {
3499
3481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3500
- return deserializeAws_restJson1GetPlaceCommandError(output, context);
3482
+ return de_GetPlaceCommandError(output, context);
3501
3483
  }
3502
3484
  const contents = map({
3503
3485
  $metadata: deserializeMetadata(output),
3504
3486
  });
3505
3487
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3506
3488
  if (data.Place != null) {
3507
- contents.Place = deserializeAws_restJson1Place(data.Place, context);
3489
+ contents.Place = de_Place(data.Place, context);
3508
3490
  }
3509
3491
  return contents;
3510
3492
  };
3511
- const deserializeAws_restJson1GetPlaceCommandError = async (output, context) => {
3493
+ const de_GetPlaceCommandError = async (output, context) => {
3512
3494
  const parsedOutput = {
3513
3495
  ...output,
3514
3496
  body: await parseErrorBody(output.body, context),
@@ -3517,19 +3499,19 @@ const deserializeAws_restJson1GetPlaceCommandError = async (output, context) =>
3517
3499
  switch (errorCode) {
3518
3500
  case "AccessDeniedException":
3519
3501
  case "com.amazonaws.location#AccessDeniedException":
3520
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3502
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3521
3503
  case "InternalServerException":
3522
3504
  case "com.amazonaws.location#InternalServerException":
3523
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3505
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3524
3506
  case "ResourceNotFoundException":
3525
3507
  case "com.amazonaws.location#ResourceNotFoundException":
3526
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3508
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3527
3509
  case "ThrottlingException":
3528
3510
  case "com.amazonaws.location#ThrottlingException":
3529
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3511
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3530
3512
  case "ValidationException":
3531
3513
  case "com.amazonaws.location#ValidationException":
3532
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3514
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3533
3515
  default:
3534
3516
  const parsedBody = parsedOutput.body;
3535
3517
  throwDefaultError({
@@ -3540,23 +3522,23 @@ const deserializeAws_restJson1GetPlaceCommandError = async (output, context) =>
3540
3522
  });
3541
3523
  }
3542
3524
  };
3543
- export const deserializeAws_restJson1ListDevicePositionsCommand = async (output, context) => {
3525
+ export const de_ListDevicePositionsCommand = async (output, context) => {
3544
3526
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3545
- return deserializeAws_restJson1ListDevicePositionsCommandError(output, context);
3527
+ return de_ListDevicePositionsCommandError(output, context);
3546
3528
  }
3547
3529
  const contents = map({
3548
3530
  $metadata: deserializeMetadata(output),
3549
3531
  });
3550
3532
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3551
3533
  if (data.Entries != null) {
3552
- contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
3534
+ contents.Entries = de_ListDevicePositionsResponseEntryList(data.Entries, context);
3553
3535
  }
3554
3536
  if (data.NextToken != null) {
3555
3537
  contents.NextToken = __expectString(data.NextToken);
3556
3538
  }
3557
3539
  return contents;
3558
3540
  };
3559
- const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, context) => {
3541
+ const de_ListDevicePositionsCommandError = async (output, context) => {
3560
3542
  const parsedOutput = {
3561
3543
  ...output,
3562
3544
  body: await parseErrorBody(output.body, context),
@@ -3565,16 +3547,16 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
3565
3547
  switch (errorCode) {
3566
3548
  case "AccessDeniedException":
3567
3549
  case "com.amazonaws.location#AccessDeniedException":
3568
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3550
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3569
3551
  case "InternalServerException":
3570
3552
  case "com.amazonaws.location#InternalServerException":
3571
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3553
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3572
3554
  case "ThrottlingException":
3573
3555
  case "com.amazonaws.location#ThrottlingException":
3574
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3556
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3575
3557
  case "ValidationException":
3576
3558
  case "com.amazonaws.location#ValidationException":
3577
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3559
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3578
3560
  default:
3579
3561
  const parsedBody = parsedOutput.body;
3580
3562
  throwDefaultError({
@@ -3585,23 +3567,23 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
3585
3567
  });
3586
3568
  }
3587
3569
  };
3588
- export const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, context) => {
3570
+ export const de_ListGeofenceCollectionsCommand = async (output, context) => {
3589
3571
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3590
- return deserializeAws_restJson1ListGeofenceCollectionsCommandError(output, context);
3572
+ return de_ListGeofenceCollectionsCommandError(output, context);
3591
3573
  }
3592
3574
  const contents = map({
3593
3575
  $metadata: deserializeMetadata(output),
3594
3576
  });
3595
3577
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3596
3578
  if (data.Entries != null) {
3597
- contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
3579
+ contents.Entries = de_ListGeofenceCollectionsResponseEntryList(data.Entries, context);
3598
3580
  }
3599
3581
  if (data.NextToken != null) {
3600
3582
  contents.NextToken = __expectString(data.NextToken);
3601
3583
  }
3602
3584
  return contents;
3603
3585
  };
3604
- const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (output, context) => {
3586
+ const de_ListGeofenceCollectionsCommandError = async (output, context) => {
3605
3587
  const parsedOutput = {
3606
3588
  ...output,
3607
3589
  body: await parseErrorBody(output.body, context),
@@ -3610,16 +3592,16 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
3610
3592
  switch (errorCode) {
3611
3593
  case "AccessDeniedException":
3612
3594
  case "com.amazonaws.location#AccessDeniedException":
3613
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3595
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3614
3596
  case "InternalServerException":
3615
3597
  case "com.amazonaws.location#InternalServerException":
3616
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3598
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3617
3599
  case "ThrottlingException":
3618
3600
  case "com.amazonaws.location#ThrottlingException":
3619
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3601
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3620
3602
  case "ValidationException":
3621
3603
  case "com.amazonaws.location#ValidationException":
3622
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3604
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3623
3605
  default:
3624
3606
  const parsedBody = parsedOutput.body;
3625
3607
  throwDefaultError({
@@ -3630,23 +3612,23 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
3630
3612
  });
3631
3613
  }
3632
3614
  };
3633
- export const deserializeAws_restJson1ListGeofencesCommand = async (output, context) => {
3615
+ export const de_ListGeofencesCommand = async (output, context) => {
3634
3616
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3635
- return deserializeAws_restJson1ListGeofencesCommandError(output, context);
3617
+ return de_ListGeofencesCommandError(output, context);
3636
3618
  }
3637
3619
  const contents = map({
3638
3620
  $metadata: deserializeMetadata(output),
3639
3621
  });
3640
3622
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3641
3623
  if (data.Entries != null) {
3642
- contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
3624
+ contents.Entries = de_ListGeofenceResponseEntryList(data.Entries, context);
3643
3625
  }
3644
3626
  if (data.NextToken != null) {
3645
3627
  contents.NextToken = __expectString(data.NextToken);
3646
3628
  }
3647
3629
  return contents;
3648
3630
  };
3649
- const deserializeAws_restJson1ListGeofencesCommandError = async (output, context) => {
3631
+ const de_ListGeofencesCommandError = async (output, context) => {
3650
3632
  const parsedOutput = {
3651
3633
  ...output,
3652
3634
  body: await parseErrorBody(output.body, context),
@@ -3655,19 +3637,19 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
3655
3637
  switch (errorCode) {
3656
3638
  case "AccessDeniedException":
3657
3639
  case "com.amazonaws.location#AccessDeniedException":
3658
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3640
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3659
3641
  case "InternalServerException":
3660
3642
  case "com.amazonaws.location#InternalServerException":
3661
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3643
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3662
3644
  case "ResourceNotFoundException":
3663
3645
  case "com.amazonaws.location#ResourceNotFoundException":
3664
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3646
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3665
3647
  case "ThrottlingException":
3666
3648
  case "com.amazonaws.location#ThrottlingException":
3667
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3649
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3668
3650
  case "ValidationException":
3669
3651
  case "com.amazonaws.location#ValidationException":
3670
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3652
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3671
3653
  default:
3672
3654
  const parsedBody = parsedOutput.body;
3673
3655
  throwDefaultError({
@@ -3678,23 +3660,23 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
3678
3660
  });
3679
3661
  }
3680
3662
  };
3681
- export const deserializeAws_restJson1ListKeysCommand = async (output, context) => {
3663
+ export const de_ListKeysCommand = async (output, context) => {
3682
3664
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3683
- return deserializeAws_restJson1ListKeysCommandError(output, context);
3665
+ return de_ListKeysCommandError(output, context);
3684
3666
  }
3685
3667
  const contents = map({
3686
3668
  $metadata: deserializeMetadata(output),
3687
3669
  });
3688
3670
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3689
3671
  if (data.Entries != null) {
3690
- contents.Entries = deserializeAws_restJson1ListKeysResponseEntryList(data.Entries, context);
3672
+ contents.Entries = de_ListKeysResponseEntryList(data.Entries, context);
3691
3673
  }
3692
3674
  if (data.NextToken != null) {
3693
3675
  contents.NextToken = __expectString(data.NextToken);
3694
3676
  }
3695
3677
  return contents;
3696
3678
  };
3697
- const deserializeAws_restJson1ListKeysCommandError = async (output, context) => {
3679
+ const de_ListKeysCommandError = async (output, context) => {
3698
3680
  const parsedOutput = {
3699
3681
  ...output,
3700
3682
  body: await parseErrorBody(output.body, context),
@@ -3703,16 +3685,16 @@ const deserializeAws_restJson1ListKeysCommandError = async (output, context) =>
3703
3685
  switch (errorCode) {
3704
3686
  case "AccessDeniedException":
3705
3687
  case "com.amazonaws.location#AccessDeniedException":
3706
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3688
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3707
3689
  case "InternalServerException":
3708
3690
  case "com.amazonaws.location#InternalServerException":
3709
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3691
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3710
3692
  case "ThrottlingException":
3711
3693
  case "com.amazonaws.location#ThrottlingException":
3712
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3694
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3713
3695
  case "ValidationException":
3714
3696
  case "com.amazonaws.location#ValidationException":
3715
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3697
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3716
3698
  default:
3717
3699
  const parsedBody = parsedOutput.body;
3718
3700
  throwDefaultError({
@@ -3723,23 +3705,23 @@ const deserializeAws_restJson1ListKeysCommandError = async (output, context) =>
3723
3705
  });
3724
3706
  }
3725
3707
  };
3726
- export const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
3708
+ export const de_ListMapsCommand = async (output, context) => {
3727
3709
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3728
- return deserializeAws_restJson1ListMapsCommandError(output, context);
3710
+ return de_ListMapsCommandError(output, context);
3729
3711
  }
3730
3712
  const contents = map({
3731
3713
  $metadata: deserializeMetadata(output),
3732
3714
  });
3733
3715
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3734
3716
  if (data.Entries != null) {
3735
- contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
3717
+ contents.Entries = de_ListMapsResponseEntryList(data.Entries, context);
3736
3718
  }
3737
3719
  if (data.NextToken != null) {
3738
3720
  contents.NextToken = __expectString(data.NextToken);
3739
3721
  }
3740
3722
  return contents;
3741
3723
  };
3742
- const deserializeAws_restJson1ListMapsCommandError = async (output, context) => {
3724
+ const de_ListMapsCommandError = async (output, context) => {
3743
3725
  const parsedOutput = {
3744
3726
  ...output,
3745
3727
  body: await parseErrorBody(output.body, context),
@@ -3748,16 +3730,16 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
3748
3730
  switch (errorCode) {
3749
3731
  case "AccessDeniedException":
3750
3732
  case "com.amazonaws.location#AccessDeniedException":
3751
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3733
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3752
3734
  case "InternalServerException":
3753
3735
  case "com.amazonaws.location#InternalServerException":
3754
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3736
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3755
3737
  case "ThrottlingException":
3756
3738
  case "com.amazonaws.location#ThrottlingException":
3757
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3739
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3758
3740
  case "ValidationException":
3759
3741
  case "com.amazonaws.location#ValidationException":
3760
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3742
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3761
3743
  default:
3762
3744
  const parsedBody = parsedOutput.body;
3763
3745
  throwDefaultError({
@@ -3768,23 +3750,23 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
3768
3750
  });
3769
3751
  }
3770
3752
  };
3771
- export const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context) => {
3753
+ export const de_ListPlaceIndexesCommand = async (output, context) => {
3772
3754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3773
- return deserializeAws_restJson1ListPlaceIndexesCommandError(output, context);
3755
+ return de_ListPlaceIndexesCommandError(output, context);
3774
3756
  }
3775
3757
  const contents = map({
3776
3758
  $metadata: deserializeMetadata(output),
3777
3759
  });
3778
3760
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3779
3761
  if (data.Entries != null) {
3780
- contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
3762
+ contents.Entries = de_ListPlaceIndexesResponseEntryList(data.Entries, context);
3781
3763
  }
3782
3764
  if (data.NextToken != null) {
3783
3765
  contents.NextToken = __expectString(data.NextToken);
3784
3766
  }
3785
3767
  return contents;
3786
3768
  };
3787
- const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, context) => {
3769
+ const de_ListPlaceIndexesCommandError = async (output, context) => {
3788
3770
  const parsedOutput = {
3789
3771
  ...output,
3790
3772
  body: await parseErrorBody(output.body, context),
@@ -3793,16 +3775,16 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
3793
3775
  switch (errorCode) {
3794
3776
  case "AccessDeniedException":
3795
3777
  case "com.amazonaws.location#AccessDeniedException":
3796
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3778
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3797
3779
  case "InternalServerException":
3798
3780
  case "com.amazonaws.location#InternalServerException":
3799
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3781
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3800
3782
  case "ThrottlingException":
3801
3783
  case "com.amazonaws.location#ThrottlingException":
3802
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3784
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3803
3785
  case "ValidationException":
3804
3786
  case "com.amazonaws.location#ValidationException":
3805
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3787
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3806
3788
  default:
3807
3789
  const parsedBody = parsedOutput.body;
3808
3790
  throwDefaultError({
@@ -3813,23 +3795,23 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
3813
3795
  });
3814
3796
  }
3815
3797
  };
3816
- export const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, context) => {
3798
+ export const de_ListRouteCalculatorsCommand = async (output, context) => {
3817
3799
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3818
- return deserializeAws_restJson1ListRouteCalculatorsCommandError(output, context);
3800
+ return de_ListRouteCalculatorsCommandError(output, context);
3819
3801
  }
3820
3802
  const contents = map({
3821
3803
  $metadata: deserializeMetadata(output),
3822
3804
  });
3823
3805
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3824
3806
  if (data.Entries != null) {
3825
- contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
3807
+ contents.Entries = de_ListRouteCalculatorsResponseEntryList(data.Entries, context);
3826
3808
  }
3827
3809
  if (data.NextToken != null) {
3828
3810
  contents.NextToken = __expectString(data.NextToken);
3829
3811
  }
3830
3812
  return contents;
3831
3813
  };
3832
- const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output, context) => {
3814
+ const de_ListRouteCalculatorsCommandError = async (output, context) => {
3833
3815
  const parsedOutput = {
3834
3816
  ...output,
3835
3817
  body: await parseErrorBody(output.body, context),
@@ -3838,16 +3820,16 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
3838
3820
  switch (errorCode) {
3839
3821
  case "AccessDeniedException":
3840
3822
  case "com.amazonaws.location#AccessDeniedException":
3841
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3823
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3842
3824
  case "InternalServerException":
3843
3825
  case "com.amazonaws.location#InternalServerException":
3844
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3826
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3845
3827
  case "ThrottlingException":
3846
3828
  case "com.amazonaws.location#ThrottlingException":
3847
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3829
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3848
3830
  case "ValidationException":
3849
3831
  case "com.amazonaws.location#ValidationException":
3850
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3832
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3851
3833
  default:
3852
3834
  const parsedBody = parsedOutput.body;
3853
3835
  throwDefaultError({
@@ -3858,20 +3840,20 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
3858
3840
  });
3859
3841
  }
3860
3842
  };
3861
- export const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
3843
+ export const de_ListTagsForResourceCommand = async (output, context) => {
3862
3844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3863
- return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
3845
+ return de_ListTagsForResourceCommandError(output, context);
3864
3846
  }
3865
3847
  const contents = map({
3866
3848
  $metadata: deserializeMetadata(output),
3867
3849
  });
3868
3850
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3869
3851
  if (data.Tags != null) {
3870
- contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3852
+ contents.Tags = de_TagMap(data.Tags, context);
3871
3853
  }
3872
3854
  return contents;
3873
3855
  };
3874
- const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
3856
+ const de_ListTagsForResourceCommandError = async (output, context) => {
3875
3857
  const parsedOutput = {
3876
3858
  ...output,
3877
3859
  body: await parseErrorBody(output.body, context),
@@ -3880,19 +3862,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3880
3862
  switch (errorCode) {
3881
3863
  case "AccessDeniedException":
3882
3864
  case "com.amazonaws.location#AccessDeniedException":
3883
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3865
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3884
3866
  case "InternalServerException":
3885
3867
  case "com.amazonaws.location#InternalServerException":
3886
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3868
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3887
3869
  case "ResourceNotFoundException":
3888
3870
  case "com.amazonaws.location#ResourceNotFoundException":
3889
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3871
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3890
3872
  case "ThrottlingException":
3891
3873
  case "com.amazonaws.location#ThrottlingException":
3892
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3874
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3893
3875
  case "ValidationException":
3894
3876
  case "com.amazonaws.location#ValidationException":
3895
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3877
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3896
3878
  default:
3897
3879
  const parsedBody = parsedOutput.body;
3898
3880
  throwDefaultError({
@@ -3903,23 +3885,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3903
3885
  });
3904
3886
  }
3905
3887
  };
3906
- export const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, context) => {
3888
+ export const de_ListTrackerConsumersCommand = async (output, context) => {
3907
3889
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3908
- return deserializeAws_restJson1ListTrackerConsumersCommandError(output, context);
3890
+ return de_ListTrackerConsumersCommandError(output, context);
3909
3891
  }
3910
3892
  const contents = map({
3911
3893
  $metadata: deserializeMetadata(output),
3912
3894
  });
3913
3895
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3914
3896
  if (data.ConsumerArns != null) {
3915
- contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
3897
+ contents.ConsumerArns = de_ArnList(data.ConsumerArns, context);
3916
3898
  }
3917
3899
  if (data.NextToken != null) {
3918
3900
  contents.NextToken = __expectString(data.NextToken);
3919
3901
  }
3920
3902
  return contents;
3921
3903
  };
3922
- const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output, context) => {
3904
+ const de_ListTrackerConsumersCommandError = async (output, context) => {
3923
3905
  const parsedOutput = {
3924
3906
  ...output,
3925
3907
  body: await parseErrorBody(output.body, context),
@@ -3928,19 +3910,19 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
3928
3910
  switch (errorCode) {
3929
3911
  case "AccessDeniedException":
3930
3912
  case "com.amazonaws.location#AccessDeniedException":
3931
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3913
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3932
3914
  case "InternalServerException":
3933
3915
  case "com.amazonaws.location#InternalServerException":
3934
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3916
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3935
3917
  case "ResourceNotFoundException":
3936
3918
  case "com.amazonaws.location#ResourceNotFoundException":
3937
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3919
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3938
3920
  case "ThrottlingException":
3939
3921
  case "com.amazonaws.location#ThrottlingException":
3940
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3922
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3941
3923
  case "ValidationException":
3942
3924
  case "com.amazonaws.location#ValidationException":
3943
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3925
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3944
3926
  default:
3945
3927
  const parsedBody = parsedOutput.body;
3946
3928
  throwDefaultError({
@@ -3951,23 +3933,23 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
3951
3933
  });
3952
3934
  }
3953
3935
  };
3954
- export const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
3936
+ export const de_ListTrackersCommand = async (output, context) => {
3955
3937
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3956
- return deserializeAws_restJson1ListTrackersCommandError(output, context);
3938
+ return de_ListTrackersCommandError(output, context);
3957
3939
  }
3958
3940
  const contents = map({
3959
3941
  $metadata: deserializeMetadata(output),
3960
3942
  });
3961
3943
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3962
3944
  if (data.Entries != null) {
3963
- contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
3945
+ contents.Entries = de_ListTrackersResponseEntryList(data.Entries, context);
3964
3946
  }
3965
3947
  if (data.NextToken != null) {
3966
3948
  contents.NextToken = __expectString(data.NextToken);
3967
3949
  }
3968
3950
  return contents;
3969
3951
  };
3970
- const deserializeAws_restJson1ListTrackersCommandError = async (output, context) => {
3952
+ const de_ListTrackersCommandError = async (output, context) => {
3971
3953
  const parsedOutput = {
3972
3954
  ...output,
3973
3955
  body: await parseErrorBody(output.body, context),
@@ -3976,16 +3958,16 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
3976
3958
  switch (errorCode) {
3977
3959
  case "AccessDeniedException":
3978
3960
  case "com.amazonaws.location#AccessDeniedException":
3979
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
3961
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3980
3962
  case "InternalServerException":
3981
3963
  case "com.amazonaws.location#InternalServerException":
3982
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
3964
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
3983
3965
  case "ThrottlingException":
3984
3966
  case "com.amazonaws.location#ThrottlingException":
3985
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3967
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
3986
3968
  case "ValidationException":
3987
3969
  case "com.amazonaws.location#ValidationException":
3988
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
3970
+ throw await de_ValidationExceptionRes(parsedOutput, context);
3989
3971
  default:
3990
3972
  const parsedBody = parsedOutput.body;
3991
3973
  throwDefaultError({
@@ -3996,9 +3978,9 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
3996
3978
  });
3997
3979
  }
3998
3980
  };
3999
- export const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
3981
+ export const de_PutGeofenceCommand = async (output, context) => {
4000
3982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4001
- return deserializeAws_restJson1PutGeofenceCommandError(output, context);
3983
+ return de_PutGeofenceCommandError(output, context);
4002
3984
  }
4003
3985
  const contents = map({
4004
3986
  $metadata: deserializeMetadata(output),
@@ -4015,7 +3997,7 @@ export const deserializeAws_restJson1PutGeofenceCommand = async (output, context
4015
3997
  }
4016
3998
  return contents;
4017
3999
  };
4018
- const deserializeAws_restJson1PutGeofenceCommandError = async (output, context) => {
4000
+ const de_PutGeofenceCommandError = async (output, context) => {
4019
4001
  const parsedOutput = {
4020
4002
  ...output,
4021
4003
  body: await parseErrorBody(output.body, context),
@@ -4024,22 +4006,22 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
4024
4006
  switch (errorCode) {
4025
4007
  case "AccessDeniedException":
4026
4008
  case "com.amazonaws.location#AccessDeniedException":
4027
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4009
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4028
4010
  case "ConflictException":
4029
4011
  case "com.amazonaws.location#ConflictException":
4030
- throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
4012
+ throw await de_ConflictExceptionRes(parsedOutput, context);
4031
4013
  case "InternalServerException":
4032
4014
  case "com.amazonaws.location#InternalServerException":
4033
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4015
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4034
4016
  case "ResourceNotFoundException":
4035
4017
  case "com.amazonaws.location#ResourceNotFoundException":
4036
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4018
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4037
4019
  case "ThrottlingException":
4038
4020
  case "com.amazonaws.location#ThrottlingException":
4039
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4021
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4040
4022
  case "ValidationException":
4041
4023
  case "com.amazonaws.location#ValidationException":
4042
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4024
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4043
4025
  default:
4044
4026
  const parsedBody = parsedOutput.body;
4045
4027
  throwDefaultError({
@@ -4050,23 +4032,23 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
4050
4032
  });
4051
4033
  }
4052
4034
  };
4053
- export const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output, context) => {
4035
+ export const de_SearchPlaceIndexForPositionCommand = async (output, context) => {
4054
4036
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4055
- return deserializeAws_restJson1SearchPlaceIndexForPositionCommandError(output, context);
4037
+ return de_SearchPlaceIndexForPositionCommandError(output, context);
4056
4038
  }
4057
4039
  const contents = map({
4058
4040
  $metadata: deserializeMetadata(output),
4059
4041
  });
4060
4042
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4061
4043
  if (data.Results != null) {
4062
- contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
4044
+ contents.Results = de_SearchForPositionResultList(data.Results, context);
4063
4045
  }
4064
4046
  if (data.Summary != null) {
4065
- contents.Summary = deserializeAws_restJson1SearchPlaceIndexForPositionSummary(data.Summary, context);
4047
+ contents.Summary = de_SearchPlaceIndexForPositionSummary(data.Summary, context);
4066
4048
  }
4067
4049
  return contents;
4068
4050
  };
4069
- const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (output, context) => {
4051
+ const de_SearchPlaceIndexForPositionCommandError = async (output, context) => {
4070
4052
  const parsedOutput = {
4071
4053
  ...output,
4072
4054
  body: await parseErrorBody(output.body, context),
@@ -4075,19 +4057,19 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
4075
4057
  switch (errorCode) {
4076
4058
  case "AccessDeniedException":
4077
4059
  case "com.amazonaws.location#AccessDeniedException":
4078
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4060
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4079
4061
  case "InternalServerException":
4080
4062
  case "com.amazonaws.location#InternalServerException":
4081
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4063
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4082
4064
  case "ResourceNotFoundException":
4083
4065
  case "com.amazonaws.location#ResourceNotFoundException":
4084
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4066
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4085
4067
  case "ThrottlingException":
4086
4068
  case "com.amazonaws.location#ThrottlingException":
4087
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4069
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4088
4070
  case "ValidationException":
4089
4071
  case "com.amazonaws.location#ValidationException":
4090
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4072
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4091
4073
  default:
4092
4074
  const parsedBody = parsedOutput.body;
4093
4075
  throwDefaultError({
@@ -4098,23 +4080,23 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
4098
4080
  });
4099
4081
  }
4100
4082
  };
4101
- export const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
4083
+ export const de_SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
4102
4084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4103
- return deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError(output, context);
4085
+ return de_SearchPlaceIndexForSuggestionsCommandError(output, context);
4104
4086
  }
4105
4087
  const contents = map({
4106
4088
  $metadata: deserializeMetadata(output),
4107
4089
  });
4108
4090
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4109
4091
  if (data.Results != null) {
4110
- contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
4092
+ contents.Results = de_SearchForSuggestionsResultList(data.Results, context);
4111
4093
  }
4112
4094
  if (data.Summary != null) {
4113
- contents.Summary = deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
4095
+ contents.Summary = de_SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
4114
4096
  }
4115
4097
  return contents;
4116
4098
  };
4117
- const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async (output, context) => {
4099
+ const de_SearchPlaceIndexForSuggestionsCommandError = async (output, context) => {
4118
4100
  const parsedOutput = {
4119
4101
  ...output,
4120
4102
  body: await parseErrorBody(output.body, context),
@@ -4123,19 +4105,19 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
4123
4105
  switch (errorCode) {
4124
4106
  case "AccessDeniedException":
4125
4107
  case "com.amazonaws.location#AccessDeniedException":
4126
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4108
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4127
4109
  case "InternalServerException":
4128
4110
  case "com.amazonaws.location#InternalServerException":
4129
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4111
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4130
4112
  case "ResourceNotFoundException":
4131
4113
  case "com.amazonaws.location#ResourceNotFoundException":
4132
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4114
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4133
4115
  case "ThrottlingException":
4134
4116
  case "com.amazonaws.location#ThrottlingException":
4135
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4117
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4136
4118
  case "ValidationException":
4137
4119
  case "com.amazonaws.location#ValidationException":
4138
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4120
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4139
4121
  default:
4140
4122
  const parsedBody = parsedOutput.body;
4141
4123
  throwDefaultError({
@@ -4146,23 +4128,23 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
4146
4128
  });
4147
4129
  }
4148
4130
  };
4149
- export const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, context) => {
4131
+ export const de_SearchPlaceIndexForTextCommand = async (output, context) => {
4150
4132
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4151
- return deserializeAws_restJson1SearchPlaceIndexForTextCommandError(output, context);
4133
+ return de_SearchPlaceIndexForTextCommandError(output, context);
4152
4134
  }
4153
4135
  const contents = map({
4154
4136
  $metadata: deserializeMetadata(output),
4155
4137
  });
4156
4138
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4157
4139
  if (data.Results != null) {
4158
- contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
4140
+ contents.Results = de_SearchForTextResultList(data.Results, context);
4159
4141
  }
4160
4142
  if (data.Summary != null) {
4161
- contents.Summary = deserializeAws_restJson1SearchPlaceIndexForTextSummary(data.Summary, context);
4143
+ contents.Summary = de_SearchPlaceIndexForTextSummary(data.Summary, context);
4162
4144
  }
4163
4145
  return contents;
4164
4146
  };
4165
- const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (output, context) => {
4147
+ const de_SearchPlaceIndexForTextCommandError = async (output, context) => {
4166
4148
  const parsedOutput = {
4167
4149
  ...output,
4168
4150
  body: await parseErrorBody(output.body, context),
@@ -4171,19 +4153,19 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
4171
4153
  switch (errorCode) {
4172
4154
  case "AccessDeniedException":
4173
4155
  case "com.amazonaws.location#AccessDeniedException":
4174
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4156
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4175
4157
  case "InternalServerException":
4176
4158
  case "com.amazonaws.location#InternalServerException":
4177
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4159
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4178
4160
  case "ResourceNotFoundException":
4179
4161
  case "com.amazonaws.location#ResourceNotFoundException":
4180
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4162
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4181
4163
  case "ThrottlingException":
4182
4164
  case "com.amazonaws.location#ThrottlingException":
4183
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4165
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4184
4166
  case "ValidationException":
4185
4167
  case "com.amazonaws.location#ValidationException":
4186
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4168
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4187
4169
  default:
4188
4170
  const parsedBody = parsedOutput.body;
4189
4171
  throwDefaultError({
@@ -4194,9 +4176,9 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
4194
4176
  });
4195
4177
  }
4196
4178
  };
4197
- export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
4179
+ export const de_TagResourceCommand = async (output, context) => {
4198
4180
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4199
- return deserializeAws_restJson1TagResourceCommandError(output, context);
4181
+ return de_TagResourceCommandError(output, context);
4200
4182
  }
4201
4183
  const contents = map({
4202
4184
  $metadata: deserializeMetadata(output),
@@ -4204,7 +4186,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
4204
4186
  await collectBody(output.body, context);
4205
4187
  return contents;
4206
4188
  };
4207
- const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
4189
+ const de_TagResourceCommandError = async (output, context) => {
4208
4190
  const parsedOutput = {
4209
4191
  ...output,
4210
4192
  body: await parseErrorBody(output.body, context),
@@ -4213,19 +4195,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
4213
4195
  switch (errorCode) {
4214
4196
  case "AccessDeniedException":
4215
4197
  case "com.amazonaws.location#AccessDeniedException":
4216
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4198
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4217
4199
  case "InternalServerException":
4218
4200
  case "com.amazonaws.location#InternalServerException":
4219
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4201
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4220
4202
  case "ResourceNotFoundException":
4221
4203
  case "com.amazonaws.location#ResourceNotFoundException":
4222
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4204
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4223
4205
  case "ThrottlingException":
4224
4206
  case "com.amazonaws.location#ThrottlingException":
4225
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4207
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4226
4208
  case "ValidationException":
4227
4209
  case "com.amazonaws.location#ValidationException":
4228
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4210
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4229
4211
  default:
4230
4212
  const parsedBody = parsedOutput.body;
4231
4213
  throwDefaultError({
@@ -4236,9 +4218,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
4236
4218
  });
4237
4219
  }
4238
4220
  };
4239
- export const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
4221
+ export const de_UntagResourceCommand = async (output, context) => {
4240
4222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4241
- return deserializeAws_restJson1UntagResourceCommandError(output, context);
4223
+ return de_UntagResourceCommandError(output, context);
4242
4224
  }
4243
4225
  const contents = map({
4244
4226
  $metadata: deserializeMetadata(output),
@@ -4246,7 +4228,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
4246
4228
  await collectBody(output.body, context);
4247
4229
  return contents;
4248
4230
  };
4249
- const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
4231
+ const de_UntagResourceCommandError = async (output, context) => {
4250
4232
  const parsedOutput = {
4251
4233
  ...output,
4252
4234
  body: await parseErrorBody(output.body, context),
@@ -4255,19 +4237,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
4255
4237
  switch (errorCode) {
4256
4238
  case "AccessDeniedException":
4257
4239
  case "com.amazonaws.location#AccessDeniedException":
4258
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4240
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4259
4241
  case "InternalServerException":
4260
4242
  case "com.amazonaws.location#InternalServerException":
4261
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4243
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4262
4244
  case "ResourceNotFoundException":
4263
4245
  case "com.amazonaws.location#ResourceNotFoundException":
4264
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4246
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4265
4247
  case "ThrottlingException":
4266
4248
  case "com.amazonaws.location#ThrottlingException":
4267
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4249
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4268
4250
  case "ValidationException":
4269
4251
  case "com.amazonaws.location#ValidationException":
4270
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4252
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4271
4253
  default:
4272
4254
  const parsedBody = parsedOutput.body;
4273
4255
  throwDefaultError({
@@ -4278,9 +4260,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
4278
4260
  });
4279
4261
  }
4280
4262
  };
4281
- export const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, context) => {
4263
+ export const de_UpdateGeofenceCollectionCommand = async (output, context) => {
4282
4264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4283
- return deserializeAws_restJson1UpdateGeofenceCollectionCommandError(output, context);
4265
+ return de_UpdateGeofenceCollectionCommandError(output, context);
4284
4266
  }
4285
4267
  const contents = map({
4286
4268
  $metadata: deserializeMetadata(output),
@@ -4297,7 +4279,7 @@ export const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (ou
4297
4279
  }
4298
4280
  return contents;
4299
4281
  };
4300
- const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (output, context) => {
4282
+ const de_UpdateGeofenceCollectionCommandError = async (output, context) => {
4301
4283
  const parsedOutput = {
4302
4284
  ...output,
4303
4285
  body: await parseErrorBody(output.body, context),
@@ -4306,19 +4288,19 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
4306
4288
  switch (errorCode) {
4307
4289
  case "AccessDeniedException":
4308
4290
  case "com.amazonaws.location#AccessDeniedException":
4309
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4291
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4310
4292
  case "InternalServerException":
4311
4293
  case "com.amazonaws.location#InternalServerException":
4312
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4294
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4313
4295
  case "ResourceNotFoundException":
4314
4296
  case "com.amazonaws.location#ResourceNotFoundException":
4315
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4297
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4316
4298
  case "ThrottlingException":
4317
4299
  case "com.amazonaws.location#ThrottlingException":
4318
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4300
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4319
4301
  case "ValidationException":
4320
4302
  case "com.amazonaws.location#ValidationException":
4321
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4303
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4322
4304
  default:
4323
4305
  const parsedBody = parsedOutput.body;
4324
4306
  throwDefaultError({
@@ -4329,9 +4311,9 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
4329
4311
  });
4330
4312
  }
4331
4313
  };
4332
- export const deserializeAws_restJson1UpdateKeyCommand = async (output, context) => {
4314
+ export const de_UpdateKeyCommand = async (output, context) => {
4333
4315
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4334
- return deserializeAws_restJson1UpdateKeyCommandError(output, context);
4316
+ return de_UpdateKeyCommandError(output, context);
4335
4317
  }
4336
4318
  const contents = map({
4337
4319
  $metadata: deserializeMetadata(output),
@@ -4348,7 +4330,7 @@ export const deserializeAws_restJson1UpdateKeyCommand = async (output, context)
4348
4330
  }
4349
4331
  return contents;
4350
4332
  };
4351
- const deserializeAws_restJson1UpdateKeyCommandError = async (output, context) => {
4333
+ const de_UpdateKeyCommandError = async (output, context) => {
4352
4334
  const parsedOutput = {
4353
4335
  ...output,
4354
4336
  body: await parseErrorBody(output.body, context),
@@ -4357,19 +4339,19 @@ const deserializeAws_restJson1UpdateKeyCommandError = async (output, context) =>
4357
4339
  switch (errorCode) {
4358
4340
  case "AccessDeniedException":
4359
4341
  case "com.amazonaws.location#AccessDeniedException":
4360
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4342
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4361
4343
  case "InternalServerException":
4362
4344
  case "com.amazonaws.location#InternalServerException":
4363
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4345
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4364
4346
  case "ResourceNotFoundException":
4365
4347
  case "com.amazonaws.location#ResourceNotFoundException":
4366
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4348
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4367
4349
  case "ThrottlingException":
4368
4350
  case "com.amazonaws.location#ThrottlingException":
4369
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4351
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4370
4352
  case "ValidationException":
4371
4353
  case "com.amazonaws.location#ValidationException":
4372
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4354
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4373
4355
  default:
4374
4356
  const parsedBody = parsedOutput.body;
4375
4357
  throwDefaultError({
@@ -4380,9 +4362,9 @@ const deserializeAws_restJson1UpdateKeyCommandError = async (output, context) =>
4380
4362
  });
4381
4363
  }
4382
4364
  };
4383
- export const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
4365
+ export const de_UpdateMapCommand = async (output, context) => {
4384
4366
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4385
- return deserializeAws_restJson1UpdateMapCommandError(output, context);
4367
+ return de_UpdateMapCommandError(output, context);
4386
4368
  }
4387
4369
  const contents = map({
4388
4370
  $metadata: deserializeMetadata(output),
@@ -4399,7 +4381,7 @@ export const deserializeAws_restJson1UpdateMapCommand = async (output, context)
4399
4381
  }
4400
4382
  return contents;
4401
4383
  };
4402
- const deserializeAws_restJson1UpdateMapCommandError = async (output, context) => {
4384
+ const de_UpdateMapCommandError = async (output, context) => {
4403
4385
  const parsedOutput = {
4404
4386
  ...output,
4405
4387
  body: await parseErrorBody(output.body, context),
@@ -4408,19 +4390,19 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
4408
4390
  switch (errorCode) {
4409
4391
  case "AccessDeniedException":
4410
4392
  case "com.amazonaws.location#AccessDeniedException":
4411
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4393
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4412
4394
  case "InternalServerException":
4413
4395
  case "com.amazonaws.location#InternalServerException":
4414
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4396
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4415
4397
  case "ResourceNotFoundException":
4416
4398
  case "com.amazonaws.location#ResourceNotFoundException":
4417
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4399
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4418
4400
  case "ThrottlingException":
4419
4401
  case "com.amazonaws.location#ThrottlingException":
4420
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4402
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4421
4403
  case "ValidationException":
4422
4404
  case "com.amazonaws.location#ValidationException":
4423
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4405
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4424
4406
  default:
4425
4407
  const parsedBody = parsedOutput.body;
4426
4408
  throwDefaultError({
@@ -4431,9 +4413,9 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
4431
4413
  });
4432
4414
  }
4433
4415
  };
4434
- export const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context) => {
4416
+ export const de_UpdatePlaceIndexCommand = async (output, context) => {
4435
4417
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4436
- return deserializeAws_restJson1UpdatePlaceIndexCommandError(output, context);
4418
+ return de_UpdatePlaceIndexCommandError(output, context);
4437
4419
  }
4438
4420
  const contents = map({
4439
4421
  $metadata: deserializeMetadata(output),
@@ -4450,7 +4432,7 @@ export const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, co
4450
4432
  }
4451
4433
  return contents;
4452
4434
  };
4453
- const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, context) => {
4435
+ const de_UpdatePlaceIndexCommandError = async (output, context) => {
4454
4436
  const parsedOutput = {
4455
4437
  ...output,
4456
4438
  body: await parseErrorBody(output.body, context),
@@ -4459,19 +4441,19 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
4459
4441
  switch (errorCode) {
4460
4442
  case "AccessDeniedException":
4461
4443
  case "com.amazonaws.location#AccessDeniedException":
4462
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4444
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4463
4445
  case "InternalServerException":
4464
4446
  case "com.amazonaws.location#InternalServerException":
4465
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4447
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4466
4448
  case "ResourceNotFoundException":
4467
4449
  case "com.amazonaws.location#ResourceNotFoundException":
4468
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4450
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4469
4451
  case "ThrottlingException":
4470
4452
  case "com.amazonaws.location#ThrottlingException":
4471
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4453
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4472
4454
  case "ValidationException":
4473
4455
  case "com.amazonaws.location#ValidationException":
4474
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4456
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4475
4457
  default:
4476
4458
  const parsedBody = parsedOutput.body;
4477
4459
  throwDefaultError({
@@ -4482,9 +4464,9 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
4482
4464
  });
4483
4465
  }
4484
4466
  };
4485
- export const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, context) => {
4467
+ export const de_UpdateRouteCalculatorCommand = async (output, context) => {
4486
4468
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4487
- return deserializeAws_restJson1UpdateRouteCalculatorCommandError(output, context);
4469
+ return de_UpdateRouteCalculatorCommandError(output, context);
4488
4470
  }
4489
4471
  const contents = map({
4490
4472
  $metadata: deserializeMetadata(output),
@@ -4501,7 +4483,7 @@ export const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (outpu
4501
4483
  }
4502
4484
  return contents;
4503
4485
  };
4504
- const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output, context) => {
4486
+ const de_UpdateRouteCalculatorCommandError = async (output, context) => {
4505
4487
  const parsedOutput = {
4506
4488
  ...output,
4507
4489
  body: await parseErrorBody(output.body, context),
@@ -4510,19 +4492,19 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
4510
4492
  switch (errorCode) {
4511
4493
  case "AccessDeniedException":
4512
4494
  case "com.amazonaws.location#AccessDeniedException":
4513
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4495
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4514
4496
  case "InternalServerException":
4515
4497
  case "com.amazonaws.location#InternalServerException":
4516
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4498
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4517
4499
  case "ResourceNotFoundException":
4518
4500
  case "com.amazonaws.location#ResourceNotFoundException":
4519
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4501
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4520
4502
  case "ThrottlingException":
4521
4503
  case "com.amazonaws.location#ThrottlingException":
4522
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4504
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4523
4505
  case "ValidationException":
4524
4506
  case "com.amazonaws.location#ValidationException":
4525
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4507
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4526
4508
  default:
4527
4509
  const parsedBody = parsedOutput.body;
4528
4510
  throwDefaultError({
@@ -4533,9 +4515,9 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
4533
4515
  });
4534
4516
  }
4535
4517
  };
4536
- export const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) => {
4518
+ export const de_UpdateTrackerCommand = async (output, context) => {
4537
4519
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4538
- return deserializeAws_restJson1UpdateTrackerCommandError(output, context);
4520
+ return de_UpdateTrackerCommandError(output, context);
4539
4521
  }
4540
4522
  const contents = map({
4541
4523
  $metadata: deserializeMetadata(output),
@@ -4552,7 +4534,7 @@ export const deserializeAws_restJson1UpdateTrackerCommand = async (output, conte
4552
4534
  }
4553
4535
  return contents;
4554
4536
  };
4555
- const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context) => {
4537
+ const de_UpdateTrackerCommandError = async (output, context) => {
4556
4538
  const parsedOutput = {
4557
4539
  ...output,
4558
4540
  body: await parseErrorBody(output.body, context),
@@ -4561,19 +4543,19 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
4561
4543
  switch (errorCode) {
4562
4544
  case "AccessDeniedException":
4563
4545
  case "com.amazonaws.location#AccessDeniedException":
4564
- throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
4546
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4565
4547
  case "InternalServerException":
4566
4548
  case "com.amazonaws.location#InternalServerException":
4567
- throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
4549
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
4568
4550
  case "ResourceNotFoundException":
4569
4551
  case "com.amazonaws.location#ResourceNotFoundException":
4570
- throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4552
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4571
4553
  case "ThrottlingException":
4572
4554
  case "com.amazonaws.location#ThrottlingException":
4573
- throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4555
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4574
4556
  case "ValidationException":
4575
4557
  case "com.amazonaws.location#ValidationException":
4576
- throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
4558
+ throw await de_ValidationExceptionRes(parsedOutput, context);
4577
4559
  default:
4578
4560
  const parsedBody = parsedOutput.body;
4579
4561
  throwDefaultError({
@@ -4585,7 +4567,7 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
4585
4567
  }
4586
4568
  };
4587
4569
  const map = __map;
4588
- const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
4570
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
4589
4571
  const contents = map({});
4590
4572
  const data = parsedOutput.body;
4591
4573
  if (data.message != null) {
@@ -4597,7 +4579,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
4597
4579
  });
4598
4580
  return __decorateServiceException(exception, parsedOutput.body);
4599
4581
  };
4600
- const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
4582
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
4601
4583
  const contents = map({});
4602
4584
  const data = parsedOutput.body;
4603
4585
  if (data.message != null) {
@@ -4609,7 +4591,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
4609
4591
  });
4610
4592
  return __decorateServiceException(exception, parsedOutput.body);
4611
4593
  };
4612
- const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
4594
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
4613
4595
  const contents = map({});
4614
4596
  const data = parsedOutput.body;
4615
4597
  if (data.message != null) {
@@ -4621,7 +4603,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
4621
4603
  });
4622
4604
  return __decorateServiceException(exception, parsedOutput.body);
4623
4605
  };
4624
- const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
4606
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
4625
4607
  const contents = map({});
4626
4608
  const data = parsedOutput.body;
4627
4609
  if (data.message != null) {
@@ -4633,7 +4615,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
4633
4615
  });
4634
4616
  return __decorateServiceException(exception, parsedOutput.body);
4635
4617
  };
4636
- const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
4618
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
4637
4619
  const contents = map({});
4638
4620
  const data = parsedOutput.body;
4639
4621
  if (data.message != null) {
@@ -4645,7 +4627,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
4645
4627
  });
4646
4628
  return __decorateServiceException(exception, parsedOutput.body);
4647
4629
  };
4648
- const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
4630
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
4649
4631
  const contents = map({});
4650
4632
  const data = parsedOutput.body;
4651
4633
  if (data.message != null) {
@@ -4657,11 +4639,11 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
4657
4639
  });
4658
4640
  return __decorateServiceException(exception, parsedOutput.body);
4659
4641
  };
4660
- const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
4642
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
4661
4643
  const contents = map({});
4662
4644
  const data = parsedOutput.body;
4663
4645
  if (data.fieldList != null) {
4664
- contents.FieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
4646
+ contents.FieldList = de_ValidationExceptionFieldList(data.fieldList, context);
4665
4647
  }
4666
4648
  if (data.message != null) {
4667
4649
  contents.Message = __expectString(data.message);
@@ -4675,167 +4657,159 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
4675
4657
  });
4676
4658
  return __decorateServiceException(exception, parsedOutput.body);
4677
4659
  };
4678
- const serializeAws_restJson1ApiKeyActionList = (input, context) => {
4660
+ const se_ApiKeyActionList = (input, context) => {
4679
4661
  return input
4680
4662
  .filter((e) => e != null)
4681
4663
  .map((entry) => {
4682
4664
  return entry;
4683
4665
  });
4684
4666
  };
4685
- const serializeAws_restJson1ApiKeyFilter = (input, context) => {
4667
+ const se_ApiKeyFilter = (input, context) => {
4686
4668
  return {
4687
4669
  ...(input.KeyStatus != null && { KeyStatus: input.KeyStatus }),
4688
4670
  };
4689
4671
  };
4690
- const serializeAws_restJson1ApiKeyRestrictions = (input, context) => {
4672
+ const se_ApiKeyRestrictions = (input, context) => {
4691
4673
  return {
4692
- ...(input.AllowActions != null && {
4693
- AllowActions: serializeAws_restJson1ApiKeyActionList(input.AllowActions, context),
4694
- }),
4695
- ...(input.AllowReferers != null && {
4696
- AllowReferers: serializeAws_restJson1RefererPatternList(input.AllowReferers, context),
4697
- }),
4698
- ...(input.AllowResources != null && {
4699
- AllowResources: serializeAws_restJson1GeoArnList(input.AllowResources, context),
4700
- }),
4674
+ ...(input.AllowActions != null && { AllowActions: se_ApiKeyActionList(input.AllowActions, context) }),
4675
+ ...(input.AllowReferers != null && { AllowReferers: se_RefererPatternList(input.AllowReferers, context) }),
4676
+ ...(input.AllowResources != null && { AllowResources: se_GeoArnList(input.AllowResources, context) }),
4701
4677
  };
4702
4678
  };
4703
- const serializeAws_restJson1BatchPutGeofenceRequestEntry = (input, context) => {
4679
+ const se_BatchPutGeofenceRequestEntry = (input, context) => {
4704
4680
  return {
4705
4681
  ...(input.GeofenceId != null && { GeofenceId: input.GeofenceId }),
4706
- ...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
4682
+ ...(input.Geometry != null && { Geometry: se_GeofenceGeometry(input.Geometry, context) }),
4707
4683
  };
4708
4684
  };
4709
- const serializeAws_restJson1BatchPutGeofenceRequestEntryList = (input, context) => {
4685
+ const se_BatchPutGeofenceRequestEntryList = (input, context) => {
4710
4686
  return input
4711
4687
  .filter((e) => e != null)
4712
4688
  .map((entry) => {
4713
- return serializeAws_restJson1BatchPutGeofenceRequestEntry(entry, context);
4689
+ return se_BatchPutGeofenceRequestEntry(entry, context);
4714
4690
  });
4715
4691
  };
4716
- const serializeAws_restJson1BoundingBox = (input, context) => {
4692
+ const se_BoundingBox = (input, context) => {
4717
4693
  return input
4718
4694
  .filter((e) => e != null)
4719
4695
  .map((entry) => {
4720
4696
  return __serializeFloat(entry);
4721
4697
  });
4722
4698
  };
4723
- const serializeAws_restJson1CalculateRouteCarModeOptions = (input, context) => {
4699
+ const se_CalculateRouteCarModeOptions = (input, context) => {
4724
4700
  return {
4725
4701
  ...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
4726
4702
  ...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
4727
4703
  };
4728
4704
  };
4729
- const serializeAws_restJson1CalculateRouteTruckModeOptions = (input, context) => {
4705
+ const se_CalculateRouteTruckModeOptions = (input, context) => {
4730
4706
  return {
4731
4707
  ...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
4732
4708
  ...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
4733
- ...(input.Dimensions != null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) }),
4734
- ...(input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
4709
+ ...(input.Dimensions != null && { Dimensions: se_TruckDimensions(input.Dimensions, context) }),
4710
+ ...(input.Weight != null && { Weight: se_TruckWeight(input.Weight, context) }),
4735
4711
  };
4736
4712
  };
4737
- const serializeAws_restJson1Circle = (input, context) => {
4713
+ const se_Circle = (input, context) => {
4738
4714
  return {
4739
- ...(input.Center != null && { Center: serializeAws_restJson1Position(input.Center, context) }),
4715
+ ...(input.Center != null && { Center: se_Position(input.Center, context) }),
4740
4716
  ...(input.Radius != null && { Radius: __serializeFloat(input.Radius) }),
4741
4717
  };
4742
4718
  };
4743
- const serializeAws_restJson1CountryCodeList = (input, context) => {
4719
+ const se_CountryCodeList = (input, context) => {
4744
4720
  return input
4745
4721
  .filter((e) => e != null)
4746
4722
  .map((entry) => {
4747
4723
  return entry;
4748
4724
  });
4749
4725
  };
4750
- const serializeAws_restJson1DataSourceConfiguration = (input, context) => {
4726
+ const se_DataSourceConfiguration = (input, context) => {
4751
4727
  return {
4752
4728
  ...(input.IntendedUse != null && { IntendedUse: input.IntendedUse }),
4753
4729
  };
4754
4730
  };
4755
- const serializeAws_restJson1DeviceIdsList = (input, context) => {
4731
+ const se_DeviceIdsList = (input, context) => {
4756
4732
  return input
4757
4733
  .filter((e) => e != null)
4758
4734
  .map((entry) => {
4759
4735
  return entry;
4760
4736
  });
4761
4737
  };
4762
- const serializeAws_restJson1DevicePositionUpdate = (input, context) => {
4738
+ const se_DevicePositionUpdate = (input, context) => {
4763
4739
  return {
4764
- ...(input.Accuracy != null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) }),
4740
+ ...(input.Accuracy != null && { Accuracy: se_PositionalAccuracy(input.Accuracy, context) }),
4765
4741
  ...(input.DeviceId != null && { DeviceId: input.DeviceId }),
4766
- ...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
4767
- ...(input.PositionProperties != null && {
4768
- PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
4769
- }),
4742
+ ...(input.Position != null && { Position: se_Position(input.Position, context) }),
4743
+ ...(input.PositionProperties != null && { PositionProperties: se_PropertyMap(input.PositionProperties, context) }),
4770
4744
  ...(input.SampleTime != null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
4771
4745
  };
4772
4746
  };
4773
- const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
4747
+ const se_DevicePositionUpdateList = (input, context) => {
4774
4748
  return input
4775
4749
  .filter((e) => e != null)
4776
4750
  .map((entry) => {
4777
- return serializeAws_restJson1DevicePositionUpdate(entry, context);
4751
+ return se_DevicePositionUpdate(entry, context);
4778
4752
  });
4779
4753
  };
4780
- const serializeAws_restJson1GeoArnList = (input, context) => {
4754
+ const se_GeoArnList = (input, context) => {
4781
4755
  return input
4782
4756
  .filter((e) => e != null)
4783
4757
  .map((entry) => {
4784
4758
  return entry;
4785
4759
  });
4786
4760
  };
4787
- const serializeAws_restJson1GeofenceGeometry = (input, context) => {
4761
+ const se_GeofenceGeometry = (input, context) => {
4788
4762
  return {
4789
- ...(input.Circle != null && { Circle: serializeAws_restJson1Circle(input.Circle, context) }),
4790
- ...(input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
4763
+ ...(input.Circle != null && { Circle: se_Circle(input.Circle, context) }),
4764
+ ...(input.Polygon != null && { Polygon: se_LinearRings(input.Polygon, context) }),
4791
4765
  };
4792
4766
  };
4793
- const serializeAws_restJson1IdList = (input, context) => {
4767
+ const se_IdList = (input, context) => {
4794
4768
  return input
4795
4769
  .filter((e) => e != null)
4796
4770
  .map((entry) => {
4797
4771
  return entry;
4798
4772
  });
4799
4773
  };
4800
- const serializeAws_restJson1LinearRing = (input, context) => {
4774
+ const se_LinearRing = (input, context) => {
4801
4775
  return input
4802
4776
  .filter((e) => e != null)
4803
4777
  .map((entry) => {
4804
- return serializeAws_restJson1Position(entry, context);
4778
+ return se_Position(entry, context);
4805
4779
  });
4806
4780
  };
4807
- const serializeAws_restJson1LinearRings = (input, context) => {
4781
+ const se_LinearRings = (input, context) => {
4808
4782
  return input
4809
4783
  .filter((e) => e != null)
4810
4784
  .map((entry) => {
4811
- return serializeAws_restJson1LinearRing(entry, context);
4785
+ return se_LinearRing(entry, context);
4812
4786
  });
4813
4787
  };
4814
- const serializeAws_restJson1MapConfiguration = (input, context) => {
4788
+ const se_MapConfiguration = (input, context) => {
4815
4789
  return {
4816
4790
  ...(input.Style != null && { Style: input.Style }),
4817
4791
  };
4818
4792
  };
4819
- const serializeAws_restJson1Position = (input, context) => {
4793
+ const se_Position = (input, context) => {
4820
4794
  return input
4821
4795
  .filter((e) => e != null)
4822
4796
  .map((entry) => {
4823
4797
  return __serializeFloat(entry);
4824
4798
  });
4825
4799
  };
4826
- const serializeAws_restJson1PositionalAccuracy = (input, context) => {
4800
+ const se_PositionalAccuracy = (input, context) => {
4827
4801
  return {
4828
4802
  ...(input.Horizontal != null && { Horizontal: __serializeFloat(input.Horizontal) }),
4829
4803
  };
4830
4804
  };
4831
- const serializeAws_restJson1PositionList = (input, context) => {
4805
+ const se_PositionList = (input, context) => {
4832
4806
  return input
4833
4807
  .filter((e) => e != null)
4834
4808
  .map((entry) => {
4835
- return serializeAws_restJson1Position(entry, context);
4809
+ return se_Position(entry, context);
4836
4810
  });
4837
4811
  };
4838
- const serializeAws_restJson1PropertyMap = (input, context) => {
4812
+ const se_PropertyMap = (input, context) => {
4839
4813
  return Object.entries(input).reduce((acc, [key, value]) => {
4840
4814
  if (value === null) {
4841
4815
  return acc;
@@ -4844,14 +4818,14 @@ const serializeAws_restJson1PropertyMap = (input, context) => {
4844
4818
  return acc;
4845
4819
  }, {});
4846
4820
  };
4847
- const serializeAws_restJson1RefererPatternList = (input, context) => {
4821
+ const se_RefererPatternList = (input, context) => {
4848
4822
  return input
4849
4823
  .filter((e) => e != null)
4850
4824
  .map((entry) => {
4851
4825
  return entry;
4852
4826
  });
4853
4827
  };
4854
- const serializeAws_restJson1TagMap = (input, context) => {
4828
+ const se_TagMap = (input, context) => {
4855
4829
  return Object.entries(input).reduce((acc, [key, value]) => {
4856
4830
  if (value === null) {
4857
4831
  return acc;
@@ -4860,7 +4834,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
4860
4834
  return acc;
4861
4835
  }, {});
4862
4836
  };
4863
- const serializeAws_restJson1TruckDimensions = (input, context) => {
4837
+ const se_TruckDimensions = (input, context) => {
4864
4838
  return {
4865
4839
  ...(input.Height != null && { Height: __serializeFloat(input.Height) }),
4866
4840
  ...(input.Length != null && { Length: __serializeFloat(input.Length) }),
@@ -4868,20 +4842,20 @@ const serializeAws_restJson1TruckDimensions = (input, context) => {
4868
4842
  ...(input.Width != null && { Width: __serializeFloat(input.Width) }),
4869
4843
  };
4870
4844
  };
4871
- const serializeAws_restJson1TruckWeight = (input, context) => {
4845
+ const se_TruckWeight = (input, context) => {
4872
4846
  return {
4873
4847
  ...(input.Total != null && { Total: __serializeFloat(input.Total) }),
4874
4848
  ...(input.Unit != null && { Unit: input.Unit }),
4875
4849
  };
4876
4850
  };
4877
- const serializeAws_restJson1WaypointPositionList = (input, context) => {
4851
+ const se_WaypointPositionList = (input, context) => {
4878
4852
  return input
4879
4853
  .filter((e) => e != null)
4880
4854
  .map((entry) => {
4881
- return serializeAws_restJson1Position(entry, context);
4855
+ return se_Position(entry, context);
4882
4856
  });
4883
4857
  };
4884
- const deserializeAws_restJson1ApiKeyActionList = (output, context) => {
4858
+ const de_ApiKeyActionList = (output, context) => {
4885
4859
  const retVal = (output || [])
4886
4860
  .filter((e) => e != null)
4887
4861
  .map((entry) => {
@@ -4892,16 +4866,14 @@ const deserializeAws_restJson1ApiKeyActionList = (output, context) => {
4892
4866
  });
4893
4867
  return retVal;
4894
4868
  };
4895
- const deserializeAws_restJson1ApiKeyRestrictions = (output, context) => {
4869
+ const de_ApiKeyRestrictions = (output, context) => {
4896
4870
  return {
4897
- AllowActions: output.AllowActions != null ? deserializeAws_restJson1ApiKeyActionList(output.AllowActions, context) : undefined,
4898
- AllowReferers: output.AllowReferers != null
4899
- ? deserializeAws_restJson1RefererPatternList(output.AllowReferers, context)
4900
- : undefined,
4901
- AllowResources: output.AllowResources != null ? deserializeAws_restJson1GeoArnList(output.AllowResources, context) : undefined,
4871
+ AllowActions: output.AllowActions != null ? de_ApiKeyActionList(output.AllowActions, context) : undefined,
4872
+ AllowReferers: output.AllowReferers != null ? de_RefererPatternList(output.AllowReferers, context) : undefined,
4873
+ AllowResources: output.AllowResources != null ? de_GeoArnList(output.AllowResources, context) : undefined,
4902
4874
  };
4903
4875
  };
4904
- const deserializeAws_restJson1ArnList = (output, context) => {
4876
+ const de_ArnList = (output, context) => {
4905
4877
  const retVal = (output || [])
4906
4878
  .filter((e) => e != null)
4907
4879
  .map((entry) => {
@@ -4912,135 +4884,135 @@ const deserializeAws_restJson1ArnList = (output, context) => {
4912
4884
  });
4913
4885
  return retVal;
4914
4886
  };
4915
- const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
4887
+ const de_BatchDeleteDevicePositionHistoryError = (output, context) => {
4916
4888
  return {
4917
4889
  DeviceId: __expectString(output.DeviceId),
4918
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
4890
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
4919
4891
  };
4920
4892
  };
4921
- const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
4893
+ const de_BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
4922
4894
  const retVal = (output || [])
4923
4895
  .filter((e) => e != null)
4924
4896
  .map((entry) => {
4925
4897
  if (entry === null) {
4926
4898
  return null;
4927
4899
  }
4928
- return deserializeAws_restJson1BatchDeleteDevicePositionHistoryError(entry, context);
4900
+ return de_BatchDeleteDevicePositionHistoryError(entry, context);
4929
4901
  });
4930
4902
  return retVal;
4931
4903
  };
4932
- const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
4904
+ const de_BatchDeleteGeofenceError = (output, context) => {
4933
4905
  return {
4934
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
4906
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
4935
4907
  GeofenceId: __expectString(output.GeofenceId),
4936
4908
  };
4937
4909
  };
4938
- const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) => {
4910
+ const de_BatchDeleteGeofenceErrorList = (output, context) => {
4939
4911
  const retVal = (output || [])
4940
4912
  .filter((e) => e != null)
4941
4913
  .map((entry) => {
4942
4914
  if (entry === null) {
4943
4915
  return null;
4944
4916
  }
4945
- return deserializeAws_restJson1BatchDeleteGeofenceError(entry, context);
4917
+ return de_BatchDeleteGeofenceError(entry, context);
4946
4918
  });
4947
4919
  return retVal;
4948
4920
  };
4949
- const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
4921
+ const de_BatchEvaluateGeofencesError = (output, context) => {
4950
4922
  return {
4951
4923
  DeviceId: __expectString(output.DeviceId),
4952
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
4924
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
4953
4925
  SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.SampleTime)) : undefined,
4954
4926
  };
4955
4927
  };
4956
- const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context) => {
4928
+ const de_BatchEvaluateGeofencesErrorList = (output, context) => {
4957
4929
  const retVal = (output || [])
4958
4930
  .filter((e) => e != null)
4959
4931
  .map((entry) => {
4960
4932
  if (entry === null) {
4961
4933
  return null;
4962
4934
  }
4963
- return deserializeAws_restJson1BatchEvaluateGeofencesError(entry, context);
4935
+ return de_BatchEvaluateGeofencesError(entry, context);
4964
4936
  });
4965
4937
  return retVal;
4966
4938
  };
4967
- const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
4939
+ const de_BatchGetDevicePositionError = (output, context) => {
4968
4940
  return {
4969
4941
  DeviceId: __expectString(output.DeviceId),
4970
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
4942
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
4971
4943
  };
4972
4944
  };
4973
- const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context) => {
4945
+ const de_BatchGetDevicePositionErrorList = (output, context) => {
4974
4946
  const retVal = (output || [])
4975
4947
  .filter((e) => e != null)
4976
4948
  .map((entry) => {
4977
4949
  if (entry === null) {
4978
4950
  return null;
4979
4951
  }
4980
- return deserializeAws_restJson1BatchGetDevicePositionError(entry, context);
4952
+ return de_BatchGetDevicePositionError(entry, context);
4981
4953
  });
4982
4954
  return retVal;
4983
4955
  };
4984
- const deserializeAws_restJson1BatchItemError = (output, context) => {
4956
+ const de_BatchItemError = (output, context) => {
4985
4957
  return {
4986
4958
  Code: __expectString(output.Code),
4987
4959
  Message: __expectString(output.Message),
4988
4960
  };
4989
4961
  };
4990
- const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
4962
+ const de_BatchPutGeofenceError = (output, context) => {
4991
4963
  return {
4992
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
4964
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
4993
4965
  GeofenceId: __expectString(output.GeofenceId),
4994
4966
  };
4995
4967
  };
4996
- const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
4968
+ const de_BatchPutGeofenceErrorList = (output, context) => {
4997
4969
  const retVal = (output || [])
4998
4970
  .filter((e) => e != null)
4999
4971
  .map((entry) => {
5000
4972
  if (entry === null) {
5001
4973
  return null;
5002
4974
  }
5003
- return deserializeAws_restJson1BatchPutGeofenceError(entry, context);
4975
+ return de_BatchPutGeofenceError(entry, context);
5004
4976
  });
5005
4977
  return retVal;
5006
4978
  };
5007
- const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
4979
+ const de_BatchPutGeofenceSuccess = (output, context) => {
5008
4980
  return {
5009
4981
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5010
4982
  GeofenceId: __expectString(output.GeofenceId),
5011
4983
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5012
4984
  };
5013
4985
  };
5014
- const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) => {
4986
+ const de_BatchPutGeofenceSuccessList = (output, context) => {
5015
4987
  const retVal = (output || [])
5016
4988
  .filter((e) => e != null)
5017
4989
  .map((entry) => {
5018
4990
  if (entry === null) {
5019
4991
  return null;
5020
4992
  }
5021
- return deserializeAws_restJson1BatchPutGeofenceSuccess(entry, context);
4993
+ return de_BatchPutGeofenceSuccess(entry, context);
5022
4994
  });
5023
4995
  return retVal;
5024
4996
  };
5025
- const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
4997
+ const de_BatchUpdateDevicePositionError = (output, context) => {
5026
4998
  return {
5027
4999
  DeviceId: __expectString(output.DeviceId),
5028
- Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
5000
+ Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
5029
5001
  SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.SampleTime)) : undefined,
5030
5002
  };
5031
5003
  };
5032
- const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, context) => {
5004
+ const de_BatchUpdateDevicePositionErrorList = (output, context) => {
5033
5005
  const retVal = (output || [])
5034
5006
  .filter((e) => e != null)
5035
5007
  .map((entry) => {
5036
5008
  if (entry === null) {
5037
5009
  return null;
5038
5010
  }
5039
- return deserializeAws_restJson1BatchUpdateDevicePositionError(entry, context);
5011
+ return de_BatchUpdateDevicePositionError(entry, context);
5040
5012
  });
5041
5013
  return retVal;
5042
5014
  };
5043
- const deserializeAws_restJson1BoundingBox = (output, context) => {
5015
+ const de_BoundingBox = (output, context) => {
5044
5016
  const retVal = (output || [])
5045
5017
  .filter((e) => e != null)
5046
5018
  .map((entry) => {
@@ -5051,7 +5023,7 @@ const deserializeAws_restJson1BoundingBox = (output, context) => {
5051
5023
  });
5052
5024
  return retVal;
5053
5025
  };
5054
- const deserializeAws_restJson1CalculateRouteMatrixSummary = (output, context) => {
5026
+ const de_CalculateRouteMatrixSummary = (output, context) => {
5055
5027
  return {
5056
5028
  DataSource: __expectString(output.DataSource),
5057
5029
  DistanceUnit: __expectString(output.DistanceUnit),
@@ -5059,22 +5031,22 @@ const deserializeAws_restJson1CalculateRouteMatrixSummary = (output, context) =>
5059
5031
  RouteCount: __expectInt32(output.RouteCount),
5060
5032
  };
5061
5033
  };
5062
- const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
5034
+ const de_CalculateRouteSummary = (output, context) => {
5063
5035
  return {
5064
5036
  DataSource: __expectString(output.DataSource),
5065
5037
  Distance: __limitedParseDouble(output.Distance),
5066
5038
  DistanceUnit: __expectString(output.DistanceUnit),
5067
5039
  DurationSeconds: __limitedParseDouble(output.DurationSeconds),
5068
- RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
5040
+ RouteBBox: output.RouteBBox != null ? de_BoundingBox(output.RouteBBox, context) : undefined,
5069
5041
  };
5070
5042
  };
5071
- const deserializeAws_restJson1Circle = (output, context) => {
5043
+ const de_Circle = (output, context) => {
5072
5044
  return {
5073
- Center: output.Center != null ? deserializeAws_restJson1Position(output.Center, context) : undefined,
5045
+ Center: output.Center != null ? de_Position(output.Center, context) : undefined,
5074
5046
  Radius: __limitedParseDouble(output.Radius),
5075
5047
  };
5076
5048
  };
5077
- const deserializeAws_restJson1CountryCodeList = (output, context) => {
5049
+ const de_CountryCodeList = (output, context) => {
5078
5050
  const retVal = (output || [])
5079
5051
  .filter((e) => e != null)
5080
5052
  .map((entry) => {
@@ -5085,35 +5057,33 @@ const deserializeAws_restJson1CountryCodeList = (output, context) => {
5085
5057
  });
5086
5058
  return retVal;
5087
5059
  };
5088
- const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
5060
+ const de_DataSourceConfiguration = (output, context) => {
5089
5061
  return {
5090
5062
  IntendedUse: __expectString(output.IntendedUse),
5091
5063
  };
5092
5064
  };
5093
- const deserializeAws_restJson1DevicePosition = (output, context) => {
5065
+ const de_DevicePosition = (output, context) => {
5094
5066
  return {
5095
- Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
5067
+ Accuracy: output.Accuracy != null ? de_PositionalAccuracy(output.Accuracy, context) : undefined,
5096
5068
  DeviceId: __expectString(output.DeviceId),
5097
- Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
5098
- PositionProperties: output.PositionProperties != null
5099
- ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
5100
- : undefined,
5069
+ Position: output.Position != null ? de_Position(output.Position, context) : undefined,
5070
+ PositionProperties: output.PositionProperties != null ? de_PropertyMap(output.PositionProperties, context) : undefined,
5101
5071
  ReceivedTime: output.ReceivedTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.ReceivedTime)) : undefined,
5102
5072
  SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.SampleTime)) : undefined,
5103
5073
  };
5104
5074
  };
5105
- const deserializeAws_restJson1DevicePositionList = (output, context) => {
5075
+ const de_DevicePositionList = (output, context) => {
5106
5076
  const retVal = (output || [])
5107
5077
  .filter((e) => e != null)
5108
5078
  .map((entry) => {
5109
5079
  if (entry === null) {
5110
5080
  return null;
5111
5081
  }
5112
- return deserializeAws_restJson1DevicePosition(entry, context);
5082
+ return de_DevicePosition(entry, context);
5113
5083
  });
5114
5084
  return retVal;
5115
5085
  };
5116
- const deserializeAws_restJson1GeoArnList = (output, context) => {
5086
+ const de_GeoArnList = (output, context) => {
5117
5087
  const retVal = (output || [])
5118
5088
  .filter((e) => e != null)
5119
5089
  .map((entry) => {
@@ -5124,94 +5094,92 @@ const deserializeAws_restJson1GeoArnList = (output, context) => {
5124
5094
  });
5125
5095
  return retVal;
5126
5096
  };
5127
- const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
5097
+ const de_GeofenceGeometry = (output, context) => {
5128
5098
  return {
5129
- Circle: output.Circle != null ? deserializeAws_restJson1Circle(output.Circle, context) : undefined,
5130
- Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
5099
+ Circle: output.Circle != null ? de_Circle(output.Circle, context) : undefined,
5100
+ Polygon: output.Polygon != null ? de_LinearRings(output.Polygon, context) : undefined,
5131
5101
  };
5132
5102
  };
5133
- const deserializeAws_restJson1Leg = (output, context) => {
5103
+ const de_Leg = (output, context) => {
5134
5104
  return {
5135
5105
  Distance: __limitedParseDouble(output.Distance),
5136
5106
  DurationSeconds: __limitedParseDouble(output.DurationSeconds),
5137
- EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
5138
- Geometry: output.Geometry != null ? deserializeAws_restJson1LegGeometry(output.Geometry, context) : undefined,
5139
- StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
5140
- Steps: output.Steps != null ? deserializeAws_restJson1StepList(output.Steps, context) : undefined,
5107
+ EndPosition: output.EndPosition != null ? de_Position(output.EndPosition, context) : undefined,
5108
+ Geometry: output.Geometry != null ? de_LegGeometry(output.Geometry, context) : undefined,
5109
+ StartPosition: output.StartPosition != null ? de_Position(output.StartPosition, context) : undefined,
5110
+ Steps: output.Steps != null ? de_StepList(output.Steps, context) : undefined,
5141
5111
  };
5142
5112
  };
5143
- const deserializeAws_restJson1LegGeometry = (output, context) => {
5113
+ const de_LegGeometry = (output, context) => {
5144
5114
  return {
5145
- LineString: output.LineString != null ? deserializeAws_restJson1LineString(output.LineString, context) : undefined,
5115
+ LineString: output.LineString != null ? de_LineString(output.LineString, context) : undefined,
5146
5116
  };
5147
5117
  };
5148
- const deserializeAws_restJson1LegList = (output, context) => {
5118
+ const de_LegList = (output, context) => {
5149
5119
  const retVal = (output || [])
5150
5120
  .filter((e) => e != null)
5151
5121
  .map((entry) => {
5152
5122
  if (entry === null) {
5153
5123
  return null;
5154
5124
  }
5155
- return deserializeAws_restJson1Leg(entry, context);
5125
+ return de_Leg(entry, context);
5156
5126
  });
5157
5127
  return retVal;
5158
5128
  };
5159
- const deserializeAws_restJson1LinearRing = (output, context) => {
5129
+ const de_LinearRing = (output, context) => {
5160
5130
  const retVal = (output || [])
5161
5131
  .filter((e) => e != null)
5162
5132
  .map((entry) => {
5163
5133
  if (entry === null) {
5164
5134
  return null;
5165
5135
  }
5166
- return deserializeAws_restJson1Position(entry, context);
5136
+ return de_Position(entry, context);
5167
5137
  });
5168
5138
  return retVal;
5169
5139
  };
5170
- const deserializeAws_restJson1LinearRings = (output, context) => {
5140
+ const de_LinearRings = (output, context) => {
5171
5141
  const retVal = (output || [])
5172
5142
  .filter((e) => e != null)
5173
5143
  .map((entry) => {
5174
5144
  if (entry === null) {
5175
5145
  return null;
5176
5146
  }
5177
- return deserializeAws_restJson1LinearRing(entry, context);
5147
+ return de_LinearRing(entry, context);
5178
5148
  });
5179
5149
  return retVal;
5180
5150
  };
5181
- const deserializeAws_restJson1LineString = (output, context) => {
5151
+ const de_LineString = (output, context) => {
5182
5152
  const retVal = (output || [])
5183
5153
  .filter((e) => e != null)
5184
5154
  .map((entry) => {
5185
5155
  if (entry === null) {
5186
5156
  return null;
5187
5157
  }
5188
- return deserializeAws_restJson1Position(entry, context);
5158
+ return de_Position(entry, context);
5189
5159
  });
5190
5160
  return retVal;
5191
5161
  };
5192
- const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
5162
+ const de_ListDevicePositionsResponseEntry = (output, context) => {
5193
5163
  return {
5194
- Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
5164
+ Accuracy: output.Accuracy != null ? de_PositionalAccuracy(output.Accuracy, context) : undefined,
5195
5165
  DeviceId: __expectString(output.DeviceId),
5196
- Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
5197
- PositionProperties: output.PositionProperties != null
5198
- ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
5199
- : undefined,
5166
+ Position: output.Position != null ? de_Position(output.Position, context) : undefined,
5167
+ PositionProperties: output.PositionProperties != null ? de_PropertyMap(output.PositionProperties, context) : undefined,
5200
5168
  SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.SampleTime)) : undefined,
5201
5169
  };
5202
5170
  };
5203
- const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, context) => {
5171
+ const de_ListDevicePositionsResponseEntryList = (output, context) => {
5204
5172
  const retVal = (output || [])
5205
5173
  .filter((e) => e != null)
5206
5174
  .map((entry) => {
5207
5175
  if (entry === null) {
5208
5176
  return null;
5209
5177
  }
5210
- return deserializeAws_restJson1ListDevicePositionsResponseEntry(entry, context);
5178
+ return de_ListDevicePositionsResponseEntry(entry, context);
5211
5179
  });
5212
5180
  return retVal;
5213
5181
  };
5214
- const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
5182
+ const de_ListGeofenceCollectionsResponseEntry = (output, context) => {
5215
5183
  return {
5216
5184
  CollectionName: __expectString(output.CollectionName),
5217
5185
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
@@ -5221,61 +5189,59 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, co
5221
5189
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5222
5190
  };
5223
5191
  };
5224
- const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output, context) => {
5192
+ const de_ListGeofenceCollectionsResponseEntryList = (output, context) => {
5225
5193
  const retVal = (output || [])
5226
5194
  .filter((e) => e != null)
5227
5195
  .map((entry) => {
5228
5196
  if (entry === null) {
5229
5197
  return null;
5230
5198
  }
5231
- return deserializeAws_restJson1ListGeofenceCollectionsResponseEntry(entry, context);
5199
+ return de_ListGeofenceCollectionsResponseEntry(entry, context);
5232
5200
  });
5233
5201
  return retVal;
5234
5202
  };
5235
- const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
5203
+ const de_ListGeofenceResponseEntry = (output, context) => {
5236
5204
  return {
5237
5205
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5238
5206
  GeofenceId: __expectString(output.GeofenceId),
5239
- Geometry: output.Geometry != null ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context) : undefined,
5207
+ Geometry: output.Geometry != null ? de_GeofenceGeometry(output.Geometry, context) : undefined,
5240
5208
  Status: __expectString(output.Status),
5241
5209
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5242
5210
  };
5243
5211
  };
5244
- const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context) => {
5212
+ const de_ListGeofenceResponseEntryList = (output, context) => {
5245
5213
  const retVal = (output || [])
5246
5214
  .filter((e) => e != null)
5247
5215
  .map((entry) => {
5248
5216
  if (entry === null) {
5249
5217
  return null;
5250
5218
  }
5251
- return deserializeAws_restJson1ListGeofenceResponseEntry(entry, context);
5219
+ return de_ListGeofenceResponseEntry(entry, context);
5252
5220
  });
5253
5221
  return retVal;
5254
5222
  };
5255
- const deserializeAws_restJson1ListKeysResponseEntry = (output, context) => {
5223
+ const de_ListKeysResponseEntry = (output, context) => {
5256
5224
  return {
5257
5225
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5258
5226
  Description: __expectString(output.Description),
5259
5227
  ExpireTime: output.ExpireTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.ExpireTime)) : undefined,
5260
5228
  KeyName: __expectString(output.KeyName),
5261
- Restrictions: output.Restrictions != null
5262
- ? deserializeAws_restJson1ApiKeyRestrictions(output.Restrictions, context)
5263
- : undefined,
5229
+ Restrictions: output.Restrictions != null ? de_ApiKeyRestrictions(output.Restrictions, context) : undefined,
5264
5230
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5265
5231
  };
5266
5232
  };
5267
- const deserializeAws_restJson1ListKeysResponseEntryList = (output, context) => {
5233
+ const de_ListKeysResponseEntryList = (output, context) => {
5268
5234
  const retVal = (output || [])
5269
5235
  .filter((e) => e != null)
5270
5236
  .map((entry) => {
5271
5237
  if (entry === null) {
5272
5238
  return null;
5273
5239
  }
5274
- return deserializeAws_restJson1ListKeysResponseEntry(entry, context);
5240
+ return de_ListKeysResponseEntry(entry, context);
5275
5241
  });
5276
5242
  return retVal;
5277
5243
  };
5278
- const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
5244
+ const de_ListMapsResponseEntry = (output, context) => {
5279
5245
  return {
5280
5246
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5281
5247
  DataSource: __expectString(output.DataSource),
@@ -5285,18 +5251,18 @@ const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
5285
5251
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5286
5252
  };
5287
5253
  };
5288
- const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
5254
+ const de_ListMapsResponseEntryList = (output, context) => {
5289
5255
  const retVal = (output || [])
5290
5256
  .filter((e) => e != null)
5291
5257
  .map((entry) => {
5292
5258
  if (entry === null) {
5293
5259
  return null;
5294
5260
  }
5295
- return deserializeAws_restJson1ListMapsResponseEntry(entry, context);
5261
+ return de_ListMapsResponseEntry(entry, context);
5296
5262
  });
5297
5263
  return retVal;
5298
5264
  };
5299
- const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
5265
+ const de_ListPlaceIndexesResponseEntry = (output, context) => {
5300
5266
  return {
5301
5267
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5302
5268
  DataSource: __expectString(output.DataSource),
@@ -5306,18 +5272,18 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context)
5306
5272
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5307
5273
  };
5308
5274
  };
5309
- const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, context) => {
5275
+ const de_ListPlaceIndexesResponseEntryList = (output, context) => {
5310
5276
  const retVal = (output || [])
5311
5277
  .filter((e) => e != null)
5312
5278
  .map((entry) => {
5313
5279
  if (entry === null) {
5314
5280
  return null;
5315
5281
  }
5316
- return deserializeAws_restJson1ListPlaceIndexesResponseEntry(entry, context);
5282
+ return de_ListPlaceIndexesResponseEntry(entry, context);
5317
5283
  });
5318
5284
  return retVal;
5319
5285
  };
5320
- const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
5286
+ const de_ListRouteCalculatorsResponseEntry = (output, context) => {
5321
5287
  return {
5322
5288
  CalculatorName: __expectString(output.CalculatorName),
5323
5289
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
@@ -5327,18 +5293,18 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, conte
5327
5293
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5328
5294
  };
5329
5295
  };
5330
- const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, context) => {
5296
+ const de_ListRouteCalculatorsResponseEntryList = (output, context) => {
5331
5297
  const retVal = (output || [])
5332
5298
  .filter((e) => e != null)
5333
5299
  .map((entry) => {
5334
5300
  if (entry === null) {
5335
5301
  return null;
5336
5302
  }
5337
- return deserializeAws_restJson1ListRouteCalculatorsResponseEntry(entry, context);
5303
+ return de_ListRouteCalculatorsResponseEntry(entry, context);
5338
5304
  });
5339
5305
  return retVal;
5340
5306
  };
5341
- const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
5307
+ const de_ListTrackersResponseEntry = (output, context) => {
5342
5308
  return {
5343
5309
  CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CreateTime)) : undefined,
5344
5310
  Description: __expectString(output.Description),
@@ -5348,27 +5314,27 @@ const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
5348
5314
  UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.UpdateTime)) : undefined,
5349
5315
  };
5350
5316
  };
5351
- const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context) => {
5317
+ const de_ListTrackersResponseEntryList = (output, context) => {
5352
5318
  const retVal = (output || [])
5353
5319
  .filter((e) => e != null)
5354
5320
  .map((entry) => {
5355
5321
  if (entry === null) {
5356
5322
  return null;
5357
5323
  }
5358
- return deserializeAws_restJson1ListTrackersResponseEntry(entry, context);
5324
+ return de_ListTrackersResponseEntry(entry, context);
5359
5325
  });
5360
5326
  return retVal;
5361
5327
  };
5362
- const deserializeAws_restJson1MapConfiguration = (output, context) => {
5328
+ const de_MapConfiguration = (output, context) => {
5363
5329
  return {
5364
5330
  Style: __expectString(output.Style),
5365
5331
  };
5366
5332
  };
5367
- const deserializeAws_restJson1Place = (output, context) => {
5333
+ const de_Place = (output, context) => {
5368
5334
  return {
5369
5335
  AddressNumber: __expectString(output.AddressNumber),
5370
5336
  Country: __expectString(output.Country),
5371
- Geometry: output.Geometry != null ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context) : undefined,
5337
+ Geometry: output.Geometry != null ? de_PlaceGeometry(output.Geometry, context) : undefined,
5372
5338
  Interpolated: __expectBoolean(output.Interpolated),
5373
5339
  Label: __expectString(output.Label),
5374
5340
  Municipality: __expectString(output.Municipality),
@@ -5377,17 +5343,17 @@ const deserializeAws_restJson1Place = (output, context) => {
5377
5343
  Region: __expectString(output.Region),
5378
5344
  Street: __expectString(output.Street),
5379
5345
  SubRegion: __expectString(output.SubRegion),
5380
- TimeZone: output.TimeZone != null ? deserializeAws_restJson1TimeZone(output.TimeZone, context) : undefined,
5346
+ TimeZone: output.TimeZone != null ? de_TimeZone(output.TimeZone, context) : undefined,
5381
5347
  UnitNumber: __expectString(output.UnitNumber),
5382
5348
  UnitType: __expectString(output.UnitType),
5383
5349
  };
5384
5350
  };
5385
- const deserializeAws_restJson1PlaceGeometry = (output, context) => {
5351
+ const de_PlaceGeometry = (output, context) => {
5386
5352
  return {
5387
- Point: output.Point != null ? deserializeAws_restJson1Position(output.Point, context) : undefined,
5353
+ Point: output.Point != null ? de_Position(output.Point, context) : undefined,
5388
5354
  };
5389
5355
  };
5390
- const deserializeAws_restJson1Position = (output, context) => {
5356
+ const de_Position = (output, context) => {
5391
5357
  const retVal = (output || [])
5392
5358
  .filter((e) => e != null)
5393
5359
  .map((entry) => {
@@ -5398,23 +5364,23 @@ const deserializeAws_restJson1Position = (output, context) => {
5398
5364
  });
5399
5365
  return retVal;
5400
5366
  };
5401
- const deserializeAws_restJson1PositionalAccuracy = (output, context) => {
5367
+ const de_PositionalAccuracy = (output, context) => {
5402
5368
  return {
5403
5369
  Horizontal: __limitedParseDouble(output.Horizontal),
5404
5370
  };
5405
5371
  };
5406
- const deserializeAws_restJson1PositionList = (output, context) => {
5372
+ const de_PositionList = (output, context) => {
5407
5373
  const retVal = (output || [])
5408
5374
  .filter((e) => e != null)
5409
5375
  .map((entry) => {
5410
5376
  if (entry === null) {
5411
5377
  return null;
5412
5378
  }
5413
- return deserializeAws_restJson1Position(entry, context);
5379
+ return de_Position(entry, context);
5414
5380
  });
5415
5381
  return retVal;
5416
5382
  };
5417
- const deserializeAws_restJson1PropertyMap = (output, context) => {
5383
+ const de_PropertyMap = (output, context) => {
5418
5384
  return Object.entries(output).reduce((acc, [key, value]) => {
5419
5385
  if (value === null) {
5420
5386
  return acc;
@@ -5423,7 +5389,7 @@ const deserializeAws_restJson1PropertyMap = (output, context) => {
5423
5389
  return acc;
5424
5390
  }, {});
5425
5391
  };
5426
- const deserializeAws_restJson1RefererPatternList = (output, context) => {
5392
+ const de_RefererPatternList = (output, context) => {
5427
5393
  const retVal = (output || [])
5428
5394
  .filter((e) => e != null)
5429
5395
  .map((entry) => {
@@ -5434,151 +5400,147 @@ const deserializeAws_restJson1RefererPatternList = (output, context) => {
5434
5400
  });
5435
5401
  return retVal;
5436
5402
  };
5437
- const deserializeAws_restJson1RouteMatrix = (output, context) => {
5403
+ const de_RouteMatrix = (output, context) => {
5438
5404
  const retVal = (output || [])
5439
5405
  .filter((e) => e != null)
5440
5406
  .map((entry) => {
5441
5407
  if (entry === null) {
5442
5408
  return null;
5443
5409
  }
5444
- return deserializeAws_restJson1RouteMatrixRow(entry, context);
5410
+ return de_RouteMatrixRow(entry, context);
5445
5411
  });
5446
5412
  return retVal;
5447
5413
  };
5448
- const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
5414
+ const de_RouteMatrixEntry = (output, context) => {
5449
5415
  return {
5450
5416
  Distance: __limitedParseDouble(output.Distance),
5451
5417
  DurationSeconds: __limitedParseDouble(output.DurationSeconds),
5452
- Error: output.Error != null ? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context) : undefined,
5418
+ Error: output.Error != null ? de_RouteMatrixEntryError(output.Error, context) : undefined,
5453
5419
  };
5454
5420
  };
5455
- const deserializeAws_restJson1RouteMatrixEntryError = (output, context) => {
5421
+ const de_RouteMatrixEntryError = (output, context) => {
5456
5422
  return {
5457
5423
  Code: __expectString(output.Code),
5458
5424
  Message: __expectString(output.Message),
5459
5425
  };
5460
5426
  };
5461
- const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
5427
+ const de_RouteMatrixRow = (output, context) => {
5462
5428
  const retVal = (output || [])
5463
5429
  .filter((e) => e != null)
5464
5430
  .map((entry) => {
5465
5431
  if (entry === null) {
5466
5432
  return null;
5467
5433
  }
5468
- return deserializeAws_restJson1RouteMatrixEntry(entry, context);
5434
+ return de_RouteMatrixEntry(entry, context);
5469
5435
  });
5470
5436
  return retVal;
5471
5437
  };
5472
- const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
5438
+ const de_SearchForPositionResult = (output, context) => {
5473
5439
  return {
5474
5440
  Distance: __limitedParseDouble(output.Distance),
5475
- Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
5441
+ Place: output.Place != null ? de_Place(output.Place, context) : undefined,
5476
5442
  PlaceId: __expectString(output.PlaceId),
5477
5443
  };
5478
5444
  };
5479
- const deserializeAws_restJson1SearchForPositionResultList = (output, context) => {
5445
+ const de_SearchForPositionResultList = (output, context) => {
5480
5446
  const retVal = (output || [])
5481
5447
  .filter((e) => e != null)
5482
5448
  .map((entry) => {
5483
5449
  if (entry === null) {
5484
5450
  return null;
5485
5451
  }
5486
- return deserializeAws_restJson1SearchForPositionResult(entry, context);
5452
+ return de_SearchForPositionResult(entry, context);
5487
5453
  });
5488
5454
  return retVal;
5489
5455
  };
5490
- const deserializeAws_restJson1SearchForSuggestionsResult = (output, context) => {
5456
+ const de_SearchForSuggestionsResult = (output, context) => {
5491
5457
  return {
5492
5458
  PlaceId: __expectString(output.PlaceId),
5493
5459
  Text: __expectString(output.Text),
5494
5460
  };
5495
5461
  };
5496
- const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context) => {
5462
+ const de_SearchForSuggestionsResultList = (output, context) => {
5497
5463
  const retVal = (output || [])
5498
5464
  .filter((e) => e != null)
5499
5465
  .map((entry) => {
5500
5466
  if (entry === null) {
5501
5467
  return null;
5502
5468
  }
5503
- return deserializeAws_restJson1SearchForSuggestionsResult(entry, context);
5469
+ return de_SearchForSuggestionsResult(entry, context);
5504
5470
  });
5505
5471
  return retVal;
5506
5472
  };
5507
- const deserializeAws_restJson1SearchForTextResult = (output, context) => {
5473
+ const de_SearchForTextResult = (output, context) => {
5508
5474
  return {
5509
5475
  Distance: __limitedParseDouble(output.Distance),
5510
- Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
5476
+ Place: output.Place != null ? de_Place(output.Place, context) : undefined,
5511
5477
  PlaceId: __expectString(output.PlaceId),
5512
5478
  Relevance: __limitedParseDouble(output.Relevance),
5513
5479
  };
5514
5480
  };
5515
- const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
5481
+ const de_SearchForTextResultList = (output, context) => {
5516
5482
  const retVal = (output || [])
5517
5483
  .filter((e) => e != null)
5518
5484
  .map((entry) => {
5519
5485
  if (entry === null) {
5520
5486
  return null;
5521
5487
  }
5522
- return deserializeAws_restJson1SearchForTextResult(entry, context);
5488
+ return de_SearchForTextResult(entry, context);
5523
5489
  });
5524
5490
  return retVal;
5525
5491
  };
5526
- const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
5492
+ const de_SearchPlaceIndexForPositionSummary = (output, context) => {
5527
5493
  return {
5528
5494
  DataSource: __expectString(output.DataSource),
5529
5495
  Language: __expectString(output.Language),
5530
5496
  MaxResults: __expectInt32(output.MaxResults),
5531
- Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
5497
+ Position: output.Position != null ? de_Position(output.Position, context) : undefined,
5532
5498
  };
5533
5499
  };
5534
- const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, context) => {
5500
+ const de_SearchPlaceIndexForSuggestionsSummary = (output, context) => {
5535
5501
  return {
5536
- BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
5502
+ BiasPosition: output.BiasPosition != null ? de_Position(output.BiasPosition, context) : undefined,
5537
5503
  DataSource: __expectString(output.DataSource),
5538
- FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
5539
- FilterCountries: output.FilterCountries != null
5540
- ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
5541
- : undefined,
5504
+ FilterBBox: output.FilterBBox != null ? de_BoundingBox(output.FilterBBox, context) : undefined,
5505
+ FilterCountries: output.FilterCountries != null ? de_CountryCodeList(output.FilterCountries, context) : undefined,
5542
5506
  Language: __expectString(output.Language),
5543
5507
  MaxResults: __expectInt32(output.MaxResults),
5544
5508
  Text: __expectString(output.Text),
5545
5509
  };
5546
5510
  };
5547
- const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context) => {
5511
+ const de_SearchPlaceIndexForTextSummary = (output, context) => {
5548
5512
  return {
5549
- BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
5513
+ BiasPosition: output.BiasPosition != null ? de_Position(output.BiasPosition, context) : undefined,
5550
5514
  DataSource: __expectString(output.DataSource),
5551
- FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
5552
- FilterCountries: output.FilterCountries != null
5553
- ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
5554
- : undefined,
5515
+ FilterBBox: output.FilterBBox != null ? de_BoundingBox(output.FilterBBox, context) : undefined,
5516
+ FilterCountries: output.FilterCountries != null ? de_CountryCodeList(output.FilterCountries, context) : undefined,
5555
5517
  Language: __expectString(output.Language),
5556
5518
  MaxResults: __expectInt32(output.MaxResults),
5557
- ResultBBox: output.ResultBBox != null ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context) : undefined,
5519
+ ResultBBox: output.ResultBBox != null ? de_BoundingBox(output.ResultBBox, context) : undefined,
5558
5520
  Text: __expectString(output.Text),
5559
5521
  };
5560
5522
  };
5561
- const deserializeAws_restJson1Step = (output, context) => {
5523
+ const de_Step = (output, context) => {
5562
5524
  return {
5563
5525
  Distance: __limitedParseDouble(output.Distance),
5564
5526
  DurationSeconds: __limitedParseDouble(output.DurationSeconds),
5565
- EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
5527
+ EndPosition: output.EndPosition != null ? de_Position(output.EndPosition, context) : undefined,
5566
5528
  GeometryOffset: __expectInt32(output.GeometryOffset),
5567
- StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
5529
+ StartPosition: output.StartPosition != null ? de_Position(output.StartPosition, context) : undefined,
5568
5530
  };
5569
5531
  };
5570
- const deserializeAws_restJson1StepList = (output, context) => {
5532
+ const de_StepList = (output, context) => {
5571
5533
  const retVal = (output || [])
5572
5534
  .filter((e) => e != null)
5573
5535
  .map((entry) => {
5574
5536
  if (entry === null) {
5575
5537
  return null;
5576
5538
  }
5577
- return deserializeAws_restJson1Step(entry, context);
5539
+ return de_Step(entry, context);
5578
5540
  });
5579
5541
  return retVal;
5580
5542
  };
5581
- const deserializeAws_restJson1TagMap = (output, context) => {
5543
+ const de_TagMap = (output, context) => {
5582
5544
  return Object.entries(output).reduce((acc, [key, value]) => {
5583
5545
  if (value === null) {
5584
5546
  return acc;
@@ -5587,26 +5549,26 @@ const deserializeAws_restJson1TagMap = (output, context) => {
5587
5549
  return acc;
5588
5550
  }, {});
5589
5551
  };
5590
- const deserializeAws_restJson1TimeZone = (output, context) => {
5552
+ const de_TimeZone = (output, context) => {
5591
5553
  return {
5592
5554
  Name: __expectString(output.Name),
5593
5555
  Offset: __expectInt32(output.Offset),
5594
5556
  };
5595
5557
  };
5596
- const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
5558
+ const de_ValidationExceptionField = (output, context) => {
5597
5559
  return {
5598
5560
  Message: __expectString(output.message),
5599
5561
  Name: __expectString(output.name),
5600
5562
  };
5601
5563
  };
5602
- const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
5564
+ const de_ValidationExceptionFieldList = (output, context) => {
5603
5565
  const retVal = (output || [])
5604
5566
  .filter((e) => e != null)
5605
5567
  .map((entry) => {
5606
5568
  if (entry === null) {
5607
5569
  return null;
5608
5570
  }
5609
- return deserializeAws_restJson1ValidationExceptionField(entry, context);
5571
+ return de_ValidationExceptionField(entry, context);
5610
5572
  });
5611
5573
  return retVal;
5612
5574
  };