@aws-sdk/client-athena 3.47.1 → 3.50.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 (66) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist-cjs/models/models_0.js +9 -3
  3. package/dist-cjs/protocols/Aws_json1_1.js +15 -0
  4. package/dist-es/models/models_0.js +4 -0
  5. package/dist-es/protocols/Aws_json1_1.js +17 -5
  6. package/dist-types/Athena.d.ts +6 -0
  7. package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -0
  8. package/dist-types/models/models_0.d.ts +85 -11
  9. package/package.json +39 -33
  10. package/dist-types/ts3.4/Athena.d.ts +0 -175
  11. package/dist-types/ts3.4/AthenaClient.d.ts +0 -107
  12. package/dist-types/ts3.4/commands/BatchGetNamedQueryCommand.d.ts +0 -17
  13. package/dist-types/ts3.4/commands/BatchGetQueryExecutionCommand.d.ts +0 -17
  14. package/dist-types/ts3.4/commands/CreateDataCatalogCommand.d.ts +0 -17
  15. package/dist-types/ts3.4/commands/CreateNamedQueryCommand.d.ts +0 -17
  16. package/dist-types/ts3.4/commands/CreatePreparedStatementCommand.d.ts +0 -17
  17. package/dist-types/ts3.4/commands/CreateWorkGroupCommand.d.ts +0 -17
  18. package/dist-types/ts3.4/commands/DeleteDataCatalogCommand.d.ts +0 -17
  19. package/dist-types/ts3.4/commands/DeleteNamedQueryCommand.d.ts +0 -17
  20. package/dist-types/ts3.4/commands/DeletePreparedStatementCommand.d.ts +0 -17
  21. package/dist-types/ts3.4/commands/DeleteWorkGroupCommand.d.ts +0 -17
  22. package/dist-types/ts3.4/commands/GetDataCatalogCommand.d.ts +0 -17
  23. package/dist-types/ts3.4/commands/GetDatabaseCommand.d.ts +0 -17
  24. package/dist-types/ts3.4/commands/GetNamedQueryCommand.d.ts +0 -17
  25. package/dist-types/ts3.4/commands/GetPreparedStatementCommand.d.ts +0 -17
  26. package/dist-types/ts3.4/commands/GetQueryExecutionCommand.d.ts +0 -17
  27. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +0 -17
  28. package/dist-types/ts3.4/commands/GetTableMetadataCommand.d.ts +0 -17
  29. package/dist-types/ts3.4/commands/GetWorkGroupCommand.d.ts +0 -17
  30. package/dist-types/ts3.4/commands/ListDataCatalogsCommand.d.ts +0 -17
  31. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +0 -17
  32. package/dist-types/ts3.4/commands/ListEngineVersionsCommand.d.ts +0 -17
  33. package/dist-types/ts3.4/commands/ListNamedQueriesCommand.d.ts +0 -17
  34. package/dist-types/ts3.4/commands/ListPreparedStatementsCommand.d.ts +0 -17
  35. package/dist-types/ts3.4/commands/ListQueryExecutionsCommand.d.ts +0 -17
  36. package/dist-types/ts3.4/commands/ListTableMetadataCommand.d.ts +0 -17
  37. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -17
  38. package/dist-types/ts3.4/commands/ListWorkGroupsCommand.d.ts +0 -17
  39. package/dist-types/ts3.4/commands/StartQueryExecutionCommand.d.ts +0 -17
  40. package/dist-types/ts3.4/commands/StopQueryExecutionCommand.d.ts +0 -17
  41. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -17
  42. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -17
  43. package/dist-types/ts3.4/commands/UpdateDataCatalogCommand.d.ts +0 -17
  44. package/dist-types/ts3.4/commands/UpdatePreparedStatementCommand.d.ts +0 -17
  45. package/dist-types/ts3.4/commands/UpdateWorkGroupCommand.d.ts +0 -17
  46. package/dist-types/ts3.4/commands/index.d.ts +0 -34
  47. package/dist-types/ts3.4/endpoints.d.ts +0 -2
  48. package/dist-types/ts3.4/index.d.ts +0 -5
  49. package/dist-types/ts3.4/models/index.d.ts +0 -1
  50. package/dist-types/ts3.4/models/models_0.d.ts +0 -1150
  51. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +0 -4
  52. package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -6
  53. package/dist-types/ts3.4/pagination/ListDataCatalogsPaginator.d.ts +0 -4
  54. package/dist-types/ts3.4/pagination/ListDatabasesPaginator.d.ts +0 -4
  55. package/dist-types/ts3.4/pagination/ListNamedQueriesPaginator.d.ts +0 -4
  56. package/dist-types/ts3.4/pagination/ListPreparedStatementsPaginator.d.ts +0 -4
  57. package/dist-types/ts3.4/pagination/ListQueryExecutionsPaginator.d.ts +0 -4
  58. package/dist-types/ts3.4/pagination/ListTableMetadataPaginator.d.ts +0 -4
  59. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +0 -4
  60. package/dist-types/ts3.4/pagination/ListWorkGroupsPaginator.d.ts +0 -4
  61. package/dist-types/ts3.4/pagination/index.d.ts +0 -10
  62. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -104
  63. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
  64. package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
  65. package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
  66. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
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.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 02/04/2022 ([#3280](https://github.com/aws/aws-sdk-js-v3/issues/3280)) ([63d7f8c](https://github.com/aws/aws-sdk-js-v3/commit/63d7f8c539e0fd782fa5bf997bd6ac2730e4bfda))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update clients as of 01/28/2022 ([#3263](https://github.com/aws/aws-sdk-js-v3/issues/3263)) ([c207cf4](https://github.com/aws/aws-sdk-js-v3/commit/c207cf4a70ba9ef14dc5b94da7883b0889d64918))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-athena
31
+
32
+
33
+
34
+
35
+
36
+ ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
37
+
38
+ **Note:** Version bump only for package @aws-sdk/client-athena
39
+
40
+
41
+
42
+
43
+
6
44
  ## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
7
45
 
8
46
  **Note:** Version bump only for package @aws-sdk/client-athena
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetQueryResultsInput = exports.GetQueryExecutionOutput = exports.GetQueryExecutionInput = exports.GetPreparedStatementOutput = exports.PreparedStatement = exports.GetPreparedStatementInput = exports.GetNamedQueryOutput = exports.GetNamedQueryInput = exports.GetDataCatalogOutput = exports.DataCatalog = exports.GetDataCatalogInput = exports.GetDatabaseOutput = exports.Database = exports.GetDatabaseInput = exports.DeleteWorkGroupOutput = exports.DeleteWorkGroupInput = 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.QueryExecutionStatistics = exports.StatementType = exports.ResultConfiguration = exports.EncryptionConfiguration = exports.EncryptionOption = exports.QueryExecutionContext = exports.EngineVersion = exports.BatchGetQueryExecutionInput = exports.BatchGetNamedQueryOutput = exports.UnprocessedNamedQueryId = exports.NamedQuery = exports.BatchGetNamedQueryInput = void 0;
4
- exports.ResultConfigurationUpdates = exports.UpdatePreparedStatementOutput = exports.UpdatePreparedStatementInput = exports.UpdateDataCatalogOutput = exports.UpdateDataCatalogInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopQueryExecutionOutput = exports.StopQueryExecutionInput = 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 = void 0;
5
- exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = void 0;
3
+ exports.GetQueryExecutionOutput = exports.GetQueryExecutionInput = exports.GetPreparedStatementOutput = exports.PreparedStatement = exports.GetPreparedStatementInput = exports.GetNamedQueryOutput = exports.GetNamedQueryInput = exports.GetDataCatalogOutput = exports.DataCatalog = exports.GetDataCatalogInput = exports.GetDatabaseOutput = exports.Database = exports.GetDatabaseInput = exports.DeleteWorkGroupOutput = exports.DeleteWorkGroupInput = 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.BatchGetNamedQueryOutput = exports.UnprocessedNamedQueryId = exports.NamedQuery = exports.BatchGetNamedQueryInput = void 0;
4
+ exports.UpdatePreparedStatementOutput = exports.UpdatePreparedStatementInput = exports.UpdateDataCatalogOutput = exports.UpdateDataCatalogInput = exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopQueryExecutionOutput = exports.StopQueryExecutionInput = 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 = void 0;
5
+ exports.UpdateWorkGroupOutput = exports.UpdateWorkGroupInput = exports.WorkGroupConfigurationUpdates = exports.ResultConfigurationUpdates = void 0;
6
6
  var BatchGetNamedQueryInput;
7
7
  (function (BatchGetNamedQueryInput) {
8
8
  BatchGetNamedQueryInput.filterSensitiveLog = (obj) => ({
@@ -75,6 +75,12 @@ var QueryExecutionStatistics;
75
75
  ...obj,
76
76
  });
77
77
  })(QueryExecutionStatistics = exports.QueryExecutionStatistics || (exports.QueryExecutionStatistics = {}));
78
+ var AthenaError;
79
+ (function (AthenaError) {
80
+ AthenaError.filterSensitiveLog = (obj) => ({
81
+ ...obj,
82
+ });
83
+ })(AthenaError = exports.AthenaError || (exports.AthenaError = {}));
78
84
  var QueryExecutionState;
79
85
  (function (QueryExecutionState) {
80
86
  QueryExecutionState["CANCELLED"] = "CANCELLED";
@@ -2607,6 +2607,8 @@ const serializeAws_json1_1ResultConfiguration = (input, context) => {
2607
2607
  input.EncryptionConfiguration !== null && {
2608
2608
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2609
2609
  }),
2610
+ ...(input.ExpectedBucketOwner !== undefined &&
2611
+ input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
2610
2612
  ...(input.OutputLocation !== undefined &&
2611
2613
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation }),
2612
2614
  };
@@ -2617,12 +2619,16 @@ const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
2617
2619
  input.EncryptionConfiguration !== null && {
2618
2620
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2619
2621
  }),
2622
+ ...(input.ExpectedBucketOwner !== undefined &&
2623
+ input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
2620
2624
  ...(input.OutputLocation !== undefined &&
2621
2625
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation }),
2622
2626
  ...(input.RemoveEncryptionConfiguration !== undefined &&
2623
2627
  input.RemoveEncryptionConfiguration !== null && {
2624
2628
  RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
2625
2629
  }),
2630
+ ...(input.RemoveExpectedBucketOwner !== undefined &&
2631
+ input.RemoveExpectedBucketOwner !== null && { RemoveExpectedBucketOwner: input.RemoveExpectedBucketOwner }),
2626
2632
  ...(input.RemoveOutputLocation !== undefined &&
2627
2633
  input.RemoveOutputLocation !== null && { RemoveOutputLocation: input.RemoveOutputLocation }),
2628
2634
  };
@@ -2769,6 +2775,11 @@ const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
2769
2775
  }),
