@aws-sdk/client-timestream-write 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
@@ -1275,6 +1275,12 @@ class WriteRecordsCommand extends smithyClient.Command
1275
1275
  .build() {
1276
1276
  }
1277
1277
 
1278
+ const paginateListBatchLoadTasks = core.createPaginator(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
1279
+
1280
+ const paginateListDatabases = core.createPaginator(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
1281
+
1282
+ const paginateListTables = core.createPaginator(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
1283
+
1278
1284
  const commands = {
1279
1285
  CreateBatchLoadTaskCommand,
1280
1286
  CreateDatabaseCommand,
@@ -1296,15 +1302,14 @@ const commands = {
1296
1302
  UpdateTableCommand,
1297
1303
  WriteRecordsCommand,
1298
1304
  };
1305
+ const paginators = {
1306
+ paginateListBatchLoadTasks,
1307
+ paginateListDatabases,
1308
+ paginateListTables,
1309
+ };
1299
1310
  class TimestreamWrite extends TimestreamWriteClient {
1300
1311
  }
1301
- smithyClient.createAggregatedClient(commands, TimestreamWrite);
1302
-
1303
- const paginateListBatchLoadTasks = core.createPaginator(TimestreamWriteClient, ListBatchLoadTasksCommand, "NextToken", "NextToken", "MaxResults");
1304
-
1305
- const paginateListDatabases = core.createPaginator(TimestreamWriteClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
1306
-
1307
- const paginateListTables = core.createPaginator(TimestreamWriteClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
1312
+ smithyClient.createAggregatedClient(commands, TimestreamWrite, { paginators });
1308
1313
 
1309
1314
  const BatchLoadDataFormat = {
1310
1315
  CSV: "CSV",
@@ -18,6 +18,9 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
18
18
  import { UpdateDatabaseCommand, } from "./commands/UpdateDatabaseCommand";
19
19
  import { UpdateTableCommand } from "./commands/UpdateTableCommand";
20
20
  import { WriteRecordsCommand, } from "./commands/WriteRecordsCommand";
21
+ import { paginateListBatchLoadTasks } from "./pagination/ListBatchLoadTasksPaginator";
22
+ import { paginateListDatabases } from "./pagination/ListDatabasesPaginator";
23
+ import { paginateListTables } from "./pagination/ListTablesPaginator";
21
24
  import { TimestreamWriteClient } from "./TimestreamWriteClient";
22
25
  const commands = {
23
26
  CreateBatchLoadTaskCommand,
@@ -40,6 +43,11 @@ const commands = {
40
43
  UpdateTableCommand,
41
44
  WriteRecordsCommand,
42
45
  };
46
+ const paginators = {
47
+ paginateListBatchLoadTasks,
48
+ paginateListDatabases,
49
+ paginateListTables,
50
+ };
43
51
  export class TimestreamWrite extends TimestreamWriteClient {
44
52
  }
45
- createAggregatedClient(commands, TimestreamWrite);
53
+ createAggregatedClient(commands, TimestreamWrite, { 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 { CreateBatchLoadTaskCommandInput, CreateBatchLoadTaskCommandOutput } from "./commands/CreateBatchLoadTaskCommand";
3
3
  import { CreateDatabaseCommandInput, CreateDatabaseCommandOutput } from "./commands/CreateDatabaseCommand";
4
4
  import { CreateTableCommandInput, CreateTableCommandOutput } from "./commands/CreateTableCommand";
@@ -138,6 +138,27 @@ export interface TimestreamWrite {
138
138
  writeRecords(args: WriteRecordsCommandInput, options?: __HttpHandlerOptions): Promise<WriteRecordsCommandOutput>;
139
139
  writeRecords(args: WriteRecordsCommandInput, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
140
140
  writeRecords(args: WriteRecordsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: WriteRecordsCommandOutput) => void): void;
141
+ /**
142
+ * @see {@link ListBatchLoadTasksCommand}
143
+ * @param args - command input.
144
+ * @param paginationConfig - optional pagination config.
145
+ * @returns AsyncIterable of {@link ListBatchLoadTasksCommandOutput}.
146
+ */
147
+ paginateListBatchLoadTasks(args?: ListBatchLoadTasksCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBatchLoadTasksCommandOutput>;
148
+ /**
149
+ * @see {@link ListDatabasesCommand}
150
+ * @param args - command input.
151
+ * @param paginationConfig - optional pagination config.
152
+ * @returns AsyncIterable of {@link ListDatabasesCommandOutput}.
153
+ */
154
+ paginateListDatabases(args?: ListDatabasesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDatabasesCommandOutput>;
155
+ /**
156
+ * @see {@link ListTablesCommand}
157
+ * @param args - command input.
158
+ * @param paginationConfig - optional pagination config.
159
+ * @returns AsyncIterable of {@link ListTablesCommandOutput}.
160
+ */
161
+ paginateListTables(args?: ListTablesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTablesCommandOutput>;
141
162
  }
142
163
  /**
143
164
  * <fullname>Amazon Timestream Write</fullname>
@@ -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
  CreateBatchLoadTaskCommandInput,
4
8
  CreateBatchLoadTaskCommandOutput,
@@ -328,6 +332,27 @@ export interface TimestreamWrite {
328
332
  options: __HttpHandlerOptions,
329
333
  cb: (err: any, data?: WriteRecordsCommandOutput) => void
330
334
  ): void;
335
+ paginateListBatchLoadTasks(
336
+ args?: ListBatchLoadTasksCommandInput,
337
+ paginationConfig?: Pick<
338
+ PaginationConfiguration,
339
+ Exclude<keyof PaginationConfiguration, "client">
340
+ >
341
+ ): Paginator<ListBatchLoadTasksCommandOutput>;
342
+ paginateListDatabases(
343
+ args?: ListDatabasesCommandInput,
344
+ paginationConfig?: Pick<
345
+ PaginationConfiguration,
346
+ Exclude<keyof PaginationConfiguration, "client">
347
+ >
348
+ ): Paginator<ListDatabasesCommandOutput>;
349
+ paginateListTables(
350
+ args?: ListTablesCommandInput,
351
+ paginationConfig?: Pick<
352
+ PaginationConfiguration,
353
+ Exclude<keyof PaginationConfiguration, "client">
354
+ >
355
+ ): Paginator<ListTablesCommandOutput>;
331
356
  }
332
357
  export declare class TimestreamWrite
333
358
  extends TimestreamWriteClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-timestream-write",
3
3
  "description": "AWS SDK for JavaScript Timestream Write 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-timestream-write",
@@ -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.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-endpoint-discovery": "^3.972.1",
27
- "@aws-sdk/middleware-host-header": "^3.972.1",
28
- "@aws-sdk/middleware-logger": "^3.972.1",
29
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
30
- "@aws-sdk/middleware-user-agent": "^3.972.2",
31
- "@aws-sdk/region-config-resolver": "^3.972.1",
32
- "@aws-sdk/types": "^3.973.0",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-endpoint-discovery": "^3.972.3",
27
+ "@aws-sdk/middleware-host-header": "^3.972.3",
28
+ "@aws-sdk/middleware-logger": "^3.972.3",
29
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
30
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
31
+ "@aws-sdk/region-config-resolver": "^3.972.3",
32
+ "@aws-sdk/types": "^3.973.1",
33
+ "@aws-sdk/util-endpoints": "3.980.0",
34
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
35
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
36
36
  "@smithy/config-resolver": "^4.4.6",
37
- "@smithy/core": "^3.21.1",
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.11",
43
- "@smithy/middleware-retry": "^4.4.27",
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.12",
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.26",
56
- "@smithy/util-defaults-mode-node": "^4.2.29",
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",