@aws-sdk/client-athena 3.53.0 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/Athena.js +15 -0
  3. package/dist-cjs/AthenaClient.js +13 -13
  4. package/dist-cjs/commands/BatchGetNamedQueryCommand.js +3 -3
  5. package/dist-cjs/commands/BatchGetQueryExecutionCommand.js +3 -3
  6. package/dist-cjs/commands/CreateDataCatalogCommand.js +3 -3
  7. package/dist-cjs/commands/CreateNamedQueryCommand.js +3 -3
  8. package/dist-cjs/commands/CreatePreparedStatementCommand.js +3 -3
  9. package/dist-cjs/commands/CreateWorkGroupCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteDataCatalogCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteNamedQueryCommand.js +3 -3
  12. package/dist-cjs/commands/DeletePreparedStatementCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteWorkGroupCommand.js +3 -3
  14. package/dist-cjs/commands/GetDataCatalogCommand.js +3 -3
  15. package/dist-cjs/commands/GetDatabaseCommand.js +3 -3
  16. package/dist-cjs/commands/GetNamedQueryCommand.js +3 -3
  17. package/dist-cjs/commands/GetPreparedStatementCommand.js +3 -3
  18. package/dist-cjs/commands/GetQueryExecutionCommand.js +3 -3
  19. package/dist-cjs/commands/GetQueryResultsCommand.js +3 -3
  20. package/dist-cjs/commands/GetTableMetadataCommand.js +3 -3
  21. package/dist-cjs/commands/GetWorkGroupCommand.js +3 -3
  22. package/dist-cjs/commands/ListDataCatalogsCommand.js +3 -3
  23. package/dist-cjs/commands/ListDatabasesCommand.js +3 -3
  24. package/dist-cjs/commands/ListEngineVersionsCommand.js +3 -3
  25. package/dist-cjs/commands/ListNamedQueriesCommand.js +3 -3
  26. package/dist-cjs/commands/ListPreparedStatementsCommand.js +3 -3
  27. package/dist-cjs/commands/ListQueryExecutionsCommand.js +3 -3
  28. package/dist-cjs/commands/ListTableMetadataCommand.js +3 -3
  29. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  30. package/dist-cjs/commands/ListWorkGroupsCommand.js +3 -3
  31. package/dist-cjs/commands/StartQueryExecutionCommand.js +3 -3
  32. package/dist-cjs/commands/StopQueryExecutionCommand.js +3 -3
  33. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  34. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  35. package/dist-cjs/commands/UpdateDataCatalogCommand.js +3 -3
  36. package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
  37. package/dist-cjs/commands/UpdatePreparedStatementCommand.js +3 -3
  38. package/dist-cjs/commands/UpdateWorkGroupCommand.js +3 -3
  39. package/dist-cjs/commands/index.js +1 -0
  40. package/dist-cjs/endpoints.js +1 -1
  41. package/dist-cjs/models/models_0.js +25 -3
  42. package/dist-cjs/protocols/Aws_json1_1.js +235 -152
  43. package/dist-cjs/runtimeConfig.browser.js +4 -4
  44. package/dist-cjs/runtimeConfig.js +9 -9
  45. package/dist-cjs/runtimeConfig.native.js +1 -1
  46. package/dist-es/Athena.js +49 -34
  47. package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
  48. package/dist-es/commands/index.js +1 -0
  49. package/dist-es/models/models_0.js +16 -0
  50. package/dist-es/pagination/GetQueryResultsPaginator.js +4 -4
  51. package/dist-es/pagination/ListDataCatalogsPaginator.js +4 -4
  52. package/dist-es/pagination/ListDatabasesPaginator.js +4 -4
  53. package/dist-es/pagination/ListNamedQueriesPaginator.js +4 -4
  54. package/dist-es/pagination/ListPreparedStatementsPaginator.js +4 -4
  55. package/dist-es/pagination/ListQueryExecutionsPaginator.js +4 -4
  56. package/dist-es/pagination/ListTableMetadataPaginator.js +4 -4
  57. package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
  58. package/dist-es/pagination/ListWorkGroupsPaginator.js +4 -4
  59. package/dist-es/protocols/Aws_json1_1.js +92 -3
  60. package/dist-types/Athena.d.ts +7 -0
  61. package/dist-types/AthenaClient.d.ts +5 -4
  62. package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
  63. package/dist-types/commands/index.d.ts +1 -0
  64. package/dist-types/models/models_0.d.ts +90 -7
  65. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  66. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  67. package/dist-types/runtimeConfig.d.ts +1 -1
  68. package/dist-types/runtimeConfig.native.d.ts +3 -3
  69. package/dist-types/ts3.4/Athena.d.ts +5 -0
  70. package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
  71. package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  73. package/dist-types/ts3.4/models/models_0.d.ts +38 -0
  74. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  75. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  76. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  77. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  78. package/package.json +34 -34
@@ -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",
@@ -383,7 +393,7 @@ const deserializeAws_json1_1BatchGetNamedQueryCommandError = async (output, cont
383
393
  $fault: "client",
384
394
  $metadata: deserializeMetadata(output),
385
395
  });
386
- throw smithy_client_1.decorateServiceException(response, parsedBody);
396
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
387
397
  }
388
398
  };
389
399
  const deserializeAws_json1_1BatchGetQueryExecutionCommand = async (output, context) => {
@@ -422,7 +432,7 @@ const deserializeAws_json1_1BatchGetQueryExecutionCommandError = async (output,
422
432
  $fault: "client",
423
433
  $metadata: deserializeMetadata(output),
424
434
  });
425
- throw smithy_client_1.decorateServiceException(response, parsedBody);
435
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
426
436
  }
427
437
  };
428
438
  const deserializeAws_json1_1CreateDataCatalogCommand = async (output, context) => {
@@ -461,7 +471,7 @@ const deserializeAws_json1_1CreateDataCatalogCommandError = async (output, conte
461
471
  $fault: "client",
462
472
  $metadata: deserializeMetadata(output),
463
473
  });
464
- throw smithy_client_1.decorateServiceException(response, parsedBody);
474
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
465
475
  }
466
476
  };
467
477
  const deserializeAws_json1_1CreateNamedQueryCommand = async (output, context) => {
@@ -500,7 +510,7 @@ const deserializeAws_json1_1CreateNamedQueryCommandError = async (output, contex
500
510
  $fault: "client",
501
511
  $metadata: deserializeMetadata(output),
502
512
  });
503
- throw smithy_client_1.decorateServiceException(response, parsedBody);
513
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
504
514
  }
505
515
  };
506
516
  const deserializeAws_json1_1CreatePreparedStatementCommand = async (output, context) => {
@@ -539,7 +549,7 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
539
549
  $fault: "client",
540
550
  $metadata: deserializeMetadata(output),
541
551
  });
