@aws-sdk/client-redshift-data 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 +24 -15
- package/dist-es/RedshiftData.js +17 -1
- package/dist-types/RedshiftData.d.ts +50 -1
- package/dist-types/ts3.4/RedshiftData.d.ts +54 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -780,6 +780,20 @@ class ListTablesCommand extends smithyClient.Command
|
|
|
780
780
|
.build() {
|
|
781
781
|
}
|
|
782
782
|
|
|
783
|
+
const paginateDescribeTable = core.createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
|
|
784
|
+
|
|
785
|
+
const paginateGetStatementResult = core.createPaginator(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
|
|
786
|
+
|
|
787
|
+
const paginateGetStatementResultV2 = core.createPaginator(RedshiftDataClient, GetStatementResultV2Command, "NextToken", "NextToken", "");
|
|
788
|
+
|
|
789
|
+
const paginateListDatabases = core.createPaginator(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
790
|
+
|
|
791
|
+
const paginateListSchemas = core.createPaginator(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
|
|
792
|
+
|
|
793
|
+
const paginateListStatements = core.createPaginator(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
794
|
+
|
|
795
|
+
const paginateListTables = core.createPaginator(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
796
|
+
|
|
783
797
|
const commands = {
|
|
784
798
|
BatchExecuteStatementCommand,
|
|
785
799
|
CancelStatementCommand,
|
|
@@ -793,23 +807,18 @@ const commands = {
|
|
|
793
807
|
ListStatementsCommand,
|
|
794
808
|
ListTablesCommand,
|
|
795
809
|
};
|
|
810
|
+
const paginators = {
|
|
811
|
+
paginateDescribeTable,
|
|
812
|
+
paginateGetStatementResult,
|
|
813
|
+
paginateGetStatementResultV2,
|
|
814
|
+
paginateListDatabases,
|
|
815
|
+
paginateListSchemas,
|
|
816
|
+
paginateListStatements,
|
|
817
|
+
paginateListTables,
|
|
818
|
+
};
|
|
796
819
|
class RedshiftData extends RedshiftDataClient {
|
|
797
820
|
}
|
|
798
|
-
smithyClient.createAggregatedClient(commands, RedshiftData);
|
|
799
|
-
|
|
800
|
-
const paginateDescribeTable = core.createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
|
|
801
|
-
|
|
802
|
-
const paginateGetStatementResult = core.createPaginator(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
|
|
803
|
-
|
|
804
|
-
const paginateGetStatementResultV2 = core.createPaginator(RedshiftDataClient, GetStatementResultV2Command, "NextToken", "NextToken", "");
|
|
805
|
-
|
|
806
|
-
const paginateListDatabases = core.createPaginator(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
807
|
-
|
|
808
|
-
const paginateListSchemas = core.createPaginator(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
|
|
809
|
-
|
|
810
|
-
const paginateListStatements = core.createPaginator(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
811
|
-
|
|
812
|
-
const paginateListTables = core.createPaginator(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
821
|
+
smithyClient.createAggregatedClient(commands, RedshiftData, { paginators });
|
|
813
822
|
|
|
814
823
|
const ResultFormatString = {
|
|
815
824
|
CSV: "CSV",
|
package/dist-es/RedshiftData.js
CHANGED
|
@@ -10,6 +10,13 @@ import { ListDatabasesCommand, } from "./commands/ListDatabasesCommand";
|
|
|
10
10
|
import { ListSchemasCommand } from "./commands/ListSchemasCommand";
|
|
11
11
|
import { ListStatementsCommand, } from "./commands/ListStatementsCommand";
|
|
12
12
|
import { ListTablesCommand } from "./commands/ListTablesCommand";
|
|
13
|
+
import { paginateDescribeTable } from "./pagination/DescribeTablePaginator";
|
|
14
|
+
import { paginateGetStatementResult } from "./pagination/GetStatementResultPaginator";
|
|
15
|
+
import { paginateGetStatementResultV2 } from "./pagination/GetStatementResultV2Paginator";
|
|
16
|
+
import { paginateListDatabases } from "./pagination/ListDatabasesPaginator";
|
|
17
|
+
import { paginateListSchemas } from "./pagination/ListSchemasPaginator";
|
|
18
|
+
import { paginateListStatements } from "./pagination/ListStatementsPaginator";
|
|
19
|
+
import { paginateListTables } from "./pagination/ListTablesPaginator";
|
|
13
20
|
import { RedshiftDataClient } from "./RedshiftDataClient";
|
|
14
21
|
const commands = {
|
|
15
22
|
BatchExecuteStatementCommand,
|
|
@@ -24,6 +31,15 @@ const commands = {
|
|
|
24
31
|
ListStatementsCommand,
|
|
25
32
|
ListTablesCommand,
|
|
26
33
|
};
|
|
34
|
+
const paginators = {
|
|
35
|
+
paginateDescribeTable,
|
|
36
|
+
paginateGetStatementResult,
|
|
37
|
+
paginateGetStatementResultV2,
|
|
38
|
+
paginateListDatabases,
|
|
39
|
+
paginateListSchemas,
|
|
40
|
+
paginateListStatements,
|
|
41
|
+
paginateListTables,
|
|
42
|
+
};
|
|
27
43
|
export class RedshiftData extends RedshiftDataClient {
|
|
28
44
|
}
|
|
29
|
-
createAggregatedClient(commands, RedshiftData);
|
|
45
|
+
createAggregatedClient(commands, RedshiftData, { 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 { BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput } from "./commands/BatchExecuteStatementCommand";
|
|
3
3
|
import { CancelStatementCommandInput, CancelStatementCommandOutput } from "./commands/CancelStatementCommand";
|
|
4
4
|
import { DescribeStatementCommandInput, DescribeStatementCommandOutput } from "./commands/DescribeStatementCommand";
|
|
@@ -79,6 +79,55 @@ export interface RedshiftData {
|
|
|
79
79
|
listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
|
|
80
80
|
listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
|
|
81
81
|
listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
|
|
82
|
+
/**
|
|
83
|
+
* @see {@link DescribeTableCommand}
|
|
84
|
+
* @param args - command input.
|
|
85
|
+
* @param paginationConfig - optional pagination config.
|
|
86
|
+
* @returns AsyncIterable of {@link DescribeTableCommandOutput}.
|
|
87
|
+
*/
|
|
88
|
+
paginateDescribeTable(args: DescribeTableCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<DescribeTableCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link GetStatementResultCommand}
|
|
91
|
+
* @param args - command input.
|
|
92
|
+
* @param paginationConfig - optional pagination config.
|
|
93
|
+
* @returns AsyncIterable of {@link GetStatementResultCommandOutput}.
|
|
94
|
+
*/
|
|
95
|
+
paginateGetStatementResult(args: GetStatementResultCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetStatementResultCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link GetStatementResultV2Command}
|
|
98
|
+
* @param args - command input.
|
|
99
|
+
* @param paginationConfig - optional pagination config.
|
|
100
|
+
* @returns AsyncIterable of {@link GetStatementResultV2CommandOutput}.
|
|
101
|
+
*/
|
|
102
|
+
paginateGetStatementResultV2(args: GetStatementResultV2CommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetStatementResultV2CommandOutput>;
|
|
103
|
+
/**
|
|
104
|
+
* @see {@link ListDatabasesCommand}
|
|
105
|
+
* @param args - command input.
|
|
106
|
+
* @param paginationConfig - optional pagination config.
|
|
107
|
+
* @returns AsyncIterable of {@link ListDatabasesCommandOutput}.
|
|
108
|
+
*/
|
|
109
|
+
paginateListDatabases(args: ListDatabasesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDatabasesCommandOutput>;
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link ListSchemasCommand}
|
|
112
|
+
* @param args - command input.
|
|
113
|
+
* @param paginationConfig - optional pagination config.
|
|
114
|
+
* @returns AsyncIterable of {@link ListSchemasCommandOutput}.
|
|
115
|
+
*/
|
|
116
|
+
paginateListSchemas(args: ListSchemasCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSchemasCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* @see {@link ListStatementsCommand}
|
|
119
|
+
* @param args - command input.
|
|
120
|
+
* @param paginationConfig - optional pagination config.
|
|
121
|
+
* @returns AsyncIterable of {@link ListStatementsCommandOutput}.
|
|
122
|
+
*/
|
|
123
|
+
paginateListStatements(args?: ListStatementsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStatementsCommandOutput>;
|
|
124
|
+
/**
|
|
125
|
+
* @see {@link ListTablesCommand}
|
|
126
|
+
* @param args - command input.
|
|
127
|
+
* @param paginationConfig - optional pagination config.
|
|
128
|
+
* @returns AsyncIterable of {@link ListTablesCommandOutput}.
|
|
129
|
+
*/
|
|
130
|
+
paginateListTables(args: ListTablesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTablesCommandOutput>;
|
|
82
131
|
}
|
|
83
132
|
/**
|
|
84
133
|
* <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You can run SQL statements, which are committed if the statement succeeds. </p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
BatchExecuteStatementCommandInput,
|
|
4
8
|
BatchExecuteStatementCommandOutput,
|
|
@@ -189,6 +193,55 @@ export interface RedshiftData {
|
|
|
189
193
|
options: __HttpHandlerOptions,
|
|
190
194
|
cb: (err: any, data?: ListTablesCommandOutput) => void
|
|
191
195
|
): void;
|
|
196
|
+
paginateDescribeTable(
|
|
197
|
+
args: DescribeTableCommandInput,
|
|
198
|
+
paginationConfig?: Pick<
|
|
199
|
+
PaginationConfiguration,
|
|
200
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
201
|
+
>
|
|
202
|
+
): Paginator<DescribeTableCommandOutput>;
|
|
203
|
+
paginateGetStatementResult(
|
|
204
|
+
args: GetStatementResultCommandInput,
|
|
205
|
+
paginationConfig?: Pick<
|
|
206
|
+
PaginationConfiguration,
|
|
207
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
208
|
+
>
|
|
209
|
+
): Paginator<GetStatementResultCommandOutput>;
|
|
210
|
+
paginateGetStatementResultV2(
|
|
211
|
+
args: GetStatementResultV2CommandInput,
|
|
212
|
+
paginationConfig?: Pick<
|
|
213
|
+
PaginationConfiguration,
|
|
214
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
215
|
+
>
|
|
216
|
+
): Paginator<GetStatementResultV2CommandOutput>;
|
|
217
|
+
paginateListDatabases(
|
|
218
|
+
args: ListDatabasesCommandInput,
|
|
219
|
+
paginationConfig?: Pick<
|
|
220
|
+
PaginationConfiguration,
|
|
221
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
222
|
+
>
|
|
223
|
+
): Paginator<ListDatabasesCommandOutput>;
|
|
224
|
+
paginateListSchemas(
|
|
225
|
+
args: ListSchemasCommandInput,
|
|
226
|
+
paginationConfig?: Pick<
|
|
227
|
+
PaginationConfiguration,
|
|
228
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
229
|
+
>
|
|
230
|
+
): Paginator<ListSchemasCommandOutput>;
|
|
231
|
+
paginateListStatements(
|
|
232
|
+
args?: ListStatementsCommandInput,
|
|
233
|
+
paginationConfig?: Pick<
|
|
234
|
+
PaginationConfiguration,
|
|
235
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
236
|
+
>
|
|
237
|
+
): Paginator<ListStatementsCommandOutput>;
|
|
238
|
+
paginateListTables(
|
|
239
|
+
args: ListTablesCommandInput,
|
|
240
|
+
paginationConfig?: Pick<
|
|
241
|
+
PaginationConfiguration,
|
|
242
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
243
|
+
>
|
|
244
|
+
): Paginator<ListTablesCommandOutput>;
|
|
192
245
|
}
|
|
193
246
|
export declare class RedshiftData
|
|
194
247
|
extends RedshiftDataClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-redshift-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-redshift-data",
|
|
@@ -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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
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.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
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.
|
|
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.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
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.
|
|
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.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
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",
|