@aws-sdk/client-location 3.54.1 → 3.55.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 (74) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/LocationClient.js +13 -13
  3. package/dist-cjs/commands/AssociateTrackerConsumerCommand.js +3 -3
  4. package/dist-cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +3 -3
  5. package/dist-cjs/commands/BatchDeleteGeofenceCommand.js +3 -3
  6. package/dist-cjs/commands/BatchEvaluateGeofencesCommand.js +3 -3
  7. package/dist-cjs/commands/BatchGetDevicePositionCommand.js +3 -3
  8. package/dist-cjs/commands/BatchPutGeofenceCommand.js +3 -3
  9. package/dist-cjs/commands/BatchUpdateDevicePositionCommand.js +3 -3
  10. package/dist-cjs/commands/CalculateRouteCommand.js +3 -3
  11. package/dist-cjs/commands/CalculateRouteMatrixCommand.js +3 -3
  12. package/dist-cjs/commands/CreateGeofenceCollectionCommand.js +3 -3
  13. package/dist-cjs/commands/CreateMapCommand.js +3 -3
  14. package/dist-cjs/commands/CreatePlaceIndexCommand.js +3 -3
  15. package/dist-cjs/commands/CreateRouteCalculatorCommand.js +3 -3
  16. package/dist-cjs/commands/CreateTrackerCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteGeofenceCollectionCommand.js +3 -3
  18. package/dist-cjs/commands/DeleteMapCommand.js +3 -3
  19. package/dist-cjs/commands/DeletePlaceIndexCommand.js +3 -3
  20. package/dist-cjs/commands/DeleteRouteCalculatorCommand.js +3 -3
  21. package/dist-cjs/commands/DeleteTrackerCommand.js +3 -3
  22. package/dist-cjs/commands/DescribeGeofenceCollectionCommand.js +3 -3
  23. package/dist-cjs/commands/DescribeMapCommand.js +3 -3
  24. package/dist-cjs/commands/DescribePlaceIndexCommand.js +3 -3
  25. package/dist-cjs/commands/DescribeRouteCalculatorCommand.js +3 -3
  26. package/dist-cjs/commands/DescribeTrackerCommand.js +3 -3
  27. package/dist-cjs/commands/DisassociateTrackerConsumerCommand.js +3 -3
  28. package/dist-cjs/commands/GetDevicePositionCommand.js +3 -3
  29. package/dist-cjs/commands/GetDevicePositionHistoryCommand.js +3 -3
  30. package/dist-cjs/commands/GetGeofenceCommand.js +3 -3
  31. package/dist-cjs/commands/GetMapGlyphsCommand.js +3 -3
  32. package/dist-cjs/commands/GetMapSpritesCommand.js +3 -3
  33. package/dist-cjs/commands/GetMapStyleDescriptorCommand.js +3 -3
  34. package/dist-cjs/commands/GetMapTileCommand.js +3 -3
  35. package/dist-cjs/commands/ListDevicePositionsCommand.js +3 -3
  36. package/dist-cjs/commands/ListGeofenceCollectionsCommand.js +3 -3
  37. package/dist-cjs/commands/ListGeofencesCommand.js +3 -3
  38. package/dist-cjs/commands/ListMapsCommand.js +3 -3
  39. package/dist-cjs/commands/ListPlaceIndexesCommand.js +3 -3
  40. package/dist-cjs/commands/ListRouteCalculatorsCommand.js +3 -3
  41. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  42. package/dist-cjs/commands/ListTrackerConsumersCommand.js +3 -3
  43. package/dist-cjs/commands/ListTrackersCommand.js +3 -3
  44. package/dist-cjs/commands/PutGeofenceCommand.js +3 -3
  45. package/dist-cjs/commands/SearchPlaceIndexForPositionCommand.js +3 -3
  46. package/dist-cjs/commands/SearchPlaceIndexForSuggestionsCommand.js +3 -3
  47. package/dist-cjs/commands/SearchPlaceIndexForTextCommand.js +3 -3
  48. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  49. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  50. package/dist-cjs/commands/UpdateGeofenceCollectionCommand.js +3 -3
  51. package/dist-cjs/commands/UpdateMapCommand.js +3 -3
  52. package/dist-cjs/commands/UpdatePlaceIndexCommand.js +3 -3
  53. package/dist-cjs/commands/UpdateRouteCalculatorCommand.js +3 -3
  54. package/dist-cjs/commands/UpdateTrackerCommand.js +3 -3
  55. package/dist-cjs/endpoints.js +1 -1
  56. package/dist-cjs/protocols/Aws_restJson1.js +412 -412
  57. package/dist-cjs/runtimeConfig.browser.js +4 -4
  58. package/dist-cjs/runtimeConfig.js +9 -9
  59. package/dist-cjs/runtimeConfig.native.js +1 -1
  60. package/dist-es/Location.js +52 -52
  61. package/dist-es/pagination/GetDevicePositionHistoryPaginator.js +4 -4
  62. package/dist-es/pagination/ListDevicePositionsPaginator.js +4 -4
  63. package/dist-es/pagination/ListGeofenceCollectionsPaginator.js +4 -4
  64. package/dist-es/pagination/ListGeofencesPaginator.js +4 -4
  65. package/dist-es/pagination/ListMapsPaginator.js +4 -4
  66. package/dist-es/pagination/ListPlaceIndexesPaginator.js +4 -4
  67. package/dist-es/pagination/ListRouteCalculatorsPaginator.js +4 -4
  68. package/dist-es/pagination/ListTrackerConsumersPaginator.js +4 -4
  69. package/dist-es/pagination/ListTrackersPaginator.js +4 -4
  70. package/dist-es/protocols/Aws_restJson1.js +52 -52
  71. package/dist-types/models/models_0.d.ts +27 -13
  72. package/dist-types/runtimeConfig.native.d.ts +2 -2
  73. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  74. package/package.json +34 -34
@@ -19,7 +19,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
19
19
  if (labelValue.length <= 0) {
20
20
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
21
21
  }
22
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
22
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
23
23
  }
24
24
  else {
25
25
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -31,7 +31,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
31
31
  let { hostname: resolvedHostname } = await context.endpoint();
32
32
  if (context.disableHostPrefix !== true) {
33
33
  resolvedHostname = "tracking." + resolvedHostname;
34
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
34
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
35
35
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
36
36
  }
37
37
  }
@@ -58,7 +58,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
58
58
  if (labelValue.length <= 0) {
59
59
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
60
60
  }
61
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
61
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
62
62
  }
63
63
  else {
64
64
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -71,7 +71,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
71
71
  let { hostname: resolvedHostname } = await context.endpoint();
72
72
  if (context.disableHostPrefix !== true) {
73
73
  resolvedHostname = "tracking." + resolvedHostname;
74
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
74
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
75
75
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
76
76
  }
77
77
  }
@@ -98,7 +98,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
98
98
  if (labelValue.length <= 0) {
99
99
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
100
100
  }
101
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
101
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
102
102
  }
103
103
  else {
104
104
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -111,7 +111,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
111
111
  let { hostname: resolvedHostname } = await context.endpoint();
112
112
  if (context.disableHostPrefix !== true) {
113
113
  resolvedHostname = "geofencing." + resolvedHostname;
114
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
114
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
115
115
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
116
116
  }
117
117
  }
@@ -138,7 +138,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
138
138
  if (labelValue.length <= 0) {
139
139
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
140
140
  }
141
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
141
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
142
142
  }
143
143
  else {
144
144
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -153,7 +153,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
153
153
  let { hostname: resolvedHostname } = await context.endpoint();
154
154
  if (context.disableHostPrefix !== true) {
155
155
  resolvedHostname = "geofencing." + resolvedHostname;
156
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
156
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
157
157
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
158
158
  }
159
159
  }
@@ -180,7 +180,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
180
180
  if (labelValue.length <= 0) {
181
181
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
182
182
  }
183
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
183
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
184
184
  }
185
185
  else {
186
186
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -193,7 +193,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
193
193
  let { hostname: resolvedHostname } = await context.endpoint();
194
194
  if (context.disableHostPrefix !== true) {
195
195
  resolvedHostname = "tracking." + resolvedHostname;
196
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
196
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
197
197
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
198
198
  }
199
199
  }
@@ -220,7 +220,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
220
220
  if (labelValue.length <= 0) {
221
221
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
222
222
  }
223
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
223
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
224
224
  }
225
225
  else {
226
226
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -235,7 +235,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
235
235
  let { hostname: resolvedHostname } = await context.endpoint();
236
236
  if (context.disableHostPrefix !== true) {
237
237
  resolvedHostname = "geofencing." + resolvedHostname;
238
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
238
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
239
239
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
240
240
  }
241
241
  }
@@ -262,7 +262,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
262
262
  if (labelValue.length <= 0) {
263
263
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
264
264
  }
265
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
265
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
266
266
  }
267
267
  else {
268
268
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -275,7 +275,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
275
275
  let { hostname: resolvedHostname } = await context.endpoint();
276
276
  if (context.disableHostPrefix !== true) {
277
277
  resolvedHostname = "tracking." + resolvedHostname;
278
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
278
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
279
279
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
280
280
  }
281
281
  }
@@ -302,7 +302,7 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
302
302
  if (labelValue.length <= 0) {
303
303
  throw new Error("Empty value provided for input HTTP label: CalculatorName.");
304
304
  }
305
- resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
305
+ resolvedPath = resolvedPath.replace("{CalculatorName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
306
306
  }
307
307
  else {
308
308
  throw new Error("No value provided for input HTTP label: CalculatorName.");
@@ -340,7 +340,7 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
340
340
  let { hostname: resolvedHostname } = await context.endpoint();
341
341
  if (context.disableHostPrefix !== true) {
342
342
  resolvedHostname = "routes." + resolvedHostname;
343
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
343
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
344
344
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
345
345
  }
346
346
  }
@@ -367,7 +367,7 @@ const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context)
367
367
  if (labelValue.length <= 0) {
368
368
  throw new Error("Empty value provided for input HTTP label: CalculatorName.");
369
369
  }
370
- resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
370
+ resolvedPath = resolvedPath.replace("{CalculatorName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
371
371
  }
372
372
  else {
373
373
  throw new Error("No value provided for input HTTP label: CalculatorName.");
@@ -399,7 +399,7 @@ const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context)
399
399
  let { hostname: resolvedHostname } = await context.endpoint();
400
400
  if (context.disableHostPrefix !== true) {
401
401
  resolvedHostname = "routes." + resolvedHostname;
402
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
402
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
403
403
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
404
404
  }
405
405
  }
@@ -434,7 +434,7 @@ const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, cont
434
434
  let { hostname: resolvedHostname } = await context.endpoint();
435
435
  if (context.disableHostPrefix !== true) {
436
436
  resolvedHostname = "geofencing." + resolvedHostname;
437
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
437
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
438
438
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
439
439
  }
440
440
  }
@@ -469,7 +469,7 @@ const serializeAws_restJson1CreateMapCommand = async (input, context) => {
469
469
  let { hostname: resolvedHostname } = await context.endpoint();
470
470
  if (context.disableHostPrefix !== true) {
471
471
  resolvedHostname = "maps." + resolvedHostname;
472
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
472
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
473
473
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
474
474
  }
475
475
  }
@@ -505,7 +505,7 @@ const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) =>
505
505
  let { hostname: resolvedHostname } = await context.endpoint();
506
506
  if (context.disableHostPrefix !== true) {
507
507
  resolvedHostname = "places." + resolvedHostname;
508
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
508
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
509
509
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
510
510
  }
511
511
  }
@@ -538,7 +538,7 @@ const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context
538
538
  let { hostname: resolvedHostname } = await context.endpoint();
539
539
  if (context.disableHostPrefix !== true) {
540
540
  resolvedHostname = "routes." + resolvedHostname;
541
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
541
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
542
542
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
543
543
  }
544
544
  }
@@ -574,7 +574,7 @@ const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
574
574
  let { hostname: resolvedHostname } = await context.endpoint();
575
575
  if (context.disableHostPrefix !== true) {
576
576
  resolvedHostname = "tracking." + resolvedHostname;
577
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
577
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
578
578
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
579
579
  }
580
580
  }
@@ -599,7 +599,7 @@ const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, cont
599
599
  if (labelValue.length <= 0) {
600
600
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
601
601
  }
602
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
602
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
603
603
  }
604
604
  else {
605
605
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -608,7 +608,7 @@ const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, cont
608
608
  let { hostname: resolvedHostname } = await context.endpoint();
609
609
  if (context.disableHostPrefix !== true) {
610
610
  resolvedHostname = "geofencing." + resolvedHostname;
611
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
611
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
612
612
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
613
613
  }
614
614
  }
@@ -632,7 +632,7 @@ const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
632
632
  if (labelValue.length <= 0) {
633
633
  throw new Error("Empty value provided for input HTTP label: MapName.");
634
634
  }
635
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
635
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
636
636
  }
637
637
  else {
638
638
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -641,7 +641,7 @@ const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
641
641
  let { hostname: resolvedHostname } = await context.endpoint();
642
642
  if (context.disableHostPrefix !== true) {
643
643
  resolvedHostname = "maps." + resolvedHostname;
644
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
644
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
645
645
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
646
646
  }
647
647
  }
@@ -665,7 +665,7 @@ const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) =>
665
665
  if (labelValue.length <= 0) {
666
666
  throw new Error("Empty value provided for input HTTP label: IndexName.");
667
667
  }
668
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
668
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
669
669
  }
670
670
  else {
671
671
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -674,7 +674,7 @@ const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) =>
674
674
  let { hostname: resolvedHostname } = await context.endpoint();
675
675
  if (context.disableHostPrefix !== true) {
676
676
  resolvedHostname = "places." + resolvedHostname;
677
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
677
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
678
678
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
679
679
  }
680
680
  }
@@ -698,7 +698,7 @@ const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context
698
698
  if (labelValue.length <= 0) {
699
699
  throw new Error("Empty value provided for input HTTP label: CalculatorName.");
700
700
  }