542
- throw smithy_client_1.decorateServiceException(response, parsedBody);
552
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
543
553
  }
544
554
  };
545
555
  const deserializeAws_json1_1CreateWorkGroupCommand = async (output, context) => {
@@ -578,7 +588,7 @@ const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context
578
588
  $fault: "client",
579
589
  $metadata: deserializeMetadata(output),
580
590
  });
581
- throw smithy_client_1.decorateServiceException(response, parsedBody);
591
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
582
592
  }
583
593
  };
584
594
  const deserializeAws_json1_1DeleteDataCatalogCommand = async (output, context) => {
@@ -617,7 +627,7 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
617
627
  $fault: "client",
618
628
  $metadata: deserializeMetadata(output),
619
629
  });
620
- throw smithy_client_1.decorateServiceException(response, parsedBody);
630
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
621
631
  }
622
632
  };
623
633
  const deserializeAws_json1_1DeleteNamedQueryCommand = async (output, context) => {
@@ -656,7 +666,7 @@ const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, contex
656
666
  $fault: "client",
657
667
  $metadata: deserializeMetadata(output),
658
668
  });
659
- throw smithy_client_1.decorateServiceException(response, parsedBody);
669
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
660
670
  }
661
671
  };
662
672
  const deserializeAws_json1_1DeletePreparedStatementCommand = async (output, context) => {
@@ -698,7 +708,7 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
698
708
  $fault: "client",
699
709
  $metadata: deserializeMetadata(output),
700
710
  });
701
- throw smithy_client_1.decorateServiceException(response, parsedBody);
711
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
702
712
  }
703
713
  };
704
714
  const deserializeAws_json1_1DeleteWorkGroupCommand = async (output, context) => {
@@ -737,7 +747,7 @@ const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context
737
747
  $fault: "client",
738
748
  $metadata: deserializeMetadata(output),
739
749
  });
740
- throw smithy_client_1.decorateServiceException(response, parsedBody);
750
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
741
751
  }
742
752
  };
743
753
  const deserializeAws_json1_1GetDatabaseCommand = async (output, context) => {
@@ -779,7 +789,7 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
779
789
  $fault: "client",
780
790
  $metadata: deserializeMetadata(output),
781
791
  });
782
- throw smithy_client_1.decorateServiceException(response, parsedBody);
792
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
783
793
  }
784
794
  };
785
795
  const deserializeAws_json1_1GetDataCatalogCommand = async (output, context) => {
@@ -818,7 +828,7 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
818
828
  $fault: "client",
819
829
  $metadata: deserializeMetadata(output),
820
830
  });
821
- throw smithy_client_1.decorateServiceException(response, parsedBody);
831
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
822
832
  }
823
833
  };
824
834
  const deserializeAws_json1_1GetNamedQueryCommand = async (output, context) => {
@@ -857,7 +867,7 @@ const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context)
857
867
  $fault: "client",
858
868
  $metadata: deserializeMetadata(output),
859
869
  });
860
- throw smithy_client_1.decorateServiceException(response, parsedBody);
870
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
861
871
  }
862
872
  };
863
873
  const deserializeAws_json1_1GetPreparedStatementCommand = async (output, context) => {
@@ -899,7 +909,7 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
899
909
  $fault: "client",
900
910
  $metadata: deserializeMetadata(output),
901
911
  });
902
- throw smithy_client_1.decorateServiceException(response, parsedBody);
912
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
903
913
  }
904
914
  };
905
915
  const deserializeAws_json1_1GetQueryExecutionCommand = async (output, context) => {
@@ -938,7 +948,7 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
938
948
  $fault: "client",
939
949
  $metadata: deserializeMetadata(output),
940
950
  });
941
- throw smithy_client_1.decorateServiceException(response, parsedBody);
951
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
942
952
  }
943
953
  };
944
954
  const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
@@ -977,7 +987,7 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
977
987
  $fault: "client",
978
988
  $metadata: deserializeMetadata(output),
979
989
  });
980
- throw smithy_client_1.decorateServiceException(response, parsedBody);
990
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
981
991
  }
982
992
  };
983
993
  const deserializeAws_json1_1GetTableMetadataCommand = async (output, context) => {
@@ -1019,7 +1029,7 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
1019
1029
  $fault: "client",
1020
1030
  $metadata: deserializeMetadata(output),
1021
1031
  });
1022
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1032
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1023
1033
  }
1024
1034
  };
1025
1035
  const deserializeAws_json1_1GetWorkGroupCommand = async (output, context) => {
@@ -1058,7 +1068,7 @@ const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) =
1058
1068
  $fault: "client",
1059
1069
  $metadata: deserializeMetadata(output),
1060
1070
  });
1061
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1071
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1062
1072
  }
1063
1073
  };
1064
1074
  const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
@@ -1100,7 +1110,7 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
1100
1110
  $fault: "client",
1101
1111
  $metadata: deserializeMetadata(output),
1102
1112
  });
1103
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1113
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1104
1114
  }
1105
1115
  };
1106
1116
  const deserializeAws_json1_1ListDataCatalogsCommand = async (output, context) => {
@@ -1139,7 +1149,7 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
1139
1149
  $fault: "client",
1140
1150
  $metadata: deserializeMetadata(output),
1141
1151
  });
1142
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1152
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1143
1153
  }
1144
1154
  };
1145
1155
  const deserializeAws_json1_1ListEngineVersionsCommand = async (output, context) => {
@@ -1178,7 +1188,7 @@ const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, cont
1178
1188
  $fault: "client",
1179
1189
  $metadata: deserializeMetadata(output),
1180
1190
  });
1181
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1191
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1182
1192
  }
1183
1193
  };
1184
1194
  const deserializeAws_json1_1ListNamedQueriesCommand = async (output, context) => {
@@ -1217,7 +1227,7 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
1217
1227
  $fault: "client",
1218
1228
  $metadata: deserializeMetadata(output),
1219
1229
  });
1220
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1230
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1221
1231
  }
1222
1232
  };
1223
1233
  const deserializeAws_json1_1ListPreparedStatementsCommand = async (output, context) => {
@@ -1256,7 +1266,7 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
1256
1266
  $fault: "client",
1257
1267
  $metadata: deserializeMetadata(output),
1258
1268
  });
1259
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1269
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1260
1270
  }
1261
1271
  };
1262
1272
  const deserializeAws_json1_1ListQueryExecutionsCommand = async (output, context) => {
@@ -1295,7 +1305,7 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
1295
1305
  $fault: "client",
1296
1306
  $metadata: deserializeMetadata(output),
1297
1307
  });
1298
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1308
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1299
1309
  }
1300
1310
  };
1301
1311
  const deserializeAws_json1_1ListTableMetadataCommand = async (output, context) => {
@@ -1337,7 +1347,7 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
1337
1347
  $fault: "client",
1338
1348
  $metadata: deserializeMetadata(output),
1339
1349
  });
