@aws-sdk/client-location 3.43.0 → 3.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Location.js +15 -0
  3. package/dist-cjs/commands/SearchPlaceIndexForSuggestionsCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +1 -0
  6. package/dist-cjs/models/models_0.js +44 -3
  7. package/dist-cjs/protocols/Aws_restJson1.js +227 -2
  8. package/dist-es/Location.js +15 -0
  9. package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +39 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/endpoints.js +1 -0
  12. package/dist-es/models/models_0.js +24 -4
  13. package/dist-es/protocols/Aws_restJson1.js +234 -2
  14. package/dist-types/Location.d.ts +33 -4
  15. package/dist-types/LocationClient.d.ts +3 -2
  16. package/dist-types/commands/BatchEvaluateGeofencesCommand.d.ts +4 -0
  17. package/dist-types/commands/BatchUpdateDevicePositionCommand.d.ts +11 -3
  18. package/dist-types/commands/CreatePlaceIndexCommand.d.ts +2 -1
  19. package/dist-types/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +44 -0
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/models/models_0.d.ts +267 -12
  22. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  23. package/dist-types/ts3.4/Location.d.ts +5 -0
  24. package/dist-types/ts3.4/LocationClient.d.ts +3 -2
  25. package/dist-types/ts3.4/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +98 -5
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  29. package/package.json +5 -5
@@ -68,9 +68,13 @@ export var BatchDeleteGeofenceResponse;
68
68
  (function (BatchDeleteGeofenceResponse) {
69
69
  BatchDeleteGeofenceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
70
  })(BatchDeleteGeofenceResponse || (BatchDeleteGeofenceResponse = {}));
71
+ export var PositionalAccuracy;
72
+ (function (PositionalAccuracy) {
73
+ PositionalAccuracy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
+ })(PositionalAccuracy || (PositionalAccuracy = {}));
71
75
  export var DevicePositionUpdate;
72
76
  (function (DevicePositionUpdate) {
73
- DevicePositionUpdate.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
77
+ DevicePositionUpdate.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
74
78
  })(DevicePositionUpdate || (DevicePositionUpdate = {}));
75
79
  export var BatchEvaluateGeofencesRequest;
76
80
  (function (BatchEvaluateGeofencesRequest) {
@@ -92,7 +96,7 @@ export var BatchGetDevicePositionRequest;
92
96
  })(BatchGetDevicePositionRequest || (BatchGetDevicePositionRequest = {}));
93
97
  export var DevicePosition;
94
98
  (function (DevicePosition) {
95
- DevicePosition.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
99
+ DevicePosition.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
96
100
  })(DevicePosition || (DevicePosition = {}));
97
101
  export var BatchGetDevicePositionError;
98
102
  (function (BatchGetDevicePositionError) {
@@ -394,7 +398,7 @@ export var GetDevicePositionRequest;
394
398
  })(GetDevicePositionRequest || (GetDevicePositionRequest = {}));
395
399
  export var GetDevicePositionResponse;
396
400
  (function (GetDevicePositionResponse) {
397
- GetDevicePositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
401
+ GetDevicePositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
398
402
  })(GetDevicePositionResponse || (GetDevicePositionResponse = {}));
399
403
  export var GetDevicePositionHistoryRequest;
400
404
  (function (GetDevicePositionHistoryRequest) {
@@ -444,7 +448,7 @@ export var ListDevicePositionsRequest;
444
448
  })(ListDevicePositionsRequest || (ListDevicePositionsRequest = {}));
445
449
  export var ListDevicePositionsResponseEntry;
446
450
  (function (ListDevicePositionsResponseEntry) {
447
- ListDevicePositionsResponseEntry.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
451
+ ListDevicePositionsResponseEntry.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
448
452
  })(ListDevicePositionsResponseEntry || (ListDevicePositionsResponseEntry = {}));
449
453
  export var ListDevicePositionsResponse;
450
454
  (function (ListDevicePositionsResponse) {
@@ -544,6 +548,22 @@ export var SearchPlaceIndexForPositionResponse;
544
548
  (function (SearchPlaceIndexForPositionResponse) {
545
549
  SearchPlaceIndexForPositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Summary && { Summary: SearchPlaceIndexForPositionSummary.filterSensitiveLog(obj.Summary) })), (obj.Results && { Results: obj.Results.map(function (item) { return SearchForPositionResult.filterSensitiveLog(item); }) }))); };
546
550
  })(SearchPlaceIndexForPositionResponse || (SearchPlaceIndexForPositionResponse = {}));
