@aws-sdk/client-athena 3.53.0 → 3.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
18
 
8
19
 
@@ -34,6 +34,7 @@ const StopQueryExecutionCommand_1 = require("./commands/StopQueryExecutionComman
34
34
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
35
35
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
36
36
  const UpdateDataCatalogCommand_1 = require("./commands/UpdateDataCatalogCommand");
37
+ const UpdateNamedQueryCommand_1 = require("./commands/UpdateNamedQueryCommand");
37
38
  const UpdatePreparedStatementCommand_1 = require("./commands/UpdatePreparedStatementCommand");
38
39
  const UpdateWorkGroupCommand_1 = require("./commands/UpdateWorkGroupCommand");
39
40
  class Athena extends AthenaClient_1.AthenaClient {
@@ -485,6 +486,20 @@ class Athena extends AthenaClient_1.AthenaClient {
485
486
  return this.send(command, optionsOrCb);
486
487
  }
487
488
  }
489
+ updateNamedQuery(args, optionsOrCb, cb) {
490
+ const command = new UpdateNamedQueryCommand_1.UpdateNamedQueryCommand(args);
491
+ if (typeof optionsOrCb === "function") {
492
+ this.send(command, optionsOrCb);
493
+ }
494
+ else if (typeof cb === "function") {
495
+ if (typeof optionsOrCb !== "object")
496
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
497
+ this.send(command, optionsOrCb || {}, cb);
498
+ }
499
+ else {
500
+ return this.send(command, optionsOrCb);
501
+ }
502
+ }
488
503
  updatePreparedStatement(args, optionsOrCb, cb) {
489
504
  const command = new UpdatePreparedStatementCommand_1.UpdatePreparedStatementCommand(args);
490
505
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateNamedQueryCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateNamedQueryCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AthenaClient";
18
+ const commandName = "UpdateNamedQueryCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateNamedQueryInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateNamedQueryOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1UpdateNamedQueryCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1UpdateNamedQueryCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateNamedQueryCommand = UpdateNamedQueryCommand;
@@ -33,5 +33,6 @@ tslib_1.__exportStar(require("./StopQueryExecutionCommand"), exports);
33
33
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
34
34
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
35
35
  tslib_1.__exportStar(require("./UpdateDataCatalogCommand"), exports);
36
+ tslib_1.__exportStar(require("./UpdateNamedQueryCommand"), exports);
36
37
  tslib_1.__exportStar(require("./UpdatePreparedStatementCommand"), exports);
37
38
  tslib_1.__exportStar(require("./UpdateWorkGroupCommand"), exports);
@@ -1,9 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPreparedStatementInput = exports.GetNamedQueryOutput = exports.GetNamedQueryInput = exports.GetDataCatalogOutput = exports.DataCatalog = exports.GetDataCatalogInput = exports.MetadataException = exports.GetDatabaseOutput = exports.Database = exports.GetDatabaseInput = exports.DeleteWorkGroupOutput = exports.DeleteWorkGroupInput = exports.ResourceNotFoundException = exports.DeletePreparedStatementOutput = exports.DeletePreparedStatementInput = exports.DeleteNamedQueryOutput = exports.DeleteNamedQueryInput = exports.DeleteDataCatalogOutput = exports.DeleteDataCatalogInput = exports.CreateWorkGroupOutput = exports.CreateWorkGroupInput = exports.WorkGroupConfiguration = exports.CreatePreparedStatementOutput = exports.CreatePreparedStatementInput = exports.CreateNamedQueryOutput = exports.CreateNamedQueryInput = exports.CreateDataCatalogOutput = exports.CreateDataCatalogInput = exports.DataCatalogType = exports.Tag = exports.BatchGetQueryExecutionOutput = exports.UnprocessedQueryExecutionId = exports.QueryExecution = exports.QueryExecutionStatus = exports.QueryExecutionState = exports.AthenaError = exports.QueryExecutionStatistics = exports.StatementType = exports.ResultConfiguration = exports.EncryptionConfiguration = exports.EncryptionOption = exports.QueryExecutionContext = exports.EngineVersion = exports.BatchGetQueryExecutionInput = exports.InvalidRequestException = exports.InternalServerException = exports.BatchGetNamedQueryOutput = exports.UnprocessedNamedQueryId = exports.NamedQuery = exports.BatchGetNamedQueryInput = void 0;
4
- exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopQueryExecutionOutput = exports.StopQueryExecutionInput = exports.TooManyRequestsException = exports.ThrottleReason = exports.StartQueryExecutionOutput = exports.StartQueryExecutionInput = exports.ListWorkGroupsOutput = exports.WorkGroupSummary = exports.ListWorkGroupsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.ListTableMetadataOutput = exports.ListTableMetadataInput = exports.ListQueryExecutionsOutput = exports.ListQueryExecutionsInput = exports.ListPreparedStatementsOutput = exports.PreparedStatementSummary = exports.ListPreparedStatementsInput = exports.ListNamedQueriesOutput = exports.ListNamedQueriesInput = exports.ListEngineVersionsOutput = exports.ListEngineVersionsInput = exports.ListDataCatalogsOutput = exports.DataCatalogSummary = exports.ListDataCatalogsInput = exports.ListDatabasesOutput = exports.ListDatabasesInput = exports.GetWorkGroupOutput = exports.WorkGroup = exports.WorkGroupState = exports.GetWorkGroupInput = exports.GetTableMetadataOutput = exports.TableMetadata = exports.Column = exports.GetTableMetadataInput = exports.GetQueryResultsOutput = exports.ResultSet = exports.Row = exports.Datum = exports.ResultSetMetadata = exports.ColumnInfo = exports.ColumnNullable = exports.GetQueryResultsInput = exports.GetQueryExecutionOutput = exports.GetQueryExecutionInput = exports.GetPreparedStatementOutput = exports.PreparedStatement = void 0;
5
- exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = exports.ResultConfigurationUpdates = exports.UpdatePreparedStatementOutput = exports.UpdatePreparedStatementInput = exports.UpdateDataCatalogOutput = exports.UpdateDataCatalogInput = exports.UntagResourceOutput = void 0;
3
+ exports.GetNamedQueryInput = exports.GetDataCatalogOutput = exports.DataCatalog = exports.GetDataCatalogInput = exports.MetadataException = exports.GetDatabaseOutput = exports.Database = exports.GetDatabaseInput = exports.DeleteWorkGroupOutput = exports.DeleteWorkGroupInput = exports.ResourceNotFoundException = exports.DeletePreparedStatementOutput = exports.DeletePreparedStatementInput = exports.DeleteNamedQueryOutput = exports.DeleteNamedQueryInput = exports.DeleteDataCatalogOutput = exports.DeleteDataCatalogInput = exports.CreateWorkGroupOutput = exports.CreateWorkGroupInput = exports.WorkGroupConfiguration = exports.CreatePreparedStatementOutput = exports.CreatePreparedStatementInput = exports.CreateNamedQueryOutput = exports.CreateNamedQueryInput = exports.CreateDataCatalogOutput = exports.CreateDataCatalogInput = exports.DataCatalogType = exports.Tag = exports.BatchGetQueryExecutionOutput = exports.UnprocessedQueryExecutionId = exports.QueryExecution = exports.QueryExecutionStatus = exports.QueryExecutionState = exports.AthenaError = exports.QueryExecutionStatistics = exports.StatementType = exports.ResultConfiguration = exports.EncryptionConfiguration = exports.EncryptionOption = exports.QueryExecutionContext = exports.EngineVersion = exports.BatchGetQueryExecutionInput = exports.InvalidRequestException = exports.InternalServerException = exports.BatchGetNamedQueryOutput = exports.UnprocessedNamedQueryId = exports.NamedQuery = exports.BatchGetNamedQueryInput = exports.AclConfiguration = exports.S3AclOption = void 0;
4
+ exports.TagResourceInput = exports.StopQueryExecutionOutput = exports.StopQueryExecutionInput = exports.TooManyRequestsException = exports.ThrottleReason = exports.StartQueryExecutionOutput = exports.StartQueryExecutionInput = exports.ListWorkGroupsOutput = exports.WorkGroupSummary = exports.ListWorkGroupsInput = exports.ListTagsForResourceOutput = exports.ListTagsForResourceInput = exports.ListTableMetadataOutput = exports.ListTableMetadataInput = exports.ListQueryExecutionsOutput = exports.ListQueryExecutionsInput = exports.ListPreparedStatementsOutput = exports.PreparedStatementSummary = exports.ListPreparedStatementsInput = exports.ListNamedQueriesOutput = exports.ListNamedQueriesInput = exports.ListEngineVersionsOutput = exports.ListEngineVersionsInput = exports.ListDataCatalogsOutput = exports.DataCatalogSummary = exports.ListDataCatalogsInput = exports.ListDatabasesOutput = exports.ListDatabasesInput = exports.GetWorkGroupOutput = exports.WorkGroup = exports.WorkGroupState = exports.GetWorkGroupInput = exports.GetTableMetadataOutput = exports.TableMetadata = exports.Column = exports.GetTableMetadataInput = exports.GetQueryResultsOutput = exports.ResultSet = exports.Row = exports.Datum = exports.ResultSetMetadata = exports.ColumnInfo = exports.ColumnNullable = exports.GetQueryResultsInput = exports.GetQueryExecutionOutput = exports.GetQueryExecutionInput = exports.GetPreparedStatementOutput = exports.PreparedStatement = exports.GetPreparedStatementInput = exports.GetNamedQueryOutput = void 0;
5
+ exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = exports.ResultConfigurationUpdates = exports.UpdatePreparedStatementOutput = exports.UpdatePreparedStatementInput = exports.UpdateNamedQueryOutput = exports.UpdateNamedQueryInput = exports.UpdateDataCatalogOutput = exports.UpdateDataCatalogInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = void 0;
6
6
  const AthenaServiceException_1 = require("./AthenaServiceException");
7
+ var S3AclOption;
8
+ (function (S3AclOption) {
9
+ S3AclOption["BUCKET_OWNER_FULL_CONTROL"] = "BUCKET_OWNER_FULL_CONTROL";
10
+ })(S3AclOption = exports.S3AclOption || (exports.S3AclOption = {}));
11
+ var AclConfiguration;
12
+ (function (AclConfiguration) {
13
+ AclConfiguration.filterSensitiveLog = (obj) => ({
14
+ ...obj,
15
+ });
16
+ })(AclConfiguration = exports.AclConfiguration || (exports.AclConfiguration = {}));
7
17
  var BatchGetNamedQueryInput;
8
18
  (function (BatchGetNamedQueryInput) {
9
19
  BatchGetNamedQueryInput.filterSensitiveLog = (obj) => ({
@@ -664,6 +674,18 @@ var UpdateDataCatalogOutput;
664
674
  ...obj,
665
675
  });
666
676
  })(UpdateDataCatalogOutput = exports.UpdateDataCatalogOutput || (exports.UpdateDataCatalogOutput = {}));
677
+ var UpdateNamedQueryInput;
678
+ (function (UpdateNamedQueryInput) {
679
+ UpdateNamedQueryInput.filterSensitiveLog = (obj) => ({
680
+ ...obj,
681
+ });
682
+ })(UpdateNamedQueryInput = exports.UpdateNamedQueryInput || (exports.UpdateNamedQueryInput = {}));
683
+ var UpdateNamedQueryOutput;
684
+ (function (UpdateNamedQueryOutput) {
685
+ UpdateNamedQueryOutput.filterSensitiveLog = (obj) => ({
686
+ ...obj,
687
+ });
688
+ })(UpdateNamedQueryOutput = exports.UpdateNamedQueryOutput || (exports.UpdateNamedQueryOutput = {}));
667
689
  var UpdatePreparedStatementInput;
668
690
  (function (UpdatePreparedStatementInput) {
669
691
  UpdatePreparedStatementInput.filterSensitiveLog = (obj) => ({
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetQueryExecutionCommand = exports.deserializeAws_json1_1GetPreparedStatementCommand = exports.deserializeAws_json1_1GetNamedQueryCommand = exports.deserializeAws_json1_1GetDataCatalogCommand = exports.deserializeAws_json1_1GetDatabaseCommand = exports.deserializeAws_json1_1DeleteWorkGroupCommand = exports.deserializeAws_json1_1DeletePreparedStatementCommand = exports.deserializeAws_json1_1DeleteNamedQueryCommand = exports.deserializeAws_json1_1DeleteDataCatalogCommand = exports.deserializeAws_json1_1CreateWorkGroupCommand = exports.deserializeAws_json1_1CreatePreparedStatementCommand = exports.deserializeAws_json1_1CreateNamedQueryCommand = exports.deserializeAws_json1_1CreateDataCatalogCommand = exports.deserializeAws_json1_1BatchGetQueryExecutionCommand = exports.deserializeAws_json1_1BatchGetNamedQueryCommand = exports.serializeAws_json1_1UpdateWorkGroupCommand = exports.serializeAws_json1_1UpdatePreparedStatementCommand = exports.serializeAws_json1_1UpdateDataCatalogCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopQueryExecutionCommand = exports.serializeAws_json1_1StartQueryExecutionCommand = exports.serializeAws_json1_1ListWorkGroupsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListTableMetadataCommand = exports.serializeAws_json1_1ListQueryExecutionsCommand = exports.serializeAws_json1_1ListPreparedStatementsCommand = exports.serializeAws_json1_1ListNamedQueriesCommand = exports.serializeAws_json1_1ListEngineVersionsCommand = exports.serializeAws_json1_1ListDataCatalogsCommand = exports.serializeAws_json1_1ListDatabasesCommand = exports.serializeAws_json1_1GetWorkGroupCommand = exports.serializeAws_json1_1GetTableMetadataCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetQueryExecutionCommand = exports.serializeAws_json1_1GetPreparedStatementCommand = exports.serializeAws_json1_1GetNamedQueryCommand = exports.serializeAws_json1_1GetDataCatalogCommand = exports.serializeAws_json1_1GetDatabaseCommand = exports.serializeAws_json1_1DeleteWorkGroupCommand = exports.serializeAws_json1_1DeletePreparedStatementCommand = exports.serializeAws_json1_1DeleteNamedQueryCommand = exports.serializeAws_json1_1DeleteDataCatalogCommand = exports.serializeAws_json1_1CreateWorkGroupCommand = exports.serializeAws_json1_1CreatePreparedStatementCommand = exports.serializeAws_json1_1CreateNamedQueryCommand = exports.serializeAws_json1_1CreateDataCatalogCommand = exports.serializeAws_json1_1BatchGetQueryExecutionCommand = exports.serializeAws_json1_1BatchGetNamedQueryCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateWorkGroupCommand = exports.deserializeAws_json1_1UpdatePreparedStatementCommand = exports.deserializeAws_json1_1UpdateDataCatalogCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopQueryExecutionCommand = exports.deserializeAws_json1_1StartQueryExecutionCommand = exports.deserializeAws_json1_1ListWorkGroupsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableMetadataCommand = exports.deserializeAws_json1_1ListQueryExecutionsCommand = exports.deserializeAws_json1_1ListPreparedStatementsCommand = exports.deserializeAws_json1_1ListNamedQueriesCommand = exports.deserializeAws_json1_1ListEngineVersionsCommand = exports.deserializeAws_json1_1ListDataCatalogsCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1GetWorkGroupCommand = exports.deserializeAws_json1_1GetTableMetadataCommand = void 0;
3
+ exports.deserializeAws_json1_1GetQueryExecutionCommand = exports.deserializeAws_json1_1GetPreparedStatementCommand = exports.deserializeAws_json1_1GetNamedQueryCommand = exports.deserializeAws_json1_1GetDataCatalogCommand = exports.deserializeAws_json1_1GetDatabaseCommand = exports.deserializeAws_json1_1DeleteWorkGroupCommand = exports.deserializeAws_json1_1DeletePreparedStatementCommand = exports.deserializeAws_json1_1DeleteNamedQueryCommand = exports.deserializeAws_json1_1DeleteDataCatalogCommand = exports.deserializeAws_json1_1CreateWorkGroupCommand = exports.deserializeAws_json1_1CreatePreparedStatementCommand = exports.deserializeAws_json1_1CreateNamedQueryCommand = exports.deserializeAws_json1_1CreateDataCatalogCommand = exports.deserializeAws_json1_1BatchGetQueryExecutionCommand = exports.deserializeAws_json1_1BatchGetNamedQueryCommand = exports.serializeAws_json1_1UpdateWorkGroupCommand = exports.serializeAws_json1_1UpdatePreparedStatementCommand = exports.serializeAws_json1_1UpdateNamedQueryCommand = exports.serializeAws_json1_1UpdateDataCatalogCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopQueryExecutionCommand = exports.serializeAws_json1_1StartQueryExecutionCommand = exports.serializeAws_json1_1ListWorkGroupsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListTableMetadataCommand = exports.serializeAws_json1_1ListQueryExecutionsCommand = exports.serializeAws_json1_1ListPreparedStatementsCommand = exports.serializeAws_json1_1ListNamedQueriesCommand = exports.serializeAws_json1_1ListEngineVersionsCommand = exports.serializeAws_json1_1ListDataCatalogsCommand = exports.serializeAws_json1_1ListDatabasesCommand = exports.serializeAws_json1_1GetWorkGroupCommand = exports.serializeAws_json1_1GetTableMetadataCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetQueryExecutionCommand = exports.serializeAws_json1_1GetPreparedStatementCommand = exports.serializeAws_json1_1GetNamedQueryCommand = exports.serializeAws_json1_1GetDataCatalogCommand = exports.serializeAws_json1_1GetDatabaseCommand = exports.serializeAws_json1_1DeleteWorkGroupCommand = exports.serializeAws_json1_1DeletePreparedStatementCommand = exports.serializeAws_json1_1DeleteNamedQueryCommand = exports.serializeAws_json1_1DeleteDataCatalogCommand = exports.serializeAws_json1_1CreateWorkGroupCommand = exports.serializeAws_json1_1CreatePreparedStatementCommand = exports.serializeAws_json1_1CreateNamedQueryCommand = exports.serializeAws_json1_1CreateDataCatalogCommand = exports.serializeAws_json1_1BatchGetQueryExecutionCommand = exports.serializeAws_json1_1BatchGetNamedQueryCommand = void 0;
4
+ exports.deserializeAws_json1_1UpdateWorkGroupCommand = exports.deserializeAws_json1_1UpdatePreparedStatementCommand = exports.deserializeAws_json1_1UpdateNamedQueryCommand = exports.deserializeAws_json1_1UpdateDataCatalogCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopQueryExecutionCommand = exports.deserializeAws_json1_1StartQueryExecutionCommand = exports.deserializeAws_json1_1ListWorkGroupsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableMetadataCommand = exports.deserializeAws_json1_1ListQueryExecutionsCommand = exports.deserializeAws_json1_1ListPreparedStatementsCommand = exports.deserializeAws_json1_1ListNamedQueriesCommand = exports.deserializeAws_json1_1ListEngineVersionsCommand = exports.deserializeAws_json1_1ListDataCatalogsCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1GetWorkGroupCommand = exports.deserializeAws_json1_1GetTableMetadataCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -327,6 +327,16 @@ const serializeAws_json1_1UpdateDataCatalogCommand = async (input, context) => {
327
327
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
328
  };
329
329
  exports.serializeAws_json1_1UpdateDataCatalogCommand = serializeAws_json1_1UpdateDataCatalogCommand;
330
+ const serializeAws_json1_1UpdateNamedQueryCommand = async (input, context) => {
331
+ const headers = {
332
+ "content-type": "application/x-amz-json-1.1",
333
+ "x-amz-target": "AmazonAthena.UpdateNamedQuery",
334
+ };
335
+ let body;
336
+ body = JSON.stringify(serializeAws_json1_1UpdateNamedQueryInput(input, context));
337
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
338
+ };
339
+ exports.serializeAws_json1_1UpdateNamedQueryCommand = serializeAws_json1_1UpdateNamedQueryCommand;
330
340
  const serializeAws_json1_1UpdatePreparedStatementCommand = async (input, context) => {
331
341
  const headers = {
332
342
  "content-type": "application/x-amz-json-1.1",
@@ -1625,6 +1635,45 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
1625
1635
  throw smithy_client_1.decorateServiceException(response, parsedBody);
1626
1636
  }
1627
1637
  };
1638
+ const deserializeAws_json1_1UpdateNamedQueryCommand = async (output, context) => {
1639
+ if (output.statusCode >= 300) {
1640
+ return deserializeAws_json1_1UpdateNamedQueryCommandError(output, context);
1641
+ }
1642
+ const data = await parseBody(output.body, context);
1643
+ let contents = {};
1644
+ contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
1645
+ const response = {
1646
+ $metadata: deserializeMetadata(output),
1647
+ ...contents,
1648
+ };
1649
+ return Promise.resolve(response);
1650
+ };
1651
+ exports.deserializeAws_json1_1UpdateNamedQueryCommand = deserializeAws_json1_1UpdateNamedQueryCommand;
1652
+ const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, context) => {
1653
+ const parsedOutput = {
1654
+ ...output,
1655
+ body: await parseBody(output.body, context),
1656
+ };
1657
+ let response;
1658
+ let errorCode = "UnknownError";
1659
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1660
+ switch (errorCode) {
1661
+ case "InternalServerException":
1662
+ case "com.amazonaws.athena#InternalServerException":
1663
+ throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
1664
+ case "InvalidRequestException":
1665
+ case "com.amazonaws.athena#InvalidRequestException":
1666
+ throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
1667
+ default:
1668
+ const parsedBody = parsedOutput.body;
1669
+ response = new AthenaServiceException_1.AthenaServiceException({
1670
+ name: parsedBody.code || parsedBody.Code || errorCode,
1671
+ $fault: "client",
1672
+ $metadata: deserializeMetadata(output),
1673
+ });
1674
+ throw smithy_client_1.decorateServiceException(response, parsedBody);
1675
+ }
1676
+ };
1628
1677
  const deserializeAws_json1_1UpdatePreparedStatementCommand = async (output, context) => {
1629
1678
  if (output.statusCode >= 300) {
1630
1679
  return deserializeAws_json1_1UpdatePreparedStatementCommandError(output, context);
@@ -1751,6 +1800,11 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
1751
1800
  });
1752
1801
  return smithy_client_1.decorateServiceException(exception, body);
1753
1802
  };
1803
+ const serializeAws_json1_1AclConfiguration = (input, context) => {
1804
+ return {
1805
+ ...(input.S3AclOption !== undefined && input.S3AclOption !== null && { S3AclOption: input.S3AclOption }),
1806
+ };
1807
+ };
1754
1808
  const serializeAws_json1_1BatchGetNamedQueryInput = (input, context) => {
1755
1809
  return {
1756
1810
  ...(input.NamedQueryIds !== undefined &&
@@ -1996,6 +2050,10 @@ const serializeAws_json1_1QueryExecutionIdList = (input, context) => {
1996
2050
  };
1997
2051
  const serializeAws_json1_1ResultConfiguration = (input, context) => {
1998
2052
  return {
2053
+ ...(input.AclConfiguration !== undefined &&
2054
+ input.AclConfiguration !== null && {
2055
+ AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
2056
+ }),
1999
2057
  ...(input.EncryptionConfiguration !== undefined &&
2000
2058
  input.EncryptionConfiguration !== null && {
2001
2059
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
@@ -2008,6 +2066,10 @@ const serializeAws_json1_1ResultConfiguration = (input, context) => {
2008
2066
  };
2009
2067
  const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
2010
2068
  return {
2069
+ ...(input.AclConfiguration !== undefined &&
2070
+ input.AclConfiguration !== null && {
2071
+ AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
2072
+ }),
2011
2073
  ...(input.EncryptionConfiguration !== undefined &&
2012
2074
  input.EncryptionConfiguration !== null && {
2013
2075
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
@@ -2016,6 +2078,8 @@ const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
2016
2078
  input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
2017
2079
  ...(input.OutputLocation !== undefined &&
2018
2080
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation }),
2081
+ ...(input.RemoveAclConfiguration !== undefined &&
2082
+ input.RemoveAclConfiguration !== null && { RemoveAclConfiguration: input.RemoveAclConfiguration }),
2019
2083
  ...(input.RemoveEncryptionConfiguration !== undefined &&
2020
2084
  input.RemoveEncryptionConfiguration !== null && {
2021
2085
  RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
@@ -2096,6 +2160,14 @@ const serializeAws_json1_1UpdateDataCatalogInput = (input, context) => {
2096
2160
  ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
2097
2161
  };
2098
2162
  };
2163
+ const serializeAws_json1_1UpdateNamedQueryInput = (input, context) => {
2164
+ return {
2165
+ ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
2166
+ ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
2167
+ ...(input.NamedQueryId !== undefined && input.NamedQueryId !== null && { NamedQueryId: input.NamedQueryId }),
2168
+ ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
2169
+ };
2170
+ };
2099
2171
  const serializeAws_json1_1UpdatePreparedStatementInput = (input, context) => {
2100
2172
  return {
2101
2173
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
@@ -2168,6 +2240,11 @@ const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
2168
2240
  }),
2169
2241
  };
2170
2242
  };
2243
+ const deserializeAws_json1_1AclConfiguration = (output, context) => {
2244
+ return {
2245
+ S3AclOption: smithy_client_1.expectString(output.S3AclOption),
2246
+ };
2247
+ };
2171
2248
  const deserializeAws_json1_1AthenaError = (output, context) => {
2172
2249
  return {
2173
2250
  ErrorCategory: smithy_client_1.expectInt32(output.ErrorCategory),
@@ -2653,6 +2730,9 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
2653
2730
  };
2654
2731
  const deserializeAws_json1_1ResultConfiguration = (output, context) => {
2655
2732
  return {
2733
+ AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
2734
+ ? deserializeAws_json1_1AclConfiguration(output.AclConfiguration, context)
2735
+ : undefined,
2656
2736
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
2657
2737
  ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
2658
2738
  : undefined,
@@ -2803,6 +2883,9 @@ const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
2803
2883
  const deserializeAws_json1_1UpdateDataCatalogOutput = (output, context) => {
2804
2884
  return {};
2805
2885
  };
2886
+ const deserializeAws_json1_1UpdateNamedQueryOutput = (output, context) => {
2887
+ return {};
2888
+ };
2806
2889
  const deserializeAws_json1_1UpdatePreparedStatementOutput = (output, context) => {
2807
2890
  return {};
2808
2891
  };
package/dist-es/Athena.js CHANGED
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommand, } from "./commands/StopQueryExecutionCommand
32
32
  import { TagResourceCommand } from "./commands/TagResourceCommand";
33
33
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommand, } from "./commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommand, } from "./commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommand, } from "./commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommand, } from "./commands/UpdateWorkGroupCommand";
37
38
  var Athena = (function (_super) {
@@ -487,6 +488,20 @@ var Athena = (function (_super) {
487
488
  return this.send(command, optionsOrCb);
488
489
  }
489
490
  };
491
+ Athena.prototype.updateNamedQuery = function (args, optionsOrCb, cb) {
492
+ var command = new UpdateNamedQueryCommand(args);
493
+ if (typeof optionsOrCb === "function") {
494
+ this.send(command, optionsOrCb);
495
+ }
496
+ else if (typeof cb === "function") {
497
+ if (typeof optionsOrCb !== "object")
498
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
499
+ this.send(command, optionsOrCb || {}, cb);
500
+ }
501
+ else {
502
+ return this.send(command, optionsOrCb);
503
+ }
504
+ };
490
505
  Athena.prototype.updatePreparedStatement = function (args, optionsOrCb, cb) {
491
506
  var command = new UpdatePreparedStatementCommand(args);
492
507
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateNamedQueryCommand, serializeAws_json1_1UpdateNamedQueryCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateNamedQueryCommand = (function (_super) {
7
+ __extends(UpdateNamedQueryCommand, _super);
8
+ function UpdateNamedQueryCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateNamedQueryCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ 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 = "UpdateNamedQueryCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateNamedQueryInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateNamedQueryOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateNamedQueryCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateNamedQueryCommand(input, context);
33
+ };
34
+ UpdateNamedQueryCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateNamedQueryCommand(output, context);
36
+ };
37
+ return UpdateNamedQueryCommand;
38
+ }($Command));
39
+ export { UpdateNamedQueryCommand };
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
30
30
  export * from "./TagResourceCommand";
31
31
  export * from "./UntagResourceCommand";
32
32
  export * from "./UpdateDataCatalogCommand";
33
+ export * from "./UpdateNamedQueryCommand";
33
34
  export * from "./UpdatePreparedStatementCommand";
34
35
  export * from "./UpdateWorkGroupCommand";
@@ -1,5 +1,13 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ export var S3AclOption;
4
+ (function (S3AclOption) {
5
+ S3AclOption["BUCKET_OWNER_FULL_CONTROL"] = "BUCKET_OWNER_FULL_CONTROL";
6
+ })(S3AclOption || (S3AclOption = {}));
7
+ export var AclConfiguration;
8
+ (function (AclConfiguration) {
9
+ AclConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(AclConfiguration || (AclConfiguration = {}));
3
11
  export var BatchGetNamedQueryInput;
4
12
  (function (BatchGetNamedQueryInput) {
5
13
  BatchGetNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -473,6 +481,14 @@ export var UpdateDataCatalogOutput;
473
481
  (function (UpdateDataCatalogOutput) {
474
482
  UpdateDataCatalogOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
475
483
  })(UpdateDataCatalogOutput || (UpdateDataCatalogOutput = {}));
484
+ export var UpdateNamedQueryInput;
485
+ (function (UpdateNamedQueryInput) {
486
+ UpdateNamedQueryInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
487
+ })(UpdateNamedQueryInput || (UpdateNamedQueryInput = {}));
488
+ export var UpdateNamedQueryOutput;
489
+ (function (UpdateNamedQueryOutput) {
490
+ UpdateNamedQueryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
491
+ })(UpdateNamedQueryOutput || (UpdateNamedQueryOutput = {}));
476
492
  export var UpdatePreparedStatementInput;
477
493
  (function (UpdatePreparedStatementInput) {
478
494
  UpdatePreparedStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -356,6 +356,17 @@ export var serializeAws_json1_1UpdateDataCatalogCommand = function (input, conte
356
356
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
357
357
  });
358
358
  }); };
359
+ export var serializeAws_json1_1UpdateNamedQueryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
360
+ var headers, body;
361
+ return __generator(this, function (_a) {
362
+ headers = {
363
+ "content-type": "application/x-amz-json-1.1",
364
+ "x-amz-target": "AmazonAthena.UpdateNamedQuery",
365
+ };
366
+ body = JSON.stringify(serializeAws_json1_1UpdateNamedQueryInput(input, context));
367
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
368
+ });
369
+ }); };
359
370
  export var serializeAws_json1_1UpdatePreparedStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
360
371
  var headers, body;
361
372
  return __generator(this, function (_a) {
@@ -2146,6 +2157,60 @@ var deserializeAws_json1_1UpdateDataCatalogCommandError = function (output, cont
2146
2157
  }
2147
2158
  });
2148
2159
  }); };
2160
+ export var deserializeAws_json1_1UpdateNamedQueryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2161
+ var data, contents, response;
2162
+ return __generator(this, function (_a) {
2163
+ switch (_a.label) {
2164
+ case 0:
2165
+ if (output.statusCode >= 300) {
2166
+ return [2, deserializeAws_json1_1UpdateNamedQueryCommandError(output, context)];
2167
+ }
2168
+ return [4, parseBody(output.body, context)];
2169
+ case 1:
2170
+ data = _a.sent();
2171
+ contents = {};
2172
+ contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
2173
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
2174
+ return [2, Promise.resolve(response)];
2175
+ }
2176
+ });
2177
+ }); };
2178
+ var deserializeAws_json1_1UpdateNamedQueryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2179
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
2180
+ var _c;
2181
+ return __generator(this, function (_d) {
2182
+ switch (_d.label) {
2183
+ case 0:
2184
+ _a = [__assign({}, output)];
2185
+ _c = {};
2186
+ return [4, parseBody(output.body, context)];
2187
+ case 1:
2188
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
2189
+ errorCode = "UnknownError";
2190
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2191
+ _b = errorCode;
2192
+ switch (_b) {
2193
+ case "InternalServerException": return [3, 2];
2194
+ case "com.amazonaws.athena#InternalServerException": return [3, 2];
2195
+ case "InvalidRequestException": return [3, 4];
2196
+ case "com.amazonaws.athena#InvalidRequestException": return [3, 4];
2197
+ }
2198
+ return [3, 6];
2199
+ case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
2200
+ case 3: throw _d.sent();
2201
+ case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
2202
+ case 5: throw _d.sent();
2203
+ case 6:
2204
+ parsedBody = parsedOutput.body;
2205
+ response = new __BaseException({
2206
+ name: parsedBody.code || parsedBody.Code || errorCode,
2207
+ $fault: "client",
2208
+ $metadata: deserializeMetadata(output),
2209
+ });
2210
+ throw __decorateServiceException(response, parsedBody);
2211
+ }
2212
+ });
2213
+ }); };
2149
2214
  export var deserializeAws_json1_1UpdatePreparedStatementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2150
2215
  var data, contents, response;
2151
2216
  return __generator(this, function (_a) {
@@ -2303,6 +2368,9 @@ var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOut
2303
2368
  return [2, __decorateServiceException(exception, body)];
2304
2369
  });
2305
2370
  }); };
