@aws-sdk/client-athena 3.47.2 → 3.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/dist-cjs/models/models_0.js +9 -3
- package/dist-cjs/protocols/Aws_json1_1.js +15 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +17 -5
- package/dist-types/Athena.d.ts +6 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +85 -11
- package/dist-types/ts3.4/models/models_0.d.ts +17 -0
- package/package.json +39 -33
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.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-athena
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @aws-sdk/client-athena
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
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.
|
|
4
|
-
exports.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
};
|
package/dist-types/Athena.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
476
|
-
* sign, or hyphen characters
|
|
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
|
-
*
|
|
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
|
|
943
|
-
* or hyphen characters
|
|
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
|
|
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
|
|
2064
|
-
* sign, or hyphen characters
|
|
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>
|
|
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>
|
|
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
|
/**
|
|
@@ -115,6 +115,8 @@ export interface ResultConfiguration {
|
|
|
115
115
|
OutputLocation?: string;
|
|
116
116
|
|
|
117
117
|
EncryptionConfiguration?: EncryptionConfiguration;
|
|
118
|
+
|
|
119
|
+
ExpectedBucketOwner?: string;
|
|
118
120
|
}
|
|
119
121
|
export declare namespace ResultConfiguration {
|
|
120
122
|
|
|
@@ -146,6 +148,15 @@ export declare namespace QueryExecutionStatistics {
|
|
|
146
148
|
|
|
147
149
|
const filterSensitiveLog: (obj: QueryExecutionStatistics) => any;
|
|
148
150
|
}
|
|
151
|
+
|
|
152
|
+
export interface AthenaError {
|
|
153
|
+
|
|
154
|
+
ErrorCategory?: number;
|
|
155
|
+
}
|
|
156
|
+
export declare namespace AthenaError {
|
|
157
|
+
|
|
158
|
+
const filterSensitiveLog: (obj: AthenaError) => any;
|
|
159
|
+
}
|
|
149
160
|
export declare enum QueryExecutionState {
|
|
150
161
|
CANCELLED = "CANCELLED",
|
|
151
162
|
FAILED = "FAILED",
|
|
@@ -163,6 +174,8 @@ export interface QueryExecutionStatus {
|
|
|
163
174
|
SubmissionDateTime?: Date;
|
|
164
175
|
|
|
165
176
|
CompletionDateTime?: Date;
|
|
177
|
+
|
|
178
|
+
AthenaError?: AthenaError;
|
|
166
179
|
}
|
|
167
180
|
export declare namespace QueryExecutionStatus {
|
|
168
181
|
|
|
@@ -1102,6 +1115,10 @@ export interface ResultConfigurationUpdates {
|
|
|
1102
1115
|
EncryptionConfiguration?: EncryptionConfiguration;
|
|
1103
1116
|
|
|
1104
1117
|
RemoveEncryptionConfiguration?: boolean;
|
|
1118
|
+
|
|
1119
|
+
ExpectedBucketOwner?: string;
|
|
1120
|
+
|
|
1121
|
+
RemoveExpectedBucketOwner?: boolean;
|
|
1105
1122
|
}
|
|
1106
1123
|
export declare namespace ResultConfigurationUpdates {
|
|
1107
1124
|
|
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.
|
|
4
|
+
"version": "3.51.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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.51.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.51.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.51.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.51.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.51.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.51.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.50.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.51.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.
|
|
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"
|