@aws-sdk/client-location 3.39.0 → 3.43.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 (73) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/endpoints.js +74 -5
  3. package/dist-cjs/models/models_0.js +7 -1
  4. package/dist-cjs/protocols/Aws_restJson1.js +17 -0
  5. package/dist-cjs/runtimeConfig.browser.js +6 -3
  6. package/dist-cjs/runtimeConfig.js +5 -3
  7. package/dist-es/endpoints.js +74 -5
  8. package/dist-es/models/models_0.js +4 -0
  9. package/dist-es/protocols/Aws_restJson1.js +19 -4
  10. package/dist-es/runtimeConfig.browser.js +3 -2
  11. package/dist-es/runtimeConfig.js +3 -3
  12. package/dist-types/Location.d.ts +8 -7
  13. package/dist-types/LocationClient.d.ts +8 -0
  14. package/dist-types/commands/AssociateTrackerConsumerCommand.d.ts +1 -1
  15. package/dist-types/commands/BatchDeleteDevicePositionHistoryCommand.d.ts +1 -1
  16. package/dist-types/commands/BatchDeleteGeofenceCommand.d.ts +1 -1
  17. package/dist-types/commands/BatchEvaluateGeofencesCommand.d.ts +1 -1
  18. package/dist-types/commands/BatchGetDevicePositionCommand.d.ts +1 -1
  19. package/dist-types/commands/BatchPutGeofenceCommand.d.ts +1 -1
  20. package/dist-types/commands/BatchUpdateDevicePositionCommand.d.ts +1 -1
  21. package/dist-types/commands/CalculateRouteCommand.d.ts +3 -4
  22. package/dist-types/commands/CreateGeofenceCollectionCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateMapCommand.d.ts +1 -1
  24. package/dist-types/commands/CreatePlaceIndexCommand.d.ts +4 -3
  25. package/dist-types/commands/CreateRouteCalculatorCommand.d.ts +1 -1
  26. package/dist-types/commands/CreateTrackerCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteGeofenceCollectionCommand.d.ts +1 -1
  28. package/dist-types/commands/DeleteMapCommand.d.ts +1 -1
  29. package/dist-types/commands/DeletePlaceIndexCommand.d.ts +1 -1
  30. package/dist-types/commands/DeleteRouteCalculatorCommand.d.ts +1 -1
  31. package/dist-types/commands/DeleteTrackerCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeGeofenceCollectionCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeMapCommand.d.ts +1 -1
  34. package/dist-types/commands/DescribePlaceIndexCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeRouteCalculatorCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeTrackerCommand.d.ts +1 -1
  37. package/dist-types/commands/DisassociateTrackerConsumerCommand.d.ts +1 -1
  38. package/dist-types/commands/GetDevicePositionCommand.d.ts +1 -1
  39. package/dist-types/commands/GetDevicePositionHistoryCommand.d.ts +1 -1
  40. package/dist-types/commands/GetGeofenceCommand.d.ts +1 -1
  41. package/dist-types/commands/GetMapGlyphsCommand.d.ts +1 -1
  42. package/dist-types/commands/GetMapSpritesCommand.d.ts +1 -1
  43. package/dist-types/commands/GetMapStyleDescriptorCommand.d.ts +1 -1
  44. package/dist-types/commands/GetMapTileCommand.d.ts +1 -1
  45. package/dist-types/commands/ListDevicePositionsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListGeofenceCollectionsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListGeofencesCommand.d.ts +1 -1
  48. package/dist-types/commands/ListMapsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListPlaceIndexesCommand.d.ts +1 -1
  50. package/dist-types/commands/ListRouteCalculatorsCommand.d.ts +1 -1
  51. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  52. package/dist-types/commands/ListTrackerConsumersCommand.d.ts +1 -1
  53. package/dist-types/commands/ListTrackersCommand.d.ts +1 -1
  54. package/dist-types/commands/PutGeofenceCommand.d.ts +1 -1
  55. package/dist-types/commands/SearchPlaceIndexForPositionCommand.d.ts +1 -1
  56. package/dist-types/commands/SearchPlaceIndexForTextCommand.d.ts +4 -3
  57. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  58. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  59. package/dist-types/commands/UpdateGeofenceCollectionCommand.d.ts +1 -1
  60. package/dist-types/commands/UpdateMapCommand.d.ts +1 -1
  61. package/dist-types/commands/UpdatePlaceIndexCommand.d.ts +1 -1
  62. package/dist-types/commands/UpdateRouteCalculatorCommand.d.ts +1 -1
  63. package/dist-types/commands/UpdateTrackerCommand.d.ts +1 -1
  64. package/dist-types/models/models_0.d.ts +228 -112
  65. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  66. package/dist-types/runtimeConfig.d.ts +2 -0
  67. package/dist-types/runtimeConfig.native.d.ts +2 -0
  68. package/dist-types/ts3.4/LocationClient.d.ts +4 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +30 -1
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  73. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-location
9
+
10
+
11
+
12
+
13
+
14
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients as of 11/18/2021 ([#3039](https://github.com/aws/aws-sdk-js-v3/issues/3039)) ([d2b2c45](https://github.com/aws/aws-sdk-js-v3/commit/d2b2c453315fc7bff798c1fb97c792e59274b4d6))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/client-location
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "geo.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "geo.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "geo-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "geo-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "geo.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "geo.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "geo.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "geo-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "geo-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "geo.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "geo.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "geo.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "geo-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "geo.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "geo.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "geo-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "geo.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "geo.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "geo-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "geo-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "geo.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataSourceConfiguration = exports.CreateMapResponse = exports.CreateMapRequest = exports.MapConfiguration = exports.CreateGeofenceCollectionResponse = exports.CreateGeofenceCollectionRequest = exports.CalculateRouteResponse = exports.CalculateRouteSummary = exports.Leg = exports.Step = exports.LegGeometry = exports.CalculateRouteRequest = exports.CalculateRouteTruckModeOptions = exports.TruckWeight = exports.TruckDimensions = exports.CalculateRouteCarModeOptions = exports.BatchUpdateDevicePositionResponse = exports.BatchUpdateDevicePositionError = exports.BatchUpdateDevicePositionRequest = exports.BatchPutGeofenceResponse = exports.BatchPutGeofenceSuccess = exports.BatchPutGeofenceError = exports.BatchPutGeofenceRequest = exports.BatchPutGeofenceRequestEntry = exports.GeofenceGeometry = exports.BatchGetDevicePositionResponse = exports.BatchGetDevicePositionError = exports.DevicePosition = exports.BatchGetDevicePositionRequest = exports.BatchEvaluateGeofencesResponse = exports.BatchEvaluateGeofencesError = exports.BatchEvaluateGeofencesRequest = exports.DevicePositionUpdate = exports.BatchDeleteGeofenceResponse = exports.BatchDeleteGeofenceError = exports.BatchDeleteGeofenceRequest = exports.BatchDeleteDevicePositionHistoryResponse = exports.BatchDeleteDevicePositionHistoryError = exports.BatchItemError = exports.BatchDeleteDevicePositionHistoryRequest = exports.ValidationException = exports.ValidationExceptionField = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AssociateTrackerConsumerResponse = exports.AssociateTrackerConsumerRequest = exports.AccessDeniedException = void 0;
4
4
  exports.GetDevicePositionHistoryResponse = exports.GetDevicePositionHistoryRequest = exports.GetDevicePositionResponse = exports.GetDevicePositionRequest = exports.UpdateGeofenceCollectionResponse = exports.UpdateGeofenceCollectionRequest = exports.PutGeofenceResponse = exports.PutGeofenceRequest = exports.ListGeofencesResponse = exports.ListGeofenceResponseEntry = exports.ListGeofencesRequest = exports.ListGeofenceCollectionsResponse = exports.ListGeofenceCollectionsResponseEntry = exports.ListGeofenceCollectionsRequest = exports.GetGeofenceResponse = exports.GetGeofenceRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.DisassociateTrackerConsumerResponse = exports.DisassociateTrackerConsumerRequest = exports.DescribeTrackerResponse = exports.DescribeTrackerRequest = exports.DescribeRouteCalculatorResponse = exports.DescribeRouteCalculatorRequest = exports.DescribePlaceIndexResponse = exports.DescribePlaceIndexRequest = exports.DescribeMapResponse = exports.DescribeMapRequest = exports.DescribeGeofenceCollectionResponse = exports.DescribeGeofenceCollectionRequest = exports.DeleteTrackerResponse = exports.DeleteTrackerRequest = exports.DeleteRouteCalculatorResponse = exports.DeleteRouteCalculatorRequest = exports.DeletePlaceIndexResponse = exports.DeletePlaceIndexRequest = exports.DeleteMapResponse = exports.DeleteMapRequest = exports.DeleteGeofenceCollectionResponse = exports.DeleteGeofenceCollectionRequest = exports.CreateTrackerResponse = exports.CreateTrackerRequest = exports.CreateRouteCalculatorResponse = exports.CreateRouteCalculatorRequest = exports.CreatePlaceIndexResponse = exports.CreatePlaceIndexRequest = void 0;
5
- exports.UpdateTrackerResponse = exports.UpdateTrackerRequest = exports.UpdateRouteCalculatorResponse = exports.UpdateRouteCalculatorRequest = exports.UpdatePlaceIndexResponse = exports.UpdatePlaceIndexRequest = exports.SearchPlaceIndexForTextResponse = exports.SearchPlaceIndexForTextSummary = exports.SearchForTextResult = exports.SearchPlaceIndexForTextRequest = exports.SearchPlaceIndexForPositionResponse = exports.SearchPlaceIndexForPositionSummary = exports.SearchForPositionResult = exports.Place = exports.PlaceGeometry = exports.SearchPlaceIndexForPositionRequest = exports.UpdateMapResponse = exports.UpdateMapRequest = exports.ListTrackersResponse = exports.ListTrackersResponseEntry = exports.ListTrackersRequest = exports.ListTrackerConsumersResponse = exports.ListTrackerConsumersRequest = exports.ListRouteCalculatorsResponse = exports.ListRouteCalculatorsResponseEntry = exports.ListRouteCalculatorsRequest = exports.ListPlaceIndexesResponse = exports.ListPlaceIndexesResponseEntry = exports.ListPlaceIndexesRequest = exports.ListMapsResponse = exports.ListMapsResponseEntry = exports.ListMapsRequest = exports.ListDevicePositionsResponse = exports.ListDevicePositionsResponseEntry = exports.ListDevicePositionsRequest = exports.GetMapTileResponse = exports.GetMapTileRequest = exports.GetMapStyleDescriptorResponse = exports.GetMapStyleDescriptorRequest = exports.GetMapSpritesResponse = exports.GetMapSpritesRequest = exports.GetMapGlyphsResponse = exports.GetMapGlyphsRequest = void 0;
5
+ exports.UpdateTrackerResponse = exports.UpdateTrackerRequest = exports.UpdateRouteCalculatorResponse = exports.UpdateRouteCalculatorRequest = exports.UpdatePlaceIndexResponse = exports.UpdatePlaceIndexRequest = exports.SearchPlaceIndexForTextResponse = exports.SearchPlaceIndexForTextSummary = exports.SearchForTextResult = exports.SearchPlaceIndexForTextRequest = exports.SearchPlaceIndexForPositionResponse = exports.SearchPlaceIndexForPositionSummary = exports.SearchForPositionResult = exports.Place = exports.TimeZone = exports.PlaceGeometry = exports.SearchPlaceIndexForPositionRequest = exports.UpdateMapResponse = exports.UpdateMapRequest = exports.ListTrackersResponse = exports.ListTrackersResponseEntry = exports.ListTrackersRequest = exports.ListTrackerConsumersResponse = exports.ListTrackerConsumersRequest = exports.ListRouteCalculatorsResponse = exports.ListRouteCalculatorsResponseEntry = exports.ListRouteCalculatorsRequest = exports.ListPlaceIndexesResponse = exports.ListPlaceIndexesResponseEntry = exports.ListPlaceIndexesRequest = exports.ListMapsResponse = exports.ListMapsResponseEntry = exports.ListMapsRequest = exports.ListDevicePositionsResponse = exports.ListDevicePositionsResponseEntry = exports.ListDevicePositionsRequest = exports.GetMapTileResponse = exports.GetMapTileRequest = exports.GetMapStyleDescriptorResponse = exports.GetMapStyleDescriptorRequest = exports.GetMapSpritesResponse = exports.GetMapSpritesRequest = exports.GetMapGlyphsResponse = exports.GetMapGlyphsRequest = void 0;
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  var AccessDeniedException;
8
8
  (function (AccessDeniedException) {
@@ -817,6 +817,12 @@ var PlaceGeometry;
817
817
  ...(obj.Point && { Point: smithy_client_1.SENSITIVE_STRING }),
818
818
  });
819
819
  })(PlaceGeometry = exports.PlaceGeometry || (exports.PlaceGeometry = {}));