1340
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1350
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1341
1351
  }
1342
1352
  };
1343
1353
  const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
@@ -1379,7 +1389,7 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
1379
1389
  $fault: "client",
1380
1390
  $metadata: deserializeMetadata(output),
1381
1391
  });
1382
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1392
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1383
1393
  }
1384
1394
  };
1385
1395
  const deserializeAws_json1_1ListWorkGroupsCommand = async (output, context) => {
@@ -1418,7 +1428,7 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
1418
1428
  $fault: "client",
1419
1429
  $metadata: deserializeMetadata(output),
1420
1430
  });
1421
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1431
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1422
1432
  }
1423
1433
  };
1424
1434
  const deserializeAws_json1_1StartQueryExecutionCommand = async (output, context) => {
@@ -1460,7 +1470,7 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
1460
1470
  $fault: "client",
1461
1471
  $metadata: deserializeMetadata(output),
1462
1472
  });
1463
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1473
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1464
1474
  }
1465
1475
  };
1466
1476
  const deserializeAws_json1_1StopQueryExecutionCommand = async (output, context) => {
@@ -1499,7 +1509,7 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
1499
1509
  $fault: "client",
1500
1510
  $metadata: deserializeMetadata(output),
1501
1511
  });
1502
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1512
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1503
1513
  }
1504
1514
  };
1505
1515
  const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
@@ -1541,7 +1551,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
1541
1551
  $fault: "client",
1542
1552
  $metadata: deserializeMetadata(output),
1543
1553
  });
1544
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1554
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1545
1555
  }
1546
1556
  };
1547
1557
  const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
@@ -1583,7 +1593,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
1583
1593
  $fault: "client",
1584
1594
  $metadata: deserializeMetadata(output),
1585
1595
  });
1586
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1596
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1587
1597
  }
1588
1598
  };
1589
1599
  const deserializeAws_json1_1UpdateDataCatalogCommand = async (output, context) => {
@@ -1622,7 +1632,46 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
1622
1632
  $fault: "client",
1623
1633
  $metadata: deserializeMetadata(output),
1624
1634
  });
1625
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1635
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1636
+ }
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 (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1626
1675
  }
1627
1676
  };
1628
1677
  const deserializeAws_json1_1UpdatePreparedStatementCommand = async (output, context) => {
@@ -1664,7 +1713,7 @@ const deserializeAws_json1_1UpdatePreparedStatementCommandError = async (output,
1664
1713
  $fault: "client",
1665
1714
  $metadata: deserializeMetadata(output),
1666
1715
  });
1667
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1716
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1668
1717
  }
1669
1718
  };
1670
1719
  const deserializeAws_json1_1UpdateWorkGroupCommand = async (output, context) => {
@@ -1703,7 +1752,7 @@ const deserializeAws_json1_1UpdateWorkGroupCommandError = async (output, context
1703
1752
  $fault: "client",
1704
1753
  $metadata: deserializeMetadata(output),
1705
1754
  });
1706
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1755
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1707
1756
  }
1708
1757
  };
1709
1758
  const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
@@ -1713,7 +1762,7 @@ const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutpu
1713
1762
  $metadata: deserializeMetadata(parsedOutput),
1714
1763
  ...deserialized,
1715
1764
  });
1716
- return smithy_client_1.decorateServiceException(exception, body);
1765
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1717
1766
  };
1718
1767
  const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
1719
1768
  const body = parsedOutput.body;
@@ -1722,7 +1771,7 @@ const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutpu
1722
1771
  $metadata: deserializeMetadata(parsedOutput),
1723
1772
  ...deserialized,
1724
1773
  });
1725
- return smithy_client_1.decorateServiceException(exception, body);
1774
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1726
1775
  };
1727
1776
  const deserializeAws_json1_1MetadataExceptionResponse = async (parsedOutput, context) => {
1728
1777
  const body = parsedOutput.body;
@@ -1731,7 +1780,7 @@ const deserializeAws_json1_1MetadataExceptionResponse = async (parsedOutput, con
1731
1780
  $metadata: deserializeMetadata(parsedOutput),
1732
1781
  ...deserialized,
1733
1782
  });
1734
- return smithy_client_1.decorateServiceException(exception, body);
1783
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1735
1784
  };
1736
1785
  const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1737
1786
  const body = parsedOutput.body;
@@ -1740,7 +1789,7 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
1740
1789
  $metadata: deserializeMetadata(parsedOutput),
1741
1790
  ...deserialized,
1742
1791
  });
1743
- return smithy_client_1.decorateServiceException(exception, body);
1792
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1744
1793
  };
1745
1794
  const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1746
1795
  const body = parsedOutput.body;
@@ -1749,7 +1798,12 @@ const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutp
1749
1798
  $metadata: deserializeMetadata(parsedOutput),
1750
1799
  ...deserialized,
1751
1800
  });
1752
- return smithy_client_1.decorateServiceException(exception, body);
1801
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
1802
+ };
1803
+ const serializeAws_json1_1AclConfiguration = (input, context) => {
1804
+ return {
1805
+ ...(input.S3AclOption !== undefined && input.S3AclOption !== null && { S3AclOption: input.S3AclOption }),
1806
+ };
1753
1807
  };