701
- resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
701
+ resolvedPath = resolvedPath.replace("{CalculatorName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
702
702
  }
703
703
  else {
704
704
  throw new Error("No value provided for input HTTP label: CalculatorName.");
@@ -707,7 +707,7 @@ const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context
707
707
  let { hostname: resolvedHostname } = await context.endpoint();
708
708
  if (context.disableHostPrefix !== true) {
709
709
  resolvedHostname = "routes." + resolvedHostname;
710
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
710
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
711
711
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
712
712
  }
713
713
  }
@@ -731,7 +731,7 @@ const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
731
731
  if (labelValue.length <= 0) {
732
732
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
733
733
  }
734
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
734
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
735
735
  }
736
736
  else {
737
737
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -740,7 +740,7 @@ const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
740
740
  let { hostname: resolvedHostname } = await context.endpoint();
741
741
  if (context.disableHostPrefix !== true) {
742
742
  resolvedHostname = "tracking." + resolvedHostname;
743
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
743
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
744
744
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
745
745
  }
746
746
  }
@@ -765,7 +765,7 @@ const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, co
765
765
  if (labelValue.length <= 0) {
766
766
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
767
767
  }
768
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
768
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
769
769
  }
770
770
  else {
771
771
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -774,7 +774,7 @@ const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, co
774
774
  let { hostname: resolvedHostname } = await context.endpoint();
775
775
  if (context.disableHostPrefix !== true) {
776
776
  resolvedHostname = "geofencing." + resolvedHostname;
777
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
777
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
778
778
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
779
779
  }
780
780
  }
@@ -798,7 +798,7 @@ const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
798
798
  if (labelValue.length <= 0) {
799
799
  throw new Error("Empty value provided for input HTTP label: MapName.");
800
800
  }
801
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
801
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
802
802
  }
803
803
  else {
804
804
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -807,7 +807,7 @@ const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
807
807
  let { hostname: resolvedHostname } = await context.endpoint();
808
808
  if (context.disableHostPrefix !== true) {
809
809
  resolvedHostname = "maps." + resolvedHostname;
810
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
810
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
811
811
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
812
812
  }
813
813
  }
@@ -831,7 +831,7 @@ const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) =
831
831
  if (labelValue.length <= 0) {
832
832
  throw new Error("Empty value provided for input HTTP label: IndexName.");
833
833
  }
834
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
834
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
835
835
  }
836
836
  else {
837
837
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -840,7 +840,7 @@ const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) =
840
840
  let { hostname: resolvedHostname } = await context.endpoint();
841
841
  if (context.disableHostPrefix !== true) {
842
842
  resolvedHostname = "places." + resolvedHostname;
843
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
843
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
844
844
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
845
845
  }
846
846
  }
@@ -864,7 +864,7 @@ const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input, conte
864
864
  if (labelValue.length <= 0) {
865
865
  throw new Error("Empty value provided for input HTTP label: CalculatorName.");
866
866
  }
867
- resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
867
+ resolvedPath = resolvedPath.replace("{CalculatorName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
868
868
  }
869
869
  else {
870
870
  throw new Error("No value provided for input HTTP label: CalculatorName.");
@@ -873,7 +873,7 @@ const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input, conte
873
873
  let { hostname: resolvedHostname } = await context.endpoint();
874
874
  if (context.disableHostPrefix !== true) {
875
875
  resolvedHostname = "routes." + resolvedHostname;
876
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
876
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
877
877
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
878
878
  }
879
879
  }
@@ -897,7 +897,7 @@ const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
897
897
  if (labelValue.length <= 0) {
898
898
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
899
899
  }
900
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
900
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
901
901
  }
902
902
  else {
903
903
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -906,7 +906,7 @@ const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
906
906
  let { hostname: resolvedHostname } = await context.endpoint();
907
907
  if (context.disableHostPrefix !== true) {
908
908
  resolvedHostname = "tracking." + resolvedHostname;
909
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
909
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
910
910
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
911
911
  }
912
912
  }
@@ -931,7 +931,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
931
931
  if (labelValue.length <= 0) {
932
932
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
933
933
  }
934
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
934
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
935
935
  }
936
936
  else {
937
937
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -941,7 +941,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
941
941
  if (labelValue.length <= 0) {
942
942
  throw new Error("Empty value provided for input HTTP label: ConsumerArn.");
943
943
  }
944
- resolvedPath = resolvedPath.replace("{ConsumerArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
944
+ resolvedPath = resolvedPath.replace("{ConsumerArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
945
945
  }
946
946
  else {
947
947
  throw new Error("No value provided for input HTTP label: ConsumerArn.");
@@ -950,7 +950,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
950
950
  let { hostname: resolvedHostname } = await context.endpoint();
951
951
  if (context.disableHostPrefix !== true) {
952
952
  resolvedHostname = "tracking." + resolvedHostname;
953
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
953
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
954
954
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
955
955
  }
956
956
  }
@@ -975,7 +975,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
975
975
  if (labelValue.length <= 0) {
976
976
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
977
977
  }
978
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
978
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
979
979
  }
980
980
  else {
981
981
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -985,7 +985,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
985
985
  if (labelValue.length <= 0) {
986
986
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
987
987
  }
988
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
988
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
989
989
  }
990
990
  else {
991
991
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -994,7 +994,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
994
994
  let { hostname: resolvedHostname } = await context.endpoint();
995
995
  if (context.disableHostPrefix !== true) {
996
996
  resolvedHostname = "tracking." + resolvedHostname;
997
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
997
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
998
998
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
999
999
  }
1000
1000
  }
@@ -1021,7 +1021,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
1021
1021
  if (labelValue.length <= 0) {
1022
1022
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
1023
1023
  }
1024
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1024
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1025
1025
  }
1026
1026
  else {
1027
1027
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -1031,7 +1031,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
1031
1031
  if (labelValue.length <= 0) {
1032
1032
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
1033
1033
  }
1034
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1034
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1035
1035
  }
1036
1036
  else {
1037
1037
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -1051,7 +1051,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
1051
1051
  let { hostname: resolvedHostname } = await context.endpoint();
1052
1052
  if (context.disableHostPrefix !== true) {
1053
1053
  resolvedHostname = "tracking." + resolvedHostname;
1054
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1054
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1055
1055
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1056
1056
  }
1057
1057
  }
@@ -1076,7 +1076,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
1076
1076
  if (labelValue.length <= 0) {
1077
1077
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
1078
1078
  }
1079
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1079
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1080
1080
  }
1081
1081
  else {
1082
1082
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -1086,7 +1086,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
1086
1086
  if (labelValue.length <= 0) {
1087
1087
  throw new Error("Empty value provided for input HTTP label: GeofenceId.");
1088
1088
  }
1089
- resolvedPath = resolvedPath.replace("{GeofenceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1089
+ resolvedPath = resolvedPath.replace("{GeofenceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1090
1090
  }
1091
1091
  else {
1092
1092
  throw new Error("No value provided for input HTTP label: GeofenceId.");
@@ -1095,7 +1095,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
1095
1095
  let { hostname: resolvedHostname } = await context.endpoint();
1096
1096
  if (context.disableHostPrefix !== true) {
1097
1097
  resolvedHostname = "geofencing." + resolvedHostname;
1098
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1098
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1099
1099
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1100
1100
  }
1101
1101
  }
@@ -1120,7 +1120,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
1120
1120
  if (labelValue.length <= 0) {
1121
1121
  throw new Error("Empty value provided for input HTTP label: MapName.");
1122
1122
  }
1123
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1123
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1124
1124
  }
1125
1125
  else {
1126
1126
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -1130,7 +1130,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
1130
1130
  if (labelValue.length <= 0) {
1131
1131
  throw new Error("Empty value provided for input HTTP label: FontStack.");
1132
1132
  }
1133
- resolvedPath = resolvedPath.replace("{FontStack}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1133
+ resolvedPath = resolvedPath.replace("{FontStack}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1134
1134
  }
1135
1135
  else {
1136
1136
  throw new Error("No value provided for input HTTP label: FontStack.");
@@ -1140,7 +1140,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
1140
1140
  if (labelValue.length <= 0) {
1141
1141
  throw new Error("Empty value provided for input HTTP label: FontUnicodeRange.");
1142
1142
  }
1143
- resolvedPath = resolvedPath.replace("{FontUnicodeRange}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1143
+ resolvedPath = resolvedPath.replace("{FontUnicodeRange}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1144
1144
  }
1145
1145
  else {
1146
1146
  throw new Error("No value provided for input HTTP label: FontUnicodeRange.");
@@ -1149,7 +1149,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
1149
1149
  let { hostname: resolvedHostname } = await context.endpoint();
1150
1150
  if (context.disableHostPrefix !== true) {
1151
1151
  resolvedHostname = "maps." + resolvedHostname;
1152
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1152
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1153
1153
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1154
1154
  }
1155
1155
  }
@@ -1174,7 +1174,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
1174
1174
  if (labelValue.length <= 0) {
1175
1175
  throw new Error("Empty value provided for input HTTP label: MapName.");
1176
1176
  }
1177
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1177
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1178
1178
  }
1179
1179
  else {
1180
1180
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -1184,7 +1184,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
1184
1184
  if (labelValue.length <= 0) {
1185
1185
  throw new Error("Empty value provided for input HTTP label: FileName.");
1186
1186
  }
1187
- resolvedPath = resolvedPath.replace("{FileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1187
+ resolvedPath = resolvedPath.replace("{FileName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1188
1188
  }
1189
1189
  else {
1190
1190
  throw new Error("No value provided for input HTTP label: FileName.");
@@ -1193,7 +1193,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
1193
1193
  let { hostname: resolvedHostname } = await context.endpoint();
1194
1194
  if (context.disableHostPrefix !== true) {
1195
1195
  resolvedHostname = "maps." + resolvedHostname;
1196
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1196
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1197
1197
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1198
1198
  }
1199
1199
  }
@@ -1217,7 +1217,7 @@ const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context
1217
1217
  if (labelValue.length <= 0) {
1218
1218
  throw new Error("Empty value provided for input HTTP label: MapName.");
1219
1219
  }
1220
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1220
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1221
1221
  }
1222
1222
  else {
1223
1223
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -1226,7 +1226,7 @@ const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context
1226
1226
  let { hostname: resolvedHostname } = await context.endpoint();
1227
1227
  if (context.disableHostPrefix !== true) {
1228
1228
  resolvedHostname = "maps." + resolvedHostname;
1229
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1229
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1230
1230
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1231
1231
  }
1232
1232
  }
@@ -1250,7 +1250,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
1250
1250
  if (labelValue.length <= 0) {
1251
1251
  throw new Error("Empty value provided for input HTTP label: MapName.");
1252
1252
  }
1253
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1253
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1254
1254
  }
1255
1255
  else {
1256
1256
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -1260,7 +1260,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
1260
1260
  if (labelValue.length <= 0) {
1261
1261
  throw new Error("Empty value provided for input HTTP label: Z.");
1262
1262
  }
1263
- resolvedPath = resolvedPath.replace("{Z}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1263
+ resolvedPath = resolvedPath.replace("{Z}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1264
1264
  }
1265
1265
  else {
1266
1266
  throw new Error("No value provided for input HTTP label: Z.");
@@ -1270,7 +1270,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
1270
1270
  if (labelValue.length <= 0) {
1271
1271
  throw new Error("Empty value provided for input HTTP label: X.");
1272
1272
  }
1273
- resolvedPath = resolvedPath.replace("{X}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1273
+ resolvedPath = resolvedPath.replace("{X}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1274
1274
  }
1275
1275
  else {
1276
1276
  throw new Error("No value provided for input HTTP label: X.");
@@ -1280,7 +1280,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
1280
1280
  if (labelValue.length <= 0) {
1281
1281
  throw new Error("Empty value provided for input HTTP label: Y.");
1282
1282
  }
1283
- resolvedPath = resolvedPath.replace("{Y}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1283
+ resolvedPath = resolvedPath.replace("{Y}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1284
1284
  }
1285
1285
  else {
1286
1286
  throw new Error("No value provided for input HTTP label: Y.");
@@ -1289,7 +1289,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
1289
1289
  let { hostname: resolvedHostname } = await context.endpoint();
1290
1290
  if (context.disableHostPrefix !== true) {
1291
1291
  resolvedHostname = "maps." + resolvedHostname;
1292
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1292
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1293
1293
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1294
1294
  }
1295
1295
  }
@@ -1316,7 +1316,7 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
1316
1316
  if (labelValue.length <= 0) {
1317
1317
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
1318
1318
  }
1319
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1319
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1320
1320
  }
1321
1321
  else {
1322
1322
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -1329,7 +1329,7 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
1329
1329
  let { hostname: resolvedHostname } = await context.endpoint();
1330
1330
  if (context.disableHostPrefix !== true) {
1331
1331
  resolvedHostname = "tracking." + resolvedHostname;
1332
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1332
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1333
1333
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1334
1334
  }
1335
1335
  }
@@ -1358,7 +1358,7 @@ const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, conte
1358
1358
  let { hostname: resolvedHostname } = await context.endpoint();
1359
1359
  if (context.disableHostPrefix !== true) {
1360
1360
  resolvedHostname = "geofencing." + resolvedHostname;
1361
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1361
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1362
1362
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1363
1363
  }
1364
1364
  }
@@ -1385,7 +1385,7 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
1385
1385
  if (labelValue.length <= 0) {
1386
1386
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
1387
1387
  }
1388
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1388
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1389
1389
  }
1390
1390
  else {
1391
1391
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -1397,7 +1397,7 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
1397
1397
  let { hostname: resolvedHostname } = await context.endpoint();
1398
1398
  if (context.disableHostPrefix !== true) {
1399
1399
  resolvedHostname = "geofencing." + resolvedHostname;
1400
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1400
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1401
1401
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1402
1402
  }
1403
1403
  }
@@ -1426,7 +1426,7 @@ const serializeAws_restJson1ListMapsCommand = async (input, context) => {
1426
1426
  let { hostname: resolvedHostname } = await context.endpoint();
1427
1427
  if (context.disableHostPrefix !== true) {
1428
1428
  resolvedHostname = "maps." + resolvedHostname;
1429
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1429
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1430
1430
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1431
1431
  }
1432
1432
  }
@@ -1455,7 +1455,7 @@ const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) =>
1455
1455
  let { hostname: resolvedHostname } = await context.endpoint();
1456
1456
  if (context.disableHostPrefix !== true) {
1457
1457
  resolvedHostname = "places." + resolvedHostname;
1458
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1458
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1459
1459
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1460
1460
  }
1461
1461
  }
@@ -1484,7 +1484,7 @@ const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context)
1484
1484
  let { hostname: resolvedHostname } = await context.endpoint();
1485
1485
  if (context.disableHostPrefix !== true) {
1486
1486
  resolvedHostname = "routes." + resolvedHostname;
1487
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1487
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1488
1488
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1489
1489
  }
1490
1490
  }
@@ -1508,7 +1508,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
1508
1508
  if (labelValue.length <= 0) {
1509
1509
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1510
1510
  }
1511
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1511
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1512
1512
  }
1513
1513
  else {
1514
1514
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1517,7 +1517,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
1517
1517
  let { hostname: resolvedHostname } = await context.endpoint();
1518
1518
  if (context.disableHostPrefix !== true) {
1519
1519
  resolvedHostname = "metadata." + resolvedHostname;
1520
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1520
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1521
1521
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1522
1522
  }
1523
1523
  }
@@ -1544,7 +1544,7 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
1544
1544
  if (labelValue.length <= 0) {
1545
1545
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
1546
1546
  }
1547
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1547
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1548
1548
  }
1549
1549
  else {
1550
1550
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -1557,7 +1557,7 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
1557
1557
  let { hostname: resolvedHostname } = await context.endpoint();
1558
1558
  if (context.disableHostPrefix !== true) {
1559
1559
  resolvedHostname = "tracking." + resolvedHostname;
1560
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1560
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1561
1561
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1562
1562
  }
1563
1563
  }
@@ -1586,7 +1586,7 @@ const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
1586
1586
  let { hostname: resolvedHostname } = await context.endpoint();
1587
1587
  if (context.disableHostPrefix !== true) {
1588
1588
  resolvedHostname = "tracking." + resolvedHostname;
1589
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1589
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1590
1590
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1591
1591
  }
1592
1592
  }