820
+ var TimeZone;
821
+ (function (TimeZone) {
822
+ TimeZone.filterSensitiveLog = (obj) => ({
823
+ ...obj,
824
+ });
825
+ })(TimeZone = exports.TimeZone || (exports.TimeZone = {}));
820
826
  var Place;
821
827
  (function (Place) {
822
828
  Place.filterSensitiveLog = (obj) => ({
@@ -1608,6 +1608,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
1608
1608
  }
1609
1609
  let body;
1610
1610
  body = JSON.stringify({
1611
+ ...(input.Language !== undefined && input.Language !== null && { Language: input.Language }),
1611
1612
  ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1612
1613
  ...(input.Position !== undefined &&
1613
1614
  input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
@@ -1657,6 +1658,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
1657
1658
  input.FilterCountries !== null && {
1658
1659
  FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
1659
1660
  }),
1661
+ ...(input.Language !== undefined && input.Language !== null && { Language: input.Language }),
1660
1662
  ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
1661
1663
  ...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
1662
1664
  });
@@ -6974,6 +6976,7 @@ const deserializeAws_restJson1Place = (output, context) => {
6974
6976
  Geometry: output.Geometry !== undefined && output.Geometry !== null
6975
6977
  ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
6976
6978
  : undefined,
6979
+ Interpolated: smithy_client_1.expectBoolean(output.Interpolated),
6977
6980
  Label: smithy_client_1.expectString(output.Label),
6978
6981
  Municipality: smithy_client_1.expectString(output.Municipality),
6979
6982
  Neighborhood: smithy_client_1.expectString(output.Neighborhood),
@@ -6981,6 +6984,9 @@ const deserializeAws_restJson1Place = (output, context) => {
6981
6984
  Region: smithy_client_1.expectString(output.Region),
6982
6985
  Street: smithy_client_1.expectString(output.Street),
6983
6986
  SubRegion: smithy_client_1.expectString(output.SubRegion),
6987
+ TimeZone: output.TimeZone !== undefined && output.TimeZone !== null
6988
+ ? deserializeAws_restJson1TimeZone(output.TimeZone, context)
6989
+ : undefined,
6984
6990
  };
6985
6991
  };
6986
6992
  const deserializeAws_restJson1PlaceGeometry = (output, context) => {
@@ -7002,6 +7008,7 @@ const deserializeAws_restJson1Position = (output, context) => {
7002
7008
  };
7003
7009
  const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
7004
7010
  return {
7011
+ Distance: smithy_client_1.limitedParseDouble(output.Distance),
7005
7012
  Place: output.Place !== undefined && output.Place !== null
7006
7013
  ? deserializeAws_restJson1Place(output.Place, context)
7007
7014
  : undefined,
@@ -7019,9 +7026,11 @@ const deserializeAws_restJson1SearchForPositionResultList = (output, context) =>
7019
7026
  };
7020
7027
  const deserializeAws_restJson1SearchForTextResult = (output, context) => {
7021
7028
  return {
7029
+ Distance: smithy_client_1.limitedParseDouble(output.Distance),
7022
7030
  Place: output.Place !== undefined && output.Place !== null
7023
7031
  ? deserializeAws_restJson1Place(output.Place, context)
7024
7032
  : undefined,
7033
+ Relevance: smithy_client_1.limitedParseDouble(output.Relevance),
7025
7034
  };
7026
7035
  };
7027
7036
  const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
@@ -7037,6 +7046,7 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
7037
7046
  const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
7038
7047
  return {
7039
7048
  DataSource: smithy_client_1.expectString(output.DataSource),
7049
+ Language: smithy_client_1.expectString(output.Language),
7040
7050
  MaxResults: smithy_client_1.expectInt32(output.MaxResults),
7041
7051
  Position: output.Position !== undefined && output.Position !== null
7042
7052
  ? deserializeAws_restJson1Position(output.Position, context)
@@ -7055,6 +7065,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
7055
7065
  FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
7056
7066
  ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
7057
7067
  : undefined,
7068
+ Language: smithy_client_1.expectString(output.Language),
7058
7069
  MaxResults: smithy_client_1.expectInt32(output.MaxResults),
7059
7070
  ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
7060
7071
  ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
@@ -7096,6 +7107,12 @@ const deserializeAws_restJson1TagMap = (output, context) => {
7096
7107
  };
7097
7108
  }, {});
7098
7109
  };
7110
+ const deserializeAws_restJson1TimeZone = (output, context) => {
7111
+ return {
7112
+ Name: smithy_client_1.expectString(output.Name),
7113
+ Offset: smithy_client_1.expectInt32(output.Offset),
7114
+ };
7115
+ };
7099
7116
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
7100
7117
  return {
7101
7118
  Message: smithy_client_1.expectString(output.message),
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -27,27 +27,96 @@ var partitionHash = {
27
27
  "us-west-2",
28
28
  ],
29
29
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
30
- hostname: "geo.{region}.amazonaws.com",
30
+ variants: [
31
+ {
32
+ hostname: "geo.{region}.amazonaws.com",
33
+ tags: [],
34
+ },
35
+ {
36
+ hostname: "geo-fips.{region}.amazonaws.com",
37
+ tags: ["fips"],
38
+ },
39
+ {
40
+ hostname: "geo-fips.{region}.api.aws",
41
+ tags: ["dualstack", "fips"],
42
+ },
43
+ {
44
+ hostname: "geo.{region}.api.aws",
45
+ tags: ["dualstack"],
46
+ },
47
+ ],
31
48
  },
32
49
  "aws-cn": {
33
50
  regions: ["cn-north-1", "cn-northwest-1"],
34
51
  regionRegex: "^cn\\-\\w+\\-\\d+$",
35
- hostname: "geo.{region}.amazonaws.com.cn",
52
+ variants: [
53
+ {
54
+ hostname: "geo.{region}.amazonaws.com.cn",
55
+ tags: [],
56
+ },
57
+ {
58
+ hostname: "geo-fips.{region}.amazonaws.com.cn",
59
+ tags: ["fips"],
60
+ },
61
+ {
62
+ hostname: "geo-fips.{region}.api.amazonwebservices.com.cn",
63
+ tags: ["dualstack", "fips"],
64
+ },
65
+ {
66
+ hostname: "geo.{region}.api.amazonwebservices.com.cn",
67
+ tags: ["dualstack"],
68
+ },
69
+ ],
36
70
  },
37
71
  "aws-iso": {
38
72
  regions: ["us-iso-east-1", "us-iso-west-1"],
39
73
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
40
- hostname: "geo.{region}.c2s.ic.gov",
74
+ variants: [
75
+ {
76
+ hostname: "geo.{region}.c2s.ic.gov",
77
+ tags: [],
78
+ },
79
+ {
80
+ hostname: "geo-fips.{region}.c2s.ic.gov",
81
+ tags: ["fips"],
82
+ },
83
+ ],
41
84
  },
42
85
  "aws-iso-b": {
43
86
  regions: ["us-isob-east-1"],
44
87
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
45
- hostname: "geo.{region}.sc2s.sgov.gov",
88
+ variants: [
89
+ {
90
+ hostname: "geo.{region}.sc2s.sgov.gov",
91
+ tags: [],
92
+ },
93
+ {
94
+ hostname: "geo-fips.{region}.sc2s.sgov.gov",
95
+ tags: ["fips"],
96
+ },
97
+ ],
46
98
  },
47
99
  "aws-us-gov": {
48
100
  regions: ["us-gov-east-1", "us-gov-west-1"],
49
101
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
50
- hostname: "geo.{region}.amazonaws.com",
102
+ variants: [
103
+ {
104
+ hostname: "geo.{region}.amazonaws.com",
105
+ tags: [],
106
+ },
107
+ {
108
+ hostname: "geo-fips.{region}.amazonaws.com",
109
+ tags: ["fips"],
110
+ },
111
+ {
112
+ hostname: "geo-fips.{region}.api.aws",
113
+ tags: ["dualstack", "fips"],
114
+ },
115
+ {
116
+ hostname: "geo.{region}.api.aws",
117
+ tags: ["dualstack"],
118
+ },
119
+ ],
51
120
  },
52
121
  };
53
122
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -524,6 +524,10 @@ export var PlaceGeometry;
524
524
  (function (PlaceGeometry) {
525
525
  PlaceGeometry.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Point && { Point: SENSITIVE_STRING }))); };
