@aws-sdk/client-location 3.276.0 → 3.278.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 +4 -4
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListKeys = void 0;
4
+ const ListKeysCommand_1 = require("../commands/ListKeysCommand");
5
+ const Location_1 = require("../Location");
6
+ const LocationClient_1 = require("../LocationClient");
7
+ const makePagedClientRequest = async (client, input, ...args) => {
8
+ return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
9
+ };
10
+ const makePagedRequest = async (client, input, ...args) => {
11
+ return await client.listKeys(input, ...args);
12
+ };
13
+ async function* paginateListKeys(config, input, ...additionalArguments) {
14
+ let token = config.startingToken || undefined;
15
+ let hasNext = true;
16
+ let page;
17
+ while (hasNext) {
18
+ input.NextToken = token;
19
+ input["MaxResults"] = config.pageSize;
20
+ if (config.client instanceof Location_1.Location) {
21
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else if (config.client instanceof LocationClient_1.LocationClient) {
24
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
+ }
26
+ else {
27
+ throw new Error("Invalid client, expected Location | LocationClient");
28
+ }
29
+ yield page;
30
+ const prevToken = token;
31
+ token = page.NextToken;
32
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
33
+ }
34
+ return undefined;
35
+ }
36
+ exports.paginateListKeys = paginateListKeys;
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./Interfaces"), exports);
6
6
  tslib_1.__exportStar(require("./ListDevicePositionsPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./ListGeofenceCollectionsPaginator"), exports);
8
8
  tslib_1.__exportStar(require("./ListGeofencesPaginator"), exports);
9
+ tslib_1.__exportStar(require("./ListKeysPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListMapsPaginator"), exports);
10
11
  tslib_1.__exportStar(require("./ListPlaceIndexesPaginator"), exports);
11
12
  tslib_1.__exportStar(require("./ListRouteCalculatorsPaginator"), exports);