@aws-sdk/client-redshift-data 3.477.0 → 3.481.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/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/CancelStatementCommand.js +18 -41
- package/dist-cjs/commands/DescribeStatementCommand.js +18 -41
- package/dist-cjs/commands/DescribeTableCommand.js +18 -41
- package/dist-cjs/commands/ExecuteStatementCommand.js +18 -41
- package/dist-cjs/commands/GetStatementResultCommand.js +18 -41
- package/dist-cjs/commands/ListDatabasesCommand.js +18 -41
- package/dist-cjs/commands/ListSchemasCommand.js +18 -41
- package/dist-cjs/commands/ListStatementsCommand.js +18 -41
- package/dist-cjs/commands/ListTablesCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeTablePaginator.js +2 -24
- package/dist-cjs/pagination/GetStatementResultPaginator.js +2 -23
- package/dist-cjs/pagination/ListDatabasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSchemasPaginator.js +2 -24
- package/dist-cjs/pagination/ListStatementsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTablesPaginator.js +2 -24
- package/dist-es/commands/BatchExecuteStatementCommand.js +18 -41
- package/dist-es/commands/CancelStatementCommand.js +18 -41
- package/dist-es/commands/DescribeStatementCommand.js +18 -41
- package/dist-es/commands/DescribeTableCommand.js +18 -41
- package/dist-es/commands/ExecuteStatementCommand.js +18 -41
- package/dist-es/commands/GetStatementResultCommand.js +18 -41
- package/dist-es/commands/ListDatabasesCommand.js +18 -41
- package/dist-es/commands/ListSchemasCommand.js +18 -41
- package/dist-es/commands/ListStatementsCommand.js +18 -41
- package/dist-es/commands/ListTablesCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeTablePaginator.js +2 -23
- package/dist-es/pagination/GetStatementResultPaginator.js +2 -22
- package/dist-es/pagination/ListDatabasesPaginator.js +2 -23
- package/dist-es/pagination/ListSchemasPaginator.js +2 -23
- package/dist-es/pagination/ListStatementsPaginator.js +2 -23
- package/dist-es/pagination/ListTablesPaginator.js +2 -23
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +6 -21
- package/dist-types/commands/CancelStatementCommand.d.ts +6 -21
- package/dist-types/commands/DescribeStatementCommand.d.ts +6 -21
- package/dist-types/commands/DescribeTableCommand.d.ts +6 -21
- package/dist-types/commands/ExecuteStatementCommand.d.ts +6 -21
- package/dist-types/commands/GetStatementResultCommand.d.ts +6 -21
- package/dist-types/commands/ListDatabasesCommand.d.ts +6 -21
- package/dist-types/commands/ListSchemasCommand.d.ts +6 -21
- package/dist-types/commands/ListStatementsCommand.d.ts +6 -21
- package/dist-types/commands/ListTablesCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeTablePaginator.d.ts +1 -1
- package/dist-types/pagination/GetStatementResultPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchemasPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStatementsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTablesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeTablePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetStatementResultPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSchemasPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStatementsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTablesPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_GetStatementResultCommand, se_GetStatementResultCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class GetStatementResultCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RedshiftDataClient";
|
|
26
|
-
const commandName = "GetStatementResultCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RedshiftData",
|
|
35
|
-
operation: "GetStatementResult",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_GetStatementResultCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_GetStatementResultCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class GetStatementResultCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftData", "GetStatementResult", {})
|
|
19
|
+
.n("RedshiftDataClient", "GetStatementResultCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetStatementResultCommand)
|
|
22
|
+
.de(de_GetStatementResultCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListDatabasesCommand, se_ListDatabasesCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListDatabasesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RedshiftDataClient";
|
|
26
|
-
const commandName = "ListDatabasesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RedshiftData",
|
|
35
|
-
operation: "ListDatabases",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListDatabasesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListDatabasesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListDatabasesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftData", "ListDatabases", {})
|
|
19
|
+
.n("RedshiftDataClient", "ListDatabasesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListDatabasesCommand)
|
|
22
|
+
.de(de_ListDatabasesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListSchemasCommand, se_ListSchemasCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListSchemasCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RedshiftDataClient";
|
|
26
|
-
const commandName = "ListSchemasCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RedshiftData",
|
|
35
|
-
operation: "ListSchemas",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListSchemasCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListSchemasCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListSchemasCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftData", "ListSchemas", {})
|
|
19
|
+
.n("RedshiftDataClient", "ListSchemasCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListSchemasCommand)
|
|
22
|
+
.de(de_ListSchemasCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListStatementsCommand, se_ListStatementsCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListStatementsCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RedshiftDataClient";
|
|
26
|
-
const commandName = "ListStatementsCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RedshiftData",
|
|
35
|
-
operation: "ListStatements",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListStatementsCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListStatementsCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListStatementsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftData", "ListStatements", {})
|
|
19
|
+
.n("RedshiftDataClient", "ListStatementsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListStatementsCommand)
|
|
22
|
+
.de(de_ListStatementsCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_ListTablesCommand, se_ListTablesCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class ListTablesCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "RedshiftDataClient";
|
|
26
|
-
const commandName = "ListTablesCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "RedshiftData",
|
|
35
|
-
operation: "ListTables",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_ListTablesCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_ListTablesCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class ListTablesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftData", "ListTables", {})
|
|
19
|
+
.n("RedshiftDataClient", "ListTablesCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListTablesCommand)
|
|
22
|
+
.de(de_ListTablesCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "redshift-data",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeTableCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeTable(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeTable = createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetStatementResultCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetStatementResult(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateGetStatementResult = createPaginator(RedshiftDataClient, GetStatementResultCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDatabasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDatabases(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListDatabases = createPaginator(RedshiftDataClient, ListDatabasesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSchemasCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSchemas(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSchemas = createPaginator(RedshiftDataClient, ListSchemasCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStatementsCommand, } from "../commands/ListStatementsCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStatementsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStatements(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListStatements = createPaginator(RedshiftDataClient, ListStatementsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTablesCommand } from "../commands/ListTablesCommand";
|
|
2
3
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTablesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTables(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof RedshiftDataClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListTables = createPaginator(RedshiftDataClient, ListTablesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
|
|
5
4
|
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface BatchExecuteStatementCommandInput extends BatchExecuteStatement
|
|
|
21
20
|
*/
|
|
22
21
|
export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatementOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const BatchExecuteStatementCommand_base: {
|
|
24
|
+
new (input: BatchExecuteStatementCommandInput): import("@smithy/smithy-client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition
|
|
@@ -112,23 +115,5 @@ export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatemen
|
|
|
112
115
|
* <p>Base exception class for all service exceptions from RedshiftData service.</p>
|
|
113
116
|
*
|
|
114
117
|
*/
|
|
115
|
-
export declare class BatchExecuteStatementCommand extends
|
|
116
|
-
readonly input: BatchExecuteStatementCommandInput;
|
|
117
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
118
|
-
/**
|
|
119
|
-
* @public
|
|
120
|
-
*/
|
|
121
|
-
constructor(input: BatchExecuteStatementCommandInput);
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput>;
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
129
|
-
private serialize;
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
133
|
-
private deserialize;
|
|
118
|
+
export declare class BatchExecuteStatementCommand extends BatchExecuteStatementCommand_base {
|
|
134
119
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
|
|
5
4
|
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CancelStatementCommandInput extends CancelStatementRequest {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CancelStatementCommandOutput extends CancelStatementResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CancelStatementCommand_base: {
|
|
24
|
+
new (input: CancelStatementCommandInput): import("@smithy/smithy-client").CommandImpl<CancelStatementCommandInput, CancelStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Cancels a running query. To be canceled, a query must be running. </p>
|
|
@@ -66,23 +69,5 @@ export interface CancelStatementCommandOutput extends CancelStatementResponse, _
|
|
|
66
69
|
* <p>Base exception class for all service exceptions from RedshiftData service.</p>
|
|
67
70
|
*
|
|
68
71
|
*/
|
|
69
|
-
export declare class CancelStatementCommand extends
|
|
70
|
-
readonly input: CancelStatementCommandInput;
|
|
71
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
72
|
-
/**
|
|
73
|
-
* @public
|
|
74
|
-
*/
|
|
75
|
-
constructor(input: CancelStatementCommandInput);
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CancelStatementCommandInput, CancelStatementCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
private serialize;
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
*/
|
|
87
|
-
private deserialize;
|
|
72
|
+
export declare class CancelStatementCommand extends CancelStatementCommand_base {
|
|
88
73
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
|
|
5
4
|
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DescribeStatementCommandInput extends DescribeStatementRequest
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DescribeStatementCommandOutput extends DescribeStatementResponse, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DescribeStatementCommand_base: {
|
|
24
|
+
new (input: DescribeStatementCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeStatementCommandInput, DescribeStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
|
|
@@ -102,23 +105,5 @@ export interface DescribeStatementCommandOutput extends DescribeStatementRespons
|
|
|
102
105
|
* <p>Base exception class for all service exceptions from RedshiftData service.</p>
|
|
103
106
|
*
|
|
104
107
|
*/
|
|
105
|
-
export declare class DescribeStatementCommand extends
|
|
106
|
-
readonly input: DescribeStatementCommandInput;
|
|
107
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
108
|
-
/**
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
|
-
constructor(input: DescribeStatementCommandInput);
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: RedshiftDataClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeStatementCommandInput, DescribeStatementCommandOutput>;
|
|
116
|
-
/**
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
119
|
-
private serialize;
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
*/
|
|
123
|
-
private deserialize;
|
|
108
|
+
export declare class DescribeStatementCommand extends DescribeStatementCommand_base {
|
|
124
109
|
}
|