@aws-sdk/client-athena 3.51.0 → 3.54.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 (39) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist-cjs/Athena.js +15 -0
  3. package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/index.js +3 -0
  6. package/dist-cjs/models/AthenaServiceException.js +11 -0
  7. package/dist-cjs/models/models_0.js +99 -3
  8. package/dist-cjs/protocols/Aws_json1_1.js +350 -856
  9. package/dist-es/Athena.js +15 -0
  10. package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/models/AthenaServiceException.js +12 -0
  14. package/dist-es/models/models_0.js +86 -1
  15. package/dist-es/protocols/Aws_json1_1.js +711 -986
  16. package/dist-types/Athena.d.ts +7 -6
  17. package/dist-types/AthenaClient.d.ts +5 -4
  18. package/dist-types/commands/GetQueryResultsCommand.d.ts +0 -6
  19. package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/models/AthenaServiceException.d.ts +10 -0
  23. package/dist-types/models/models_0.d.ts +142 -32
  24. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/runtimeConfig.native.d.ts +1 -1
  28. package/dist-types/ts3.4/Athena.d.ts +5 -0
  29. package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
  30. package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  32. package/dist-types/ts3.4/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/AthenaServiceException.d.ts +6 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +67 -16
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  36. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  37. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  38. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  39. package/package.json +33 -33
@@ -3,3 +3,4 @@ export * from "./AthenaClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { AthenaServiceException } from "./models/AthenaServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class AthenaServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,17 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ export declare enum S3AclOption {
4
+ BUCKET_OWNER_FULL_CONTROL = "BUCKET_OWNER_FULL_CONTROL"
5
+ }
6
+
7
+ export interface AclConfiguration {
8
+
9
+ S3AclOption: S3AclOption | string | undefined;
10
+ }
11
+ export declare namespace AclConfiguration {
12
+
13
+ const filterSensitiveLog: (obj: AclConfiguration) => any;
14
+ }
2
15
  export interface BatchGetNamedQueryInput {
3
16
 
4
17
  NamedQueryIds: string[] | undefined;
@@ -50,18 +63,22 @@ export declare namespace BatchGetNamedQueryOutput {
50
63
  const filterSensitiveLog: (obj: BatchGetNamedQueryOutput) => any;
51
64
  }
52
65
 
53
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
54
- name: "InternalServerException";
55
- $fault: "server";
66
+ export declare class InternalServerException extends __BaseException {
67
+ readonly name: "InternalServerException";
68
+ readonly $fault: "server";
56
69
  Message?: string;
70
+
71
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
57
72
  }
58
73
 
59
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
60
- name: "InvalidRequestException";
61
- $fault: "client";
74
+ export declare class InvalidRequestException extends __BaseException {
75
+ readonly name: "InvalidRequestException";
76
+ readonly $fault: "client";
62
77
 
63
78
  AthenaErrorCode?: string;
64
79
  Message?: string;
80
+
81
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
65
82
  }
66
83
  export interface BatchGetQueryExecutionInput {
67
84
 
@@ -117,6 +134,8 @@ export interface ResultConfiguration {
117
134
  EncryptionConfiguration?: EncryptionConfiguration;
118
135
 
119
136
  ExpectedBucketOwner?: string;
137
+
138
+ AclConfiguration?: AclConfiguration;
120
139
  }
121
140
  export declare namespace ResultConfiguration {
122
141
 
@@ -152,6 +171,8 @@ export declare namespace QueryExecutionStatistics {
152
171
  export interface AthenaError {
153
172
 
154
173
  ErrorCategory?: number;
174
+
175
+ ErrorType?: number;
155
176
  }
156
177
  export declare namespace AthenaError {
157
178
 
@@ -399,11 +420,13 @@ export declare namespace DeletePreparedStatementOutput {
399
420
  const filterSensitiveLog: (obj: DeletePreparedStatementOutput) => any;
400
421
  }
401
422
 
402
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
403
- name: "ResourceNotFoundException";
404
- $fault: "client";
423
+ export declare class ResourceNotFoundException extends __BaseException {
424
+ readonly name: "ResourceNotFoundException";
425
+ readonly $fault: "client";
405
426
  Message?: string;
406
427
  ResourceName?: string;
428
+
429
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
407
430
  }
408
431
  export interface DeleteWorkGroupInput {
409
432
 
@@ -455,10 +478,12 @@ export declare namespace GetDatabaseOutput {
455
478
  const filterSensitiveLog: (obj: GetDatabaseOutput) => any;
456
479
  }
457
480
 
458
- export interface MetadataException extends __SmithyException, $MetadataBearer {
459
- name: "MetadataException";
460
- $fault: "client";
481
+ export declare class MetadataException extends __BaseException {
482
+ readonly name: "MetadataException";
483
+ readonly $fault: "client";
461
484
  Message?: string;
485
+
486
+ constructor(opts: __ExceptionOptionType<MetadataException, __BaseException>);
462
487
  }
463
488
  export interface GetDataCatalogInput {
464
489
 
@@ -1010,12 +1035,14 @@ export declare enum ThrottleReason {
1010
1035
  CONCURRENT_QUERY_LIMIT_EXCEEDED = "CONCURRENT_QUERY_LIMIT_EXCEEDED"
1011
1036
  }
1012
1037
 
1013
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
1014
- name: "TooManyRequestsException";
1015
- $fault: "client";
1038
+ export declare class TooManyRequestsException extends __BaseException {
1039
+ readonly name: "TooManyRequestsException";
1040
+ readonly $fault: "client";
1016
1041
  Message?: string;
1017
1042
 
1018
1043
  Reason?: ThrottleReason | string;
1044
+
1045
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
1019
1046
  }
1020
1047
  export interface StopQueryExecutionInput {
1021
1048
 
@@ -1085,6 +1112,26 @@ export declare namespace UpdateDataCatalogOutput {
1085
1112
 
1086
1113
  const filterSensitiveLog: (obj: UpdateDataCatalogOutput) => any;
1087
1114
  }
1115
+ export interface UpdateNamedQueryInput {
1116
+
1117
+ NamedQueryId: string | undefined;
1118
+
1119
+ Name: string | undefined;
1120
+
1121
+ Description?: string;
1122
+
1123
+ QueryString: string | undefined;
1124
+ }
1125
+ export declare namespace UpdateNamedQueryInput {
1126
+
1127
+ const filterSensitiveLog: (obj: UpdateNamedQueryInput) => any;
1128
+ }
1129
+ export interface UpdateNamedQueryOutput {
1130
+ }
1131
+ export declare namespace UpdateNamedQueryOutput {
1132
+
1133
+ const filterSensitiveLog: (obj: UpdateNamedQueryOutput) => any;
1134
+ }
1088
1135
  export interface UpdatePreparedStatementInput {
1089
1136
 
1090
1137
  StatementName: string | undefined;
@@ -1119,6 +1166,10 @@ export interface ResultConfigurationUpdates {
1119
1166
  ExpectedBucketOwner?: string;
1120
1167
 
1121
1168
  RemoveExpectedBucketOwner?: boolean;
1169
+
1170
+ AclConfiguration?: AclConfiguration;
1171
+
1172
+ RemoveAclConfiguration?: boolean;
1122
1173
  }
1123
1174
  export declare namespace ResultConfigurationUpdates {
1124
1175
 
@@ -32,6 +32,7 @@ import { StopQueryExecutionCommandInput, StopQueryExecutionCommandOutput } from
32
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
33
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
34
34
  import { UpdateDataCatalogCommandInput, UpdateDataCatalogCommandOutput } from "../commands/UpdateDataCatalogCommand";
35
+ import { UpdateNamedQueryCommandInput, UpdateNamedQueryCommandOutput } from "../commands/UpdateNamedQueryCommand";
35
36
  import { UpdatePreparedStatementCommandInput, UpdatePreparedStatementCommandOutput } from "../commands/UpdatePreparedStatementCommand";
36
37
  import { UpdateWorkGroupCommandInput, UpdateWorkGroupCommandOutput } from "../commands/UpdateWorkGroupCommand";
37
38
  export declare const serializeAws_json1_1BatchGetNamedQueryCommand: (input: BatchGetNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -66,6 +67,7 @@ export declare const serializeAws_json1_1StopQueryExecutionCommand: (input: Stop
66
67
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
68
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
69
  export declare const serializeAws_json1_1UpdateDataCatalogCommand: (input: UpdateDataCatalogCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
+ export declare const serializeAws_json1_1UpdateNamedQueryCommand: (input: UpdateNamedQueryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
69
71
  export declare const serializeAws_json1_1UpdatePreparedStatementCommand: (input: UpdatePreparedStatementCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
70
72
  export declare const serializeAws_json1_1UpdateWorkGroupCommand: (input: UpdateWorkGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
71
73
  export declare const deserializeAws_json1_1BatchGetNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetNamedQueryCommandOutput>;
@@ -100,5 +102,6 @@ export declare const deserializeAws_json1_1StopQueryExecutionCommand: (output: _
100
102
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
101
103
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
102
104
  export declare const deserializeAws_json1_1UpdateDataCatalogCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDataCatalogCommandOutput>;
105
+ export declare const deserializeAws_json1_1UpdateNamedQueryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateNamedQueryCommandOutput>;
103
106
  export declare const deserializeAws_json1_1UpdatePreparedStatementCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreparedStatementCommandOutput>;
104
107
  export declare const deserializeAws_json1_1UpdateWorkGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateWorkGroupCommandOutput>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AthenaClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
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.51.0",
4
+ "version": "3.54.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,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.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",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.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.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.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.49.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.52.0",
56
56
  "@tsconfig/recommended": "1.0.1",
57
57
  "@types/node": "^12.7.5",
58
58
  "@types/uuid": "^8.3.0",