@aws-sdk/client-athena 3.186.0 → 3.190.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 (59) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Athena.js +150 -157
  3. package/dist-es/AthenaClient.js +22 -28
  4. package/dist-es/commands/BatchGetNamedQueryCommand.js +21 -28
  5. package/dist-es/commands/BatchGetPreparedStatementCommand.js +21 -28
  6. package/dist-es/commands/BatchGetQueryExecutionCommand.js +21 -28
  7. package/dist-es/commands/CreateDataCatalogCommand.js +21 -28
  8. package/dist-es/commands/CreateNamedQueryCommand.js +21 -28
  9. package/dist-es/commands/CreatePreparedStatementCommand.js +21 -28
  10. package/dist-es/commands/CreateWorkGroupCommand.js +21 -28
  11. package/dist-es/commands/DeleteDataCatalogCommand.js +21 -28
  12. package/dist-es/commands/DeleteNamedQueryCommand.js +21 -28
  13. package/dist-es/commands/DeletePreparedStatementCommand.js +21 -28
  14. package/dist-es/commands/DeleteWorkGroupCommand.js +21 -28
  15. package/dist-es/commands/GetDataCatalogCommand.js +21 -28
  16. package/dist-es/commands/GetDatabaseCommand.js +21 -28
  17. package/dist-es/commands/GetNamedQueryCommand.js +21 -28
  18. package/dist-es/commands/GetPreparedStatementCommand.js +21 -28
  19. package/dist-es/commands/GetQueryExecutionCommand.js +21 -28
  20. package/dist-es/commands/GetQueryResultsCommand.js +21 -28
  21. package/dist-es/commands/GetQueryRuntimeStatisticsCommand.js +21 -28
  22. package/dist-es/commands/GetTableMetadataCommand.js +21 -28
  23. package/dist-es/commands/GetWorkGroupCommand.js +21 -28
  24. package/dist-es/commands/ListDataCatalogsCommand.js +21 -28
  25. package/dist-es/commands/ListDatabasesCommand.js +21 -28
  26. package/dist-es/commands/ListEngineVersionsCommand.js +21 -28
  27. package/dist-es/commands/ListNamedQueriesCommand.js +21 -28
  28. package/dist-es/commands/ListPreparedStatementsCommand.js +21 -28
  29. package/dist-es/commands/ListQueryExecutionsCommand.js +21 -28
  30. package/dist-es/commands/ListTableMetadataCommand.js +21 -28
  31. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  32. package/dist-es/commands/ListWorkGroupsCommand.js +21 -28
  33. package/dist-es/commands/StartQueryExecutionCommand.js +21 -28
  34. package/dist-es/commands/StopQueryExecutionCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateDataCatalogCommand.js +21 -28
  38. package/dist-es/commands/UpdateNamedQueryCommand.js +21 -28
  39. package/dist-es/commands/UpdatePreparedStatementCommand.js +21 -28
  40. package/dist-es/commands/UpdateWorkGroupCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/AthenaServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +393 -174
  44. package/dist-es/pagination/GetQueryResultsPaginator.js +25 -68
  45. package/dist-es/pagination/ListDataCatalogsPaginator.js +25 -68
  46. package/dist-es/pagination/ListDatabasesPaginator.js +25 -68
  47. package/dist-es/pagination/ListEngineVersionsPaginator.js +25 -68
  48. package/dist-es/pagination/ListNamedQueriesPaginator.js +25 -68
  49. package/dist-es/pagination/ListPreparedStatementsPaginator.js +25 -68
  50. package/dist-es/pagination/ListQueryExecutionsPaginator.js +25 -68
  51. package/dist-es/pagination/ListTableMetadataPaginator.js +25 -68
  52. package/dist-es/pagination/ListTagsForResourcePaginator.js +25 -68
  53. package/dist-es/pagination/ListWorkGroupsPaginator.js +25 -68
  54. package/dist-es/protocols/Aws_json1_1.js +2301 -2942
  55. package/dist-es/runtimeConfig.browser.js +26 -12
  56. package/dist-es/runtimeConfig.js +30 -12
  57. package/dist-es/runtimeConfig.native.js +8 -5
  58. package/dist-es/runtimeConfig.shared.js +8 -11
  59. package/package.json +33 -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 { DeletePreparedStatementInputFilterSensitiveLog, DeletePreparedStatementOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeletePreparedStatementCommand, serializeAws_json1_1DeletePreparedStatementCommand, } from "../protocols/Aws_json1_1";