@@ -1613,7 +1613,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
1613
1613
  if (labelValue.length <= 0) {
1614
1614
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
1615
1615
  }
1616
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1616
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1617
1617
  }
1618
1618
  else {
1619
1619
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -1623,7 +1623,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
1623
1623
  if (labelValue.length <= 0) {
1624
1624
  throw new Error("Empty value provided for input HTTP label: GeofenceId.");
1625
1625
  }
1626
- resolvedPath = resolvedPath.replace("{GeofenceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1626
+ resolvedPath = resolvedPath.replace("{GeofenceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1627
1627
  }
1628
1628
  else {
1629
1629
  throw new Error("No value provided for input HTTP label: GeofenceId.");
@@ -1636,7 +1636,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
1636
1636
  let { hostname: resolvedHostname } = await context.endpoint();
1637
1637
  if (context.disableHostPrefix !== true) {
1638
1638
  resolvedHostname = "geofencing." + resolvedHostname;
1639
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1639
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1640
1640
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1641
1641
  }
1642
1642
  }
@@ -1663,7 +1663,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
1663
1663
  if (labelValue.length <= 0) {
1664
1664
  throw new Error("Empty value provided for input HTTP label: IndexName.");
1665
1665
  }
1666
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1666
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1667
1667
  }
1668
1668
  else {
1669
1669
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -1678,7 +1678,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
1678
1678
  let { hostname: resolvedHostname } = await context.endpoint();
1679
1679
  if (context.disableHostPrefix !== true) {
1680
1680
  resolvedHostname = "places." + resolvedHostname;
1681
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1681
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1682
1682
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1683
1683
  }
1684
1684
  }
@@ -1705,7 +1705,7 @@ const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input
1705
1705
  if (labelValue.length <= 0) {
1706
1706
  throw new Error("Empty value provided for input HTTP label: IndexName.");
1707
1707
  }
1708
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1708
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1709
1709
  }
1710
1710
  else {
1711
1711
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -1727,7 +1727,7 @@ const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input
1727
1727
  let { hostname: resolvedHostname } = await context.endpoint();
1728
1728
  if (context.disableHostPrefix !== true) {
1729
1729
  resolvedHostname = "places." + resolvedHostname;
1730
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1730
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1731
1731
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1732
1732
  }
1733
1733
  }
@@ -1754,7 +1754,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
1754
1754
  if (labelValue.length <= 0) {
1755
1755
  throw new Error("Empty value provided for input HTTP label: IndexName.");
1756
1756
  }
1757
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1757
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1758
1758
  }
1759
1759
  else {
1760
1760
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -1776,7 +1776,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
1776
1776
  let { hostname: resolvedHostname } = await context.endpoint();
1777
1777
  if (context.disableHostPrefix !== true) {
1778
1778
  resolvedHostname = "places." + resolvedHostname;
1779
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1779
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1780
1780
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1781
1781
  }
1782
1782
  }
@@ -1802,7 +1802,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1802
1802
  if (labelValue.length <= 0) {
1803
1803
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1804
1804
  }
1805
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1805
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1806
1806
  }
1807
1807
  else {
1808
1808
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1814,7 +1814,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1814
1814
  let { hostname: resolvedHostname } = await context.endpoint();
1815
1815
  if (context.disableHostPrefix !== true) {
1816
1816
  resolvedHostname = "metadata." + resolvedHostname;
1817
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1817
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1818
1818
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1819
1819
  }
1820
1820
  }
@@ -1838,7 +1838,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1838
1838
  if (labelValue.length <= 0) {
1839
1839
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
1840
1840
  }
1841
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1841
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1842
1842
  }
1843
1843
  else {
1844
1844
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -1850,7 +1850,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1850
1850
  let { hostname: resolvedHostname } = await context.endpoint();
1851
1851
  if (context.disableHostPrefix !== true) {
1852
1852
  resolvedHostname = "metadata." + resolvedHostname;
1853
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1853
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1854
1854
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1855
1855
  }
1856
1856
  }
@@ -1878,7 +1878,7 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
1878
1878
  if (labelValue.length <= 0) {
1879
1879
  throw new Error("Empty value provided for input HTTP label: CollectionName.");
1880
1880
  }
1881
- resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1881
+ resolvedPath = resolvedPath.replace("{CollectionName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1882
1882
  }
1883
1883
  else {
1884
1884
  throw new Error("No value provided for input HTTP label: CollectionName.");
@@ -1893,7 +1893,7 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
1893
1893
  let { hostname: resolvedHostname } = await context.endpoint();
1894
1894
  if (context.disableHostPrefix !== true) {
1895
1895
  resolvedHostname = "geofencing." + resolvedHostname;
1896
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1896
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1897
1897
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1898
1898
  }
1899
1899
  }
@@ -1919,7 +1919,7 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
1919
1919
  if (labelValue.length <= 0) {
1920
1920
  throw new Error("Empty value provided for input HTTP label: MapName.");
1921
1921
  }
1922
- resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1922
+ resolvedPath = resolvedPath.replace("{MapName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1923
1923
  }
1924
1924
  else {
1925
1925
  throw new Error("No value provided for input HTTP label: MapName.");
@@ -1932,7 +1932,7 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
1932
1932
  let { hostname: resolvedHostname } = await context.endpoint();
1933
1933
  if (context.disableHostPrefix !== true) {
1934
1934
  resolvedHostname = "maps." + resolvedHostname;
1935
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1935
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1936
1936
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1937
1937
  }
1938
1938
  }
@@ -1958,7 +1958,7 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
1958
1958
  if (labelValue.length <= 0) {
1959
1959
  throw new Error("Empty value provided for input HTTP label: IndexName.");
1960
1960
  }
1961
- resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1961
+ resolvedPath = resolvedPath.replace("{IndexName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1962
1962
  }
1963
1963
  else {
1964
1964
  throw new Error("No value provided for input HTTP label: IndexName.");
@@ -1975,7 +1975,7 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
1975
1975
  let { hostname: resolvedHostname } = await context.endpoint();
1976
1976
  if (context.disableHostPrefix !== true) {
1977
1977
  resolvedHostname = "places." + resolvedHostname;
1978
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
1978
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1979
1979
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1980
1980
  }
1981
1981
  }
@@ -2001,7 +2001,7 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
2001
2001
  if (labelValue.length <= 0) {
2002
2002
  throw new Error("Empty value provided for input HTTP label: CalculatorName.");
2003
2003
  }
2004
- resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2004
+ resolvedPath = resolvedPath.replace("{CalculatorName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2005
2005
  }
2006
2006
  else {
2007
2007
  throw new Error("No value provided for input HTTP label: CalculatorName.");
@@ -2014,7 +2014,7 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
2014
2014
  let { hostname: resolvedHostname } = await context.endpoint();
2015
2015
  if (context.disableHostPrefix !== true) {
2016
2016
  resolvedHostname = "routes." + resolvedHostname;
2017
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
2017
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2018
2018
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2019
2019
  }
2020
2020
  }
@@ -2040,7 +2040,7 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
2040
2040
  if (labelValue.length <= 0) {
2041
2041
  throw new Error("Empty value provided for input HTTP label: TrackerName.");
2042
2042
  }
2043
- resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2043
+ resolvedPath = resolvedPath.replace("{TrackerName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2044
2044
  }
2045
2045
  else {
2046
2046
  throw new Error("No value provided for input HTTP label: TrackerName.");
@@ -2057,7 +2057,7 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
2057
2057
  let { hostname: resolvedHostname } = await context.endpoint();
2058
2058
  if (context.disableHostPrefix !== true) {
2059
2059
  resolvedHostname = "tracking." + resolvedHostname;
2060
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
2060
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
2061
2061
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
2062
2062
  }
2063
2063
  }
@@ -2120,7 +2120,7 @@ const deserializeAws_restJson1AssociateTrackerConsumerCommandError = async (outp
2120
2120
  $fault: "client",
2121
2121
  $metadata: deserializeMetadata(output),
2122
2122
  });
2123
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2123
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2124
2124
  }
2125
2125
  };
2126
2126
  const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (output, context) => {
@@ -2131,7 +2131,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (o
2131
2131
  $metadata: deserializeMetadata(output),
2132
2132
  Errors: undefined,
2133
2133
  };
2134
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2134
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2135
2135
  if (data.Errors !== undefined && data.Errors !== null) {
2136
2136
  contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
2137
2137
  }
@@ -2169,7 +2169,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = asy
2169
2169
  $fault: "client",
2170
2170
  $metadata: deserializeMetadata(output),
2171
2171
  });
2172
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2172
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2173
2173
  }
2174
2174
  };
2175
2175
  const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, context) => {
@@ -2180,7 +2180,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, contex
2180
2180
  $metadata: deserializeMetadata(output),
2181
2181
  Errors: undefined,
2182
2182
  };
2183
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2183
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2184
2184
  if (data.Errors !== undefined && data.Errors !== null) {
2185
2185
  contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
2186
2186
  }
@@ -2218,7 +2218,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommandError = async (output, c
2218
2218
  $fault: "client",
2219
2219
  $metadata: deserializeMetadata(output),
2220
2220
  });
2221
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2221
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2222
2222
  }
2223
2223
  };
2224
2224
  const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, context) => {
@@ -2229,7 +2229,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, con
2229
2229
  $metadata: deserializeMetadata(output),
2230
2230
  Errors: undefined,
2231
2231
  };
2232
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2232
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2233
2233
  if (data.Errors !== undefined && data.Errors !== null) {
2234
2234
  contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
2235
2235
  }
@@ -2267,7 +2267,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommandError = async (output
2267
2267
  $fault: "client",
2268
2268
  $metadata: deserializeMetadata(output),
2269
2269
  });
2270
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2270
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2271
2271
  }
2272
2272
  };
2273
2273
  const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, context) => {
@@ -2279,7 +2279,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, con
2279
2279
  DevicePositions: undefined,
2280
2280
  Errors: undefined,
2281
2281
  };
2282
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2282
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2283
2283
  if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
2284
2284
  contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
2285
2285
  }
@@ -2320,7 +2320,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommandError = async (output
2320
2320
  $fault: "client",
2321
2321
  $metadata: deserializeMetadata(output),
2322
2322
  });
2323
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2323
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2324
2324
  }
2325
2325
  };
2326
2326
  const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context) => {
@@ -2332,7 +2332,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context)
2332
2332
  Errors: undefined,
2333
2333
  Successes: undefined,
2334
2334
  };
2335
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2335
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2336
2336
  if (data.Errors !== undefined && data.Errors !== null) {
2337
2337
  contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
2338
2338
  }
@@ -2373,7 +2373,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommandError = async (output, cont
2373
2373
  $fault: "client",
2374
2374
  $metadata: deserializeMetadata(output),
2375
2375
  });
2376
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2376
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2377
2377
  }
2378
2378
  };
2379
2379
  const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output, context) => {
@@ -2384,7 +2384,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output,
2384
2384
  $metadata: deserializeMetadata(output),
2385
2385
  Errors: undefined,
2386
2386
  };
2387
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2387
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2388
2388
  if (data.Errors !== undefined && data.Errors !== null) {
2389
2389
  contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
2390
2390
  }
@@ -2422,7 +2422,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommandError = async (out
2422
2422
  $fault: "client",
2423
2423
  $metadata: deserializeMetadata(output),
2424
2424
  });
2425
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2425
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2426
2426
  }
2427
2427
  };
2428
2428
  const deserializeAws_restJson1CalculateRouteCommand = async (output, context) => {
@@ -2434,7 +2434,7 @@ const deserializeAws_restJson1CalculateRouteCommand = async (output, context) =>
2434
2434
  Legs: undefined,
2435
2435
  Summary: undefined,
2436
2436
  };