2770
2776
  };
2771
2777
  };
2778
+ const deserializeAws_json1_1AthenaError = (output, context) => {
2779
+ return {
2780
+ ErrorCategory: smithy_client_1.expectInt32(output.ErrorCategory),
2781
+ };
2782
+ };
2772
2783
  const deserializeAws_json1_1BatchGetNamedQueryOutput = (output, context) => {
2773
2784
  return {
2774
2785
  NamedQueries: output.NamedQueries !== undefined && output.NamedQueries !== null
@@ -3216,6 +3227,9 @@ const deserializeAws_json1_1QueryExecutionStatistics = (output, context) => {
3216
3227
  };
3217
3228
  const deserializeAws_json1_1QueryExecutionStatus = (output, context) => {
3218
3229
  return {
3230
+ AthenaError: output.AthenaError !== undefined && output.AthenaError !== null
3231
+ ? deserializeAws_json1_1AthenaError(output.AthenaError, context)
3232
+ : undefined,
3219
3233
  CompletionDateTime: output.CompletionDateTime !== undefined && output.CompletionDateTime !== null
3220
3234
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDateTime)))
3221
3235
  : undefined,
@@ -3237,6 +3251,7 @@ const deserializeAws_json1_1ResultConfiguration = (output, context) => {
3237
3251
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
3238
3252
  ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
3239
3253
  : undefined,
3254
+ ExpectedBucketOwner: smithy_client_1.expectString(output.ExpectedBucketOwner),
3240
3255
  OutputLocation: smithy_client_1.expectString(output.OutputLocation),
3241
3256
  };
3242
3257
  };
