@aws-sdk/client-redshift-data 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/RedshiftData.js +49 -42
- package/dist-es/RedshiftDataClient.js +28 -22
- package/dist-es/commands/BatchExecuteStatementCommand.js +28 -21
- package/dist-es/commands/CancelStatementCommand.js +28 -21
- package/dist-es/commands/DescribeStatementCommand.js +28 -21
- package/dist-es/commands/DescribeTableCommand.js +28 -21
- package/dist-es/commands/ExecuteStatementCommand.js +28 -21
- package/dist-es/commands/GetStatementResultCommand.js +28 -21
- package/dist-es/commands/ListDatabasesCommand.js +28 -21
- package/dist-es/commands/ListSchemasCommand.js +28 -21
- package/dist-es/commands/ListStatementsCommand.js +28 -21
- package/dist-es/commands/ListTablesCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/RedshiftDataServiceException.js +10 -5
- package/dist-es/models/models_0.js +117 -166
- package/dist-es/pagination/DescribeTablePaginator.js +68 -25
- package/dist-es/pagination/GetStatementResultPaginator.js +67 -24
- package/dist-es/pagination/ListDatabasesPaginator.js +68 -25
- package/dist-es/pagination/ListSchemasPaginator.js +68 -25
- package/dist-es/pagination/ListStatementsPaginator.js +68 -25
- package/dist-es/pagination/ListTablesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +916 -747
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-redshift-data
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-redshift-data
|
|
@@ -1027,10 +1027,10 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
|
1027
1027
|
};
|
|
1028
1028
|
};
|
|
1029
1029
|
const deserializeMetadata = (output) => {
|
|
1030
|
-
var _a;
|
|
1030
|
+
var _a, _b;
|
|
1031
1031
|
return ({
|
|
1032
1032
|
httpStatusCode: output.statusCode,
|
|
1033
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1033
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1034
1034
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1035
1035
|
cfId: output.headers["x-amz-cf-id"],
|
|
1036
1036
|
});
|
package/dist-es/RedshiftData.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { BatchExecuteStatementCommand, } from "./commands/BatchExecuteStatementCommand";
|
|
2
3
|
import { CancelStatementCommand, } from "./commands/CancelStatementCommand";
|
|
3
4
|
import { DescribeStatementCommand, } from "./commands/DescribeStatementCommand";
|
|
@@ -9,145 +10,151 @@ import { ListSchemasCommand } from "./commands/ListSchemasCommand";
|
|
|
9
10
|
import { ListStatementsCommand, } from "./commands/ListStatementsCommand";
|
|
10
11
|
import { ListTablesCommand } from "./commands/ListTablesCommand";
|
|
11
12
|
import { RedshiftDataClient } from "./RedshiftDataClient";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
var RedshiftData = (function (_super) {
|
|
14
|
+
__extends(RedshiftData, _super);
|
|
15
|
+
function RedshiftData() {
|
|
16
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
+
}
|
|
18
|
+
RedshiftData.prototype.batchExecuteStatement = function (args, optionsOrCb, cb) {
|
|
19
|
+
var command = new BatchExecuteStatementCommand(args);
|
|
15
20
|
if (typeof optionsOrCb === "function") {
|
|
16
21
|
this.send(command, optionsOrCb);
|
|
17
22
|
}
|
|
18
23
|
else if (typeof cb === "function") {
|
|
19
24
|
if (typeof optionsOrCb !== "object")
|
|
20
|
-
throw new Error(
|
|
25
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
21
26
|
this.send(command, optionsOrCb || {}, cb);
|
|
22
27
|
}
|
|
23
28
|
else {
|
|
24
29
|
return this.send(command, optionsOrCb);
|
|
25
30
|
}
|
|
26
|
-
}
|
|
27
|
-
cancelStatement(args, optionsOrCb, cb) {
|
|
28
|
-
|
|
31
|
+
};
|
|
32
|
+
RedshiftData.prototype.cancelStatement = function (args, optionsOrCb, cb) {
|
|
33
|
+
var command = new CancelStatementCommand(args);
|
|
29
34
|
if (typeof optionsOrCb === "function") {
|
|
30
35
|
this.send(command, optionsOrCb);
|
|
31
36
|
}
|
|
32
37
|
else if (typeof cb === "function") {
|
|
33
38
|
if (typeof optionsOrCb !== "object")
|
|
34
|
-
throw new Error(
|
|
39
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
35
40
|
this.send(command, optionsOrCb || {}, cb);
|
|
36
41
|
}
|
|
37
42
|
else {
|
|
38
43
|
return this.send(command, optionsOrCb);
|
|
39
44
|
}
|
|
40
|
-
}
|
|
41
|
-
describeStatement(args, optionsOrCb, cb) {
|
|
42
|
-
|
|
45
|
+
};
|
|
46
|
+
RedshiftData.prototype.describeStatement = function (args, optionsOrCb, cb) {
|
|
47
|
+
var command = new DescribeStatementCommand(args);
|
|
43
48
|
if (typeof optionsOrCb === "function") {
|
|
44
49
|
this.send(command, optionsOrCb);
|
|
45
50
|
}
|
|
46
51
|
else if (typeof cb === "function") {
|
|
47
52
|
if (typeof optionsOrCb !== "object")
|
|
48
|
-
throw new Error(
|
|
53
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
49
54
|
this.send(command, optionsOrCb || {}, cb);
|
|
50
55
|
}
|
|
51
56
|
else {
|
|
52
57
|
return this.send(command, optionsOrCb);
|
|
53
58
|
}
|
|
54
|
-
}
|
|
55
|
-
describeTable(args, optionsOrCb, cb) {
|
|
56
|
-
|
|
59
|
+
};
|
|
60
|
+
RedshiftData.prototype.describeTable = function (args, optionsOrCb, cb) {
|
|
61
|
+
var command = new DescribeTableCommand(args);
|
|
57
62
|
if (typeof optionsOrCb === "function") {
|
|
58
63
|
this.send(command, optionsOrCb);
|
|
59
64
|
}
|
|
60
65
|
else if (typeof cb === "function") {
|
|
61
66
|
if (typeof optionsOrCb !== "object")
|
|
62
|
-
throw new Error(
|
|
67
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
63
68
|
this.send(command, optionsOrCb || {}, cb);
|
|
64
69
|
}
|
|
65
70
|
else {
|
|
66
71
|
return this.send(command, optionsOrCb);
|
|
67
72
|
}
|
|
68
|
-
}
|
|
69
|
-
executeStatement(args, optionsOrCb, cb) {
|
|
70
|
-
|
|
73
|
+
};
|
|
74
|
+
RedshiftData.prototype.executeStatement = function (args, optionsOrCb, cb) {
|
|
75
|
+
var command = new ExecuteStatementCommand(args);
|
|
71
76
|
if (typeof optionsOrCb === "function") {
|
|
72
77
|
this.send(command, optionsOrCb);
|
|
73
78
|
}
|
|
74
79
|
else if (typeof cb === "function") {
|
|
75
80
|
if (typeof optionsOrCb !== "object")
|
|
76
|
-
throw new Error(
|
|
81
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
77
82
|
this.send(command, optionsOrCb || {}, cb);
|
|
78
83
|
}
|
|
79
84
|
else {
|
|
80
85
|
return this.send(command, optionsOrCb);
|
|
81
86
|
}
|
|
82
|
-
}
|
|
83
|
-
getStatementResult(args, optionsOrCb, cb) {
|
|
84
|
-
|
|
87
|
+
};
|
|
88
|
+
RedshiftData.prototype.getStatementResult = function (args, optionsOrCb, cb) {
|
|
89
|
+
var command = new GetStatementResultCommand(args);
|
|
85
90
|
if (typeof optionsOrCb === "function") {
|
|
86
91
|
this.send(command, optionsOrCb);
|
|
87
92
|
}
|
|
88
93
|
else if (typeof cb === "function") {
|
|
89
94
|
if (typeof optionsOrCb !== "object")
|
|
90
|
-
throw new Error(
|
|
95
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
91
96
|
this.send(command, optionsOrCb || {}, cb);
|
|
92
97
|
}
|
|
93
98
|
else {
|
|
94
99
|
return this.send(command, optionsOrCb);
|
|
95
100
|
}
|
|
96
|
-
}
|
|
97
|
-
listDatabases(args, optionsOrCb, cb) {
|
|
98
|
-
|
|
101
|
+
};
|
|
102
|
+
RedshiftData.prototype.listDatabases = function (args, optionsOrCb, cb) {
|
|
103
|
+
var command = new ListDatabasesCommand(args);
|
|
99
104
|
if (typeof optionsOrCb === "function") {
|
|
100
105
|
this.send(command, optionsOrCb);
|
|
101
106
|
}
|
|
102
107
|
else if (typeof cb === "function") {
|
|
103
108
|
if (typeof optionsOrCb !== "object")
|
|
104
|
-
throw new Error(
|
|
109
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
105
110
|
this.send(command, optionsOrCb || {}, cb);
|
|
106
111
|
}
|
|
107
112
|
else {
|
|
108
113
|
return this.send(command, optionsOrCb);
|
|
109
114
|
}
|
|
110
|
-
}
|
|
111
|
-
listSchemas(args, optionsOrCb, cb) {
|
|
112
|
-
|
|
115
|
+
};
|
|
116
|
+
RedshiftData.prototype.listSchemas = function (args, optionsOrCb, cb) {
|
|
117
|
+
var command = new ListSchemasCommand(args);
|
|
113
118
|
if (typeof optionsOrCb === "function") {
|
|
114
119
|
this.send(command, optionsOrCb);
|
|
115
120
|
}
|
|
116
121
|
else if (typeof cb === "function") {
|
|
117
122
|
if (typeof optionsOrCb !== "object")
|
|
118
|
-
throw new Error(
|
|
123
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
119
124
|
this.send(command, optionsOrCb || {}, cb);
|
|
120
125
|
}
|
|
121
126
|
else {
|
|
122
127
|
return this.send(command, optionsOrCb);
|
|
123
128
|
}
|
|
124
|
-
}
|
|
125
|
-
listStatements(args, optionsOrCb, cb) {
|
|
126
|
-
|
|
129
|
+
};
|
|
130
|
+
RedshiftData.prototype.listStatements = function (args, optionsOrCb, cb) {
|
|
131
|
+
var command = new ListStatementsCommand(args);
|
|
127
132
|
if (typeof optionsOrCb === "function") {
|
|
128
133
|
this.send(command, optionsOrCb);
|
|
129
134
|
}
|
|
130
135
|
else if (typeof cb === "function") {
|
|
131
136
|
if (typeof optionsOrCb !== "object")
|
|
132
|
-
throw new Error(
|
|
137
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
133
138
|
this.send(command, optionsOrCb || {}, cb);
|
|
134
139
|
}
|
|
135
140
|
else {
|
|
136
141
|
return this.send(command, optionsOrCb);
|
|
137
142
|
}
|
|
138
|
-
}
|
|
139
|
-
listTables(args, optionsOrCb, cb) {
|
|
140
|
-
|
|
143
|
+
};
|
|
144
|
+
RedshiftData.prototype.listTables = function (args, optionsOrCb, cb) {
|
|
145
|
+
var command = new ListTablesCommand(args);
|
|
141
146
|
if (typeof optionsOrCb === "function") {
|
|
142
147
|
this.send(command, optionsOrCb);
|
|
143
148
|
}
|
|
144
149
|
else if (typeof cb === "function") {
|
|
145
150
|
if (typeof optionsOrCb !== "object")
|
|
146
|
-
throw new Error(
|
|
151
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
147
152
|
this.send(command, optionsOrCb || {}, cb);
|
|
148
153
|
}
|
|
149
154
|
else {
|
|
150
155
|
return this.send(command, optionsOrCb);
|
|
151
156
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
157
|
+
};
|
|
158
|
+
return RedshiftData;
|
|
159
|
+
}(RedshiftDataClient));
|
|
160
|
+
export { RedshiftData };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var RedshiftDataClient = (function (_super) {
|
|
13
|
+
__extends(RedshiftDataClient, _super);
|
|
14
|
+
function RedshiftDataClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
RedshiftDataClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return RedshiftDataClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { RedshiftDataClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { BatchExecuteStatementInputFilterSensitiveLog, BatchExecuteStatementOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1BatchExecuteStatementCommand, serializeAws_json1_1BatchExecuteStatementCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var BatchExecuteStatementCommand = (function (_super) {
|
|
7
|
+
__extends(BatchExecuteStatementCommand, _super);
|
|
8
|
+
function BatchExecuteStatementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
BatchExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftDataClient";
|
|
18
|
+
var commandName = "BatchExecuteStatementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: BatchExecuteStatementInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: BatchExecuteStatementOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
BatchExecuteStatementCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1BatchExecuteStatementCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
BatchExecuteStatementCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1BatchExecuteStatementCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return BatchExecuteStatementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { BatchExecuteStatementCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelStatementRequestFilterSensitiveLog, CancelStatementResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CancelStatementCommand, serializeAws_json1_1CancelStatementCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CancelStatementCommand = (function (_super) {
|
|
7
|
+
__extends(CancelStatementCommand, _super);
|
|
8
|
+
function CancelStatementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CancelStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftDataClient";
|
|
18
|
+
var commandName = "CancelStatementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CancelStatementRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CancelStatementResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CancelStatementCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CancelStatementCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CancelStatementCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CancelStatementCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CancelStatementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CancelStatementCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeStatementRequestFilterSensitiveLog, DescribeStatementResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DescribeStatementCommand, serializeAws_json1_1DescribeStatementCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeStatementCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeStatementCommand, _super);
|
|
8
|
+
function DescribeStatementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftDataClient";
|
|
18
|
+
var commandName = "DescribeStatementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeStatementRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeStatementResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeStatementCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DescribeStatementCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeStatementCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DescribeStatementCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeStatementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeStatementCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DescribeTableRequestFilterSensitiveLog, DescribeTableResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1DescribeTableCommand, serializeAws_json1_1DescribeTableCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var DescribeTableCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeTableCommand, _super);
|
|
8
|
+
function DescribeTableCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
DescribeTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftDataClient";
|
|
18
|
+
var commandName = "DescribeTableCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: DescribeTableRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: DescribeTableResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeTableCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1DescribeTableCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
DescribeTableCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1DescribeTableCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return DescribeTableCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeTableCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { ExecuteStatementInputFilterSensitiveLog, ExecuteStatementOutputFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1ExecuteStatementCommand, serializeAws_json1_1ExecuteStatementCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var ExecuteStatementCommand = (function (_super) {
|
|
7
|
+
__extends(ExecuteStatementCommand, _super);
|
|
8
|
+
function ExecuteStatementCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
ExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "RedshiftDataClient";
|
|
18
|
+
var commandName = "ExecuteStatementCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: ExecuteStatementInputFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: ExecuteStatementOutputFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ExecuteStatementCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1ExecuteStatementCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
ExecuteStatementCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1ExecuteStatementCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return ExecuteStatementCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ExecuteStatementCommand };
|