@aws-sdk/client-location 3.276.0 → 3.279.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist-cjs/Location.js +75 -0
  2. package/dist-cjs/commands/CreateKeyCommand.js +46 -0
  3. package/dist-cjs/commands/DeleteKeyCommand.js +46 -0
  4. package/dist-cjs/commands/DescribeKeyCommand.js +46 -0
  5. package/dist-cjs/commands/ListKeysCommand.js +46 -0
  6. package/dist-cjs/commands/UpdateKeyCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +80 -22
  10. package/dist-cjs/pagination/ListKeysPaginator.js +36 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_restJson1.js +544 -3
  13. package/dist-es/Location.js +75 -0
  14. package/dist-es/commands/CreateKeyCommand.js +42 -0
  15. package/dist-es/commands/DeleteKeyCommand.js +42 -0
  16. package/dist-es/commands/DescribeKeyCommand.js +42 -0
  17. package/dist-es/commands/ListKeysCommand.js +42 -0
  18. package/dist-es/commands/UpdateKeyCommand.js +42 -0
  19. package/dist-es/commands/index.js +5 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +60 -15
  22. package/dist-es/pagination/ListKeysPaginator.js +32 -0
  23. package/dist-es/pagination/index.js +1 -0
  24. package/dist-es/protocols/Aws_restJson1.js +531 -0
  25. package/dist-types/Location.d.ts +82 -24
  26. package/dist-types/LocationClient.d.ts +7 -2
  27. package/dist-types/commands/CreateKeyCommand.d.ts +44 -0
  28. package/dist-types/commands/CreateMapCommand.d.ts +2 -2
  29. package/dist-types/commands/CreatePlaceIndexCommand.d.ts +2 -2
  30. package/dist-types/commands/CreateRouteCalculatorCommand.d.ts +2 -2
  31. package/dist-types/commands/CreateTrackerCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteGeofenceCollectionCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteKeyCommand.d.ts +38 -0
  34. package/dist-types/commands/DeleteMapCommand.d.ts +1 -1
  35. package/dist-types/commands/DeletePlaceIndexCommand.d.ts +1 -1
  36. package/dist-types/commands/DeleteRouteCalculatorCommand.d.ts +1 -1
  37. package/dist-types/commands/DeleteTrackerCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeKeyCommand.d.ts +42 -0
  39. package/dist-types/commands/GetPlaceCommand.d.ts +2 -2
  40. package/dist-types/commands/ListGeofenceCollectionsCommand.d.ts +1 -1
  41. package/dist-types/commands/ListKeysCommand.d.ts +42 -0
  42. package/dist-types/commands/ListMapsCommand.d.ts +1 -1
  43. package/dist-types/commands/ListPlaceIndexesCommand.d.ts +1 -1
  44. package/dist-types/commands/ListRouteCalculatorsCommand.d.ts +1 -1
  45. package/dist-types/commands/ListTrackersCommand.d.ts +1 -1
  46. package/dist-types/commands/TagResourceCommand.d.ts +5 -5
  47. package/dist-types/commands/UpdateKeyCommand.d.ts +42 -0
  48. package/dist-types/commands/index.d.ts +5 -0
  49. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  50. package/dist-types/models/models_0.d.ts +548 -67
  51. package/dist-types/pagination/ListKeysPaginator.d.ts +4 -0
  52. package/dist-types/pagination/index.d.ts +1 -0
  53. package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
  54. package/dist-types/ts3.4/Location.d.ts +85 -0
  55. package/dist-types/ts3.4/LocationClient.d.ts +30 -0
  56. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +34 -0
  57. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +34 -0
  58. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +34 -0
  59. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +34 -0
  60. package/dist-types/ts3.4/commands/UpdateKeyCommand.d.ts +34 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  62. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  63. package/dist-types/ts3.4/models/models_0.d.ts +131 -15
  64. package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +11 -0
  65. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  66. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  67. package/package.json +7 -7
@@ -8,16 +8,19 @@ import { BatchUpdateDevicePositionCommand, } from "./commands/BatchUpdateDeviceP
8
8
  import { CalculateRouteCommand, } from "./commands/CalculateRouteCommand";
9
9
  import { CalculateRouteMatrixCommand, } from "./commands/CalculateRouteMatrixCommand";
