@aws-sdk/client-location 3.31.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/LocationClient.js +13 -13
- package/dist/cjs/LocationClient.js.map +1 -1
- package/dist/cjs/commands/AssociateTrackerConsumerCommand.js +3 -3
- package/dist/cjs/commands/AssociateTrackerConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/BatchDeleteDevicePositionHistoryCommand.js +3 -3
- package/dist/cjs/commands/BatchDeleteDevicePositionHistoryCommand.js.map +1 -1
- package/dist/cjs/commands/BatchDeleteGeofenceCommand.js +3 -3
- package/dist/cjs/commands/BatchDeleteGeofenceCommand.js.map +1 -1
- package/dist/cjs/commands/BatchEvaluateGeofencesCommand.js +3 -3
- package/dist/cjs/commands/BatchEvaluateGeofencesCommand.js.map +1 -1
- package/dist/cjs/commands/BatchGetDevicePositionCommand.js +3 -3
- package/dist/cjs/commands/BatchGetDevicePositionCommand.js.map +1 -1
- package/dist/cjs/commands/BatchPutGeofenceCommand.js +3 -3
- package/dist/cjs/commands/BatchPutGeofenceCommand.js.map +1 -1
- package/dist/cjs/commands/BatchUpdateDevicePositionCommand.js +3 -3
- package/dist/cjs/commands/BatchUpdateDevicePositionCommand.js.map +1 -1
- package/dist/cjs/commands/CalculateRouteCommand.js +3 -3
- package/dist/cjs/commands/CalculateRouteCommand.js.map +1 -1
- package/dist/cjs/commands/CreateGeofenceCollectionCommand.js +3 -3
- package/dist/cjs/commands/CreateGeofenceCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/CreateMapCommand.js +3 -3
- package/dist/cjs/commands/CreateMapCommand.js.map +1 -1
- package/dist/cjs/commands/CreatePlaceIndexCommand.js +3 -3
- package/dist/cjs/commands/CreatePlaceIndexCommand.js.map +1 -1
- package/dist/cjs/commands/CreateRouteCalculatorCommand.js +3 -3
- package/dist/cjs/commands/CreateRouteCalculatorCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTrackerCommand.js +3 -3
- package/dist/cjs/commands/CreateTrackerCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteGeofenceCollectionCommand.js +3 -3
- package/dist/cjs/commands/DeleteGeofenceCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMapCommand.js +3 -3
- package/dist/cjs/commands/DeleteMapCommand.js.map +1 -1
- package/dist/cjs/commands/DeletePlaceIndexCommand.js +3 -3
- package/dist/cjs/commands/DeletePlaceIndexCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteRouteCalculatorCommand.js +3 -3
- package/dist/cjs/commands/DeleteRouteCalculatorCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTrackerCommand.js +3 -3
- package/dist/cjs/commands/DeleteTrackerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeGeofenceCollectionCommand.js +3 -3
- package/dist/cjs/commands/DescribeGeofenceCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeMapCommand.js +3 -3
- package/dist/cjs/commands/DescribeMapCommand.js.map +1 -1
- package/dist/cjs/commands/DescribePlaceIndexCommand.js +3 -3
- package/dist/cjs/commands/DescribePlaceIndexCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeRouteCalculatorCommand.js +3 -3
- package/dist/cjs/commands/DescribeRouteCalculatorCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeTrackerCommand.js +3 -3
- package/dist/cjs/commands/DescribeTrackerCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateTrackerConsumerCommand.js +3 -3
- package/dist/cjs/commands/DisassociateTrackerConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/GetDevicePositionCommand.js +3 -3
- package/dist/cjs/commands/GetDevicePositionCommand.js.map +1 -1
- package/dist/cjs/commands/GetDevicePositionHistoryCommand.js +3 -3
- package/dist/cjs/commands/GetDevicePositionHistoryCommand.js.map +1 -1
- package/dist/cjs/commands/GetGeofenceCommand.js +3 -3
- package/dist/cjs/commands/GetGeofenceCommand.js.map +1 -1
- package/dist/cjs/commands/GetMapGlyphsCommand.js +3 -3
- package/dist/cjs/commands/GetMapGlyphsCommand.js.map +1 -1
- package/dist/cjs/commands/GetMapSpritesCommand.js +3 -3
- package/dist/cjs/commands/GetMapSpritesCommand.js.map +1 -1
- package/dist/cjs/commands/GetMapStyleDescriptorCommand.js +3 -3
- package/dist/cjs/commands/GetMapStyleDescriptorCommand.js.map +1 -1
- package/dist/cjs/commands/GetMapTileCommand.js +3 -3
- package/dist/cjs/commands/GetMapTileCommand.js.map +1 -1
- package/dist/cjs/commands/ListDevicePositionsCommand.js +3 -3
- package/dist/cjs/commands/ListDevicePositionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListGeofenceCollectionsCommand.js +3 -3
- package/dist/cjs/commands/ListGeofenceCollectionsCommand.js.map +1 -1
- package/dist/cjs/commands/ListGeofencesCommand.js +3 -3
- package/dist/cjs/commands/ListGeofencesCommand.js.map +1 -1
- package/dist/cjs/commands/ListMapsCommand.js +3 -3
- package/dist/cjs/commands/ListMapsCommand.js.map +1 -1
- package/dist/cjs/commands/ListPlaceIndexesCommand.js +3 -3
- package/dist/cjs/commands/ListPlaceIndexesCommand.js.map +1 -1
- package/dist/cjs/commands/ListRouteCalculatorsCommand.js +3 -3
- package/dist/cjs/commands/ListRouteCalculatorsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListTrackerConsumersCommand.js +3 -3
- package/dist/cjs/commands/ListTrackerConsumersCommand.js.map +1 -1
- package/dist/cjs/commands/ListTrackersCommand.js +3 -3
- package/dist/cjs/commands/ListTrackersCommand.js.map +1 -1
- package/dist/cjs/commands/PutGeofenceCommand.js +3 -3
- package/dist/cjs/commands/PutGeofenceCommand.js.map +1 -1
- package/dist/cjs/commands/SearchPlaceIndexForPositionCommand.js +3 -3
- package/dist/cjs/commands/SearchPlaceIndexForPositionCommand.js.map +1 -1
- package/dist/cjs/commands/SearchPlaceIndexForTextCommand.js +3 -3
- package/dist/cjs/commands/SearchPlaceIndexForTextCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateGeofenceCollectionCommand.js +3 -3
- package/dist/cjs/commands/UpdateGeofenceCollectionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMapCommand.js +3 -3
- package/dist/cjs/commands/UpdateMapCommand.js.map +1 -1
- package/dist/cjs/commands/UpdatePlaceIndexCommand.js +3 -3
- package/dist/cjs/commands/UpdatePlaceIndexCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRouteCalculatorCommand.js +3 -3
- package/dist/cjs/commands/UpdateRouteCalculatorCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateTrackerCommand.js +3 -3
- package/dist/cjs/commands/UpdateTrackerCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +63 -63
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +322 -322
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/GetDevicePositionHistoryPaginator.js +4 -4
- package/dist/es/pagination/GetDevicePositionHistoryPaginator.js.map +1 -1
- package/dist/es/pagination/ListDevicePositionsPaginator.js +4 -4
- package/dist/es/pagination/ListDevicePositionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListGeofenceCollectionsPaginator.js +4 -4
- package/dist/es/pagination/ListGeofenceCollectionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListGeofencesPaginator.js +4 -4
- package/dist/es/pagination/ListGeofencesPaginator.js.map +1 -1
- package/dist/es/pagination/ListMapsPaginator.js +4 -4
- package/dist/es/pagination/ListMapsPaginator.js.map +1 -1
- package/dist/es/pagination/ListPlaceIndexesPaginator.js +4 -4
- package/dist/es/pagination/ListPlaceIndexesPaginator.js.map +1 -1
- package/dist/es/pagination/ListRouteCalculatorsPaginator.js +4 -4
- package/dist/es/pagination/ListRouteCalculatorsPaginator.js.map +1 -1
- package/dist/es/pagination/ListTrackerConsumersPaginator.js +4 -4
- package/dist/es/pagination/ListTrackerConsumersPaginator.js.map +1 -1
- package/dist/es/pagination/ListTrackersPaginator.js +4 -4
- package/dist/es/pagination/ListTrackersPaginator.js.map +1 -1
- package/package.json +31 -31
- package/tsconfig.json +1 -2
|
@@ -16,7 +16,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
|
|
|
16
16
|
if (labelValue.length <= 0) {
|
|
17
17
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
18
18
|
}
|
|
19
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
19
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -28,7 +28,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
|
|
|
28
28
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
29
29
|
if (context.disableHostPrefix !== true) {
|
|
30
30
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
31
|
-
if (!
|
|
31
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
32
32
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -55,7 +55,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
|
|
|
55
55
|
if (labelValue.length <= 0) {
|
|
56
56
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
57
57
|
}
|
|
58
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
58
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
59
59
|
}
|
|
60
60
|
else {
|
|
61
61
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -68,7 +68,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
|
|
|
68
68
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
69
69
|
if (context.disableHostPrefix !== true) {
|
|
70
70
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
71
|
-
if (!
|
|
71
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
72
72
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -95,7 +95,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
|
|
|
95
95
|
if (labelValue.length <= 0) {
|
|
96
96
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
97
97
|
}
|
|
98
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
98
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
101
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -108,7 +108,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
|
|
|
108
108
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
109
109
|
if (context.disableHostPrefix !== true) {
|
|
110
110
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
111
|
-
if (!
|
|
111
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
112
112
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -135,7 +135,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
|
|
|
135
135
|
if (labelValue.length <= 0) {
|
|
136
136
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
137
137
|
}
|
|
138
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
138
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
141
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -150,7 +150,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
|
|
|
150
150
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
151
151
|
if (context.disableHostPrefix !== true) {
|
|
152
152
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
153
|
-
if (!
|
|
153
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
154
154
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -177,7 +177,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
|
|
|
177
177
|
if (labelValue.length <= 0) {
|
|
178
178
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
179
179
|
}
|
|
180
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
180
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
181
181
|
}
|
|
182
182
|
else {
|
|
183
183
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -190,7 +190,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
|
|
|
190
190
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
191
191
|
if (context.disableHostPrefix !== true) {
|
|
192
192
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
193
|
-
if (!
|
|
193
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
194
194
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
@@ -217,7 +217,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
|
|
|
217
217
|
if (labelValue.length <= 0) {
|
|
218
218
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
219
219
|
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
220
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
223
223
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -232,7 +232,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
|
|
|
232
232
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
233
233
|
if (context.disableHostPrefix !== true) {
|
|
234
234
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
235
|
-
if (!
|
|
235
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
236
236
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -259,7 +259,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
|
|
|
259
259
|
if (labelValue.length <= 0) {
|
|
260
260
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
261
261
|
}
|
|
262
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
262
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
263
263
|
}
|
|
264
264
|
else {
|
|
265
265
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -272,7 +272,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
|
|
|
272
272
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
273
273
|
if (context.disableHostPrefix !== true) {
|
|
274
274
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
275
|
-
if (!
|
|
275
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
276
276
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -299,7 +299,7 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
|
|
|
299
299
|
if (labelValue.length <= 0) {
|
|
300
300
|
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
301
301
|
}
|
|
302
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}",
|
|
302
|
+
resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
305
305
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
@@ -337,7 +337,7 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
|
|
|
337
337
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
338
338
|
if (context.disableHostPrefix !== true) {
|
|
339
339
|
resolvedHostname = "routes." + resolvedHostname;
|
|
340
|
-
if (!
|
|
340
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
341
341
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -372,7 +372,7 @@ const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, cont
|
|
|
372
372
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
373
373
|
if (context.disableHostPrefix !== true) {
|
|
374
374
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
375
|
-
if (!
|
|
375
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
376
376
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -407,7 +407,7 @@ const serializeAws_restJson1CreateMapCommand = async (input, context) => {
|
|
|
407
407
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
408
408
|
if (context.disableHostPrefix !== true) {
|
|
409
409
|
resolvedHostname = "maps." + resolvedHostname;
|
|
410
|
-
if (!
|
|
410
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
411
411
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
412
412
|
}
|
|
413
413
|
}
|
|
@@ -443,7 +443,7 @@ const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) =>
|
|
|
443
443
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
444
444
|
if (context.disableHostPrefix !== true) {
|
|
445
445
|
resolvedHostname = "places." + resolvedHostname;
|
|
446
|
-
if (!
|
|
446
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
447
447
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
448
448
|
}
|
|
449
449
|
}
|
|
@@ -476,7 +476,7 @@ const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context
|
|
|
476
476
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
477
477
|
if (context.disableHostPrefix !== true) {
|
|
478
478
|
resolvedHostname = "routes." + resolvedHostname;
|
|
479
|
-
if (!
|
|
479
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
480
480
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
481
481
|
}
|
|
482
482
|
}
|
|
@@ -510,7 +510,7 @@ const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
|
|
|
510
510
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
511
511
|
if (context.disableHostPrefix !== true) {
|
|
512
512
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
513
|
-
if (!
|
|
513
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
514
514
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
515
515
|
}
|
|
516
516
|
}
|
|
@@ -535,7 +535,7 @@ const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, cont
|
|
|
535
535
|
if (labelValue.length <= 0) {
|
|
536
536
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
537
537
|
}
|
|
538
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
538
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
539
539
|
}
|
|
540
540
|
else {
|
|
541
541
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -544,7 +544,7 @@ const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, cont
|
|
|
544
544
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
545
545
|
if (context.disableHostPrefix !== true) {
|
|
546
546
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
547
|
-
if (!
|
|
547
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
548
548
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
549
549
|
}
|
|
550
550
|
}
|
|
@@ -568,7 +568,7 @@ const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
|
|
|
568
568
|
if (labelValue.length <= 0) {
|
|
569
569
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
570
570
|
}
|
|
571
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
571
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
572
572
|
}
|
|
573
573
|
else {
|
|
574
574
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -577,7 +577,7 @@ const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
|
|
|
577
577
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
578
578
|
if (context.disableHostPrefix !== true) {
|
|
579
579
|
resolvedHostname = "maps." + resolvedHostname;
|
|
580
|
-
if (!
|
|
580
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
581
581
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -601,7 +601,7 @@ const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) =>
|
|
|
601
601
|
if (labelValue.length <= 0) {
|
|
602
602
|
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
603
603
|
}
|
|
604
|
-
resolvedPath = resolvedPath.replace("{IndexName}",
|
|
604
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
605
605
|
}
|
|
606
606
|
else {
|
|
607
607
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
@@ -610,7 +610,7 @@ const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) =>
|
|
|
610
610
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
611
611
|
if (context.disableHostPrefix !== true) {
|
|
612
612
|
resolvedHostname = "places." + resolvedHostname;
|
|
613
|
-
if (!
|
|
613
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
614
614
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
615
615
|
}
|
|
616
616
|
}
|
|
@@ -634,7 +634,7 @@ const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context
|
|
|
634
634
|
if (labelValue.length <= 0) {
|
|
635
635
|
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
636
636
|
}
|
|
637
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}",
|
|
637
|
+
resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
638
638
|
}
|
|
639
639
|
else {
|
|
640
640
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
@@ -643,7 +643,7 @@ const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context
|
|
|
643
643
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
644
644
|
if (context.disableHostPrefix !== true) {
|
|
645
645
|
resolvedHostname = "routes." + resolvedHostname;
|
|
646
|
-
if (!
|
|
646
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
647
647
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
648
648
|
}
|
|
649
649
|
}
|
|
@@ -667,7 +667,7 @@ const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
|
|
|
667
667
|
if (labelValue.length <= 0) {
|
|
668
668
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
669
669
|
}
|
|
670
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
670
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
671
671
|
}
|
|
672
672
|
else {
|
|
673
673
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -676,7 +676,7 @@ const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
|
|
|
676
676
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
677
677
|
if (context.disableHostPrefix !== true) {
|
|
678
678
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
679
|
-
if (!
|
|
679
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
680
680
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
681
681
|
}
|
|
682
682
|
}
|
|
@@ -701,7 +701,7 @@ const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, co
|
|
|
701
701
|
if (labelValue.length <= 0) {
|
|
702
702
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
703
703
|
}
|
|
704
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
704
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
705
705
|
}
|
|
706
706
|
else {
|
|
707
707
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -710,7 +710,7 @@ const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, co
|
|
|
710
710
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
711
711
|
if (context.disableHostPrefix !== true) {
|
|
712
712
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
713
|
-
if (!
|
|
713
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
714
714
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
715
715
|
}
|
|
716
716
|
}
|
|
@@ -734,7 +734,7 @@ const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
|
|
|
734
734
|
if (labelValue.length <= 0) {
|
|
735
735
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
736
736
|
}
|
|
737
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
737
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
738
738
|
}
|
|
739
739
|
else {
|
|
740
740
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -743,7 +743,7 @@ const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
|
|
|
743
743
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
744
744
|
if (context.disableHostPrefix !== true) {
|
|
745
745
|
resolvedHostname = "maps." + resolvedHostname;
|
|
746
|
-
if (!
|
|
746
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
747
747
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
748
748
|
}
|
|
749
749
|
}
|
|
@@ -767,7 +767,7 @@ const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) =
|
|
|
767
767
|
if (labelValue.length <= 0) {
|
|
768
768
|
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
769
769
|
}
|
|
770
|
-
resolvedPath = resolvedPath.replace("{IndexName}",
|
|
770
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
771
771
|
}
|
|
772
772
|
else {
|
|
773
773
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
@@ -776,7 +776,7 @@ const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) =
|
|
|
776
776
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
777
777
|
if (context.disableHostPrefix !== true) {
|
|
778
778
|
resolvedHostname = "places." + resolvedHostname;
|
|
779
|
-
if (!
|
|
779
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
780
780
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
781
781
|
}
|
|
782
782
|
}
|
|
@@ -800,7 +800,7 @@ const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input, conte
|
|
|
800
800
|
if (labelValue.length <= 0) {
|
|
801
801
|
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
802
802
|
}
|
|
803
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}",
|
|
803
|
+
resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
804
804
|
}
|
|
805
805
|
else {
|
|
806
806
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
@@ -809,7 +809,7 @@ const serializeAws_restJson1DescribeRouteCalculatorCommand = async (input, conte
|
|
|
809
809
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
810
810
|
if (context.disableHostPrefix !== true) {
|
|
811
811
|
resolvedHostname = "routes." + resolvedHostname;
|
|
812
|
-
if (!
|
|
812
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
813
813
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -833,7 +833,7 @@ const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
|
|
|
833
833
|
if (labelValue.length <= 0) {
|
|
834
834
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
835
835
|
}
|
|
836
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
836
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
837
837
|
}
|
|
838
838
|
else {
|
|
839
839
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -842,7 +842,7 @@ const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
|
|
|
842
842
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
843
843
|
if (context.disableHostPrefix !== true) {
|
|
844
844
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
845
|
-
if (!
|
|
845
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
846
846
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
847
847
|
}
|
|
848
848
|
}
|
|
@@ -867,7 +867,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
|
|
|
867
867
|
if (labelValue.length <= 0) {
|
|
868
868
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
869
869
|
}
|
|
870
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
870
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
871
871
|
}
|
|
872
872
|
else {
|
|
873
873
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -877,7 +877,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
|
|
|
877
877
|
if (labelValue.length <= 0) {
|
|
878
878
|
throw new Error("Empty value provided for input HTTP label: ConsumerArn.");
|
|
879
879
|
}
|
|
880
|
-
resolvedPath = resolvedPath.replace("{ConsumerArn}",
|
|
880
|
+
resolvedPath = resolvedPath.replace("{ConsumerArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
881
881
|
}
|
|
882
882
|
else {
|
|
883
883
|
throw new Error("No value provided for input HTTP label: ConsumerArn.");
|
|
@@ -886,7 +886,7 @@ const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, c
|
|
|
886
886
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
887
887
|
if (context.disableHostPrefix !== true) {
|
|
888
888
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
889
|
-
if (!
|
|
889
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
890
890
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
891
891
|
}
|
|
892
892
|
}
|
|
@@ -911,7 +911,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
|
|
|
911
911
|
if (labelValue.length <= 0) {
|
|
912
912
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
913
913
|
}
|
|
914
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
914
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
915
915
|
}
|
|
916
916
|
else {
|
|
917
917
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -921,7 +921,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
|
|
|
921
921
|
if (labelValue.length <= 0) {
|
|
922
922
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
923
923
|
}
|
|
924
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
924
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
925
925
|
}
|
|
926
926
|
else {
|
|
927
927
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -930,7 +930,7 @@ const serializeAws_restJson1GetDevicePositionCommand = async (input, context) =>
|
|
|
930
930
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
931
931
|
if (context.disableHostPrefix !== true) {
|
|
932
932
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
933
|
-
if (!
|
|
933
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
934
934
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
935
935
|
}
|
|
936
936
|
}
|
|
@@ -957,7 +957,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
957
957
|
if (labelValue.length <= 0) {
|
|
958
958
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
959
959
|
}
|
|
960
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
960
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
961
961
|
}
|
|
962
962
|
else {
|
|
963
963
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -967,7 +967,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
967
967
|
if (labelValue.length <= 0) {
|
|
968
968
|
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
969
969
|
}
|
|
970
|
-
resolvedPath = resolvedPath.replace("{DeviceId}",
|
|
970
|
+
resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
971
971
|
}
|
|
972
972
|
else {
|
|
973
973
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
@@ -987,7 +987,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
987
987
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
988
988
|
if (context.disableHostPrefix !== true) {
|
|
989
989
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
990
|
-
if (!
|
|
990
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
991
991
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
992
992
|
}
|
|
993
993
|
}
|
|
@@ -1012,7 +1012,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
|
|
|
1012
1012
|
if (labelValue.length <= 0) {
|
|
1013
1013
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1014
1014
|
}
|
|
1015
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
1015
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1016
1016
|
}
|
|
1017
1017
|
else {
|
|
1018
1018
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -1022,7 +1022,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
|
|
|
1022
1022
|
if (labelValue.length <= 0) {
|
|
1023
1023
|
throw new Error("Empty value provided for input HTTP label: GeofenceId.");
|
|
1024
1024
|
}
|
|
1025
|
-
resolvedPath = resolvedPath.replace("{GeofenceId}",
|
|
1025
|
+
resolvedPath = resolvedPath.replace("{GeofenceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1026
1026
|
}
|
|
1027
1027
|
else {
|
|
1028
1028
|
throw new Error("No value provided for input HTTP label: GeofenceId.");
|
|
@@ -1031,7 +1031,7 @@ const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
|
|
|
1031
1031
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1032
1032
|
if (context.disableHostPrefix !== true) {
|
|
1033
1033
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1034
|
-
if (!
|
|
1034
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1035
1035
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
@@ -1056,7 +1056,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
|
|
|
1056
1056
|
if (labelValue.length <= 0) {
|
|
1057
1057
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1058
1058
|
}
|
|
1059
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
1059
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1060
1060
|
}
|
|
1061
1061
|
else {
|
|
1062
1062
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -1066,7 +1066,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
|
|
|
1066
1066
|
if (labelValue.length <= 0) {
|
|
1067
1067
|
throw new Error("Empty value provided for input HTTP label: FontStack.");
|
|
1068
1068
|
}
|
|
1069
|
-
resolvedPath = resolvedPath.replace("{FontStack}",
|
|
1069
|
+
resolvedPath = resolvedPath.replace("{FontStack}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1070
1070
|
}
|
|
1071
1071
|
else {
|
|
1072
1072
|
throw new Error("No value provided for input HTTP label: FontStack.");
|
|
@@ -1076,7 +1076,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
|
|
|
1076
1076
|
if (labelValue.length <= 0) {
|
|
1077
1077
|
throw new Error("Empty value provided for input HTTP label: FontUnicodeRange.");
|
|
1078
1078
|
}
|
|
1079
|
-
resolvedPath = resolvedPath.replace("{FontUnicodeRange}",
|
|
1079
|
+
resolvedPath = resolvedPath.replace("{FontUnicodeRange}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1080
1080
|
}
|
|
1081
1081
|
else {
|
|
1082
1082
|
throw new Error("No value provided for input HTTP label: FontUnicodeRange.");
|
|
@@ -1085,7 +1085,7 @@ const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
|
|
|
1085
1085
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1086
1086
|
if (context.disableHostPrefix !== true) {
|
|
1087
1087
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1088
|
-
if (!
|
|
1088
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1089
1089
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
@@ -1110,7 +1110,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
|
|
|
1110
1110
|
if (labelValue.length <= 0) {
|
|
1111
1111
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1112
1112
|
}
|
|
1113
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
1113
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1114
1114
|
}
|
|
1115
1115
|
else {
|
|
1116
1116
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -1120,7 +1120,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
|
|
|
1120
1120
|
if (labelValue.length <= 0) {
|
|
1121
1121
|
throw new Error("Empty value provided for input HTTP label: FileName.");
|
|
1122
1122
|
}
|
|
1123
|
-
resolvedPath = resolvedPath.replace("{FileName}",
|
|
1123
|
+
resolvedPath = resolvedPath.replace("{FileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1124
1124
|
}
|
|
1125
1125
|
else {
|
|
1126
1126
|
throw new Error("No value provided for input HTTP label: FileName.");
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
|
|
|
1129
1129
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1130
1130
|
if (context.disableHostPrefix !== true) {
|
|
1131
1131
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1132
|
-
if (!
|
|
1132
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1133
1133
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
@@ -1153,7 +1153,7 @@ const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context
|
|
|
1153
1153
|
if (labelValue.length <= 0) {
|
|
1154
1154
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1155
1155
|
}
|
|
1156
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
1156
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1157
1157
|
}
|
|
1158
1158
|
else {
|
|
1159
1159
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -1162,7 +1162,7 @@ const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context
|
|
|
1162
1162
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1163
1163
|
if (context.disableHostPrefix !== true) {
|
|
1164
1164
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1165
|
-
if (!
|
|
1165
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1166
1166
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
@@ -1186,7 +1186,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
|
1186
1186
|
if (labelValue.length <= 0) {
|
|
1187
1187
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1188
1188
|
}
|
|
1189
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
1189
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1190
1190
|
}
|
|
1191
1191
|
else {
|
|
1192
1192
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -1196,7 +1196,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
|
1196
1196
|
if (labelValue.length <= 0) {
|
|
1197
1197
|
throw new Error("Empty value provided for input HTTP label: Z.");
|
|
1198
1198
|
}
|
|
1199
|
-
resolvedPath = resolvedPath.replace("{Z}",
|
|
1199
|
+
resolvedPath = resolvedPath.replace("{Z}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1200
1200
|
}
|
|
1201
1201
|
else {
|
|
1202
1202
|
throw new Error("No value provided for input HTTP label: Z.");
|
|
@@ -1206,7 +1206,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
|
1206
1206
|
if (labelValue.length <= 0) {
|
|
1207
1207
|
throw new Error("Empty value provided for input HTTP label: X.");
|
|
1208
1208
|
}
|
|
1209
|
-
resolvedPath = resolvedPath.replace("{X}",
|
|
1209
|
+
resolvedPath = resolvedPath.replace("{X}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1210
1210
|
}
|
|
1211
1211
|
else {
|
|
1212
1212
|
throw new Error("No value provided for input HTTP label: X.");
|
|
@@ -1216,7 +1216,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
|
1216
1216
|
if (labelValue.length <= 0) {
|
|
1217
1217
|
throw new Error("Empty value provided for input HTTP label: Y.");
|
|
1218
1218
|
}
|
|
1219
|
-
resolvedPath = resolvedPath.replace("{Y}",
|
|
1219
|
+
resolvedPath = resolvedPath.replace("{Y}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1220
1220
|
}
|
|
1221
1221
|
else {
|
|
1222
1222
|
throw new Error("No value provided for input HTTP label: Y.");
|
|
@@ -1225,7 +1225,7 @@ const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
|
1225
1225
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1226
1226
|
if (context.disableHostPrefix !== true) {
|
|
1227
1227
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1228
|
-
if (!
|
|
1228
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1229
1229
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
@@ -1252,7 +1252,7 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
|
|
|
1252
1252
|
if (labelValue.length <= 0) {
|
|
1253
1253
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1254
1254
|
}
|
|
1255
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
1255
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1256
1256
|
}
|
|
1257
1257
|
else {
|
|
1258
1258
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -1265,7 +1265,7 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
|
|
|
1265
1265
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1266
1266
|
if (context.disableHostPrefix !== true) {
|
|
1267
1267
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
1268
|
-
if (!
|
|
1268
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1269
1269
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
@@ -1294,7 +1294,7 @@ const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, conte
|
|
|
1294
1294
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1295
1295
|
if (context.disableHostPrefix !== true) {
|
|
1296
1296
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1297
|
-
if (!
|
|
1297
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1298
1298
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
@@ -1321,7 +1321,7 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
|
|
|
1321
1321
|
if (labelValue.length <= 0) {
|
|
1322
1322
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1323
1323
|
}
|
|
1324
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
1324
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1325
1325
|
}
|
|
1326
1326
|
else {
|
|
1327
1327
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -1333,7 +1333,7 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
|
|
|
1333
1333
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1334
1334
|
if (context.disableHostPrefix !== true) {
|
|
1335
1335
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1336
|
-
if (!
|
|
1336
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1337
1337
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
@@ -1362,7 +1362,7 @@ const serializeAws_restJson1ListMapsCommand = async (input, context) => {
|
|
|
1362
1362
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1363
1363
|
if (context.disableHostPrefix !== true) {
|
|
1364
1364
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1365
|
-
if (!
|
|
1365
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1366
1366
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1391,7 +1391,7 @@ const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) =>
|
|
|
1391
1391
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1392
1392
|
if (context.disableHostPrefix !== true) {
|
|
1393
1393
|
resolvedHostname = "places." + resolvedHostname;
|
|
1394
|
-
if (!
|
|
1394
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1395
1395
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
@@ -1420,7 +1420,7 @@ const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context)
|
|
|
1420
1420
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1421
1421
|
if (context.disableHostPrefix !== true) {
|
|
1422
1422
|
resolvedHostname = "routes." + resolvedHostname;
|
|
1423
|
-
if (!
|
|
1423
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1424
1424
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
@@ -1444,7 +1444,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1444
1444
|
if (labelValue.length <= 0) {
|
|
1445
1445
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1446
1446
|
}
|
|
1447
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
1447
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1448
1448
|
}
|
|
1449
1449
|
else {
|
|
1450
1450
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -1453,7 +1453,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1453
1453
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1454
1454
|
if (context.disableHostPrefix !== true) {
|
|
1455
1455
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
1456
|
-
if (!
|
|
1456
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1457
1457
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
@@ -1480,7 +1480,7 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
|
|
|
1480
1480
|
if (labelValue.length <= 0) {
|
|
1481
1481
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1482
1482
|
}
|
|
1483
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
1483
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1484
1484
|
}
|
|
1485
1485
|
else {
|
|
1486
1486
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -1493,7 +1493,7 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
|
|
|
1493
1493
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1494
1494
|
if (context.disableHostPrefix !== true) {
|
|
1495
1495
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
1496
|
-
if (!
|
|
1496
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1497
1497
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
@@ -1522,7 +1522,7 @@ const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
|
|
|
1522
1522
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1523
1523
|
if (context.disableHostPrefix !== true) {
|
|
1524
1524
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
1525
|
-
if (!
|
|
1525
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1526
1526
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
@@ -1549,7 +1549,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1549
1549
|
if (labelValue.length <= 0) {
|
|
1550
1550
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1551
1551
|
}
|
|
1552
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
1552
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1553
1553
|
}
|
|
1554
1554
|
else {
|
|
1555
1555
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -1559,7 +1559,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1559
1559
|
if (labelValue.length <= 0) {
|
|
1560
1560
|
throw new Error("Empty value provided for input HTTP label: GeofenceId.");
|
|
1561
1561
|
}
|
|
1562
|
-
resolvedPath = resolvedPath.replace("{GeofenceId}",
|
|
1562
|
+
resolvedPath = resolvedPath.replace("{GeofenceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1563
1563
|
}
|
|
1564
1564
|
else {
|
|
1565
1565
|
throw new Error("No value provided for input HTTP label: GeofenceId.");
|
|
@@ -1572,7 +1572,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1572
1572
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1573
1573
|
if (context.disableHostPrefix !== true) {
|
|
1574
1574
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1575
|
-
if (!
|
|
1575
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1576
1576
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
@@ -1599,7 +1599,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1599
1599
|
if (labelValue.length <= 0) {
|
|
1600
1600
|
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1601
1601
|
}
|
|
1602
|
-
resolvedPath = resolvedPath.replace("{IndexName}",
|
|
1602
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1603
1603
|
}
|
|
1604
1604
|
else {
|
|
1605
1605
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
@@ -1613,7 +1613,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1613
1613
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1614
1614
|
if (context.disableHostPrefix !== true) {
|
|
1615
1615
|
resolvedHostname = "places." + resolvedHostname;
|
|
1616
|
-
if (!
|
|
1616
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1617
1617
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
@@ -1640,7 +1640,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1640
1640
|
if (labelValue.length <= 0) {
|
|
1641
1641
|
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1642
1642
|
}
|
|
1643
|
-
resolvedPath = resolvedPath.replace("{IndexName}",
|
|
1643
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1644
1644
|
}
|
|
1645
1645
|
else {
|
|
1646
1646
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
@@ -1661,7 +1661,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1661
1661
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1662
1662
|
if (context.disableHostPrefix !== true) {
|
|
1663
1663
|
resolvedHostname = "places." + resolvedHostname;
|
|
1664
|
-
if (!
|
|
1664
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1665
1665
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
@@ -1687,7 +1687,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1687
1687
|
if (labelValue.length <= 0) {
|
|
1688
1688
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1689
1689
|
}
|
|
1690
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
1690
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1691
1691
|
}
|
|
1692
1692
|
else {
|
|
1693
1693
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -1699,7 +1699,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1699
1699
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1700
1700
|
if (context.disableHostPrefix !== true) {
|
|
1701
1701
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
1702
|
-
if (!
|
|
1702
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1703
1703
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
@@ -1723,7 +1723,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1723
1723
|
if (labelValue.length <= 0) {
|
|
1724
1724
|
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1725
1725
|
}
|
|
1726
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}",
|
|
1726
|
+
resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1727
1727
|
}
|
|
1728
1728
|
else {
|
|
1729
1729
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
@@ -1735,7 +1735,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1735
1735
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1736
1736
|
if (context.disableHostPrefix !== true) {
|
|
1737
1737
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
1738
|
-
if (!
|
|
1738
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1739
1739
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
@@ -1763,7 +1763,7 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
|
|
|
1763
1763
|
if (labelValue.length <= 0) {
|
|
1764
1764
|
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1765
1765
|
}
|
|
1766
|
-
resolvedPath = resolvedPath.replace("{CollectionName}",
|
|
1766
|
+
resolvedPath = resolvedPath.replace("{CollectionName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1767
1767
|
}
|
|
1768
1768
|
else {
|
|
1769
1769
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
@@ -1778,7 +1778,7 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
|
|
|
1778
1778
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1779
1779
|
if (context.disableHostPrefix !== true) {
|
|
1780
1780
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
1781
|
-
if (!
|
|
1781
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1782
1782
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
@@ -1804,7 +1804,7 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
|
|
|
1804
1804
|
if (labelValue.length <= 0) {
|
|
1805
1805
|
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1806
1806
|
}
|
|
1807
|
-
resolvedPath = resolvedPath.replace("{MapName}",
|
|
1807
|
+
resolvedPath = resolvedPath.replace("{MapName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1808
1808
|
}
|
|
1809
1809
|
else {
|
|
1810
1810
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
@@ -1817,7 +1817,7 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
|
|
|
1817
1817
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1818
1818
|
if (context.disableHostPrefix !== true) {
|
|
1819
1819
|
resolvedHostname = "maps." + resolvedHostname;
|
|
1820
|
-
if (!
|
|
1820
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1821
1821
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
@@ -1843,7 +1843,7 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
|
|
|
1843
1843
|
if (labelValue.length <= 0) {
|
|
1844
1844
|
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1845
1845
|
}
|
|
1846
|
-
resolvedPath = resolvedPath.replace("{IndexName}",
|
|
1846
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1847
1847
|
}
|
|
1848
1848
|
else {
|
|
1849
1849
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
@@ -1860,7 +1860,7 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
|
|
|
1860
1860
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1861
1861
|
if (context.disableHostPrefix !== true) {
|
|
1862
1862
|
resolvedHostname = "places." + resolvedHostname;
|
|
1863
|
-
if (!
|
|
1863
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1864
1864
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1865
1865
|
}
|
|
1866
1866
|
}
|
|
@@ -1886,7 +1886,7 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
|
|
|
1886
1886
|
if (labelValue.length <= 0) {
|
|
1887
1887
|
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
1888
1888
|
}
|
|
1889
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}",
|
|
1889
|
+
resolvedPath = resolvedPath.replace("{CalculatorName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1890
1890
|
}
|
|
1891
1891
|
else {
|
|
1892
1892
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
@@ -1899,7 +1899,7 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
|
|
|
1899
1899
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1900
1900
|
if (context.disableHostPrefix !== true) {
|
|
1901
1901
|
resolvedHostname = "routes." + resolvedHostname;
|
|
1902
|
-
if (!
|
|
1902
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1903
1903
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1904
1904
|
}
|
|
1905
1905
|
}
|
|
@@ -1925,7 +1925,7 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
|
|
|
1925
1925
|
if (labelValue.length <= 0) {
|
|
1926
1926
|
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1927
1927
|
}
|
|
1928
|
-
resolvedPath = resolvedPath.replace("{TrackerName}",
|
|
1928
|
+
resolvedPath = resolvedPath.replace("{TrackerName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1929
1929
|
}
|
|
1930
1930
|
else {
|
|
1931
1931
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
@@ -1940,7 +1940,7 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
|
|
|
1940
1940
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1941
1941
|
if (context.disableHostPrefix !== true) {
|
|
1942
1942
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
1943
|
-
if (!
|
|
1943
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1944
1944
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
@@ -2055,7 +2055,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (o
|
|
|
2055
2055
|
$metadata: deserializeMetadata(output),
|
|
2056
2056
|
Errors: undefined,
|
|
2057
2057
|
};
|
|
2058
|
-
const data =
|
|
2058
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2059
2059
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2060
2060
|
contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
|
|
2061
2061
|
}
|
|
@@ -2135,7 +2135,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, contex
|
|
|
2135
2135
|
$metadata: deserializeMetadata(output),
|
|
2136
2136
|
Errors: undefined,
|
|
2137
2137
|
};
|
|
2138
|
-
const data =
|
|
2138
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2139
2139
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2140
2140
|
contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
|
|
2141
2141
|
}
|
|
@@ -2215,7 +2215,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, con
|
|
|
2215
2215
|
$metadata: deserializeMetadata(output),
|
|
2216
2216
|
Errors: undefined,
|
|
2217
2217
|
};
|
|
2218
|
-
const data =
|
|
2218
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2219
2219
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2220
2220
|
contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
|
|
2221
2221
|
}
|
|
@@ -2296,7 +2296,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, con
|
|
|
2296
2296
|
DevicePositions: undefined,
|
|
2297
2297
|
Errors: undefined,
|
|
2298
2298
|
};
|
|
2299
|
-
const data =
|
|
2299
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2300
2300
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
2301
2301
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
2302
2302
|
}
|
|
@@ -2380,7 +2380,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context)
|
|
|
2380
2380
|
Errors: undefined,
|
|
2381
2381
|
Successes: undefined,
|
|
2382
2382
|
};
|
|
2383
|
-
const data =
|
|
2383
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2384
2384
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2385
2385
|
contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
|
|
2386
2386
|
}
|
|
@@ -2463,7 +2463,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output,
|
|
|
2463
2463
|
$metadata: deserializeMetadata(output),
|
|
2464
2464
|
Errors: undefined,
|
|
2465
2465
|
};
|
|
2466
|
-
const data =
|
|
2466
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2467
2467
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2468
2468
|
contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
|
|
2469
2469
|
}
|
|
@@ -2544,7 +2544,7 @@ const deserializeAws_restJson1CalculateRouteCommand = async (output, context) =>
|
|
|
2544
2544
|
Legs: undefined,
|
|
2545
2545
|
Summary: undefined,
|
|
2546
2546
|
};
|
|
2547
|
-
const data =
|
|
2547
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2548
2548
|
if (data.Legs !== undefined && data.Legs !== null) {
|
|
2549
2549
|
contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
|
|
2550
2550
|
}
|
|
@@ -2629,15 +2629,15 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, c
|
|
|
2629
2629
|
CollectionName: undefined,
|
|
2630
2630
|
CreateTime: undefined,
|
|
2631
2631
|
};
|
|
2632
|
-
const data =
|
|
2632
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2633
2633
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
2634
|
-
contents.CollectionArn =
|
|
2634
|
+
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
2635
2635
|
}
|
|
2636
2636
|
if (data.CollectionName !== undefined && data.CollectionName !== null) {
|
|
2637
|
-
contents.CollectionName =
|
|
2637
|
+
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
2638
2638
|
}
|
|
2639
2639
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2640
|
-
contents.CreateTime =
|
|
2640
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2641
2641
|
}
|
|
2642
2642
|
return Promise.resolve(contents);
|
|
2643
2643
|
};
|
|
@@ -2717,15 +2717,15 @@ const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
|
|
|
2717
2717
|
MapArn: undefined,
|
|
2718
2718
|
MapName: undefined,
|
|
2719
2719
|
};
|
|
2720
|
-
const data =
|
|
2720
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2721
2721
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2722
|
-
contents.CreateTime =
|
|
2722
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2723
2723
|
}
|
|
2724
2724
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
2725
|
-
contents.MapArn =
|
|
2725
|
+
contents.MapArn = smithy_client_1.expectString(data.MapArn);
|
|
2726
2726
|
}
|
|
2727
2727
|
if (data.MapName !== undefined && data.MapName !== null) {
|
|
2728
|
-
contents.MapName =
|
|
2728
|
+
contents.MapName = smithy_client_1.expectString(data.MapName);
|
|
2729
2729
|
}
|
|
2730
2730
|
return Promise.resolve(contents);
|
|
2731
2731
|
};
|
|
@@ -2805,15 +2805,15 @@ const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context)
|
|
|
2805
2805
|
IndexArn: undefined,
|
|
2806
2806
|
IndexName: undefined,
|
|
2807
2807
|
};
|
|
2808
|
-
const data =
|
|
2808
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2809
2809
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2810
|
-
contents.CreateTime =
|
|
2810
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2811
2811
|
}
|
|
2812
2812
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
2813
|
-
contents.IndexArn =
|
|
2813
|
+
contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
|
|
2814
2814
|
}
|
|
2815
2815
|
if (data.IndexName !== undefined && data.IndexName !== null) {
|
|
2816
|
-
contents.IndexName =
|
|
2816
|
+
contents.IndexName = smithy_client_1.expectString(data.IndexName);
|
|
2817
2817
|
}
|
|
2818
2818
|
return Promise.resolve(contents);
|
|
2819
2819
|
};
|
|
@@ -2893,15 +2893,15 @@ const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, cont
|
|
|
2893
2893
|
CalculatorName: undefined,
|
|
2894
2894
|
CreateTime: undefined,
|
|
2895
2895
|
};
|
|
2896
|
-
const data =
|
|
2896
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2897
2897
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
2898
|
-
contents.CalculatorArn =
|
|
2898
|
+
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
2899
2899
|
}
|
|
2900
2900
|
if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
|
|
2901
|
-
contents.CalculatorName =
|
|
2901
|
+
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
2902
2902
|
}
|
|
2903
2903
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2904
|
-
contents.CreateTime =
|
|
2904
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2905
2905
|
}
|
|
2906
2906
|
return Promise.resolve(contents);
|
|
2907
2907
|
};
|
|
@@ -2981,15 +2981,15 @@ const deserializeAws_restJson1CreateTrackerCommand = async (output, context) =>
|
|
|
2981
2981
|
TrackerArn: undefined,
|
|
2982
2982
|
TrackerName: undefined,
|
|
2983
2983
|
};
|
|
2984
|
-
const data =
|
|
2984
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2985
2985
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2986
|
-
contents.CreateTime =
|
|
2986
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2987
2987
|
}
|
|
2988
2988
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
2989
|
-
contents.TrackerArn =
|
|
2989
|
+
contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
|
|
2990
2990
|
}
|
|
2991
2991
|
if (data.TrackerName !== undefined && data.TrackerName !== null) {
|
|
2992
|
-
contents.TrackerName =
|
|
2992
|
+
contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
|
|
2993
2993
|
}
|
|
2994
2994
|
return Promise.resolve(contents);
|
|
2995
2995
|
};
|
|
@@ -3455,33 +3455,33 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output,
|
|
|
3455
3455
|
Tags: undefined,
|
|
3456
3456
|
UpdateTime: undefined,
|
|
3457
3457
|
};
|
|
3458
|
-
const data =
|
|
3458
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3459
3459
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
3460
|
-
contents.CollectionArn =
|
|
3460
|
+
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
3461
3461
|
}
|
|
3462
3462
|
if (data.CollectionName !== undefined && data.CollectionName !== null) {
|
|
3463
|
-
contents.CollectionName =
|
|
3463
|
+
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
3464
3464
|
}
|
|
3465
3465
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3466
|
-
contents.CreateTime =
|
|
3466
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3467
3467
|
}
|
|
3468
3468
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3469
|
-
contents.Description =
|
|
3469
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3470
3470
|
}
|
|
3471
3471
|
if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
|
|
3472
|
-
contents.KmsKeyId =
|
|
3472
|
+
contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
|
|
3473
3473
|
}
|
|
3474
3474
|
if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
|
|
3475
|
-
contents.PricingPlan =
|
|
3475
|
+
contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
|
|
3476
3476
|
}
|
|
3477
3477
|
if (data.PricingPlanDataSource !== undefined && data.PricingPlanDataSource !== null) {
|
|
3478
|
-
contents.PricingPlanDataSource =
|
|
3478
|
+
contents.PricingPlanDataSource = smithy_client_1.expectString(data.PricingPlanDataSource);
|
|
3479
3479
|
}
|
|
3480
3480
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3481
3481
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3482
3482
|
}
|
|
3483
3483
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3484
|
-
contents.UpdateTime =
|
|
3484
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3485
3485
|
}
|
|
3486
3486
|
return Promise.resolve(contents);
|
|
3487
3487
|
};
|
|
@@ -3567,33 +3567,33 @@ const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
|
|
|
3567
3567
|
Tags: undefined,
|
|
3568
3568
|
UpdateTime: undefined,
|
|
3569
3569
|
};
|
|
3570
|
-
const data =
|
|
3570
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3571
3571
|
if (data.Configuration !== undefined && data.Configuration !== null) {
|
|
3572
3572
|
contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
|
|
3573
3573
|
}
|
|
3574
3574
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3575
|
-
contents.CreateTime =
|
|
3575
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3576
3576
|
}
|
|
3577
3577
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3578
|
-
contents.DataSource =
|
|
3578
|
+
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
3579
3579
|
}
|
|
3580
3580
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3581
|
-
contents.Description =
|
|
3581
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3582
3582
|
}
|
|
3583
3583
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
3584
|
-
contents.MapArn =
|
|
3584
|
+
contents.MapArn = smithy_client_1.expectString(data.MapArn);
|
|
3585
3585
|
}
|
|
3586
3586
|
if (data.MapName !== undefined && data.MapName !== null) {
|
|
3587
|
-
contents.MapName =
|
|
3587
|
+
contents.MapName = smithy_client_1.expectString(data.MapName);
|
|
3588
3588
|
}
|
|
3589
3589
|
if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
|
|
3590
|
-
contents.PricingPlan =
|
|
3590
|
+
contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
|
|
3591
3591
|
}
|
|
3592
3592
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3593
3593
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3594
3594
|
}
|
|
3595
3595
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3596
|
-
contents.UpdateTime =
|
|
3596
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3597
3597
|
}
|
|
3598
3598
|
return Promise.resolve(contents);
|
|
3599
3599
|
};
|
|
@@ -3679,33 +3679,33 @@ const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context
|
|
|
3679
3679
|
Tags: undefined,
|
|
3680
3680
|
UpdateTime: undefined,
|
|
3681
3681
|
};
|
|
3682
|
-
const data =
|
|
3682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3683
3683
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3684
|
-
contents.CreateTime =
|
|
3684
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3685
3685
|
}
|
|
3686
3686
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3687
|
-
contents.DataSource =
|
|
3687
|
+
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
3688
3688
|
}
|
|
3689
3689
|
if (data.DataSourceConfiguration !== undefined && data.DataSourceConfiguration !== null) {
|
|
3690
3690
|
contents.DataSourceConfiguration = deserializeAws_restJson1DataSourceConfiguration(data.DataSourceConfiguration, context);
|
|
3691
3691
|
}
|
|
3692
3692
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3693
|
-
contents.Description =
|
|
3693
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3694
3694
|
}
|
|
3695
3695
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
3696
|
-
contents.IndexArn =
|
|
3696
|
+
contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
|
|
3697
3697
|
}
|
|
3698
3698
|
if (data.IndexName !== undefined && data.IndexName !== null) {
|
|
3699
|
-
contents.IndexName =
|
|
3699
|
+
contents.IndexName = smithy_client_1.expectString(data.IndexName);
|
|
3700
3700
|
}
|
|
3701
3701
|
if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
|
|
3702
|
-
contents.PricingPlan =
|
|
3702
|
+
contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
|
|
3703
3703
|
}
|
|
3704
3704
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3705
3705
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3706
3706
|
}
|
|
3707
3707
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3708
|
-
contents.UpdateTime =
|
|
3708
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3709
3709
|
}
|
|
3710
3710
|
return Promise.resolve(contents);
|
|
3711
3711
|
};
|
|
@@ -3790,30 +3790,30 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, co
|
|
|
3790
3790
|
Tags: undefined,
|
|
3791
3791
|
UpdateTime: undefined,
|
|
3792
3792
|
};
|
|
3793
|
-
const data =
|
|
3793
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3794
3794
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
3795
|
-
contents.CalculatorArn =
|
|
3795
|
+
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
3796
3796
|
}
|
|
3797
3797
|
if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
|
|
3798
|
-
contents.CalculatorName =
|
|
3798
|
+
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
3799
3799
|
}
|
|
3800
3800
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3801
|
-
contents.CreateTime =
|
|
3801
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3802
3802
|
}
|
|
3803
3803
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3804
|
-
contents.DataSource =
|
|
3804
|
+
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
3805
3805
|
}
|
|
3806
3806
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3807
|
-
contents.Description =
|
|
3807
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3808
3808
|
}
|
|
3809
3809
|
if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
|
|
3810
|
-
contents.PricingPlan =
|
|
3810
|
+
contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
|
|
3811
3811
|
}
|
|
3812
3812
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3813
3813
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3814
3814
|
}
|
|
3815
3815
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3816
|
-
contents.UpdateTime =
|
|
3816
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3817
3817
|
}
|
|
3818
3818
|
return Promise.resolve(contents);
|
|
3819
3819
|
};
|
|
@@ -3899,33 +3899,33 @@ const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) =
|
|
|
3899
3899
|
TrackerName: undefined,
|
|
3900
3900
|
UpdateTime: undefined,
|
|
3901
3901
|
};
|
|
3902
|
-
const data =
|
|
3902
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3903
3903
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3904
|
-
contents.CreateTime =
|
|
3904
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3905
3905
|
}
|
|
3906
3906
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3907
|
-
contents.Description =
|
|
3907
|
+
contents.Description = smithy_client_1.expectString(data.Description);
|
|
3908
3908
|
}
|
|
3909
3909
|
if (data.KmsKeyId !== undefined && data.KmsKeyId !== null) {
|
|
3910
|
-
contents.KmsKeyId =
|
|
3910
|
+
contents.KmsKeyId = smithy_client_1.expectString(data.KmsKeyId);
|
|
3911
3911
|
}
|
|
3912
3912
|
if (data.PricingPlan !== undefined && data.PricingPlan !== null) {
|
|
3913
|
-
contents.PricingPlan =
|
|
3913
|
+
contents.PricingPlan = smithy_client_1.expectString(data.PricingPlan);
|
|
3914
3914
|
}
|
|
3915
3915
|
if (data.PricingPlanDataSource !== undefined && data.PricingPlanDataSource !== null) {
|
|
3916
|
-
contents.PricingPlanDataSource =
|
|
3916
|
+
contents.PricingPlanDataSource = smithy_client_1.expectString(data.PricingPlanDataSource);
|
|
3917
3917
|
}
|
|
3918
3918
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
3919
3919
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3920
3920
|
}
|
|
3921
3921
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
3922
|
-
contents.TrackerArn =
|
|
3922
|
+
contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
|
|
3923
3923
|
}
|
|
3924
3924
|
if (data.TrackerName !== undefined && data.TrackerName !== null) {
|
|
3925
|
-
contents.TrackerName =
|
|
3925
|
+
contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
|
|
3926
3926
|
}
|
|
3927
3927
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3928
|
-
contents.UpdateTime =
|
|
3928
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3929
3929
|
}
|
|
3930
3930
|
return Promise.resolve(contents);
|
|
3931
3931
|
};
|
|
@@ -4082,18 +4082,18 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
|
|
|
4082
4082
|
ReceivedTime: undefined,
|
|
4083
4083
|
SampleTime: undefined,
|
|
4084
4084
|
};
|
|
4085
|
-
const data =
|
|
4085
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4086
4086
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
4087
|
-
contents.DeviceId =
|
|
4087
|
+
contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
|
|
4088
4088
|
}
|
|
4089
4089
|
if (data.Position !== undefined && data.Position !== null) {
|
|
4090
4090
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4091
4091
|
}
|
|
4092
4092
|
if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
|
|
4093
|
-
contents.ReceivedTime =
|
|
4093
|
+
contents.ReceivedTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.ReceivedTime));
|
|
4094
4094
|
}
|
|
4095
4095
|
if (data.SampleTime !== undefined && data.SampleTime !== null) {
|
|
4096
|
-
contents.SampleTime =
|
|
4096
|
+
contents.SampleTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.SampleTime));
|
|
4097
4097
|
}
|
|
4098
4098
|
return Promise.resolve(contents);
|
|
4099
4099
|
};
|
|
@@ -4172,12 +4172,12 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, c
|
|
|
4172
4172
|
DevicePositions: undefined,
|
|
4173
4173
|
NextToken: undefined,
|
|
4174
4174
|
};
|
|
4175
|
-
const data =
|
|
4175
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4176
4176
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
4177
4177
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
4178
4178
|
}
|
|
4179
4179
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
4180
|
-
contents.NextToken =
|
|
4180
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
4181
4181
|
}
|
|
4182
4182
|
return Promise.resolve(contents);
|
|
4183
4183
|
};
|
|
@@ -4259,21 +4259,21 @@ const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
|
|
|
4259
4259
|
Status: undefined,
|
|
4260
4260
|
UpdateTime: undefined,
|
|
4261
4261
|
};
|
|
4262
|
-
const data =
|
|
4262
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4263
4263
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4264
|
-
contents.CreateTime =
|
|
4264
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
4265
4265
|
}
|
|
4266
4266
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
4267
|
-
contents.GeofenceId =
|
|
4267
|
+
contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
|
|
4268
4268
|
}
|
|
4269
4269
|
if (data.Geometry !== undefined && data.Geometry !== null) {
|
|
4270
4270
|
contents.Geometry = deserializeAws_restJson1GeofenceGeometry(data.Geometry, context);
|
|
4271
4271
|
}
|
|
4272
4272
|
if (data.Status !== undefined && data.Status !== null) {
|
|
4273
|
-
contents.Status =
|
|
4273
|
+
contents.Status = smithy_client_1.expectString(data.Status);
|
|
4274
4274
|
}
|
|
4275
4275
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4276
|
-
contents.UpdateTime =
|
|
4276
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
4277
4277
|
}
|
|
4278
4278
|
return Promise.resolve(contents);
|
|
4279
4279
|
};
|
|
@@ -4680,12 +4680,12 @@ const deserializeAws_restJson1ListDevicePositionsCommand = async (output, contex
|
|
|
4680
4680
|
Entries: undefined,
|
|
4681
4681
|
NextToken: undefined,
|
|
4682
4682
|
};
|
|
4683
|
-
const data =
|
|
4683
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4684
4684
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4685
4685
|
contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
|
|
4686
4686
|
}
|
|
4687
4687
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
4688
|
-
contents.NextToken =
|
|
4688
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
4689
4689
|
}
|
|
4690
4690
|
return Promise.resolve(contents);
|
|
4691
4691
|
};
|
|
@@ -4756,12 +4756,12 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, co
|
|
|
4756
4756
|
Entries: undefined,
|
|
4757
4757
|
NextToken: undefined,
|
|
4758
4758
|
};
|
|
4759
|
-
const data =
|
|
4759
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4760
4760
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4761
4761
|
contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
|
|
4762
4762
|
}
|
|
4763
4763
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
4764
|
-
contents.NextToken =
|
|
4764
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
4765
4765
|
}
|
|
4766
4766
|
return Promise.resolve(contents);
|
|
4767
4767
|
};
|
|
@@ -4832,12 +4832,12 @@ const deserializeAws_restJson1ListGeofencesCommand = async (output, context) =>
|
|
|
4832
4832
|
Entries: undefined,
|
|
4833
4833
|
NextToken: undefined,
|
|
4834
4834
|
};
|
|
4835
|
-
const data =
|
|
4835
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4836
4836
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4837
4837
|
contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
|
|
4838
4838
|
}
|
|
4839
4839
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
4840
|
-
contents.NextToken =
|
|
4840
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
4841
4841
|
}
|
|
4842
4842
|
return Promise.resolve(contents);
|
|
4843
4843
|
};
|
|
@@ -4916,12 +4916,12 @@ const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
|
|
|
4916
4916
|
Entries: undefined,
|
|
4917
4917
|
NextToken: undefined,
|
|
4918
4918
|
};
|
|
4919
|
-
const data =
|
|
4919
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4920
4920
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4921
4921
|
contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
|
|
4922
4922
|
}
|
|
4923
4923
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
4924
|
-
contents.NextToken =
|
|
4924
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
4925
4925
|
}
|
|
4926
4926
|
return Promise.resolve(contents);
|
|
4927
4927
|
};
|
|
@@ -4992,12 +4992,12 @@ const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context)
|
|
|
4992
4992
|
Entries: undefined,
|
|
4993
4993
|
NextToken: undefined,
|
|
4994
4994
|
};
|
|
4995
|
-
const data =
|
|
4995
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4996
4996
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4997
4997
|
contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
|
|
4998
4998
|
}
|
|
4999
4999
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5000
|
-
contents.NextToken =
|
|
5000
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
5001
5001
|
}
|
|
5002
5002
|
return Promise.resolve(contents);
|
|
5003
5003
|
};
|
|
@@ -5068,12 +5068,12 @@ const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, conte
|
|
|
5068
5068
|
Entries: undefined,
|
|
5069
5069
|
NextToken: undefined,
|
|
5070
5070
|
};
|
|
5071
|
-
const data =
|
|
5071
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5072
5072
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5073
5073
|
contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
|
|
5074
5074
|
}
|
|
5075
5075
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5076
|
-
contents.NextToken =
|
|
5076
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
5077
5077
|
}
|
|
5078
5078
|
return Promise.resolve(contents);
|
|
5079
5079
|
};
|
|
@@ -5143,7 +5143,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5143
5143
|
$metadata: deserializeMetadata(output),
|
|
5144
5144
|
Tags: undefined,
|
|
5145
5145
|
};
|
|
5146
|
-
const data =
|
|
5146
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5147
5147
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
5148
5148
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
5149
5149
|
}
|
|
@@ -5224,12 +5224,12 @@ const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, conte
|
|
|
5224
5224
|
ConsumerArns: undefined,
|
|
5225
5225
|
NextToken: undefined,
|
|
5226
5226
|
};
|
|
5227
|
-
const data =
|
|
5227
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5228
5228
|
if (data.ConsumerArns !== undefined && data.ConsumerArns !== null) {
|
|
5229
5229
|
contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
|
|
5230
5230
|
}
|
|
5231
5231
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5232
|
-
contents.NextToken =
|
|
5232
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
5233
5233
|
}
|
|
5234
5234
|
return Promise.resolve(contents);
|
|
5235
5235
|
};
|
|
@@ -5308,12 +5308,12 @@ const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
|
|
|
5308
5308
|
Entries: undefined,
|
|
5309
5309
|
NextToken: undefined,
|
|
5310
5310
|
};
|
|
5311
|
-
const data =
|
|
5311
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5312
5312
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5313
5313
|
contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
|
|
5314
5314
|
}
|
|
5315
5315
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
5316
|
-
contents.NextToken =
|
|
5316
|
+
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
5317
5317
|
}
|
|
5318
5318
|
return Promise.resolve(contents);
|
|
5319
5319
|
};
|
|
@@ -5385,15 +5385,15 @@ const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
|
|
|
5385
5385
|
GeofenceId: undefined,
|
|
5386
5386
|
UpdateTime: undefined,
|
|
5387
5387
|
};
|
|
5388
|
-
const data =
|
|
5388
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5389
5389
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
5390
|
-
contents.CreateTime =
|
|
5390
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
5391
5391
|
}
|
|
5392
5392
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
5393
|
-
contents.GeofenceId =
|
|
5393
|
+
contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
|
|
5394
5394
|
}
|
|
5395
5395
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5396
|
-
contents.UpdateTime =
|
|
5396
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5397
5397
|
}
|
|
5398
5398
|
return Promise.resolve(contents);
|
|
5399
5399
|
};
|
|
@@ -5480,7 +5480,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output
|
|
|
5480
5480
|
Results: undefined,
|
|
5481
5481
|
Summary: undefined,
|
|
5482
5482
|
};
|
|
5483
|
-
const data =
|
|
5483
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5484
5484
|
if (data.Results !== undefined && data.Results !== null) {
|
|
5485
5485
|
contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
|
|
5486
5486
|
}
|
|
@@ -5564,7 +5564,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, co
|
|
|
5564
5564
|
Results: undefined,
|
|
5565
5565
|
Summary: undefined,
|
|
5566
5566
|
};
|
|
5567
|
-
const data =
|
|
5567
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5568
5568
|
if (data.Results !== undefined && data.Results !== null) {
|
|
5569
5569
|
contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
|
|
5570
5570
|
}
|
|
@@ -5801,15 +5801,15 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, c
|
|
|
5801
5801
|
CollectionName: undefined,
|
|
5802
5802
|
UpdateTime: undefined,
|
|
5803
5803
|
};
|
|
5804
|
-
const data =
|
|
5804
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5805
5805
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
5806
|
-
contents.CollectionArn =
|
|
5806
|
+
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
5807
5807
|
}
|
|
5808
5808
|
if (data.CollectionName !== undefined && data.CollectionName !== null) {
|
|
5809
|
-
contents.CollectionName =
|
|
5809
|
+
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
5810
5810
|
}
|
|
5811
5811
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5812
|
-
contents.UpdateTime =
|
|
5812
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5813
5813
|
}
|
|
5814
5814
|
return Promise.resolve(contents);
|
|
5815
5815
|
};
|
|
@@ -5889,15 +5889,15 @@ const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
|
|
|
5889
5889
|
MapName: undefined,
|
|
5890
5890
|
UpdateTime: undefined,
|
|
5891
5891
|
};
|
|
5892
|
-
const data =
|
|
5892
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5893
5893
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
5894
|
-
contents.MapArn =
|
|
5894
|
+
contents.MapArn = smithy_client_1.expectString(data.MapArn);
|
|
5895
5895
|
}
|
|
5896
5896
|
if (data.MapName !== undefined && data.MapName !== null) {
|
|
5897
|
-
contents.MapName =
|
|
5897
|
+
contents.MapName = smithy_client_1.expectString(data.MapName);
|
|
5898
5898
|
}
|
|
5899
5899
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5900
|
-
contents.UpdateTime =
|
|
5900
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5901
5901
|
}
|
|
5902
5902
|
return Promise.resolve(contents);
|
|
5903
5903
|
};
|
|
@@ -5977,15 +5977,15 @@ const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context)
|
|
|
5977
5977
|
IndexName: undefined,
|
|
5978
5978
|
UpdateTime: undefined,
|
|
5979
5979
|
};
|
|
5980
|
-
const data =
|
|
5980
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5981
5981
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
5982
|
-
contents.IndexArn =
|
|
5982
|
+
contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
|
|
5983
5983
|
}
|
|
5984
5984
|
if (data.IndexName !== undefined && data.IndexName !== null) {
|
|
5985
|
-
contents.IndexName =
|
|
5985
|
+
contents.IndexName = smithy_client_1.expectString(data.IndexName);
|
|
5986
5986
|
}
|
|
5987
5987
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5988
|
-
contents.UpdateTime =
|
|
5988
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5989
5989
|
}
|
|
5990
5990
|
return Promise.resolve(contents);
|
|
5991
5991
|
};
|
|
@@ -6065,15 +6065,15 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, cont
|
|
|
6065
6065
|
CalculatorName: undefined,
|
|
6066
6066
|
UpdateTime: undefined,
|
|
6067
6067
|
};
|
|
6068
|
-
const data =
|
|
6068
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6069
6069
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
6070
|
-
contents.CalculatorArn =
|
|
6070
|
+
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
6071
6071
|
}
|
|
6072
6072
|
if (data.CalculatorName !== undefined && data.CalculatorName !== null) {
|
|
6073
|
-
contents.CalculatorName =
|
|
6073
|
+
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
6074
6074
|
}
|
|
6075
6075
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6076
|
-
contents.UpdateTime =
|
|
6076
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
6077
6077
|
}
|
|
6078
6078
|
return Promise.resolve(contents);
|
|
6079
6079
|
};
|
|
@@ -6153,15 +6153,15 @@ const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) =>
|
|
|
6153
6153
|
TrackerName: undefined,
|
|
6154
6154
|
UpdateTime: undefined,
|
|
6155
6155
|
};
|
|
6156
|
-
const data =
|
|
6156
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6157
6157
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
6158
|
-
contents.TrackerArn =
|
|
6158
|
+
contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
|
|
6159
6159
|
}
|
|
6160
6160
|
if (data.TrackerName !== undefined && data.TrackerName !== null) {
|
|
6161
|
-
contents.TrackerName =
|
|
6161
|
+
contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
|
|
6162
6162
|
}
|
|
6163
6163
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6164
|
-
contents.UpdateTime =
|
|
6164
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
6165
6165
|
}
|
|
6166
6166
|
return Promise.resolve(contents);
|
|
6167
6167
|
};
|
|
@@ -6240,7 +6240,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
6240
6240
|
};
|
|
6241
6241
|
const data = parsedOutput.body;
|
|
6242
6242
|
if (data.message !== undefined && data.message !== null) {
|
|
6243
|
-
contents.Message =
|
|
6243
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6244
6244
|
}
|
|
6245
6245
|
return contents;
|
|
6246
6246
|
};
|
|
@@ -6253,7 +6253,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
6253
6253
|
};
|
|
6254
6254
|
const data = parsedOutput.body;
|
|
6255
6255
|
if (data.message !== undefined && data.message !== null) {
|
|
6256
|
-
contents.Message =
|
|
6256
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6257
6257
|
}
|
|
6258
6258
|
return contents;
|
|
6259
6259
|
};
|
|
@@ -6267,7 +6267,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
6267
6267
|
};
|
|
6268
6268
|
const data = parsedOutput.body;
|
|
6269
6269
|
if (data.message !== undefined && data.message !== null) {
|
|
6270
|
-
contents.Message =
|
|
6270
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6271
6271
|
}
|
|
6272
6272
|
return contents;
|
|
6273
6273
|
};
|
|
@@ -6280,7 +6280,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
6280
6280
|
};
|
|
6281
6281
|
const data = parsedOutput.body;
|
|
6282
6282
|
if (data.message !== undefined && data.message !== null) {
|
|
6283
|
-
contents.Message =
|
|
6283
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6284
6284
|
}
|
|
6285
6285
|
return contents;
|
|
6286
6286
|
};
|
|
@@ -6293,7 +6293,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
6293
6293
|
};
|
|
6294
6294
|
const data = parsedOutput.body;
|
|
6295
6295
|
if (data.message !== undefined && data.message !== null) {
|
|
6296
|
-
contents.Message =
|
|
6296
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6297
6297
|
}
|
|
6298
6298
|
return contents;
|
|
6299
6299
|
};
|
|
@@ -6307,7 +6307,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
6307
6307
|
};
|
|
6308
6308
|
const data = parsedOutput.body;
|
|
6309
6309
|
if (data.message !== undefined && data.message !== null) {
|
|
6310
|
-
contents.Message =
|
|
6310
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6311
6311
|
}
|
|
6312
6312
|
return contents;
|
|
6313
6313
|
};
|
|
@@ -6325,10 +6325,10 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
6325
6325
|
contents.FieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
6326
6326
|
}
|
|
6327
6327
|
if (data.message !== undefined && data.message !== null) {
|
|
6328
|
-
contents.Message =
|
|
6328
|
+
contents.Message = smithy_client_1.expectString(data.message);
|
|
6329
6329
|
}
|
|
6330
6330
|
if (data.reason !== undefined && data.reason !== null) {
|
|
6331
|
-
contents.Reason =
|
|
6331
|
+
contents.Reason = smithy_client_1.expectString(data.reason);
|
|
6332
6332
|
}
|
|
6333
6333
|
return contents;
|
|
6334
6334
|
};
|
|
@@ -6356,7 +6356,7 @@ const serializeAws_restJson1BoundingBox = (input, context) => {
|
|
|
6356
6356
|
if (entry === null) {
|
|
6357
6357
|
return null;
|
|
6358
6358
|
}
|
|
6359
|
-
return
|
|
6359
|
+
return smithy_client_1.serializeFloat(entry);
|
|
6360
6360
|
});
|
|
6361
6361
|
};
|
|
6362
6362
|
const serializeAws_restJson1CalculateRouteCarModeOptions = (input, context) => {
|
|
@@ -6467,7 +6467,7 @@ const serializeAws_restJson1Position = (input, context) => {
|
|
|
6467
6467
|
if (entry === null) {
|
|
6468
6468
|
return null;
|
|
6469
6469
|
}
|
|
6470
|
-
return
|
|
6470
|
+
return smithy_client_1.serializeFloat(entry);
|
|
6471
6471
|
});
|
|
6472
6472
|
};
|
|
6473
6473
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -6483,15 +6483,15 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
6483
6483
|
};
|
|
6484
6484
|
const serializeAws_restJson1TruckDimensions = (input, context) => {
|
|
6485
6485
|
return {
|
|
6486
|
-
...(input.Height !== undefined && input.Height !== null && { Height:
|
|
6487
|
-
...(input.Length !== undefined && input.Length !== null && { Length:
|
|
6486
|
+
...(input.Height !== undefined && input.Height !== null && { Height: smithy_client_1.serializeFloat(input.Height) }),
|
|
6487
|
+
...(input.Length !== undefined && input.Length !== null && { Length: smithy_client_1.serializeFloat(input.Length) }),
|
|
6488
6488
|
...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
|
|
6489
|
-
...(input.Width !== undefined && input.Width !== null && { Width:
|
|
6489
|
+
...(input.Width !== undefined && input.Width !== null && { Width: smithy_client_1.serializeFloat(input.Width) }),
|
|
6490
6490
|
};
|
|
6491
6491
|
};
|
|
6492
6492
|
const serializeAws_restJson1TruckWeight = (input, context) => {
|
|
6493
6493
|
return {
|
|
6494
|
-
...(input.Total !== undefined && input.Total !== null && { Total:
|
|
6494
|
+
...(input.Total !== undefined && input.Total !== null && { Total: smithy_client_1.serializeFloat(input.Total) }),
|
|
6495
6495
|
...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
|
|
6496
6496
|
};
|
|
6497
6497
|
};
|
|
@@ -6512,12 +6512,12 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
6512
6512
|
if (entry === null) {
|
|
6513
6513
|
return null;
|
|
6514
6514
|
}
|
|
6515
|
-
return
|
|
6515
|
+
return smithy_client_1.expectString(entry);
|
|
6516
6516
|
});
|
|
6517
6517
|
};
|
|
6518
6518
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
|
|
6519
6519
|
return {
|
|
6520
|
-
DeviceId:
|
|
6520
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6521
6521
|
Error: output.Error !== undefined && output.Error !== null
|
|
6522
6522
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6523
6523
|
: undefined,
|
|
@@ -6538,7 +6538,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
|
|
|
6538
6538
|
Error: output.Error !== undefined && output.Error !== null
|
|
6539
6539
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6540
6540
|
: undefined,
|
|
6541
|
-
GeofenceId:
|
|
6541
|
+
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6542
6542
|
};
|
|
6543
6543
|
};
|
|
6544
6544
|
const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) => {
|
|
@@ -6553,12 +6553,12 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) =
|
|
|
6553
6553
|
};
|
|
6554
6554
|
const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
|
|
6555
6555
|
return {
|
|
6556
|
-
DeviceId:
|
|
6556
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6557
6557
|
Error: output.Error !== undefined && output.Error !== null
|
|
6558
6558
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6559
6559
|
: undefined,
|
|
6560
6560
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6561
|
-
?
|
|
6561
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6562
6562
|
: undefined,
|
|
6563
6563
|
};
|
|
6564
6564
|
};
|
|
@@ -6574,7 +6574,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context
|
|
|
6574
6574
|
};
|
|
6575
6575
|
const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
|
|
6576
6576
|
return {
|
|
6577
|
-
DeviceId:
|
|
6577
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6578
6578
|
Error: output.Error !== undefined && output.Error !== null
|
|
6579
6579
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6580
6580
|
: undefined,
|
|
@@ -6592,8 +6592,8 @@ const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context
|
|
|
6592
6592
|
};
|
|
6593
6593
|
const deserializeAws_restJson1BatchItemError = (output, context) => {
|
|
6594
6594
|
return {
|
|
6595
|
-
Code:
|
|
6596
|
-
Message:
|
|
6595
|
+
Code: smithy_client_1.expectString(output.Code),
|
|
6596
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
6597
6597
|
};
|
|
6598
6598
|
};
|
|
6599
6599
|
const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
|
|
@@ -6601,7 +6601,7 @@ const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
|
|
|
6601
6601
|
Error: output.Error !== undefined && output.Error !== null
|
|
6602
6602
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6603
6603
|
: undefined,
|
|
6604
|
-
GeofenceId:
|
|
6604
|
+
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6605
6605
|
};
|
|
6606
6606
|
};
|
|
6607
6607
|
const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
@@ -6617,11 +6617,11 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
|
6617
6617
|
const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
6618
6618
|
return {
|
|
6619
6619
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6620
|
-
?
|
|
6620
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6621
6621
|
: undefined,
|
|
6622
|
-
GeofenceId:
|
|
6622
|
+
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6623
6623
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6624
|
-
?
|
|
6624
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6625
6625
|
: undefined,
|
|
6626
6626
|
};
|
|
6627
6627
|
};
|
|
@@ -6637,12 +6637,12 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) =>
|
|
|
6637
6637
|
};
|
|
6638
6638
|
const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
|
|
6639
6639
|
return {
|
|
6640
|
-
DeviceId:
|
|
6640
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6641
6641
|
Error: output.Error !== undefined && output.Error !== null
|
|
6642
6642
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6643
6643
|
: undefined,
|
|
6644
6644
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6645
|
-
?
|
|
6645
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6646
6646
|
: undefined,
|
|
6647
6647
|
};
|
|
6648
6648
|
};
|
|
@@ -6663,15 +6663,15 @@ const deserializeAws_restJson1BoundingBox = (output, context) => {
|
|
|
6663
6663
|
if (entry === null) {
|
|
6664
6664
|
return null;
|
|
6665
6665
|
}
|
|
6666
|
-
return
|
|
6666
|
+
return smithy_client_1.limitedParseDouble(entry);
|
|
6667
6667
|
});
|
|
6668
6668
|
};
|
|
6669
6669
|
const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
6670
6670
|
return {
|
|
6671
|
-
DataSource:
|
|
6672
|
-
Distance:
|
|
6673
|
-
DistanceUnit:
|
|
6674
|
-
DurationSeconds:
|
|
6671
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6672
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
6673
|
+
DistanceUnit: smithy_client_1.expectString(output.DistanceUnit),
|
|
6674
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
6675
6675
|
RouteBBox: output.RouteBBox !== undefined && output.RouteBBox !== null
|
|
6676
6676
|
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
6677
6677
|
: undefined,
|
|
@@ -6684,25 +6684,25 @@ const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
|
6684
6684
|
if (entry === null) {
|
|
6685
6685
|
return null;
|
|
6686
6686
|
}
|
|
6687
|
-
return
|
|
6687
|
+
return smithy_client_1.expectString(entry);
|
|
6688
6688
|
});
|
|
6689
6689
|
};
|
|
6690
6690
|
const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
|
|
6691
6691
|
return {
|
|
6692
|
-
IntendedUse:
|
|
6692
|
+
IntendedUse: smithy_client_1.expectString(output.IntendedUse),
|
|
6693
6693
|
};
|
|
6694
6694
|
};
|
|
6695
6695
|
const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
6696
6696
|
return {
|
|
6697
|
-
DeviceId:
|
|
6697
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6698
6698
|
Position: output.Position !== undefined && output.Position !== null
|
|
6699
6699
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6700
6700
|
: undefined,
|
|
6701
6701
|
ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
6702
|
-
?
|
|
6702
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ReceivedTime))
|
|
6703
6703
|
: undefined,
|
|
6704
6704
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6705
|
-
?
|
|
6705
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6706
6706
|
: undefined,
|
|
6707
6707
|
};
|
|
6708
6708
|
};
|
|
@@ -6725,8 +6725,8 @@ const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
|
6725
6725
|
};
|
|
6726
6726
|
const deserializeAws_restJson1Leg = (output, context) => {
|
|
6727
6727
|
return {
|
|
6728
|
-
Distance:
|
|
6729
|
-
DurationSeconds:
|
|
6728
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
6729
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
6730
6730
|
EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
|
|
6731
6731
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
6732
6732
|
: undefined,
|
|
@@ -6790,12 +6790,12 @@ const deserializeAws_restJson1LineString = (output, context) => {
|
|
|
6790
6790
|
};
|
|
6791
6791
|
const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
|
|
6792
6792
|
return {
|
|
6793
|
-
DeviceId:
|
|
6793
|
+
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6794
6794
|
Position: output.Position !== undefined && output.Position !== null
|
|
6795
6795
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6796
6796
|
: undefined,
|
|
6797
6797
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6798
|
-
?
|
|
6798
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6799
6799
|
: undefined,
|
|
6800
6800
|
};
|
|
6801
6801
|
};
|
|
@@ -6811,15 +6811,15 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
|
|
|
6811
6811
|
};
|
|
6812
6812
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
6813
6813
|
return {
|
|
6814
|
-
CollectionName:
|
|
6814
|
+
CollectionName: smithy_client_1.expectString(output.CollectionName),
|
|
6815
6815
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6816
|
-
?
|
|
6816
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6817
6817
|
: undefined,
|
|
6818
|
-
Description:
|
|
6819
|
-
PricingPlan:
|
|
6820
|
-
PricingPlanDataSource:
|
|
6818
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6819
|
+
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6820
|
+
PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
|
|
6821
6821
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6822
|
-
?
|
|
6822
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6823
6823
|
: undefined,
|
|
6824
6824
|
};
|
|
6825
6825
|
};
|
|
@@ -6836,15 +6836,15 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
|
|
|
6836
6836
|
const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
6837
6837
|
return {
|
|
6838
6838
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6839
|
-
?
|
|
6839
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6840
6840
|
: undefined,
|
|
6841
|
-
GeofenceId:
|
|
6841
|
+
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6842
6842
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
6843
6843
|
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
6844
6844
|
: undefined,
|
|
6845
|
-
Status:
|
|
6845
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
6846
6846
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6847
|
-
?
|
|
6847
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6848
6848
|
: undefined,
|
|
6849
6849
|
};
|
|
6850
6850
|
};
|
|
@@ -6861,14 +6861,14 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
|
|
|
6861
6861
|
const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
6862
6862
|
return {
|
|
6863
6863
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6864
|
-
?
|
|
6864
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6865
6865
|
: undefined,
|
|
6866
|
-
DataSource:
|
|
6867
|
-
Description:
|
|
6868
|
-
MapName:
|
|
6869
|
-
PricingPlan:
|
|
6866
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6867
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6868
|
+
MapName: smithy_client_1.expectString(output.MapName),
|
|
6869
|
+
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6870
6870
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6871
|
-
?
|
|
6871
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6872
6872
|
: undefined,
|
|
6873
6873
|
};
|
|
6874
6874
|
};
|
|
@@ -6885,14 +6885,14 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
|
6885
6885
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
|
|
6886
6886
|
return {
|
|
6887
6887
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6888
|
-
?
|
|
6888
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6889
6889
|
: undefined,
|
|
6890
|
-
DataSource:
|
|
6891
|
-
Description:
|
|
6892
|
-
IndexName:
|
|
6893
|
-
PricingPlan:
|
|
6890
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6891
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6892
|
+
IndexName: smithy_client_1.expectString(output.IndexName),
|
|
6893
|
+
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6894
6894
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6895
|
-
?
|
|
6895
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6896
6896
|
: undefined,
|
|
6897
6897
|
};
|
|
6898
6898
|
};
|
|
@@ -6908,15 +6908,15 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
|
|
|
6908
6908
|
};
|
|
6909
6909
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
6910
6910
|
return {
|
|
6911
|
-
CalculatorName:
|
|
6911
|
+
CalculatorName: smithy_client_1.expectString(output.CalculatorName),
|
|
6912
6912
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6913
|
-
?
|
|
6913
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6914
6914
|
: undefined,
|
|
6915
|
-
DataSource:
|
|
6916
|
-
Description:
|
|
6917
|
-
PricingPlan:
|
|
6915
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6916
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6917
|
+
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6918
6918
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6919
|
-
?
|
|
6919
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6920
6920
|
: undefined,
|
|
6921
6921
|
};
|
|
6922
6922
|
};
|
|
@@ -6933,14 +6933,14 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
|
|
|
6933
6933
|
const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
6934
6934
|
return {
|
|
6935
6935
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6936
|
-
?
|
|
6936
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6937
6937
|
: undefined,
|
|
6938
|
-
Description:
|
|
6939
|
-
PricingPlan:
|
|
6940
|
-
PricingPlanDataSource:
|
|
6941
|
-
TrackerName:
|
|
6938
|
+
Description: smithy_client_1.expectString(output.Description),
|
|
6939
|
+
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6940
|
+
PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
|
|
6941
|
+
TrackerName: smithy_client_1.expectString(output.TrackerName),
|
|
6942
6942
|
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6943
|
-
?
|
|
6943
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6944
6944
|
: undefined,
|
|
6945
6945
|
};
|
|
6946
6946
|
};
|
|
@@ -6956,23 +6956,23 @@ const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context)
|
|
|
6956
6956
|
};
|
|
6957
6957
|
const deserializeAws_restJson1MapConfiguration = (output, context) => {
|
|
6958
6958
|
return {
|
|
6959
|
-
Style:
|
|
6959
|
+
Style: smithy_client_1.expectString(output.Style),
|
|
6960
6960
|
};
|
|
6961
6961
|
};
|
|
6962
6962
|
const deserializeAws_restJson1Place = (output, context) => {
|
|
6963
6963
|
return {
|
|
6964
|
-
AddressNumber:
|
|
6965
|
-
Country:
|
|
6964
|
+
AddressNumber: smithy_client_1.expectString(output.AddressNumber),
|
|
6965
|
+
Country: smithy_client_1.expectString(output.Country),
|
|
6966
6966
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
6967
6967
|
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
6968
6968
|
: undefined,
|
|
6969
|
-
Label:
|
|
6970
|
-
Municipality:
|
|
6971
|
-
Neighborhood:
|
|
6972
|
-
PostalCode:
|
|
6973
|
-
Region:
|
|
6974
|
-
Street:
|
|
6975
|
-
SubRegion:
|
|
6969
|
+
Label: smithy_client_1.expectString(output.Label),
|
|
6970
|
+
Municipality: smithy_client_1.expectString(output.Municipality),
|
|
6971
|
+
Neighborhood: smithy_client_1.expectString(output.Neighborhood),
|
|
6972
|
+
PostalCode: smithy_client_1.expectString(output.PostalCode),
|
|
6973
|
+
Region: smithy_client_1.expectString(output.Region),
|
|
6974
|
+
Street: smithy_client_1.expectString(output.Street),
|
|
6975
|
+
SubRegion: smithy_client_1.expectString(output.SubRegion),
|
|
6976
6976
|
};
|
|
6977
6977
|
};
|
|
6978
6978
|
const deserializeAws_restJson1PlaceGeometry = (output, context) => {
|
|
@@ -6989,7 +6989,7 @@ const deserializeAws_restJson1Position = (output, context) => {
|
|
|
6989
6989
|
if (entry === null) {
|
|
6990
6990
|
return null;
|
|
6991
6991
|
}
|
|
6992
|
-
return
|
|
6992
|
+
return smithy_client_1.limitedParseDouble(entry);
|
|
6993
6993
|
});
|
|
6994
6994
|
};
|
|
6995
6995
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
@@ -7028,8 +7028,8 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
|
7028
7028
|
};
|
|
7029
7029
|
const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
7030
7030
|
return {
|
|
7031
|
-
DataSource:
|
|
7032
|
-
MaxResults:
|
|
7031
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
7032
|
+
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7033
7033
|
Position: output.Position !== undefined && output.Position !== null
|
|
7034
7034
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7035
7035
|
: undefined,
|
|
@@ -7040,28 +7040,28 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
|
|
|
7040
7040
|
BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
|
|
7041
7041
|
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
7042
7042
|
: undefined,
|
|
7043
|
-
DataSource:
|
|
7043
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
7044
7044
|
FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
|
|
7045
7045
|
? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
|
|
7046
7046
|
: undefined,
|
|
7047
7047
|
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7048
7048
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7049
7049
|
: undefined,
|
|
7050
|
-
MaxResults:
|
|
7050
|
+
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7051
7051
|
ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
|
|
7052
7052
|
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
7053
7053
|
: undefined,
|
|
7054
|
-
Text:
|
|
7054
|
+
Text: smithy_client_1.expectString(output.Text),
|
|
7055
7055
|
};
|
|
7056
7056
|
};
|
|
7057
7057
|
const deserializeAws_restJson1Step = (output, context) => {
|
|
7058
7058
|
return {
|
|
7059
|
-
Distance:
|
|
7060
|
-
DurationSeconds:
|
|
7059
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
7060
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
7061
7061
|
EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
|
|
7062
7062
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
7063
7063
|
: undefined,
|
|
7064
|
-
GeometryOffset:
|
|
7064
|
+
GeometryOffset: smithy_client_1.expectInt32(output.GeometryOffset),
|
|
7065
7065
|
StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
|
|
7066
7066
|
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
7067
7067
|
: undefined,
|
|
@@ -7084,14 +7084,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
7084
7084
|
}
|
|
7085
7085
|
return {
|
|
7086
7086
|
...acc,
|
|
7087
|
-
[key]:
|
|
7087
|
+
[key]: smithy_client_1.expectString(value),
|
|
7088
7088
|
};
|
|
7089
7089
|
}, {});
|
|
7090
7090
|
};
|
|
7091
7091
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
7092
7092
|
return {
|
|
7093
|
-
Message:
|
|
7094
|
-
Name:
|
|
7093
|
+
Message: smithy_client_1.expectString(output.message),
|
|
7094
|
+
Name: smithy_client_1.expectString(output.name),
|
|
7095
7095
|
};
|
|
7096
7096
|
};
|
|
7097
7097
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|