1754
1808
  const serializeAws_json1_1BatchGetNamedQueryInput = (input, context) => {
1755
1809
  return {
@@ -1780,7 +1834,7 @@ const serializeAws_json1_1CreateDataCatalogInput = (input, context) => {
1780
1834
  const serializeAws_json1_1CreateNamedQueryInput = (input, context) => {
1781
1835
  var _a;
1782
1836
  return {
1783
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1837
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1784
1838
  ...(input.Database !== undefined && input.Database !== null && { Database: input.Database }),
1785
1839
  ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1786
1840
  ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
@@ -1816,7 +1870,7 @@ const serializeAws_json1_1DeleteDataCatalogInput = (input, context) => {
1816
1870
  const serializeAws_json1_1DeleteNamedQueryInput = (input, context) => {
1817
1871
  var _a;
1818
1872
  return {
1819
- NamedQueryId: (_a = input.NamedQueryId) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1873
+ NamedQueryId: (_a = input.NamedQueryId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1820
1874
  };
1821
1875
  };
1822
1876
  const serializeAws_json1_1DeletePreparedStatementInput = (input, context) => {
@@ -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,
@@ -2029,7 +2093,7 @@ const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
2029
2093
  const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
2030
2094
  var _a;
2031
2095
  return {
2032
- ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
2096
+ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2033
2097
  ...(input.QueryExecutionContext !== undefined &&
2034
2098
  input.QueryExecutionContext !== null && {
2035
2099
  QueryExecutionContext: serializeAws_json1_1QueryExecutionContext(input.QueryExecutionContext, context),
@@ -2045,7 +2109,7 @@ const serializeAws_json1_1StartQueryExecutionInput = (input, context) => {
2045
2109
  const serializeAws_json1_1StopQueryExecutionInput = (input, context) => {
2046
2110
  var _a;
2047
2111
  return {
2048
- QueryExecutionId: (_a = input.QueryExecutionId) !== null && _a !== void 0 ? _a : uuid_1.v4(),
2112
+ QueryExecutionId: (_a = input.QueryExecutionId) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
2049
2113
  };
2050
2114
  };
2051
2115
  const serializeAws_json1_1Tag = (input, context) => {
@@ -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,10 +2240,15 @@ const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
2168
2240
  }),
2169
2241
  };
2170
2242
  };
2243
+ const deserializeAws_json1_1AclConfiguration = (output, context) => {
2244
+ return {
2245
+ S3AclOption: (0, smithy_client_1.expectString)(output.S3AclOption),
2246
+ };
2247
+ };
2171
2248
  const deserializeAws_json1_1AthenaError = (output, context) => {
2172
2249
  return {
2173
- ErrorCategory: smithy_client_1.expectInt32(output.ErrorCategory),
2174
- ErrorType: smithy_client_1.expectInt32(output.ErrorType),
2250
+ ErrorCategory: (0, smithy_client_1.expectInt32)(output.ErrorCategory),
2251
+ ErrorType: (0, smithy_client_1.expectInt32)(output.ErrorType),
2175
2252
  };
2176
2253
  };
2177
2254
  const deserializeAws_json1_1BatchGetNamedQueryOutput = (output, context) => {
@@ -2196,23 +2273,23 @@ const deserializeAws_json1_1BatchGetQueryExecutionOutput = (output, context) =>
2196
2273
  };
2197
2274
  const deserializeAws_json1_1Column = (output, context) => {
2198
2275
  return {
2199
- Comment: smithy_client_1.expectString(output.Comment),
2200
- Name: smithy_client_1.expectString(output.Name),
2201
- Type: smithy_client_1.expectString(output.Type),
2276
+ Comment: (0, smithy_client_1.expectString)(output.Comment),
2277
+ Name: (0, smithy_client_1.expectString)(output.Name),
2278
+ Type: (0, smithy_client_1.expectString)(output.Type),
2202
2279
  };
2203
2280
  };
2204
2281
  const deserializeAws_json1_1ColumnInfo = (output, context) => {
2205
2282
  return {
2206
- CaseSensitive: smithy_client_1.expectBoolean(output.CaseSensitive),
2207
- CatalogName: smithy_client_1.expectString(output.CatalogName),
2208
- Label: smithy_client_1.expectString(output.Label),
2209
- Name: smithy_client_1.expectString(output.Name),
2210
- Nullable: smithy_client_1.expectString(output.Nullable),
2211
- Precision: smithy_client_1.expectInt32(output.Precision),
2212
- Scale: smithy_client_1.expectInt32(output.Scale),
2213
- SchemaName: smithy_client_1.expectString(output.SchemaName),
2214
- TableName: smithy_client_1.expectString(output.TableName),
2215
- Type: smithy_client_1.expectString(output.Type),
2283
+ CaseSensitive: (0, smithy_client_1.expectBoolean)(output.CaseSensitive),
2284
+ CatalogName: (0, smithy_client_1.expectString)(output.CatalogName),
2285
+ Label: (0, smithy_client_1.expectString)(output.Label),
2286
+ Name: (0, smithy_client_1.expectString)(output.Name),
2287
+ Nullable: (0, smithy_client_1.expectString)(output.Nullable),
2288
+ Precision: (0, smithy_client_1.expectInt32)(output.Precision),
2289
+ Scale: (0, smithy_client_1.expectInt32)(output.Scale),
2290
+ SchemaName: (0, smithy_client_1.expectString)(output.SchemaName),
2291
+ TableName: (0, smithy_client_1.expectString)(output.TableName),
2292
+ Type: (0, smithy_client_1.expectString)(output.Type),
2216
2293
  };
2217
2294
  };
2218
2295
  const deserializeAws_json1_1ColumnInfoList = (output, context) => {
@@ -2242,7 +2319,7 @@ const deserializeAws_json1_1CreateDataCatalogOutput = (output, context) => {
2242
2319
  };
2243
2320
  const deserializeAws_json1_1CreateNamedQueryOutput = (output, context) => {
2244
2321
  return {
2245
- NamedQueryId: smithy_client_1.expectString(output.NamedQueryId),
2322
+ NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
2246
2323
  };
2247
2324
  };
2248
2325
  const deserializeAws_json1_1CreatePreparedStatementOutput = (output, context) => {
@@ -2253,8 +2330,8 @@ const deserializeAws_json1_1CreateWorkGroupOutput = (output, context) => {
2253
2330
  };
2254
2331
  const deserializeAws_json1_1Database = (output, context) => {
2255
2332
  return {
2256
- Description: smithy_client_1.expectString(output.Description),
2257
- Name: smithy_client_1.expectString(output.Name),
2333
+ Description: (0, smithy_client_1.expectString)(output.Description),
2334
+ Name: (0, smithy_client_1.expectString)(output.Name),
2258
2335
  Parameters: output.Parameters !== undefined && output.Parameters !== null
2259
2336
  ? deserializeAws_json1_1ParametersMap(output.Parameters, context)
2260
2337
  : undefined,
@@ -2273,18 +2350,18 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
2273
2350
  };
2274
2351
  const deserializeAws_json1_1DataCatalog = (output, context) => {
2275
2352
  return {
2276
- Description: smithy_client_1.expectString(output.Description),
2277
- Name: smithy_client_1.expectString(output.Name),
2353
+ Description: (0, smithy_client_1.expectString)(output.Description),
2354
+ Name: (0, smithy_client_1.expectString)(output.Name),
2278
2355
  Parameters: output.Parameters !== undefined && output.Parameters !== null
2279
2356
  ? deserializeAws_json1_1ParametersMap(output.Parameters, context)
2280
2357
  : undefined,
2281
- Type: smithy_client_1.expectString(output.Type),
2358
+ Type: (0, smithy_client_1.expectString)(output.Type),
2282
2359
  };
2283
2360
  };
2284
2361
  const deserializeAws_json1_1DataCatalogSummary = (output, context) => {
2285
2362
  return {
2286
- CatalogName: smithy_client_1.expectString(output.CatalogName),
2287
- Type: smithy_client_1.expectString(output.Type),
2363
+ CatalogName: (0, smithy_client_1.expectString)(output.CatalogName),
2364
+ Type: (0, smithy_client_1.expectString)(output.Type),
2288
2365
  };
2289
2366
  };
2290
2367
  const deserializeAws_json1_1DataCatalogSummaryList = (output, context) => {
@@ -2300,7 +2377,7 @@ const deserializeAws_json1_1DataCatalogSummaryList = (output, context) => {
2300
2377
  };
2301
2378
  const deserializeAws_json1_1Datum = (output, context) => {
2302
2379
  return {
2303
- VarCharValue: smithy_client_1.expectString(output.VarCharValue),
2380
+ VarCharValue: (0, smithy_client_1.expectString)(output.VarCharValue),
2304
2381
  };
2305
2382
  };
2306
2383
  const deserializeAws_json1_1datumList = (output, context) => {
@@ -2328,14 +2405,14 @@ const deserializeAws_json1_1DeleteWorkGroupOutput = (output, context) => {
2328
2405
  };
2329
2406
  const deserializeAws_json1_1EncryptionConfiguration = (output, context) => {
2330
2407
  return {
2331
- EncryptionOption: smithy_client_1.expectString(output.EncryptionOption),
2332
- KmsKey: smithy_client_1.expectString(output.KmsKey),
2408
+ EncryptionOption: (0, smithy_client_1.expectString)(output.EncryptionOption),
2409
+ KmsKey: (0, smithy_client_1.expectString)(output.KmsKey),
2333
2410
  };
2334
2411
  };
2335
2412
  const deserializeAws_json1_1EngineVersion = (output, context) => {
2336
2413
  return {
2337
- EffectiveEngineVersion: smithy_client_1.expectString(output.EffectiveEngineVersion),
2338
- SelectedEngineVersion: smithy_client_1.expectString(output.SelectedEngineVersion),
2414
+ EffectiveEngineVersion: (0, smithy_client_1.expectString)(output.EffectiveEngineVersion),
2415
+ SelectedEngineVersion: (0, smithy_client_1.expectString)(output.SelectedEngineVersion),
2339
2416
  };
2340
2417
  };
2341
2418
  const deserializeAws_json1_1EngineVersionsList = (output, context) => {
@@ -2386,11 +2463,11 @@ const deserializeAws_json1_1GetQueryExecutionOutput = (output, context) => {
2386
2463
  };
2387
2464
  const deserializeAws_json1_1GetQueryResultsOutput = (output, context) => {
2388
2465
  return {
2389
- NextToken: smithy_client_1.expectString(output.NextToken),
2466
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2390
2467
  ResultSet: output.ResultSet !== undefined && output.ResultSet !== null
2391
2468
  ? deserializeAws_json1_1ResultSet(output.ResultSet, context)
2392
2469
  : undefined,
2393
- UpdateCount: smithy_client_1.expectLong(output.UpdateCount),
2470
+ UpdateCount: (0, smithy_client_1.expectLong)(output.UpdateCount),
2394
2471
  };
2395
2472
  };
2396
2473
  const deserializeAws_json1_1GetTableMetadataOutput = (output, context) => {
@@ -2409,13 +2486,13 @@ const deserializeAws_json1_1GetWorkGroupOutput = (output, context) => {
2409
2486
  };
2410
2487
  const deserializeAws_json1_1InternalServerException = (output, context) => {
2411
2488
  return {
2412
- Message: smithy_client_1.expectString(output.Message),
2489
+ Message: (0, smithy_client_1.expectString)(output.Message),
2413
2490
  };
2414
2491
  };
2415
2492
  const deserializeAws_json1_1InvalidRequestException = (output, context) => {
2416
2493
  return {
2417
- AthenaErrorCode: smithy_client_1.expectString(output.AthenaErrorCode),
2418
- Message: smithy_client_1.expectString(output.Message),
2494
+ AthenaErrorCode: (0, smithy_client_1.expectString)(output.AthenaErrorCode),
2495
+ Message: (0, smithy_client_1.expectString)(output.Message),
2419
2496
  };
2420
2497
  };
2421
2498
  const deserializeAws_json1_1ListDatabasesOutput = (output, context) => {
@@ -2423,7 +2500,7 @@ const deserializeAws_json1_1ListDatabasesOutput = (output, context) => {
2423
2500
  DatabaseList: output.DatabaseList !== undefined && output.DatabaseList !== null
2424
2501
  ? deserializeAws_json1_1DatabaseList(output.DatabaseList, context)
2425
2502
  : undefined,
2426
- NextToken: smithy_client_1.expectString(output.NextToken),
2503
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2427
2504
  };
2428
2505
  };
2429
2506
  const deserializeAws_json1_1ListDataCatalogsOutput = (output, context) => {
@@ -2431,7 +2508,7 @@ const deserializeAws_json1_1ListDataCatalogsOutput = (output, context) => {
2431
2508
  DataCatalogsSummary: output.DataCatalogsSummary !== undefined && output.DataCatalogsSummary !== null
2432
2509
  ? deserializeAws_json1_1DataCatalogSummaryList(output.DataCatalogsSummary, context)
2433
2510
  : undefined,
2434
- NextToken: smithy_client_1.expectString(output.NextToken),
2511
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2435
2512
  };
2436
2513
  };
2437
2514
  const deserializeAws_json1_1ListEngineVersionsOutput = (output, context) => {
@@ -2439,7 +2516,7 @@ const deserializeAws_json1_1ListEngineVersionsOutput = (output, context) => {
2439
2516
  EngineVersions: output.EngineVersions !== undefined && output.EngineVersions !== null
2440
2517
  ? deserializeAws_json1_1EngineVersionsList(output.EngineVersions, context)
2441
2518
  : undefined,
2442
- NextToken: smithy_client_1.expectString(output.NextToken),
2519
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2443
2520
  };
2444
2521
  };
2445
2522
  const deserializeAws_json1_1ListNamedQueriesOutput = (output, context) => {
@@ -2447,12 +2524,12 @@ const deserializeAws_json1_1ListNamedQueriesOutput = (output, context) => {
2447
2524
  NamedQueryIds: output.NamedQueryIds !== undefined && output.NamedQueryIds !== null
2448
2525
  ? deserializeAws_json1_1NamedQueryIdList(output.NamedQueryIds, context)
2449
2526
  : undefined,
2450
- NextToken: smithy_client_1.expectString(output.NextToken),
2527
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2451
2528
  };
2452
2529
  };
2453
2530
  const deserializeAws_json1_1ListPreparedStatementsOutput = (output, context) => {
2454
2531
  return {
2455
- NextToken: smithy_client_1.expectString(output.NextToken),
2532
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2456
2533
  PreparedStatements: output.PreparedStatements !== undefined && output.PreparedStatements !== null
2457
2534
  ? deserializeAws_json1_1PreparedStatementsList(output.PreparedStatements, context)
2458
2535
  : undefined,
@@ -2460,7 +2537,7 @@ const deserializeAws_json1_1ListPreparedStatementsOutput = (output, context) =>
2460
2537
  };
2461
2538
  const deserializeAws_json1_1ListQueryExecutionsOutput = (output, context) => {
2462
2539
  return {
2463
- NextToken: smithy_client_1.expectString(output.NextToken),
2540
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2464
2541
  QueryExecutionIds: output.QueryExecutionIds !== undefined && output.QueryExecutionIds !== null
2465
2542
  ? deserializeAws_json1_1QueryExecutionIdList(output.QueryExecutionIds, context)
2466
2543
  : undefined,
@@ -2468,7 +2545,7 @@ const deserializeAws_json1_1ListQueryExecutionsOutput = (output, context) => {
2468
2545
  };
2469
2546
  const deserializeAws_json1_1ListTableMetadataOutput = (output, context) => {
2470
2547
  return {
2471
- NextToken: smithy_client_1.expectString(output.NextToken),
2548
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2472
2549
  TableMetadataList: output.TableMetadataList !== undefined && output.TableMetadataList !== null
2473
2550
  ? deserializeAws_json1_1TableMetadataList(output.TableMetadataList, context)
2474
2551
  : undefined,
@@ -2476,7 +2553,7 @@ const deserializeAws_json1_1ListTableMetadataOutput = (output, context) => {
2476
2553
  };
2477
2554
  const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
2478
2555
  return {
2479
- NextToken: smithy_client_1.expectString(output.NextToken),
2556
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2480
2557
  Tags: output.Tags !== undefined && output.Tags !== null
2481
2558
  ? deserializeAws_json1_1TagList(output.Tags, context)
2482
2559
  : undefined,
@@ -2484,7 +2561,7 @@ const deserializeAws_json1_1ListTagsForResourceOutput = (output, context) => {
2484
2561
  };
2485
2562
  const deserializeAws_json1_1ListWorkGroupsOutput = (output, context) => {
2486
2563
  return {
2487
- NextToken: smithy_client_1.expectString(output.NextToken),
2564
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
2488
2565
  WorkGroups: output.WorkGroups !== undefined && output.WorkGroups !== null
2489
2566
  ? deserializeAws_json1_1WorkGroupsList(output.WorkGroups, context)
2490
2567
  : undefined,
@@ -2492,17 +2569,17 @@ const deserializeAws_json1_1ListWorkGroupsOutput = (output, context) => {
2492
2569
  };
2493
2570
  const deserializeAws_json1_1MetadataException = (output, context) => {
2494
2571
  return {
2495
- Message: smithy_client_1.expectString(output.Message),
2572
+ Message: (0, smithy_client_1.expectString)(output.Message),
2496
2573
  };
2497
2574
  };
2498
2575
  const deserializeAws_json1_1NamedQuery = (output, context) => {
2499
2576
  return {
2500
- Database: smithy_client_1.expectString(output.Database),
2501
- Description: smithy_client_1.expectString(output.Description),
2502
- Name: smithy_client_1.expectString(output.Name),
2503
- NamedQueryId: smithy_client_1.expectString(output.NamedQueryId),
2504
- QueryString: smithy_client_1.expectString(output.QueryString),
2505
- WorkGroup: smithy_client_1.expectString(output.WorkGroup),
2577
+ Database: (0, smithy_client_1.expectString)(output.Database),
2578
+ Description: (0, smithy_client_1.expectString)(output.Description),
2579
+ Name: (0, smithy_client_1.expectString)(output.Name),
2580
+ NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
2581
+ QueryString: (0, smithy_client_1.expectString)(output.QueryString),
2582
+ WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
2506
2583
  };
2507
2584
  };
2508
2585
  const deserializeAws_json1_1NamedQueryIdList = (output, context) => {
@@ -2512,7 +2589,7 @@ const deserializeAws_json1_1NamedQueryIdList = (output, context) => {
2512
2589
  if (entry === null) {
2513
2590
  return null;
2514
2591
  }
2515
- return smithy_client_1.expectString(entry);
2592
+ return (0, smithy_client_1.expectString)(entry);
2516
2593
  });
2517
2594
  return retVal;
2518
2595
  };
@@ -2534,19 +2611,19 @@ const deserializeAws_json1_1ParametersMap = (output, context) => {
2534
2611
  }
2535
2612
  return {
2536
2613
  ...acc,
2537
- [key]: smithy_client_1.expectString(value),
2614
+ [key]: (0, smithy_client_1.expectString)(value),
2538
2615
  };
2539
2616
  }, {});
2540
2617
  };
2541
2618
  const deserializeAws_json1_1PreparedStatement = (output, context) => {
2542
2619
  return {
2543
- Description: smithy_client_1.expectString(output.Description),
2620
+ Description: (0, smithy_client_1.expectString)(output.Description),
2544
2621
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2545
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
2622
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
2546
2623
  : undefined,
2547
- QueryStatement: smithy_client_1.expectString(output.QueryStatement),
2548
- StatementName: smithy_client_1.expectString(output.StatementName),
2549
- WorkGroupName: smithy_client_1.expectString(output.WorkGroupName),
2624
+ QueryStatement: (0, smithy_client_1.expectString)(output.QueryStatement),
2625
+ StatementName: (0, smithy_client_1.expectString)(output.StatementName),
2626
+ WorkGroupName: (0, smithy_client_1.expectString)(output.WorkGroupName),
2550
2627
  };
2551
2628
  };
2552
2629
  const deserializeAws_json1_1PreparedStatementsList = (output, context) => {
@@ -2563,9 +2640,9 @@ const deserializeAws_json1_1PreparedStatementsList = (output, context) => {
2563
2640
  const deserializeAws_json1_1PreparedStatementSummary = (output, context) => {
2564
2641
  return {
2565
2642
  LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
2566
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedTime)))
2643
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
2567
2644
  : undefined,
2568
- StatementName: smithy_client_1.expectString(output.StatementName),
2645
+ StatementName: (0, smithy_client_1.expectString)(output.StatementName),
2569
2646
  };
2570
2647
  };
2571
2648
  const deserializeAws_json1_1QueryExecution = (output, context) => {
@@ -2573,28 +2650,28 @@ const deserializeAws_json1_1QueryExecution = (output, context) => {
2573
2650
  EngineVersion: output.EngineVersion !== undefined && output.EngineVersion !== null
2574
2651
  ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context)
2575
2652
  : undefined,
2576
- Query: smithy_client_1.expectString(output.Query),
2653
+ Query: (0, smithy_client_1.expectString)(output.Query),
2577
2654
  QueryExecutionContext: output.QueryExecutionContext !== undefined && output.QueryExecutionContext !== null
2578
2655
  ? deserializeAws_json1_1QueryExecutionContext(output.QueryExecutionContext, context)
2579
2656
  : undefined,
2580
- QueryExecutionId: smithy_client_1.expectString(output.QueryExecutionId),
2657
+ QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
2581
2658
  ResultConfiguration: output.ResultConfiguration !== undefined && output.ResultConfiguration !== null
2582
2659
  ? deserializeAws_json1_1ResultConfiguration(output.ResultConfiguration, context)
2583
2660
  : undefined,
2584
- StatementType: smithy_client_1.expectString(output.StatementType),
2661
+ StatementType: (0, smithy_client_1.expectString)(output.StatementType),
2585
2662
  Statistics: output.Statistics !== undefined && output.Statistics !== null
2586
2663
  ? deserializeAws_json1_1QueryExecutionStatistics(output.Statistics, context)
2587
2664
  : undefined,
2588
2665
  Status: output.Status !== undefined && output.Status !== null
2589
2666
  ? deserializeAws_json1_1QueryExecutionStatus(output.Status, context)
2590
2667
  : undefined,
2591
- WorkGroup: smithy_client_1.expectString(output.WorkGroup),
2668
+ WorkGroup: (0, smithy_client_1.expectString)(output.WorkGroup),
2592
2669
  };
2593
2670
  };
2594
2671
  const deserializeAws_json1_1QueryExecutionContext = (output, context) => {
2595
2672
  return {
2596
- Catalog: smithy_client_1.expectString(output.Catalog),
2597
- Database: smithy_client_1.expectString(output.Database),
2673
+ Catalog: (0, smithy_client_1.expectString)(output.Catalog),
2674
+ Database: (0, smithy_client_1.expectString)(output.Database),
2598
2675
  };
2599
2676
  };
2600
2677
  const deserializeAws_json1_1QueryExecutionIdList = (output, context) => {
@@ -2604,7 +2681,7 @@ const deserializeAws_json1_1QueryExecutionIdList = (output, context) => {
2604
2681
  if (entry === null) {
2605
2682
  return null;
2606
2683
  }
2607
- return smithy_client_1.expectString(entry);
2684
+ return (0, smithy_client_1.expectString)(entry);
2608
2685
  });
2609
2686
  return retVal;
2610
2687
  };
@@ -2621,13 +2698,13 @@ const deserializeAws_json1_1QueryExecutionList = (output, context) => {
2621
2698
  };
2622
2699
  const deserializeAws_json1_1QueryExecutionStatistics = (output, context) => {
2623
2700
  return {
2624
- DataManifestLocation: smithy_client_1.expectString(output.DataManifestLocation),
2625
- DataScannedInBytes: smithy_client_1.expectLong(output.DataScannedInBytes),
2626
- EngineExecutionTimeInMillis: smithy_client_1.expectLong(output.EngineExecutionTimeInMillis),
2627
- QueryPlanningTimeInMillis: smithy_client_1.expectLong(output.QueryPlanningTimeInMillis),
2628
- QueryQueueTimeInMillis: smithy_client_1.expectLong(output.QueryQueueTimeInMillis),
2629
- ServiceProcessingTimeInMillis: smithy_client_1.expectLong(output.ServiceProcessingTimeInMillis),
2630
- TotalExecutionTimeInMillis: smithy_client_1.expectLong(output.TotalExecutionTimeInMillis),
2701
+ DataManifestLocation: (0, smithy_client_1.expectString)(output.DataManifestLocation),
2702
+ DataScannedInBytes: (0, smithy_client_1.expectLong)(output.DataScannedInBytes),
2703
+ EngineExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.EngineExecutionTimeInMillis),
2704
+ QueryPlanningTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryPlanningTimeInMillis),
2705
+ QueryQueueTimeInMillis: (0, smithy_client_1.expectLong)(output.QueryQueueTimeInMillis),
2706
+ ServiceProcessingTimeInMillis: (0, smithy_client_1.expectLong)(output.ServiceProcessingTimeInMillis),
2707
+ TotalExecutionTimeInMillis: (0, smithy_client_1.expectLong)(output.TotalExecutionTimeInMillis),
2631
2708
  };
2632
2709
  };
2633
2710
  const deserializeAws_json1_1QueryExecutionStatus = (output, context) => {
@@ -2636,28 +2713,31 @@ const deserializeAws_json1_1QueryExecutionStatus = (output, context) => {
2636
2713
  ? deserializeAws_json1_1AthenaError(output.AthenaError, context)
2637
2714
  : undefined,
2638
2715
  CompletionDateTime: output.CompletionDateTime !== undefined && output.CompletionDateTime !== null
2639
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDateTime)))
2716
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDateTime)))
2640
2717
  : undefined,
2641
- State: smithy_client_1.expectString(output.State),
2642
- StateChangeReason: smithy_client_1.expectString(output.StateChangeReason),
2718
+ State: (0, smithy_client_1.expectString)(output.State),
2719
+ StateChangeReason: (0, smithy_client_1.expectString)(output.StateChangeReason),
2643
2720
  SubmissionDateTime: output.SubmissionDateTime !== undefined && output.SubmissionDateTime !== null
2644
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.SubmissionDateTime)))
2721
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmissionDateTime)))
2645
2722
  : undefined,
2646
2723
  };
2647
2724
  };
2648
2725
  const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
2649
2726
  return {
2650
- Message: smithy_client_1.expectString(output.Message),
2651
- ResourceName: smithy_client_1.expectString(output.ResourceName),
2727
+ Message: (0, smithy_client_1.expectString)(output.Message),
2728
+ ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
2652
2729
  };
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,
2659
- ExpectedBucketOwner: smithy_client_1.expectString(output.ExpectedBucketOwner),
2660
- OutputLocation: smithy_client_1.expectString(output.OutputLocation),
2739
+ ExpectedBucketOwner: (0, smithy_client_1.expectString)(output.ExpectedBucketOwner),
2740
+ OutputLocation: (0, smithy_client_1.expectString)(output.OutputLocation),
2661
2741
  };
2662
2742
  };
2663
2743
  const deserializeAws_json1_1ResultSet = (output, context) => {
@@ -2697,7 +2777,7 @@ const deserializeAws_json1_1RowList = (output, context) => {
2697
2777
  };
2698
2778
  const deserializeAws_json1_1StartQueryExecutionOutput = (output, context) => {
2699
2779
  return {
2700
- QueryExecutionId: smithy_client_1.expectString(output.QueryExecutionId),
2780
+ QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
2701
2781
  };
2702
2782
  };
2703
2783
  const deserializeAws_json1_1StopQueryExecutionOutput = (output, context) => {
@@ -2709,19 +2789,19 @@ const deserializeAws_json1_1TableMetadata = (output, context) => {
2709
2789
  ? deserializeAws_json1_1ColumnList(output.Columns, context)
2710
2790
  : undefined,
2711
2791
  CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
2712
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateTime)))
2792
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTime)))
2713
2793
  : undefined,