10
10
  import { CreateGeofenceCollectionCommand, } from "./commands/CreateGeofenceCollectionCommand";
11
+ import { CreateKeyCommand } from "./commands/CreateKeyCommand";
11
12
  import { CreateMapCommand } from "./commands/CreateMapCommand";
12
13
  import { CreatePlaceIndexCommand, } from "./commands/CreatePlaceIndexCommand";
13
14
  import { CreateRouteCalculatorCommand, } from "./commands/CreateRouteCalculatorCommand";
14
15
  import { CreateTrackerCommand, } from "./commands/CreateTrackerCommand";
15
16
  import { DeleteGeofenceCollectionCommand, } from "./commands/DeleteGeofenceCollectionCommand";
17
+ import { DeleteKeyCommand } from "./commands/DeleteKeyCommand";
16
18
  import { DeleteMapCommand } from "./commands/DeleteMapCommand";
17
19
  import { DeletePlaceIndexCommand, } from "./commands/DeletePlaceIndexCommand";
18
20
  import { DeleteRouteCalculatorCommand, } from "./commands/DeleteRouteCalculatorCommand";
19
21
  import { DeleteTrackerCommand, } from "./commands/DeleteTrackerCommand";
20
22
  import { DescribeGeofenceCollectionCommand, } from "./commands/DescribeGeofenceCollectionCommand";
23
+ import { DescribeKeyCommand } from "./commands/DescribeKeyCommand";
21
24
  import { DescribeMapCommand } from "./commands/DescribeMapCommand";
22
25
  import { DescribePlaceIndexCommand, } from "./commands/DescribePlaceIndexCommand";
23
26
  import { DescribeRouteCalculatorCommand, } from "./commands/DescribeRouteCalculatorCommand";
@@ -34,6 +37,7 @@ import { GetPlaceCommand } from "./commands/GetPlaceCommand";
34
37
  import { ListDevicePositionsCommand, } from "./commands/ListDevicePositionsCommand";
35
38
  import { ListGeofenceCollectionsCommand, } from "./commands/ListGeofenceCollectionsCommand";
36
39
  import { ListGeofencesCommand, } from "./commands/ListGeofencesCommand";
40
+ import { ListKeysCommand } from "./commands/ListKeysCommand";
37
41
  import { ListMapsCommand } from "./commands/ListMapsCommand";
38
42
  import { ListPlaceIndexesCommand, } from "./commands/ListPlaceIndexesCommand";
39
43
  import { ListRouteCalculatorsCommand, } from "./commands/ListRouteCalculatorsCommand";
@@ -47,6 +51,7 @@ import { SearchPlaceIndexForTextCommand, } from "./commands/SearchPlaceIndexForT
47
51
  import { TagResourceCommand } from "./commands/TagResourceCommand";
48
52
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
49
53
  import { UpdateGeofenceCollectionCommand, } from "./commands/UpdateGeofenceCollectionCommand";
54
+ import { UpdateKeyCommand } from "./commands/UpdateKeyCommand";
50
55
  import { UpdateMapCommand } from "./commands/UpdateMapCommand";
51
56
  import { UpdatePlaceIndexCommand, } from "./commands/UpdatePlaceIndexCommand";
52
57
  import { UpdateRouteCalculatorCommand, } from "./commands/UpdateRouteCalculatorCommand";
@@ -193,6 +198,20 @@ export class Location extends LocationClient {
193
198
  return this.send(command, optionsOrCb);
194
199
  }
195
200
  }