2371
+ var serializeAws_json1_1AclConfiguration = function (input, context) {
2372
+ return __assign({}, (input.S3AclOption !== undefined && input.S3AclOption !== null && { S3AclOption: input.S3AclOption }));
2373
+ };
2306
2374
  var serializeAws_json1_1BatchGetNamedQueryInput = function (input, context) {
2307
2375
  return __assign({}, (input.NamedQueryIds !== undefined &&
2308
2376
  input.NamedQueryIds !== null && {
@@ -2445,7 +2513,10 @@ var serializeAws_json1_1QueryExecutionIdList = function (input, context) {
2445
2513
  });
2446
2514
  };
2447
2515
  var serializeAws_json1_1ResultConfiguration = function (input, context) {
2448
- return __assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2516
+ return __assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
2517
+ input.AclConfiguration !== null && {
2518
+ AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
2519
+ })), (input.EncryptionConfiguration !== undefined &&
2449
2520
  input.EncryptionConfiguration !== null && {
2450
2521
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2451
2522
  })), (input.ExpectedBucketOwner !== undefined &&
@@ -2453,12 +2524,16 @@ var serializeAws_json1_1ResultConfiguration = function (input, context) {
2453
2524
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation }));
2454
2525
  };
2455
2526
  var serializeAws_json1_1ResultConfigurationUpdates = function (input, context) {
2456
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2527
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AclConfiguration !== undefined &&
2528
+ input.AclConfiguration !== null && {
2529
+ AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
2530
+ })), (input.EncryptionConfiguration !== undefined &&
2457
2531
  input.EncryptionConfiguration !== null && {
2458
2532
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2459
2533
  })), (input.ExpectedBucketOwner !== undefined &&
2460
2534
  input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner })), (input.OutputLocation !== undefined &&
2461
- input.OutputLocation !== null && { OutputLocation: input.OutputLocation })), (input.RemoveEncryptionConfiguration !== undefined &&
2535
+ input.OutputLocation !== null && { OutputLocation: input.OutputLocation })), (input.RemoveAclConfiguration !== undefined &&
2536
+ input.RemoveAclConfiguration !== null && { RemoveAclConfiguration: input.RemoveAclConfiguration })), (input.RemoveEncryptionConfiguration !== undefined &&
2462
2537
  input.RemoveEncryptionConfiguration !== null && {
2463
2538
  RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
2464
2539
  })), (input.RemoveExpectedBucketOwner !== undefined &&
@@ -2515,6 +2590,9 @@ var serializeAws_json1_1UpdateDataCatalogInput = function (input, context) {
2515
2590
  return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Parameters !== undefined &&
2516
2591
  input.Parameters !== null && { Parameters: serializeAws_json1_1ParametersMap(input.Parameters, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
2517
2592
  };
2593
+ var serializeAws_json1_1UpdateNamedQueryInput = function (input, context) {
2594
+ return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NamedQueryId !== undefined && input.NamedQueryId !== null && { NamedQueryId: input.NamedQueryId })), (input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }));
2595
+ };
2518
2596
  var serializeAws_json1_1UpdatePreparedStatementInput = function (input, context) {
2519
2597
  return __assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.QueryStatement !== undefined &&
2520
2598
  input.QueryStatement !== null && { QueryStatement: input.QueryStatement })), (input.StatementName !== undefined && input.StatementName !== null && { StatementName: input.StatementName })), (input.WorkGroup !== undefined && input.WorkGroup !== null && { WorkGroup: input.WorkGroup }));