2714
2794
  LastAccessTime: output.LastAccessTime !== undefined && output.LastAccessTime !== null
2715
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastAccessTime)))
2795
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessTime)))
2716
2796
  : undefined,
2717
- Name: smithy_client_1.expectString(output.Name),
2797
+ Name: (0, smithy_client_1.expectString)(output.Name),
2718
2798
  Parameters: output.Parameters !== undefined && output.Parameters !== null
2719
2799
  ? deserializeAws_json1_1ParametersMap(output.Parameters, context)
2720
2800
  : undefined,
2721
2801
  PartitionKeys: output.PartitionKeys !== undefined && output.PartitionKeys !== null
2722
2802
  ? deserializeAws_json1_1ColumnList(output.PartitionKeys, context)
2723
2803
  : undefined,
2724
- TableType: smithy_client_1.expectString(output.TableType),
2804
+ TableType: (0, smithy_client_1.expectString)(output.TableType),
2725
2805
  };
2726
2806
  };
2727
2807
  const deserializeAws_json1_1TableMetadataList = (output, context) => {
@@ -2737,8 +2817,8 @@ const deserializeAws_json1_1TableMetadataList = (output, context) => {
2737
2817
  };
2738
2818
  const deserializeAws_json1_1Tag = (output, context) => {
2739
2819
  return {
2740
- Key: smithy_client_1.expectString(output.Key),
2741
- Value: smithy_client_1.expectString(output.Value),
2820
+ Key: (0, smithy_client_1.expectString)(output.Key),
2821
+ Value: (0, smithy_client_1.expectString)(output.Value),
2742
2822
  };
2743
2823
  };
2744
2824
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -2757,15 +2837,15 @@ const deserializeAws_json1_1TagResourceOutput = (output, context) => {
2757
2837
  };
2758
2838
  const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
2759
2839
  return {
2760
- Message: smithy_client_1.expectString(output.Message),
2761
- Reason: smithy_client_1.expectString(output.Reason),
2840
+ Message: (0, smithy_client_1.expectString)(output.Message),
2841
+ Reason: (0, smithy_client_1.expectString)(output.Reason),
2762
2842
  };
2763
2843
  };
