@aws-sdk/client-location 3.423.0 → 3.425.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.
@@ -32,7 +32,7 @@ class ListDevicePositionsCommand extends smithy_client_1.Command {
32
32
  logger,
33
33
  clientName,
34
34
  commandName,
35
- inputFilterSensitiveLog: (_) => _,
35
+ inputFilterSensitiveLog: models_0_1.ListDevicePositionsRequestFilterSensitiveLog,
36
36
  outputFilterSensitiveLog: models_0_1.ListDevicePositionsResponseFilterSensitiveLog,
37
37
  [types_1.SMITHY_CONTEXT_KEY]: {
38
38
  service: "LocationService",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchPlaceIndexForTextRequestFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsResponseFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsSummaryFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = exports.SearchPlaceIndexForPositionResponseFilterSensitiveLog = exports.SearchPlaceIndexForPositionSummaryFilterSensitiveLog = exports.SearchForPositionResultFilterSensitiveLog = exports.SearchPlaceIndexForPositionRequestFilterSensitiveLog = exports.ListDevicePositionsResponseFilterSensitiveLog = exports.ListDevicePositionsResponseEntryFilterSensitiveLog = exports.GetPlaceResponseFilterSensitiveLog = exports.PlaceFilterSensitiveLog = exports.PlaceGeometryFilterSensitiveLog = exports.GetPlaceRequestFilterSensitiveLog = exports.GetMapTileRequestFilterSensitiveLog = exports.GetMapStyleDescriptorRequestFilterSensitiveLog = exports.GetMapSpritesRequestFilterSensitiveLog = exports.GetMapGlyphsRequestFilterSensitiveLog = exports.GetDevicePositionHistoryResponseFilterSensitiveLog = exports.GetDevicePositionResponseFilterSensitiveLog = exports.PutGeofenceRequestFilterSensitiveLog = exports.ListGeofencesResponseFilterSensitiveLog = exports.ListGeofenceResponseEntryFilterSensitiveLog = exports.GetGeofenceResponseFilterSensitiveLog = exports.CalculateRouteMatrixResponseFilterSensitiveLog = exports.CalculateRouteMatrixRequestFilterSensitiveLog = exports.CalculateRouteResponseFilterSensitiveLog = exports.CalculateRouteSummaryFilterSensitiveLog = exports.LegFilterSensitiveLog = exports.StepFilterSensitiveLog = exports.LegGeometryFilterSensitiveLog = exports.CalculateRouteRequestFilterSensitiveLog = exports.BatchUpdateDevicePositionRequestFilterSensitiveLog = exports.BatchPutGeofenceRequestFilterSensitiveLog = exports.BatchPutGeofenceRequestEntryFilterSensitiveLog = exports.GeofenceGeometryFilterSensitiveLog = exports.CircleFilterSensitiveLog = exports.BatchGetDevicePositionResponseFilterSensitiveLog = exports.DevicePositionFilterSensitiveLog = exports.BatchEvaluateGeofencesRequestFilterSensitiveLog = exports.DevicePositionUpdateFilterSensitiveLog = exports.DescribeKeyResponseFilterSensitiveLog = exports.CreateKeyResponseFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- exports.SearchPlaceIndexForTextResponseFilterSensitiveLog = exports.SearchPlaceIndexForTextSummaryFilterSensitiveLog = exports.SearchForTextResultFilterSensitiveLog = void 0;
3
+ exports.SearchPlaceIndexForSuggestionsSummaryFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = exports.SearchPlaceIndexForPositionResponseFilterSensitiveLog = exports.SearchPlaceIndexForPositionSummaryFilterSensitiveLog = exports.SearchForPositionResultFilterSensitiveLog = exports.SearchPlaceIndexForPositionRequestFilterSensitiveLog = exports.ListDevicePositionsResponseFilterSensitiveLog = exports.ListDevicePositionsResponseEntryFilterSensitiveLog = exports.ListDevicePositionsRequestFilterSensitiveLog = exports.TrackingFilterGeometryFilterSensitiveLog = exports.GetPlaceResponseFilterSensitiveLog = exports.PlaceFilterSensitiveLog = exports.PlaceGeometryFilterSensitiveLog = exports.GetPlaceRequestFilterSensitiveLog = exports.GetMapTileRequestFilterSensitiveLog = exports.GetMapStyleDescriptorRequestFilterSensitiveLog = exports.GetMapSpritesRequestFilterSensitiveLog = exports.GetMapGlyphsRequestFilterSensitiveLog = exports.GetDevicePositionHistoryResponseFilterSensitiveLog = exports.GetDevicePositionResponseFilterSensitiveLog = exports.PutGeofenceRequestFilterSensitiveLog = exports.ListGeofencesResponseFilterSensitiveLog = exports.ListGeofenceResponseEntryFilterSensitiveLog = exports.GetGeofenceResponseFilterSensitiveLog = exports.CalculateRouteMatrixResponseFilterSensitiveLog = exports.CalculateRouteMatrixRequestFilterSensitiveLog = exports.CalculateRouteResponseFilterSensitiveLog = exports.CalculateRouteSummaryFilterSensitiveLog = exports.LegFilterSensitiveLog = exports.StepFilterSensitiveLog = exports.LegGeometryFilterSensitiveLog = exports.CalculateRouteRequestFilterSensitiveLog = exports.BatchUpdateDevicePositionRequestFilterSensitiveLog = exports.BatchPutGeofenceRequestFilterSensitiveLog = exports.BatchPutGeofenceRequestEntryFilterSensitiveLog = exports.GeofenceGeometryFilterSensitiveLog = exports.CircleFilterSensitiveLog = exports.BatchGetDevicePositionResponseFilterSensitiveLog = exports.DevicePositionFilterSensitiveLog = exports.BatchEvaluateGeofencesRequestFilterSensitiveLog = exports.DevicePositionUpdateFilterSensitiveLog = exports.DescribeKeyResponseFilterSensitiveLog = exports.CreateKeyResponseFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ exports.SearchPlaceIndexForTextResponseFilterSensitiveLog = exports.SearchPlaceIndexForTextSummaryFilterSensitiveLog = exports.SearchForTextResultFilterSensitiveLog = exports.SearchPlaceIndexForTextRequestFilterSensitiveLog = exports.SearchPlaceIndexForSuggestionsResponseFilterSensitiveLog = void 0;
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const LocationServiceException_1 = require("./LocationServiceException");
7
7
  class AccessDeniedException extends LocationServiceException_1.LocationServiceException {
@@ -296,6 +296,16 @@ const GetPlaceResponseFilterSensitiveLog = (obj) => ({
296
296
  ...(obj.Place && { Place: (0, exports.PlaceFilterSensitiveLog)(obj.Place) }),
297
297
  });
298
298
  exports.GetPlaceResponseFilterSensitiveLog = GetPlaceResponseFilterSensitiveLog;
299
+ const TrackingFilterGeometryFilterSensitiveLog = (obj) => ({
300
+ ...obj,
301
+ ...(obj.Polygon && { Polygon: obj.Polygon.map((item) => smithy_client_1.SENSITIVE_STRING) }),
302
+ });
303
+ exports.TrackingFilterGeometryFilterSensitiveLog = TrackingFilterGeometryFilterSensitiveLog;
304
+ const ListDevicePositionsRequestFilterSensitiveLog = (obj) => ({
305
+ ...obj,
306
+ ...(obj.FilterGeometry && { FilterGeometry: (0, exports.TrackingFilterGeometryFilterSensitiveLog)(obj.FilterGeometry) }),
307
+ });
308
+ exports.ListDevicePositionsRequestFilterSensitiveLog = ListDevicePositionsRequestFilterSensitiveLog;
299
309
  const ListDevicePositionsResponseEntryFilterSensitiveLog = (obj) => ({
300
310
  ...obj,
301
311
  ...(obj.Position && { Position: smithy_client_1.SENSITIVE_STRING }),
@@ -474,6 +474,7 @@ const se_CreateTrackerCommand = async (input, context) => {
474
474
  body = JSON.stringify((0, smithy_client_1.take)(input, {
475
475
  Description: [],
476
476
  EventBridgeEnabled: [],
477
+ KmsKeyEnableGeospatialQueries: [],
477
478
  KmsKeyId: [],
478
479
  PositionFiltering: [],
479
480
  PricingPlan: [],
@@ -1062,6 +1063,7 @@ const se_ListDevicePositionsCommand = async (input, context) => {
1062
1063
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
1063
1064
  let body;
1064
1065
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1066
+ FilterGeometry: (_) => se_TrackingFilterGeometry(_, context),
1065
1067
  MaxResults: [],
1066
1068
  NextToken: [],
1067
1069
  }));
@@ -1720,6 +1722,7 @@ const se_UpdateTrackerCommand = async (input, context) => {
1720
1722
  body = JSON.stringify((0, smithy_client_1.take)(input, {
1721
1723
  Description: [],
1722
1724
  EventBridgeEnabled: [],
1725
+ KmsKeyEnableGeospatialQueries: [],
1723
1726
  PositionFiltering: [],
1724
1727
  PricingPlan: [],
1725
1728
  PricingPlanDataSource: [],
@@ -2736,6 +2739,7 @@ const de_DescribeGeofenceCollectionCommand = async (output, context) => {
2736
2739
  CollectionName: smithy_client_1.expectString,
2737
2740
  CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2738
2741
  Description: smithy_client_1.expectString,
2742
+ GeofenceCount: smithy_client_1.expectInt32,
2739
2743
  KmsKeyId: smithy_client_1.expectString,
2740
2744
  PricingPlan: smithy_client_1.expectString,
2741
2745
  PricingPlanDataSource: smithy_client_1.expectString,
@@ -3004,6 +3008,7 @@ const de_DescribeTrackerCommand = async (output, context) => {
3004
3008
  CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3005
3009
  Description: smithy_client_1.expectString,
3006
3010
  EventBridgeEnabled: smithy_client_1.expectBoolean,
3011
+ KmsKeyEnableGeospatialQueries: smithy_client_1.expectBoolean,
3007
3012
  KmsKeyId: smithy_client_1.expectString,
3008
3013
  PositionFiltering: smithy_client_1.expectString,
3009
3014
  PricingPlan: smithy_client_1.expectString,
@@ -4661,6 +4666,11 @@ const se_PositionList = (input, context) => {
4661
4666
  return se_Position(entry, context);
4662
4667
  });
4663
4668
  };
4669
+ const se_TrackingFilterGeometry = (input, context) => {
4670
+ return (0, smithy_client_1.take)(input, {
4671
+ Polygon: (_) => se_LinearRings(_, context),
4672
+ });
4673
+ };
4664
4674
  const se_TruckDimensions = (input, context) => {
4665
4675
  return (0, smithy_client_1.take)(input, {
4666
4676
  Height: smithy_client_1.serializeFloat,
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
- import { ListDevicePositionsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { ListDevicePositionsRequestFilterSensitiveLog, ListDevicePositionsResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_ListDevicePositionsCommand, se_ListDevicePositionsCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class ListDevicePositionsCommand extends $Command {
@@ -29,7 +29,7 @@ export class ListDevicePositionsCommand extends $Command {
29
29
  logger,
30
30
  clientName,
31
31
  commandName,
32
- inputFilterSensitiveLog: (_) => _,
32
+ inputFilterSensitiveLog: ListDevicePositionsRequestFilterSensitiveLog,
33
33
  outputFilterSensitiveLog: ListDevicePositionsResponseFilterSensitiveLog,
34
34
  [SMITHY_CONTEXT_KEY]: {
35
35
  service: "LocationService",
@@ -252,6 +252,14 @@ export const GetPlaceResponseFilterSensitiveLog = (obj) => ({
252
252
  ...obj,
253
253
  ...(obj.Place && { Place: PlaceFilterSensitiveLog(obj.Place) }),
254
254
  });
255
+ export const TrackingFilterGeometryFilterSensitiveLog = (obj) => ({
256
+ ...obj,
257
+ ...(obj.Polygon && { Polygon: obj.Polygon.map((item) => SENSITIVE_STRING) }),
258
+ });
259
+ export const ListDevicePositionsRequestFilterSensitiveLog = (obj) => ({
260
+ ...obj,
261
+ ...(obj.FilterGeometry && { FilterGeometry: TrackingFilterGeometryFilterSensitiveLog(obj.FilterGeometry) }),
262
+ });
255
263
  export const ListDevicePositionsResponseEntryFilterSensitiveLog = (obj) => ({
256
264
  ...obj,
257
265
  ...(obj.Position && { Position: SENSITIVE_STRING }),
@@ -455,6 +455,7 @@ export const se_CreateTrackerCommand = async (input, context) => {
455
455
  body = JSON.stringify(take(input, {
456
456
  Description: [],
457
457
  EventBridgeEnabled: [],
458
+ KmsKeyEnableGeospatialQueries: [],
458
459
  KmsKeyId: [],
459
460
  PositionFiltering: [],
460
461
  PricingPlan: [],
@@ -1021,6 +1022,7 @@ export const se_ListDevicePositionsCommand = async (input, context) => {
1021
1022
  resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
1022
1023
  let body;
1023
1024
  body = JSON.stringify(take(input, {
1025
+ FilterGeometry: (_) => se_TrackingFilterGeometry(_, context),
1024
1026
  MaxResults: [],
1025
1027
  NextToken: [],
1026
1028
  }));
@@ -1658,6 +1660,7 @@ export const se_UpdateTrackerCommand = async (input, context) => {
1658
1660
  body = JSON.stringify(take(input, {
1659
1661
  Description: [],
1660
1662
  EventBridgeEnabled: [],
1663
+ KmsKeyEnableGeospatialQueries: [],
1661
1664
  PositionFiltering: [],
1662
1665
  PricingPlan: [],
1663
1666
  PricingPlanDataSource: [],
@@ -2652,6 +2655,7 @@ export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
2652
2655
  CollectionName: __expectString,
2653
2656
  CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2654
2657
  Description: __expectString,
2658
+ GeofenceCount: __expectInt32,
2655
2659
  KmsKeyId: __expectString,
2656
2660
  PricingPlan: __expectString,
2657
2661
  PricingPlanDataSource: __expectString,
@@ -2915,6 +2919,7 @@ export const de_DescribeTrackerCommand = async (output, context) => {
2915
2919
  CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2916
2920
  Description: __expectString,
2917
2921
  EventBridgeEnabled: __expectBoolean,
2922
+ KmsKeyEnableGeospatialQueries: __expectBoolean,
2918
2923
  KmsKeyId: __expectString,
2919
2924
  PositionFiltering: __expectString,
2920
2925
  PricingPlan: __expectString,
@@ -4540,6 +4545,11 @@ const se_PositionList = (input, context) => {
4540
4545
  return se_Position(entry, context);
4541
4546
  });
4542
4547
  };
4548
+ const se_TrackingFilterGeometry = (input, context) => {
4549
+ return take(input, {
4550
+ Polygon: (_) => se_LinearRings(_, context),
4551
+ });
4552
+ };
4543
4553
  const se_TruckDimensions = (input, context) => {
4544
4554
  return take(input, {
4545
4555
  Height: __serializeFloat,
@@ -169,6 +169,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
169
169
  maxAttempts?: number | __Provider<number>;
170
170
  /**
171
171
  * Specifies which retry algorithm to use.
172
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
173
+ *
172
174
  */
173
175
  retryMode?: string | __Provider<string>;
174
176
  /**
@@ -42,6 +42,7 @@ export interface CreateTrackerCommandOutput extends CreateTrackerResponse, __Met
42
42
  * },
43
43
  * PositionFiltering: "STRING_VALUE",
44
44
  * EventBridgeEnabled: true || false,
45
+ * KmsKeyEnableGeospatialQueries: true || false,
45
46
  * };
46
47
  * const command = new CreateTrackerCommand(input);
47
48
  * const response = await client.send(command);
@@ -47,6 +47,7 @@ export interface DescribeGeofenceCollectionCommandOutput extends DescribeGeofenc
47
47
  * // },
48
48
  * // CreateTime: new Date("TIMESTAMP"), // required
49
49
  * // UpdateTime: new Date("TIMESTAMP"), // required
50
+ * // GeofenceCount: Number("int"),
50
51
  * // };
51
52
  *
52
53
  * ```
@@ -49,6 +49,7 @@ export interface DescribeTrackerCommandOutput extends DescribeTrackerResponse, _
49
49
  * // KmsKeyId: "STRING_VALUE",
50
50
  * // PositionFiltering: "STRING_VALUE",
51
51
  * // EventBridgeEnabled: true || false,
52
+ * // KmsKeyEnableGeospatialQueries: true || false,
52
53
  * // };
53
54
  *
54
55
  * ```
@@ -34,6 +34,15 @@ export interface ListDevicePositionsCommandOutput extends ListDevicePositionsRes
34
34
  * TrackerName: "STRING_VALUE", // required
35
35
  * MaxResults: Number("int"),
36
36
  * NextToken: "STRING_VALUE",
37
+ * FilterGeometry: { // TrackingFilterGeometry
38
+ * Polygon: [ // LinearRings
39
+ * [ // LinearRing
40
+ * [ // Position
41
+ * Number("double"),
42
+ * ],
43
+ * ],
44
+ * ],
45
+ * },
37
46
  * };
38
47
  * const command = new ListDevicePositionsCommand(input);
39
48
  * const response = await client.send(command);
@@ -37,6 +37,7 @@ export interface UpdateTrackerCommandOutput extends UpdateTrackerResponse, __Met
37
37
  * Description: "STRING_VALUE",
38
38
  * PositionFiltering: "STRING_VALUE",
39
39
  * EventBridgeEnabled: true || false,
40
+ * KmsKeyEnableGeospatialQueries: true || false,
40
41
  * };
41
42
  * const command = new UpdateTrackerCommand(input);
42
43
  * const response = await client.send(command);
@@ -2928,6 +2928,19 @@ export interface CreateTrackerRequest {
2928
2928
  * </note>
2929
2929
  */
2930
2930
  EventBridgeEnabled?: boolean;
2931
+ /**
2932
+ * @public
2933
+ * <p>Enables <code>GeospatialQueries</code> for a tracker that uses a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html">Amazon Web Services
2934
+ * KMS customer managed key</a>.</p>
2935
+ * <p>This parameter is only used if you are using a KMS customer managed key.</p>
2936
+ * <note>
2937
+ * <p>If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default.
2938
+ * This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.</p>
2939
+ * <p>You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the <code>KmsKeyEnableGeospatialQueries</code> parameter to
2940
+ * true when creating or updating a Tracker.</p>
2941
+ * </note>
2942
+ */
2943
+ KmsKeyEnableGeospatialQueries?: boolean;
2931
2944
  }
2932
2945
  /**
2933
2946
  * @public
@@ -3110,6 +3123,11 @@ export interface DescribeGeofenceCollectionResponse {
3110
3123
  * </p>
3111
3124
  */
3112
3125
  UpdateTime: Date | undefined;
3126
+ /**
3127
+ * @public
3128
+ * <p>The number of geofences in the geofence collection.</p>
3129
+ */
3130
+ GeofenceCount?: number;
3113
3131
  }
3114
3132
  /**
3115
3133
  * @public
@@ -3456,6 +3474,19 @@ export interface DescribeTrackerResponse {
3456
3474
  * enabled. If set to <code>true</code> these events will be sent to EventBridge.</p>
3457
3475
  */
3458
3476
  EventBridgeEnabled?: boolean;
3477
+ /**
3478
+ * @public
3479
+ * <p>Enables <code>GeospatialQueries</code> for a tracker that uses a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html">Amazon Web Services
3480
+ * KMS customer managed key</a>.</p>
3481
+ * <p>This parameter is only used if you are using a KMS customer managed key.</p>
3482
+ * <note>
3483
+ * <p>If you wish to encrypt your data using your own KMS customer managed key, then the Bounding Polygon Queries feature will be disabled by default.
3484
+ * This is because by using this feature, a representation of your device positions will not be encrypted using the your KMS managed key. The exact device position, however; is still encrypted using your managed key.</p>
3485
+ * <p>You can choose to opt-in to the Bounding Polygon Quseries feature. This is done by setting the <code>KmsKeyEnableGeospatialQueries</code> parameter to
3486
+ * true when creating or updating a Tracker.</p>
3487
+ * </note>
3488
+ */
3489
+ KmsKeyEnableGeospatialQueries?: boolean;
3459
3490
  }
3460
3491
  /**
3461
3492
  * @public
@@ -4129,7 +4160,7 @@ export interface GetMapGlyphsRequest {
4129
4160
  * @public
4130
4161
  * <p>A comma-separated list of fonts to load glyphs from in order of preference. For
4131
4162
  * example, <code>Noto Sans Regular, Arial Unicode</code>.</p>
4132
- * <p>Valid fonts stacks for <a href="https://docs.aws.amazon.com/location/latest/developerguide/esri.html">Esri</a> styles: </p>
4163
+ * <p>Valid font stacks for <a href="https://docs.aws.amazon.com/location/latest/developerguide/esri.html">Esri</a> styles: </p>
4133
4164
  * <ul>
4134
4165
  * <li>
4135
4166
  * <p>VectorEsriDarkGrayCanvas – <code>Ubuntu Medium Italic</code> | <code>Ubuntu
@@ -4612,6 +4643,17 @@ export interface GetPlaceResponse {
4612
4643
  */
4613
4644
  Place: Place | undefined;
4614
4645
  }
4646
+ /**
4647
+ * @public
4648
+ * <p>The geomerty used to filter device positions.</p>
4649
+ */
4650
+ export interface TrackingFilterGeometry {
4651
+ /**
4652
+ * @public
4653
+ * <p>The set of arrays which define the polygon. A polygon can have between 4 and 1000 vertices.</p>
4654
+ */
4655
+ Polygon?: number[][][];
4656
+ }
4615
4657
  /**
4616
4658
  * @public
4617
4659
  */
@@ -4636,6 +4678,11 @@ export interface ListDevicePositionsRequest {
4636
4678
  * </p>
4637
4679
  */
4638
4680
  NextToken?: string;
4681
+ /**
4682
+ * @public
4683
+ * <p>The geomerty used to filter device positions.</p>
4684
+ */
4685
+ FilterGeometry?: TrackingFilterGeometry;
4639
4686
  }
4640
4687
  /**
4641
4688
  * @public
@@ -4675,8 +4722,7 @@ export interface ListDevicePositionsResponseEntry {
4675
4722
  export interface ListDevicePositionsResponse {
4676
4723
  /**
4677
4724
  * @public
4678
- * <p>Contains details about each device's last known position. These details includes the device ID,
4679
- * the time when the position was sampled on the device, the time that the service received the update, and the most recent coordinates.</p>
4725
+ * <p>Contains details about each device's last known position.</p>
4680
4726
  */
4681
4727
  Entries: ListDevicePositionsResponseEntry[] | undefined;
4682
4728
  /**
@@ -5961,6 +6007,13 @@ export interface UpdateTrackerRequest {
5961
6007
  * </note>
5962
6008
  */
5963
6009
  EventBridgeEnabled?: boolean;
6010
+ /**
6011
+ * @public
6012
+ * <p>Enables <code>GeospatialQueries</code> for a tracker that uses a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html">Amazon Web Services
6013
+ * KMS customer managed key</a>.</p>
6014
+ * <p>This parameter is only used if you are using a KMS customer managed key.</p>
6015
+ */
6016
+ KmsKeyEnableGeospatialQueries?: boolean;
5964
6017
  }
5965
6018
  /**
5966
6019
  * @public
@@ -6122,6 +6175,14 @@ export declare const PlaceFilterSensitiveLog: (obj: Place) => any;
6122
6175
  * @internal
6123
6176
  */
6124
6177
  export declare const GetPlaceResponseFilterSensitiveLog: (obj: GetPlaceResponse) => any;
6178
+ /**
6179
+ * @internal
6180
+ */
6181
+ export declare const TrackingFilterGeometryFilterSensitiveLog: (obj: TrackingFilterGeometry) => any;
6182
+ /**
6183
+ * @internal
6184
+ */
6185
+ export declare const ListDevicePositionsRequestFilterSensitiveLog: (obj: ListDevicePositionsRequest) => any;
6125
6186
  /**
6126
6187
  * @internal
6127
6188
  */
@@ -440,6 +440,7 @@ export interface CreateTrackerRequest {
440
440
  Tags?: Record<string, string>;
441
441
  PositionFiltering?: PositionFiltering | string;
442
442
  EventBridgeEnabled?: boolean;
443
+ KmsKeyEnableGeospatialQueries?: boolean;
443
444
  }
444
445
  export interface CreateTrackerResponse {
445
446
  TrackerName: string | undefined;
@@ -479,6 +480,7 @@ export interface DescribeGeofenceCollectionResponse {
479
480
  Tags?: Record<string, string>;
480
481
  CreateTime: Date | undefined;
481
482
  UpdateTime: Date | undefined;
483
+ GeofenceCount?: number;
482
484
  }
483
485
  export interface DescribeMapRequest {
484
486
  MapName: string | undefined;
@@ -536,6 +538,7 @@ export interface DescribeTrackerResponse {
536
538
  KmsKeyId?: string;
537
539
  PositionFiltering?: PositionFiltering | string;
538
540
  EventBridgeEnabled?: boolean;
541
+ KmsKeyEnableGeospatialQueries?: boolean;
539
542
  }
540
543
  export interface DisassociateTrackerConsumerRequest {
541
544
  TrackerName: string | undefined;
@@ -725,10 +728,14 @@ export interface Place {
725
728
  export interface GetPlaceResponse {
726
729
  Place: Place | undefined;
727
730
  }
731
+ export interface TrackingFilterGeometry {
732
+ Polygon?: number[][][];
733
+ }
728
734
  export interface ListDevicePositionsRequest {
729
735
  TrackerName: string | undefined;
730
736
  MaxResults?: number;
731
737
  NextToken?: string;
738
+ FilterGeometry?: TrackingFilterGeometry;
732
739
  }
733
740
  export interface ListDevicePositionsResponseEntry {
734
741
  DeviceId: string | undefined;
@@ -941,6 +948,7 @@ export interface UpdateTrackerRequest {
941
948
  Description?: string;
942
949
  PositionFiltering?: PositionFiltering | string;
943
950
  EventBridgeEnabled?: boolean;
951
+ KmsKeyEnableGeospatialQueries?: boolean;
944
952
  }
945
953
  export interface UpdateTrackerResponse {
946
954
  TrackerName: string | undefined;
@@ -1036,6 +1044,12 @@ export declare const PlaceFilterSensitiveLog: (obj: Place) => any;
1036
1044
  export declare const GetPlaceResponseFilterSensitiveLog: (
1037
1045
  obj: GetPlaceResponse
1038
1046
  ) => any;
1047
+ export declare const TrackingFilterGeometryFilterSensitiveLog: (
1048
+ obj: TrackingFilterGeometry
1049
+ ) => any;
1050
+ export declare const ListDevicePositionsRequestFilterSensitiveLog: (
1051
+ obj: ListDevicePositionsRequest
1052
+ ) => any;
1039
1053
  export declare const ListDevicePositionsResponseEntryFilterSensitiveLog: (
1040
1054
  obj: ListDevicePositionsResponseEntry
1041
1055
  ) => any;
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.423.0",
4
+ "version": "3.425.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,40 +21,40 @@
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.423.0",
25
- "@aws-sdk/credential-provider-node": "3.423.0",
26
- "@aws-sdk/middleware-host-header": "3.418.0",
27
- "@aws-sdk/middleware-logger": "3.418.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.418.0",
29
- "@aws-sdk/middleware-signing": "3.418.0",
30
- "@aws-sdk/middleware-user-agent": "3.418.0",
31
- "@aws-sdk/region-config-resolver": "3.418.0",
32
- "@aws-sdk/types": "3.418.0",
33
- "@aws-sdk/util-endpoints": "3.418.0",
34
- "@aws-sdk/util-user-agent-browser": "3.418.0",
35
- "@aws-sdk/util-user-agent-node": "3.418.0",
36
- "@smithy/config-resolver": "^2.0.10",
37
- "@smithy/fetch-http-handler": "^2.1.5",
38
- "@smithy/hash-node": "^2.0.9",
39
- "@smithy/invalid-dependency": "^2.0.9",
40
- "@smithy/middleware-content-length": "^2.0.11",
41
- "@smithy/middleware-endpoint": "^2.0.9",
42
- "@smithy/middleware-retry": "^2.0.12",
43
- "@smithy/middleware-serde": "^2.0.9",
44
- "@smithy/middleware-stack": "^2.0.2",
45
- "@smithy/node-config-provider": "^2.0.12",
46
- "@smithy/node-http-handler": "^2.1.5",
47
- "@smithy/protocol-http": "^3.0.5",
48
- "@smithy/smithy-client": "^2.1.6",
49
- "@smithy/types": "^2.3.3",
50
- "@smithy/url-parser": "^2.0.9",
24
+ "@aws-sdk/client-sts": "3.425.0",
25
+ "@aws-sdk/credential-provider-node": "3.425.0",
26
+ "@aws-sdk/middleware-host-header": "3.425.0",
27
+ "@aws-sdk/middleware-logger": "3.425.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
+ "@aws-sdk/middleware-signing": "3.425.0",
30
+ "@aws-sdk/middleware-user-agent": "3.425.0",
31
+ "@aws-sdk/region-config-resolver": "3.425.0",
32
+ "@aws-sdk/types": "3.425.0",
33
+ "@aws-sdk/util-endpoints": "3.425.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.425.0",
35
+ "@aws-sdk/util-user-agent-node": "3.425.0",
36
+ "@smithy/config-resolver": "^2.0.11",
37
+ "@smithy/fetch-http-handler": "^2.2.1",
38
+ "@smithy/hash-node": "^2.0.10",
39
+ "@smithy/invalid-dependency": "^2.0.10",
40
+ "@smithy/middleware-content-length": "^2.0.12",
41
+ "@smithy/middleware-endpoint": "^2.0.10",
42
+ "@smithy/middleware-retry": "^2.0.13",
43
+ "@smithy/middleware-serde": "^2.0.10",
44
+ "@smithy/middleware-stack": "^2.0.4",
45
+ "@smithy/node-config-provider": "^2.0.13",
46
+ "@smithy/node-http-handler": "^2.1.6",
47
+ "@smithy/protocol-http": "^3.0.6",
48
+ "@smithy/smithy-client": "^2.1.9",
49
+ "@smithy/types": "^2.3.4",
50
+ "@smithy/url-parser": "^2.0.10",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.10",
55
- "@smithy/util-defaults-mode-node": "^2.0.12",
56
- "@smithy/util-retry": "^2.0.2",
57
- "@smithy/util-stream": "^2.0.12",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.13",
55
+ "@smithy/util-defaults-mode-node": "^2.0.15",
56
+ "@smithy/util-retry": "^2.0.3",
57
+ "@smithy/util-stream": "^2.0.14",
58
58
  "@smithy/util-utf8": "^2.0.0",
59
59
  "tslib": "^2.5.0"
60
60
  },