@@ -2562,6 +2640,11 @@ var serializeAws_json1_1WorkGroupConfigurationUpdates = function (input, context
2562
2640
  ResultConfigurationUpdates: serializeAws_json1_1ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
2563
2641
  }));
2564
2642
  };
2643
+ var deserializeAws_json1_1AclConfiguration = function (output, context) {
2644
+ return {
2645
+ S3AclOption: __expectString(output.S3AclOption),
2646
+ };
2647
+ };
2565
2648
  var deserializeAws_json1_1AthenaError = function (output, context) {
2566
2649
  return {
2567
2650
  ErrorCategory: __expectInt32(output.ErrorCategory),
@@ -3046,6 +3129,9 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
3046
3129
  };
3047
3130
  var deserializeAws_json1_1ResultConfiguration = function (output, context) {
3048
3131
  return {
3132
+ AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
3133
+ ? deserializeAws_json1_1AclConfiguration(output.AclConfiguration, context)
3134
+ : undefined,
3049
3135
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
3050
3136
  ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
3051
3137
  : undefined,
@@ -3196,6 +3282,9 @@ var deserializeAws_json1_1UntagResourceOutput = function (output, context) {
3196
3282
  var deserializeAws_json1_1UpdateDataCatalogOutput = function (output, context) {
3197
3283
  return {};
3198
3284
  };
3285
+ var deserializeAws_json1_1UpdateNamedQueryOutput = function (output, context) {
3286
+ return {};
3287
+ };
3199
3288
  var deserializeAws_json1_1UpdatePreparedStatementOutput = function (output, context) {
3200
3289
  return {};
3201
3290
  };
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
37
38
  /**
@@ -317,6 +318,12 @@ export declare class Athena extends AthenaClient {
317
318
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDataCatalogCommandOutput>;
318
319
  updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
319
320
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
321
+ /**
322
+ * <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated.</p>
323
+ */
324
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamedQueryCommandOutput>;
325
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
326
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
320
327
  /**
321
328
  * <p>Updates a prepared statement.</p>
322
329
  */
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
10
10
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
11
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
@@ -38,10 +38,11 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
38
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
40
40
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
41
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
41
42
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
42
43
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
43
- export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
44
- export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
44
+ export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
45
+ export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
45
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
46
47
  /**
47
48
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -62,7 +63,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
62
63
  * A function that can calculate the length of a request body.
63
64
  * @internal
64
65
  */
65
- bodyLengthChecker?: (body: any) => number | undefined;
66
+ bodyLengthChecker?: __BodyLengthCalculator;
66
67
  /**
67
68
  * A function that converts a stream into an array of bytes.
68
69
  * @internal
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
4
+ import { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
5
+ export interface UpdateNamedQueryCommandInput extends UpdateNamedQueryInput {
6
+ }
7
+ export interface UpdateNamedQueryCommandOutput extends UpdateNamedQueryOutput, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be updated.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { AthenaClient, UpdateNamedQueryCommand } from "@aws-sdk/client-athena"; // ES Modules import
15
+ * // const { AthenaClient, UpdateNamedQueryCommand } = require("@aws-sdk/client-athena"); // CommonJS import
16
+ * const client = new AthenaClient(config);
17
+ * const command = new UpdateNamedQueryCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link UpdateNamedQueryCommandInput} for command's `input` shape.
22
+ * @see {@link UpdateNamedQueryCommandOutput} for command's `response` shape.
23
+ * @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class UpdateNamedQueryCommand extends $Command<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput, AthenaClientResolvedConfig> {
27
+ readonly input: UpdateNamedQueryCommandInput;
28
+ constructor(input: UpdateNamedQueryCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
30
30
  export * from "./TagResourceCommand";
31
31
  export * from "./UntagResourceCommand";
32
32
  export * from "./UpdateDataCatalogCommand";
33
+ export * from "./UpdateNamedQueryCommand";
33
34
  export * from "./UpdatePreparedStatementCommand";
34
35
  export * from "./UpdateWorkGroupCommand";
@@ -1,5 +1,33 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ export declare enum S3AclOption {
4
+ BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL"
5
+ }
6
+ /**
7
+ * <p>Indicates that an Amazon S3 canned ACL should be set to control ownership of
8
+ * stored query results. When Athena stores query results in Amazon S3,
9
+ * the canned ACL is set with the <code>x-amz-acl</code> request header. For more
10
+ * information about S3 Object Ownership, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html#object-ownership-overview">Object Ownership settings</a> in the <i>Amazon S3 User
11
+ * Guide</i>.</p>
12
+ */
13
+ export interface AclConfiguration {
14
+ /**
15
+ * <p>The Amazon S3 canned ACL that Athena should specify when storing
16
+ * query results. Currently the only supported canned ACL is
17
+ * <code>BUCKET_OWNER_FULL_CONTROL</code>. If a query runs in a workgroup and the
18
+ * workgroup overrides client-side settings, then the Amazon S3 canned ACL
19
+ * specified in the workgroup's settings is used for all queries that run in the workgroup.
20
+ * For more information about Amazon S3 canned ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl">Canned ACL</a> in the <i>Amazon S3 User
21
+ * Guide</i>.</p>
22
+ */
23
+ S3AclOption: S3AclOption | string | undefined;
24
+ }
25
+ export declare namespace AclConfiguration {
26
+ /**
27
+ * @internal
28
+ */
29
+ const filterSensitiveLog: (obj: AclConfiguration) => any;
30
+ }
3
31
  export interface BatchGetNamedQueryInput {
4
32
  /**
5
33
  * <p>An array of query IDs.</p>
@@ -13,8 +41,8 @@ export declare namespace BatchGetNamedQueryInput {
13
41
  const filterSensitiveLog: (obj: BatchGetNamedQueryInput) => any;
14
42
  }
15
43
  /**
16
- * <p>A query, where <code>QueryString</code> is the list of SQL query statements that
17
- * comprise the query.</p>
44
+ * <p>A query, where <code>QueryString</code> contains the SQL statements that
45
+ * make up the query.</p>
18
46
  */
19
47
  export interface NamedQuery {
20
48
  /**
@@ -30,7 +58,7 @@ export interface NamedQuery {
30
58
  */
31
59
  Database: string | undefined;
32
60
  /**
33
- * <p>The SQL query statements that comprise the query.</p>
61
+ * <p>The SQL statements that make up the query.</p>
34
62
  */
35
63
  QueryString: string | undefined;
36
64
  /**
@@ -248,6 +276,15 @@ export interface ResultConfiguration {
248
276
  * and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
249
277
  */
250
278
  ExpectedBucketOwner?: string;
279
+ /**
280
+ * <p>Indicates that an Amazon S3 canned ACL should be set to control ownership of
281
+ * stored query results. Currently the only supported canned ACL is
282
+ * <code>BUCKET_OWNER_FULL_CONTROL</code>. This is a client-side setting. If workgroup
283
+ * settings override client-side settings, then the query uses the ACL configuration that
284
+ * is specified for the workgroup, and also uses the location for storing query results
285
+ * specified in the workgroup. For more information, see <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a> and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
286
+ */
287
+ AclConfiguration?: AclConfiguration;
251
288
  }
252
289
  export declare namespace ResultConfiguration {
253
290
  /**
@@ -317,7 +354,7 @@ export declare namespace QueryExecutionStatistics {
317
354
  * <code>AthenaError</code> feature provides standardized error information to help you
318
355
  * understand failed queries and take steps after a query failure occurs.
319
356
  * <code>AthenaError</code> includes an <code>ErrorCategory</code> field that specifies
320
- * whether the cause of the failed query is due to system error, user error, or unknown
357
+ * whether the cause of the failed query is due to system error, user error, or other
321
358
  * error.</p>
322
359
  */
323
360
  export interface AthenaError {
@@ -329,7 +366,7 @@ export interface AthenaError {
329
366
  * <p>
330
367
  * <b>2</b> - User</p>
331
368
  * <p>
332
- * <b>3</b> - Unknown</p>
369
+ * <b>3</b> - Other</p>
333
370
  */
334
371
  ErrorCategory?: number;
335
372
  /**
@@ -1331,7 +1368,7 @@ export declare namespace Datum {
1331
1368
  const filterSensitiveLog: (obj: Datum) => any;
1332
1369
  }
1333
1370
  /**
1334
- * <p>The rows that comprise a query result table.</p>
1371
+ * <p>The rows that make up a query result table.</p>
1335
1372
  */
1336
1373
  export interface Row {
1337
1374
  /**
@@ -1346,7 +1383,7 @@ export declare namespace Row {
1346
1383
  const filterSensitiveLog: (obj: Row) => any;
1347
1384
  }
1348
1385
  /**
1349
- * <p>The metadata and rows that comprise a query result set. The metadata describes the
1386
+ * <p>The metadata and rows that make up a query result set. The metadata describes the
1350
1387
  * column structure and data types. To return a <code>ResultSet</code> object, use <a>GetQueryResults</a>.</p>
1351
1388
  */
1352
1389
  export interface ResultSet {
@@ -2211,6 +2248,38 @@ export declare namespace UpdateDataCatalogOutput {
2211
2248
  */
2212
2249
  const filterSensitiveLog: (obj: UpdateDataCatalogOutput) => any;
2213
2250
  }
2251
+ export interface UpdateNamedQueryInput {
2252
+ /**
2253
+ * <p>The unique identifier (UUID) of the query.</p>
2254
+ */
2255
+ NamedQueryId: string | undefined;
2256
+ /**
2257
+ * <p>The name of the query.</p>
2258
+ */
2259
+ Name: string | undefined;
2260
+ /**
2261
+ * <p>The query description.</p>
2262
+ */
2263
+ Description?: string;
2264
+ /**
2265
+ * <p>The contents of the query with all query statements.</p>
2266
+ */
2267
+ QueryString: string | undefined;
2268
+ }
2269
+ export declare namespace UpdateNamedQueryInput {
2270
+ /**
2271
+ * @internal
2272
+ */
2273
+ const filterSensitiveLog: (obj: UpdateNamedQueryInput) => any;
2274
+ }
2275
+ export interface UpdateNamedQueryOutput {
2276
+ }
2277
+ export declare namespace UpdateNamedQueryOutput {
2278
+ /**
2279
+ * @internal
2280
+ */
2281
+ const filterSensitiveLog: (obj: UpdateNamedQueryOutput) => any;
2282
+ }
2214
2283
  export interface UpdatePreparedStatementInput {
2215
2284
  /**
2216
2285
  * <p>The name of the prepared statement.</p>
@@ -2307,6 +2376,20 @@ export interface ResultConfigurationUpdates {
2307
2376
  * Client-Side Settings</a>.</p>
2308
2377
  */
2309
2378
  RemoveExpectedBucketOwner?: boolean;
2379
+ /**
2380
+ * <p>The ACL configuration for the query results.</p>
2381
+ */
2382
+ AclConfiguration?: AclConfiguration;
2383
+ /**
2384
+ * <p>If set to <code>true</code>, indicates that the previously-specified ACL configuration
2385
+ * for queries in this workgroup should be ignored and set to null. If set to
2386
+ * <code>false</code> or not set, and a value is present in the
2387
+ * <code>AclConfiguration</code> of <code>ResultConfigurationUpdates</code>, the
2388
+ * <code>AclConfiguration</code> in the workgroup's <code>ResultConfiguration</code> is
2389
+ * updated with the new value. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2390
+ * Client-Side Settings</a>.</p>
2391
+ */
2392
+ RemoveAclConfiguration?: boolean;
2310
2393
  }
2311
2394
  export declare namespace ResultConfigurationUpdates {
2312
2395
  /**
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "../commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
37
38
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -66,6 +67,7 @@ export declare const serializeAws_json1_1StopQueryExecutionCommand: (input: Stop
66
67
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
68
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
69
  export declare const serializeAws_json1_1UpdateDataCatalogCommand: (input: UpdateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
+ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: UpdateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
71
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
72
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
@@ -100,5 +102,6 @@ export declare const deserializeAws_json1_1StopQueryExecutionCommand: (output: _
100
102
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
101
103
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
102
104
  export declare const deserializeAws_json1_1UpdateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDataCatalogCommandOutput>;
105
+ export declare const deserializeAws_json1_1UpdateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateNamedQueryCommandOutput>;
103
106
  export declare const deserializeAws_json1_1UpdatePreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreparedStatementCommandOutput>;
104
107
  export declare const deserializeAws_json1_1UpdateWorkGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkGroupCommandOutput>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
37
38
 
@@ -165,6 +166,10 @@ export declare class Athena extends AthenaClient {
165
166
  updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
166
167
  updateDataCatalog(args: UpdateDataCatalogCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
167
168
 
169
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamedQueryCommandOutput>;
170
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
171
+ updateNamedQuery(args: UpdateNamedQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
172
+
168
173
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreparedStatementCommandOutput>;
169
174
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, cb: (err: any, data?: UpdatePreparedStatementCommandOutput) => void): void;
170
175
  updatePreparedStatement(args: UpdatePreparedStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreparedStatementCommandOutput) => void): void;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchGetNamedQueryCommandInput, BatchGetNamedQueryCommandOutput } from "./commands/BatchGetNamedQueryCommand";
10
10
  import { BatchGetQueryExecutionCommandInput, BatchGetQueryExecutionCommandOutput } from "./commands/BatchGetQueryExecutionCommand";
11
11
  import { CreateDataCatalogCommandInput, CreateDataCatalogCommandOutput } from "./commands/CreateDataCatalogCommand";
@@ -38,10 +38,11 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
38
38
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
40
40
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "./commands/UpdateDataCatalogCommand";
41
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "./commands/UpdateNamedQueryCommand";
41
42
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "./commands/UpdatePreparedStatementCommand";
42
43
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "./commands/UpdateWorkGroupCommand";
43
- export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
44
- export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
44
+ export declare type ServiceInputTypes = BatchGetNamedQueryCommandInput | BatchGetQueryExecutionCommandInput | CreateDataCatalogCommandInput | CreateNamedQueryCommandInput | CreatePreparedStatementCommandInput | CreateWorkGroupCommandInput | DeleteDataCatalogCommandInput | DeleteNamedQueryCommandInput | DeletePreparedStatementCommandInput | DeleteWorkGroupCommandInput | GetDataCatalogCommandInput | GetDatabaseCommandInput | GetNamedQueryCommandInput | GetPreparedStatementCommandInput | GetQueryExecutionCommandInput | GetQueryResultsCommandInput | GetTableMetadataCommandInput | GetWorkGroupCommandInput | ListDataCatalogsCommandInput | ListDatabasesCommandInput | ListEngineVersionsCommandInput | ListNamedQueriesCommandInput | ListPreparedStatementsCommandInput | ListQueryExecutionsCommandInput | ListTableMetadataCommandInput | ListTagsForResourceCommandInput | ListWorkGroupsCommandInput | StartQueryExecutionCommandInput | StopQueryExecutionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataCatalogCommandInput | UpdateNamedQueryCommandInput | UpdatePreparedStatementCommandInput | UpdateWorkGroupCommandInput;
45
+ export declare type ServiceOutputTypes = BatchGetNamedQueryCommandOutput | BatchGetQueryExecutionCommandOutput | CreateDataCatalogCommandOutput | CreateNamedQueryCommandOutput | CreatePreparedStatementCommandOutput | CreateWorkGroupCommandOutput | DeleteDataCatalogCommandOutput | DeleteNamedQueryCommandOutput | DeletePreparedStatementCommandOutput | DeleteWorkGroupCommandOutput | GetDataCatalogCommandOutput | GetDatabaseCommandOutput | GetNamedQueryCommandOutput | GetPreparedStatementCommandOutput | GetQueryExecutionCommandOutput | GetQueryResultsCommandOutput | GetTableMetadataCommandOutput | GetWorkGroupCommandOutput | ListDataCatalogsCommandOutput | ListDatabasesCommandOutput | ListEngineVersionsCommandOutput | ListNamedQueriesCommandOutput | ListPreparedStatementsCommandOutput | ListQueryExecutionsCommandOutput | ListTableMetadataCommandOutput | ListTagsForResourceCommandOutput | ListWorkGroupsCommandOutput | StartQueryExecutionCommandOutput | StopQueryExecutionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataCatalogCommandOutput | UpdateNamedQueryCommandOutput | UpdatePreparedStatementCommandOutput | UpdateWorkGroupCommandOutput;
45
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
46
47
 
47
48
  requestHandler?: __HttpHandler;
@@ -50,7 +51,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
50
51
 
51
52
  urlParser?: __UrlParser;
52
53
 
53
- bodyLengthChecker?: (body: any) => number | undefined;
54
+ bodyLengthChecker?: __BodyLengthCalculator;
54
55
 
55
56
  streamCollector?: __StreamCollector;
56
57
 
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
4
+ import { UpdateNamedQueryInput, UpdateNamedQueryOutput } from "../models/models_0";
5
+ export interface UpdateNamedQueryCommandInput extends UpdateNamedQueryInput {
6
+ }
7
+ export interface UpdateNamedQueryCommandOutput extends UpdateNamedQueryOutput, __MetadataBearer {
8
+ }
9
+
10
+ export declare class UpdateNamedQueryCommand extends $Command<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput, AthenaClientResolvedConfig> {
11
+ readonly input: UpdateNamedQueryCommandInput;
12
+ constructor(input: UpdateNamedQueryCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -30,5 +30,6 @@ export * from "./StopQueryExecutionCommand";
30
30
  export * from "./TagResourceCommand";
31
31
  export * from "./UntagResourceCommand";
32
32
  export * from "./UpdateDataCatalogCommand";
33
+ export * from "./UpdateNamedQueryCommand";
33
34
  export * from "./UpdatePreparedStatementCommand";
34
35
  export * from "./UpdateWorkGroupCommand";
@@ -1,5 +1,17 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ export declare enum S3AclOption {
4
+ BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL"
5
+ }
6
+
7
+ export interface AclConfiguration {
8
+
9
+ S3AclOption: S3AclOption | string | undefined;
10
+ }
11
+ export declare namespace AclConfiguration {
12
+
13
+ const filterSensitiveLog: (obj: AclConfiguration) => any;
14
+ }
3
15
  export interface BatchGetNamedQueryInput {
4
16
 
5
17
  NamedQueryIds: string[] | undefined;
@@ -122,6 +134,8 @@ export interface ResultConfiguration {
122
134
  EncryptionConfiguration?: EncryptionConfiguration;
123
135
 
124
136
  ExpectedBucketOwner?: string;
137
+
138
+ AclConfiguration?: AclConfiguration;
125
139
  }
126
140
  export declare namespace ResultConfiguration {
127
141
 
@@ -1098,6 +1112,26 @@ export declare namespace UpdateDataCatalogOutput {
1098
1112
 
1099
1113
  const filterSensitiveLog: (obj: UpdateDataCatalogOutput) => any;
1100
1114
  }
1115
+ export interface UpdateNamedQueryInput {
1116
+
1117
+ NamedQueryId: string | undefined;
1118
+
1119
+ Name: string | undefined;
1120
+
1121
+ Description?: string;
1122
+
1123
+ QueryString: string | undefined;
1124
+ }
1125
+ export declare namespace UpdateNamedQueryInput {
1126
+
1127
+ const filterSensitiveLog: (obj: UpdateNamedQueryInput) => any;
1128
+ }
1129
+ export interface UpdateNamedQueryOutput {
1130
+ }
1131
+ export declare namespace UpdateNamedQueryOutput {
1132
+
1133
+ const filterSensitiveLog: (obj: UpdateNamedQueryOutput) => any;
1134
+ }
1101
1135
  export interface UpdatePreparedStatementInput {
1102
1136
 
1103
1137
  StatementName: string | undefined;
@@ -1132,6 +1166,10 @@ export interface ResultConfigurationUpdates {
1132
1166
  ExpectedBucketOwner?: string;
1133
1167
 
1134
1168
  RemoveExpectedBucketOwner?: boolean;
1169
+
1170
+ AclConfiguration?: AclConfiguration;
1171
+
1172
+ RemoveAclConfiguration?: boolean;
1135
1173
  }
1136
1174
  export declare namespace ResultConfigurationUpdates {
1137
1175
 
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "../commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
37
38
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -66,6 +67,7 @@ export declare const serializeAws_json1_1StopQueryExecutionCommand: (input: Stop
66
67
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
68
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
69
  export declare const serializeAws_json1_1UpdateDataCatalogCommand: (input: UpdateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
+ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: UpdateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
71
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
72
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
@@ -100,5 +102,6 @@ export declare const deserializeAws_json1_1StopQueryExecutionCommand: (output: _
100
102
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
101
103
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
102
104
  export declare const deserializeAws_json1_1UpdateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDataCatalogCommandOutput>;
105
+ export declare const deserializeAws_json1_1UpdateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateNamedQueryCommandOutput>;
103
106
  export declare const deserializeAws_json1_1UpdatePreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreparedStatementCommandOutput>;
104
107
  export declare const deserializeAws_json1_1UpdateWorkGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkGroupCommandOutput>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-athena",
3
3
  "description": "AWS SDK for JavaScript Athena Client for Node.js, Browser and React Native",
4
- "version": "3.53.0",
4
+ "version": "3.54.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",