@aws-sdk/client-location 3.363.0 → 3.369.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.
- package/dist-cjs/commands/GetPlaceCommand.js +1 -1
- package/dist-cjs/models/models_0.js +12 -2
- package/dist-cjs/protocols/Aws_restJson1.js +24 -0
- package/dist-es/commands/GetPlaceCommand.js +2 -2
- package/dist-es/models/models_0.js +9 -0
- package/dist-es/protocols/Aws_restJson1.js +24 -0
- package/dist-types/commands/CalculateRouteCommand.d.ts +1 -0
- package/dist-types/commands/CalculateRouteMatrixCommand.d.ts +1 -0
- package/dist-types/commands/CreateKeyCommand.d.ts +4 -7
- package/dist-types/commands/CreateTrackerCommand.d.ts +1 -0
- package/dist-types/commands/DescribeKeyCommand.d.ts +0 -5
- package/dist-types/commands/DescribeTrackerCommand.d.ts +1 -0
- package/dist-types/commands/GetPlaceCommand.d.ts +1 -0
- package/dist-types/commands/ListKeysCommand.d.ts +0 -5
- package/dist-types/commands/SearchPlaceIndexForPositionCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +1 -0
- package/dist-types/commands/SearchPlaceIndexForTextCommand.d.ts +1 -0
- package/dist-types/commands/UpdateKeyCommand.d.ts +0 -5
- package/dist-types/commands/UpdateTrackerCommand.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +156 -44
- package/dist-types/ts3.4/models/models_0.d.ts +12 -0
- package/package.json +13 -13
|
@@ -31,7 +31,7 @@ class GetPlaceCommand extends smithy_client_1.Command {
|
|
|
31
31
|
logger,
|
|
32
32
|
clientName,
|
|
33
33
|
commandName,
|
|
34
|
-
inputFilterSensitiveLog:
|
|
34
|
+
inputFilterSensitiveLog: models_0_1.GetPlaceRequestFilterSensitiveLog,
|
|
35
35
|
outputFilterSensitiveLog: models_0_1.GetPlaceResponseFilterSensitiveLog,
|
|
36
36
|
};
|
|
37
37
|
const { requestHandler } = configuration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.SearchPlaceIndexForTextResponseFilterSensitiveLog = exports.SearchPlaceIndexForTextSummaryFilterSensitiveLog = void 0;
|
|
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;
|
|
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 {
|
|
@@ -174,6 +174,7 @@ const CalculateRouteRequestFilterSensitiveLog = (obj) => ({
|
|
|
174
174
|
...(obj.DeparturePosition && { DeparturePosition: smithy_client_1.SENSITIVE_STRING }),
|
|
175
175
|
...(obj.DestinationPosition && { DestinationPosition: smithy_client_1.SENSITIVE_STRING }),
|
|
176
176
|
...(obj.WaypointPositions && { WaypointPositions: smithy_client_1.SENSITIVE_STRING }),
|
|
177
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
177
178
|
});
|
|
178
179
|
exports.CalculateRouteRequestFilterSensitiveLog = CalculateRouteRequestFilterSensitiveLog;
|
|
179
180
|
const LegGeometryFilterSensitiveLog = (obj) => ({
|
|
@@ -210,6 +211,7 @@ const CalculateRouteMatrixRequestFilterSensitiveLog = (obj) => ({
|
|
|
210
211
|
...obj,
|
|
211
212
|
...(obj.DeparturePositions && { DeparturePositions: smithy_client_1.SENSITIVE_STRING }),
|
|
212
213
|
...(obj.DestinationPositions && { DestinationPositions: smithy_client_1.SENSITIVE_STRING }),
|
|
214
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
213
215
|
});
|
|
214
216
|
exports.CalculateRouteMatrixRequestFilterSensitiveLog = CalculateRouteMatrixRequestFilterSensitiveLog;
|
|
215
217
|
const CalculateRouteMatrixResponseFilterSensitiveLog = (obj) => ({
|
|
@@ -274,6 +276,11 @@ const GetMapTileRequestFilterSensitiveLog = (obj) => ({
|
|
|
274
276
|
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
275
277
|
});
|
|
276
278
|
exports.GetMapTileRequestFilterSensitiveLog = GetMapTileRequestFilterSensitiveLog;
|
|
279
|
+
const GetPlaceRequestFilterSensitiveLog = (obj) => ({
|
|
280
|
+
...obj,
|
|
281
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
282
|
+
});
|
|
283
|
+
exports.GetPlaceRequestFilterSensitiveLog = GetPlaceRequestFilterSensitiveLog;
|
|
277
284
|
const PlaceGeometryFilterSensitiveLog = (obj) => ({
|
|
278
285
|
...obj,
|
|
279
286
|
...(obj.Point && { Point: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -303,6 +310,7 @@ exports.ListDevicePositionsResponseFilterSensitiveLog = ListDevicePositionsRespo
|
|
|
303
310
|
const SearchPlaceIndexForPositionRequestFilterSensitiveLog = (obj) => ({
|
|
304
311
|
...obj,
|
|
305
312
|
...(obj.Position && { Position: smithy_client_1.SENSITIVE_STRING }),
|
|
313
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
306
314
|
});
|
|
307
315
|
exports.SearchPlaceIndexForPositionRequestFilterSensitiveLog = SearchPlaceIndexForPositionRequestFilterSensitiveLog;
|
|
308
316
|
const SearchForPositionResultFilterSensitiveLog = (obj) => ({
|
|
@@ -326,6 +334,7 @@ const SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = (obj) => ({
|
|
|
326
334
|
...(obj.Text && { Text: smithy_client_1.SENSITIVE_STRING }),
|
|
327
335
|
...(obj.BiasPosition && { BiasPosition: smithy_client_1.SENSITIVE_STRING }),
|
|
328
336
|
...(obj.FilterBBox && { FilterBBox: smithy_client_1.SENSITIVE_STRING }),
|
|
337
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
329
338
|
});
|
|
330
339
|
exports.SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog;
|
|
331
340
|
const SearchPlaceIndexForSuggestionsSummaryFilterSensitiveLog = (obj) => ({
|
|
@@ -345,6 +354,7 @@ const SearchPlaceIndexForTextRequestFilterSensitiveLog = (obj) => ({
|
|
|
345
354
|
...(obj.Text && { Text: smithy_client_1.SENSITIVE_STRING }),
|
|
346
355
|
...(obj.BiasPosition && { BiasPosition: smithy_client_1.SENSITIVE_STRING }),
|
|
347
356
|
...(obj.FilterBBox && { FilterBBox: smithy_client_1.SENSITIVE_STRING }),
|
|
357
|
+
...(obj.Key && { Key: smithy_client_1.SENSITIVE_STRING }),
|
|
348
358
|
});
|
|
349
359
|
exports.SearchPlaceIndexForTextRequestFilterSensitiveLog = SearchPlaceIndexForTextRequestFilterSensitiveLog;
|
|
350
360
|
const SearchForTextResultFilterSensitiveLog = (obj) => ({
|
|
@@ -225,6 +225,9 @@ const se_CalculateRouteCommand = async (input, context) => {
|
|
|
225
225
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
226
226
|
"/routes/v0/calculators/{CalculatorName}/calculate/route";
|
|
227
227
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
228
|
+
const query = (0, smithy_client_1.map)({
|
|
229
|
+
key: [, input.Key],
|
|
230
|
+
});
|
|
228
231
|
let body;
|
|
229
232
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
230
233
|
CarModeOptions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -252,6 +255,7 @@ const se_CalculateRouteCommand = async (input, context) => {
|
|
|
252
255
|
method: "POST",
|
|
253
256
|
headers,
|
|
254
257
|
path: resolvedPath,
|
|
258
|
+
query,
|
|
255
259
|
body,
|
|
256
260
|
});
|
|
257
261
|
};
|
|
@@ -264,6 +268,9 @@ const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
264
268
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
265
269
|
"/routes/v0/calculators/{CalculatorName}/calculate/route-matrix";
|
|
266
270
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
271
|
+
const query = (0, smithy_client_1.map)({
|
|
272
|
+
key: [, input.Key],
|
|
273
|
+
});
|
|
267
274
|
let body;
|
|
268
275
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
269
276
|
CarModeOptions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -289,6 +296,7 @@ const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
289
296
|
method: "POST",
|
|
290
297
|
headers,
|
|
291
298
|
path: resolvedPath,
|
|
299
|
+
query,
|
|
292
300
|
body,
|
|
293
301
|
});
|
|
294
302
|
};
|
|
@@ -465,6 +473,7 @@ const se_CreateTrackerCommand = async (input, context) => {
|
|
|
465
473
|
let body;
|
|
466
474
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
467
475
|
Description: [],
|
|
476
|
+
EventBridgeEnabled: [],
|
|
468
477
|
KmsKeyId: [],
|
|
469
478
|
PositionFiltering: [],
|
|
470
479
|
PricingPlan: [],
|
|
@@ -1021,6 +1030,7 @@ const se_GetPlaceCommand = async (input, context) => {
|
|
|
1021
1030
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
1022
1031
|
const query = (0, smithy_client_1.map)({
|
|
1023
1032
|
language: [, input.Language],
|
|
1033
|
+
key: [, input.Key],
|
|
1024
1034
|
});
|
|
1025
1035
|
let body;
|
|
1026
1036
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1374,6 +1384,9 @@ const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1374
1384
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1375
1385
|
"/places/v0/indexes/{IndexName}/search/position";
|
|
1376
1386
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1387
|
+
const query = (0, smithy_client_1.map)({
|
|
1388
|
+
key: [, input.Key],
|
|
1389
|
+
});
|
|
1377
1390
|
let body;
|
|
1378
1391
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1379
1392
|
Language: [],
|
|
@@ -1394,6 +1407,7 @@ const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1394
1407
|
method: "POST",
|
|
1395
1408
|
headers,
|
|
1396
1409
|
path: resolvedPath,
|
|
1410
|
+
query,
|
|
1397
1411
|
body,
|
|
1398
1412
|
});
|
|
1399
1413
|
};
|
|
@@ -1406,6 +1420,9 @@ const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
|
1406
1420
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1407
1421
|
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1408
1422
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1423
|
+
const query = (0, smithy_client_1.map)({
|
|
1424
|
+
key: [, input.Key],
|
|
1425
|
+
});
|
|
1409
1426
|
let body;
|
|
1410
1427
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1411
1428
|
BiasPosition: (_) => se_Position(_, context),
|
|
@@ -1430,6 +1447,7 @@ const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
|
1430
1447
|
method: "POST",
|
|
1431
1448
|
headers,
|
|
1432
1449
|
path: resolvedPath,
|
|
1450
|
+
query,
|
|
1433
1451
|
body,
|
|
1434
1452
|
});
|
|
1435
1453
|
};
|
|
@@ -1442,6 +1460,9 @@ const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1442
1460
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1443
1461
|
"/places/v0/indexes/{IndexName}/search/text";
|
|
1444
1462
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1463
|
+
const query = (0, smithy_client_1.map)({
|
|
1464
|
+
key: [, input.Key],
|
|
1465
|
+
});
|
|
1445
1466
|
let body;
|
|
1446
1467
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1447
1468
|
BiasPosition: (_) => se_Position(_, context),
|
|
@@ -1466,6 +1487,7 @@ const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1466
1487
|
method: "POST",
|
|
1467
1488
|
headers,
|
|
1468
1489
|
path: resolvedPath,
|
|
1490
|
+
query,
|
|
1469
1491
|
body,
|
|
1470
1492
|
});
|
|
1471
1493
|
};
|
|
@@ -1697,6 +1719,7 @@ const se_UpdateTrackerCommand = async (input, context) => {
|
|
|
1697
1719
|
let body;
|
|
1698
1720
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1699
1721
|
Description: [],
|
|
1722
|
+
EventBridgeEnabled: [],
|
|
1700
1723
|
PositionFiltering: [],
|
|
1701
1724
|
PricingPlan: [],
|
|
1702
1725
|
PricingPlanDataSource: [],
|
|
@@ -2980,6 +3003,7 @@ const de_DescribeTrackerCommand = async (output, context) => {
|
|
|
2980
3003
|
const doc = (0, smithy_client_1.take)(data, {
|
|
2981
3004
|
CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2982
3005
|
Description: smithy_client_1.expectString,
|
|
3006
|
+
EventBridgeEnabled: smithy_client_1.expectBoolean,
|
|
2983
3007
|
KmsKeyId: smithy_client_1.expectString,
|
|
2984
3008
|
PositionFiltering: smithy_client_1.expectString,
|
|
2985
3009
|
PricingPlan: smithy_client_1.expectString,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import { GetPlaceResponseFilterSensitiveLog } from "../models/models_0";
|
|
4
|
+
import { GetPlaceRequestFilterSensitiveLog, GetPlaceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { de_GetPlaceCommand, se_GetPlaceCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export { $Command };
|
|
7
7
|
export class GetPlaceCommand extends $Command {
|
|
@@ -28,7 +28,7 @@ export class GetPlaceCommand extends $Command {
|
|
|
28
28
|
logger,
|
|
29
29
|
clientName,
|
|
30
30
|
commandName,
|
|
31
|
-
inputFilterSensitiveLog:
|
|
31
|
+
inputFilterSensitiveLog: GetPlaceRequestFilterSensitiveLog,
|
|
32
32
|
outputFilterSensitiveLog: GetPlaceResponseFilterSensitiveLog,
|
|
33
33
|
};
|
|
34
34
|
const { requestHandler } = configuration;
|
|
@@ -152,6 +152,7 @@ export const CalculateRouteRequestFilterSensitiveLog = (obj) => ({
|
|
|
152
152
|
...(obj.DeparturePosition && { DeparturePosition: SENSITIVE_STRING }),
|
|
153
153
|
...(obj.DestinationPosition && { DestinationPosition: SENSITIVE_STRING }),
|
|
154
154
|
...(obj.WaypointPositions && { WaypointPositions: SENSITIVE_STRING }),
|
|
155
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
155
156
|
});
|
|
156
157
|
export const LegGeometryFilterSensitiveLog = (obj) => ({
|
|
157
158
|
...obj,
|
|
@@ -182,6 +183,7 @@ export const CalculateRouteMatrixRequestFilterSensitiveLog = (obj) => ({
|
|
|
182
183
|
...obj,
|
|
183
184
|
...(obj.DeparturePositions && { DeparturePositions: SENSITIVE_STRING }),
|
|
184
185
|
...(obj.DestinationPositions && { DestinationPositions: SENSITIVE_STRING }),
|
|
186
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
185
187
|
});
|
|
186
188
|
export const CalculateRouteMatrixResponseFilterSensitiveLog = (obj) => ({
|
|
187
189
|
...obj,
|
|
@@ -234,6 +236,10 @@ export const GetMapTileRequestFilterSensitiveLog = (obj) => ({
|
|
|
234
236
|
...obj,
|
|
235
237
|
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
236
238
|
});
|
|
239
|
+
export const GetPlaceRequestFilterSensitiveLog = (obj) => ({
|
|
240
|
+
...obj,
|
|
241
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
242
|
+
});
|
|
237
243
|
export const PlaceGeometryFilterSensitiveLog = (obj) => ({
|
|
238
244
|
...obj,
|
|
239
245
|
...(obj.Point && { Point: SENSITIVE_STRING }),
|
|
@@ -258,6 +264,7 @@ export const ListDevicePositionsResponseFilterSensitiveLog = (obj) => ({
|
|
|
258
264
|
export const SearchPlaceIndexForPositionRequestFilterSensitiveLog = (obj) => ({
|
|
259
265
|
...obj,
|
|
260
266
|
...(obj.Position && { Position: SENSITIVE_STRING }),
|
|
267
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
261
268
|
});
|
|
262
269
|
export const SearchForPositionResultFilterSensitiveLog = (obj) => ({
|
|
263
270
|
...obj,
|
|
@@ -277,6 +284,7 @@ export const SearchPlaceIndexForSuggestionsRequestFilterSensitiveLog = (obj) =>
|
|
|
277
284
|
...(obj.Text && { Text: SENSITIVE_STRING }),
|
|
278
285
|
...(obj.BiasPosition && { BiasPosition: SENSITIVE_STRING }),
|
|
279
286
|
...(obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }),
|
|
287
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
280
288
|
});
|
|
281
289
|
export const SearchPlaceIndexForSuggestionsSummaryFilterSensitiveLog = (obj) => ({
|
|
282
290
|
...obj,
|
|
@@ -293,6 +301,7 @@ export const SearchPlaceIndexForTextRequestFilterSensitiveLog = (obj) => ({
|
|
|
293
301
|
...(obj.Text && { Text: SENSITIVE_STRING }),
|
|
294
302
|
...(obj.BiasPosition && { BiasPosition: SENSITIVE_STRING }),
|
|
295
303
|
...(obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }),
|
|
304
|
+
...(obj.Key && { Key: SENSITIVE_STRING }),
|
|
296
305
|
});
|
|
297
306
|
export const SearchForTextResultFilterSensitiveLog = (obj) => ({
|
|
298
307
|
...obj,
|
|
@@ -213,6 +213,9 @@ export const se_CalculateRouteCommand = async (input, context) => {
|
|
|
213
213
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
214
214
|
"/routes/v0/calculators/{CalculatorName}/calculate/route";
|
|
215
215
|
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
216
|
+
const query = map({
|
|
217
|
+
key: [, input.Key],
|
|
218
|
+
});
|
|
216
219
|
let body;
|
|
217
220
|
body = JSON.stringify(take(input, {
|
|
218
221
|
CarModeOptions: (_) => _json(_),
|
|
@@ -240,6 +243,7 @@ export const se_CalculateRouteCommand = async (input, context) => {
|
|
|
240
243
|
method: "POST",
|
|
241
244
|
headers,
|
|
242
245
|
path: resolvedPath,
|
|
246
|
+
query,
|
|
243
247
|
body,
|
|
244
248
|
});
|
|
245
249
|
};
|
|
@@ -251,6 +255,9 @@ export const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
251
255
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
252
256
|
"/routes/v0/calculators/{CalculatorName}/calculate/route-matrix";
|
|
253
257
|
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
258
|
+
const query = map({
|
|
259
|
+
key: [, input.Key],
|
|
260
|
+
});
|
|
254
261
|
let body;
|
|
255
262
|
body = JSON.stringify(take(input, {
|
|
256
263
|
CarModeOptions: (_) => _json(_),
|
|
@@ -276,6 +283,7 @@ export const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
276
283
|
method: "POST",
|
|
277
284
|
headers,
|
|
278
285
|
path: resolvedPath,
|
|
286
|
+
query,
|
|
279
287
|
body,
|
|
280
288
|
});
|
|
281
289
|
};
|
|
@@ -446,6 +454,7 @@ export const se_CreateTrackerCommand = async (input, context) => {
|
|
|
446
454
|
let body;
|
|
447
455
|
body = JSON.stringify(take(input, {
|
|
448
456
|
Description: [],
|
|
457
|
+
EventBridgeEnabled: [],
|
|
449
458
|
KmsKeyId: [],
|
|
450
459
|
PositionFiltering: [],
|
|
451
460
|
PricingPlan: [],
|
|
@@ -981,6 +990,7 @@ export const se_GetPlaceCommand = async (input, context) => {
|
|
|
981
990
|
resolvedPath = __resolvedPath(resolvedPath, input, "PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
982
991
|
const query = map({
|
|
983
992
|
language: [, input.Language],
|
|
993
|
+
key: [, input.Key],
|
|
984
994
|
});
|
|
985
995
|
let body;
|
|
986
996
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1322,6 +1332,9 @@ export const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1322
1332
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1323
1333
|
"/places/v0/indexes/{IndexName}/search/position";
|
|
1324
1334
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1335
|
+
const query = map({
|
|
1336
|
+
key: [, input.Key],
|
|
1337
|
+
});
|
|
1325
1338
|
let body;
|
|
1326
1339
|
body = JSON.stringify(take(input, {
|
|
1327
1340
|
Language: [],
|
|
@@ -1342,6 +1355,7 @@ export const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1342
1355
|
method: "POST",
|
|
1343
1356
|
headers,
|
|
1344
1357
|
path: resolvedPath,
|
|
1358
|
+
query,
|
|
1345
1359
|
body,
|
|
1346
1360
|
});
|
|
1347
1361
|
};
|
|
@@ -1353,6 +1367,9 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) =
|
|
|
1353
1367
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1354
1368
|
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1355
1369
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1370
|
+
const query = map({
|
|
1371
|
+
key: [, input.Key],
|
|
1372
|
+
});
|
|
1356
1373
|
let body;
|
|
1357
1374
|
body = JSON.stringify(take(input, {
|
|
1358
1375
|
BiasPosition: (_) => se_Position(_, context),
|
|
@@ -1377,6 +1394,7 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) =
|
|
|
1377
1394
|
method: "POST",
|
|
1378
1395
|
headers,
|
|
1379
1396
|
path: resolvedPath,
|
|
1397
|
+
query,
|
|
1380
1398
|
body,
|
|
1381
1399
|
});
|
|
1382
1400
|
};
|
|
@@ -1388,6 +1406,9 @@ export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1388
1406
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1389
1407
|
"/places/v0/indexes/{IndexName}/search/text";
|
|
1390
1408
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1409
|
+
const query = map({
|
|
1410
|
+
key: [, input.Key],
|
|
1411
|
+
});
|
|
1391
1412
|
let body;
|
|
1392
1413
|
body = JSON.stringify(take(input, {
|
|
1393
1414
|
BiasPosition: (_) => se_Position(_, context),
|
|
@@ -1412,6 +1433,7 @@ export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1412
1433
|
method: "POST",
|
|
1413
1434
|
headers,
|
|
1414
1435
|
path: resolvedPath,
|
|
1436
|
+
query,
|
|
1415
1437
|
body,
|
|
1416
1438
|
});
|
|
1417
1439
|
};
|
|
@@ -1635,6 +1657,7 @@ export const se_UpdateTrackerCommand = async (input, context) => {
|
|
|
1635
1657
|
let body;
|
|
1636
1658
|
body = JSON.stringify(take(input, {
|
|
1637
1659
|
Description: [],
|
|
1660
|
+
EventBridgeEnabled: [],
|
|
1638
1661
|
PositionFiltering: [],
|
|
1639
1662
|
PricingPlan: [],
|
|
1640
1663
|
PricingPlanDataSource: [],
|
|
@@ -2891,6 +2914,7 @@ export const de_DescribeTrackerCommand = async (output, context) => {
|
|
|
2891
2914
|
const doc = take(data, {
|
|
2892
2915
|
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2893
2916
|
Description: __expectString,
|
|
2917
|
+
EventBridgeEnabled: __expectBoolean,
|
|
2894
2918
|
KmsKeyId: __expectString,
|
|
2895
2919
|
PositionFiltering: __expectString,
|
|
2896
2920
|
PricingPlan: __expectString,
|
|
@@ -99,6 +99,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
|
|
|
99
99
|
* Unit: "STRING_VALUE",
|
|
100
100
|
* },
|
|
101
101
|
* },
|
|
102
|
+
* Key: "STRING_VALUE",
|
|
102
103
|
* };
|
|
103
104
|
* const command = new CalculateRouteCommand(input);
|
|
104
105
|
* const response = await client.send(command);
|
|
@@ -105,6 +105,7 @@ export interface CalculateRouteMatrixCommandOutput extends CalculateRouteMatrixR
|
|
|
105
105
|
* Unit: "STRING_VALUE",
|
|
106
106
|
* },
|
|
107
107
|
* },
|
|
108
|
+
* Key: "STRING_VALUE",
|
|
108
109
|
* };
|
|
109
110
|
* const command = new CalculateRouteMatrixCommand(input);
|
|
110
111
|
* const response = await client.send(command);
|
|
@@ -24,13 +24,10 @@ export interface CreateKeyCommandOutput extends CreateKeyResponse, __MetadataBea
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates an API key resource in your Amazon Web Services account, which lets you grant
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* features before announcing general availability. For more information, see
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
|
|
33
|
-
* </important>
|
|
27
|
+
* actions for Amazon Location resources to the API key bearer.</p>
|
|
28
|
+
* <note>
|
|
29
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
|
|
30
|
+
* </note>
|
|
34
31
|
* @example
|
|
35
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
36
33
|
* ```javascript
|
|
@@ -41,6 +41,7 @@ export interface CreateTrackerCommandOutput extends CreateTrackerResponse, __Met
|
|
|
41
41
|
* "<keys>": "STRING_VALUE",
|
|
42
42
|
* },
|
|
43
43
|
* PositionFiltering: "STRING_VALUE",
|
|
44
|
+
* EventBridgeEnabled: true || false,
|
|
44
45
|
* };
|
|
45
46
|
* const command = new CreateTrackerCommand(input);
|
|
46
47
|
* const response = await client.send(command);
|
|
@@ -24,11 +24,6 @@ export interface DescribeKeyCommandOutput extends DescribeKeyResponse, __Metadat
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Retrieves the API key resource details.</p>
|
|
27
|
-
* <important>
|
|
28
|
-
* <p>The API keys feature is in preview. We may add, change, or remove
|
|
29
|
-
* features before announcing general availability. For more information, see
|
|
30
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
|
|
31
|
-
* </important>
|
|
32
27
|
* @example
|
|
33
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
29
|
* ```javascript
|
|
@@ -48,6 +48,7 @@ export interface DescribeTrackerCommandOutput extends DescribeTrackerResponse, _
|
|
|
48
48
|
* // UpdateTime: new Date("TIMESTAMP"), // required
|
|
49
49
|
* // KmsKeyId: "STRING_VALUE",
|
|
50
50
|
* // PositionFiltering: "STRING_VALUE",
|
|
51
|
+
* // EventBridgeEnabled: true || false,
|
|
51
52
|
* // };
|
|
52
53
|
*
|
|
53
54
|
* ```
|
|
@@ -50,6 +50,7 @@ export interface GetPlaceCommandOutput extends GetPlaceResponse, __MetadataBeare
|
|
|
50
50
|
* IndexName: "STRING_VALUE", // required
|
|
51
51
|
* PlaceId: "STRING_VALUE", // required
|
|
52
52
|
* Language: "STRING_VALUE",
|
|
53
|
+
* Key: "STRING_VALUE",
|
|
53
54
|
* };
|
|
54
55
|
* const command = new GetPlaceCommand(input);
|
|
55
56
|
* const response = await client.send(command);
|
|
@@ -24,11 +24,6 @@ export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBeare
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Lists API key resources in your Amazon Web Services account.</p>
|
|
27
|
-
* <important>
|
|
28
|
-
* <p>The API keys feature is in preview. We may add, change, or remove
|
|
29
|
-
* features before announcing general availability. For more information, see
|
|
30
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
|
|
31
|
-
* </important>
|
|
32
27
|
* @example
|
|
33
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
29
|
* ```javascript
|
|
@@ -38,6 +38,7 @@ export interface SearchPlaceIndexForPositionCommandOutput extends SearchPlaceInd
|
|
|
38
38
|
* ],
|
|
39
39
|
* MaxResults: Number("int"),
|
|
40
40
|
* Language: "STRING_VALUE",
|
|
41
|
+
* Key: "STRING_VALUE",
|
|
41
42
|
* };
|
|
42
43
|
* const command = new SearchPlaceIndexForPositionCommand(input);
|
|
43
44
|
* const response = await client.send(command);
|
|
@@ -58,6 +58,7 @@ export interface SearchPlaceIndexForSuggestionsCommandOutput extends SearchPlace
|
|
|
58
58
|
* FilterCategories: [ // FilterPlaceCategoryList
|
|
59
59
|
* "STRING_VALUE",
|
|
60
60
|
* ],
|
|
61
|
+
* Key: "STRING_VALUE",
|
|
61
62
|
* };
|
|
62
63
|
* const command = new SearchPlaceIndexForSuggestionsCommand(input);
|
|
63
64
|
* const response = await client.send(command);
|
|
@@ -56,6 +56,7 @@ export interface SearchPlaceIndexForTextCommandOutput extends SearchPlaceIndexFo
|
|
|
56
56
|
* FilterCategories: [ // FilterPlaceCategoryList
|
|
57
57
|
* "STRING_VALUE",
|
|
58
58
|
* ],
|
|
59
|
+
* Key: "STRING_VALUE",
|
|
59
60
|
* };
|
|
60
61
|
* const command = new SearchPlaceIndexForTextCommand(input);
|
|
61
62
|
* const response = await client.send(command);
|
|
@@ -24,11 +24,6 @@ export interface UpdateKeyCommandOutput extends UpdateKeyResponse, __MetadataBea
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Updates the specified properties of a given API key resource.</p>
|
|
27
|
-
* <important>
|
|
28
|
-
* <p>The API keys feature is in preview. We may add, change, or remove
|
|
29
|
-
* features before announcing general availability. For more information, see
|
|
30
|
-
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">Using API keys</a>.</p>
|
|
31
|
-
* </important>
|
|
32
27
|
* @example
|
|
33
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
34
29
|
* ```javascript
|
|
@@ -36,6 +36,7 @@ export interface UpdateTrackerCommandOutput extends UpdateTrackerResponse, __Met
|
|
|
36
36
|
* PricingPlanDataSource: "STRING_VALUE",
|
|
37
37
|
* Description: "STRING_VALUE",
|
|
38
38
|
* PositionFiltering: "STRING_VALUE",
|
|
39
|
+
* EventBridgeEnabled: true || false,
|
|
39
40
|
* };
|
|
40
41
|
* const command = new UpdateTrackerCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -49,58 +49,99 @@ export declare class ConflictException extends __BaseException {
|
|
|
49
49
|
export interface ApiKeyRestrictions {
|
|
50
50
|
/**
|
|
51
51
|
* <p>A list of allowed actions that an API key resource grants permissions to
|
|
52
|
-
* perform
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* list. For example, <code>["geo:GetMap*"]</code> is valid but
|
|
56
|
-
* <code>["geo:GetMapTile"]</code> is not.</p>
|
|
57
|
-
* </note>
|
|
58
|
-
*/
|
|
59
|
-
AllowActions: string[] | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* <p>A list of allowed resource ARNs that a API key bearer can perform actions on</p>
|
|
62
|
-
* <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
|
|
63
|
-
* (ARNs)</a>.</p>
|
|
64
|
-
* <note>
|
|
65
|
-
* <p>In this preview, you can allow only map resources.</p>
|
|
66
|
-
* </note>
|
|
67
|
-
* <p>Requirements:</p>
|
|
52
|
+
* perform. You must have at least one action for each type of resource. For example,
|
|
53
|
+
* if you have a place resource, you must include at least one place action.</p>
|
|
54
|
+
* <p>The following are valid values for the actions.</p>
|
|
68
55
|
* <ul>
|
|
69
56
|
* <li>
|
|
70
|
-
* <p>
|
|
57
|
+
* <p>
|
|
58
|
+
* <b>Map actions</b>
|
|
59
|
+
* </p>
|
|
60
|
+
* <ul>
|
|
61
|
+
* <li>
|
|
62
|
+
* <p>
|
|
63
|
+
* <code>geo:GetMap*</code> - Allows all actions needed for map rendering.</p>
|
|
64
|
+
* </li>
|
|
65
|
+
* </ul>
|
|
71
66
|
* </li>
|
|
72
67
|
* <li>
|
|
73
68
|
* <p>
|
|
74
|
-
* <
|
|
75
|
-
*
|
|
76
|
-
*
|
|
69
|
+
* <b>Place actions</b>
|
|
70
|
+
* </p>
|
|
71
|
+
* <ul>
|
|
72
|
+
* <li>
|
|
73
|
+
* <p>
|
|
74
|
+
* <code>geo:SearchPlaceIndexForText</code> - Allows geocoding.</p>
|
|
75
|
+
* </li>
|
|
76
|
+
* <li>
|
|
77
|
+
* <p>
|
|
78
|
+
* <code>geo:SearchPlaceIndexForPosition</code> - Allows reverse
|
|
79
|
+
* geocoding.</p>
|
|
80
|
+
* </li>
|
|
81
|
+
* <li>
|
|
82
|
+
* <p>
|
|
83
|
+
* <code>geo:SearchPlaceIndexForSuggestions</code> - Allows generating
|
|
84
|
+
* suggestions from text.</p>
|
|
85
|
+
* </li>
|
|
86
|
+
* <li>
|
|
87
|
+
* <p>
|
|
88
|
+
* <code>GetPlace</code> - Allows finding a place by place ID.</p>
|
|
89
|
+
* </li>
|
|
90
|
+
* </ul>
|
|
77
91
|
* </li>
|
|
78
92
|
* <li>
|
|
79
93
|
* <p>
|
|
80
|
-
* <
|
|
81
|
-
*
|
|
82
|
-
*
|
|
94
|
+
* <b>Route actions</b>
|
|
95
|
+
* </p>
|
|
96
|
+
* <ul>
|
|
97
|
+
* <li>
|
|
98
|
+
* <p>
|
|
99
|
+
* <code>geo:CalculateRoute</code> - Allows point to point routing.</p>
|
|
100
|
+
* </li>
|
|
101
|
+
* <li>
|
|
102
|
+
* <p>
|
|
103
|
+
* <code>geo:CalculateRouteMatrix</code> - Allows calculating a matrix of
|
|
104
|
+
* routes.</p>
|
|
105
|
+
* </li>
|
|
106
|
+
* </ul>
|
|
83
107
|
* </li>
|
|
108
|
+
* </ul>
|
|
109
|
+
* <note>
|
|
110
|
+
* <p>You must use these strings exactly. For example, to provide access to map
|
|
111
|
+
* rendering, the only valid action is <code>geo:GetMap*</code> as an input to
|
|
112
|
+
* the list. <code>["geo:GetMap*"]</code> is valid but
|
|
113
|
+
* <code>["geo:GetMapTile"]</code> is not. Similarly, you cannot use
|
|
114
|
+
* <code>["geo:SearchPlaceIndexFor*"]</code> - you must list each of the Place
|
|
115
|
+
* actions separately.</p>
|
|
116
|
+
* </note>
|
|
117
|
+
*/
|
|
118
|
+
AllowActions: string[] | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* <p>A list of allowed resource ARNs that a API key bearer can perform actions on.</p>
|
|
121
|
+
* <ul>
|
|
84
122
|
* <li>
|
|
85
|
-
* <p>
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* path.</p>
|
|
89
|
-
* <p>
|
|
90
|
-
* <code>resource-id</code> can also include wildcard characters, denoted by an
|
|
91
|
-
* asterisk (*).</p>
|
|
123
|
+
* <p>The ARN must be the correct ARN for a map, place, or route ARN. You may
|
|
124
|
+
* include wildcards in the resource-id to match multiple resources of the
|
|
125
|
+
* same type.</p>
|
|
92
126
|
* </li>
|
|
93
127
|
* <li>
|
|
94
|
-
* <p>
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
128
|
+
* <p>The resources must be in the same <code>partition</code>,
|
|
129
|
+
* <code>region</code>, and <code>account-id</code> as the key that is being
|
|
130
|
+
* created.</p>
|
|
131
|
+
* </li>
|
|
132
|
+
* <li>
|
|
133
|
+
* <p>Other than wildcards, you must include the full ARN, including the
|
|
134
|
+
* <code>arn</code>, <code>partition</code>, <code>service</code>,
|
|
135
|
+
* <code>region</code>, <code>account-id</code> and <code>resource-id</code>,
|
|
136
|
+
* delimited by colons (:).</p>
|
|
98
137
|
* </li>
|
|
99
138
|
* <li>
|
|
100
|
-
* <p>No spaces allowed. For example,
|
|
101
|
-
*
|
|
139
|
+
* <p>No spaces allowed, even with wildcards. For example,
|
|
140
|
+
* <code>arn:aws:geo:region:<i>account-id</i>:map/ExampleMap*</code>.</p>
|
|
102
141
|
* </li>
|
|
103
142
|
* </ul>
|
|
143
|
+
* <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
|
|
144
|
+
* (ARNs)</a>.</p>
|
|
104
145
|
*/
|
|
105
146
|
AllowResources: string[] | undefined;
|
|
106
147
|
/**
|
|
@@ -904,8 +945,11 @@ export interface BatchPutGeofenceRequestEntry {
|
|
|
904
945
|
*/
|
|
905
946
|
Geometry: GeofenceGeometry | undefined;
|
|
906
947
|
/**
|
|
907
|
-
* <p>
|
|
908
|
-
*
|
|
948
|
+
* <p>Associates one of more properties with the geofence. A property is a key-value
|
|
949
|
+
* pair stored with the geofence and added to any geofence event triggered with that
|
|
950
|
+
* geofence.</p>
|
|
951
|
+
* <p>Format: <code>"key" : "value"</code>
|
|
952
|
+
* </p>
|
|
909
953
|
*/
|
|
910
954
|
GeofenceProperties?: Record<string, string>;
|
|
911
955
|
}
|
|
@@ -1325,6 +1369,11 @@ export interface CalculateRouteRequest {
|
|
|
1325
1369
|
* <p>Requirements: <code>TravelMode</code> must be specified as <code>Truck</code>.</p>
|
|
1326
1370
|
*/
|
|
1327
1371
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
1372
|
+
/**
|
|
1373
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
1374
|
+
* the request.</p>
|
|
1375
|
+
*/
|
|
1376
|
+
Key?: string;
|
|
1328
1377
|
}
|
|
1329
1378
|
/**
|
|
1330
1379
|
* @public
|
|
@@ -1704,6 +1753,11 @@ export interface CalculateRouteMatrixRequest {
|
|
|
1704
1753
|
* <p>Requirements: <code>TravelMode</code> must be specified as <code>Truck</code>.</p>
|
|
1705
1754
|
*/
|
|
1706
1755
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
1756
|
+
/**
|
|
1757
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
1758
|
+
* the request.</p>
|
|
1759
|
+
*/
|
|
1760
|
+
Key?: string;
|
|
1707
1761
|
}
|
|
1708
1762
|
/**
|
|
1709
1763
|
* @public
|
|
@@ -2643,6 +2697,16 @@ export interface CreateTrackerRequest {
|
|
|
2643
2697
|
* <p>This field is optional. If not specified, the default value is <code>TimeBased</code>.</p>
|
|
2644
2698
|
*/
|
|
2645
2699
|
PositionFiltering?: PositionFiltering | string;
|
|
2700
|
+
/**
|
|
2701
|
+
* <p>Whether to enable position <code>UPDATE</code> events from this tracker to be sent to
|
|
2702
|
+
* EventBridge.</p>
|
|
2703
|
+
* <note>
|
|
2704
|
+
* <p>You do not need enable this feature to get <code>ENTER</code> and
|
|
2705
|
+
* <code>EXIT</code> events for geofences with this tracker. Those events are
|
|
2706
|
+
* always sent to EventBridge.</p>
|
|
2707
|
+
* </note>
|
|
2708
|
+
*/
|
|
2709
|
+
EventBridgeEnabled?: boolean;
|
|
2646
2710
|
}
|
|
2647
2711
|
/**
|
|
2648
2712
|
* @public
|
|
@@ -3107,6 +3171,11 @@ export interface DescribeTrackerResponse {
|
|
|
3107
3171
|
* <p>The position filtering method of the tracker resource.</p>
|
|
3108
3172
|
*/
|
|
3109
3173
|
PositionFiltering?: PositionFiltering | string;
|
|
3174
|
+
/**
|
|
3175
|
+
* <p>Whether <code>UPDATE</code> events from this tracker in EventBridge are
|
|
3176
|
+
* enabled. If set to <code>true</code> these events will be sent to EventBridge.</p>
|
|
3177
|
+
*/
|
|
3178
|
+
EventBridgeEnabled?: boolean;
|
|
3110
3179
|
}
|
|
3111
3180
|
/**
|
|
3112
3181
|
* @public
|
|
@@ -3309,8 +3378,11 @@ export interface GetGeofenceResponse {
|
|
|
3309
3378
|
*/
|
|
3310
3379
|
UpdateTime: Date | undefined;
|
|
3311
3380
|
/**
|
|
3312
|
-
* <p>
|
|
3313
|
-
*
|
|
3381
|
+
* <p>User defined properties of the geofence. A property is a key-value
|
|
3382
|
+
* pair stored with the geofence and added to any geofence event triggered with that
|
|
3383
|
+
* geofence.</p>
|
|
3384
|
+
* <p>Format: <code>"key" : "value"</code>
|
|
3385
|
+
* </p>
|
|
3314
3386
|
*/
|
|
3315
3387
|
GeofenceProperties?: Record<string, string>;
|
|
3316
3388
|
}
|
|
@@ -3461,8 +3533,11 @@ export interface ListGeofenceResponseEntry {
|
|
|
3461
3533
|
*/
|
|
3462
3534
|
UpdateTime: Date | undefined;
|
|
3463
3535
|
/**
|
|
3464
|
-
* <p>
|
|
3465
|
-
*
|
|
3536
|
+
* <p>User defined properties of the geofence. A property is a key-value
|
|
3537
|
+
* pair stored with the geofence and added to any geofence event triggered with that
|
|
3538
|
+
* geofence.</p>
|
|
3539
|
+
* <p>Format: <code>"key" : "value"</code>
|
|
3540
|
+
* </p>
|
|
3466
3541
|
*/
|
|
3467
3542
|
GeofenceProperties?: Record<string, string>;
|
|
3468
3543
|
}
|
|
@@ -3502,8 +3577,11 @@ export interface PutGeofenceRequest {
|
|
|
3502
3577
|
*/
|
|
3503
3578
|
Geometry: GeofenceGeometry | undefined;
|
|
3504
3579
|
/**
|
|
3505
|
-
* <p>
|
|
3506
|
-
*
|
|
3580
|
+
* <p>Associates one of more properties with the geofence. A property is a key-value
|
|
3581
|
+
* pair stored with the geofence and added to any geofence event triggered with that
|
|
3582
|
+
* geofence.</p>
|
|
3583
|
+
* <p>Format: <code>"key" : "value"</code>
|
|
3584
|
+
* </p>
|
|
3507
3585
|
*/
|
|
3508
3586
|
GeofenceProperties?: Record<string, string>;
|
|
3509
3587
|
}
|
|
@@ -3982,6 +4060,11 @@ export interface GetPlaceRequest {
|
|
|
3982
4060
|
* that the provider does support.</p>
|
|
3983
4061
|
*/
|
|
3984
4062
|
Language?: string;
|
|
4063
|
+
/**
|
|
4064
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
4065
|
+
* the request.</p>
|
|
4066
|
+
*/
|
|
4067
|
+
Key?: string;
|
|
3985
4068
|
}
|
|
3986
4069
|
/**
|
|
3987
4070
|
* @public
|
|
@@ -4655,6 +4738,11 @@ export interface SearchPlaceIndexForPositionRequest {
|
|
|
4655
4738
|
* that the provider does support.</p>
|
|
4656
4739
|
*/
|
|
4657
4740
|
Language?: string;
|
|
4741
|
+
/**
|
|
4742
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
4743
|
+
* the request.</p>
|
|
4744
|
+
*/
|
|
4745
|
+
Key?: string;
|
|
4658
4746
|
}
|
|
4659
4747
|
/**
|
|
4660
4748
|
* @public
|
|
@@ -4830,6 +4918,11 @@ export interface SearchPlaceIndexForSuggestionsRequest {
|
|
|
4830
4918
|
* Guide</i>.</p>
|
|
4831
4919
|
*/
|
|
4832
4920
|
FilterCategories?: string[];
|
|
4921
|
+
/**
|
|
4922
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
4923
|
+
* the request.</p>
|
|
4924
|
+
*/
|
|
4925
|
+
Key?: string;
|
|
4833
4926
|
}
|
|
4834
4927
|
/**
|
|
4835
4928
|
* @public
|
|
@@ -5033,6 +5126,11 @@ export interface SearchPlaceIndexForTextRequest {
|
|
|
5033
5126
|
* Guide</i>.</p>
|
|
5034
5127
|
*/
|
|
5035
5128
|
FilterCategories?: string[];
|
|
5129
|
+
/**
|
|
5130
|
+
* <p>The optional <a href="https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html">API key</a> to authorize
|
|
5131
|
+
* the request.</p>
|
|
5132
|
+
*/
|
|
5133
|
+
Key?: string;
|
|
5036
5134
|
}
|
|
5037
5135
|
/**
|
|
5038
5136
|
* @public
|
|
@@ -5313,6 +5411,16 @@ export interface UpdateTrackerRequest {
|
|
|
5313
5411
|
* </ul>
|
|
5314
5412
|
*/
|
|
5315
5413
|
PositionFiltering?: PositionFiltering | string;
|
|
5414
|
+
/**
|
|
5415
|
+
* <p>Whether to enable position <code>UPDATE</code> events from this tracker to be sent to
|
|
5416
|
+
* EventBridge.</p>
|
|
5417
|
+
* <note>
|
|
5418
|
+
* <p>You do not need enable this feature to get <code>ENTER</code> and
|
|
5419
|
+
* <code>EXIT</code> events for geofences with this tracker. Those events are
|
|
5420
|
+
* always sent to EventBridge.</p>
|
|
5421
|
+
* </note>
|
|
5422
|
+
*/
|
|
5423
|
+
EventBridgeEnabled?: boolean;
|
|
5316
5424
|
}
|
|
5317
5425
|
/**
|
|
5318
5426
|
* @public
|
|
@@ -5455,6 +5563,10 @@ export declare const GetMapStyleDescriptorRequestFilterSensitiveLog: (obj: GetMa
|
|
|
5455
5563
|
* @internal
|
|
5456
5564
|
*/
|
|
5457
5565
|
export declare const GetMapTileRequestFilterSensitiveLog: (obj: GetMapTileRequest) => any;
|
|
5566
|
+
/**
|
|
5567
|
+
* @internal
|
|
5568
|
+
*/
|
|
5569
|
+
export declare const GetPlaceRequestFilterSensitiveLog: (obj: GetPlaceRequest) => any;
|
|
5458
5570
|
/**
|
|
5459
5571
|
* @internal
|
|
5460
5572
|
*/
|
|
@@ -297,6 +297,7 @@ export interface CalculateRouteRequest {
|
|
|
297
297
|
IncludeLegGeometry?: boolean;
|
|
298
298
|
CarModeOptions?: CalculateRouteCarModeOptions;
|
|
299
299
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
300
|
+
Key?: string;
|
|
300
301
|
}
|
|
301
302
|
export interface LegGeometry {
|
|
302
303
|
LineString?: number[][];
|
|
@@ -337,6 +338,7 @@ export interface CalculateRouteMatrixRequest {
|
|
|
337
338
|
DistanceUnit?: DistanceUnit | string;
|
|
338
339
|
CarModeOptions?: CalculateRouteCarModeOptions;
|
|
339
340
|
TruckModeOptions?: CalculateRouteTruckModeOptions;
|
|
341
|
+
Key?: string;
|
|
340
342
|
}
|
|
341
343
|
export type RouteMatrixErrorCode =
|
|
342
344
|
| "DeparturePositionNotFound"
|
|
@@ -437,6 +439,7 @@ export interface CreateTrackerRequest {
|
|
|
437
439
|
Description?: string;
|
|
438
440
|
Tags?: Record<string, string>;
|
|
439
441
|
PositionFiltering?: PositionFiltering | string;
|
|
442
|
+
EventBridgeEnabled?: boolean;
|
|
440
443
|
}
|
|
441
444
|
export interface CreateTrackerResponse {
|
|
442
445
|
TrackerName: string | undefined;
|
|
@@ -532,6 +535,7 @@ export interface DescribeTrackerResponse {
|
|
|
532
535
|
UpdateTime: Date | undefined;
|
|
533
536
|
KmsKeyId?: string;
|
|
534
537
|
PositionFiltering?: PositionFiltering | string;
|
|
538
|
+
EventBridgeEnabled?: boolean;
|
|
535
539
|
}
|
|
536
540
|
export interface DisassociateTrackerConsumerRequest {
|
|
537
541
|
TrackerName: string | undefined;
|
|
@@ -691,6 +695,7 @@ export interface GetPlaceRequest {
|
|
|
691
695
|
IndexName: string | undefined;
|
|
692
696
|
PlaceId: string | undefined;
|
|
693
697
|
Language?: string;
|
|
698
|
+
Key?: string;
|
|
694
699
|
}
|
|
695
700
|
export interface PlaceGeometry {
|
|
696
701
|
Point?: number[];
|
|
@@ -828,6 +833,7 @@ export interface SearchPlaceIndexForPositionRequest {
|
|
|
828
833
|
Position: number[] | undefined;
|
|
829
834
|
MaxResults?: number;
|
|
830
835
|
Language?: string;
|
|
836
|
+
Key?: string;
|
|
831
837
|
}
|
|
832
838
|
export interface SearchForPositionResult {
|
|
833
839
|
Place: Place | undefined;
|
|
@@ -853,6 +859,7 @@ export interface SearchPlaceIndexForSuggestionsRequest {
|
|
|
853
859
|
MaxResults?: number;
|
|
854
860
|
Language?: string;
|
|
855
861
|
FilterCategories?: string[];
|
|
862
|
+
Key?: string;
|
|
856
863
|
}
|
|
857
864
|
export interface SearchForSuggestionsResult {
|
|
858
865
|
Text: string | undefined;
|
|
@@ -883,6 +890,7 @@ export interface SearchPlaceIndexForTextRequest {
|
|
|
883
890
|
MaxResults?: number;
|
|
884
891
|
Language?: string;
|
|
885
892
|
FilterCategories?: string[];
|
|
893
|
+
Key?: string;
|
|
886
894
|
}
|
|
887
895
|
export interface SearchForTextResult {
|
|
888
896
|
Place: Place | undefined;
|
|
@@ -932,6 +940,7 @@ export interface UpdateTrackerRequest {
|
|
|
932
940
|
PricingPlanDataSource?: string;
|
|
933
941
|
Description?: string;
|
|
934
942
|
PositionFiltering?: PositionFiltering | string;
|
|
943
|
+
EventBridgeEnabled?: boolean;
|
|
935
944
|
}
|
|
936
945
|
export interface UpdateTrackerResponse {
|
|
937
946
|
TrackerName: string | undefined;
|
|
@@ -1017,6 +1026,9 @@ export declare const GetMapStyleDescriptorRequestFilterSensitiveLog: (
|
|
|
1017
1026
|
export declare const GetMapTileRequestFilterSensitiveLog: (
|
|
1018
1027
|
obj: GetMapTileRequest
|
|
1019
1028
|
) => any;
|
|
1029
|
+
export declare const GetPlaceRequestFilterSensitiveLog: (
|
|
1030
|
+
obj: GetPlaceRequest
|
|
1031
|
+
) => any;
|
|
1020
1032
|
export declare const PlaceGeometryFilterSensitiveLog: (
|
|
1021
1033
|
obj: PlaceGeometry
|
|
1022
1034
|
) => 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.
|
|
4
|
+
"version": "3.369.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,17 +21,17 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.369.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.369.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.369.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.369.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.369.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.369.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.369.0",
|
|
31
|
+
"@aws-sdk/types": "3.369.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.369.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.369.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.369.0",
|
|
35
35
|
"@smithy/config-resolver": "^1.0.1",
|
|
36
36
|
"@smithy/fetch-http-handler": "^1.0.1",
|
|
37
37
|
"@smithy/hash-node": "^1.0.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@smithy/node-http-handler": "^1.0.2",
|
|
46
46
|
"@smithy/protocol-http": "^1.0.1",
|
|
47
47
|
"@smithy/smithy-client": "^1.0.3",
|
|
48
|
-
"@smithy/types": "^1.
|
|
48
|
+
"@smithy/types": "^1.1.0",
|
|
49
49
|
"@smithy/url-parser": "^1.0.1",
|
|
50
50
|
"@smithy/util-base64": "^1.0.1",
|
|
51
51
|
"@smithy/util-body-length-browser": "^1.0.1",
|