@@ -51,6 +51,10 @@ export var QueryExecutionStatistics;
51
51
  (function (QueryExecutionStatistics) {
52
52
  QueryExecutionStatistics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
53
53
  })(QueryExecutionStatistics || (QueryExecutionStatistics = {}));
54
+ export var AthenaError;
55
+ (function (AthenaError) {
56
+ AthenaError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
+ })(AthenaError || (AthenaError = {}));
54
58
  export var QueryExecutionState;
55
59
  (function (QueryExecutionState) {
56
60
  QueryExecutionState["CANCELLED"] = "CANCELLED";
@@ -2827,21 +2827,24 @@ var serializeAws_json1_1QueryExecutionIdList = function (input, context) {
2827
2827
  });
2828
2828
  };
2829
2829
  var serializeAws_json1_1ResultConfiguration = function (input, context) {
2830
- return __assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2830
+ return __assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2831
2831
  input.EncryptionConfiguration !== null && {
2832
2832
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2833
- })), (input.OutputLocation !== undefined &&
2833
+ })), (input.ExpectedBucketOwner !== undefined &&
2834
+ input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner })), (input.OutputLocation !== undefined &&
2834
2835
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation }));
2835
2836
  };
2836
2837
  var serializeAws_json1_1ResultConfigurationUpdates = function (input, context) {
2837
- return __assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2838
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.EncryptionConfiguration !== undefined &&
2838
2839
  input.EncryptionConfiguration !== null && {
2839
2840
  EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
2840
- })), (input.OutputLocation !== undefined &&
2841
+ })), (input.ExpectedBucketOwner !== undefined &&
2842
+ input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner })), (input.OutputLocation !== undefined &&
2841
2843
  input.OutputLocation !== null && { OutputLocation: input.OutputLocation })), (input.RemoveEncryptionConfiguration !== undefined &&
2842
2844
  input.RemoveEncryptionConfiguration !== null && {
2843
2845
  RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
2844
- })), (input.RemoveOutputLocation !== undefined &&
2846
+ })), (input.RemoveExpectedBucketOwner !== undefined &&
2847
+ input.RemoveExpectedBucketOwner !== null && { RemoveExpectedBucketOwner: input.RemoveExpectedBucketOwner })), (input.RemoveOutputLocation !== undefined &&
2845
2848
  input.RemoveOutputLocation !== null && { RemoveOutputLocation: input.RemoveOutputLocation }));