6
- var DeletePreparedStatementCommand = (function (_super) {
7
- __extends(DeletePreparedStatementCommand, _super);
8
- function DeletePreparedStatementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePreparedStatementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePreparedStatementCommand.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 = "AthenaClient";
18
- var commandName = "DeletePreparedStatementCommand";
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 = "AthenaClient";
15
+ const commandName = "DeletePreparedStatementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePreparedStatementInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeletePreparedStatementOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeletePreparedStatementCommand.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_1DeletePreparedStatementCommand(input, context);
33
- };
34
- DeletePreparedStatementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeletePreparedStatementCommand(output, context);
36
- };
37
- return DeletePreparedStatementCommand;
38
- }($Command));
39
- export { DeletePreparedStatementCommand };
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 { DeleteWorkGroupInputFilterSensitiveLog, DeleteWorkGroupOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteWorkGroupCommand, serializeAws_json1_1DeleteWorkGroupCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteWorkGroupCommand = (function (_super) {
7
- __extends(DeleteWorkGroupCommand, _super);
8
- function DeleteWorkGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteWorkGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteWorkGroupCommand.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 = "AthenaClient";
18
- var commandName = "DeleteWorkGroupCommand";
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 = "AthenaClient";
15
+ const commandName = "DeleteWorkGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteWorkGroupInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteWorkGroupOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteWorkGroupCommand.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_1DeleteWorkGroupCommand(input, context);
33
- };
34
- DeleteWorkGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteWorkGroupCommand(output, context);
36
- };
37
- return DeleteWorkGroupCommand;
38
- }($Command));
39
- export { DeleteWorkGroupCommand };
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 { GetDataCatalogInputFilterSensitiveLog, GetDataCatalogOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetDataCatalogCommand, serializeAws_json1_1GetDataCatalogCommand, } from "../protocols/Aws_json1_1";
6
- var GetDataCatalogCommand = (function (_super) {
7
- __extends(GetDataCatalogCommand, _super);
8
- function GetDataCatalogCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDataCatalogCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDataCatalogCommand.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 = "AthenaClient";
18
- var commandName = "GetDataCatalogCommand";
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 = "AthenaClient";
15
+ const commandName = "GetDataCatalogCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDataCatalogInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDataCatalogOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDataCatalogCommand.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_1GetDataCatalogCommand(input, context);
33
- };
34
- GetDataCatalogCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetDataCatalogCommand(output, context);
36
- };
37
- return GetDataCatalogCommand;
38
- }($Command));
39
- export { GetDataCatalogCommand };
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 { GetDatabaseInputFilterSensitiveLog, GetDatabaseOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetDatabaseCommand, serializeAws_json1_1GetDatabaseCommand, } from "../protocols/Aws_json1_1";
6
- var GetDatabaseCommand = (function (_super) {
7
- __extends(GetDatabaseCommand, _super);
8
- function GetDatabaseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDatabaseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDatabaseCommand.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 = "AthenaClient";
18
- var commandName = "GetDatabaseCommand";
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 = "AthenaClient";
15
+ const commandName = "GetDatabaseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDatabaseInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDatabaseOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDatabaseCommand.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_1GetDatabaseCommand(input, context);
33
- };
34
- GetDatabaseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetDatabaseCommand(output, context);
36
- };
37
- return GetDatabaseCommand;
38
- }($Command));
39
- export { GetDatabaseCommand };
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 { GetNamedQueryInputFilterSensitiveLog, GetNamedQueryOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetNamedQueryCommand, serializeAws_json1_1GetNamedQueryCommand, } from "../protocols/Aws_json1_1";
6
- var GetNamedQueryCommand = (function (_super) {
7
- __extends(GetNamedQueryCommand, _super);
8
- function GetNamedQueryCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetNamedQueryCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetNamedQueryCommand.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 = "AthenaClient";
18
- var commandName = "GetNamedQueryCommand";
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 = "AthenaClient";
15
+ const commandName = "GetNamedQueryCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetNamedQueryInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetNamedQueryOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetNamedQueryCommand.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_1GetNamedQueryCommand(input, context);
33
- };
34
- GetNamedQueryCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetNamedQueryCommand(output, context);
36
- };
37
- return GetNamedQueryCommand;
38
- }($Command));
39
- export { GetNamedQueryCommand };
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 { GetPreparedStatementInputFilterSensitiveLog, GetPreparedStatementOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetPreparedStatementCommand, serializeAws_json1_1GetPreparedStatementCommand, } from "../protocols/Aws_json1_1";
6
- var GetPreparedStatementCommand = (function (_super) {
7
- __extends(GetPreparedStatementCommand, _super);
8
- function GetPreparedStatementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPreparedStatementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPreparedStatementCommand.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 = "AthenaClient";
18
- var commandName = "GetPreparedStatementCommand";
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 = "AthenaClient";
15
+ const commandName = "GetPreparedStatementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPreparedStatementInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPreparedStatementOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPreparedStatementCommand.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_1GetPreparedStatementCommand(input, context);
33
- };
34
- GetPreparedStatementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetPreparedStatementCommand(output, context);
36
- };
37
- return GetPreparedStatementCommand;
38
- }($Command));
39
- export { GetPreparedStatementCommand };
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 { GetQueryExecutionInputFilterSensitiveLog, GetQueryExecutionOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetQueryExecutionCommand, serializeAws_json1_1GetQueryExecutionCommand, } from "../protocols/Aws_json1_1";
6
- var GetQueryExecutionCommand = (function (_super) {
7
- __extends(GetQueryExecutionCommand, _super);
8
- function GetQueryExecutionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetQueryExecutionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetQueryExecutionCommand.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 = "AthenaClient";
18
- var commandName = "GetQueryExecutionCommand";
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 = "AthenaClient";
15
+ const commandName = "GetQueryExecutionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetQueryExecutionInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetQueryExecutionOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetQueryExecutionCommand.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_1GetQueryExecutionCommand(input, context);
33
- };
34
- GetQueryExecutionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetQueryExecutionCommand(output, context);
36
- };
37
- return GetQueryExecutionCommand;
38
- }($Command));
39
- export { GetQueryExecutionCommand };
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 { GetQueryResultsInputFilterSensitiveLog, GetQueryResultsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetQueryResultsCommand, serializeAws_json1_1GetQueryResultsCommand, } from "../protocols/Aws_json1_1";
6
- var GetQueryResultsCommand = (function (_super) {
7
- __extends(GetQueryResultsCommand, _super);
8
- function GetQueryResultsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetQueryResultsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetQueryResultsCommand.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 = "AthenaClient";
18
- var commandName = "GetQueryResultsCommand";
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 = "AthenaClient";
15
+ const commandName = "GetQueryResultsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetQueryResultsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetQueryResultsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetQueryResultsCommand.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_1GetQueryResultsCommand(input, context);
33
- };
34
- GetQueryResultsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetQueryResultsCommand(output, context);
36
- };
37
- return GetQueryResultsCommand;
38
- }($Command));
39
- export { GetQueryResultsCommand };
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 { GetQueryRuntimeStatisticsInputFilterSensitiveLog, GetQueryRuntimeStatisticsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetQueryRuntimeStatisticsCommand, serializeAws_json1_1GetQueryRuntimeStatisticsCommand, } from "../protocols/Aws_json1_1";
6
- var GetQueryRuntimeStatisticsCommand = (function (_super) {
7
- __extends(GetQueryRuntimeStatisticsCommand, _super);
8
- function GetQueryRuntimeStatisticsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetQueryRuntimeStatisticsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetQueryRuntimeStatisticsCommand.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 = "AthenaClient";
18
- var commandName = "GetQueryRuntimeStatisticsCommand";
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 = "AthenaClient";
15
+ const commandName = "GetQueryRuntimeStatisticsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetQueryRuntimeStatisticsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetQueryRuntimeStatisticsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetQueryRuntimeStatisticsCommand.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_1GetQueryRuntimeStatisticsCommand(input, context);
33
- };
34
- GetQueryRuntimeStatisticsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetQueryRuntimeStatisticsCommand(output, context);
36
- };
37
- return GetQueryRuntimeStatisticsCommand;
38
- }($Command));
39
- export { GetQueryRuntimeStatisticsCommand };
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 { GetTableMetadataInputFilterSensitiveLog, GetTableMetadataOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetTableMetadataCommand, serializeAws_json1_1GetTableMetadataCommand, } from "../protocols/Aws_json1_1";
6
- var GetTableMetadataCommand = (function (_super) {
7
- __extends(GetTableMetadataCommand, _super);
8
- function GetTableMetadataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetTableMetadataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetTableMetadataCommand.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 = "AthenaClient";
18
- var commandName = "GetTableMetadataCommand";
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 = "AthenaClient";
15
+ const commandName = "GetTableMetadataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetTableMetadataInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetTableMetadataOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetTableMetadataCommand.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_1GetTableMetadataCommand(input, context);
33
- };
34
- GetTableMetadataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetTableMetadataCommand(output, context);
36
- };
37
- return GetTableMetadataCommand;
38
- }($Command));
39
- export { GetTableMetadataCommand };
31
+ }
32
+ }