551
+ export var SearchPlaceIndexForSuggestionsRequest;
552
+ (function (SearchPlaceIndexForSuggestionsRequest) {
553
+ SearchPlaceIndexForSuggestionsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
554
+ })(SearchPlaceIndexForSuggestionsRequest || (SearchPlaceIndexForSuggestionsRequest = {}));
555
+ export var SearchForSuggestionsResult;
556
+ (function (SearchForSuggestionsResult) {
557
+ SearchForSuggestionsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
558
+ })(SearchForSuggestionsResult || (SearchForSuggestionsResult = {}));
559
+ export var SearchPlaceIndexForSuggestionsSummary;
560
+ (function (SearchPlaceIndexForSuggestionsSummary) {
561
+ SearchPlaceIndexForSuggestionsSummary.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
562
+ })(SearchPlaceIndexForSuggestionsSummary || (SearchPlaceIndexForSuggestionsSummary = {}));
563
+ export var SearchPlaceIndexForSuggestionsResponse;
564
+ (function (SearchPlaceIndexForSuggestionsResponse) {
565
+ SearchPlaceIndexForSuggestionsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Summary && { Summary: SearchPlaceIndexForSuggestionsSummary.filterSensitiveLog(obj.Summary) }))); };
566
+ })(SearchPlaceIndexForSuggestionsResponse || (SearchPlaceIndexForSuggestionsResponse = {}));
547
567
  export var SearchPlaceIndexForTextRequest;
548
568
  (function (SearchPlaceIndexForTextRequest) {
549
569
  SearchPlaceIndexForTextRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
@@ -1830,6 +1830,55 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
1830
1830
  }
1831
1831
  });
1832
1832
  }); };
1833
+ export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1834
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
1835
+ return __generator(this, function (_c) {
1836
+ switch (_c.label) {
1837
+ case 0: return [4, context.endpoint()];
1838
+ case 1:
1839
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1840
+ headers = {
1841
+ "content-type": "application/json",
1842
+ };
1843
+ resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
1844
+ "/places/v0/indexes/{IndexName}/search/suggestions";
1845
+ if (input.IndexName !== undefined) {
1846
+ labelValue = input.IndexName;
1847
+ if (labelValue.length <= 0) {
1848
+ throw new Error("Empty value provided for input HTTP label: IndexName.");
1849
+ }
1850
+ resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
1851
+ }
1852
+ else {
1853
+ throw new Error("No value provided for input HTTP label: IndexName.");
1854
+ }
1855
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
1856
+ input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
1857
+ input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
1858
+ input.FilterCountries !== null && {
1859
+ FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
1860
+ })), (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Text !== undefined && input.Text !== null && { Text: input.Text })));
1861
+ return [4, context.endpoint()];
1862
+ case 2:
1863
+ resolvedHostname = (_c.sent()).hostname;
1864
+ if (context.disableHostPrefix !== true) {
1865
+ resolvedHostname = "places." + resolvedHostname;
1866
+ if (!__isValidHostname(resolvedHostname)) {
1867
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1868
+ }
1869
+ }
1870
+ return [2, new __HttpRequest({
1871
+ protocol: protocol,
1872
+ hostname: resolvedHostname,
1873
+ port: port,
1874
+ method: "POST",
1875
+ headers: headers,
1876
+ path: resolvedPath,
1877
+ body: body,
1878
+ })];
1879
+ }
1880
+ });
1881
+ }); };
1833
1882
  export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1834
1883
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
1835
1884
  return __generator(this, function (_c) {
@@ -4638,8 +4687,10 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
4638
4687
  }
4639
4688
  contents = {
4640
4689
  $metadata: deserializeMetadata(output),
4690
+ Accuracy: undefined,
4641
4691
  DeviceId: undefined,
4642
4692
  Position: undefined,
4693
+ PositionProperties: undefined,
4643
4694
  ReceivedTime: undefined,
4644
4695
  SampleTime: undefined,
4645
4696
  };
@@ -4648,12 +4699,18 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
4648
4699
  return [4, parseBody(output.body, context)];
4649
4700
  case 1:
4650
4701
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4702
+ if (data.Accuracy !== undefined && data.Accuracy !== null) {
4703
+ contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
4704
+ }
4651
4705
  if (data.DeviceId !== undefined && data.DeviceId !== null) {
4652
4706
  contents.DeviceId = __expectString(data.DeviceId);
4653
4707
  }
4654
4708
  if (data.Position !== undefined && data.Position !== null) {
4655
4709
  contents.Position = deserializeAws_restJson1Position(data.Position, context);
4656
4710
  }
4711
+ if (data.PositionProperties !== undefined && data.PositionProperties !== null) {
4712
+ contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
4713
+ }
4657
4714
  if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
4658
4715
  contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTime(data.ReceivedTime));
4659
4716
  }
@@ -6356,6 +6413,104 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = function (
6356
6413
  }
6357
6414
  });
6358
6415
  }); };