2437
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2437
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2438
2438
  if (data.Legs !== undefined && data.Legs !== null) {
2439
2439
  contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
2440
2440
  }
@@ -2475,7 +2475,7 @@ const deserializeAws_restJson1CalculateRouteCommandError = async (output, contex
2475
2475
  $fault: "client",
2476
2476
  $metadata: deserializeMetadata(output),
2477
2477
  });
2478
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2478
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2479
2479
  }
2480
2480
  };
2481
2481
  const deserializeAws_restJson1CalculateRouteMatrixCommand = async (output, context) => {
@@ -2489,7 +2489,7 @@ const deserializeAws_restJson1CalculateRouteMatrixCommand = async (output, conte
2489
2489
  SnappedDestinationPositions: undefined,
2490
2490
  Summary: undefined,
2491
2491
  };
2492
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2492
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2493
2493
  if (data.RouteMatrix !== undefined && data.RouteMatrix !== null) {
2494
2494
  contents.RouteMatrix = deserializeAws_restJson1RouteMatrix(data.RouteMatrix, context);
2495
2495
  }
@@ -2536,7 +2536,7 @@ const deserializeAws_restJson1CalculateRouteMatrixCommandError = async (output,
2536
2536
  $fault: "client",
2537
2537
  $metadata: deserializeMetadata(output),
2538
2538
  });
2539
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2539
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2540
2540
  }
2541
2541
  };
2542
2542
  const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, context) => {
@@ -2549,15 +2549,15 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, c
2549
2549
  CollectionName: undefined,
2550
2550
  CreateTime: undefined,
2551
2551
  };
2552
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2552
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2553
2553
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
2554
- contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
2554
+ contents.CollectionArn = (0, smithy_client_1.expectString)(data.CollectionArn);
2555
2555
  }
2556
2556
  if (data.CollectionName !== undefined && data.CollectionName !== null) {
2557
- contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
2557
+ contents.CollectionName = (0, smithy_client_1.expectString)(data.CollectionName);
2558
2558
  }
2559
2559
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2560
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
2560
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
2561
2561
  }
2562
2562
  return Promise.resolve(contents);
2563
2563
  };
@@ -2593,7 +2593,7 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommandError = async (outp
2593
2593
  $fault: "client",
2594
2594
  $metadata: deserializeMetadata(output),
2595
2595
  });
2596
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2596
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2597
2597
  }
2598
2598
  };
2599
2599
  const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
@@ -2606,15 +2606,15 @@ const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
2606
2606
  MapArn: undefined,
2607
2607
  MapName: undefined,
2608
2608
  };
2609
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2609
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2610
2610
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2611
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
2611
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
2612
2612
  }
2613
2613
  if (data.MapArn !== undefined && data.MapArn !== null) {
2614
- contents.MapArn = smithy_client_1.expectString(data.MapArn);
2614
+ contents.MapArn = (0, smithy_client_1.expectString)(data.MapArn);
2615
2615
  }
2616
2616
  if (data.MapName !== undefined && data.MapName !== null) {
2617
- contents.MapName = smithy_client_1.expectString(data.MapName);
2617
+ contents.MapName = (0, smithy_client_1.expectString)(data.MapName);
2618
2618
  }
2619
2619
  return Promise.resolve(contents);
2620
2620
  };
@@ -2650,7 +2650,7 @@ const deserializeAws_restJson1CreateMapCommandError = async (output, context) =>
2650
2650
  $fault: "client",
2651
2651
  $metadata: deserializeMetadata(output),
2652
2652
  });
2653
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2653
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2654
2654
  }
2655
2655
  };
2656
2656
  const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context) => {
@@ -2663,15 +2663,15 @@ const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context)
2663
2663
  IndexArn: undefined,
2664
2664
  IndexName: undefined,
2665
2665
  };
2666
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2666
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2667
2667
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2668
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
2668
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
2669
2669
  }
2670
2670
  if (data.IndexArn !== undefined && data.IndexArn !== null) {
2671
- contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
2671
+ contents.IndexArn = (0, smithy_client_1.expectString)(data.IndexArn);
2672
2672
  }
2673
2673
  if (data.IndexName !== undefined && data.IndexName !== null) {
2674
- contents.IndexName = smithy_client_1.expectString(data.IndexName);
2674
+ contents.IndexName = (0, smithy_client_1.expectString)(data.IndexName);
2675
2675
  }
2676
2676
  return Promise.resolve(contents);
2677
2677
  };
@@ -2707,7 +2707,7 @@ const deserializeAws_restJson1CreatePlaceIndexCommandError = async (output, cont
2707
2707
  $fault: "client",
2708
2708
  $metadata: deserializeMetadata(output),
2709
2709
  });
2710
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2710
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2711
2711
  }
2712
2712
  };
2713
2713
  const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, context) => {
@@ -2720,15 +2720,15 @@ const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, cont
2720
2720
  CalculatorName: undefined,
2721
2721
  CreateTime: undefined,
2722
2722
  };
2723
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2723
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2724
2724
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
2725
- contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
2725
+ contents.CalculatorArn = (0, smithy_client_1.expectString)(data.CalculatorArn);
2726
2726
  }
2727
2727
  if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
2728
- contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
2728
+ contents.CalculatorName = (0, smithy_client_1.expectString)(data.CalculatorName);
2729
2729
  }
2730
2730
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2731
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
2731
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
2732
2732
  }
2733
2733
  return Promise.resolve(contents);
2734
2734
  };
@@ -2764,7 +2764,7 @@ const deserializeAws_restJson1CreateRouteCalculatorCommandError = async (output,
2764
2764
  $fault: "client",
2765
2765
  $metadata: deserializeMetadata(output),
2766
2766
  });
2767
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2767
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2768
2768
  }
2769
2769
  };
2770
2770
  const deserializeAws_restJson1CreateTrackerCommand = async (output, context) => {
@@ -2777,15 +2777,15 @@ const deserializeAws_restJson1CreateTrackerCommand = async (output, context) =>
2777
2777
  TrackerArn: undefined,
2778
2778
  TrackerName: undefined,
2779
2779
  };
2780
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2780
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2781
2781
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2782
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
2782
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
2783
2783
  }
2784
2784
  if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
2785
- contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
2785
+ contents.TrackerArn = (0, smithy_client_1.expectString)(data.TrackerArn);
2786
2786
  }
2787
2787
  if (data.TrackerName !== undefined && data.TrackerName !== null) {
2788
- contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
2788
+ contents.TrackerName = (0, smithy_client_1.expectString)(data.TrackerName);
2789
2789
  }
2790
2790
  return Promise.resolve(contents);
2791
2791
  };
@@ -2821,7 +2821,7 @@ const deserializeAws_restJson1CreateTrackerCommandError = async (output, context
2821
2821
  $fault: "client",
2822
2822
  $metadata: deserializeMetadata(output),
2823
2823
  });
2824
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2824
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2825
2825
  }
2826
2826
  };
2827
2827
  const deserializeAws_restJson1DeleteGeofenceCollectionCommand = async (output, context) => {
@@ -2866,7 +2866,7 @@ const deserializeAws_restJson1DeleteGeofenceCollectionCommandError = async (outp
2866
2866
  $fault: "client",
2867
2867
  $metadata: deserializeMetadata(output),
2868
2868
  });
2869
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2869
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2870
2870
  }
2871
2871
  };
2872
2872
  const deserializeAws_restJson1DeleteMapCommand = async (output, context) => {
@@ -2911,7 +2911,7 @@ const deserializeAws_restJson1DeleteMapCommandError = async (output, context) =>
2911
2911
  $fault: "client",
2912
2912
  $metadata: deserializeMetadata(output),
2913
2913
  });
2914
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2914
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2915
2915
  }
2916
2916
  };
2917
2917
  const deserializeAws_restJson1DeletePlaceIndexCommand = async (output, context) => {
@@ -2956,7 +2956,7 @@ const deserializeAws_restJson1DeletePlaceIndexCommandError = async (output, cont
2956
2956
  $fault: "client",
2957
2957
  $metadata: deserializeMetadata(output),
2958
2958
  });
2959
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2959
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2960
2960
  }
2961
2961
  };
2962
2962
  const deserializeAws_restJson1DeleteRouteCalculatorCommand = async (output, context) => {
@@ -3001,7 +3001,7 @@ const deserializeAws_restJson1DeleteRouteCalculatorCommandError = async (output,
3001
3001
  $fault: "client",
3002
3002
  $metadata: deserializeMetadata(output),
3003
3003
  });
3004
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3004
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3005
3005
  }
3006
3006
  };
3007
3007
  const deserializeAws_restJson1DeleteTrackerCommand = async (output, context) => {
@@ -3046,7 +3046,7 @@ const deserializeAws_restJson1DeleteTrackerCommandError = async (output, context
3046
3046
  $fault: "client",
3047
3047
  $metadata: deserializeMetadata(output),
3048
3048
  });
3049
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3049
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3050
3050
  }
3051
3051
  };
3052
3052
  const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output, context) => {
@@ -3065,33 +3065,33 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output,
3065
3065
  Tags: undefined,
3066
3066
  UpdateTime: undefined,
3067
3067
  };
3068
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3068
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3069
3069
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
3070
- contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
3070
+ contents.CollectionArn = (0, smithy_client_1.expectString)(data.CollectionArn);
3071
3071
  }
3072
3072
  if (data.CollectionName !== undefined && data.CollectionName !== null) {
3073
- contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
3073
+ contents.CollectionName = (0, smithy_client_1.expectString)(data.CollectionName);
3074
3074
  }
3075
3075
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3076
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3076
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3077
3077
  }
3078
3078
  if (data.Description !== undefined && data.Description !== null) {
3079
- contents.Description = smithy_client_1.expectString(data.Description);
3079
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3080
3080
  }
3081
3081
  if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
3082
- contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
3082
+ contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
3083
3083
  }
3084
3084
  if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
3085
- contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
3085
+ contents.PricingPlan = (0, smithy_client_1.expectString)(data.PricingPlan);
3086
3086
  }
3087
3087
  if (data.PricingPlanDataSource !== undefined && data.PricingPlanDataSource !== null) {
3088
- contents.PricingPlanDataSource = smithy_client_1.expectString(data.PricingPlanDataSource);
3088
+ contents.PricingPlanDataSource = (0, smithy_client_1.expectString)(data.PricingPlanDataSource);
3089
3089
  }
3090
3090
  if (data.Tags !== undefined && data.Tags !== null) {
3091
3091
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3092
3092
  }
3093
3093
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3094
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3094
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3095
3095
  }
3096
3096
  return Promise.resolve(contents);
3097
3097
  };
@@ -3127,7 +3127,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommandError = async (ou
3127
3127
  $fault: "client",
3128
3128
  $metadata: deserializeMetadata(output),
3129
3129
  });
3130
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3130
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3131
3131
  }
3132
3132
  };
3133
3133
  const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
@@ -3146,33 +3146,33 @@ const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
3146
3146
  Tags: undefined,
3147
3147
  UpdateTime: undefined,
3148
3148
  };
3149
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3149
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3150
3150
  if (data.Configuration !== undefined && data.Configuration !== null) {
3151
3151
  contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
3152
3152
  }
3153
3153
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3154
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3154
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3155
3155
  }
3156
3156
  if (data.DataSource !== undefined && data.DataSource !== null) {
3157
- contents.DataSource = smithy_client_1.expectString(data.DataSource);
3157
+ contents.DataSource = (0, smithy_client_1.expectString)(data.DataSource);
3158
3158
  }
3159
3159
  if (data.Description !== undefined && data.Description !== null) {
3160
- contents.Description = smithy_client_1.expectString(data.Description);
3160
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3161
3161
  }
3162
3162
  if (data.MapArn !== undefined && data.MapArn !== null) {
3163
- contents.MapArn = smithy_client_1.expectString(data.MapArn);
3163
+ contents.MapArn = (0, smithy_client_1.expectString)(data.MapArn);
3164
3164
  }
3165
3165
  if (data.MapName !== undefined && data.MapName !== null) {
3166
- contents.MapName = smithy_client_1.expectString(data.MapName);
3166
+ contents.MapName = (0, smithy_client_1.expectString)(data.MapName);
3167
3167
  }
3168
3168
  if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
3169
- contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
3169
+ contents.PricingPlan = (0, smithy_client_1.expectString)(data.PricingPlan);
3170
3170
  }
3171
3171
  if (data.Tags !== undefined && data.Tags !== null) {
3172
3172
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3173
3173
  }
3174
3174
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3175
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3175
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3176
3176
  }
3177
3177
  return Promise.resolve(contents);
3178
3178
  };
@@ -3208,7 +3208,7 @@ const deserializeAws_restJson1DescribeMapCommandError = async (output, context)
3208
3208
  $fault: "client",
3209
3209
  $metadata: deserializeMetadata(output),
3210
3210
  });
3211
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3211
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3212
3212
  }
3213
3213
  };
3214
3214
  const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context) => {
@@ -3227,33 +3227,33 @@ const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context
3227
3227
  Tags: undefined,
3228
3228
  UpdateTime: undefined,
3229
3229
  };
3230
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3230
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3231
3231
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3232
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3232
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3233
3233
  }
3234
3234
  if (data.DataSource !== undefined && data.DataSource !== null) {
3235
- contents.DataSource = smithy_client_1.expectString(data.DataSource);
3235
+ contents.DataSource = (0, smithy_client_1.expectString)(data.DataSource);
3236
3236
  }
3237
3237
  if (data.DataSourceConfiguration !== undefined && data.DataSourceConfiguration !== null) {
3238
3238
  contents.DataSourceConfiguration = deserializeAws_restJson1DataSourceConfiguration(data.DataSourceConfiguration, context);
3239
3239
  }
