@aws-sdk/client-athena 3.181.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 (59) hide show
  1. package/CHANGELOG.md +8 -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 { GetWorkGroupInputFilterSensitiveLog, GetWorkGroupOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetWorkGroupCommand, serializeAws_json1_1GetWorkGroupCommand, } from "../protocols/Aws_json1_1";
6
- var GetWorkGroupCommand = (function (_super) {
7
- __extends(GetWorkGroupCommand, _super);
8
- function GetWorkGroupCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetWorkGroupCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetWorkGroupCommand.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 = "GetWorkGroupCommand";
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 = "GetWorkGroupCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetWorkGroupInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetWorkGroupOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetWorkGroupCommand.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_1GetWorkGroupCommand(input, context);
33
- };
34
- GetWorkGroupCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetWorkGroupCommand(output, context);
36
- };
37
- return GetWorkGroupCommand;
38
- }($Command));
39
- export { GetWorkGroupCommand };
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 { ListDataCatalogsInputFilterSensitiveLog, ListDataCatalogsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListDataCatalogsCommand, serializeAws_json1_1ListDataCatalogsCommand, } from "../protocols/Aws_json1_1";
6
- var ListDataCatalogsCommand = (function (_super) {
7
- __extends(ListDataCatalogsCommand, _super);
8
- function ListDataCatalogsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDataCatalogsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDataCatalogsCommand.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 = "ListDataCatalogsCommand";
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 = "ListDataCatalogsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDataCatalogsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDataCatalogsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDataCatalogsCommand.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_1ListDataCatalogsCommand(input, context);
33
- };
34
- ListDataCatalogsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListDataCatalogsCommand(output, context);
36
- };
37
- return ListDataCatalogsCommand;
38
- }($Command));
39
- export { ListDataCatalogsCommand };
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 { ListDatabasesInputFilterSensitiveLog, ListDatabasesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListDatabasesCommand, serializeAws_json1_1ListDatabasesCommand, } from "../protocols/Aws_json1_1";
6
- var ListDatabasesCommand = (function (_super) {
7
- __extends(ListDatabasesCommand, _super);
8
- function ListDatabasesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDatabasesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDatabasesCommand.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 = "ListDatabasesCommand";
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 = "ListDatabasesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDatabasesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDatabasesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDatabasesCommand.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_1ListDatabasesCommand(input, context);
33
- };
34
- ListDatabasesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListDatabasesCommand(output, context);
36
- };
37
- return ListDatabasesCommand;
38
- }($Command));
39
- export { ListDatabasesCommand };
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 { ListEngineVersionsInputFilterSensitiveLog, ListEngineVersionsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListEngineVersionsCommand, serializeAws_json1_1ListEngineVersionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListEngineVersionsCommand = (function (_super) {
7
- __extends(ListEngineVersionsCommand, _super);
8
- function ListEngineVersionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEngineVersionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEngineVersionsCommand.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 = "ListEngineVersionsCommand";
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 = "ListEngineVersionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEngineVersionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEngineVersionsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEngineVersionsCommand.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_1ListEngineVersionsCommand(input, context);
33
- };
34
- ListEngineVersionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListEngineVersionsCommand(output, context);
36
- };
37
- return ListEngineVersionsCommand;
38
- }($Command));
39
- export { ListEngineVersionsCommand };
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 { ListNamedQueriesInputFilterSensitiveLog, ListNamedQueriesOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListNamedQueriesCommand, serializeAws_json1_1ListNamedQueriesCommand, } from "../protocols/Aws_json1_1";
6
- var ListNamedQueriesCommand = (function (_super) {
7
- __extends(ListNamedQueriesCommand, _super);
8
- function ListNamedQueriesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListNamedQueriesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListNamedQueriesCommand.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 = "ListNamedQueriesCommand";
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 = "ListNamedQueriesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListNamedQueriesInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListNamedQueriesOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListNamedQueriesCommand.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_1ListNamedQueriesCommand(input, context);
33
- };
34
- ListNamedQueriesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListNamedQueriesCommand(output, context);
36
- };
37
- return ListNamedQueriesCommand;
38
- }($Command));
39
- export { ListNamedQueriesCommand };
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 { ListPreparedStatementsInputFilterSensitiveLog, ListPreparedStatementsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPreparedStatementsCommand, serializeAws_json1_1ListPreparedStatementsCommand, } from "../protocols/Aws_json1_1";
6
- var ListPreparedStatementsCommand = (function (_super) {
7
- __extends(ListPreparedStatementsCommand, _super);
8
- function ListPreparedStatementsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPreparedStatementsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPreparedStatementsCommand.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 = "ListPreparedStatementsCommand";
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 = "ListPreparedStatementsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPreparedStatementsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPreparedStatementsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPreparedStatementsCommand.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_1ListPreparedStatementsCommand(input, context);
33
- };
34
- ListPreparedStatementsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPreparedStatementsCommand(output, context);
36
- };
37
- return ListPreparedStatementsCommand;
38
- }($Command));
39
- export { ListPreparedStatementsCommand };
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 { ListQueryExecutionsInputFilterSensitiveLog, ListQueryExecutionsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListQueryExecutionsCommand, serializeAws_json1_1ListQueryExecutionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListQueryExecutionsCommand = (function (_super) {
7
- __extends(ListQueryExecutionsCommand, _super);
8
- function ListQueryExecutionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListQueryExecutionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListQueryExecutionsCommand.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 = "ListQueryExecutionsCommand";
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 = "ListQueryExecutionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListQueryExecutionsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListQueryExecutionsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListQueryExecutionsCommand.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_1ListQueryExecutionsCommand(input, context);
33
- };
34
- ListQueryExecutionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListQueryExecutionsCommand(output, context);
36
- };
37
- return ListQueryExecutionsCommand;
38
- }($Command));
39
- export { ListQueryExecutionsCommand };
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 { ListTableMetadataInputFilterSensitiveLog, ListTableMetadataOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTableMetadataCommand, serializeAws_json1_1ListTableMetadataCommand, } from "../protocols/Aws_json1_1";
6
- var ListTableMetadataCommand = (function (_super) {
7
- __extends(ListTableMetadataCommand, _super);
8
- function ListTableMetadataCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTableMetadataCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTableMetadataCommand.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 = "ListTableMetadataCommand";
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 = "ListTableMetadataCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTableMetadataInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTableMetadataOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTableMetadataCommand.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_1ListTableMetadataCommand(input, context);
33
- };
34
- ListTableMetadataCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTableMetadataCommand(output, context);
36
- };
37
- return ListTableMetadataCommand;
38
- }($Command));
39
- export { ListTableMetadataCommand };
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 { ListTagsForResourceInputFilterSensitiveLog, ListTagsForResourceOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
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 = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { ListWorkGroupsInputFilterSensitiveLog, ListWorkGroupsOutputFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListWorkGroupsCommand, serializeAws_json1_1ListWorkGroupsCommand, } from "../protocols/Aws_json1_1";
6
- var ListWorkGroupsCommand = (function (_super) {
7
- __extends(ListWorkGroupsCommand, _super);
8
- function ListWorkGroupsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListWorkGroupsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListWorkGroupsCommand.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 = "ListWorkGroupsCommand";
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 = "ListWorkGroupsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListWorkGroupsInputFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListWorkGroupsOutputFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListWorkGroupsCommand.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_1ListWorkGroupsCommand(input, context);
33
- };
34
- ListWorkGroupsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListWorkGroupsCommand(output, context);
36
- };
37
- return ListWorkGroupsCommand;
38
- }($Command));
39
- export { ListWorkGroupsCommand };
31
+ }
32
+ }