@aws-sdk/client-redshift-data 3.180.0 → 3.183.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +16 -10
  3. package/dist-es/RedshiftData.js +42 -49
  4. package/dist-es/RedshiftDataClient.js +22 -28
  5. package/dist-es/commands/BatchExecuteStatementCommand.js +21 -28
  6. package/dist-es/commands/CancelStatementCommand.js +21 -28
  7. package/dist-es/commands/DescribeStatementCommand.js +21 -28
  8. package/dist-es/commands/DescribeTableCommand.js +21 -28
  9. package/dist-es/commands/ExecuteStatementCommand.js +21 -28
  10. package/dist-es/commands/GetStatementResultCommand.js +21 -28
  11. package/dist-es/commands/ListDatabasesCommand.js +21 -28
  12. package/dist-es/commands/ListSchemasCommand.js +21 -28
  13. package/dist-es/commands/ListStatementsCommand.js +21 -28
  14. package/dist-es/commands/ListTablesCommand.js +21 -28
  15. package/dist-es/endpoints.js +8 -8
  16. package/dist-es/models/RedshiftDataServiceException.js +5 -10
  17. package/dist-es/models/models_0.js +166 -117
  18. package/dist-es/pagination/DescribeTablePaginator.js +25 -68
  19. package/dist-es/pagination/GetStatementResultPaginator.js +24 -67
  20. package/dist-es/pagination/ListDatabasesPaginator.js +25 -68
  21. package/dist-es/pagination/ListSchemasPaginator.js +25 -68
  22. package/dist-es/pagination/ListStatementsPaginator.js +25 -68
  23. package/dist-es/pagination/ListTablesPaginator.js +25 -68
  24. package/dist-es/protocols/Aws_json1_1.js +747 -903
  25. package/dist-es/runtimeConfig.browser.js +26 -12
  26. package/dist-es/runtimeConfig.js +30 -12
  27. package/dist-es/runtimeConfig.native.js +8 -5
  28. package/dist-es/runtimeConfig.shared.js +8 -11
  29. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-redshift-data
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-redshift-data
@@ -122,7 +122,7 @@ exports.deserializeAws_json1_1BatchExecuteStatementCommand = deserializeAws_json
122
122
  const deserializeAws_json1_1BatchExecuteStatementCommandError = async (output, context) => {
123
123
  const parsedOutput = {
124
124
  ...output,
125
- body: await parseBody(output.body, context),
125
+ body: await parseErrorBody(output.body, context),
126
126
  };
127
127
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
128
128
  switch (errorCode) {
@@ -162,7 +162,7 @@ exports.deserializeAws_json1_1CancelStatementCommand = deserializeAws_json1_1Can
162
162
  const deserializeAws_json1_1CancelStatementCommandError = async (output, context) => {
163
163
  const parsedOutput = {
164
164
  ...output,
165
- body: await parseBody(output.body, context),
165
+ body: await parseErrorBody(output.body, context),
166
166
  };
167
167
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
168
168
  switch (errorCode) {
@@ -205,7 +205,7 @@ exports.deserializeAws_json1_1DescribeStatementCommand = deserializeAws_json1_1D
205
205
  const deserializeAws_json1_1DescribeStatementCommandError = async (output, context) => {
206
206
  const parsedOutput = {
207
207
  ...output,
208
- body: await parseBody(output.body, context),
208
+ body: await parseErrorBody(output.body, context),
209
209
  };
210
210
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
211
211
  switch (errorCode) {
@@ -245,7 +245,7 @@ exports.deserializeAws_json1_1DescribeTableCommand = deserializeAws_json1_1Descr
245
245
  const deserializeAws_json1_1DescribeTableCommandError = async (output, context) => {
246
246
  const parsedOutput = {
247
247
  ...output,
248
- body: await parseBody(output.body, context),
248
+ body: await parseErrorBody(output.body, context),
249
249
  };
250
250
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
251
251
  switch (errorCode) {
@@ -285,7 +285,7 @@ exports.deserializeAws_json1_1ExecuteStatementCommand = deserializeAws_json1_1Ex
285
285
  const deserializeAws_json1_1ExecuteStatementCommandError = async (output, context) => {
286
286
  const parsedOutput = {
287
287
  ...output,
288
- body: await parseBody(output.body, context),
288
+ body: await parseErrorBody(output.body, context),
289
289
  };
290
290
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
291
291
  switch (errorCode) {
@@ -325,7 +325,7 @@ exports.deserializeAws_json1_1GetStatementResultCommand = deserializeAws_json1_1
325
325
  const deserializeAws_json1_1GetStatementResultCommandError = async (output, context) => {
326
326
  const parsedOutput = {
327
327
  ...output,
328
- body: await parseBody(output.body, context),
328
+ body: await parseErrorBody(output.body, context),
329
329
  };
330
330
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
331
331
  switch (errorCode) {
@@ -365,7 +365,7 @@ exports.deserializeAws_json1_1ListDatabasesCommand = deserializeAws_json1_1ListD
365
365
  const deserializeAws_json1_1ListDatabasesCommandError = async (output, context) => {
366
366
  const parsedOutput = {
367
367
  ...output,
368
- body: await parseBody(output.body, context),
368
+ body: await parseErrorBody(output.body, context),
369
369
  };
370
370
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
371
371
  switch (errorCode) {
@@ -405,7 +405,7 @@ exports.deserializeAws_json1_1ListSchemasCommand = deserializeAws_json1_1ListSch
405
405
  const deserializeAws_json1_1ListSchemasCommandError = async (output, context) => {
406
406
  const parsedOutput = {
407
407
  ...output,
408
- body: await parseBody(output.body, context),
408
+ body: await parseErrorBody(output.body, context),
409
409
  };
410
410
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
411
411
  switch (errorCode) {
@@ -445,7 +445,7 @@ exports.deserializeAws_json1_1ListStatementsCommand = deserializeAws_json1_1List
445
445
  const deserializeAws_json1_1ListStatementsCommandError = async (output, context) => {
446
446
  const parsedOutput = {
447
447
  ...output,
448
- body: await parseBody(output.body, context),
448
+ body: await parseErrorBody(output.body, context),
449
449
  };
450
450
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
451
451
  switch (errorCode) {
@@ -482,7 +482,7 @@ exports.deserializeAws_json1_1ListTablesCommand = deserializeAws_json1_1ListTabl
482
482
  const deserializeAws_json1_1ListTablesCommandError = async (output, context) => {
483
483
  const parsedOutput = {
484
484
  ...output,
485
- body: await parseBody(output.body, context),
485
+ body: await parseErrorBody(output.body, context),
486
486
  };
487
487
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
488
488
  switch (errorCode) {
@@ -1066,6 +1066,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1066
1066
  }
1067
1067
  return {};
1068
1068
  });
1069
+ const parseErrorBody = async (errorBody, context) => {
1070
+ var _a;
1071
+ const value = await parseBody(errorBody, context);
1072
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1073
+ return value;
1074
+ };
1069
1075
  const loadRestJsonErrorCode = (output, data) => {
1070
1076
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1071
1077
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { BatchExecuteStatementCommand, } from "./commands/BatchExecuteStatementCommand";
3
2
  import { CancelStatementCommand, } from "./commands/CancelStatementCommand";
4
3
  import { DescribeStatementCommand, } from "./commands/DescribeStatementCommand";
@@ -10,151 +9,145 @@ import { ListSchemasCommand } from "./commands/ListSchemasCommand";
10
9
  import { ListStatementsCommand, } from "./commands/ListStatementsCommand";
11
10
  import { ListTablesCommand } from "./commands/ListTablesCommand";
12
11
  import { RedshiftDataClient } from "./RedshiftDataClient";
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);
12
+ export class RedshiftData extends RedshiftDataClient {
13
+ batchExecuteStatement(args, optionsOrCb, cb) {
14
+ const command = new BatchExecuteStatementCommand(args);
20
15
  if (typeof optionsOrCb === "function") {
21
16
  this.send(command, optionsOrCb);
22
17
  }
23
18
  else if (typeof cb === "function") {
24
19
  if (typeof optionsOrCb !== "object")
25
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
20
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
21
  this.send(command, optionsOrCb || {}, cb);
27
22
  }
28
23
  else {
29
24
  return this.send(command, optionsOrCb);
30
25
  }
31
- };
32
- RedshiftData.prototype.cancelStatement = function (args, optionsOrCb, cb) {
33
- var command = new CancelStatementCommand(args);
26
+ }
27
+ cancelStatement(args, optionsOrCb, cb) {
28
+ const command = new CancelStatementCommand(args);
34
29
  if (typeof optionsOrCb === "function") {
35
30
  this.send(command, optionsOrCb);
36
31
  }
37
32
  else if (typeof cb === "function") {
38
33
  if (typeof optionsOrCb !== "object")
39
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
35
  this.send(command, optionsOrCb || {}, cb);
41
36
  }
42
37
  else {
43
38
  return this.send(command, optionsOrCb);
44
39
  }
45
- };
46
- RedshiftData.prototype.describeStatement = function (args, optionsOrCb, cb) {
47
- var command = new DescribeStatementCommand(args);
40
+ }
41
+ describeStatement(args, optionsOrCb, cb) {
42
+ const command = new DescribeStatementCommand(args);
48
43
  if (typeof optionsOrCb === "function") {
49
44
  this.send(command, optionsOrCb);
50
45
  }
51
46
  else if (typeof cb === "function") {
52
47
  if (typeof optionsOrCb !== "object")
53
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
49
  this.send(command, optionsOrCb || {}, cb);
55
50
  }
56
51
  else {
57
52
  return this.send(command, optionsOrCb);
58
53
  }
59
- };
60
- RedshiftData.prototype.describeTable = function (args, optionsOrCb, cb) {
61
- var command = new DescribeTableCommand(args);
54
+ }
55
+ describeTable(args, optionsOrCb, cb) {
56
+ const command = new DescribeTableCommand(args);
62
57
  if (typeof optionsOrCb === "function") {
63
58
  this.send(command, optionsOrCb);
64
59
  }
65
60
  else if (typeof cb === "function") {
66
61
  if (typeof optionsOrCb !== "object")
67
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
63
  this.send(command, optionsOrCb || {}, cb);
69
64
  }
70
65
  else {
71
66
  return this.send(command, optionsOrCb);
72
67
  }
73
- };
74
- RedshiftData.prototype.executeStatement = function (args, optionsOrCb, cb) {
75
- var command = new ExecuteStatementCommand(args);
68
+ }
69
+ executeStatement(args, optionsOrCb, cb) {
70
+ const command = new ExecuteStatementCommand(args);
76
71
  if (typeof optionsOrCb === "function") {
77
72
  this.send(command, optionsOrCb);
78
73
  }
79
74
  else if (typeof cb === "function") {
80
75
  if (typeof optionsOrCb !== "object")
81
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
77
  this.send(command, optionsOrCb || {}, cb);
83
78
  }
84
79
  else {
85
80
  return this.send(command, optionsOrCb);
86
81
  }
87
- };
88
- RedshiftData.prototype.getStatementResult = function (args, optionsOrCb, cb) {
89
- var command = new GetStatementResultCommand(args);
82
+ }
83
+ getStatementResult(args, optionsOrCb, cb) {
84
+ const command = new GetStatementResultCommand(args);
90
85
  if (typeof optionsOrCb === "function") {
91
86
  this.send(command, optionsOrCb);
92
87
  }
93
88
  else if (typeof cb === "function") {
94
89
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
91
  this.send(command, optionsOrCb || {}, cb);
97
92
  }
98
93
  else {
99
94
  return this.send(command, optionsOrCb);
100
95
  }
101
- };
102
- RedshiftData.prototype.listDatabases = function (args, optionsOrCb, cb) {
103
- var command = new ListDatabasesCommand(args);
96
+ }
97
+ listDatabases(args, optionsOrCb, cb) {
98
+ const command = new ListDatabasesCommand(args);
104
99
  if (typeof optionsOrCb === "function") {
105
100
  this.send(command, optionsOrCb);
106
101
  }
107
102
  else if (typeof cb === "function") {
108
103
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
105
  this.send(command, optionsOrCb || {}, cb);
111
106
  }
112
107
  else {
113
108
  return this.send(command, optionsOrCb);
114
109
  }
115
- };
116
- RedshiftData.prototype.listSchemas = function (args, optionsOrCb, cb) {
117
- var command = new ListSchemasCommand(args);
110
+ }
111
+ listSchemas(args, optionsOrCb, cb) {
112
+ const command = new ListSchemasCommand(args);
118
113
  if (typeof optionsOrCb === "function") {
119
114
  this.send(command, optionsOrCb);
120
115
  }
121
116
  else if (typeof cb === "function") {
122
117
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
119
  this.send(command, optionsOrCb || {}, cb);
125
120
  }
126
121
  else {
127
122
  return this.send(command, optionsOrCb);
128
123
  }
129
- };
130
- RedshiftData.prototype.listStatements = function (args, optionsOrCb, cb) {
131
- var command = new ListStatementsCommand(args);
124
+ }
125
+ listStatements(args, optionsOrCb, cb) {
126
+ const command = new ListStatementsCommand(args);
132
127
  if (typeof optionsOrCb === "function") {
133
128
  this.send(command, optionsOrCb);
134
129
  }
135
130
  else if (typeof cb === "function") {
136
131
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
133
  this.send(command, optionsOrCb || {}, cb);
139
134
  }
140
135
  else {
141
136
  return this.send(command, optionsOrCb);
142
137
  }
143
- };
144
- RedshiftData.prototype.listTables = function (args, optionsOrCb, cb) {
145
- var command = new ListTablesCommand(args);
138
+ }
139
+ listTables(args, optionsOrCb, cb) {
140
+ const command = new ListTablesCommand(args);
146
141
  if (typeof optionsOrCb === "function") {
147
142
  this.send(command, optionsOrCb);
148
143
  }
149
144
  else if (typeof cb === "function") {
150
145
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
147
  this.send(command, optionsOrCb || {}, cb);
153
148
  }
154
149
  else {
155
150
  return this.send(command, optionsOrCb);
156
151
  }
157
- };
158
- return RedshiftData;
159
- }(RedshiftDataClient));
160
- export { RedshiftData };
152
+ }
153
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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;
11
+ export class RedshiftDataClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- RedshiftDataClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return RedshiftDataClient;
38
- }(__Client));
39
- export { RedshiftDataClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchExecuteStatementInputFilterSensitiveLog, BatchExecuteStatementOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1BatchExecuteStatementCommand, serializeAws_json1_1BatchExecuteStatementCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class BatchExecuteStatementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftDataClient";
15
+ const commandName = "BatchExecuteStatementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchExecuteStatementInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchExecuteStatementOutputFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1BatchExecuteStatementCommand(input, context);
33
- };
34
- BatchExecuteStatementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1BatchExecuteStatementCommand(output, context);
36
- };
37
- return BatchExecuteStatementCommand;
38
- }($Command));
39
- export { BatchExecuteStatementCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CancelStatementRequestFilterSensitiveLog, CancelStatementResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CancelStatementCommand, serializeAws_json1_1CancelStatementCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class CancelStatementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CancelStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftDataClient";
15
+ const commandName = "CancelStatementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CancelStatementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CancelStatementResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1CancelStatementCommand(input, context);
33
- };
34
- CancelStatementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CancelStatementCommand(output, context);
36
- };
37
- return CancelStatementCommand;
38
- }($Command));
39
- export { CancelStatementCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeStatementRequestFilterSensitiveLog, DescribeStatementResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeStatementCommand, serializeAws_json1_1DescribeStatementCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class DescribeStatementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftDataClient";
15
+ const commandName = "DescribeStatementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeStatementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeStatementResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeStatementCommand(input, context);
33
- };
34
- DescribeStatementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeStatementCommand(output, context);
36
- };
37
- return DescribeStatementCommand;
38
- }($Command));
39
- export { DescribeStatementCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeTableRequestFilterSensitiveLog, DescribeTableResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeTableCommand, serializeAws_json1_1DescribeTableCommand, } from "../protocols/Aws_json1_1";
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;
5
+ export class DescribeTableCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "RedshiftDataClient";
15
+ const commandName = "DescribeTableCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeTableRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeTableResponseFilterSensitiveLog,
25
22
  };
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) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1DescribeTableCommand(input, context);
33
- };
34
- DescribeTableCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeTableCommand(output, context);
36
- };
37
- return DescribeTableCommand;
38
- }($Command));
39
- export { DescribeTableCommand };
31
+ }
32
+ }