@aws-sdk/client-athena 3.927.0 → 3.929.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 (89) hide show
  1. package/dist-cjs/index.js +1900 -2342
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/AthenaClient.js +2 -0
  4. package/dist-es/commands/BatchGetNamedQueryCommand.js +3 -9
  5. package/dist-es/commands/BatchGetPreparedStatementCommand.js +3 -9
  6. package/dist-es/commands/BatchGetQueryExecutionCommand.js +3 -9
  7. package/dist-es/commands/CancelCapacityReservationCommand.js +3 -9
  8. package/dist-es/commands/CreateCapacityReservationCommand.js +3 -9
  9. package/dist-es/commands/CreateDataCatalogCommand.js +3 -9
  10. package/dist-es/commands/CreateNamedQueryCommand.js +3 -9
  11. package/dist-es/commands/CreateNotebookCommand.js +3 -9
  12. package/dist-es/commands/CreatePreparedStatementCommand.js +3 -9
  13. package/dist-es/commands/CreatePresignedNotebookUrlCommand.js +3 -9
  14. package/dist-es/commands/CreateWorkGroupCommand.js +3 -9
  15. package/dist-es/commands/DeleteCapacityReservationCommand.js +3 -9
  16. package/dist-es/commands/DeleteDataCatalogCommand.js +3 -9
  17. package/dist-es/commands/DeleteNamedQueryCommand.js +3 -9
  18. package/dist-es/commands/DeleteNotebookCommand.js +3 -9
  19. package/dist-es/commands/DeletePreparedStatementCommand.js +3 -9
  20. package/dist-es/commands/DeleteWorkGroupCommand.js +3 -9
  21. package/dist-es/commands/ExportNotebookCommand.js +3 -9
  22. package/dist-es/commands/GetCalculationExecutionCodeCommand.js +3 -9
  23. package/dist-es/commands/GetCalculationExecutionCommand.js +3 -9
  24. package/dist-es/commands/GetCalculationExecutionStatusCommand.js +3 -9
  25. package/dist-es/commands/GetCapacityAssignmentConfigurationCommand.js +3 -9
  26. package/dist-es/commands/GetCapacityReservationCommand.js +3 -9
  27. package/dist-es/commands/GetDataCatalogCommand.js +3 -9
  28. package/dist-es/commands/GetDatabaseCommand.js +3 -9
  29. package/dist-es/commands/GetNamedQueryCommand.js +3 -9
  30. package/dist-es/commands/GetNotebookMetadataCommand.js +3 -9
  31. package/dist-es/commands/GetPreparedStatementCommand.js +3 -9
  32. package/dist-es/commands/GetQueryExecutionCommand.js +3 -9
  33. package/dist-es/commands/GetQueryResultsCommand.js +3 -9
  34. package/dist-es/commands/GetQueryRuntimeStatisticsCommand.js +3 -9
  35. package/dist-es/commands/GetSessionCommand.js +3 -9
  36. package/dist-es/commands/GetSessionStatusCommand.js +3 -9
  37. package/dist-es/commands/GetTableMetadataCommand.js +3 -9
  38. package/dist-es/commands/GetWorkGroupCommand.js +3 -9
  39. package/dist-es/commands/ImportNotebookCommand.js +3 -9
  40. package/dist-es/commands/ListApplicationDPUSizesCommand.js +3 -9
  41. package/dist-es/commands/ListCalculationExecutionsCommand.js +3 -9
  42. package/dist-es/commands/ListCapacityReservationsCommand.js +3 -9
  43. package/dist-es/commands/ListDataCatalogsCommand.js +3 -9
  44. package/dist-es/commands/ListDatabasesCommand.js +3 -9
  45. package/dist-es/commands/ListEngineVersionsCommand.js +3 -9
  46. package/dist-es/commands/ListExecutorsCommand.js +3 -9
  47. package/dist-es/commands/ListNamedQueriesCommand.js +3 -9
  48. package/dist-es/commands/ListNotebookMetadataCommand.js +3 -9
  49. package/dist-es/commands/ListNotebookSessionsCommand.js +3 -9
  50. package/dist-es/commands/ListPreparedStatementsCommand.js +3 -9
  51. package/dist-es/commands/ListQueryExecutionsCommand.js +3 -9
  52. package/dist-es/commands/ListSessionsCommand.js +3 -9
  53. package/dist-es/commands/ListTableMetadataCommand.js +3 -9
  54. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  55. package/dist-es/commands/ListWorkGroupsCommand.js +3 -9
  56. package/dist-es/commands/PutCapacityAssignmentConfigurationCommand.js +3 -9
  57. package/dist-es/commands/StartCalculationExecutionCommand.js +3 -9
  58. package/dist-es/commands/StartQueryExecutionCommand.js +3 -9
  59. package/dist-es/commands/StartSessionCommand.js +3 -9
  60. package/dist-es/commands/StopCalculationExecutionCommand.js +3 -9
  61. package/dist-es/commands/StopQueryExecutionCommand.js +3 -9
  62. package/dist-es/commands/TagResourceCommand.js +3 -9
  63. package/dist-es/commands/TerminateSessionCommand.js +3 -9
  64. package/dist-es/commands/UntagResourceCommand.js +3 -9
  65. package/dist-es/commands/UpdateCapacityReservationCommand.js +3 -9
  66. package/dist-es/commands/UpdateDataCatalogCommand.js +3 -9
  67. package/dist-es/commands/UpdateNamedQueryCommand.js +3 -9
  68. package/dist-es/commands/UpdateNotebookCommand.js +3 -9
  69. package/dist-es/commands/UpdateNotebookMetadataCommand.js +3 -9
  70. package/dist-es/commands/UpdatePreparedStatementCommand.js +3 -9
  71. package/dist-es/commands/UpdateWorkGroupCommand.js +3 -9
  72. package/dist-es/runtimeConfig.shared.js +7 -0
  73. package/dist-es/schemas/schemas_0.js +1754 -0
  74. package/dist-types/AthenaClient.d.ts +10 -1
  75. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  76. package/dist-types/runtimeConfig.d.ts +1 -0
  77. package/dist-types/runtimeConfig.native.d.ts +1 -0
  78. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  79. package/dist-types/schemas/schemas_0.d.ts +313 -0
  80. package/dist-types/ts3.4/AthenaClient.d.ts +4 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  85. package/dist-types/ts3.4/schemas/schemas_0.d.ts +318 -0
  86. package/package.json +5 -6
  87. package/dist-es/protocols/Aws_json1_1.js +0 -1852
  88. package/dist-types/protocols/Aws_json1_1.d.ts +0 -614
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -821
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListPreparedStatementsCommand, se_ListPreparedStatementsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListPreparedStatements } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListPreparedStatementsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListPreparedStatements", {})
17
13
  .n("AthenaClient", "ListPreparedStatementsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListPreparedStatementsCommand)
20
- .de(de_ListPreparedStatementsCommand)
14
+ .sc(ListPreparedStatements)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListQueryExecutionsCommand, se_ListQueryExecutionsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListQueryExecutions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListQueryExecutionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListQueryExecutions", {})
17
13
  .n("AthenaClient", "ListQueryExecutionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListQueryExecutionsCommand)
20
- .de(de_ListQueryExecutionsCommand)
14
+ .sc(ListQueryExecutions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListSessionsCommand, se_ListSessionsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListSessions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListSessionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListSessions", {})
17
13
  .n("AthenaClient", "ListSessionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListSessionsCommand)
20
- .de(de_ListSessionsCommand)
14
+ .sc(ListSessions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTableMetadataCommand, se_ListTableMetadataCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTableMetadata } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTableMetadataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListTableMetadata", {})
17
13
  .n("AthenaClient", "ListTableMetadataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTableMetadataCommand)
20
- .de(de_ListTableMetadataCommand)
14
+ .sc(ListTableMetadata)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListTagsForResource", {})
17
13
  .n("AthenaClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListWorkGroupsCommand, se_ListWorkGroupsCommand } from "../protocols/Aws_json1_1";
4
+ import { ListWorkGroups } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListWorkGroupsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "ListWorkGroups", {})
17
13
  .n("AthenaClient", "ListWorkGroupsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListWorkGroupsCommand)
20
- .de(de_ListWorkGroupsCommand)
14
+ .sc(ListWorkGroups)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_PutCapacityAssignmentConfigurationCommand, se_PutCapacityAssignmentConfigurationCommand, } from "../protocols/Aws_json1_1";
4
+ import { PutCapacityAssignmentConfiguration } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class PutCapacityAssignmentConfigurationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "PutCapacityAssignmentConfiguration", {})
17
13
  .n("AthenaClient", "PutCapacityAssignmentConfigurationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_PutCapacityAssignmentConfigurationCommand)
20
- .de(de_PutCapacityAssignmentConfigurationCommand)
14
+ .sc(PutCapacityAssignmentConfiguration)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartCalculationExecutionCommand, se_StartCalculationExecutionCommand } from "../protocols/Aws_json1_1";
4
+ import { StartCalculationExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartCalculationExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "StartCalculationExecution", {})
17
13
  .n("AthenaClient", "StartCalculationExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartCalculationExecutionCommand)
20
- .de(de_StartCalculationExecutionCommand)
14
+ .sc(StartCalculationExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartQueryExecutionCommand, se_StartQueryExecutionCommand } from "../protocols/Aws_json1_1";
4
+ import { StartQueryExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartQueryExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "StartQueryExecution", {})
17
13
  .n("AthenaClient", "StartQueryExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartQueryExecutionCommand)
20
- .de(de_StartQueryExecutionCommand)
14
+ .sc(StartQueryExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartSessionCommand, se_StartSessionCommand } from "../protocols/Aws_json1_1";
4
+ import { StartSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartSessionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "StartSession", {})
17
13
  .n("AthenaClient", "StartSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartSessionCommand)
20
- .de(de_StartSessionCommand)
14
+ .sc(StartSession)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopCalculationExecutionCommand, se_StopCalculationExecutionCommand } from "../protocols/Aws_json1_1";
4
+ import { StopCalculationExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopCalculationExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "StopCalculationExecution", {})
17
13
  .n("AthenaClient", "StopCalculationExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopCalculationExecutionCommand)
20
- .de(de_StopCalculationExecutionCommand)
14
+ .sc(StopCalculationExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StopQueryExecutionCommand, se_StopQueryExecutionCommand } from "../protocols/Aws_json1_1";
4
+ import { StopQueryExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StopQueryExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "StopQueryExecution", {})
17
13
  .n("AthenaClient", "StopQueryExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StopQueryExecutionCommand)
20
- .de(de_StopQueryExecutionCommand)
14
+ .sc(StopQueryExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "TagResource", {})
17
13
  .n("AthenaClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TerminateSessionCommand, se_TerminateSessionCommand } from "../protocols/Aws_json1_1";
4
+ import { TerminateSession } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TerminateSessionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "TerminateSession", {})
17
13
  .n("AthenaClient", "TerminateSessionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TerminateSessionCommand)
20
- .de(de_TerminateSessionCommand)
14
+ .sc(TerminateSession)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UntagResource", {})
17
13
  .n("AthenaClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateCapacityReservationCommand, se_UpdateCapacityReservationCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateCapacityReservation } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateCapacityReservationCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateCapacityReservation", {})
17
13
  .n("AthenaClient", "UpdateCapacityReservationCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateCapacityReservationCommand)
20
- .de(de_UpdateCapacityReservationCommand)
14
+ .sc(UpdateCapacityReservation)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateDataCatalogCommand, se_UpdateDataCatalogCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateDataCatalog } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateDataCatalogCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateDataCatalog", {})
17
13
  .n("AthenaClient", "UpdateDataCatalogCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateDataCatalogCommand)
20
- .de(de_UpdateDataCatalogCommand)
14
+ .sc(UpdateDataCatalog)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateNamedQueryCommand, se_UpdateNamedQueryCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateNamedQuery } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateNamedQueryCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateNamedQuery", {})
17
13
  .n("AthenaClient", "UpdateNamedQueryCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateNamedQueryCommand)
20
- .de(de_UpdateNamedQueryCommand)
14
+ .sc(UpdateNamedQuery)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateNotebookCommand, se_UpdateNotebookCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateNotebook } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateNotebookCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateNotebook", {})
17
13
  .n("AthenaClient", "UpdateNotebookCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateNotebookCommand)
20
- .de(de_UpdateNotebookCommand)
14
+ .sc(UpdateNotebook)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateNotebookMetadataCommand, se_UpdateNotebookMetadataCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateNotebookMetadata } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateNotebookMetadataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateNotebookMetadata", {})
17
13
  .n("AthenaClient", "UpdateNotebookMetadataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateNotebookMetadataCommand)
20
- .de(de_UpdateNotebookMetadataCommand)
14
+ .sc(UpdateNotebookMetadata)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdatePreparedStatementCommand, se_UpdatePreparedStatementCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdatePreparedStatement } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdatePreparedStatementCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdatePreparedStatement", {})
17
13
  .n("AthenaClient", "UpdatePreparedStatementCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdatePreparedStatementCommand)
20
- .de(de_UpdatePreparedStatementCommand)
14
+ .sc(UpdatePreparedStatement)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateWorkGroupCommand, se_UpdateWorkGroupCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateWorkGroup } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateWorkGroupCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AmazonAthena", "UpdateWorkGroup", {})
17
13
  .n("AthenaClient", "UpdateWorkGroupCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateWorkGroupCommand)
20
- .de(de_UpdateWorkGroupCommand)
14
+ .sc(UpdateWorkGroup)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.athena",
29
+ serviceTarget: "AmazonAthena",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Athena",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,