2764
2844
  const deserializeAws_json1_1UnprocessedNamedQueryId = (output, context) => {
2765
2845
  return {
2766
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
2767
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
2768
- NamedQueryId: smithy_client_1.expectString(output.NamedQueryId),
2846
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
2847
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
2848
+ NamedQueryId: (0, smithy_client_1.expectString)(output.NamedQueryId),
2769
2849
  };
2770
2850
  };
2771
2851
  const deserializeAws_json1_1UnprocessedNamedQueryIdList = (output, context) => {
@@ -2781,9 +2861,9 @@ const deserializeAws_json1_1UnprocessedNamedQueryIdList = (output, context) => {
2781
2861
  };
2782
2862
  const deserializeAws_json1_1UnprocessedQueryExecutionId = (output, context) => {
2783
2863
  return {
2784
- ErrorCode: smithy_client_1.expectString(output.ErrorCode),
2785
- ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
2786
- QueryExecutionId: smithy_client_1.expectString(output.QueryExecutionId),
2864
+ ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
2865
+ ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
2866
+ QueryExecutionId: (0, smithy_client_1.expectString)(output.QueryExecutionId),
2787
2867
  };
2788
2868
  };
2789
2869
  const deserializeAws_json1_1UnprocessedQueryExecutionIdList = (output, context) => {
@@ -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
  };
@@ -2815,22 +2898,22 @@ const deserializeAws_json1_1WorkGroup = (output, context) => {
2815
2898
  ? deserializeAws_json1_1WorkGroupConfiguration(output.Configuration, context)
2816
2899
  : undefined,
2817
2900
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2818
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
2901
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2819
2902
  : undefined,
2820
- Description: smithy_client_1.expectString(output.Description),
2821
- Name: smithy_client_1.expectString(output.Name),
2822
- State: smithy_client_1.expectString(output.State),
2903
+ Description: (0, smithy_client_1.expectString)(output.Description),
2904
+ Name: (0, smithy_client_1.expectString)(output.Name),
2905
+ State: (0, smithy_client_1.expectString)(output.State),
2823
2906
  };
2824
2907
  };
