@aws-sdk/client-cloudfront-keyvaluestore 3.974.0 → 3.978.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/index.js CHANGED
@@ -492,6 +492,8 @@ class UpdateKeysCommand extends smithyClient.Command
492
492
  .build() {
493
493
  }
494
494
 
495
+ const paginateListKeys = core.createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
496
+
495
497
  const commands = {
496
498
  DeleteKeyCommand,
497
499
  DescribeKeyValueStoreCommand,
@@ -500,11 +502,12 @@ const commands = {
500
502
  PutKeyCommand,
501
503
  UpdateKeysCommand,
502
504
  };
505
+ const paginators = {
506
+ paginateListKeys,
507
+ };
503
508
  class CloudFrontKeyValueStore extends CloudFrontKeyValueStoreClient {
504
509
  }
505
- smithyClient.createAggregatedClient(commands, CloudFrontKeyValueStore);
506
-
507
- const paginateListKeys = core.createPaginator(CloudFrontKeyValueStoreClient, ListKeysCommand, "NextToken", "NextToken", "MaxResults");
510
+ smithyClient.createAggregatedClient(commands, CloudFrontKeyValueStore, { paginators });
508
511
 
509
512
  Object.defineProperty(exports, "$Command", {
510
513
  enumerable: true,
@@ -6,6 +6,7 @@ import { GetKeyCommand } from "./commands/GetKeyCommand";
6
6
  import { ListKeysCommand } from "./commands/ListKeysCommand";
7
7
  import { PutKeyCommand } from "./commands/PutKeyCommand";
8
8
  import { UpdateKeysCommand } from "./commands/UpdateKeysCommand";
9
+ import { paginateListKeys } from "./pagination/ListKeysPaginator";
9
10
  const commands = {
10
11
  DeleteKeyCommand,
11
12
  DescribeKeyValueStoreCommand,
@@ -14,6 +15,9 @@ const commands = {
14
15
  PutKeyCommand,
15
16
  UpdateKeysCommand,
16
17
  };
18
+ const paginators = {
19
+ paginateListKeys,
20
+ };
17
21
  export class CloudFrontKeyValueStore extends CloudFrontKeyValueStoreClient {
18
22
  }
19
- createAggregatedClient(commands, CloudFrontKeyValueStore);
23
+ createAggregatedClient(commands, CloudFrontKeyValueStore, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { CloudFrontKeyValueStoreClient } from "./CloudFrontKeyValueStoreClient";
3
3
  import { DeleteKeyCommandInput, DeleteKeyCommandOutput } from "./commands/DeleteKeyCommand";
4
4
  import { DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput } from "./commands/DescribeKeyValueStoreCommand";
@@ -43,6 +43,13 @@ export interface CloudFrontKeyValueStore {
43
43
  updateKeys(args: UpdateKeysCommandInput, options?: __HttpHandlerOptions): Promise<UpdateKeysCommandOutput>;
44
44
  updateKeys(args: UpdateKeysCommandInput, cb: (err: any, data?: UpdateKeysCommandOutput) => void): void;
45
45
  updateKeys(args: UpdateKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateKeysCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link ListKeysCommand}
48
+ * @param args - command input.
49
+ * @param paginationConfig - optional pagination config.
50
+ * @returns AsyncIterable of {@link ListKeysCommandOutput}.
51
+ */
52
+ paginateListKeys(args: ListKeysCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListKeysCommandOutput>;
46
53
  }
47
54
  /**
48
55
  * <p>Amazon CloudFront KeyValueStore Service to View and Update Data in a KVS Resource</p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import { CloudFrontKeyValueStoreClient } from "./CloudFrontKeyValueStoreClient";
3
7
  import {
4
8
  DeleteKeyCommandInput,
@@ -103,6 +107,13 @@ export interface CloudFrontKeyValueStore {
103
107
  options: __HttpHandlerOptions,
104
108
  cb: (err: any, data?: UpdateKeysCommandOutput) => void
105
109
  ): void;
110
+ paginateListKeys(
111
+ args: ListKeysCommandInput,
112
+ paginationConfig?: Pick<
113
+ PaginationConfiguration,
114
+ Exclude<keyof PaginationConfiguration, "client">
115
+ >
116
+ ): Paginator<ListKeysCommandOutput>;
106
117
  }
107
118
  export declare class CloudFrontKeyValueStore
108
119
  extends CloudFrontKeyValueStoreClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudfront-keyvaluestore",
3
3
  "description": "AWS SDK for JavaScript Cloudfront Keyvaluestore Client for Node.js, Browser and React Native",
4
- "version": "3.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront-keyvaluestore",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
31
  "@aws-sdk/signature-v4-multi-region": "3.972.0",
32
- "@aws-sdk/types": "^3.973.0",
32
+ "@aws-sdk/types": "^3.973.1",
33
33
  "@aws-sdk/util-endpoints": "3.972.0",
34
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
35
- "@aws-sdk/util-user-agent-node": "^3.972.1",
34
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
35
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
36
36
  "@smithy/config-resolver": "^4.4.6",
37
- "@smithy/core": "^3.21.0",
37
+ "@smithy/core": "^3.22.0",
38
38
  "@smithy/fetch-http-handler": "^5.3.9",
39
39
  "@smithy/hash-node": "^4.2.8",
40
40
  "@smithy/invalid-dependency": "^4.2.8",
41
41
  "@smithy/middleware-content-length": "^4.2.8",
42
- "@smithy/middleware-endpoint": "^4.4.10",
43
- "@smithy/middleware-retry": "^4.4.26",
42
+ "@smithy/middleware-endpoint": "^4.4.12",
43
+ "@smithy/middleware-retry": "^4.4.29",
44
44
  "@smithy/middleware-serde": "^4.2.9",
45
45
  "@smithy/middleware-stack": "^4.2.8",
46
46
  "@smithy/node-config-provider": "^4.3.8",
47
47
  "@smithy/node-http-handler": "^4.4.8",
48
48
  "@smithy/protocol-http": "^5.3.8",
49
- "@smithy/smithy-client": "^4.10.11",
49
+ "@smithy/smithy-client": "^4.11.1",
50
50
  "@smithy/types": "^4.12.0",
51
51
  "@smithy/url-parser": "^4.2.8",
52
52
  "@smithy/util-base64": "^4.3.0",
53
53
  "@smithy/util-body-length-browser": "^4.2.0",
54
54
  "@smithy/util-body-length-node": "^4.2.1",
55
- "@smithy/util-defaults-mode-browser": "^4.3.25",
56
- "@smithy/util-defaults-mode-node": "^4.2.28",
55
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
56
+ "@smithy/util-defaults-mode-node": "^4.2.31",
57
57
  "@smithy/util-endpoints": "^3.2.8",
58
58
  "@smithy/util-middleware": "^4.2.8",
59
59
  "@smithy/util-retry": "^4.2.8",