6416
+ export var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6417
+ var contents, data, _a, _b;
6418
+ return __generator(this, function (_c) {
6419
+ switch (_c.label) {
6420
+ case 0:
6421
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6422
+ return [2, deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError(output, context)];
6423
+ }
6424
+ contents = {
6425
+ $metadata: deserializeMetadata(output),
6426
+ Results: undefined,
6427
+ Summary: undefined,
6428
+ };
6429
+ _a = __expectNonNull;
6430
+ _b = __expectObject;
6431
+ return [4, parseBody(output.body, context)];
6432
+ case 1:
6433
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6434
+ if (data.Results !== undefined && data.Results !== null) {
6435
+ contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
6436
+ }
6437
+ if (data.Summary !== undefined && data.Summary !== null) {
6438
+ contents.Summary = deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
6439
+ }
6440
+ return [2, Promise.resolve(contents)];
6441
+ }
6442
+ });
6443
+ }); };
6444
+ var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6445
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
6446
+ var _h;
6447
+ return __generator(this, function (_j) {
6448
+ switch (_j.label) {
6449
+ case 0:
6450
+ _a = [__assign({}, output)];
6451
+ _h = {};
6452
+ return [4, parseBody(output.body, context)];
6453
+ case 1:
6454
+ parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
6455
+ errorCode = "UnknownError";
6456
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6457
+ _b = errorCode;
6458
+ switch (_b) {
6459
+ case "AccessDeniedException": return [3, 2];
6460
+ case "com.amazonaws.location#AccessDeniedException": return [3, 2];
6461
+ case "InternalServerException": return [3, 4];
6462
+ case "com.amazonaws.location#InternalServerException": return [3, 4];
6463
+ case "ResourceNotFoundException": return [3, 6];
6464
+ case "com.amazonaws.location#ResourceNotFoundException": return [3, 6];
6465
+ case "ThrottlingException": return [3, 8];
6466
+ case "com.amazonaws.location#ThrottlingException": return [3, 8];
6467
+ case "ValidationException": return [3, 10];
6468
+ case "com.amazonaws.location#ValidationException": return [3, 10];
6469
+ }
6470
+ return [3, 12];
6471
+ case 2:
6472
+ _c = [{}];
6473
+ return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
6474
+ case 3:
6475
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6476
+ return [3, 13];
6477
+ case 4:
6478
+ _d = [{}];
6479
+ return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
6480
+ case 5:
6481
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6482
+ return [3, 13];
6483
+ case 6:
6484
+ _e = [{}];
6485
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
6486
+ case 7:
6487
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6488
+ return [3, 13];
6489
+ case 8:
6490
+ _f = [{}];
6491
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
6492
+ case 9:
6493
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6494
+ return [3, 13];
6495
+ case 10:
6496
+ _g = [{}];
6497
+ return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
6498
+ case 11:
6499
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
6500
+ return [3, 13];
6501
+ case 12:
6502
+ parsedBody = parsedOutput.body;
6503
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
6504
+ response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
6505
+ _j.label = 13;
6506
+ case 13:
6507
+ message = response.message || response.Message || errorCode;
6508
+ response.message = message;
6509
+ delete response.Message;
6510
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
6511
+ }
6512
+ });
6513
+ }); };
6359
6514
  export var deserializeAws_restJson1SearchPlaceIndexForTextCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6360
6515
  var contents, data, _a, _b;
6361
6516
  return __generator(this, function (_c) {
@@ -7318,8 +7473,12 @@ var serializeAws_restJson1DeviceIdsList = function (input, context) {
7318
7473
  });
7319
7474
  };
7320
7475
  var serializeAws_restJson1DevicePositionUpdate = function (input, context) {
7321
- return __assign(__assign(__assign({}, (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.Position !== undefined &&
7322
- input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })), (input.SampleTime !== undefined &&
7476
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Accuracy !== undefined &&
7477
+ input.Accuracy !== null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.Position !== undefined &&
7478
+ input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })), (input.PositionProperties !== undefined &&
7479
+ input.PositionProperties !== null && {
7480
+ PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
7481
+ })), (input.SampleTime !== undefined &&
7323
7482
  input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }));
7324
7483
  };
7325
7484
  var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
@@ -7379,6 +7538,20 @@ var serializeAws_restJson1Position = function (input, context) {
7379
7538
  return __serializeFloat(entry);
7380
7539
  });
7381
7540
  };