201
+ createKey(args, optionsOrCb, cb) {
202
+ const command = new CreateKeyCommand(args);
203
+ if (typeof optionsOrCb === "function") {
204
+ this.send(command, optionsOrCb);
205
+ }
206
+ else if (typeof cb === "function") {
207
+ if (typeof optionsOrCb !== "object")
208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
+ this.send(command, optionsOrCb || {}, cb);
210
+ }
211
+ else {
212
+ return this.send(command, optionsOrCb);
213
+ }
214
+ }
196
215
  createMap(args, optionsOrCb, cb) {
197
216
  const command = new CreateMapCommand(args);
198
217
  if (typeof optionsOrCb === "function") {
@@ -263,6 +282,20 @@ export class Location extends LocationClient {
263
282
  return this.send(command, optionsOrCb);
264
283
  }
265
284
  }
285
+ deleteKey(args, optionsOrCb, cb) {
286
+ const command = new DeleteKeyCommand(args);
287
+ if (typeof optionsOrCb === "function") {
288
+ this.send(command, optionsOrCb);
289
+ }
290
+ else if (typeof cb === "function") {
291
+ if (typeof optionsOrCb !== "object")
292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
+ this.send(command, optionsOrCb || {}, cb);
294
+ }
295
+ else {
296
+ return this.send(command, optionsOrCb);
297
+ }
298
+ }
266
299
  deleteMap(args, optionsOrCb, cb) {
267
300
  const command = new DeleteMapCommand(args);
268
301
  if (typeof optionsOrCb === "function") {
@@ -333,6 +366,20 @@ export class Location extends LocationClient {
333
366
  return this.send(command, optionsOrCb);
334
367
  }
335
368
  }
369
+ describeKey(args, optionsOrCb, cb) {
370
+ const command = new DescribeKeyCommand(args);
371
+ if (typeof optionsOrCb === "function") {
372
+ this.send(command, optionsOrCb);
373
+ }
374
+ else if (typeof cb === "function") {
375
+ if (typeof optionsOrCb !== "object")
376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
+ this.send(command, optionsOrCb || {}, cb);
378
+ }
379
+ else {
380
+ return this.send(command, optionsOrCb);
381
+ }
382
+ }
336
383
  describeMap(args, optionsOrCb, cb) {
337
384
  const command = new DescribeMapCommand(args);
338
385
  if (typeof optionsOrCb === "function") {
@@ -557,6 +604,20 @@ export class Location extends LocationClient {
557
604
  return this.send(command, optionsOrCb);
558
605
  }
559
606
  }
607
+ listKeys(args, optionsOrCb, cb) {
608
+ const command = new ListKeysCommand(args);
609
+ if (typeof optionsOrCb === "function") {
610
+ this.send(command, optionsOrCb);
611
+ }
612
+ else if (typeof cb === "function") {
613
+ if (typeof optionsOrCb !== "object")
614
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
615
+ this.send(command, optionsOrCb || {}, cb);
616
+ }
617
+ else {
618
+ return this.send(command, optionsOrCb);
619
+ }
620
+ }
560
621
  listMaps(args, optionsOrCb, cb) {
561
622
  const command = new ListMapsCommand(args);
562
623
  if (typeof optionsOrCb === "function") {
@@ -739,6 +800,20 @@ export class Location extends LocationClient {
739
800
  return this.send(command, optionsOrCb);
740
801
  }
741
802
  }
803
+ updateKey(args, optionsOrCb, cb) {
804
+ const command = new UpdateKeyCommand(args);
805
+ if (typeof optionsOrCb === "function") {
806
+ this.send(command, optionsOrCb);
807
+ }
808
+ else if (typeof cb === "function") {
809
+ if (typeof optionsOrCb !== "object")
810
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
811
+ this.send(command, optionsOrCb || {}, cb);
812
+ }
813
+ else {
814
+ return this.send(command, optionsOrCb);
815
+ }
816
+ }
742
817
  updateMap(args, optionsOrCb, cb) {
743
818
  const command = new UpdateMapCommand(args);
744
819
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateKeyRequestFilterSensitiveLog, CreateKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateKeyCommand, serializeAws_restJson1CreateKeyCommand, } from "../protocols/Aws_restJson1";
6
+ export class CreateKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LocationClient";
25
+ const commandName = "CreateKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateKeyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: CreateKeyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1CreateKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1CreateKeyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteKeyRequestFilterSensitiveLog, DeleteKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteKeyCommand, serializeAws_restJson1DeleteKeyCommand, } from "../protocols/Aws_restJson1";
6
+ export class DeleteKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LocationClient";
25
+ const commandName = "DeleteKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DeleteKeyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DeleteKeyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DeleteKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DeleteKeyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeKeyRequestFilterSensitiveLog, DescribeKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DescribeKeyCommand, serializeAws_restJson1DescribeKeyCommand, } from "../protocols/Aws_restJson1";
6
+ export class DescribeKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LocationClient";
25
+ const commandName = "DescribeKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: DescribeKeyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: DescribeKeyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1DescribeKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1DescribeKeyCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListKeysRequestFilterSensitiveLog, ListKeysResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListKeysCommand, serializeAws_restJson1ListKeysCommand, } from "../protocols/Aws_restJson1";
6
+ export class ListKeysCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListKeysCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LocationClient";
25
+ const commandName = "ListKeysCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ListKeysRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ListKeysResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ListKeysCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ListKeysCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateKeyRequestFilterSensitiveLog, UpdateKeyResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateKeyCommand, serializeAws_restJson1UpdateKeyCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateKeyCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateKeyCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "LocationClient";
25
+ const commandName = "UpdateKeyCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateKeyRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateKeyResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateKeyCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateKeyCommand(output, context);
41
+ }
42
+ }
@@ -8,16 +8,19 @@ export * from "./BatchUpdateDevicePositionCommand";
8
8
  export * from "./CalculateRouteCommand";
9
9
  export * from "./CalculateRouteMatrixCommand";
10
10
  export * from "./CreateGeofenceCollectionCommand";
11
+ export * from "./CreateKeyCommand";
11
12
  export * from "./CreateMapCommand";
12
13
  export * from "./CreatePlaceIndexCommand";
13
14
  export * from "./CreateRouteCalculatorCommand";
14
15
  export * from "./CreateTrackerCommand";
15
16
  export * from "./DeleteGeofenceCollectionCommand";
17
+ export * from "./DeleteKeyCommand";
16
18
  export * from "./DeleteMapCommand";
17
19
  export * from "./DeletePlaceIndexCommand";
18
20
  export * from "./DeleteRouteCalculatorCommand";
19
21
  export * from "./DeleteTrackerCommand";
20
22
  export * from "./DescribeGeofenceCollectionCommand";
23
+ export * from "./DescribeKeyCommand";
21
24
  export * from "./DescribeMapCommand";
22
25
  export * from "./DescribePlaceIndexCommand";
23
26
  export * from "./DescribeRouteCalculatorCommand";
@@ -34,6 +37,7 @@ export * from "./GetPlaceCommand";
34
37
  export * from "./ListDevicePositionsCommand";
35
38
  export * from "./ListGeofenceCollectionsCommand";
36
39
  export * from "./ListGeofencesCommand";
40
+ export * from "./ListKeysCommand";
37
41
  export * from "./ListMapsCommand";
38
42
  export * from "./ListPlaceIndexesCommand";
39
43
  export * from "./ListRouteCalculatorsCommand";
@@ -47,6 +51,7 @@ export * from "./SearchPlaceIndexForTextCommand";
47
51
  export * from "./TagResourceCommand";
48
52
  export * from "./UntagResourceCommand";
49
53
  export * from "./UpdateGeofenceCollectionCommand";
54
+ export * from "./UpdateKeyCommand";
50
55
  export * from "./UpdateMapCommand";
51
56
  export * from "./UpdatePlaceIndexCommand";
52
57
  export * from "./UpdateRouteCalculatorCommand";
@@ -1,4 +1,4 @@
1
- const q = "fn", r = "argv", s = "ref";
2
- const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
- const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://geo-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://geo.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://geo-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://geo.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://geo.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -40,19 +40,6 @@ export class InternalServerException extends __BaseException {
40
40
  this.Message = opts.Message;
41
41
  }
42
42
  }