3240
3240
  if (data.Description !== undefined && data.Description !== null) {
3241
- contents.Description = smithy_client_1.expectString(data.Description);
3241
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3242
3242
  }
3243
3243
  if (data.IndexArn !== undefined && data.IndexArn !== null) {
3244
- contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
3244
+ contents.IndexArn = (0, smithy_client_1.expectString)(data.IndexArn);
3245
3245
  }
3246
3246
  if (data.IndexName !== undefined && data.IndexName !== null) {
3247
- contents.IndexName = smithy_client_1.expectString(data.IndexName);
3247
+ contents.IndexName = (0, smithy_client_1.expectString)(data.IndexName);
3248
3248
  }
3249
3249
  if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
3250
- contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
3250
+ contents.PricingPlan = (0, smithy_client_1.expectString)(data.PricingPlan);
3251
3251
  }
3252
3252
  if (data.Tags !== undefined && data.Tags !== null) {
3253
3253
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3254
3254
  }
3255
3255
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3256
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3256
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3257
3257
  }
3258
3258
  return Promise.resolve(contents);
3259
3259
  };
@@ -3289,7 +3289,7 @@ const deserializeAws_restJson1DescribePlaceIndexCommandError = async (output, co
3289
3289
  $fault: "client",
3290
3290
  $metadata: deserializeMetadata(output),
3291
3291
  });
3292
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3292
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3293
3293
  }
3294
3294
  };
3295
3295
  const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, context) => {
@@ -3307,30 +3307,30 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, co
3307
3307
  Tags: undefined,
3308
3308
  UpdateTime: undefined,
3309
3309
  };
3310
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3310
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3311
3311
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
3312
- contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
3312
+ contents.CalculatorArn = (0, smithy_client_1.expectString)(data.CalculatorArn);
3313
3313
  }
3314
3314
  if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
3315
- contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
3315
+ contents.CalculatorName = (0, smithy_client_1.expectString)(data.CalculatorName);
3316
3316
  }
3317
3317
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3318
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3318
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3319
3319
  }
3320
3320
  if (data.DataSource !== undefined && data.DataSource !== null) {
3321
- contents.DataSource = smithy_client_1.expectString(data.DataSource);
3321
+ contents.DataSource = (0, smithy_client_1.expectString)(data.DataSource);
3322
3322
  }
3323
3323
  if (data.Description !== undefined && data.Description !== null) {
3324
- contents.Description = smithy_client_1.expectString(data.Description);
3324
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3325
3325
  }
3326
3326
  if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
3327
- contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
3327
+ contents.PricingPlan = (0, smithy_client_1.expectString)(data.PricingPlan);
3328
3328
  }
3329
3329
  if (data.Tags !== undefined && data.Tags !== null) {
3330
3330
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3331
3331
  }
3332
3332
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3333
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3333
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3334
3334
  }
3335
3335
  return Promise.resolve(contents);
3336
3336
  };
@@ -3366,7 +3366,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommandError = async (outpu
3366
3366
  $fault: "client",
3367
3367
  $metadata: deserializeMetadata(output),
3368
3368
  });
3369
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3369
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3370
3370
  }
3371
3371
  };
3372
3372
  const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) => {
@@ -3386,36 +3386,36 @@ const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) =
3386
3386
  TrackerName: undefined,
3387
3387
  UpdateTime: undefined,
3388
3388
  };
3389
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3389
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3390
3390
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3391
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3391
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3392
3392
  }
3393
3393
  if (data.Description !== undefined && data.Description !== null) {
3394
- contents.Description = smithy_client_1.expectString(data.Description);
3394
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
3395
3395
  }
3396
3396
  if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
3397
- contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
3397
+ contents.KmsKeyId = (0, smithy_client_1.expectString)(data.KmsKeyId);
3398
3398
  }
3399
3399
  if (data.PositionFiltering !== undefined && data.PositionFiltering !== null) {
3400
- contents.PositionFiltering = smithy_client_1.expectString(data.PositionFiltering);
3400
+ contents.PositionFiltering = (0, smithy_client_1.expectString)(data.PositionFiltering);
3401
3401
  }
3402
3402
  if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
3403
- contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
3403
+ contents.PricingPlan = (0, smithy_client_1.expectString)(data.PricingPlan);
3404
3404
  }
3405
3405
  if (data.PricingPlanDataSource !== undefined && data.PricingPlanDataSource !== null) {
3406
- contents.PricingPlanDataSource = smithy_client_1.expectString(data.PricingPlanDataSource);
3406
+ contents.PricingPlanDataSource = (0, smithy_client_1.expectString)(data.PricingPlanDataSource);
3407
3407
  }
3408
3408
  if (data.Tags !== undefined && data.Tags !== null) {
3409
3409
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3410
3410
  }
3411
3411
  if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
3412
- contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
3412
+ contents.TrackerArn = (0, smithy_client_1.expectString)(data.TrackerArn);
3413
3413
  }
3414
3414
  if (data.TrackerName !== undefined && data.TrackerName !== null) {
3415
- contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
3415
+ contents.TrackerName = (0, smithy_client_1.expectString)(data.TrackerName);
3416
3416
  }
3417
3417
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3418
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3418
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3419
3419
  }
3420
3420
  return Promise.resolve(contents);
3421
3421
  };
@@ -3451,7 +3451,7 @@ const deserializeAws_restJson1DescribeTrackerCommandError = async (output, conte
3451
3451
  $fault: "client",
3452
3452
  $metadata: deserializeMetadata(output),
3453
3453
  });
3454
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3454
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3455
3455
  }
3456
3456
  };
3457
3457
  const deserializeAws_restJson1DisassociateTrackerConsumerCommand = async (output, context) => {
@@ -3496,7 +3496,7 @@ const deserializeAws_restJson1DisassociateTrackerConsumerCommandError = async (o
3496
3496
  $fault: "client",
3497
3497
  $metadata: deserializeMetadata(output),
3498
3498
  });
3499
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3499
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3500
3500
  }
3501
3501
  };
3502
3502
  const deserializeAws_restJson1GetDevicePositionCommand = async (output, context) => {
@@ -3512,12 +3512,12 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
3512
3512
  ReceivedTime: undefined,
3513
3513
  SampleTime: undefined,
3514
3514
  };
3515
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3515
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3516
3516
  if (data.Accuracy !== undefined && data.Accuracy !== null) {
3517
3517
  contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
3518
3518
  }
3519
3519
  if (data.DeviceId !== undefined && data.DeviceId !== null) {
3520
- contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
3520
+ contents.DeviceId = (0, smithy_client_1.expectString)(data.DeviceId);
3521
3521
  }
3522
3522
  if (data.Position !== undefined && data.Position !== null) {
3523
3523
  contents.Position = deserializeAws_restJson1Position(data.Position, context);
@@ -3526,10 +3526,10 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
3526
3526
  contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
3527
3527
  }
3528
3528
  if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
3529
- contents.ReceivedTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.ReceivedTime));
3529
+ contents.ReceivedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.ReceivedTime));
3530
3530
  }
3531
3531
  if (data.SampleTime !== undefined && data.SampleTime !== null) {
3532
- contents.SampleTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.SampleTime));
3532
+ contents.SampleTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.SampleTime));
3533
3533
  }
3534
3534
  return Promise.resolve(contents);
3535
3535
  };
@@ -3565,7 +3565,7 @@ const deserializeAws_restJson1GetDevicePositionCommandError = async (output, con
3565
3565
  $fault: "client",
3566
3566
  $metadata: deserializeMetadata(output),
3567
3567
  });
3568
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3568
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3569
3569
  }
3570
3570
  };
3571
3571
  const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, context) => {
@@ -3577,12 +3577,12 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, c
3577
3577
  DevicePositions: undefined,
3578
3578
  NextToken: undefined,
3579
3579
  };
3580
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3580
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3581
3581
  if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
3582
3582
  contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
3583
3583
  }
3584
3584
  if (data.NextToken !== undefined && data.NextToken !== null) {
3585
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
3585
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3586
3586
  }
3587
3587
  return Promise.resolve(contents);
3588
3588
  };
@@ -3618,7 +3618,7 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommandError = async (outp
3618
3618
  $fault: "client",
3619
3619
  $metadata: deserializeMetadata(output),
3620
3620
  });
3621
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3621
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3622
3622
  }
3623
3623
  };
3624
3624
  const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
@@ -3633,21 +3633,21 @@ const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
3633
3633
  Status: undefined,
3634
3634
  UpdateTime: undefined,
3635
3635
  };
3636
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3636
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3637
3637
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3638
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
3638
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
3639
3639
  }
3640
3640
  if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
3641
- contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
3641
+ contents.GeofenceId = (0, smithy_client_1.expectString)(data.GeofenceId);
3642
3642
  }
3643
3643
  if (data.Geometry !== undefined && data.Geometry !== null) {
3644
3644
  contents.Geometry = deserializeAws_restJson1GeofenceGeometry(data.Geometry, context);
3645
3645
  }
3646
3646
  if (data.Status !== undefined && data.Status !== null) {
3647
- contents.Status = smithy_client_1.expectString(data.Status);
3647
+ contents.Status = (0, smithy_client_1.expectString)(data.Status);
3648
3648
  }
3649
3649
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3650
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
3650
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
3651
3651
  }
3652
3652
  return Promise.resolve(contents);
3653
3653
  };
@@ -3683,7 +3683,7 @@ const deserializeAws_restJson1GetGeofenceCommandError = async (output, context)
3683
3683
  $fault: "client",
3684
3684
  $metadata: deserializeMetadata(output),
3685
3685
  });
3686
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3686
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3687
3687
  }
3688
3688
  };
3689
3689
  const deserializeAws_restJson1GetMapGlyphsCommand = async (output, context) => {
@@ -3734,7 +3734,7 @@ const deserializeAws_restJson1GetMapGlyphsCommandError = async (output, context)
3734
3734
  $fault: "client",
3735
3735
  $metadata: deserializeMetadata(output),
3736
3736
  });
3737
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3737
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3738
3738
  }
3739
3739
  };
3740
3740
  const deserializeAws_restJson1GetMapSpritesCommand = async (output, context) => {
@@ -3785,7 +3785,7 @@ const deserializeAws_restJson1GetMapSpritesCommandError = async (output, context
3785
3785
  $fault: "client",
3786
3786
  $metadata: deserializeMetadata(output),
3787
3787
  });
3788
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3788
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3789
3789
  }
3790
3790
  };
3791
3791
  const deserializeAws_restJson1GetMapStyleDescriptorCommand = async (output, context) => {
@@ -3836,7 +3836,7 @@ const deserializeAws_restJson1GetMapStyleDescriptorCommandError = async (output,
3836
3836
  $fault: "client",
3837
3837
  $metadata: deserializeMetadata(output),
3838
3838
  });
3839
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3839
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3840
3840
  }
3841
3841
  };
3842
3842
  const deserializeAws_restJson1GetMapTileCommand = async (output, context) => {
@@ -3887,7 +3887,7 @@ const deserializeAws_restJson1GetMapTileCommandError = async (output, context) =
3887
3887
  $fault: "client",
3888
3888
  $metadata: deserializeMetadata(output),
3889
3889
  });
3890
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3890
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3891
3891
  }
3892
3892
  };
3893
3893
  const deserializeAws_restJson1ListDevicePositionsCommand = async (output, context) => {
@@ -3899,12 +3899,12 @@ const deserializeAws_restJson1ListDevicePositionsCommand = async (output, contex
3899
3899
  Entries: undefined,
3900
3900
  NextToken: undefined,
3901
3901
  };
3902
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3902
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3903
3903
  if (data.Entries !== undefined && data.Entries !== null) {
3904
3904
  contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
3905
3905
  }
3906
3906
  if (data.NextToken !== undefined && data.NextToken !== null) {
3907
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
3907
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3908
3908
  }
3909
3909
  return Promise.resolve(contents);
3910
3910
  };
@@ -3937,7 +3937,7 @@ const deserializeAws_restJson1ListDevicePositionsCommandError = async (output, c
3937
3937
  $fault: "client",
3938
3938
  $metadata: deserializeMetadata(output),
3939
3939
  });
3940
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3940
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3941
3941
  }
3942
3942
  };
3943
3943
  const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, context) => {
@@ -3949,12 +3949,12 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, co
3949
3949
  Entries: undefined,
3950
3950
  NextToken: undefined,
3951
3951
  };
3952
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3952
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3953
3953
  if (data.Entries !== undefined && data.Entries !== null) {
3954
3954
  contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
3955
3955
  }
3956
3956
  if (data.NextToken !== undefined && data.NextToken !== null) {
3957
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
3957
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
3958
3958
  }
3959
3959
  return Promise.resolve(contents);
3960
3960
  };
@@ -3987,7 +3987,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommandError = async (outpu
3987
3987
  $fault: "client",
3988
3988
  $metadata: deserializeMetadata(output),
3989
3989
  });
3990
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3990
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3991
3991
  }
3992
3992
  };
3993
3993
  const deserializeAws_restJson1ListGeofencesCommand = async (output, context) => {
@@ -3999,12 +3999,12 @@ const deserializeAws_restJson1ListGeofencesCommand = async (output, context) =>
3999
3999
  Entries: undefined,
4000
4000
  NextToken: undefined,
4001
4001
  };
4002
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4002
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4003
4003
  if (data.Entries !== undefined && data.Entries !== null) {
4004
4004
  contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
4005
4005
  }
4006
4006
  if (data.NextToken !== undefined && data.NextToken !== null) {
4007
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4007
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4008
4008
  }
4009
4009
  return Promise.resolve(contents);
4010
4010
  };
@@ -4040,7 +4040,7 @@ const deserializeAws_restJson1ListGeofencesCommandError = async (output, context
4040
4040
  $fault: "client",
4041
4041
  $metadata: deserializeMetadata(output),
4042
4042
  });
4043
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4043
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4044
4044
  }
4045
4045
  };
4046
4046
  const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
@@ -4052,12 +4052,12 @@ const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
4052
4052
  Entries: undefined,
