@aws-sdk/client-athena 3.48.0 → 3.52.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 +41 -0
- package/dist-cjs/models/models_0.js +9 -3
- package/dist-cjs/protocols/Aws_json1_1.js +16 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +18 -5
- package/dist-types/models/models_0.d.ts +91 -11
- package/dist-types/ts3.4/models/models_0.d.ts +19 -0
- package/package.json +40 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/02/18 ([#3335](https://github.com/aws/aws-sdk-js-v3/issues/3335)) ([717b06f](https://github.com/aws/aws-sdk-js-v3/commit/717b06fc43e9876a6f8040147b75ad5da38b1e0f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-athena
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **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))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
48
|
|
|
8
49
|
**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,12 @@ 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
|
+
ErrorType: smithy_client_1.expectInt32(output.ErrorType),
|
|
2782
|
+
};
|
|
2783
|
+
};
|
|
2772
2784
|
const deserializeAws_json1_1BatchGetNamedQueryOutput = (output, context) => {
|
|
2773
2785
|
return {
|
|
2774
2786
|
NamedQueries: output.NamedQueries !== undefined && output.NamedQueries !== null
|
|
@@ -3216,6 +3228,9 @@ const deserializeAws_json1_1QueryExecutionStatistics = (output, context) => {
|
|
|
3216
3228
|
};
|
|
3217
3229
|
const deserializeAws_json1_1QueryExecutionStatus = (output, context) => {
|
|
3218
3230
|
return {
|
|
3231
|
+
AthenaError: output.AthenaError !== undefined && output.AthenaError !== null
|
|
3232
|
+
? deserializeAws_json1_1AthenaError(output.AthenaError, context)
|
|
3233
|
+
: undefined,
|
|
3219
3234
|
CompletionDateTime: output.CompletionDateTime !== undefined && output.CompletionDateTime !== null
|
|
3220
3235
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CompletionDateTime)))
|
|
3221
3236
|
: undefined,
|
|
@@ -3237,6 +3252,7 @@ const deserializeAws_json1_1ResultConfiguration = (output, context) => {
|
|
|
3237
3252
|
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3238
3253
|
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3239
3254
|
: undefined,
|
|
3255
|
+
ExpectedBucketOwner: smithy_client_1.expectString(output.ExpectedBucketOwner),
|
|
3240
3256
|
OutputLocation: smithy_client_1.expectString(output.OutputLocation),
|
|
3241
3257
|
};
|
|
3242
3258
|
};
|
|
@@ -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,12 @@ 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
|
+
ErrorType: __expectInt32(output.ErrorType),
|
|
2951
|
+
};
|
|
2952
|
+
};
|
|
2944
2953
|
var deserializeAws_json1_1BatchGetNamedQueryOutput = function (output, context) {
|
|
2945
2954
|
return {
|
|
2946
2955
|
NamedQueries: output.NamedQueries !== undefined && output.NamedQueries !== null
|
|
@@ -3387,6 +3396,9 @@ var deserializeAws_json1_1QueryExecutionStatistics = function (output, context)
|
|
|
3387
3396
|
};
|
|
3388
3397
|
var deserializeAws_json1_1QueryExecutionStatus = function (output, context) {
|
|
3389
3398
|
return {
|
|
3399
|
+
AthenaError: output.AthenaError !== undefined && output.AthenaError !== null
|
|
3400
|
+
? deserializeAws_json1_1AthenaError(output.AthenaError, context)
|
|
3401
|
+
: undefined,
|
|
3390
3402
|
CompletionDateTime: output.CompletionDateTime !== undefined && output.CompletionDateTime !== null
|
|
3391
3403
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDateTime)))
|
|
3392
3404
|
: undefined,
|
|
@@ -3408,6 +3420,7 @@ var deserializeAws_json1_1ResultConfiguration = function (output, context) {
|
|
|
3408
3420
|
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3409
3421
|
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3410
3422
|
: undefined,
|
|
3423
|
+
ExpectedBucketOwner: __expectString(output.ExpectedBucketOwner),
|
|
3411
3424
|
OutputLocation: __expectString(output.OutputLocation),
|
|
3412
3425
|
};
|
|
3413
3426
|
};
|
|
@@ -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,39 @@ 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
|
+
* <p>An integer value that provides specific information about an Athena query
|
|
328
|
+
* error. For the meaning of specific values, see the <a href="https://docs.aws.amazon.com/athena/latest/ug/error-reference.html#error-reference-error-type-reference">Error Type Reference</a> in the <i>Amazon Athena User
|
|
329
|
+
* Guide</i>.</p>
|
|
330
|
+
*/
|
|
331
|
+
ErrorType?: number;
|
|
332
|
+
}
|
|
333
|
+
export declare namespace AthenaError {
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
*/
|
|
337
|
+
const filterSensitiveLog: (obj: AthenaError) => any;
|
|
338
|
+
}
|
|
291
339
|
export declare enum QueryExecutionState {
|
|
292
340
|
CANCELLED = "CANCELLED",
|
|
293
341
|
FAILED = "FAILED",
|
|
@@ -327,6 +375,10 @@ export interface QueryExecutionStatus {
|
|
|
327
375
|
* <p>The date and time that the query completed.</p>
|
|
328
376
|
*/
|
|
329
377
|
CompletionDateTime?: Date;
|
|
378
|
+
/**
|
|
379
|
+
* <p>Provides information about an Athena query error.</p>
|
|
380
|
+
*/
|
|
381
|
+
AthenaError?: AthenaError;
|
|
330
382
|
}
|
|
331
383
|
export declare namespace QueryExecutionStatus {
|
|
332
384
|
/**
|
|
@@ -472,8 +524,9 @@ export declare enum DataCatalogType {
|
|
|
472
524
|
export interface CreateDataCatalogInput {
|
|
473
525
|
/**
|
|
474
526
|
* <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
|
|
527
|
+
* Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at
|
|
528
|
+
* sign, or hyphen characters. The remainder of the length constraint of 256 is reserved
|
|
529
|
+
* for use by Athena.</p>
|
|
477
530
|
*/
|
|
478
531
|
Name: string | undefined;
|
|
479
532
|
/**
|
|
@@ -703,7 +756,7 @@ export interface WorkGroupConfiguration {
|
|
|
703
756
|
* workgroup members cannot query data from Requester Pays buckets, and queries that
|
|
704
757
|
* retrieve data from Requester Pays buckets cause an error. The default is
|
|
705
758
|
* <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
|
-
*
|
|
759
|
+
* Pays Buckets</a> in the <i>Amazon Simple Storage Service Developer
|
|
707
760
|
* Guide</i>.</p>
|
|
708
761
|
*/
|
|
709
762
|
RequesterPaysEnabled?: boolean;
|
|
@@ -939,8 +992,9 @@ export declare namespace GetDataCatalogInput {
|
|
|
939
992
|
*/
|
|
940
993
|
export interface DataCatalog {
|
|
941
994
|
/**
|
|
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
|
|
995
|
+
* <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,
|
|
996
|
+
* or hyphen characters. The remainder of the length constraint of 256 is reserved for use
|
|
997
|
+
* by Athena.</p>
|
|
944
998
|
*/
|
|
945
999
|
Name: string | undefined;
|
|
946
1000
|
/**
|
|
@@ -1551,7 +1605,9 @@ export declare namespace ListDataCatalogsInput {
|
|
|
1551
1605
|
*/
|
|
1552
1606
|
export interface DataCatalogSummary {
|
|
1553
1607
|
/**
|
|
1554
|
-
* <p>The name of the data catalog
|
|
1608
|
+
* <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,
|
|
1609
|
+
* or hyphen characters. The remainder of the length constraint of 256 is reserved for use
|
|
1610
|
+
* by Athena.</p>
|
|
1555
1611
|
*/
|
|
1556
1612
|
CatalogName?: string;
|
|
1557
1613
|
/**
|
|
@@ -2060,8 +2116,9 @@ export declare namespace UntagResourceOutput {
|
|
|
2060
2116
|
export interface UpdateDataCatalogInput {
|
|
2061
2117
|
/**
|
|
2062
2118
|
* <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
|
|
2119
|
+
* Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at
|
|
2120
|
+
* sign, or hyphen characters. The remainder of the length constraint of 256 is reserved
|
|
2121
|
+
* for use by Athena.</p>
|
|
2065
2122
|
*/
|
|
2066
2123
|
Name: string | undefined;
|
|
2067
2124
|
/**
|
|
@@ -2184,9 +2241,9 @@ export interface ResultConfigurationUpdates {
|
|
|
2184
2241
|
* <p>If set to "true", indicates that the previously-specified query results location (also
|
|
2185
2242
|
* known as a client-side setting) for queries in this workgroup should be ignored and set
|
|
2186
2243
|
* to null. If set to "false" or not set, and a value is present in the
|
|
2187
|
-
*
|
|
2244
|
+
* <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the
|
|
2188
2245
|
* client-side setting), the <code>OutputLocation</code> in the workgroup's
|
|
2189
|
-
*
|
|
2246
|
+
* <code>ResultConfiguration</code> will be updated with the new value. For more
|
|
2190
2247
|
* information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
|
|
2191
2248
|
* Client-Side Settings</a>.</p>
|
|
2192
2249
|
*/
|
|
@@ -2206,6 +2263,29 @@ export interface ResultConfigurationUpdates {
|
|
|
2206
2263
|
* Client-Side Settings</a>.</p>
|
|
2207
2264
|
*/
|
|
2208
2265
|
RemoveEncryptionConfiguration?: boolean;
|
|
2266
|
+
/**
|
|
2267
|
+
* <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>.
|
|
2268
|
+
* If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
|
|
2269
|
+
* makes Amazon S3 calls to your specified output location. If the
|
|
2270
|
+
* <code>ExpectedBucketOwner</code>
|
|
2271
|
+
* Amazon Web Services account ID does not match the actual owner of the Amazon S3
|
|
2272
|
+
* bucket, the call fails with a permissions error.</p>
|
|
2273
|
+
*
|
|
2274
|
+
* <p>If workgroup settings override client-side settings, then the query uses the
|
|
2275
|
+
* <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and
|
|
2276
|
+
* 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>
|
|
2277
|
+
*/
|
|
2278
|
+
ExpectedBucketOwner?: string;
|
|
2279
|
+
/**
|
|
2280
|
+
* <p>If set to "true", removes the Amazon Web Services account ID previously specified for
|
|
2281
|
+
* <a>ResultConfiguration$ExpectedBucketOwner</a>. If set to "false" or not
|
|
2282
|
+
* set, and a value is present in the <code>ExpectedBucketOwner</code> in
|
|
2283
|
+
* <code>ResultConfigurationUpdates</code> (the client-side setting), the
|
|
2284
|
+
* <code>ExpectedBucketOwner</code> in the workgroup's <code>ResultConfiguration</code>
|
|
2285
|
+
* 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
|
|
2286
|
+
* Client-Side Settings</a>.</p>
|
|
2287
|
+
*/
|
|
2288
|
+
RemoveExpectedBucketOwner?: boolean;
|
|
2209
2289
|
}
|
|
2210
2290
|
export declare namespace ResultConfigurationUpdates {
|
|
2211
2291
|
/**
|
|
@@ -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,17 @@ 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
|
+
ErrorType?: number;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace AthenaError {
|
|
159
|
+
|
|
160
|
+
const filterSensitiveLog: (obj: AthenaError) => any;
|
|
161
|
+
}
|
|
149
162
|
export declare enum QueryExecutionState {
|
|
150
163
|
CANCELLED = "CANCELLED",
|
|
151
164
|
FAILED = "FAILED",
|
|
@@ -163,6 +176,8 @@ export interface QueryExecutionStatus {
|
|
|
163
176
|
SubmissionDateTime?: Date;
|
|
164
177
|
|
|
165
178
|
CompletionDateTime?: Date;
|
|
179
|
+
|
|
180
|
+
AthenaError?: AthenaError;
|
|
166
181
|
}
|
|
167
182
|
export declare namespace QueryExecutionStatus {
|
|
168
183
|
|
|
@@ -1102,6 +1117,10 @@ export interface ResultConfigurationUpdates {
|
|
|
1102
1117
|
EncryptionConfiguration?: EncryptionConfiguration;
|
|
1103
1118
|
|
|
1104
1119
|
RemoveEncryptionConfiguration?: boolean;
|
|
1120
|
+
|
|
1121
|
+
ExpectedBucketOwner?: string;
|
|
1122
|
+
|
|
1123
|
+
RemoveExpectedBucketOwner?: boolean;
|
|
1105
1124
|
}
|
|
1106
1125
|
export declare namespace ResultConfigurationUpdates {
|
|
1107
1126
|
|
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.52.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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "rimraf ./dist-*"
|
|
12
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist-cjs/index.js",
|
|
15
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -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.52.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.52.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.52.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.52.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.52.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.52.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.52.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.52.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.52.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.52.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.52.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.52.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.52.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.52.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.52.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.52.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.52.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.52.0",
|
|
39
|
+
"@aws-sdk/types": "3.52.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.52.0",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.52.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.52.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.52.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.52.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.52.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.52.0",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.52.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.52.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"
|