43
- export class ResourceNotFoundException extends __BaseException {
44
- constructor(opts) {
45
- super({
46
- name: "ResourceNotFoundException",
47
- $fault: "client",
48
- ...opts,
49
- });
50
- this.name = "ResourceNotFoundException";
51
- this.$fault = "client";
52
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
53
- this.Message = opts.Message;
54
- }
55
- }
56
43
  export class ServiceQuotaExceededException extends __BaseException {
57
44
  constructor(opts) {
58
45
  super({
@@ -95,15 +82,69 @@ export class ValidationException extends __BaseException {
95
82
  this.FieldList = opts.FieldList;
96
83
  }
97
84
  }
98
- export const AssociateTrackerConsumerRequestFilterSensitiveLog = (obj) => ({
85
+ export class ResourceNotFoundException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceNotFoundException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ResourceNotFoundException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
95
+ this.Message = opts.Message;
96
+ }
97
+ }
98
+ export const ApiKeyFilterFilterSensitiveLog = (obj) => ({
99
99
  ...obj,
100
100
  });
101
- export const AssociateTrackerConsumerResponseFilterSensitiveLog = (obj) => ({
101
+ export const ApiKeyRestrictionsFilterSensitiveLog = (obj) => ({
102
102
  ...obj,
103
103
  });
104
+ export const CreateKeyRequestFilterSensitiveLog = (obj) => ({
105
+ ...obj,
106
+ });
107
+ export const CreateKeyResponseFilterSensitiveLog = (obj) => ({
108
+ ...obj,
109
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
110
+ });
104
111
  export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
105
112
  ...obj,
106
113
  });
114
+ export const DeleteKeyRequestFilterSensitiveLog = (obj) => ({
115
+ ...obj,
116
+ });
117
+ export const DeleteKeyResponseFilterSensitiveLog = (obj) => ({
118
+ ...obj,
119
+ });
120
+ export const DescribeKeyRequestFilterSensitiveLog = (obj) => ({
121
+ ...obj,
122
+ });
123
+ export const DescribeKeyResponseFilterSensitiveLog = (obj) => ({
124
+ ...obj,
125
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
126
+ });
127
+ export const ListKeysRequestFilterSensitiveLog = (obj) => ({
128
+ ...obj,
129
+ });
130
+ export const ListKeysResponseEntryFilterSensitiveLog = (obj) => ({
131
+ ...obj,
132
+ });
133
+ export const ListKeysResponseFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ export const UpdateKeyRequestFilterSensitiveLog = (obj) => ({
137
+ ...obj,
138
+ });
139
+ export const UpdateKeyResponseFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ });
142
+ export const AssociateTrackerConsumerRequestFilterSensitiveLog = (obj) => ({
143
+ ...obj,
144
+ });
145
+ export const AssociateTrackerConsumerResponseFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
107
148
  export const BatchDeleteDevicePositionHistoryRequestFilterSensitiveLog = (obj) => ({
108
149
  ...obj,
109
150
  });
@@ -439,24 +480,28 @@ export const GetDevicePositionHistoryResponseFilterSensitiveLog = (obj) => ({
439
480
  });
440
481
  export const GetMapGlyphsRequestFilterSensitiveLog = (obj) => ({
441
482
  ...obj,
483
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
442
484
  });
443
485
  export const GetMapGlyphsResponseFilterSensitiveLog = (obj) => ({
444
486
  ...obj,
445
487
  });
446
488
  export const GetMapSpritesRequestFilterSensitiveLog = (obj) => ({
447
489
  ...obj,
490
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
448
491
  });
449
492
  export const GetMapSpritesResponseFilterSensitiveLog = (obj) => ({
450
493
  ...obj,
451
494
  });
452
495
  export const GetMapStyleDescriptorRequestFilterSensitiveLog = (obj) => ({
453
496
  ...obj,
497
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
454
498
  });
455
499
  export const GetMapStyleDescriptorResponseFilterSensitiveLog = (obj) => ({
456
500
  ...obj,
457
501
  });
458
502
  export const GetMapTileRequestFilterSensitiveLog = (obj) => ({
459
503
  ...obj,
504
+ ...(obj.Key && { Key: SENSITIVE_STRING }),
460
505
  });
461
506
  export const GetMapTileResponseFilterSensitiveLog = (obj) => ({
462
507
  ...obj,
@@ -0,0 +1,32 @@
1
+ import { ListKeysCommand } from "../commands/ListKeysCommand";
2
+ import { Location } from "../Location";
3
+ import { LocationClient } from "../LocationClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListKeysCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listKeys(input, ...args);
9
+ };
10
+ export async function* paginateListKeys(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof Location) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof LocationClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected Location | LocationClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -3,6 +3,7 @@ export * from "./Interfaces";
3
3
  export * from "./ListDevicePositionsPaginator";
4
4
  export * from "./ListGeofenceCollectionsPaginator";
5
5
  export * from "./ListGeofencesPaginator";
6
+ export * from "./ListKeysPaginator";
6
7
  export * from "./ListMapsPaginator";
7
8
  export * from "./ListPlaceIndexesPaginator";
8
9
  export * from "./ListRouteCalculatorsPaginator";