@aws-sdk/client-location 3.350.0 → 3.353.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.
@@ -156,6 +156,7 @@ exports.GeofenceGeometryFilterSensitiveLog = GeofenceGeometryFilterSensitiveLog;
156
156
  const BatchPutGeofenceRequestEntryFilterSensitiveLog = (obj) => ({
157
157
  ...obj,
158
158
  ...(obj.Geometry && { Geometry: (0, exports.GeofenceGeometryFilterSensitiveLog)(obj.Geometry) }),
159
+ ...(obj.GeofenceProperties && { GeofenceProperties: smithy_client_1.SENSITIVE_STRING }),
159
160
  });
160
161
  exports.BatchPutGeofenceRequestEntryFilterSensitiveLog = BatchPutGeofenceRequestEntryFilterSensitiveLog;
161
162
  const BatchPutGeofenceRequestFilterSensitiveLog = (obj) => ({
@@ -220,11 +221,13 @@ exports.CalculateRouteMatrixResponseFilterSensitiveLog = CalculateRouteMatrixRes
220
221
  const GetGeofenceResponseFilterSensitiveLog = (obj) => ({
221
222
  ...obj,
222
223
  ...(obj.Geometry && { Geometry: (0, exports.GeofenceGeometryFilterSensitiveLog)(obj.Geometry) }),
224
+ ...(obj.GeofenceProperties && { GeofenceProperties: smithy_client_1.SENSITIVE_STRING }),
223
225
  });
224
226
  exports.GetGeofenceResponseFilterSensitiveLog = GetGeofenceResponseFilterSensitiveLog;
225
227
  const ListGeofenceResponseEntryFilterSensitiveLog = (obj) => ({
226
228
  ...obj,
227
229
  ...(obj.Geometry && { Geometry: (0, exports.GeofenceGeometryFilterSensitiveLog)(obj.Geometry) }),
230
+ ...(obj.GeofenceProperties && { GeofenceProperties: smithy_client_1.SENSITIVE_STRING }),
228
231
  });
229
232
  exports.ListGeofenceResponseEntryFilterSensitiveLog = ListGeofenceResponseEntryFilterSensitiveLog;
230
233
  const ListGeofencesResponseFilterSensitiveLog = (obj) => ({
@@ -235,6 +238,7 @@ exports.ListGeofencesResponseFilterSensitiveLog = ListGeofencesResponseFilterSen
235
238
  const PutGeofenceRequestFilterSensitiveLog = (obj) => ({
236
239
  ...obj,
237
240
  ...(obj.Geometry && { Geometry: (0, exports.GeofenceGeometryFilterSensitiveLog)(obj.Geometry) }),
241
+ ...(obj.GeofenceProperties && { GeofenceProperties: smithy_client_1.SENSITIVE_STRING }),
238
242
  });
239
243
  exports.PutGeofenceRequestFilterSensitiveLog = PutGeofenceRequestFilterSensitiveLog;
240
244
  const GetDevicePositionResponseFilterSensitiveLog = (obj) => ({
@@ -1345,6 +1345,7 @@ const se_PutGeofenceCommand = async (input, context) => {
1345
1345
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
1346
1346
  let body;
1347
1347
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1348
+ GeofenceProperties: (_) => (0, smithy_client_1._json)(_),
1348
1349
  Geometry: (_) => se_GeofenceGeometry(_, context),
1349
1350
  }));
1350
1351
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1409,6 +1410,7 @@ const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
1409
1410
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1410
1411
  BiasPosition: (_) => se_Position(_, context),
1411
1412
  FilterBBox: (_) => se_BoundingBox(_, context),
1413
+ FilterCategories: (_) => (0, smithy_client_1._json)(_),
1412
1414
  FilterCountries: (_) => (0, smithy_client_1._json)(_),
1413
1415
  Language: [],
1414
1416
  MaxResults: [],
@@ -1444,6 +1446,7 @@ const se_SearchPlaceIndexForTextCommand = async (input, context) => {
1444
1446
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1445
1447
  BiasPosition: (_) => se_Position(_, context),
1446
1448
  FilterBBox: (_) => se_BoundingBox(_, context),
1449
+ FilterCategories: (_) => (0, smithy_client_1._json)(_),
1447
1450
  FilterCountries: (_) => (0, smithy_client_1._json)(_),
1448
1451
  Language: [],
1449
1452
  MaxResults: [],
@@ -3172,6 +3175,7 @@ const de_GetGeofenceCommand = async (output, context) => {
3172
3175
  const doc = (0, smithy_client_1.take)(data, {
3173
3176
  CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3174
3177
  GeofenceId: smithy_client_1.expectString,
3178
+ GeofenceProperties: smithy_client_1._json,
3175
3179
  Geometry: (_) => de_GeofenceGeometry(_, context),
3176
3180
  Status: smithy_client_1.expectString,
3177
3181
  UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
@@ -4546,6 +4550,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
4546
4550
  const se_BatchPutGeofenceRequestEntry = (input, context) => {
4547
4551
  return (0, smithy_client_1.take)(input, {
4548
4552
  GeofenceId: [],
4553
+ GeofenceProperties: smithy_client_1._json,
4549
4554
  Geometry: (_) => se_GeofenceGeometry(_, context),
4550
4555
  });
4551
4556
  };
@@ -4831,6 +4836,7 @@ const de_ListGeofenceResponseEntry = (output, context) => {
4831
4836
  return (0, smithy_client_1.take)(output, {
4832
4837
  CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4833
4838
  GeofenceId: smithy_client_1.expectString,
4839
+ GeofenceProperties: smithy_client_1._json,
4834
4840
  Geometry: (_) => de_GeofenceGeometry(_, context),
4835
4841
  Status: smithy_client_1.expectString,
4836
4842
  UpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
@@ -4937,6 +4943,7 @@ const de_ListTrackersResponseEntryList = (output, context) => {
4937
4943
  const de_Place = (output, context) => {
4938
4944
  return (0, smithy_client_1.take)(output, {
4939
4945
  AddressNumber: smithy_client_1.expectString,
4946
+ Categories: smithy_client_1._json,
4940
4947
  Country: smithy_client_1.expectString,
4941
4948
  Geometry: (_) => de_PlaceGeometry(_, context),
4942
4949
  Interpolated: smithy_client_1.expectBoolean,
@@ -4947,6 +4954,7 @@ const de_Place = (output, context) => {
4947
4954
  Region: smithy_client_1.expectString,
4948
4955
  Street: smithy_client_1.expectString,
4949
4956
  SubRegion: smithy_client_1.expectString,
4957
+ SupplementalCategories: smithy_client_1._json,
4950
4958
  TimeZone: smithy_client_1._json,
4951
4959
  UnitNumber: smithy_client_1.expectString,
4952
4960
  UnitType: smithy_client_1.expectString,
@@ -5045,6 +5053,7 @@ const de_SearchPlaceIndexForSuggestionsSummary = (output, context) => {
5045
5053
  BiasPosition: (_) => de_Position(_, context),
5046
5054
  DataSource: smithy_client_1.expectString,
5047
5055
  FilterBBox: (_) => de_BoundingBox(_, context),
5056
+ FilterCategories: smithy_client_1._json,
5048
5057
  FilterCountries: smithy_client_1._json,
5049
5058
  Language: smithy_client_1.expectString,
5050
5059
  MaxResults: smithy_client_1.expectInt32,
@@ -5056,6 +5065,7 @@ const de_SearchPlaceIndexForTextSummary = (output, context) => {
5056
5065
  BiasPosition: (_) => de_Position(_, context),
5057
5066
  DataSource: smithy_client_1.expectString,
5058
5067
  FilterBBox: (_) => de_BoundingBox(_, context),
5068
+ FilterCategories: smithy_client_1._json,
5059
5069
  FilterCountries: smithy_client_1._json,
5060
5070
  Language: smithy_client_1.expectString,
5061
5071
  MaxResults: smithy_client_1.expectInt32,
@@ -137,6 +137,7 @@ export const GeofenceGeometryFilterSensitiveLog = (obj) => ({
137
137
  export const BatchPutGeofenceRequestEntryFilterSensitiveLog = (obj) => ({
138
138
  ...obj,
139
139
  ...(obj.Geometry && { Geometry: GeofenceGeometryFilterSensitiveLog(obj.Geometry) }),
140
+ ...(obj.GeofenceProperties && { GeofenceProperties: SENSITIVE_STRING }),
140
141
  });
141
142
  export const BatchPutGeofenceRequestFilterSensitiveLog = (obj) => ({
142
143
  ...obj,
@@ -190,10 +191,12 @@ export const CalculateRouteMatrixResponseFilterSensitiveLog = (obj) => ({
190
191
  export const GetGeofenceResponseFilterSensitiveLog = (obj) => ({
191
192
  ...obj,
192
193
  ...(obj.Geometry && { Geometry: GeofenceGeometryFilterSensitiveLog(obj.Geometry) }),
194
+ ...(obj.GeofenceProperties && { GeofenceProperties: SENSITIVE_STRING }),
193
195
  });
194
196
  export const ListGeofenceResponseEntryFilterSensitiveLog = (obj) => ({
195
197
  ...obj,
196
198
  ...(obj.Geometry && { Geometry: GeofenceGeometryFilterSensitiveLog(obj.Geometry) }),
199
+ ...(obj.GeofenceProperties && { GeofenceProperties: SENSITIVE_STRING }),
197
200
  });
198
201
  export const ListGeofencesResponseFilterSensitiveLog = (obj) => ({
199
202
  ...obj,
@@ -202,6 +205,7 @@ export const ListGeofencesResponseFilterSensitiveLog = (obj) => ({
202
205
  export const PutGeofenceRequestFilterSensitiveLog = (obj) => ({
203
206
  ...obj,
204
207
  ...(obj.Geometry && { Geometry: GeofenceGeometryFilterSensitiveLog(obj.Geometry) }),
208
+ ...(obj.GeofenceProperties && { GeofenceProperties: SENSITIVE_STRING }),
205
209
  });
206
210
  export const GetDevicePositionResponseFilterSensitiveLog = (obj) => ({
207
211
  ...obj,
@@ -1294,6 +1294,7 @@ export const se_PutGeofenceCommand = async (input, context) => {
1294
1294
  resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
1295
1295
  let body;
1296
1296
  body = JSON.stringify(take(input, {
1297
+ GeofenceProperties: (_) => _json(_),
1297
1298
  Geometry: (_) => se_GeofenceGeometry(_, context),
1298
1299
  }));
1299
1300
  let { hostname: resolvedHostname } = await context.endpoint();
@@ -1356,6 +1357,7 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) =
1356
1357
  body = JSON.stringify(take(input, {
1357
1358
  BiasPosition: (_) => se_Position(_, context),
1358
1359
  FilterBBox: (_) => se_BoundingBox(_, context),
1360
+ FilterCategories: (_) => _json(_),
1359
1361
  FilterCountries: (_) => _json(_),
1360
1362
  Language: [],
1361
1363
  MaxResults: [],
@@ -1390,6 +1392,7 @@ export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
1390
1392
  body = JSON.stringify(take(input, {
1391
1393
  BiasPosition: (_) => se_Position(_, context),
1392
1394
  FilterBBox: (_) => se_BoundingBox(_, context),
1395
+ FilterCategories: (_) => _json(_),
1393
1396
  FilterCountries: (_) => _json(_),
1394
1397
  Language: [],
1395
1398
  MaxResults: [],
@@ -3079,6 +3082,7 @@ export const de_GetGeofenceCommand = async (output, context) => {
3079
3082
  const doc = take(data, {
3080
3083
  CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3081
3084
  GeofenceId: __expectString,
3085
+ GeofenceProperties: _json,
3082
3086
  Geometry: (_) => de_GeofenceGeometry(_, context),
3083
3087
  Status: __expectString,
3084
3088
  UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -4425,6 +4429,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
4425
4429
  const se_BatchPutGeofenceRequestEntry = (input, context) => {
4426
4430
  return take(input, {
4427
4431
  GeofenceId: [],
4432
+ GeofenceProperties: _json,
4428
4433
  Geometry: (_) => se_GeofenceGeometry(_, context),
4429
4434
  });
4430
4435
  };
@@ -4710,6 +4715,7 @@ const de_ListGeofenceResponseEntry = (output, context) => {
4710
4715
  return take(output, {
4711
4716
  CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4712
4717
  GeofenceId: __expectString,
4718
+ GeofenceProperties: _json,
4713
4719
  Geometry: (_) => de_GeofenceGeometry(_, context),
4714
4720
  Status: __expectString,
4715
4721
  UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -4816,6 +4822,7 @@ const de_ListTrackersResponseEntryList = (output, context) => {
4816
4822
  const de_Place = (output, context) => {
4817
4823
  return take(output, {
4818
4824
  AddressNumber: __expectString,
4825
+ Categories: _json,
4819
4826
  Country: __expectString,
4820
4827
  Geometry: (_) => de_PlaceGeometry(_, context),
4821
4828
  Interpolated: __expectBoolean,
@@ -4826,6 +4833,7 @@ const de_Place = (output, context) => {
4826
4833
  Region: __expectString,
4827
4834
  Street: __expectString,
4828
4835
  SubRegion: __expectString,
4836
+ SupplementalCategories: _json,
4829
4837
  TimeZone: _json,
4830
4838
  UnitNumber: __expectString,
4831
4839
  UnitType: __expectString,
@@ -4924,6 +4932,7 @@ const de_SearchPlaceIndexForSuggestionsSummary = (output, context) => {
4924
4932
  BiasPosition: (_) => de_Position(_, context),
4925
4933
  DataSource: __expectString,
4926
4934
  FilterBBox: (_) => de_BoundingBox(_, context),
4935
+ FilterCategories: _json,
4927
4936
  FilterCountries: _json,
4928
4937
  Language: __expectString,
4929
4938
  MaxResults: __expectInt32,
@@ -4935,6 +4944,7 @@ const de_SearchPlaceIndexForTextSummary = (output, context) => {
4935
4944
  BiasPosition: (_) => de_Position(_, context),
4936
4945
  DataSource: __expectString,
4937
4946
  FilterBBox: (_) => de_BoundingBox(_, context),
4947
+ FilterCategories: _json,
4938
4948
  FilterCountries: _json,
4939
4949
  Language: __expectString,
4940
4950
  MaxResults: __expectInt32,
@@ -51,6 +51,9 @@ export interface BatchPutGeofenceCommandOutput extends BatchPutGeofenceResponse,
51
51
  * Radius: Number("double"), // required
52
52
  * },
53
53
  * },
54
+ * GeofenceProperties: { // PropertyMap
55
+ * "<keys>": "STRING_VALUE",
56
+ * },
54
57
  * },
55
58
  * ],
56
59
  * };
@@ -23,24 +23,28 @@ export interface BatchUpdateDevicePositionCommandOutput extends BatchUpdateDevic
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Uploads position update data for one or more devices to a tracker resource. Amazon Location
27
- * uses the data when it reports the last known device position and position history. Amazon Location retains location data for 30
28
- * days.</p>
26
+ * <p>Uploads position update data for one or more devices to a tracker resource (up to
27
+ * 10 devices per batch). Amazon Location uses the data when it reports the last known device
28
+ * position and position history. Amazon Location retains location data for 30 days.</p>
29
29
  * <note>
30
- * <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
31
- * When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
32
- * and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
33
- * every 30 seconds, only one update per 30 seconds is stored for each unique device ID.</p>
34
- * <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
30
+ * <p>Position updates are handled based on the <code>PositionFiltering</code>
31
+ * property of the tracker. When <code>PositionFiltering</code> is set to
32
+ * <code>TimeBased</code>, updates are evaluated against linked geofence collections,
33
+ * and location data is stored at a maximum of one position per 30 second interval.
34
+ * If your update frequency is more often than every 30 seconds, only one update per
35
+ * 30 seconds is stored for each unique device ID.</p>
36
+ * <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code>
37
+ * filtering, location data is stored and evaluated against linked geofence
35
38
  * collections only if the device has moved more than 30 m (98.4 ft).</p>
36
- * <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering,
37
- * location data is stored and evaluated against linked geofence collections only if the
38
- * device has moved more than the measured accuracy. For example, if two consecutive
39
- * updates from a device have a horizontal accuracy of 5 m and 10 m, the second update
40
- * is neither stored or evaluated if the device has moved less than 15 m. If
41
- * <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering, Amazon Location
42
- * uses the default value <code>\{ "Horizontal": 0\}</code> when accuracy is not provided on
43
- * a <code>DevicePositionUpdate</code>.</p>
39
+ * <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code>
40
+ * filtering, location data is stored and evaluated against linked geofence
41
+ * collections only if the device has moved more than the measured accuracy. For
42
+ * example, if two consecutive updates from a device have a horizontal accuracy of
43
+ * 5 m and 10 m, the second update is neither stored or evaluated if the device has
44
+ * moved less than 15 m. If <code>PositionFiltering</code> is set to
45
+ * <code>AccuracyBased</code> filtering, Amazon Location uses the default value
46
+ * <code>\{ "Horizontal": 0\}</code> when accuracy is not provided on a
47
+ * <code>DevicePositionUpdate</code>.</p>
44
48
  * </note>
45
49
  * @example
46
50
  * Use a bare-bones client and the command you need to make an API call.
@@ -56,6 +56,9 @@ export interface GetGeofenceCommandOutput extends GetGeofenceResponse, __Metadat
56
56
  * // Status: "STRING_VALUE", // required
57
57
  * // CreateTime: new Date("TIMESTAMP"), // required
58
58
  * // UpdateTime: new Date("TIMESTAMP"), // required
59
+ * // GeofenceProperties: { // PropertyMap
60
+ * // "<keys>": "STRING_VALUE",
61
+ * // },
59
62
  * // };
60
63
  *
61
64
  * ```
@@ -76,6 +76,12 @@ export interface GetPlaceCommandOutput extends GetPlaceResponse, __MetadataBeare
76
76
  * // },
77
77
  * // UnitType: "STRING_VALUE",
78
78
  * // UnitNumber: "STRING_VALUE",
79
+ * // Categories: [ // PlaceCategoryList
80
+ * // "STRING_VALUE",
81
+ * // ],
82
+ * // SupplementalCategories: [ // PlaceSupplementalCategoryList
83
+ * // "STRING_VALUE",
84
+ * // ],
79
85
  * // },
80
86
  * // };
81
87
  *
@@ -59,6 +59,9 @@ export interface ListGeofencesCommandOutput extends ListGeofencesResponse, __Met
59
59
  * // Status: "STRING_VALUE", // required
60
60
  * // CreateTime: new Date("TIMESTAMP"), // required
61
61
  * // UpdateTime: new Date("TIMESTAMP"), // required
62
+ * // GeofenceProperties: { // PropertyMap
63
+ * // "<keys>": "STRING_VALUE",
64
+ * // },
62
65
  * // },
63
66
  * // ],
64
67
  * // NextToken: "STRING_VALUE",
@@ -49,6 +49,9 @@ export interface PutGeofenceCommandOutput extends PutGeofenceResponse, __Metadat
49
49
  * Radius: Number("double"), // required
50
50
  * },
51
51
  * },
52
+ * GeofenceProperties: { // PropertyMap
53
+ * "<keys>": "STRING_VALUE",
54
+ * },
52
55
  * };
53
56
  * const command = new PutGeofenceCommand(input);
54
57
  * const response = await client.send(command);
@@ -74,6 +74,12 @@ export interface SearchPlaceIndexForPositionCommandOutput extends SearchPlaceInd
74
74
  * // },
75
75
  * // UnitType: "STRING_VALUE",
76
76
  * // UnitNumber: "STRING_VALUE",
77
+ * // Categories: [ // PlaceCategoryList
78
+ * // "STRING_VALUE",
79
+ * // ],
80
+ * // SupplementalCategories: [ // PlaceSupplementalCategoryList
81
+ * // "STRING_VALUE",
82
+ * // ],
77
83
  * // },
78
84
  * // Distance: Number("double"), // required
79
85
  * // PlaceId: "STRING_VALUE",
@@ -55,6 +55,9 @@ export interface SearchPlaceIndexForSuggestionsCommandOutput extends SearchPlace
55
55
  * ],
56
56
  * MaxResults: Number("int"),
57
57
  * Language: "STRING_VALUE",
58
+ * FilterCategories: [ // FilterPlaceCategoryList
59
+ * "STRING_VALUE",
60
+ * ],
58
61
  * };
59
62
  * const command = new SearchPlaceIndexForSuggestionsCommand(input);
60
63
  * const response = await client.send(command);
@@ -73,11 +76,20 @@ export interface SearchPlaceIndexForSuggestionsCommandOutput extends SearchPlace
73
76
  * // MaxResults: Number("int"),
74
77
  * // DataSource: "STRING_VALUE", // required
75
78
  * // Language: "STRING_VALUE",
79
+ * // FilterCategories: [ // FilterPlaceCategoryList
80
+ * // "STRING_VALUE",
81
+ * // ],
76
82
  * // },
77
83
  * // Results: [ // SearchForSuggestionsResultList // required
78
84
  * // { // SearchForSuggestionsResult
79
85
  * // Text: "STRING_VALUE", // required
80
86
  * // PlaceId: "STRING_VALUE",
87
+ * // Categories: [ // PlaceCategoryList
88
+ * // "STRING_VALUE",
89
+ * // ],
90
+ * // SupplementalCategories: [ // PlaceSupplementalCategoryList
91
+ * // "STRING_VALUE",
92
+ * // ],
81
93
  * // },
82
94
  * // ],
83
95
  * // };
@@ -53,6 +53,9 @@ export interface SearchPlaceIndexForTextCommandOutput extends SearchPlaceIndexFo
53
53
  * ],
54
54
  * MaxResults: Number("int"),
55
55
  * Language: "STRING_VALUE",
56
+ * FilterCategories: [ // FilterPlaceCategoryList
57
+ * "STRING_VALUE",
58
+ * ],
56
59
  * };
57
60
  * const command = new SearchPlaceIndexForTextCommand(input);
58
61
  * const response = await client.send(command);
@@ -74,6 +77,9 @@ export interface SearchPlaceIndexForTextCommandOutput extends SearchPlaceIndexFo
74
77
  * // ],
75
78
  * // DataSource: "STRING_VALUE", // required
76
79
  * // Language: "STRING_VALUE",
80
+ * // FilterCategories: [ // FilterPlaceCategoryList
81
+ * // "STRING_VALUE",
82
+ * // ],
77
83
  * // },
78
84
  * // Results: [ // SearchForTextResultList // required
79
85
  * // { // SearchForTextResult
@@ -99,6 +105,12 @@ export interface SearchPlaceIndexForTextCommandOutput extends SearchPlaceIndexFo
99
105
  * // },
100
106
  * // UnitType: "STRING_VALUE",
101
107
  * // UnitNumber: "STRING_VALUE",
108
+ * // Categories: [ // PlaceCategoryList
109
+ * // "STRING_VALUE",
110
+ * // ],
111
+ * // SupplementalCategories: [ // PlaceSupplementalCategoryList
112
+ * // "STRING_VALUE",
113
+ * // ],
102
114
  * // },
103
115
  * // Distance: Number("double"),
104
116
  * // Relevance: Number("double"),
@@ -903,6 +903,11 @@ export interface BatchPutGeofenceRequestEntry {
903
903
  * </note>
904
904
  */
905
905
  Geometry: GeofenceGeometry | undefined;
906
+ /**
907
+ * <p>Specifies additional user-defined properties to store with the Geofence. An array
908
+ * of key-value pairs.</p>
909
+ */
910
+ GeofenceProperties?: Record<string, string>;
906
911
  }
907
912
  /**
908
913
  * @public
@@ -978,7 +983,7 @@ export interface BatchUpdateDevicePositionRequest {
978
983
  */
979
984
  TrackerName: string | undefined;
980
985
  /**
981
- * <p>Contains the position update details for each device.</p>
986
+ * <p>Contains the position update details for each device, up to 10 devices.</p>
982
987
  */
983
988
  Updates: DevicePositionUpdate[] | undefined;
984
989
  }
@@ -3303,6 +3308,11 @@ export interface GetGeofenceResponse {
3303
3308
  * </p>
3304
3309
  */
3305
3310
  UpdateTime: Date | undefined;
3311
+ /**
3312
+ * <p>Contains additional user-defined properties stored with the geofence. An array of
3313
+ * key-value pairs.</p>
3314
+ */
3315
+ GeofenceProperties?: Record<string, string>;
3306
3316
  }
3307
3317
  /**
3308
3318
  * @public
@@ -3450,6 +3460,11 @@ export interface ListGeofenceResponseEntry {
3450
3460
  * </p>
3451
3461
  */
3452
3462
  UpdateTime: Date | undefined;
3463
+ /**
3464
+ * <p>Contains additional user-defined properties stored with the geofence. An array of
3465
+ * key-value pairs.</p>
3466
+ */
3467
+ GeofenceProperties?: Record<string, string>;
3453
3468
  }
3454
3469
  /**
3455
3470
  * @public
@@ -3486,6 +3501,11 @@ export interface PutGeofenceRequest {
3486
3501
  * </note>
3487
3502
  */
3488
3503
  Geometry: GeofenceGeometry | undefined;
3504
+ /**
3505
+ * <p>Specifies additional user-defined properties to store with the Geofence. An array
3506
+ * of key-value pairs.</p>
3507
+ */
3508
+ GeofenceProperties?: Record<string, string>;
3489
3509
  }
3490
3510
  /**
3491
3511
  * @public
@@ -4070,23 +4090,38 @@ export interface Place {
4070
4090
  Interpolated?: boolean;
4071
4091
  /**
4072
4092
  * <p>The time zone in which the <code>Place</code> is located. Returned only when using
4073
- * HERE as the selected partner.</p>
4093
+ * HERE or Grab as the selected partner.</p>
4074
4094
  */
4075
4095
  TimeZone?: TimeZone;
4076
4096
  /**
4077
4097
  * <p>For addresses with a <code>UnitNumber</code>, the type of unit. For example,
4078
4098
  * <code>Apartment</code>.</p>
4099
+ * <note>
4100
+ * <p>Returned only for a place index that uses Esri as a data provider.</p>
4101
+ * </note>
4079
4102
  */
4080
4103
  UnitType?: string;
4081
4104
  /**
4082
4105
  * <p>For addresses with multiple units, the unit identifier. Can include numbers and
4083
4106
  * letters, for example <code>3B</code> or <code>Unit 123</code>.</p>
4084
4107
  * <note>
4085
- * <p>Returned only for a place index that uses Esri as a data provider. Is not returned
4086
- * for <code>SearchPlaceIndexForPosition</code>.</p>
4108
+ * <p>Returned only for a place index that uses Esri or Grab as a data provider. Is
4109
+ * not returned for <code>SearchPlaceIndexForPosition</code>.</p>
4087
4110
  * </note>
4088
4111
  */
4089
4112
  UnitNumber?: string;
4113
+ /**
4114
+ * <p>The Amazon Location categories that describe this Place.</p>
4115
+ * <p>For more information about using categories, including a list of Amazon Location
4116
+ * categories, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/category-filtering.html">Categories and filtering</a>, in the <i>Amazon Location Service Developer
4117
+ * Guide</i>.</p>
4118
+ */
4119
+ Categories?: string[];
4120
+ /**
4121
+ * <p>Categories from the data provider that describe the Place that are not mapped
4122
+ * to any Amazon Location categories.</p>
4123
+ */
4124
+ SupplementalCategories?: string[];
4090
4125
  }
4091
4126
  /**
4092
4127
  * @public
@@ -4786,6 +4821,15 @@ export interface SearchPlaceIndexForSuggestionsRequest {
4786
4821
  * that the provider does support.</p>
4787
4822
  */
4788
4823
  Language?: string;
4824
+ /**
4825
+ * <p>A list of one or more Amazon Location categories to filter the returned places. If you
4826
+ * include more than one category, the results will include results that match
4827
+ * <i>any</i> of the categories listed.</p>
4828
+ * <p>For more information about using categories, including a list of Amazon Location
4829
+ * categories, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/category-filtering.html">Categories and filtering</a>, in the <i>Amazon Location Service Developer
4830
+ * Guide</i>.</p>
4831
+ */
4832
+ FilterCategories?: string[];
4789
4833
  }
4790
4834
  /**
4791
4835
  * @public
@@ -4798,8 +4842,11 @@ export interface SearchForSuggestionsResult {
4798
4842
  */
4799
4843
  Text: string | undefined;
4800
4844
  /**
4801
- * <p>The unique identifier of the place. You can use this with the <code>GetPlace</code>
4802
- * operation to find the place again later.</p>
4845
+ * <p>The unique identifier of the Place. You can use this with the <code>GetPlace</code>
4846
+ * operation to find the place again later, or to get full information for the Place.</p>
4847
+ * <p>The <code>GetPlace</code> request must use the same <code>PlaceIndex</code>
4848
+ * resource as the <code>SearchPlaceIndexForSuggestions</code> that generated the Place
4849
+ * ID.</p>
4803
4850
  * <note>
4804
4851
  * <p>For <code>SearchPlaceIndexForSuggestions</code> operations, the
4805
4852
  * <code>PlaceId</code> is returned by place indexes that use Esri, Grab, or HERE
@@ -4807,6 +4854,18 @@ export interface SearchForSuggestionsResult {
4807
4854
  * </note>
4808
4855
  */
4809
4856
  PlaceId?: string;
4857
+ /**
4858
+ * <p>The Amazon Location categories that describe the Place.</p>
4859
+ * <p>For more information about using categories, including a list of Amazon Location
4860
+ * categories, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/category-filtering.html">Categories and filtering</a>, in the <i>Amazon Location Service Developer
4861
+ * Guide</i>.</p>
4862
+ */
4863
+ Categories?: string[];
4864
+ /**
4865
+ * <p>Categories from the data provider that describe the Place that are not mapped
4866
+ * to any Amazon Location categories.</p>
4867
+ */
4868
+ SupplementalCategories?: string[];
4810
4869
  }
4811
4870
  /**
4812
4871
  * @public
@@ -4864,6 +4923,10 @@ export interface SearchPlaceIndexForSuggestionsSummary {
4864
4923
  * language tag, for example, <code>en</code> for English.</p>
4865
4924
  */
4866
4925
  Language?: string;
4926
+ /**
4927
+ * <p>The optional category filter specified in the request.</p>
4928
+ */
4929
+ FilterCategories?: string[];
4867
4930
  }
4868
4931
  /**
4869
4932
  * @public
@@ -4961,6 +5024,15 @@ export interface SearchPlaceIndexForTextRequest {
4961
5024
  * that the provider does support.</p>
4962
5025
  */
4963
5026
  Language?: string;
5027
+ /**
5028
+ * <p>A list of one or more Amazon Location categories to filter the returned places. If you
5029
+ * include more than one category, the results will include results that match
5030
+ * <i>any</i> of the categories listed.</p>
5031
+ * <p>For more information about using categories, including a list of Amazon Location
5032
+ * categories, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/category-filtering.html">Categories and filtering</a>, in the <i>Amazon Location Service Developer
5033
+ * Guide</i>.</p>
5034
+ */
5035
+ FilterCategories?: string[];
4964
5036
  }
4965
5037
  /**
4966
5038
  * @public
@@ -5062,6 +5134,10 @@ export interface SearchPlaceIndexForTextSummary {
5062
5134
  * language tag, for example, <code>en</code> for English.</p>
5063
5135
  */
5064
5136
  Language?: string;
5137
+ /**
5138
+ * <p>The optional category filter specified in the request.</p>
5139
+ */
5140
+ FilterCategories?: string[];
5065
5141
  }
5066
5142
  /**
5067
5143
  * @public
@@ -230,6 +230,7 @@ export interface GeofenceGeometry {
230
230
  export interface BatchPutGeofenceRequestEntry {
231
231
  GeofenceId: string | undefined;
232
232
  Geometry: GeofenceGeometry | undefined;
233
+ GeofenceProperties?: Record<string, string>;
233
234
  }
234
235
  export interface BatchPutGeofenceRequest {
235
236
  CollectionName: string | undefined;
@@ -563,6 +564,7 @@ export interface GetGeofenceResponse {
563
564
  Status: string | undefined;
564
565
  CreateTime: Date | undefined;
565
566
  UpdateTime: Date | undefined;
567
+ GeofenceProperties?: Record<string, string>;
566
568
  }
567
569
  export interface ListGeofenceCollectionsRequest {
568
570
  MaxResults?: number;
@@ -591,6 +593,7 @@ export interface ListGeofenceResponseEntry {
591
593
  Status: string | undefined;
592
594
  CreateTime: Date | undefined;
593
595
  UpdateTime: Date | undefined;
596
+ GeofenceProperties?: Record<string, string>;
594
597
  }
595
598
  export interface ListGeofencesResponse {
596
599
  Entries: ListGeofenceResponseEntry[] | undefined;
@@ -600,6 +603,7 @@ export interface PutGeofenceRequest {
600
603
  CollectionName: string | undefined;
601
604
  GeofenceId: string | undefined;
602
605
  Geometry: GeofenceGeometry | undefined;
606
+ GeofenceProperties?: Record<string, string>;
603
607
  }
604
608
  export interface PutGeofenceResponse {
605
609
  GeofenceId: string | undefined;
@@ -710,6 +714,8 @@ export interface Place {
710
714
  TimeZone?: TimeZone;
711
715
  UnitType?: string;
712
716
  UnitNumber?: string;
717
+ Categories?: string[];
718
+ SupplementalCategories?: string[];
713
719
  }
714
720
  export interface GetPlaceResponse {
715
721
  Place: Place | undefined;
@@ -846,10 +852,13 @@ export interface SearchPlaceIndexForSuggestionsRequest {
846
852
  FilterCountries?: string[];
847
853
  MaxResults?: number;
848
854
  Language?: string;
855
+ FilterCategories?: string[];
849
856
  }
850
857
  export interface SearchForSuggestionsResult {
851
858
  Text: string | undefined;
852
859
  PlaceId?: string;
860
+ Categories?: string[];
861
+ SupplementalCategories?: string[];
853
862
  }
854
863
  export interface SearchPlaceIndexForSuggestionsSummary {
855
864
  Text: string | undefined;
@@ -859,6 +868,7 @@ export interface SearchPlaceIndexForSuggestionsSummary {
859
868
  MaxResults?: number;
860
869
  DataSource: string | undefined;
861
870
  Language?: string;
871
+ FilterCategories?: string[];
862
872
  }
863
873
  export interface SearchPlaceIndexForSuggestionsResponse {
864
874
  Summary: SearchPlaceIndexForSuggestionsSummary | undefined;
@@ -872,6 +882,7 @@ export interface SearchPlaceIndexForTextRequest {
872
882
  FilterCountries?: string[];
873
883
  MaxResults?: number;
874
884
  Language?: string;
885
+ FilterCategories?: string[];
875
886
  }
876
887
  export interface SearchForTextResult {
877
888
  Place: Place | undefined;
@@ -888,6 +899,7 @@ export interface SearchPlaceIndexForTextSummary {
888
899
  ResultBBox?: number[];
889
900
  DataSource: string | undefined;
890
901
  Language?: string;
902
+ FilterCategories?: string[];
891
903
  }
892
904
  export interface SearchPlaceIndexForTextResponse {
893
905
  Summary: SearchPlaceIndexForTextSummary | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-location",
3
3
  "description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
4
- "version": "3.350.0",
4
+ "version": "3.353.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.350.0",
25
- "@aws-sdk/config-resolver": "3.347.0",
26
- "@aws-sdk/credential-provider-node": "3.350.0",
27
- "@aws-sdk/fetch-http-handler": "3.347.0",
24
+ "@aws-sdk/client-sts": "3.353.0",
25
+ "@aws-sdk/config-resolver": "3.353.0",
26
+ "@aws-sdk/credential-provider-node": "3.353.0",
27
+ "@aws-sdk/fetch-http-handler": "3.353.0",
28
28
  "@aws-sdk/hash-node": "3.347.0",
29
29
  "@aws-sdk/invalid-dependency": "3.347.0",
30
30
  "@aws-sdk/middleware-content-length": "3.347.0",
@@ -32,12 +32,12 @@
32
32
  "@aws-sdk/middleware-host-header": "3.347.0",
33
33
  "@aws-sdk/middleware-logger": "3.347.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.347.0",
35
- "@aws-sdk/middleware-retry": "3.347.0",
35
+ "@aws-sdk/middleware-retry": "3.353.0",
36
36
  "@aws-sdk/middleware-serde": "3.347.0",
37
- "@aws-sdk/middleware-signing": "3.347.0",
37
+ "@aws-sdk/middleware-signing": "3.353.0",
38
38
  "@aws-sdk/middleware-stack": "3.347.0",
39
- "@aws-sdk/middleware-user-agent": "3.347.0",
40
- "@aws-sdk/node-config-provider": "3.347.0",
39
+ "@aws-sdk/middleware-user-agent": "3.352.0",
40
+ "@aws-sdk/node-config-provider": "3.353.0",
41
41
  "@aws-sdk/node-http-handler": "3.350.0",
42
42
  "@aws-sdk/smithy-client": "3.347.0",
43
43
  "@aws-sdk/types": "3.347.0",
@@ -45,12 +45,12 @@
45
45
  "@aws-sdk/util-base64": "3.310.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.310.0",
47
47
  "@aws-sdk/util-body-length-node": "3.310.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.347.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.347.0",
50
- "@aws-sdk/util-endpoints": "3.347.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.353.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.353.0",
50
+ "@aws-sdk/util-endpoints": "3.352.0",
51
51
  "@aws-sdk/util-retry": "3.347.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.347.0",
53
- "@aws-sdk/util-user-agent-node": "3.347.0",
53
+ "@aws-sdk/util-user-agent-node": "3.353.0",
54
54
  "@aws-sdk/util-utf8": "3.310.0",
55
55
  "@smithy/protocol-http": "^1.0.1",
56
56
  "@smithy/types": "^1.0.0",