@aws-sdk/client-keyspacesstreams 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,19 +492,23 @@ class ListStreamsCommand extends smithyClient.Command
492
492
  .build() {
493
493
  }
494
494
 
495
+ const paginateGetStream = core.createPaginator(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
496
+
497
+ const paginateListStreams = core.createPaginator(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
498
+
495
499
  const commands = {
496
500
  GetRecordsCommand,
497
501
  GetShardIteratorCommand,
498
502
  GetStreamCommand,
499
503
  ListStreamsCommand,
500
504
  };
505
+ const paginators = {
506
+ paginateGetStream,
507
+ paginateListStreams,
508
+ };
501
509
  class KeyspacesStreams extends KeyspacesStreamsClient {
502
510
  }
503
- smithyClient.createAggregatedClient(commands, KeyspacesStreams);
504
-
505
- const paginateGetStream = core.createPaginator(KeyspacesStreamsClient, GetStreamCommand, "nextToken", "nextToken", "maxResults");
506
-
507
- const paginateListStreams = core.createPaginator(KeyspacesStreamsClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
511
+ smithyClient.createAggregatedClient(commands, KeyspacesStreams, { paginators });
508
512
 
509
513
  const OriginType = {
510
514
  REPLICATION: "REPLICATION",
@@ -4,12 +4,18 @@ import { GetShardIteratorCommand, } from "./commands/GetShardIteratorCommand";
4
4
  import { GetStreamCommand } from "./commands/GetStreamCommand";
5
5
  import { ListStreamsCommand } from "./commands/ListStreamsCommand";
6
6
  import { KeyspacesStreamsClient } from "./KeyspacesStreamsClient";
7
+ import { paginateGetStream } from "./pagination/GetStreamPaginator";
8
+ import { paginateListStreams } from "./pagination/ListStreamsPaginator";
7
9
  const commands = {
8
10
  GetRecordsCommand,
9
11
  GetShardIteratorCommand,
10
12
  GetStreamCommand,
11
13
  ListStreamsCommand,
12
14
  };
15
+ const paginators = {
16
+ paginateGetStream,
17
+ paginateListStreams,
18
+ };
13
19
  export class KeyspacesStreams extends KeyspacesStreamsClient {
14
20
  }
15
- createAggregatedClient(commands, KeyspacesStreams);
21
+ createAggregatedClient(commands, KeyspacesStreams, { 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 { GetRecordsCommandInput, GetRecordsCommandOutput } from "./commands/GetRecordsCommand";
3
3
  import { GetShardIteratorCommandInput, GetShardIteratorCommandOutput } from "./commands/GetShardIteratorCommand";
4
4
  import { GetStreamCommandInput, GetStreamCommandOutput } from "./commands/GetStreamCommand";
@@ -30,6 +30,20 @@ export interface KeyspacesStreams {
30
30
  listStreams(args: ListStreamsCommandInput, options?: __HttpHandlerOptions): Promise<ListStreamsCommandOutput>;
31
31
  listStreams(args: ListStreamsCommandInput, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
32
32
  listStreams(args: ListStreamsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStreamsCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link GetStreamCommand}
35
+ * @param args - command input.
36
+ * @param paginationConfig - optional pagination config.
37
+ * @returns AsyncIterable of {@link GetStreamCommandOutput}.
38
+ */
39
+ paginateGetStream(args: GetStreamCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetStreamCommandOutput>;
40
+ /**
41
+ * @see {@link ListStreamsCommand}
42
+ * @param args - command input.
43
+ * @param paginationConfig - optional pagination config.
44
+ * @returns AsyncIterable of {@link ListStreamsCommandOutput}.
45
+ */
46
+ paginateListStreams(args?: ListStreamsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStreamsCommandOutput>;
33
47
  }
34
48
  /**
35
49
  * <p>Amazon Keyspaces (for Apache Cassandra) change data capture (CDC) records change events for Amazon Keyspaces tables. The change events captured in a stream are time-ordered and de-duplicated write operations. Using stream data you can build event driven applications that incorporate near-real time change events from Amazon Keyspaces tables. </p> <p>Amazon Keyspaces CDC is serverless and scales the infrastructure for change events automatically based on the volume of changes on your table. </p> <p> This API reference describes the Amazon Keyspaces CDC stream API in detail. </p> <p>For more information about Amazon Keyspaces CDC, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cdc.html">Working with change data capture (CDC) streams in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To learn how Amazon Keyspaces CDC API actions are recorded with CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To see the metrics Amazon Keyspaces CDC sends to Amazon CloudWatch, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/metrics-dimensions.html#keyspaces-cdc-metrics">Amazon Keyspaces change data capture (CDC) CloudWatch metrics</a> in the <i>Amazon Keyspaces Developer Guide</i>.</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 {
3
7
  GetRecordsCommandInput,
4
8
  GetRecordsCommandOutput,
@@ -70,6 +74,20 @@ export interface KeyspacesStreams {
70
74
  options: __HttpHandlerOptions,
71
75
  cb: (err: any, data?: ListStreamsCommandOutput) => void
72
76
  ): void;
77
+ paginateGetStream(
78
+ args: GetStreamCommandInput,
79
+ paginationConfig?: Pick<
80
+ PaginationConfiguration,
81
+ Exclude<keyof PaginationConfiguration, "client">
82
+ >
83
+ ): Paginator<GetStreamCommandOutput>;
84
+ paginateListStreams(
85
+ args?: ListStreamsCommandInput,
86
+ paginationConfig?: Pick<
87
+ PaginationConfiguration,
88
+ Exclude<keyof PaginationConfiguration, "client">
89
+ >
90
+ ): Paginator<ListStreamsCommandOutput>;
73
91
  }
74
92
  export declare class KeyspacesStreams
75
93
  extends KeyspacesStreamsClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspacesstreams",
3
3
  "description": "AWS SDK for JavaScript Keyspacesstreams 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-keyspacesstreams",
@@ -21,38 +21,38 @@
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",
31
- "@aws-sdk/types": "^3.973.0",
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
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.10",
42
- "@smithy/middleware-retry": "^4.4.26",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.11",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",