2846
2849
  };
2847
2850
  var serializeAws_json1_1StartQueryExecutionInput = function (input, context) {
@@ -2941,6 +2944,11 @@ var serializeAws_json1_1WorkGroupConfigurationUpdates = function (input, context
2941
2944
  ResultConfigurationUpdates: serializeAws_json1_1ResultConfigurationUpdates(input.ResultConfigurationUpdates, context),
2942
2945
  }));
2943
2946
  };
2947
+ var deserializeAws_json1_1AthenaError = function (output, context) {
2948
+ return {
2949
+ ErrorCategory: __expectInt32(output.ErrorCategory),
2950
+ };
2951
+ };
2944
2952
  var deserializeAws_json1_1BatchGetNamedQueryOutput = function (output, context) {
2945
2953
  return {
2946
2954
  NamedQueries: output.NamedQueries !== undefined && output.NamedQueries !== null
@@ -3387,6 +3395,9 @@ var deserializeAws_json1_1QueryExecutionStatistics = function (output, context)
3387
3395
  };
3388
3396
  var deserializeAws_json1_1QueryExecutionStatus = function (output, context) {
3389
3397
  return {
3398
+ AthenaError: output.AthenaError !== undefined && output.AthenaError !== null
3399
+ ? deserializeAws_json1_1AthenaError(output.AthenaError, context)
3400
+ : undefined,
3390
3401
  CompletionDateTime: output.CompletionDateTime !== undefined && output.CompletionDateTime !== null
3391
3402
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDateTime)))
3392
3403
  : undefined,
