Skip to content

Commit a590885

Browse files
author
awstools
committed
feat(client-location): This release 1) adds support for multi-polygon geofences with disconnected territories, and 2) enables polygon exclusion zones within geofences for more accurate representation of real-world boundaries.
1 parent d1163fa commit a590885

39 files changed

+1075
-292
lines changed

clients/client-location/src/commands/AssociateTrackerConsumerCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface AssociateTrackerConsumerCommandOutput extends AssociateTrackerC
7171
* <p>The resource that you've entered was not found in your AWS account.</p>
7272
*
7373
* @throws {@link ServiceQuotaExceededException} (client fault)
74-
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
74+
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/previous/developerguide/location-quotas.html">quota</a>
7575
* set for Amazon Location Service.</p>
7676
*
7777
* @throws {@link ThrottlingException} (client fault)

clients/client-location/src/commands/BatchEvaluateGeofencesCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
BatchEvaluateGeofencesRequest,
1111
BatchEvaluateGeofencesRequestFilterSensitiveLog,
1212
BatchEvaluateGeofencesResponse,
13+
BatchEvaluateGeofencesResponseFilterSensitiveLog,
1314
} from "../models/models_0";
1415
import { de_BatchEvaluateGeofencesCommand, se_BatchEvaluateGeofencesCommand } from "../protocols/Aws_restJson1";
1516

@@ -59,7 +60,8 @@ export interface BatchEvaluateGeofencesCommandOutput extends BatchEvaluateGeofen
5960
* </note>
6061
* <note>
6162
* <p>The <code>DeviceID</code> is used as a string to represent the device. You do not
62-
* need to have a <code>Tracker</code> associated with the <code>DeviceID</code>.</p>
63+
* need to have a <code>Tracker</code> associated with the
64+
* <code>DeviceID</code>.</p>
6365
* </note>
6466
* @example
6567
* Use a bare-bones client and the command you need to make an API call.
@@ -147,7 +149,7 @@ export class BatchEvaluateGeofencesCommand extends $Command
147149
})
148150
.s("LocationService", "BatchEvaluateGeofences", {})
149151
.n("LocationClient", "BatchEvaluateGeofencesCommand")
150-
.f(BatchEvaluateGeofencesRequestFilterSensitiveLog, void 0)
152+
.f(BatchEvaluateGeofencesRequestFilterSensitiveLog, BatchEvaluateGeofencesResponseFilterSensitiveLog)
151153
.ser(se_BatchEvaluateGeofencesCommand)
152154
.de(de_BatchEvaluateGeofencesCommand)
153155
.build() {

clients/client-location/src/commands/BatchPutGeofenceCommand.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
BatchPutGeofenceRequest,
1111
BatchPutGeofenceRequestFilterSensitiveLog,
1212
BatchPutGeofenceResponse,
13+
BatchPutGeofenceResponseFilterSensitiveLog,
1314
} from "../models/models_0";
1415
import { de_BatchPutGeofenceCommand, se_BatchPutGeofenceCommand } from "../protocols/Aws_restJson1";
1516

@@ -33,7 +34,8 @@ export interface BatchPutGeofenceCommandOutput extends BatchPutGeofenceResponse,
3334