4053
4053
  NextToken: undefined,
4054
4054
  };
4055
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4055
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4056
4056
  if (data.Entries !== undefined && data.Entries !== null) {
4057
4057
  contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
4058
4058
  }
4059
4059
  if (data.NextToken !== undefined && data.NextToken !== null) {
4060
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4060
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4061
4061
  }
4062
4062
  return Promise.resolve(contents);
4063
4063
  };
@@ -4090,7 +4090,7 @@ const deserializeAws_restJson1ListMapsCommandError = async (output, context) =>
4090
4090
  $fault: "client",
4091
4091
  $metadata: deserializeMetadata(output),
4092
4092
  });
4093
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4093
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4094
4094
  }
4095
4095
  };
4096
4096
  const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context) => {
@@ -4102,12 +4102,12 @@ const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context)
4102
4102
  Entries: undefined,
4103
4103
  NextToken: undefined,
4104
4104
  };
4105
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4105
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4106
4106
  if (data.Entries !== undefined && data.Entries !== null) {
4107
4107
  contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
4108
4108
  }
4109
4109
  if (data.NextToken !== undefined && data.NextToken !== null) {
4110
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4110
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4111
4111
  }
4112
4112
  return Promise.resolve(contents);
4113
4113
  };
@@ -4140,7 +4140,7 @@ const deserializeAws_restJson1ListPlaceIndexesCommandError = async (output, cont
4140
4140
  $fault: "client",
4141
4141
  $metadata: deserializeMetadata(output),
4142
4142
  });
4143
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4143
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4144
4144
  }
4145
4145
  };
4146
4146
  const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, context) => {
@@ -4152,12 +4152,12 @@ const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, conte
4152
4152
  Entries: undefined,
4153
4153
  NextToken: undefined,
4154
4154
  };
4155
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4155
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4156
4156
  if (data.Entries !== undefined && data.Entries !== null) {
4157
4157
  contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
4158
4158
  }
4159
4159
  if (data.NextToken !== undefined && data.NextToken !== null) {
4160
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4160
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4161
4161
  }
4162
4162
  return Promise.resolve(contents);
4163
4163
  };
@@ -4190,7 +4190,7 @@ const deserializeAws_restJson1ListRouteCalculatorsCommandError = async (output,
4190
4190
  $fault: "client",
4191
4191
  $metadata: deserializeMetadata(output),
4192
4192
  });
4193
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4193
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4194
4194
  }
4195
4195
  };
4196
4196
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -4201,7 +4201,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
4201
4201
  $metadata: deserializeMetadata(output),
4202
4202
  Tags: undefined,
4203
4203
  };
4204
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4204
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4205
4205
  if (data.Tags !== undefined && data.Tags !== null) {
4206
4206
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
4207
4207
  }
@@ -4239,7 +4239,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
4239
4239
  $fault: "client",
4240
4240
  $metadata: deserializeMetadata(output),
4241
4241
  });
4242
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4242
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4243
4243
  }
4244
4244
  };
4245
4245
  const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, context) => {
@@ -4251,12 +4251,12 @@ const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, conte
4251
4251
  ConsumerArns: undefined,
4252
4252
  NextToken: undefined,
4253
4253
  };
4254
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4254
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4255
4255
  if (data.ConsumerArns !== undefined && data.ConsumerArns !== null) {
4256
4256
  contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
4257
4257
  }
4258
4258
  if (data.NextToken !== undefined && data.NextToken !== null) {
4259
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4259
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4260
4260
  }
4261
4261
  return Promise.resolve(contents);
4262
4262
  };
@@ -4292,7 +4292,7 @@ const deserializeAws_restJson1ListTrackerConsumersCommandError = async (output,
4292
4292
  $fault: "client",
4293
4293
  $metadata: deserializeMetadata(output),
4294
4294
  });
4295
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4295
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4296
4296
  }
4297
4297
  };
4298
4298
  const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
@@ -4304,12 +4304,12 @@ const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
4304
4304
  Entries: undefined,
4305
4305
  NextToken: undefined,
4306
4306
  };
4307
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4307
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4308
4308
  if (data.Entries !== undefined && data.Entries !== null) {
4309
4309
  contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
4310
4310
  }
4311
4311
  if (data.NextToken !== undefined && data.NextToken !== null) {
4312
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
4312
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
4313
4313
  }
4314
4314
  return Promise.resolve(contents);
4315
4315
  };
@@ -4342,7 +4342,7 @@ const deserializeAws_restJson1ListTrackersCommandError = async (output, context)
4342
4342
  $fault: "client",
4343
4343
  $metadata: deserializeMetadata(output),
4344
4344
  });
4345
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4345
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4346
4346
  }
4347
4347
  };
4348
4348
  const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
@@ -4355,15 +4355,15 @@ const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
4355
4355
  GeofenceId: undefined,
4356
4356
  UpdateTime: undefined,
4357
4357
  };
4358
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4358
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4359
4359
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4360
- contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
4360
+ contents.CreateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreateTime));
4361
4361
  }
4362
4362
  if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
4363
- contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
4363
+ contents.GeofenceId = (0, smithy_client_1.expectString)(data.GeofenceId);
4364
4364
  }
4365
4365
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4366
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4366
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4367
4367
  }
4368
4368
  return Promise.resolve(contents);
4369
4369
  };
@@ -4402,7 +4402,7 @@ const deserializeAws_restJson1PutGeofenceCommandError = async (output, context)
4402
4402
  $fault: "client",
4403
4403
  $metadata: deserializeMetadata(output),
4404
4404
  });
4405
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4405
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4406
4406
  }
4407
4407
  };
4408
4408
  const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output, context) => {
@@ -4414,7 +4414,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output
4414
4414
  Results: undefined,
4415
4415
  Summary: undefined,
4416
4416
  };
4417
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4417
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4418
4418
  if (data.Results !== undefined && data.Results !== null) {
4419
4419
  contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
4420
4420
  }
@@ -4455,7 +4455,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
4455
4455
  $fault: "client",
4456
4456
  $metadata: deserializeMetadata(output),
4457
4457
  });
4458
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4458
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4459
4459
  }
4460
4460
  };
4461
4461
  const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
@@ -4467,7 +4467,7 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (out
4467
4467
  Results: undefined,
4468
4468
  Summary: undefined,
4469
4469
  };
4470
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4470
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4471
4471
  if (data.Results !== undefined && data.Results !== null) {
4472
4472
  contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
4473
4473
  }
@@ -4508,7 +4508,7 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async
4508
4508
  $fault: "client",
4509
4509
  $metadata: deserializeMetadata(output),
4510
4510
  });
4511
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4511
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4512
4512
  }
4513
4513
  };
4514
4514
  const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, context) => {
@@ -4520,7 +4520,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, co
4520
4520
  Results: undefined,
4521
4521
  Summary: undefined,
4522
4522
  };
4523
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4523
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4524
4524
  if (data.Results !== undefined && data.Results !== null) {
4525
4525
  contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
4526
4526
  }
@@ -4561,7 +4561,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommandError = async (outpu
4561
4561
  $fault: "client",
4562
4562
  $metadata: deserializeMetadata(output),
4563
4563
  });
4564
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4564
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4565
4565
  }
4566
4566
  };
4567
4567
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -4606,7 +4606,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
4606
4606
  $fault: "client",
4607
4607
  $metadata: deserializeMetadata(output),
4608
4608
  });
4609
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4609
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4610
4610
  }
4611
4611
  };
4612
4612
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -4651,7 +4651,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
4651
4651
  $fault: "client",
4652
4652
  $metadata: deserializeMetadata(output),
4653
4653
  });
4654
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4654
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4655
4655
  }
4656
4656
  };
4657
4657
  const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, context) => {
@@ -4664,15 +4664,15 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, c
4664
4664
  CollectionName: undefined,
4665
4665
  UpdateTime: undefined,
4666
4666
  };
4667
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4667
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4668
4668
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
4669
- contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
4669
+ contents.CollectionArn = (0, smithy_client_1.expectString)(data.CollectionArn);
4670
4670
  }
4671
4671
  if (data.CollectionName !== undefined && data.CollectionName !== null) {
4672
- contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
4672
+ contents.CollectionName = (0, smithy_client_1.expectString)(data.CollectionName);
4673
4673
  }
4674
4674
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4675
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4675
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4676
4676
  }
4677
4677
  return Promise.resolve(contents);
4678
4678
  };
@@ -4708,7 +4708,7 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommandError = async (outp
4708
4708
  $fault: "client",
4709
4709
  $metadata: deserializeMetadata(output),
4710
4710
  });
4711
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4711
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4712
4712
  }
4713
4713
  };
4714
4714
  const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
@@ -4721,15 +4721,15 @@ const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
4721
4721
  MapName: undefined,
4722
4722
  UpdateTime: undefined,
4723
4723
  };
4724
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4724
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4725
4725
  if (data.MapArn !== undefined && data.MapArn !== null) {
4726
- contents.MapArn = smithy_client_1.expectString(data.MapArn);
4726
+ contents.MapArn = (0, smithy_client_1.expectString)(data.MapArn);
4727
4727
  }
4728
4728
  if (data.MapName !== undefined && data.MapName !== null) {
4729
- contents.MapName = smithy_client_1.expectString(data.MapName);
4729
+ contents.MapName = (0, smithy_client_1.expectString)(data.MapName);
4730
4730
  }
4731
4731
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4732
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4732
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4733
4733
  }
4734
4734
  return Promise.resolve(contents);
4735
4735
  };
@@ -4765,7 +4765,7 @@ const deserializeAws_restJson1UpdateMapCommandError = async (output, context) =>
4765
4765
  $fault: "client",
4766
4766
  $metadata: deserializeMetadata(output),
4767
4767
  });
4768
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4768
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4769
4769
  }
4770
4770
  };
4771
4771
  const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context) => {
@@ -4778,15 +4778,15 @@ const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context)
4778
4778
  IndexName: undefined,
4779
4779
  UpdateTime: undefined,
4780
4780
  };
4781
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4781
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4782
4782
  if (data.IndexArn !== undefined && data.IndexArn !== null) {
4783
- contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
4783
+ contents.IndexArn = (0, smithy_client_1.expectString)(data.IndexArn);
4784
4784
  }
4785
4785
  if (data.IndexName !== undefined && data.IndexName !== null) {
4786
- contents.IndexName = smithy_client_1.expectString(data.IndexName);
4786
+ contents.IndexName = (0, smithy_client_1.expectString)(data.IndexName);
4787
4787
  }
4788
4788
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4789
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4789
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4790
4790
  }
4791
4791
  return Promise.resolve(contents);
4792
4792
  };
@@ -4822,7 +4822,7 @@ const deserializeAws_restJson1UpdatePlaceIndexCommandError = async (output, cont
4822
4822
  $fault: "client",
4823
4823
  $metadata: deserializeMetadata(output),
4824
4824
  });
4825
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4825
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4826
4826
  }
4827
4827
  };
4828
4828
  const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, context) => {
@@ -4835,15 +4835,15 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, cont
4835
4835
  CalculatorName: undefined,
4836
4836
  UpdateTime: undefined,
4837
4837
  };
4838
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4838
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4839
4839
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
4840
- contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
4840
+ contents.CalculatorArn = (0, smithy_client_1.expectString)(data.CalculatorArn);
4841
4841
  }
4842
4842
  if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
4843
- contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
4843
+ contents.CalculatorName = (0, smithy_client_1.expectString)(data.CalculatorName);
4844
4844
  }
4845
4845
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4846
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4846
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4847
4847
  }
4848
4848
  return Promise.resolve(contents);
4849
4849
  };
@@ -4879,7 +4879,7 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommandError = async (output,
4879
4879
  $fault: "client",
4880
4880
  $metadata: deserializeMetadata(output),
4881
4881
  });
4882
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4882
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4883
4883
  }
4884
4884
  };
4885
4885
  const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) => {
@@ -4892,15 +4892,15 @@ const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) =>
4892
4892
  TrackerName: undefined,
4893
4893
  UpdateTime: undefined,
4894
4894
  };
4895
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4895
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4896
4896
  if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
4897
- contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
4897
+ contents.TrackerArn = (0, smithy_client_1.expectString)(data.TrackerArn);
4898
4898
  }
4899
4899
  if (data.TrackerName !== undefined && data.TrackerName !== null) {
4900
- contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
4900
+ contents.TrackerName = (0, smithy_client_1.expectString)(data.TrackerName);
4901
4901
  }
4902
4902
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4903
- contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
4903
+ contents.UpdateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdateTime));
4904
4904
  }
4905
4905
  return Promise.resolve(contents);
4906
4906
  };
@@ -4936,80 +4936,80 @@ const deserializeAws_restJson1UpdateTrackerCommandError = async (output, context
4936
4936
  $fault: "client",
4937
4937
  $metadata: deserializeMetadata(output),
4938
4938
  });
4939
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4939
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4940
4940
  }
4941
4941
  };
4942
4942
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
4943
4943
  const contents = {};
4944
4944
  const data = parsedOutput.body;
4945
4945
  if (data.message !== undefined && data.message !== null) {
4946
- contents.Message = smithy_client_1.expectString(data.message);
4946
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4947
4947
  }
4948
4948
  const exception = new models_0_1.AccessDeniedException({
4949
4949
  $metadata: deserializeMetadata(parsedOutput),
4950
4950
  ...contents,
4951
4951
  });
4952
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4952
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4953
4953
  };
4954
4954
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
4955
4955
  const contents = {};
4956
4956
  const data = parsedOutput.body;
4957
4957
  if (data.message !== undefined && data.message !== null) {
4958
- contents.Message = smithy_client_1.expectString(data.message);
4958
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4959
4959
  }
4960
4960
  const exception = new models_0_1.ConflictException({
4961
4961
  $metadata: deserializeMetadata(parsedOutput),
4962
4962
  ...contents,
4963
4963
  });