@@ -3408,6 +3419,7 @@ var deserializeAws_json1_1ResultConfiguration = function (output, context) {
3408
3419
  EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
3409
3420
  ? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
3410
3421
  : undefined,
3422
+ ExpectedBucketOwner: __expectString(output.ExpectedBucketOwner),
3411
3423
  OutputLocation: __expectString(output.OutputLocation),
3412
3424
  };
3413
3425
  };
@@ -174,6 +174,12 @@ export declare class Athena extends AthenaClient {
174
174
  * <code>QueryExecutionId</code> from the Athena query results location in
175
175
  * Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
176
176
  * but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
177
+ * <p>If the original query execution ran using an <a>ResultConfiguration$ExpectedBucketOwner</a> setting, the setting also
178
+ * applies to Amazon S3 read operations when <code>GetQueryResults</code> is
179
+ * called. If an expected bucket owner has been specified and the query results are in an
180
+ * Amazon S3 bucket whose owner account ID is different from the expected
181
+ * bucket owner, the <code>GetQueryResults</code> call fails with an Amazon S3
182
+ * permissions error.</p>
177
183
  * <p>To stream query results successfully, the IAM principal with permission to call
178
184
  * <code>GetQueryResults</code> also must have permissions to the Amazon S3
179
185
  * <code>GetObject</code> action for the Athena query results location.</p>
@@ -11,6 +11,12 @@ export interface GetQueryResultsCommandOutput extends GetQueryResultsOutput, __M
11
11
  * <code>QueryExecutionId</code> from the Athena query results location in
12
12
  * Amazon S3. For more information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/querying.html">Query Results</a> in the <i>Amazon Athena User Guide</i>. This request does not execute the query
13
13
  * but returns results. Use <a>StartQueryExecution</a> to run a query.</p>
14
+ * <p>If the original query execution ran using an <a>ResultConfiguration$ExpectedBucketOwner</a> setting, the setting also
15
+ * applies to Amazon S3 read operations when <code>GetQueryResults</code> is
16
+ * called. If an expected bucket owner has been specified and the query results are in an
17
+ * Amazon S3 bucket whose owner account ID is different from the expected
18
+ * bucket owner, the <code>GetQueryResults</code> call fails with an Amazon S3
19
+ * permissions error.</p>
14
20
  * <p>To stream query results successfully, the IAM principal with permission to call
15
21
  * <code>GetQueryResults</code> also must have permissions to the Amazon S3
16
22
  * <code>GetObject</code> action for the Athena query results location.</p>
@@ -153,7 +153,8 @@ export declare namespace EngineVersion {
153
153
  */
154
154
  export interface QueryExecutionContext {
155
155
  /**
156
- * <p>The name of the database used in the query execution. The database must exist in the catalog.</p>
156
+ * <p>The name of the database used in the query execution. The database must exist in the
157
+ * catalog.</p>
157
158
  */
158
159
  Database?: string;
159
160
  /**
@@ -224,6 +225,20 @@ export interface ResultConfiguration {
224
225
  * also uses the location for storing query results specified in the workgroup. 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>
225
226
  */
226
227
  EncryptionConfiguration?: EncryptionConfiguration;
228
+ /**
229
+ * <p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.
230
+ * If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
231
+ * makes Amazon S3 calls to your specified output location. If the
232
+ * <code>ExpectedBucketOwner</code>
233
+ * Amazon Web Services account ID does not match the actual owner of the Amazon S3
234
+ * bucket, the call fails with a permissions error.</p>
235
+ * <p>This is a client-side setting. If workgroup settings override client-side settings,
236
+ * then the query uses the <code>ExpectedBucketOwner</code> setting that is specified for
237
+ * the workgroup, and also uses the location for storing query results specified in the
238
+ * workgroup. See <a>WorkGroupConfiguration$EnforceWorkGroupConfiguration</a>
239
+ * and <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override Client-Side Settings</a>.</p>
240
+ */
241
+ ExpectedBucketOwner?: string;
227
242
  }
228
243
  export declare namespace ResultConfiguration {
229
244
  /**
@@ -288,6 +303,33 @@ export declare namespace QueryExecutionStatistics {
288
303
  */
289
304
  const filterSensitiveLog: (obj: QueryExecutionStatistics) => any;
290
305
  }
306
+ /**
307
+ * <p>Provides information about an Athena query error. The
308
+ * <code>AthenaError</code> feature provides standardized error information to help you
309
+ * understand failed queries and take steps after a query failure occurs.
310
+ * <code>AthenaError</code> includes an <code>ErrorCategory</code> field that specifies
311
+ * whether the cause of the failed query is due to system error, user error, or unknown
312
+ * error.</p>
313
+ */
314
+ export interface AthenaError {
315
+ /**
316
+ * <p>An integer value that specifies the category of a query failure error. The following
317
+ * list shows the category for each integer value.</p>
318
+ * <p>
319
+ * <b>1</b> - System</p>
320
+ * <p>
321
+ * <b>2</b> - User</p>
322
+ * <p>
323
+ * <b>3</b> - Unknown</p>
324
+ */
325
+ ErrorCategory?: number;
326
+ }
327
+ export declare namespace AthenaError {
328
+ /**
329
+ * @internal
330
+ */
331
+ const filterSensitiveLog: (obj: AthenaError) => any;
332
+ }
291
333
  export declare enum QueryExecutionState {
292
334
  CANCELLED = "CANCELLED",
293
335
  FAILED = "FAILED",
@@ -327,6 +369,10 @@ export interface QueryExecutionStatus {
327
369
  * <p>The date and time that the query completed.</p>
328
370
  */
329
371
  CompletionDateTime?: Date;
372
+ /**
373
+ * <p>Provides information about an Athena query error.</p>
374
+ */
375
+ AthenaError?: AthenaError;
330
376
  }
331
377
  export declare namespace QueryExecutionStatus {
332
378
  /**
@@ -472,8 +518,9 @@ export declare enum DataCatalogType {
472
518
  export interface CreateDataCatalogInput {
473
519
  /**
474
520
  * <p>The name of the data catalog to create. The catalog name must be unique for the
475
- * Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at
476
- * sign, or hyphen characters.</p>
521
+ * Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at
522
+ * sign, or hyphen characters. The remainder of the length constraint of 256 is reserved
523
+ * for use by Athena.</p>
477
524
  */
478
525
  Name: string | undefined;
479
526
  /**
@@ -703,7 +750,7 @@ export interface WorkGroupConfiguration {
703
750
  * workgroup members cannot query data from Requester Pays buckets, and queries that
704
751
  * retrieve data from Requester Pays buckets cause an error. The default is
705
752
  * <code>false</code>. For more information about Requester Pays buckets, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html">Requester
706
- * Pays Buckets</a> in the <i>Amazon Simple Storage Service Developer
753
+ * Pays Buckets</a> in the <i>Amazon Simple Storage Service Developer
707
754
  * Guide</i>.</p>
708
755
  */
709
756
  RequesterPaysEnabled?: boolean;
@@ -939,8 +986,9 @@ export declare namespace GetDataCatalogInput {
939
986
  */
940
987
  export interface DataCatalog {
941
988
  /**
942
- * <p>The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at sign,
943
- * or hyphen characters.</p>
989
+ * <p>The name of the data catalog. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign,
990
+ * or hyphen characters. The remainder of the length constraint of 256 is reserved for use
991
+ * by Athena.</p>
944
992
  */
945
993
  Name: string | undefined;
946
994
  /**
@@ -1551,7 +1599,9 @@ export declare namespace ListDataCatalogsInput {
1551
1599
  */
1552
1600
  export interface DataCatalogSummary {
1553
1601
  /**
1554
- * <p>The name of the data catalog.</p>
1602
+ * <p>The name of the data catalog. The catalog name is unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign,
1603
+ * or hyphen characters. The remainder of the length constraint of 256 is reserved for use
1604
+ * by Athena.</p>
1555
1605
  */
1556
1606
  CatalogName?: string;
1557
1607
  /**
@@ -2060,8 +2110,9 @@ export declare namespace UntagResourceOutput {
2060
2110
  export interface UpdateDataCatalogInput {
2061
2111
  /**
2062
2112
  * <p>The name of the data catalog to update. The catalog name must be unique for the
2063
- * Amazon Web Services account and can use a maximum of 128 alphanumeric, underscore, at
2064
- * sign, or hyphen characters.</p>
2113
+ * Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at
2114
+ * sign, or hyphen characters. The remainder of the length constraint of 256 is reserved
2115
+ * for use by Athena.</p>
2065
2116
  */
2066
2117
  Name: string | undefined;
2067
2118
  /**
@@ -2186,7 +2237,7 @@ export interface ResultConfigurationUpdates {
2186
2237
  * to null. If set to "false" or not set, and a value is present in the
2187
2238
  * <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the
2188
2239
  * client-side setting), the <code>OutputLocation</code> in the workgroup's
2189
- * <code>ResultConfiguration</code> will be updated with the new value. For more
2240
+ * <code>ResultConfiguration</code> is updated with the new value. For more
2190
2241
  * information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2191
2242
  * Client-Side Settings</a>.</p>
2192
2243
  */
@@ -2201,11 +2252,34 @@ export interface ResultConfigurationUpdates {
2201
2252
  * and set to null. If set to "false" or not set, and a value is present in the
2202
2253
  * <code>EncryptionConfiguration</code> in <code>ResultConfigurationUpdates</code> (the
2203
2254
  * client-side setting), the <code>EncryptionConfiguration</code> in the workgroup's
2204
- * <code>ResultConfiguration</code> will be updated with the new value. For more
2255
+ * <code>ResultConfiguration</code> is updated with the new value. For more
2205
2256
  * information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
2206
2257
  * Client-Side Settings</a>.</p>
2207
2258
  */
2208
2259
  RemoveEncryptionConfiguration?: boolean;
2260
+ /**
2261
+ * <p>The Amazon Web Services account ID that you expect to be the owner of the Amazon S3 bucket specified by <a>ResultConfiguration$OutputLocation</a>.
2262
+ * If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
2263
+ * makes Amazon S3 calls to your specified output location. If the
2264
+ * <code>ExpectedBucketOwner</code>
2265
+ * Amazon Web Services account ID does not match the actual owner of the Amazon S3
2266
+ * bucket, the call fails with a permissions error.</p>
2267
+ *
2268
+ * <p>If workgroup settings override client-side settings, then the query uses the
2269
+ * <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and
2270
+ * also uses the location for storing query results specified in the workgroup. 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>
2271
+ */
2272
+ ExpectedBucketOwner?: string;
2273
+ /**
2274
+ * <p>If set to "true", removes the Amazon Web Services account ID previously specified for
2275
+ * <a>ResultConfiguration$ExpectedBucketOwner</a>. If set to "false" or not
2276
+ * set, and a value is present in the <code>ExpectedBucketOwner</code> in
2277
+ * <code>ResultConfigurationUpdates</code> (the client-side setting), the
2278
+ * <code>ExpectedBucketOwner</code> in the workgroup's <code>ResultConfiguration</code>
2279
+ * is 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
2280
+ * Client-Side Settings</a>.</p>
2281
+ */
2282
+ RemoveExpectedBucketOwner?: boolean;
2209
2283
  }
2210
2284
  export declare namespace ResultConfigurationUpdates {
2211
2285
  /**
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.47.1",
4
+ "version": "3.50.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,43 +18,49 @@
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.47.1",
22
- "@aws-sdk/config-resolver": "3.47.1",
23
- "@aws-sdk/credential-provider-node": "3.47.1",
24
- "@aws-sdk/fetch-http-handler": "3.47.1",
25
- "@aws-sdk/hash-node": "3.47.1",
26
- "@aws-sdk/invalid-dependency": "3.47.1",
27
- "@aws-sdk/middleware-content-length": "3.47.1",
28
- "@aws-sdk/middleware-host-header": "3.47.1",
29
- "@aws-sdk/middleware-logger": "3.47.1",
30
- "@aws-sdk/middleware-retry": "3.47.1",
31
- "@aws-sdk/middleware-serde": "3.47.1",
32
- "@aws-sdk/middleware-signing": "3.47.1",
33
- "@aws-sdk/middleware-stack": "3.47.1",
34
- "@aws-sdk/middleware-user-agent": "3.47.1",
35
- "@aws-sdk/node-config-provider": "3.47.1",
36
- "@aws-sdk/node-http-handler": "3.47.1",
37
- "@aws-sdk/protocol-http": "3.47.1",
38
- "@aws-sdk/smithy-client": "3.47.1",
39
- "@aws-sdk/types": "3.47.1",
40
- "@aws-sdk/url-parser": "3.47.1",
41
- "@aws-sdk/util-base64-browser": "3.47.1",
42
- "@aws-sdk/util-base64-node": "3.47.1",
43
- "@aws-sdk/util-body-length-browser": "3.47.1",
44
- "@aws-sdk/util-body-length-node": "3.47.1",
45
- "@aws-sdk/util-defaults-mode-browser": "3.47.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.47.1",
47
- "@aws-sdk/util-user-agent-browser": "3.47.1",
48
- "@aws-sdk/util-user-agent-node": "3.47.1",
49
- "@aws-sdk/util-utf8-browser": "3.47.1",
50
- "@aws-sdk/util-utf8-node": "3.47.1",
21
+ "@aws-sdk/client-sts": "3.50.0",
22
+ "@aws-sdk/config-resolver": "3.50.0",
23
+ "@aws-sdk/credential-provider-node": "3.50.0",
24
+ "@aws-sdk/fetch-http-handler": "3.50.0",
25
+ "@aws-sdk/hash-node": "3.50.0",
26
+ "@aws-sdk/invalid-dependency": "3.50.0",
27
+ "@aws-sdk/middleware-content-length": "3.50.0",
28
+ "@aws-sdk/middleware-host-header": "3.50.0",
29
+ "@aws-sdk/middleware-logger": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.50.0",
31
+ "@aws-sdk/middleware-serde": "3.50.0",
32
+ "@aws-sdk/middleware-signing": "3.50.0",
33
+ "@aws-sdk/middleware-stack": "3.50.0",
34
+ "@aws-sdk/middleware-user-agent": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.50.0",
36
+ "@aws-sdk/node-http-handler": "3.50.0",
37
+ "@aws-sdk/protocol-http": "3.50.0",
38
+ "@aws-sdk/smithy-client": "3.50.0",
39
+ "@aws-sdk/types": "3.50.0",
40
+ "@aws-sdk/url-parser": "3.50.0",
41
+ "@aws-sdk/util-base64-browser": "3.49.0",
42
+ "@aws-sdk/util-base64-node": "3.49.0",
43
+ "@aws-sdk/util-body-length-browser": "3.49.0",
44
+ "@aws-sdk/util-body-length-node": "3.49.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.50.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.50.0",
49
+ "@aws-sdk/util-utf8-browser": "3.49.0",
50
+ "@aws-sdk/util-utf8-node": "3.49.0",
51
51
  "tslib": "^2.3.0",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
55
+ "@aws-sdk/service-client-documentation-generator": "3.49.0",
56
+ "@tsconfig/recommended": "1.0.1",
56
57
  "@types/node": "^12.7.5",
57
- "@types/uuid": "^8.3.0"
58
+ "@types/uuid": "^8.3.0",
59
+ "concurrently": "7.0.0",
60
+ "downlevel-dts": "0.7.0",
61
+ "rimraf": "3.0.2",
62
+ "typedoc": "0.19.2",
63
+ "typescript": "~4.3.5"
58
64
  },
59
65
  "engines": {
60
66
  "node": ">=12.0.0"