3435
/**
3536
* <p>A batch request for storing geofence geometries into a given geofence collection, or
36-
* updates the geometry of an existing geofence if a geofence ID is included in the request.</p>
37+
* updates the geometry of an existing geofence if a geofence ID is included in the
38+
* request.</p>
3739
* @example
3840
* Use a bare-bones client and the command you need to make an API call.
3941
* ```javascript
@@ -60,6 +62,13 @@ export interface BatchPutGeofenceCommandOutput extends BatchPutGeofenceResponse,
6062
* Radius: Number("double"), // required
6163
* },
6264
* Geobuf: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
65+
* MultiPolygon: [ // MultiLinearRings
66+
* [
67+
* [
68+
* "<Position>",
69+
* ],
70+
* ],
71+
* ],
6372
* },
6473
* GeofenceProperties: { // PropertyMap
6574
* "<keys>": "STRING_VALUE",
@@ -135,7 +144,7 @@ export class BatchPutGeofenceCommand extends $Command
135144
})
136145
.s("LocationService", "BatchPutGeofence", {})
137146
.n("LocationClient", "BatchPutGeofenceCommand")
138-
.f(BatchPutGeofenceRequestFilterSensitiveLog, void 0)
147+
.f(BatchPutGeofenceRequestFilterSensitiveLog, BatchPutGeofenceResponseFilterSensitiveLog)
139148
.ser(se_BatchPutGeofenceCommand)
140149
.de(de_BatchPutGeofenceCommand)
141150
.build() {

clients/client-location/src/commands/BatchUpdateDevicePositionCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
BatchUpdateDevicePositionRequest,
1111
BatchUpdateDevicePositionRequestFilterSensitiveLog,
1212
BatchUpdateDevicePositionResponse,
13+
BatchUpdateDevicePositionResponseFilterSensitiveLog,
1314
} from "../models/models_0";
1415
import { de_BatchUpdateDevicePositionCommand, se_BatchUpdateDevicePositionCommand } from "../protocols/Aws_restJson1";
1516

@@ -141,7 +142,7 @@ export class BatchUpdateDevicePositionCommand extends $Command
141142
})
142143
.s("LocationService", "BatchUpdateDevicePosition", {})
143144
.n("LocationClient", "BatchUpdateDevicePositionCommand")
144-
.f(BatchUpdateDevicePositionRequestFilterSensitiveLog, void 0)
145+
.f(BatchUpdateDevicePositionRequestFilterSensitiveLog, BatchUpdateDevicePositionResponseFilterSensitiveLog)
145146
.ser(se_BatchUpdateDevicePositionCommand)
146147
.de(de_BatchUpdateDevicePositionCommand)
147148
.build() {

clients/client-location/src/commands/CalculateRouteCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
3434

3535
/**
3636
* <p>
37-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
37+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
3838
* <code>DeparturePosition</code> and <code>DestinationPosition</code>. Requires that
3939
* you first <a href="https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html">create a
4040
* route calculator resource</a>.</p>
@@ -44,7 +44,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
4444
* <ul>
4545
* <li>
4646
* <p>
47-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html">Specifying a
47+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/departure-time.html">Specifying a
4848
* departure time</a> using either <code>DepartureTime</code> or
4949
* <code>DepartNow</code>. This calculates a route based on predictive traffic
5050
* data at the given time. </p>
@@ -56,7 +56,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
5656
* </li>
5757
* <li>
5858
* <p>
59-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html">Specifying a travel
59+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/travel-mode.html">Specifying a travel
6060
* mode</a> using TravelMode sets the transportation mode used to calculate
6161
* the routes. This also lets you specify additional route preferences in
6262
* <code>CarModeOptions</code> if traveling by <code>Car</code>, or

clients/client-location/src/commands/CalculateRouteMatrixCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
3434

3535
/**
3636
* <p>
37-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route-matrix.html"> Calculates a route
37+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/calculate-route-matrix.html"> Calculates a route
3838
* matrix</a> given the following required parameters:
3939
* <code>DeparturePositions</code> and <code>DestinationPositions</code>.
4040
* <code>CalculateRouteMatrix</code> calculates routes and returns the travel time and
@@ -56,7 +56,7 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
5656
* <ul>
5757
* <li>
5858
* <p>
59-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/departure-time.html"> Specifying a
59+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/departure-time.html"> Specifying a
6060
* departure time</a> using either <code>DepartureTime</code> or
6161
* <code>DepartNow</code>. This calculates routes based on predictive traffic
6262
* data at the given time. </p>
@@ -68,7 +68,7 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
6868
* </li>
6969
* <li>
7070
* <p>
71-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/travel-mode.html">Specifying a travel
71+
* <a href="https://docs.aws.amazon.com/location/previous/developerguide/travel-mode.html">Specifying a travel
7272
* mode</a> using TravelMode sets the transportation mode used to calculate
7373
* the routes. This also lets you specify additional route preferences in
7474
* <code>CarModeOptions</code> if traveling by <code>Car</code>, or

clients/client-location/src/commands/CreateGeofenceCollectionCommand.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
9-
import { CreateGeofenceCollectionRequest, CreateGeofenceCollectionResponse } from "../models/models_0";
9+
import {
10+
CreateGeofenceCollectionRequest,
11+
CreateGeofenceCollectionResponse,
12+
CreateGeofenceCollectionResponseFilterSensitiveLog,
13+
} from "../models/models_0";
1014
import { de_CreateGeofenceCollectionCommand, se_CreateGeofenceCollectionCommand } from "../protocols/Aws_restJson1";
1115

1216
/**
@@ -72,7 +76,7 @@ export interface CreateGeofenceCollectionCommandOutput extends CreateGeofenceCol
7276
* <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
7377
*
7478
* @throws {@link ServiceQuotaExceededException} (client fault)
75-
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
79+
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/previous/developerguide/location-quotas.html">quota</a>
7680
* set for Amazon Location Service.</p>
7781
*
7882
* @throws {@link ThrottlingException} (client fault)
@@ -104,7 +108,7 @@ export class CreateGeofenceCollectionCommand extends $Command
104108
})
105109
.s("LocationService", "CreateGeofenceCollection", {})
106110
.n("LocationClient", "CreateGeofenceCollectionCommand")
107-
.f(void 0, void 0)
111+
.f(void 0, CreateGeofenceCollectionResponseFilterSensitiveLog)
108112
.ser(se_CreateGeofenceCollectionCommand)
109113
.de(de_CreateGeofenceCollectionCommand)
110114
.build() {

clients/client-location/src/commands/CreateKeyCommand.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
9-
import { CreateKeyRequest, CreateKeyResponse, CreateKeyResponseFilterSensitiveLog } from "../models/models_0";
9+
import {
10+
CreateKeyRequest,
11+
CreateKeyRequestFilterSensitiveLog,
12+
CreateKeyResponse,
13+
CreateKeyResponseFilterSensitiveLog,
14+
} from "../models/models_0";
1015
import { de_CreateKeyCommand, se_CreateKeyCommand } from "../protocols/Aws_restJson1";
1116

1217
/**
@@ -31,7 +36,7 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
3136
* <p>Creates an API key resource in your Amazon Web Services account, which lets you grant
3237
* actions for Amazon Location resources to the API key bearer.</p>
3338
* <note>
34-
* <p>For more information, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
39+
* <p>For more information, see <a href="https://docs.aws.amazon.com/location/previous/developerguide/using-apikeys.html">Using API keys</a>.</p>
3540
* </note>
3641
* @example
3742
* Use a bare-bones client and the command you need to make an API call.
@@ -87,7 +92,7 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
8792
* <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
8893
*
8994
* @throws {@link ServiceQuotaExceededException} (client fault)
90-
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
95+
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/previous/developerguide/location-quotas.html">quota</a>
9196
* set for Amazon Location Service.</p>
9297
*
9398
* @throws {@link ThrottlingException} (client fault)
@@ -119,7 +124,7 @@ export class CreateKeyCommand extends $Command
119124
})
120125
.s("LocationService", "CreateKey", {})
121126
.n("LocationClient", "CreateKeyCommand")
122-
.f(void 0, CreateKeyResponseFilterSensitiveLog)
127+
.f(CreateKeyRequestFilterSensitiveLog, CreateKeyResponseFilterSensitiveLog)
123128
.ser(se_CreateKeyCommand)
124129
.de(de_CreateKeyCommand)
125130
.build() {

clients/client-location/src/commands/CreateMapCommand.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
9-
import { CreateMapRequest, CreateMapResponse } from "../models/models_0";
9+
import {
10+
CreateMapRequest,
11+
CreateMapRequestFilterSensitiveLog,
12+
CreateMapResponse,
13+
CreateMapResponseFilterSensitiveLog,
14+
} from "../models/models_0";
1015
import { de_CreateMapCommand, se_CreateMapCommand } from "../protocols/Aws_restJson1";
1116

1217
/**
@@ -84,7 +89,7 @@ export interface CreateMapCommandOutput extends CreateMapResponse, __MetadataBea
8489
* <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
8590
*
8691
* @throws {@link ServiceQuotaExceededException} (client fault)
87-
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
92+
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/previous/developerguide/location-quotas.html">quota</a>
8893
* set for Amazon Location Service.</p>
8994
*
9095
* @throws {@link ThrottlingException} (client fault)
@@ -116,7 +121,7 @@ export class CreateMapCommand extends $Command
116121
})
117122
.s("LocationService", "CreateMap", {})
118123
.n("LocationClient", "CreateMapCommand")
119-
.f(void 0, void 0)
124+
.f(CreateMapRequestFilterSensitiveLog, CreateMapResponseFilterSensitiveLog)
120125
.ser(se_CreateMapCommand)
121126
.de(de_CreateMapCommand)
122127
.build() {

clients/client-location/src/commands/CreatePlaceIndexCommand.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { LocationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LocationClient";
9-
import { CreatePlaceIndexRequest, CreatePlaceIndexResponse } from "../models/models_0";
9+
import {
10+
CreatePlaceIndexRequest,
11+
CreatePlaceIndexResponse,
12+
CreatePlaceIndexResponseFilterSensitiveLog,
13+
} from "../models/models_0";
1014
import { de_CreatePlaceIndexCommand, se_CreatePlaceIndexCommand } from "../protocols/Aws_restJson1";
1115

1216
/**
@@ -84,7 +88,7 @@ export interface CreatePlaceIndexCommandOutput extends CreatePlaceIndexResponse,
8488
* <p>The request has failed to process because of an unknown server error, exception, or failure.</p>
8589
*
8690
* @throws {@link ServiceQuotaExceededException} (client fault)
87-
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/latest/developerguide/location-quotas.html">quota</a>
91+
* <p>The operation was denied because the request would exceed the maximum <a href="https://docs.aws.amazon.com/location/previous/developerguide/location-quotas.html">quota</a>
8892
* set for Amazon Location Service.</p>
8993
*
9094
* @throws {@link ThrottlingException} (client fault)
@@ -116,7 +120,7 @@ export class CreatePlaceIndexCommand extends $Command
116120
})
117121
.s("LocationService", "CreatePlaceIndex", {})
118122
.n("LocationClient", "CreatePlaceIndexCommand")
119-
.f(void 0, void 0)
123+
.f(void 0, CreatePlaceIndexResponseFilterSensitiveLog)
120124
.ser(se_CreatePlaceIndexCommand)
121125
.de(de_CreatePlaceIndexCommand)
122126
.build() {

0 commit comments

Comments
 (0)