@aws-sdk/client-athena 3.56.0 → 3.72.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 +27 -0
- package/README.md +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/Athena.d.ts +2 -1
- package/dist-types/commands/UpdateNamedQueryCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +25 -18
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.72.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.71.0...v3.72.0) (2022-04-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-athena:** This release adds subfields, ErrorMessage, Retryable, to the AthenaError response object in the GetQueryExecution API when a query fails. ([905ab58](https://github.com/aws/aws-sdk-js-v3/commit/905ab589eb3cb490c61b0158494e4d2c47857039))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.67.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.66.0...v3.67.0) (2022-04-08)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-athena
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-athena
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-athena
|
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ but they are supported by the send operation.
|
|
|
128
128
|
```js
|
|
129
129
|
// callbacks.
|
|
130
130
|
client.send(command, (err, data) => {
|
|
131
|
-
//
|
|
131
|
+
// process err and data.
|
|
132
132
|
});
|
|
133
133
|
```
|
|
134
134
|
|
|
@@ -162,7 +162,7 @@ client
|
|
|
162
162
|
|
|
163
163
|
// callbacks.
|
|
164
164
|
client.batchGetNamedQuery(params, (err, data) => {
|
|
165
|
-
//
|
|
165
|
+
// process err and data.
|
|
166
166
|
});
|
|
167
167
|
```
|
|
168
168
|
|
|
@@ -2248,7 +2248,9 @@ const deserializeAws_json1_1AclConfiguration = (output, context) => {
|
|
|
2248
2248
|
const deserializeAws_json1_1AthenaError = (output, context) => {
|
|
2249
2249
|
return {
|
|
2250
2250
|
ErrorCategory: (0, smithy_client_1.expectInt32)(output.ErrorCategory),
|
|
2251
|
+
ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
|
|
2251
2252
|
ErrorType: (0, smithy_client_1.expectInt32)(output.ErrorType),
|
|
2253
|
+
Retryable: (0, smithy_client_1.expectBoolean)(output.Retryable),
|
|
2252
2254
|
};
|
|
2253
2255
|
};
|
|
2254
2256
|
const deserializeAws_json1_1BatchGetNamedQueryOutput = (output, context) => {
|
|
@@ -2648,7 +2648,9 @@ var deserializeAws_json1_1AclConfiguration = function (output, context) {
|
|
|
2648
2648
|
var deserializeAws_json1_1AthenaError = function (output, context) {
|
|
2649
2649
|
return {
|
|
2650
2650
|
ErrorCategory: __expectInt32(output.ErrorCategory),
|
|
2651
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
2651
2652
|
ErrorType: __expectInt32(output.ErrorType),
|
|
2653
|
+
Retryable: __expectBoolean(output.Retryable),
|
|
2652
2654
|
};
|
|
2653
2655
|
};
|
|
2654
2656
|
var deserializeAws_json1_1BatchGetNamedQueryOutput = function (output, context) {
|
package/dist-types/Athena.d.ts
CHANGED
|
@@ -319,7 +319,8 @@ export declare class Athena extends AthenaClient {
|
|
|
319
319
|
updateDataCatalog(args: UpdateDataCatalogCommandInput, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
|
|
320
320
|
updateDataCatalog(args: UpdateDataCatalogCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDataCatalogCommandOutput) => void): void;
|
|
321
321
|
/**
|
|
322
|
-
* <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be
|
|
322
|
+
* <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be
|
|
323
|
+
* updated.</p>
|
|
323
324
|
*/
|
|
324
325
|
updateNamedQuery(args: UpdateNamedQueryCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamedQueryCommandOutput>;
|
|
325
326
|
updateNamedQuery(args: UpdateNamedQueryCommandInput, cb: (err: any, data?: UpdateNamedQueryCommandOutput) => void): void;
|
|
@@ -7,7 +7,8 @@ export interface UpdateNamedQueryCommandInput extends UpdateNamedQueryInput {
|
|
|
7
7
|
export interface UpdateNamedQueryCommandOutput extends UpdateNamedQueryOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be
|
|
10
|
+
* <p>Updates a <a>NamedQuery</a> object. The database or workgroup cannot be
|
|
11
|
+
* updated.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -17,8 +17,7 @@ export interface AclConfiguration {
|
|
|
17
17
|
* <code>BUCKET_OWNER_FULL_CONTROL</code>. If a query runs in a workgroup and the
|
|
18
18
|
* workgroup overrides client-side settings, then the Amazon S3 canned ACL
|
|
19
19
|
* specified in the workgroup's settings is used for all queries that run in the workgroup.
|
|
20
|
-
* For more information about Amazon S3 canned ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl">Canned ACL</a> in the <i>Amazon S3 User
|
|
21
|
-
* Guide</i>.</p>
|
|
20
|
+
* For more information about Amazon S3 canned ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl">Canned ACL</a> in the <i>Amazon S3 User Guide</i>.</p>
|
|
22
21
|
*/
|
|
23
22
|
S3AclOption: S3AclOption | string | undefined;
|
|
24
23
|
}
|
|
@@ -41,8 +40,8 @@ export declare namespace BatchGetNamedQueryInput {
|
|
|
41
40
|
const filterSensitiveLog: (obj: BatchGetNamedQueryInput) => any;
|
|
42
41
|
}
|
|
43
42
|
/**
|
|
44
|
-
* <p>A query, where <code>QueryString</code> contains the SQL statements that
|
|
45
|
-
*
|
|
43
|
+
* <p>A query, where <code>QueryString</code> contains the SQL statements that make up the
|
|
44
|
+
* query.</p>
|
|
46
45
|
*/
|
|
47
46
|
export interface NamedQuery {
|
|
48
47
|
/**
|
|
@@ -212,21 +211,21 @@ export declare enum EncryptionOption {
|
|
|
212
211
|
}
|
|
213
212
|
/**
|
|
214
213
|
* <p>If query results are encrypted in Amazon S3, indicates the encryption option
|
|
215
|
-
* used (for example, <code>
|
|
214
|
+
* used (for example, <code>SSE_KMS</code> or <code>CSE_KMS</code>) and key
|
|
216
215
|
* information.</p>
|
|
217
216
|
*/
|
|
218
217
|
export interface EncryptionConfiguration {
|
|
219
218
|
/**
|
|
220
|
-
* <p>Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (<code>
|
|
221
|
-
* (<code>
|
|
222
|
-
*
|
|
219
|
+
* <p>Indicates whether Amazon S3 server-side encryption with Amazon S3-managed keys (<code>SSE_S3</code>), server-side encryption with KMS-managed keys
|
|
220
|
+
* (<code>SSE_KMS</code>), or client-side encryption with KMS-managed keys
|
|
221
|
+
* (<code>CSE_KMS</code>) is used.</p>
|
|
223
222
|
* <p>If a query runs in a workgroup and the workgroup overrides client-side settings, then
|
|
224
223
|
* the workgroup's setting for encryption is used. It specifies whether query results must
|
|
225
224
|
* be encrypted, for all queries that run in this workgroup. </p>
|
|
226
225
|
*/
|
|
227
226
|
EncryptionOption: EncryptionOption | string | undefined;
|
|
228
227
|
/**
|
|
229
|
-
* <p>For <code>
|
|
228
|
+
* <p>For <code>SSE_KMS</code> and <code>CSE_KMS</code>, this is the KMS key ARN or
|
|
230
229
|
* ID.</p>
|
|
231
230
|
*/
|
|
232
231
|
KmsKey?: string;
|
|
@@ -256,7 +255,7 @@ export interface ResultConfiguration {
|
|
|
256
255
|
OutputLocation?: string;
|
|
257
256
|
/**
|
|
258
257
|
* <p>If query results are encrypted in Amazon S3, indicates the encryption option
|
|
259
|
-
* used (for example, <code>
|
|
258
|
+
* used (for example, <code>SSE_KMS</code> or <code>CSE_KMS</code>) and key information.
|
|
260
259
|
* This is a client-side setting. If workgroup settings override client-side settings, then
|
|
261
260
|
* the query uses the encryption configuration that is specified for the workgroup, and
|
|
262
261
|
* 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>
|
|
@@ -266,7 +265,7 @@ export interface ResultConfiguration {
|
|
|
266
265
|
* <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>.
|
|
267
266
|
* If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
|
|
268
267
|
* makes Amazon S3 calls to your specified output location. If the
|
|
269
|
-
*
|
|
268
|
+
* <code>ExpectedBucketOwner</code>
|
|
270
269
|
* Amazon Web Services account ID does not match the actual owner of the Amazon S3
|
|
271
270
|
* bucket, the call fails with a permissions error.</p>
|
|
272
271
|
* <p>This is a client-side setting. If workgroup settings override client-side settings,
|
|
@@ -375,6 +374,14 @@ export interface AthenaError {
|
|
|
375
374
|
* Guide</i>.</p>
|
|
376
375
|
*/
|
|
377
376
|
ErrorType?: number;
|
|
377
|
+
/**
|
|
378
|
+
* <p>True if the query might succeed if resubmitted.</p>
|
|
379
|
+
*/
|
|
380
|
+
Retryable?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* <p>Contains a short description of the error that occurred.</p>
|
|
383
|
+
*/
|
|
384
|
+
ErrorMessage?: string;
|
|
378
385
|
}
|
|
379
386
|
export declare namespace AthenaError {
|
|
380
387
|
/**
|
|
@@ -2331,9 +2338,9 @@ export interface ResultConfigurationUpdates {
|
|
|
2331
2338
|
* <p>If set to "true", indicates that the previously-specified query results location (also
|
|
2332
2339
|
* known as a client-side setting) for queries in this workgroup should be ignored and set
|
|
2333
2340
|
* to null. If set to "false" or not set, and a value is present in the
|
|
2334
|
-
*
|
|
2341
|
+
* <code>OutputLocation</code> in <code>ResultConfigurationUpdates</code> (the
|
|
2335
2342
|
* client-side setting), the <code>OutputLocation</code> in the workgroup's
|
|
2336
|
-
*
|
|
2343
|
+
* <code>ResultConfiguration</code> will be updated with the new value. For more
|
|
2337
2344
|
* information, see <a href="https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html">Workgroup Settings Override
|
|
2338
2345
|
* Client-Side Settings</a>.</p>
|
|
2339
2346
|
*/
|
|
@@ -2357,21 +2364,21 @@ export interface ResultConfigurationUpdates {
|
|
|
2357
2364
|
* <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>.
|
|
2358
2365
|
* If set, Athena uses the value for <code>ExpectedBucketOwner</code> when it
|
|
2359
2366
|
* makes Amazon S3 calls to your specified output location. If the
|
|
2360
|
-
*
|
|
2367
|
+
* <code>ExpectedBucketOwner</code>
|
|
2361
2368
|
* Amazon Web Services account ID does not match the actual owner of the Amazon S3
|
|
2362
2369
|
* bucket, the call fails with a permissions error.</p>
|
|
2363
2370
|
*
|
|
2364
2371
|
* <p>If workgroup settings override client-side settings, then the query uses the
|
|
2365
|
-
*
|
|
2372
|
+
* <code>ExpectedBucketOwner</code> setting that is specified for the workgroup, and
|
|
2366
2373
|
* 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>
|
|
2367
2374
|
*/
|
|
2368
2375
|
ExpectedBucketOwner?: string;
|
|
2369
2376
|
/**
|
|
2370
2377
|
* <p>If set to "true", removes the Amazon Web Services account ID previously specified for
|
|
2371
|
-
*
|
|
2378
|
+
* <a>ResultConfiguration$ExpectedBucketOwner</a>. If set to "false" or not
|
|
2372
2379
|
* set, and a value is present in the <code>ExpectedBucketOwner</code> in
|
|
2373
|
-
*
|
|
2374
|
-
*
|
|
2380
|
+
* <code>ResultConfigurationUpdates</code> (the client-side setting), the
|
|
2381
|
+
* <code>ExpectedBucketOwner</code> in the workgroup's <code>ResultConfiguration</code>
|
|
2375
2382
|
* 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
|
|
2376
2383
|
* Client-Side Settings</a>.</p>
|
|
2377
2384
|
*/
|
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.72.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,41 +18,41 @@
|
|
|
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.
|
|
21
|
+
"@aws-sdk/client-sts": "3.72.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.58.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.72.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.58.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.55.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.55.0",
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.58.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.58.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.55.0",
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.58.0",
|
|
31
31
|
"@aws-sdk/middleware-serde": "3.55.0",
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.58.0",
|
|
33
33
|
"@aws-sdk/middleware-stack": "3.55.0",
|
|
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.
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.58.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.58.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.58.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.58.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.72.0",
|
|
39
39
|
"@aws-sdk/types": "3.55.0",
|
|
40
40
|
"@aws-sdk/url-parser": "3.55.0",
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
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.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.72.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.72.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.58.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.58.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
51
|
"tslib": "^2.3.1",
|
|
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.58.0",
|
|
56
56
|
"@tsconfig/recommended": "1.0.1",
|
|
57
57
|
"@types/node": "^12.7.5",
|
|
58
58
|
"@types/uuid": "^8.3.0",
|