4964
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4964
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4965
4965
  };
4966
4966
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
4967
4967
  const contents = {};
4968
4968
  const data = parsedOutput.body;
4969
4969
  if (data.message !== undefined && data.message !== null) {
4970
- contents.Message = smithy_client_1.expectString(data.message);
4970
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4971
4971
  }
4972
4972
  const exception = new models_0_1.InternalServerException({
4973
4973
  $metadata: deserializeMetadata(parsedOutput),
4974
4974
  ...contents,
4975
4975
  });
4976
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4976
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4977
4977
  };
4978
4978
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
4979
4979
  const contents = {};
4980
4980
  const data = parsedOutput.body;
4981
4981
  if (data.message !== undefined && data.message !== null) {
4982
- contents.Message = smithy_client_1.expectString(data.message);
4982
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4983
4983
  }
4984
4984
  const exception = new models_0_1.ResourceNotFoundException({
4985
4985
  $metadata: deserializeMetadata(parsedOutput),
4986
4986
  ...contents,
4987
4987
  });
4988
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4988
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4989
4989
  };
4990
4990
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
4991
4991
  const contents = {};
4992
4992
  const data = parsedOutput.body;
4993
4993
  if (data.message !== undefined && data.message !== null) {
4994
- contents.Message = smithy_client_1.expectString(data.message);
4994
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
4995
4995
  }
4996
4996
  const exception = new models_0_1.ServiceQuotaExceededException({
4997
4997
  $metadata: deserializeMetadata(parsedOutput),
4998
4998
  ...contents,
4999
4999
  });
5000
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5000
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5001
5001
  };
5002
5002
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
5003
5003
  const contents = {};
5004
5004
  const data = parsedOutput.body;
5005
5005
  if (data.message !== undefined && data.message !== null) {
5006
- contents.Message = smithy_client_1.expectString(data.message);
5006
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
5007
5007
  }
5008
5008
  const exception = new models_0_1.ThrottlingException({
5009
5009
  $metadata: deserializeMetadata(parsedOutput),
5010
5010
  ...contents,
5011
5011
  });
5012
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5012
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5013
5013
  };
5014
5014
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
5015
5015
  const contents = {};
@@ -5018,16 +5018,16 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
5018
5018
  contents.FieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
5019
5019
  }
5020
5020
  if (data.message !== undefined && data.message !== null) {
5021
- contents.Message = smithy_client_1.expectString(data.message);
5021
+ contents.Message = (0, smithy_client_1.expectString)(data.message);
5022
5022
  }
5023
5023
  if (data.reason !== undefined && data.reason !== null) {
5024
- contents.Reason = smithy_client_1.expectString(data.reason);
5024
+ contents.Reason = (0, smithy_client_1.expectString)(data.reason);
5025
5025
  }
5026
5026
  const exception = new models_0_1.ValidationException({
5027
5027
  $metadata: deserializeMetadata(parsedOutput),
5028
5028
  ...contents,
5029
5029
  });
5030
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
5030
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5031
5031
  };
5032
5032
  const serializeAws_restJson1BatchPutGeofenceRequestEntry = (input, context) => {
5033
5033
  return {
@@ -5053,7 +5053,7 @@ const serializeAws_restJson1BoundingBox = (input, context) => {
5053
5053
  if (entry === null) {
5054
5054
  return null;
5055
5055
  }
5056
- return smithy_client_1.serializeFloat(entry);
5056
+ return (0, smithy_client_1.serializeFloat)(entry);
5057
5057
  });
5058
5058
  };
5059
5059
  const serializeAws_restJson1CalculateRouteCarModeOptions = (input, context) => {
@@ -5170,13 +5170,13 @@ const serializeAws_restJson1Position = (input, context) => {
5170
5170
  if (entry === null) {
5171
5171
  return null;
5172
5172
  }
5173
- return smithy_client_1.serializeFloat(entry);
5173
+ return (0, smithy_client_1.serializeFloat)(entry);
5174
5174
  });
5175
5175
  };
5176
5176
  const serializeAws_restJson1PositionalAccuracy = (input, context) => {
5177
5177
  return {
5178
5178
  ...(input.Horizontal !== undefined &&
5179
- input.Horizontal !== null && { Horizontal: smithy_client_1.serializeFloat(input.Horizontal) }),
5179
+ input.Horizontal !== null && { Horizontal: (0, smithy_client_1.serializeFloat)(input.Horizontal) }),
5180
5180
  };
5181
5181
  };
5182
5182
  const serializeAws_restJson1PositionList = (input, context) => {
@@ -5213,15 +5213,15 @@ const serializeAws_restJson1TagMap = (input, context) => {
5213
5213
  };
5214
5214
  const serializeAws_restJson1TruckDimensions = (input, context) => {
5215
5215
  return {
5216
- ...(input.Height !== undefined && input.Height !== null && { Height: smithy_client_1.serializeFloat(input.Height) }),
5217
- ...(input.Length !== undefined && input.Length !== null && { Length: smithy_client_1.serializeFloat(input.Length) }),
5216
+ ...(input.Height !== undefined && input.Height !== null && { Height: (0, smithy_client_1.serializeFloat)(input.Height) }),
5217
+ ...(input.Length !== undefined && input.Length !== null && { Length: (0, smithy_client_1.serializeFloat)(input.Length) }),
5218
5218
  ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
5219
- ...(input.Width !== undefined && input.Width !== null && { Width: smithy_client_1.serializeFloat(input.Width) }),
5219
+ ...(input.Width !== undefined && input.Width !== null && { Width: (0, smithy_client_1.serializeFloat)(input.Width) }),
5220
5220
  };
5221
5221
  };
5222
5222
  const serializeAws_restJson1TruckWeight = (input, context) => {
5223
5223
  return {
5224
- ...(input.Total !== undefined && input.Total !== null && { Total: smithy_client_1.serializeFloat(input.Total) }),
5224
+ ...(input.Total !== undefined && input.Total !== null && { Total: (0, smithy_client_1.serializeFloat)(input.Total) }),
5225
5225
  ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
5226
5226
  };
5227
5227
  };
@@ -5242,13 +5242,13 @@ const deserializeAws_restJson1ArnList = (output, context) => {
5242
5242
  if (entry === null) {
5243
5243
  return null;
5244
5244
  }
5245
- return smithy_client_1.expectString(entry);
5245
+ return (0, smithy_client_1.expectString)(entry);
5246
5246
  });
5247
5247
  return retVal;
5248
5248
  };
5249
5249
  const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
5250
5250
  return {
5251
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5251
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5252
5252
  Error: output.Error !== undefined && output.Error !== null
5253
5253
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5254
5254
  : undefined,
@@ -5270,7 +5270,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
5270
5270
  Error: output.Error !== undefined && output.Error !== null
5271
5271
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5272
5272
  : undefined,
5273
- GeofenceId: smithy_client_1.expectString(output.GeofenceId),
5273
+ GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
5274
5274
  };
5275
5275
  };
5276
5276
  const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) => {
@@ -5286,12 +5286,12 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) =
5286
5286
  };
5287
5287
  const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
5288
5288
  return {
5289
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5289
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5290
5290
  Error: output.Error !== undefined && output.Error !== null
5291
5291
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5292
5292
  : undefined,
5293
5293
  SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
5294
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
5294
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
5295
5295
  : undefined,
5296
5296
  };
5297
5297
  };
@@ -5308,7 +5308,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context
5308
5308
  };
5309
5309
  const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
5310
5310
  return {
5311
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5311
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5312
5312
  Error: output.Error !== undefined && output.Error !== null
5313
5313
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5314
5314
  : undefined,
@@ -5327,8 +5327,8 @@ const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context
5327
5327
  };
5328
5328
  const deserializeAws_restJson1BatchItemError = (output, context) => {
5329
5329
  return {
5330
- Code: smithy_client_1.expectString(output.Code),
5331
- Message: smithy_client_1.expectString(output.Message),
5330
+ Code: (0, smithy_client_1.expectString)(output.Code),
5331
+ Message: (0, smithy_client_1.expectString)(output.Message),
5332
5332
  };
5333
5333
  };
5334
5334
  const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
@@ -5336,7 +5336,7 @@ const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
5336
5336
  Error: output.Error !== undefined && output.Error !== null
5337
5337
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5338
5338
  : undefined,
5339
- GeofenceId: smithy_client_1.expectString(output.GeofenceId),
5339
+ GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
5340
5340
  };
5341
5341
  };
5342
5342
  const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
@@ -5353,11 +5353,11 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
5353
5353
  const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
5354
5354
  return {
5355
5355
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5356
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5356
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5357
5357
  : undefined,
5358
- GeofenceId: smithy_client_1.expectString(output.GeofenceId),
5358
+ GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
5359
5359
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5360
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5360
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5361
5361
  : undefined,
5362
5362
  };
5363
5363
  };
@@ -5374,12 +5374,12 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) =>
5374
5374
  };
5375
5375
  const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
5376
5376
  return {
5377
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5377
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5378
5378
  Error: output.Error !== undefined && output.Error !== null
5379
5379
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
5380
5380
  : undefined,
5381
5381
  SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
5382
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
5382
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
5383
5383
  : undefined,
5384
5384
  };
5385
5385
  };
@@ -5401,24 +5401,24 @@ const deserializeAws_restJson1BoundingBox = (output, context) => {
5401
5401
  if (entry === null) {
5402
5402
  return null;
5403
5403
  }
5404
- return smithy_client_1.limitedParseDouble(entry);
5404
+ return (0, smithy_client_1.limitedParseDouble)(entry);
5405
5405
  });
5406
5406
  return retVal;
5407
5407
  };
5408
5408
  const deserializeAws_restJson1CalculateRouteMatrixSummary = (output, context) => {
5409
5409
  return {
5410
- DataSource: smithy_client_1.expectString(output.DataSource),
5411
- DistanceUnit: smithy_client_1.expectString(output.DistanceUnit),
5412
- ErrorCount: smithy_client_1.expectInt32(output.ErrorCount),
5413
- RouteCount: smithy_client_1.expectInt32(output.RouteCount),
5410
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5411
+ DistanceUnit: (0, smithy_client_1.expectString)(output.DistanceUnit),
5412
+ ErrorCount: (0, smithy_client_1.expectInt32)(output.ErrorCount),
5413
+ RouteCount: (0, smithy_client_1.expectInt32)(output.RouteCount),
5414
5414
  };
5415
5415
  };
5416
5416
  const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
5417
5417
  return {
5418
- DataSource: smithy_client_1.expectString(output.DataSource),
5419
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5420
- DistanceUnit: smithy_client_1.expectString(output.DistanceUnit),
5421
- DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
5418
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5419
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5420
+ DistanceUnit: (0, smithy_client_1.expectString)(output.DistanceUnit),
5421
+ DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
5422
5422
  RouteBBox: output.RouteBBox !== undefined && output.RouteBBox !== null
5423
5423
  ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
5424
5424
  : undefined,
@@ -5431,13 +5431,13 @@ const deserializeAws_restJson1CountryCodeList = (output, context) => {
5431
5431
  if (entry === null) {
5432
5432
  return null;
5433
5433
  }
5434
- return smithy_client_1.expectString(entry);
5434
+ return (0, smithy_client_1.expectString)(entry);
5435
5435
  });
5436
5436
  return retVal;
5437
5437
  };
5438
5438
  const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
5439
5439
  return {
5440
- IntendedUse: smithy_client_1.expectString(output.IntendedUse),
5440
+ IntendedUse: (0, smithy_client_1.expectString)(output.IntendedUse),
5441
5441
  };
5442
5442
  };
5443
5443
  const deserializeAws_restJson1DevicePosition = (output, context) => {
@@ -5445,7 +5445,7 @@ const deserializeAws_restJson1DevicePosition = (output, context) => {
5445
5445
  Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
5446
5446
  ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
5447
5447
  : undefined,
5448
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5448
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5449
5449
  Position: output.Position !== undefined && output.Position !== null
5450
5450
  ? deserializeAws_restJson1Position(output.Position, context)
5451
5451
  : undefined,
@@ -5453,10 +5453,10 @@ const deserializeAws_restJson1DevicePosition = (output, context) => {
5453
5453
  ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
5454
5454
  : undefined,
5455
5455
  ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
5456
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ReceivedTime))
5456
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ReceivedTime))
5457
5457
  : undefined,
5458
5458
  SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
5459
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
5459
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
5460
5460
  : undefined,
5461
5461
  };
5462
5462
  };
@@ -5480,8 +5480,8 @@ const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
5480
5480
  };
5481
5481
  const deserializeAws_restJson1Leg = (output, context) => {
5482
5482
  return {
5483
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5484
- DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
5483
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5484
+ DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
5485
5485
  EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
5486
5486
  ? deserializeAws_restJson1Position(output.EndPosition, context)
5487
5487
  : undefined,
@@ -5552,7 +5552,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, contex
5552
5552
  Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
5553
5553
  ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
5554
5554
  : undefined,
5555
- DeviceId: smithy_client_1.expectString(output.DeviceId),
5555
+ DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
5556
5556
  Position: output.Position !== undefined && output.Position !== null
5557
5557
  ? deserializeAws_restJson1Position(output.Position, context)
5558
5558
  : undefined,
@@ -5560,7 +5560,7 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, contex
5560
5560
  ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
5561
5561
  : undefined,
5562
5562
  SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
5563
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
5563
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
5564
5564
  : undefined,
5565
5565
  };
5566
5566
  };
@@ -5577,15 +5577,15 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
5577
5577
  };
5578
5578
  const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
5579
5579
  return {
5580
- CollectionName: smithy_client_1.expectString(output.CollectionName),
5580
+ CollectionName: (0, smithy_client_1.expectString)(output.CollectionName),
5581
5581
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5582
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5582
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5583
5583
  : undefined,
5584
- Description: smithy_client_1.expectString(output.Description),
5585
- PricingPlan: smithy_client_1.expectString(output.PricingPlan),
5586
- PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
5584
+ Description: (0, smithy_client_1.expectString)(output.Description),
5585
+ PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
5586
+ PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
5587
5587
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5588
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5588
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5589
5589
  : undefined,
5590
5590
  };