2825
2908
  const deserializeAws_json1_1WorkGroupConfiguration = (output, context) => {
2826
2909
  return {
2827
- BytesScannedCutoffPerQuery: smithy_client_1.expectLong(output.BytesScannedCutoffPerQuery),
2828
- EnforceWorkGroupConfiguration: smithy_client_1.expectBoolean(output.EnforceWorkGroupConfiguration),
2910
+ BytesScannedCutoffPerQuery: (0, smithy_client_1.expectLong)(output.BytesScannedCutoffPerQuery),
2911
+ EnforceWorkGroupConfiguration: (0, smithy_client_1.expectBoolean)(output.EnforceWorkGroupConfiguration),
2829
2912
  EngineVersion: output.EngineVersion !== undefined && output.EngineVersion !== null
2830
2913
  ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context)
2831
2914
  : undefined,
2832
- PublishCloudWatchMetricsEnabled: smithy_client_1.expectBoolean(output.PublishCloudWatchMetricsEnabled),
2833
- RequesterPaysEnabled: smithy_client_1.expectBoolean(output.RequesterPaysEnabled),
2915
+ PublishCloudWatchMetricsEnabled: (0, smithy_client_1.expectBoolean)(output.PublishCloudWatchMetricsEnabled),
2916
+ RequesterPaysEnabled: (0, smithy_client_1.expectBoolean)(output.RequesterPaysEnabled),
2834
2917
  ResultConfiguration: output.ResultConfiguration !== undefined && output.ResultConfiguration !== null
2835
2918
  ? deserializeAws_json1_1ResultConfiguration(output.ResultConfiguration, context)
2836
2919
  : undefined,
@@ -2850,14 +2933,14 @@ const deserializeAws_json1_1WorkGroupsList = (output, context) => {
2850
2933
  const deserializeAws_json1_1WorkGroupSummary = (output, context) => {
2851
2934
  return {
2852
2935
  CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
2853
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
2936
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
2854
2937
  : undefined,
2855
- Description: smithy_client_1.expectString(output.Description),
2938
+ Description: (0, smithy_client_1.expectString)(output.Description),
2856
2939
  EngineVersion: output.EngineVersion !== undefined && output.EngineVersion !== null
2857
2940
  ? deserializeAws_json1_1EngineVersion(output.EngineVersion, context)
2858
2941
  : undefined,
2859
- Name: smithy_client_1.expectString(output.Name),
2860
- State: smithy_client_1.expectString(output.State),
2942
+ Name: (0, smithy_client_1.expectString)(output.Name),
2943
+ State: (0, smithy_client_1.expectString)(output.State),
2861
2944
  };
2862
2945
  };
2863
2946
  const deserializeMetadata = (output) => {