526
526
  })(PlaceGeometry || (PlaceGeometry = {}));
527
+ export var TimeZone;
528
+ (function (TimeZone) {
529
+ TimeZone.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
530
+ })(TimeZone || (TimeZone = {}));
527
531
  export var Place;
528
532
  (function (Place) {
529
533
  Place.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Geometry && { Geometry: PlaceGeometry.filterSensitiveLog(obj.Geometry) }))); };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
3
- import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
6
6
  return __generator(this, function (_c) {
@@ -1807,7 +1807,7 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
1807
1807
  else {
1808
1808
  throw new Error("No value provided for input HTTP label: IndexName.");
1809
1809
  }
1810
- body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Position !== undefined &&
1810
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Position !== undefined &&
1811
1811
  input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })));
1812
1812
  return [4, context.endpoint()];
1813
1813
  case 2:
@@ -1852,12 +1852,12 @@ export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (inpu
1852
1852
  else {
1853
1853
  throw new Error("No value provided for input HTTP label: IndexName.");
1854
1854
  }
1855
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
1855
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
1856
1856
  input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
1857
1857
  input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
1858
1858
  input.FilterCountries !== null && {
1859
1859
  FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
1860
- })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Text !== undefined && input.Text !== null && { Text: input.Text })));
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
1861
  return [4, context.endpoint()];