5591
5591
  };
@@ -5603,15 +5603,15 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
5603
5603
  const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
5604
5604
  return {
5605
5605
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5606
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5606
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5607
5607
  : undefined,
5608
- GeofenceId: smithy_client_1.expectString(output.GeofenceId),
5608
+ GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
5609
5609
  Geometry: output.Geometry !== undefined && output.Geometry !== null
5610
5610
  ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
5611
5611
  : undefined,
5612
- Status: smithy_client_1.expectString(output.Status),
5612
+ Status: (0, smithy_client_1.expectString)(output.Status),
5613
5613
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5614
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5614
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5615
5615
  : undefined,
5616
5616
  };
5617
5617
  };
@@ -5629,14 +5629,14 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
5629
5629
  const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
5630
5630
  return {
5631
5631
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5632
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5632
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5633
5633
  : undefined,
5634
- DataSource: smithy_client_1.expectString(output.DataSource),
5635
- Description: smithy_client_1.expectString(output.Description),
5636
- MapName: smithy_client_1.expectString(output.MapName),
5637
- PricingPlan: smithy_client_1.expectString(output.PricingPlan),
5634
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5635
+ Description: (0, smithy_client_1.expectString)(output.Description),
5636
+ MapName: (0, smithy_client_1.expectString)(output.MapName),
5637
+ PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
5638
5638
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5639
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5639
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5640
5640
  : undefined,
5641
5641
  };
5642
5642
  };
@@ -5654,14 +5654,14 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
5654
5654
  const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
5655
5655
  return {
5656
5656
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5657
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5657
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5658
5658
  : undefined,
5659
- DataSource: smithy_client_1.expectString(output.DataSource),
5660
- Description: smithy_client_1.expectString(output.Description),
5661
- IndexName: smithy_client_1.expectString(output.IndexName),
5662
- PricingPlan: smithy_client_1.expectString(output.PricingPlan),
5659
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5660
+ Description: (0, smithy_client_1.expectString)(output.Description),
5661
+ IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5662
+ PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
5663
5663
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5664
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5664
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5665
5665
  : undefined,
5666
5666
  };
5667
5667
  };
@@ -5678,15 +5678,15 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
5678
5678
  };
5679
5679
  const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
5680
5680
  return {
5681
- CalculatorName: smithy_client_1.expectString(output.CalculatorName),
5681
+ CalculatorName: (0, smithy_client_1.expectString)(output.CalculatorName),
5682
5682
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5683
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5683
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5684
5684
  : undefined,
5685
- DataSource: smithy_client_1.expectString(output.DataSource),
5686
- Description: smithy_client_1.expectString(output.Description),
5687
- PricingPlan: smithy_client_1.expectString(output.PricingPlan),
5685
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5686
+ Description: (0, smithy_client_1.expectString)(output.Description),
5687
+ PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
5688
5688
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5689
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5689
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5690
5690
  : undefined,
5691
5691
  };
5692
5692
  };
@@ -5704,14 +5704,14 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
5704
5704
  const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
5705
5705
  return {
5706
5706
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
5707
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
5707
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
5708
5708
  : undefined,
5709
- Description: smithy_client_1.expectString(output.Description),
5710
- PricingPlan: smithy_client_1.expectString(output.PricingPlan),
5711
- PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
5712
- TrackerName: smithy_client_1.expectString(output.TrackerName),
5709
+ Description: (0, smithy_client_1.expectString)(output.Description),
5710
+ PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
5711
+ PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
5712
+ TrackerName: (0, smithy_client_1.expectString)(output.TrackerName),
5713
5713
  UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
5714
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
5714
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
5715
5715
  : undefined,
5716
5716
  };
5717
5717
  };
@@ -5728,24 +5728,24 @@ const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context)
5728
5728
  };
5729
5729
  const deserializeAws_restJson1MapConfiguration = (output, context) => {
5730
5730
  return {
5731
- Style: smithy_client_1.expectString(output.Style),
5731
+ Style: (0, smithy_client_1.expectString)(output.Style),
5732
5732
  };
5733
5733
  };
5734
5734
  const deserializeAws_restJson1Place = (output, context) => {
5735
5735
  return {
5736
- AddressNumber: smithy_client_1.expectString(output.AddressNumber),
5737
- Country: smithy_client_1.expectString(output.Country),
5736
+ AddressNumber: (0, smithy_client_1.expectString)(output.AddressNumber),
5737
+ Country: (0, smithy_client_1.expectString)(output.Country),
5738
5738
  Geometry: output.Geometry !== undefined && output.Geometry !== null
5739
5739
  ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
5740
5740
  : undefined,
5741
- Interpolated: smithy_client_1.expectBoolean(output.Interpolated),
5742
- Label: smithy_client_1.expectString(output.Label),
5743
- Municipality: smithy_client_1.expectString(output.Municipality),
5744
- Neighborhood: smithy_client_1.expectString(output.Neighborhood),
5745
- PostalCode: smithy_client_1.expectString(output.PostalCode),
5746
- Region: smithy_client_1.expectString(output.Region),
5747
- Street: smithy_client_1.expectString(output.Street),
5748
- SubRegion: smithy_client_1.expectString(output.SubRegion),
5741
+ Interpolated: (0, smithy_client_1.expectBoolean)(output.Interpolated),
5742
+ Label: (0, smithy_client_1.expectString)(output.Label),
5743
+ Municipality: (0, smithy_client_1.expectString)(output.Municipality),
5744
+ Neighborhood: (0, smithy_client_1.expectString)(output.Neighborhood),
5745
+ PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
5746
+ Region: (0, smithy_client_1.expectString)(output.Region),
5747
+ Street: (0, smithy_client_1.expectString)(output.Street),
5748
+ SubRegion: (0, smithy_client_1.expectString)(output.SubRegion),
5749
5749
  TimeZone: output.TimeZone !== undefined && output.TimeZone !== null
5750
5750
  ? deserializeAws_restJson1TimeZone(output.TimeZone, context)
5751
5751
  : undefined,
@@ -5765,13 +5765,13 @@ const deserializeAws_restJson1Position = (output, context) => {
5765
5765
  if (entry === null) {
5766
5766
  return null;
5767
5767
  }
5768
- return smithy_client_1.limitedParseDouble(entry);
5768
+ return (0, smithy_client_1.limitedParseDouble)(entry);
5769
5769
  });
5770
5770
  return retVal;
5771
5771
  };
5772
5772
  const deserializeAws_restJson1PositionalAccuracy = (output, context) => {
5773
5773
  return {
5774
- Horizontal: smithy_client_1.limitedParseDouble(output.Horizontal),
5774
+ Horizontal: (0, smithy_client_1.limitedParseDouble)(output.Horizontal),
5775
5775
  };
5776
5776
  };
5777
5777
  const deserializeAws_restJson1PositionList = (output, context) => {
@@ -5792,7 +5792,7 @@ const deserializeAws_restJson1PropertyMap = (output, context) => {
5792
5792
  }
5793
5793
  return {
5794
5794
  ...acc,
5795
- [key]: smithy_client_1.expectString(value),
5795
+ [key]: (0, smithy_client_1.expectString)(value),
5796
5796
  };
5797
5797
  }, {});
5798
5798
  };
@@ -5809,8 +5809,8 @@ const deserializeAws_restJson1RouteMatrix = (output, context) => {
5809
5809
  };
5810
5810
  const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
5811
5811
  return {
5812
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5813
- DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
5812
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5813
+ DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
5814
5814
  Error: output.Error !== undefined && output.Error !== null
5815
5815
  ? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context)
5816
5816
  : undefined,
@@ -5818,8 +5818,8 @@ const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
5818
5818
  };
5819
5819
  const deserializeAws_restJson1RouteMatrixEntryError = (output, context) => {
5820
5820
  return {
5821
- Code: smithy_client_1.expectString(output.Code),
5822
- Message: smithy_client_1.expectString(output.Message),
5821
+ Code: (0, smithy_client_1.expectString)(output.Code),
5822
+ Message: (0, smithy_client_1.expectString)(output.Message),
5823
5823
  };
5824
5824
  };
5825
5825
  const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
@@ -5835,7 +5835,7 @@ const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
5835
5835
  };
5836
5836
  const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
5837
5837
  return {
5838
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5838
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5839
5839
  Place: output.Place !== undefined && output.Place !== null
5840
5840
  ? deserializeAws_restJson1Place(output.Place, context)
5841
5841
  : undefined,
@@ -5854,7 +5854,7 @@ const deserializeAws_restJson1SearchForPositionResultList = (output, context) =>
5854
5854
  };
5855
5855
  const deserializeAws_restJson1SearchForSuggestionsResult = (output, context) => {
5856
5856
  return {
5857
- Text: smithy_client_1.expectString(output.Text),
5857
+ Text: (0, smithy_client_1.expectString)(output.Text),
5858
5858
  };
5859
5859
  };
5860
5860
  const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context) => {
@@ -5870,11 +5870,11 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context)
5870
5870
  };
5871
5871
  const deserializeAws_restJson1SearchForTextResult = (output, context) => {
5872
5872
  return {
5873
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5873
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5874
5874
  Place: output.Place !== undefined && output.Place !== null
5875
5875
  ? deserializeAws_restJson1Place(output.Place, context)
5876
5876
  : undefined,
5877
- Relevance: smithy_client_1.limitedParseDouble(output.Relevance),
5877
+ Relevance: (0, smithy_client_1.limitedParseDouble)(output.Relevance),
5878
5878
  };
5879
5879
  };
5880
5880
  const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
@@ -5890,9 +5890,9 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
5890
5890
  };
5891
5891
  const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
5892
5892
  return {
5893
- DataSource: smithy_client_1.expectString(output.DataSource),
5894
- Language: smithy_client_1.expectString(output.Language),
5895
- MaxResults: smithy_client_1.expectInt32(output.MaxResults),
5893
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5894
+ Language: (0, smithy_client_1.expectString)(output.Language),
5895
+ MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
5896
5896
  Position: output.Position !== undefined && output.Position !== null
5897
5897
  ? deserializeAws_restJson1Position(output.Position, context)
5898
5898
  : undefined,
@@ -5903,16 +5903,16 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, c
5903
5903
  BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
5904
5904
  ? deserializeAws_restJson1Position(output.BiasPosition, context)
5905
5905
  : undefined,
5906
- DataSource: smithy_client_1.expectString(output.DataSource),
5906
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5907
5907
  FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
5908
5908
  ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
5909
5909
  : undefined,
5910
5910
  FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
5911
5911
  ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
5912
5912
  : undefined,
5913
- Language: smithy_client_1.expectString(output.Language),
5914
- MaxResults: smithy_client_1.expectInt32(output.MaxResults),
5915
- Text: smithy_client_1.expectString(output.Text),
5913
+ Language: (0, smithy_client_1.expectString)(output.Language),
5914
+ MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
5915
+ Text: (0, smithy_client_1.expectString)(output.Text),
5916
5916
  };
5917
5917
  };
5918
5918
  const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context) => {
@@ -5920,29 +5920,29 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
5920
5920
  BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
5921
5921
  ? deserializeAws_restJson1Position(output.BiasPosition, context)
5922
5922
  : undefined,
5923
- DataSource: smithy_client_1.expectString(output.DataSource),
5923
+ DataSource: (0, smithy_client_1.expectString)(output.DataSource),
5924
5924
  FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
5925
5925
  ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
5926
5926
  : undefined,
5927
5927
  FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
5928
5928
  ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
5929
5929
  : undefined,
5930
- Language: smithy_client_1.expectString(output.Language),
5931
- MaxResults: smithy_client_1.expectInt32(output.MaxResults),
5930
+ Language: (0, smithy_client_1.expectString)(output.Language),
5931
+ MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
5932
5932
  ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
5933
5933
  ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
5934
5934
  : undefined,
5935
- Text: smithy_client_1.expectString(output.Text),
5935
+ Text: (0, smithy_client_1.expectString)(output.Text),
5936
5936
  };
5937
5937
  };
5938
5938
  const deserializeAws_restJson1Step = (output, context) => {
5939
5939
  return {
5940
- Distance: smithy_client_1.limitedParseDouble(output.Distance),
5941
- DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
5940
+ Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
5941
+ DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
5942
5942
  EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
5943
5943
  ? deserializeAws_restJson1Position(output.EndPosition, context)
5944
5944
  : undefined,
5945
- GeometryOffset: smithy_client_1.expectInt32(output.GeometryOffset),
5945
+ GeometryOffset: (0, smithy_client_1.expectInt32)(output.GeometryOffset),
5946
5946
  StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
5947
5947
  ? deserializeAws_restJson1Position(output.StartPosition, context)
5948
5948
  : undefined,
@@ -5966,20 +5966,20 @@ const deserializeAws_restJson1TagMap = (output, context) => {
5966
5966
  }
5967
5967
  return {
5968
5968
  ...acc,
5969
- [key]: smithy_client_1.expectString(value),
5969
+ [key]: (0, smithy_client_1.expectString)(value),
5970
5970
  };
5971
5971
  }, {});
5972
5972
  };
5973
5973
  const deserializeAws_restJson1TimeZone = (output, context) => {
5974
5974
  return {
5975
- Name: smithy_client_1.expectString(output.Name),
5976
- Offset: smithy_client_1.expectInt32(output.Offset),
5975
+ Name: (0, smithy_client_1.expectString)(output.Name),
5976
+ Offset: (0, smithy_client_1.expectInt32)(output.Offset),
5977
5977
  };
5978
5978
  };
5979
5979
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
5980
5980
  return {
5981
- Message: smithy_client_1.expectString(output.message),
5982
- Name: smithy_client_1.expectString(output.name),
5981
+ Message: (0, smithy_client_1.expectString)(output.message),
5982
+ Name: (0, smithy_client_1.expectString)(output.name),
5983
5983
  };
5984
5984
  };
5985
5985
  const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {