@aws-sdk/client-keyspaces 3.975.0 → 3.980.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
@@ -1085,6 +1085,14 @@ class UpdateTableCommand extends smithyClient.Command
1085
1085
  .build() {
1086
1086
  }
1087
1087
 
1088
+ const paginateListKeyspaces = core.createPaginator(KeyspacesClient, ListKeyspacesCommand, "nextToken", "nextToken", "maxResults");
1089
+
1090
+ const paginateListTables = core.createPaginator(KeyspacesClient, ListTablesCommand, "nextToken", "nextToken", "maxResults");
1091
+
1092
+ const paginateListTagsForResource = core.createPaginator(KeyspacesClient, ListTagsForResourceCommand, "nextToken", "nextToken", "maxResults");
1093
+
1094
+ const paginateListTypes = core.createPaginator(KeyspacesClient, ListTypesCommand, "nextToken", "nextToken", "maxResults");
1095
+
1088
1096
  const commands = {
1089
1097
  CreateKeyspaceCommand,
1090
1098
  CreateTableCommand,
@@ -1106,17 +1114,15 @@ const commands = {
1106
1114
  UpdateKeyspaceCommand,
1107
1115
  UpdateTableCommand,
1108
1116
  };
1117
+ const paginators = {
1118
+ paginateListKeyspaces,
1119
+ paginateListTables,
1120
+ paginateListTagsForResource,
1121
+ paginateListTypes,
1122
+ };
1109
1123
  class Keyspaces extends KeyspacesClient {
1110
1124
  }
1111
- smithyClient.createAggregatedClient(commands, Keyspaces);
1112
-
1113
- const paginateListKeyspaces = core.createPaginator(KeyspacesClient, ListKeyspacesCommand, "nextToken", "nextToken", "maxResults");
1114
-
1115
- const paginateListTables = core.createPaginator(KeyspacesClient, ListTablesCommand, "nextToken", "nextToken", "maxResults");
1116
-
1117
- const paginateListTagsForResource = core.createPaginator(KeyspacesClient, ListTagsForResourceCommand, "nextToken", "nextToken", "maxResults");
1118
-
1119
- const paginateListTypes = core.createPaginator(KeyspacesClient, ListTypesCommand, "nextToken", "nextToken", "maxResults");
1125
+ smithyClient.createAggregatedClient(commands, Keyspaces, { paginators });
1120
1126
 
1121
1127
  const ThroughputMode = {
1122
1128
  PAY_PER_REQUEST: "PAY_PER_REQUEST",
@@ -19,6 +19,10 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
19
19
  import { UpdateKeyspaceCommand, } from "./commands/UpdateKeyspaceCommand";
20
20
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
21
21
  import { KeyspacesClient } from "./KeyspacesClient";
22
+ import { paginateListKeyspaces } from "./pagination/ListKeyspacesPaginator";
23
+ import { paginateListTables } from "./pagination/ListTablesPaginator";
24
+ import { paginateListTagsForResource } from "./pagination/ListTagsForResourcePaginator";
25
+ import { paginateListTypes } from "./pagination/ListTypesPaginator";
22
26
  const commands = {
23
27
  CreateKeyspaceCommand,
24
28
  CreateTableCommand,
@@ -40,6 +44,12 @@ const commands = {
40
44
  UpdateKeyspaceCommand,
41
45
  UpdateTableCommand,
42
46
  };
47
+ const paginators = {
48
+ paginateListKeyspaces,
49
+ paginateListTables,
50
+ paginateListTagsForResource,
51
+ paginateListTypes,
52
+ };
43
53
  export class Keyspaces extends KeyspacesClient {
44
54
  }
45
- createAggregatedClient(commands, Keyspaces);
55
+ createAggregatedClient(commands, Keyspaces, { 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 { CreateKeyspaceCommandInput, CreateKeyspaceCommandOutput } from "./commands/CreateKeyspaceCommand";
3
3
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
4
4
  import { CreateTypeCommandInput, CreateTypeCommandOutput } from "./commands/CreateTypeCommand";
@@ -135,6 +135,34 @@ export interface Keyspaces {
135
135
  updateTable(args: UpdateTableCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTableCommandOutput>;
136
136
  updateTable(args: UpdateTableCommandInput, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
137
137
  updateTable(args: UpdateTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTableCommandOutput) => void): void;
138
+ /**
139
+ * @see {@link ListKeyspacesCommand}
140
+ * @param args - command input.
141
+ * @param paginationConfig - optional pagination config.
142
+ * @returns AsyncIterable of {@link ListKeyspacesCommandOutput}.
143
+ */
144
+ paginateListKeyspaces(args?: ListKeyspacesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListKeyspacesCommandOutput>;
145
+ /**
146
+ * @see {@link ListTablesCommand}
147
+ * @param args - command input.
148
+ * @param paginationConfig - optional pagination config.
149
+ * @returns AsyncIterable of {@link ListTablesCommandOutput}.
150
+ */
151
+ paginateListTables(args: ListTablesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTablesCommandOutput>;
152
+ /**
153
+ * @see {@link ListTagsForResourceCommand}
154
+ * @param args - command input.
155
+ * @param paginationConfig - optional pagination config.
156
+ * @returns AsyncIterable of {@link ListTagsForResourceCommandOutput}.
157
+ */
158
+ paginateListTagsForResource(args: ListTagsForResourceCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTagsForResourceCommandOutput>;
159
+ /**
160
+ * @see {@link ListTypesCommand}
161
+ * @param args - command input.
162
+ * @param paginationConfig - optional pagination config.
163
+ * @returns AsyncIterable of {@link ListTypesCommandOutput}.
164
+ */
165
+ paginateListTypes(args: ListTypesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTypesCommandOutput>;
138
166
  }
139
167
  /**
140
168
  * <p>Amazon Keyspaces (for Apache Cassandra) is a scalable, highly available, and managed Apache Cassandra-compatible database service. Amazon Keyspaces makes it easy to migrate, run, and scale Cassandra workloads in the Amazon Web Services Cloud. With just a few clicks on the Amazon Web Services Management Console or a few lines of code, you can create keyspaces and tables in Amazon Keyspaces, without deploying any infrastructure or installing software. </p> <p>In addition to supporting Cassandra Query Language (CQL) requests via open-source Cassandra drivers, Amazon Keyspaces supports data definition language (DDL) operations to manage keyspaces and tables using the Amazon Web Services SDK and CLI, as well as infrastructure as code (IaC) services and tools such as CloudFormation and Terraform. This API reference describes the supported DDL operations in detail.</p> <p>For the list of all supported CQL APIs, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cassandra-apis.html">Supported Cassandra APIs, operations, and data types in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To learn how Amazon Keyspaces 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>For more information about Amazon Web Services APIs, for example how to implement retry logic or how to sign Amazon Web Services API requests, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-apis.html">Amazon Web Services APIs</a> in the <i>General Reference</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
  CreateKeyspaceCommandInput,
4
8
  CreateKeyspaceCommandOutput,
@@ -325,5 +329,33 @@ export interface Keyspaces {
325
329
  options: __HttpHandlerOptions,
326
330
  cb: (err: any, data?: UpdateTableCommandOutput) => void
327
331
  ): void;
332
+ paginateListKeyspaces(
333
+ args?: ListKeyspacesCommandInput,
334
+ paginationConfig?: Pick<
335
+ PaginationConfiguration,
336
+ Exclude<keyof PaginationConfiguration, "client">
337
+ >
338
+ ): Paginator<ListKeyspacesCommandOutput>;
339
+ paginateListTables(
340
+ args: ListTablesCommandInput,
341
+ paginationConfig?: Pick<
342
+ PaginationConfiguration,
343
+ Exclude<keyof PaginationConfiguration, "client">
344
+ >
345
+ ): Paginator<ListTablesCommandOutput>;
346
+ paginateListTagsForResource(
347
+ args: ListTagsForResourceCommandInput,
348
+ paginationConfig?: Pick<
349
+ PaginationConfiguration,
350
+ Exclude<keyof PaginationConfiguration, "client">
351
+ >
352
+ ): Paginator<ListTagsForResourceCommandOutput>;
353
+ paginateListTypes(
354
+ args: ListTypesCommandInput,
355
+ paginationConfig?: Pick<
356
+ PaginationConfiguration,
357
+ Exclude<keyof PaginationConfiguration, "client">
358
+ >
359
+ ): Paginator<ListTypesCommandOutput>;
328
360
  }
329
361
  export declare class Keyspaces extends KeyspacesClient implements Keyspaces {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-keyspaces",
3
3
  "description": "AWS SDK for JavaScript Keyspaces Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-keyspaces",
@@ -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.1",
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.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
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.11",
42
- "@smithy/middleware-retry": "^4.4.27",
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.12",
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.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
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",