1862
1862
  case 2:
1863
1863
  resolvedHostname = (_c.sent()).hostname;
@@ -7866,6 +7866,7 @@ var deserializeAws_restJson1Place = function (output, context) {
7866
7866
  Geometry: output.Geometry !== undefined && output.Geometry !== null
7867
7867
  ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
7868
7868
  : undefined,
7869
+ Interpolated: __expectBoolean(output.Interpolated),
7869
7870
  Label: __expectString(output.Label),
7870
7871
  Municipality: __expectString(output.Municipality),
7871
7872
  Neighborhood: __expectString(output.Neighborhood),
@@ -7873,6 +7874,9 @@ var deserializeAws_restJson1Place = function (output, context) {
7873
7874
  Region: __expectString(output.Region),
7874
7875
  Street: __expectString(output.Street),
7875
7876
  SubRegion: __expectString(output.SubRegion),
7877
+ TimeZone: output.TimeZone !== undefined && output.TimeZone !== null
7878
+ ? deserializeAws_restJson1TimeZone(output.TimeZone, context)
7879
+ : undefined,
7876
7880
  };
7877
7881
  };
7878
7882
  var deserializeAws_restJson1PlaceGeometry = function (output, context) {
@@ -7894,6 +7898,7 @@ var deserializeAws_restJson1Position = function (output, context) {
7894
7898
  };
7895
7899
  var deserializeAws_restJson1SearchForPositionResult = function (output, context) {
7896
7900
  return {
7901
+ Distance: __limitedParseDouble(output.Distance),
7897
7902
  Place: output.Place !== undefined && output.Place !== null
7898
7903
  ? deserializeAws_restJson1Place(output.Place, context)
7899
7904
  : undefined,
@@ -7911,9 +7916,11 @@ var deserializeAws_restJson1SearchForPositionResultList = function (output, cont
7911
7916
  };
7912
7917
  var deserializeAws_restJson1SearchForTextResult = function (output, context) {
7913
7918
  return {
7919
+ Distance: __limitedParseDouble(output.Distance),
7914
7920
  Place: output.Place !== undefined && output.Place !== null
7915
7921
  ? deserializeAws_restJson1Place(output.Place, context)
7916
7922
  : undefined,
7923
+ Relevance: __limitedParseDouble(output.Relevance),
7917
7924
  };
7918
7925
  };
7919
7926
  var deserializeAws_restJson1SearchForTextResultList = function (output, context) {
@@ -7929,6 +7936,7 @@ var deserializeAws_restJson1SearchForTextResultList = function (output, context)
7929
7936
  var deserializeAws_restJson1SearchPlaceIndexForPositionSummary = function (output, context) {
7930
7937
  return {
7931
7938
  DataSource: __expectString(output.DataSource),
7939
+ Language: __expectString(output.Language),
7932
7940
  MaxResults: __expectInt32(output.MaxResults),
7933
7941
  Position: output.Position !== undefined && output.Position !== null
7934
7942
  ? deserializeAws_restJson1Position(output.Position, context)
@@ -7947,6 +7955,7 @@ var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, c
7947
7955
  FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
7948
7956
  ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
7949
7957
  : undefined,
7958
+ Language: __expectString(output.Language),
7950
7959
  MaxResults: __expectInt32(output.MaxResults),
7951
7960
  ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
7952
7961
  ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
@@ -7987,6 +7996,12 @@ var deserializeAws_restJson1TagMap = function (output, context) {
7987
7996
  return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
7988
7997
  }, {});
7989
7998
  };
7999
+ var deserializeAws_restJson1TimeZone = function (output, context) {
8000
+ return {
8001
+ Name: __expectString(output.Name),
8002
+ Offset: __expectInt32(output.Offset),
8003
+ };
8004
+ };
7990
8005
  var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
7991
8006
  return {
7992
8007
  Message: __expectString(output.message),
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
21
  };
@@ -141,8 +141,7 @@ export declare class Location extends LocationClient {
141
141
  * <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
142
142
  * <code>DeparturePostiton</code> and <code>DestinationPosition</code>. Requires that
143
143
  * you first <a href="https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html">create a
144
- * route calculator resource</a>
145
- * </p>
144
+ * route calculator resource</a>.</p>
146
145
  * <p>By default, a request that doesn't specify a departure time uses the best time of day
147
146
  * to travel with the best traffic conditions when calculating the route.</p>
148
147
  * <p>Additional options include:</p>
@@ -155,7 +154,7 @@ export declare class Location extends LocationClient {
155
154
  * <note>
156
155
  * <p>You can't specify both <code>DepartureTime</code> and
157
156
  * <code>DepartureNow</code> in a single request. Specifying both
158
- * parameters returns an error message.</p>
157
+ * parameters returns a validation error.</p>
159
158
  * </note>
160
159
  * </li>
161
160
  * <li>
@@ -186,8 +185,9 @@ export declare class Location extends LocationClient {
186
185
  createMap(args: CreateMapCommandInput, cb: (err: any, data?: CreateMapCommandOutput) => void): void;
187
186
  createMap(args: CreateMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMapCommandOutput) => void): void;
188
187
  /**
189
- * <p>Creates a place index resource in your AWS account, which supports functions with
190
- * geospatial data sourced from your chosen data provider.</p>
188
+ * <p>Creates a place index resource in your AWS account. Use a place index resource to
189
+ * 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>
191
191
  */
192
192
  createPlaceIndex(args: CreatePlaceIndexCommandInput, options?: __HttpHandlerOptions): Promise<CreatePlaceIndexCommandOutput>;
193
193
  createPlaceIndex(args: CreatePlaceIndexCommandInput, cb: (err: any, data?: CreatePlaceIndexCommandOutput) => void): void;
@@ -427,13 +427,14 @@ export declare class Location extends LocationClient {
427
427
  /**
428
428
  * <p>Geocodes free-form text, such as an address, name, city, or region to allow you to
429
429
  * search for Places or points of interest. </p>
430
- * <p>Includes the option to apply additional parameters to narrow your list of
431
- * results.</p>
430
+ * <p>Optional parameters let you narrow your search results by bounding box or
431
+ * country, or bias your search toward a specific position on the globe.</p>
432
432
  * <note>
433
433
  * <p>You can search for places near a given position using <code>BiasPosition</code>, or
434
434
  * filter results within a bounding box using <code>FilterBBox</code>. Providing both
435
435
  * parameters simultaneously returns an error.</p>
436
436
  * </note>
437
+ * <p>Search results are returned in order of highest to lowest relevance.</p>
437
438
  */
438
439
  searchPlaceIndexForText(args: SearchPlaceIndexForTextCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForTextCommandOutput>;
439
440
  searchPlaceIndexForText(args: SearchPlaceIndexForTextCommandInput, cb: (err: any, data?: SearchPlaceIndexForTextCommandOutput) => void): void;