7541
+ var serializeAws_restJson1PositionalAccuracy = function (input, context) {
7542
+ return __assign({}, (input.Horizontal !== undefined &&
7543
+ input.Horizontal !== null && { Horizontal: __serializeFloat(input.Horizontal) }));
7544
+ };
7545
+ var serializeAws_restJson1PropertyMap = function (input, context) {
7546
+ return Object.entries(input).reduce(function (acc, _a) {
7547
+ var _b;
7548
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
7549
+ if (value === null) {
7550
+ return acc;
7551
+ }
7552
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
7553
+ }, {});
7554
+ };
7382
7555
  var serializeAws_restJson1TagMap = function (input, context) {
7383
7556
  return Object.entries(input).reduce(function (acc, _a) {
7384
7557
  var _b;
@@ -7594,10 +7767,16 @@ var deserializeAws_restJson1DataSourceConfiguration = function (output, context)
7594
7767
  };
7595
7768
  var deserializeAws_restJson1DevicePosition = function (output, context) {
7596
7769
  return {
7770
+ Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
7771
+ ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
7772
+ : undefined,
7597
7773
  DeviceId: __expectString(output.DeviceId),
7598
7774
  Position: output.Position !== undefined && output.Position !== null
7599
7775
  ? deserializeAws_restJson1Position(output.Position, context)
7600
7776
  : undefined,
7777
+ PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
7778
+ ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
7779
+ : undefined,
7601
7780
  ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
7602
7781
  ? __expectNonNull(__parseRfc3339DateTime(output.ReceivedTime))
7603
7782
  : undefined,
@@ -7690,10 +7869,16 @@ var deserializeAws_restJson1LineString = function (output, context) {
7690
7869
  };
7691
7870
  var deserializeAws_restJson1ListDevicePositionsResponseEntry = function (output, context) {
7692
7871
  return {
7872
+ Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
7873
+ ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
7874
+ : undefined,
7693
7875
  DeviceId: __expectString(output.DeviceId),
7694
7876
  Position: output.Position !== undefined && output.Position !== null
7695
7877
  ? deserializeAws_restJson1Position(output.Position, context)
7696
7878
  : undefined,
7879
+ PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
7880
+ ? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
7881
+ : undefined,
7697
7882
  SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
7698
7883
  ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
7699
7884
  : undefined,
@@ -7896,6 +8081,21 @@ var deserializeAws_restJson1Position = function (output, context) {
7896
8081
  return __limitedParseDouble(entry);
7897
8082
  });
7898
8083
  };
8084
+ var deserializeAws_restJson1PositionalAccuracy = function (output, context) {
8085
+ return {
8086
+ Horizontal: __limitedParseDouble(output.Horizontal),
8087
+ };
8088
+ };
8089
+ var deserializeAws_restJson1PropertyMap = function (output, context) {
8090
+ return Object.entries(output).reduce(function (acc, _a) {
8091
+ var _b;
8092
+ var _c = __read(_a, 2), key = _c[0], value = _c[1];
8093
+ if (value === null) {
8094
+ return acc;
8095
+ }
8096
+ return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
8097
+ }, {});
8098
+ };
7899
8099
  var deserializeAws_restJson1SearchForPositionResult = function (output, context) {
7900
8100
  return {
7901
8101
  Distance: __limitedParseDouble(output.Distance),
@@ -7914,6 +8114,21 @@ var deserializeAws_restJson1SearchForPositionResultList = function (output, cont
7914
8114
  return deserializeAws_restJson1SearchForPositionResult(entry, context);
7915
8115
  });
7916
8116
  };
8117
+ var deserializeAws_restJson1SearchForSuggestionsResult = function (output, context) {
8118
+ return {
8119
+ Text: __expectString(output.Text),
8120
+ };
8121
+ };
8122
+ var deserializeAws_restJson1SearchForSuggestionsResultList = function (output, context) {
8123
+ return (output || [])
8124
+ .filter(function (e) { return e != null; })
8125
+ .map(function (entry) {
8126
+ if (entry === null) {
8127
+ return null;
8128
+ }
8129
+ return deserializeAws_restJson1SearchForSuggestionsResult(entry, context);
8130
+ });
8131
+ };
7917
8132
  var deserializeAws_restJson1SearchForTextResult = function (output, context) {
7918
8133
  return {
7919
8134
  Distance: __limitedParseDouble(output.Distance),
@@ -7943,6 +8158,23 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionSummary = function (outpu
7943
8158
  : undefined,
7944
8159
  };
7945
8160
  };
8161
+ var deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = function (output, context) {
8162
+ return {
8163
+ BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
8164
+ ? deserializeAws_restJson1Position(output.BiasPosition, context)
8165
+ : undefined,
8166
+ DataSource: __expectString(output.DataSource),
8167
+ FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
8168
+ ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
8169
+ : undefined,
8170
+ FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
8171
+ ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
8172
+ : undefined,
8173
+ Language: __expectString(output.Language),
8174
+ MaxResults: __expectInt32(output.MaxResults),
8175
+ Text: __expectString(output.Text),
8176
+ };
8177
+ };
7946
8178
  var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, context) {
7947
8179
  return {
7948
8180
  BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
@@ -41,6 +41,7 @@ import { ListTrackerConsumersCommandInput, ListTrackerConsumersCommandOutput } f
41
41
  import { ListTrackersCommandInput, ListTrackersCommandOutput } from "./commands/ListTrackersCommand";
42
42
  import { PutGeofenceCommandInput, PutGeofenceCommandOutput } from "./commands/PutGeofenceCommand";
43
43
  import { SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "./commands/SearchPlaceIndexForPositionCommand";
44
+ import { SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput } from "./commands/SearchPlaceIndexForSuggestionsCommand";
44
45
  import { SearchPlaceIndexForTextCommandInput, SearchPlaceIndexForTextCommandOutput } from "./commands/SearchPlaceIndexForTextCommand";
45
46
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
46
47
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -103,6 +104,10 @@ export declare class Location extends LocationClient {
103
104
  * <p>The last geofence that a device was observed within is tracked for 30 days after
104
105
  * the most recent device position update.</p>
105
106
  * </note>
107
+ * <note>
108
+ * <p>Geofence evaluation uses the given device position. It does not account for the
109
+ * optional <code>Accuracy</code> of a <code>DevicePositionUpdate</code>.</p>
110
+ * </note>
106
111
  */
107
112
  batchEvaluateGeofences(args: BatchEvaluateGeofencesCommandInput, options?: __HttpHandlerOptions): Promise<BatchEvaluateGeofencesCommandOutput>;
108
113
  batchEvaluateGeofences(args: BatchEvaluateGeofencesCommandInput, cb: (err: any, data?: BatchEvaluateGeofencesCommandOutput) => void): void;
@@ -128,9 +133,17 @@ export declare class Location extends LocationClient {
128
133
  * <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
129
134
  * When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
130
135
  * and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
131
- * every 30 seconds, only one update per 30 seconds is stored for each unique device ID.
132
- * When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
133
- * collections only if the device has moved more than 30 m (98.4 ft).</p>
136
+ * every 30 seconds, only one update per 30 seconds is stored for each unique device ID.</p>
137
+ * <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
138
+ * collections only if the device has moved more than 30 m (98.4 ft).</p>
139
+ * <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering,
140
+ * location data is stored and evaluated against linked geofence collections only if the
141
+ * device has moved more than the measured accuracy. For example, if two consecutive
142
+ * updates from a device have a horizontal accuracy of 5 m and 10 m, the second update
143
+ * is neither stored or evaluated if the device has moved less than 15 m. If
144
+ * <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering, Amazon Location
145
+ * uses the default value <code>{ "Horizontal": 0}</code> when accuracy is not provided on
146
+ * a <code>DevicePositionUpdate</code>.</p>
134
147
  * </note>
135
148
  */
136
149
  batchUpdateDevicePosition(args: BatchUpdateDevicePositionCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateDevicePositionCommandOutput>;
@@ -187,7 +200,8 @@ export declare class Location extends LocationClient {
187
200
  /**
188
201
  * <p>Creates a place index resource in your AWS account. Use a place index resource to
189
202
  * geocode addresses and other text queries by using the <code>SearchPlaceIndexForText</code> operation,
190
- * and reverse geocode coordinates by using the <code>SearchPlaceIndexForPosition</code> operation.</p>
203
+ * and reverse geocode coordinates by using the <code>SearchPlaceIndexForPosition</code> operation, and
204
+ * enable autosuggestions by using the <code>SearchPlaceIndexForSuggestions</code> operation.</p>
191
205
  */
192
206
  createPlaceIndex(args: CreatePlaceIndexCommandInput, options?: __HttpHandlerOptions): Promise<CreatePlaceIndexCommandOutput>;
193
207
  createPlaceIndex(args: CreatePlaceIndexCommandInput, cb: (err: any, data?: CreatePlaceIndexCommandOutput) => void): void;
@@ -424,6 +438,21 @@ export declare class Location extends LocationClient {
424
438
  searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForPositionCommandOutput>;
425
439
  searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, cb: (err: any, data?: SearchPlaceIndexForPositionCommandOutput) => void): void;
426
440
  searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchPlaceIndexForPositionCommandOutput) => void): void;
441
+ /**
442
+ * <p>Generates suggestions for addresses and points of interest based on partial or
443
+ * misspelled free-form text. This operation is also known as autocomplete, autosuggest,
444
+ * or fuzzy matching.</p>
445
+ * <p>Optional parameters let you narrow your search results by bounding box or
446
+ * country, or bias your search toward a specific position on the globe.</p>
447
+ * <note>
448
+ * <p>You can search for suggested place names near a specified position by using <code>BiasPosition</code>, or
449
+ * filter results within a bounding box by using <code>FilterBBox</code>. These parameters are mutually exclusive;
450
+ * using both <code>BiasPosition</code> and <code>FilterBBox</code> in the same command returns an error.</p>
451
+ * </note>
452
+ */
453
+ searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForSuggestionsCommandOutput>;
454
+ searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, cb: (err: any, data?: SearchPlaceIndexForSuggestionsCommandOutput) => void): void;
455
+ searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchPlaceIndexForSuggestionsCommandOutput) => void): void;
427
456
  /**
428
457
  * <p>Geocodes free-form text, such as an address, name, city, or region to allow you to
429
458
  * search for Places or points of interest. </p>
@@ -48,6 +48,7 @@ import { ListTrackerConsumersCommandInput, ListTrackerConsumersCommandOutput } f
48
48
  import { ListTrackersCommandInput, ListTrackersCommandOutput } from "./commands/ListTrackersCommand";
49
49
  import { PutGeofenceCommandInput, PutGeofenceCommandOutput } from "./commands/PutGeofenceCommand";
50
50
  import { SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "./commands/SearchPlaceIndexForPositionCommand";
51
+ import { SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput } from "./commands/SearchPlaceIndexForSuggestionsCommand";
51
52
  import { SearchPlaceIndexForTextCommandInput, SearchPlaceIndexForTextCommandOutput } from "./commands/SearchPlaceIndexForTextCommand";
52
53
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
53
54
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -56,8 +57,8 @@ import { UpdateMapCommandInput, UpdateMapCommandOutput } from "./commands/Update
56
57
  import { UpdatePlaceIndexCommandInput, UpdatePlaceIndexCommandOutput } from "./commands/UpdatePlaceIndexCommand";
57
58
  import { UpdateRouteCalculatorCommandInput, UpdateRouteCalculatorCommandOutput } from "./commands/UpdateRouteCalculatorCommand";
58
59
  import { UpdateTrackerCommandInput, UpdateTrackerCommandOutput } from "./commands/UpdateTrackerCommand";
59
- export declare type ServiceInputTypes = AssociateTrackerConsumerCommandInput | BatchDeleteDevicePositionHistoryCommandInput | BatchDeleteGeofenceCommandInput | BatchEvaluateGeofencesCommandInput | BatchGetDevicePositionCommandInput | BatchPutGeofenceCommandInput | BatchUpdateDevicePositionCommandInput | CalculateRouteCommandInput | CreateGeofenceCollectionCommandInput | CreateMapCommandInput | CreatePlaceIndexCommandInput | CreateRouteCalculatorCommandInput | CreateTrackerCommandInput | DeleteGeofenceCollectionCommandInput | DeleteMapCommandInput | DeletePlaceIndexCommandInput | DeleteRouteCalculatorCommandInput | DeleteTrackerCommandInput | DescribeGeofenceCollectionCommandInput | DescribeMapCommandInput | DescribePlaceIndexCommandInput | DescribeRouteCalculatorCommandInput | DescribeTrackerCommandInput | DisassociateTrackerConsumerCommandInput | GetDevicePositionCommandInput | GetDevicePositionHistoryCommandInput | GetGeofenceCommandInput | GetMapGlyphsCommandInput | GetMapSpritesCommandInput | GetMapStyleDescriptorCommandInput | GetMapTileCommandInput | ListDevicePositionsCommandInput | ListGeofenceCollectionsCommandInput | ListGeofencesCommandInput | ListMapsCommandInput | ListPlaceIndexesCommandInput | ListRouteCalculatorsCommandInput | ListTagsForResourceCommandInput | ListTrackerConsumersCommandInput | ListTrackersCommandInput | PutGeofenceCommandInput | SearchPlaceIndexForPositionCommandInput | SearchPlaceIndexForTextCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGeofenceCollectionCommandInput | UpdateMapCommandInput | UpdatePlaceIndexCommandInput | UpdateRouteCalculatorCommandInput | UpdateTrackerCommandInput;
60
- export declare type ServiceOutputTypes = AssociateTrackerConsumerCommandOutput | BatchDeleteDevicePositionHistoryCommandOutput | BatchDeleteGeofenceCommandOutput | BatchEvaluateGeofencesCommandOutput | BatchGetDevicePositionCommandOutput | BatchPutGeofenceCommandOutput | BatchUpdateDevicePositionCommandOutput | CalculateRouteCommandOutput | CreateGeofenceCollectionCommandOutput | CreateMapCommandOutput | CreatePlaceIndexCommandOutput | CreateRouteCalculatorCommandOutput | CreateTrackerCommandOutput | DeleteGeofenceCollectionCommandOutput | DeleteMapCommandOutput | DeletePlaceIndexCommandOutput | DeleteRouteCalculatorCommandOutput | DeleteTrackerCommandOutput | DescribeGeofenceCollectionCommandOutput | DescribeMapCommandOutput | DescribePlaceIndexCommandOutput | DescribeRouteCalculatorCommandOutput | DescribeTrackerCommandOutput | DisassociateTrackerConsumerCommandOutput | GetDevicePositionCommandOutput | GetDevicePositionHistoryCommandOutput | GetGeofenceCommandOutput | GetMapGlyphsCommandOutput | GetMapSpritesCommandOutput | GetMapStyleDescriptorCommandOutput | GetMapTileCommandOutput | ListDevicePositionsCommandOutput | ListGeofenceCollectionsCommandOutput | ListGeofencesCommandOutput | ListMapsCommandOutput | ListPlaceIndexesCommandOutput | ListRouteCalculatorsCommandOutput | ListTagsForResourceCommandOutput | ListTrackerConsumersCommandOutput | ListTrackersCommandOutput | PutGeofenceCommandOutput | SearchPlaceIndexForPositionCommandOutput | SearchPlaceIndexForTextCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGeofenceCollectionCommandOutput | UpdateMapCommandOutput | UpdatePlaceIndexCommandOutput | UpdateRouteCalculatorCommandOutput | UpdateTrackerCommandOutput;
60
+ export declare type ServiceInputTypes = AssociateTrackerConsumerCommandInput | BatchDeleteDevicePositionHistoryCommandInput | BatchDeleteGeofenceCommandInput | BatchEvaluateGeofencesCommandInput | BatchGetDevicePositionCommandInput | BatchPutGeofenceCommandInput | BatchUpdateDevicePositionCommandInput | CalculateRouteCommandInput | CreateGeofenceCollectionCommandInput | CreateMapCommandInput | CreatePlaceIndexCommandInput | CreateRouteCalculatorCommandInput | CreateTrackerCommandInput | DeleteGeofenceCollectionCommandInput | DeleteMapCommandInput | DeletePlaceIndexCommandInput | DeleteRouteCalculatorCommandInput | DeleteTrackerCommandInput | DescribeGeofenceCollectionCommandInput | DescribeMapCommandInput | DescribePlaceIndexCommandInput | DescribeRouteCalculatorCommandInput | DescribeTrackerCommandInput | DisassociateTrackerConsumerCommandInput | GetDevicePositionCommandInput | GetDevicePositionHistoryCommandInput | GetGeofenceCommandInput | GetMapGlyphsCommandInput | GetMapSpritesCommandInput | GetMapStyleDescriptorCommandInput | GetMapTileCommandInput | ListDevicePositionsCommandInput | ListGeofenceCollectionsCommandInput | ListGeofencesCommandInput | ListMapsCommandInput | ListPlaceIndexesCommandInput | ListRouteCalculatorsCommandInput | ListTagsForResourceCommandInput | ListTrackerConsumersCommandInput | ListTrackersCommandInput | PutGeofenceCommandInput | SearchPlaceIndexForPositionCommandInput | SearchPlaceIndexForSuggestionsCommandInput | SearchPlaceIndexForTextCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGeofenceCollectionCommandInput | UpdateMapCommandInput | UpdatePlaceIndexCommandInput | UpdateRouteCalculatorCommandInput | UpdateTrackerCommandInput;
61
+ export declare type ServiceOutputTypes = AssociateTrackerConsumerCommandOutput | BatchDeleteDevicePositionHistoryCommandOutput | BatchDeleteGeofenceCommandOutput | BatchEvaluateGeofencesCommandOutput | BatchGetDevicePositionCommandOutput | BatchPutGeofenceCommandOutput | BatchUpdateDevicePositionCommandOutput | CalculateRouteCommandOutput | CreateGeofenceCollectionCommandOutput | CreateMapCommandOutput | CreatePlaceIndexCommandOutput | CreateRouteCalculatorCommandOutput | CreateTrackerCommandOutput | DeleteGeofenceCollectionCommandOutput | DeleteMapCommandOutput | DeletePlaceIndexCommandOutput | DeleteRouteCalculatorCommandOutput | DeleteTrackerCommandOutput | DescribeGeofenceCollectionCommandOutput | DescribeMapCommandOutput | DescribePlaceIndexCommandOutput | DescribeRouteCalculatorCommandOutput | DescribeTrackerCommandOutput | DisassociateTrackerConsumerCommandOutput | GetDevicePositionCommandOutput | GetDevicePositionHistoryCommandOutput | GetGeofenceCommandOutput | GetMapGlyphsCommandOutput | GetMapSpritesCommandOutput | GetMapStyleDescriptorCommandOutput | GetMapTileCommandOutput | ListDevicePositionsCommandOutput | ListGeofenceCollectionsCommandOutput | ListGeofencesCommandOutput | ListMapsCommandOutput | ListPlaceIndexesCommandOutput | ListRouteCalculatorsCommandOutput | ListTagsForResourceCommandOutput | ListTrackerConsumersCommandOutput | ListTrackersCommandOutput | PutGeofenceCommandOutput | SearchPlaceIndexForPositionCommandOutput | SearchPlaceIndexForSuggestionsCommandOutput | SearchPlaceIndexForTextCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGeofenceCollectionCommandOutput | UpdateMapCommandOutput | UpdatePlaceIndexCommandOutput | UpdateRouteCalculatorCommandOutput | UpdateTrackerCommandOutput;
61
62
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
62
63
  /**
63
64
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -28,6 +28,10 @@ export interface BatchEvaluateGeofencesCommandOutput extends BatchEvaluateGeofen
28
28
  * <p>The last geofence that a device was observed within is tracked for 30 days after
29
29
  * the most recent device position update.</p>
30
30
  * </note>
31
+ * <note>
32
+ * <p>Geofence evaluation uses the given device position. It does not account for the
33
+ * optional <code>Accuracy</code> of a <code>DevicePositionUpdate</code>.</p>
34
+ * </note>
31
35
  * @example
32
36
  * Use a bare-bones client and the command you need to make an API call.
33
37
  * ```javascript
@@ -14,9 +14,17 @@ export interface BatchUpdateDevicePositionCommandOutput extends BatchUpdateDevic
14
14
  * <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
15
15
  * When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
16
16
  * and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
17
- * every 30 seconds, only one update per 30 seconds is stored for each unique device ID.
18
- * When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
19
- * collections only if the device has moved more than 30 m (98.4 ft).</p>
17
+ * every 30 seconds, only one update per 30 seconds is stored for each unique device ID.</p>
18
+ * <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
19
+ * collections only if the device has moved more than 30 m (98.4 ft).</p>
20
+ * <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering,
21
+ * location data is stored and evaluated against linked geofence collections only if the
22
+ * device has moved more than the measured accuracy. For example, if two consecutive
23
+ * updates from a device have a horizontal accuracy of 5 m and 10 m, the second update
24
+ * is neither stored or evaluated if the device has moved less than 15 m. If
25
+ * <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering, Amazon Location
26
+ * uses the default value <code>{ "Horizontal": 0}</code> when accuracy is not provided on
27
+ * a <code>DevicePositionUpdate</code>.</p>
20
28
  * </note>
21
29
  * @example
22
30
  * Use a bare-bones client and the command you need to make an API call.
@@ -9,7 +9,8 @@ export interface CreatePlaceIndexCommandOutput extends CreatePlaceIndexResponse,
9
9
  /**
10
10
  * <p>Creates a place index resource in your AWS account. Use a place index resource to
11
11
  * geocode addresses and other text queries by using the <code>SearchPlaceIndexForText</code> operation,
12
- * and reverse geocode coordinates by using the <code>SearchPlaceIndexForPosition</code> operation.</p>
12
+ * and reverse geocode coordinates by using the <code>SearchPlaceIndexForPosition</code> operation, and
13
+ * enable autosuggestions by using the <code>SearchPlaceIndexForSuggestions</code> operation.</p>
13
14
  * @example
14
15
  * Use a bare-bones client and the command you need to make an API call.
15
16
  * ```javascript
@@ -0,0 +1,44 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
4
+ import { SearchPlaceIndexForSuggestionsRequest, SearchPlaceIndexForSuggestionsResponse } from "../models/models_0";
5
+ export interface SearchPlaceIndexForSuggestionsCommandInput extends SearchPlaceIndexForSuggestionsRequest {
6
+ }
7
+ export interface SearchPlaceIndexForSuggestionsCommandOutput extends SearchPlaceIndexForSuggestionsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Generates suggestions for addresses and points of interest based on partial or
11
+ * misspelled free-form text. This operation is also known as autocomplete, autosuggest,
12
+ * or fuzzy matching.</p>
13
+ * <p>Optional parameters let you narrow your search results by bounding box or
14
+ * country, or bias your search toward a specific position on the globe.</p>
15
+ * <note>
16
+ * <p>You can search for suggested place names near a specified position by using <code>BiasPosition</code>, or
17
+ * filter results within a bounding box by using <code>FilterBBox</code>. These parameters are mutually exclusive;
18
+ * using both <code>BiasPosition</code> and <code>FilterBBox</code> in the same command returns an error.</p>
19
+ * </note>
20
+ * @example
21
+ * Use a bare-bones client and the command you need to make an API call.
22
+ * ```javascript
23
+ * import { LocationClient, SearchPlaceIndexForSuggestionsCommand } from "@aws-sdk/client-location"; // ES Modules import
24
+ * // const { LocationClient, SearchPlaceIndexForSuggestionsCommand } = require("@aws-sdk/client-location"); // CommonJS import
25
+ * const client = new LocationClient(config);
26
+ * const command = new SearchPlaceIndexForSuggestionsCommand(input);
27
+ * const response = await client.send(command);
28
+ * ```
29
+ *
30
+ * @see {@link SearchPlaceIndexForSuggestionsCommandInput} for command's `input` shape.
31
+ * @see {@link SearchPlaceIndexForSuggestionsCommandOutput} for command's `response` shape.
32
+ * @see {@link LocationClientResolvedConfig | config} for LocationClient's `config` shape.
33
+ *
34
+ */
35
+ export declare class SearchPlaceIndexForSuggestionsCommand extends $Command<SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput, LocationClientResolvedConfig> {
36
+ readonly input: SearchPlaceIndexForSuggestionsCommandInput;
37
+ constructor(input: SearchPlaceIndexForSuggestionsCommandInput);
38
+ /**
39
+ * @internal
40
+ */
41
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: LocationClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput>;
42
+ private serialize;
43
+ private deserialize;
44
+ }
@@ -40,6 +40,7 @@ export * from "./ListTrackerConsumersCommand";
40
40
  export * from "./ListTrackersCommand";
41
41
  export * from "./PutGeofenceCommand";
42
42
  export * from "./SearchPlaceIndexForPositionCommand";
43
+ export * from "./SearchPlaceIndexForSuggestionsCommand";
43
44
  export * from "./SearchPlaceIndexForTextCommand";
44
45
  export * from "./TagResourceCommand";
45
46
  export * from "./UntagResourceCommand";