@aws-sdk/client-athena 3.934.0 → 3.935.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.
@@ -0,0 +1,52 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
+ import { ThrottleReason } from "./enums";
4
+ export declare class InternalServerException extends __BaseException {
5
+ readonly name: "InternalServerException";
6
+ readonly $fault: "server";
7
+ Message?: string | undefined;
8
+ constructor(
9
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
10
+ );
11
+ }
12
+ export declare class InvalidRequestException extends __BaseException {
13
+ readonly name: "InvalidRequestException";
14
+ readonly $fault: "client";
15
+ AthenaErrorCode?: string | undefined;
16
+ Message?: string | undefined;
17
+ constructor(
18
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
19
+ );
20
+ }
21
+ export declare class TooManyRequestsException extends __BaseException {
22
+ readonly name: "TooManyRequestsException";
23
+ readonly $fault: "client";
24
+ Message?: string | undefined;
25
+ Reason?: ThrottleReason | undefined;
26
+ constructor(
27
+ opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
28
+ );
29
+ }
30
+ export declare class ResourceNotFoundException extends __BaseException {
31
+ readonly name: "ResourceNotFoundException";
32
+ readonly $fault: "client";
33
+ Message?: string | undefined;
34
+ ResourceName?: string | undefined;
35
+ constructor(
36
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
37
+ );
38
+ }
39
+ export declare class MetadataException extends __BaseException {
40
+ readonly name: "MetadataException";
41
+ readonly $fault: "client";
42
+ Message?: string | undefined;
43
+ constructor(opts: __ExceptionOptionType<MetadataException, __BaseException>);
44
+ }
45
+ export declare class SessionAlreadyExistsException extends __BaseException {
46
+ readonly name: "SessionAlreadyExistsException";
47
+ readonly $fault: "client";
48
+ Message?: string | undefined;
49
+ constructor(
50
+ opts: __ExceptionOptionType<SessionAlreadyExistsException, __BaseException>
51
+ );
52
+ }
@@ -1,9 +1,23 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { AthenaServiceException as __BaseException } from "./AthenaServiceException";
3
- export declare const S3AclOption: {
4
- readonly BUCKET_OWNER_FULL_CONTROL: "BUCKET_OWNER_FULL_CONTROL";
5
- };
6
- export type S3AclOption = (typeof S3AclOption)[keyof typeof S3AclOption];
1
+ import {
2
+ AuthenticationType,
3
+ CalculationExecutionState,
4
+ CapacityAllocationStatus,
5
+ CapacityReservationStatus,
6
+ ColumnNullable,
7
+ ConnectionType,
8
+ DataCatalogStatus,
9
+ DataCatalogType,
10
+ EncryptionOption,
11
+ ExecutorState,
12
+ ExecutorType,
13
+ NotebookType,
14
+ QueryExecutionState,
15
+ QueryResultType,
16
+ S3AclOption,
17
+ SessionState,
18
+ StatementType,
19
+ WorkGroupState,
20
+ } from "./enums";
7
21
  export interface AclConfiguration {
8
22
  S3AclOption: S3AclOption | undefined;
9
23
  }
@@ -27,23 +41,6 @@ export interface BatchGetNamedQueryOutput {
27
41
  NamedQueries?: NamedQuery[] | undefined;
28
42
  UnprocessedNamedQueryIds?: UnprocessedNamedQueryId[] | undefined;
29
43
  }
30
- export declare class InternalServerException extends __BaseException {
31
- readonly name: "InternalServerException";
32
- readonly $fault: "server";
33
- Message?: string | undefined;
34
- constructor(
35
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
36
- );
37
- }
38
- export declare class InvalidRequestException extends __BaseException {
39
- readonly name: "InvalidRequestException";
40
- readonly $fault: "client";
41
- AthenaErrorCode?: string | undefined;
42
- Message?: string | undefined;
43
- constructor(
44
- opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
45
- );
46
- }
47
44
  export interface BatchGetPreparedStatementInput {
48
45
  PreparedStatementNames: string[] | undefined;
49
46
  WorkGroup: string | undefined;
@@ -86,23 +83,11 @@ export interface QueryExecutionContext {
86
83
  Database?: string | undefined;
87
84
  Catalog?: string | undefined;
88
85
  }
89
- export declare const AuthenticationType: {
90
- readonly DIRECTORY_IDENTITY: "DIRECTORY_IDENTITY";
91
- };
92
- export type AuthenticationType =
93
- (typeof AuthenticationType)[keyof typeof AuthenticationType];
94
86
  export interface QueryResultsS3AccessGrantsConfiguration {
95
87
  EnableS3AccessGrants: boolean | undefined;
96
88
  CreateUserLevelPrefix?: boolean | undefined;
97
89
  AuthenticationType: AuthenticationType | undefined;
98
90
  }
99
- export declare const EncryptionOption: {
100
- readonly CSE_KMS: "CSE_KMS";
101
- readonly SSE_KMS: "SSE_KMS";
102
- readonly SSE_S3: "SSE_S3";
103
- };
104
- export type EncryptionOption =
105
- (typeof EncryptionOption)[keyof typeof EncryptionOption];
106
91
  export interface EncryptionConfiguration {
107
92
  EncryptionOption: EncryptionOption | undefined;
108
93
  KmsKey?: string | undefined;
@@ -120,12 +105,6 @@ export interface ResultReuseByAgeConfiguration {
120
105
  export interface ResultReuseConfiguration {
121
106
  ResultReuseByAgeConfiguration?: ResultReuseByAgeConfiguration | undefined;
122
107
  }
123
- export declare const StatementType: {
124
- readonly DDL: "DDL";
125
- readonly DML: "DML";
126
- readonly UTILITY: "UTILITY";
127
- };
128
- export type StatementType = (typeof StatementType)[keyof typeof StatementType];
129
108
  export interface ResultReuseInformation {
130
109
  ReusedPreviousResult: boolean | undefined;
131
110
  }
@@ -146,15 +125,6 @@ export interface AthenaError {
146
125
  Retryable?: boolean | undefined;
147
126
  ErrorMessage?: string | undefined;
148
127
  }
149
- export declare const QueryExecutionState: {
150
- readonly CANCELLED: "CANCELLED";
151
- readonly FAILED: "FAILED";
152
- readonly QUEUED: "QUEUED";
153
- readonly RUNNING: "RUNNING";
154
- readonly SUCCEEDED: "SUCCEEDED";
155
- };
156
- export type QueryExecutionState =
157
- (typeof QueryExecutionState)[keyof typeof QueryExecutionState];
158
128
  export interface QueryExecutionStatus {
159
129
  State?: QueryExecutionState | undefined;
160
130
  StateChangeReason?: string | undefined;
@@ -205,14 +175,6 @@ export interface CreateCapacityReservationInput {
205
175
  Tags?: Tag[] | undefined;
206
176
  }
207
177
  export interface CreateCapacityReservationOutput {}
208
- export declare const DataCatalogType: {
209
- readonly FEDERATED: "FEDERATED";
210
- readonly GLUE: "GLUE";
211
- readonly HIVE: "HIVE";
212
- readonly LAMBDA: "LAMBDA";
213
- };
214
- export type DataCatalogType =
215
- (typeof DataCatalogType)[keyof typeof DataCatalogType];
216
178
  export interface CreateDataCatalogInput {
217
179
  Name: string | undefined;
218
180
  Type: DataCatalogType | undefined;
@@ -220,43 +182,6 @@ export interface CreateDataCatalogInput {
220
182
  Parameters?: Record<string, string> | undefined;
221
183
  Tags?: Tag[] | undefined;
222
184
  }
223
- export declare const ConnectionType: {
224
- readonly BIGQUERY: "BIGQUERY";
225
- readonly CMDB: "CMDB";
226
- readonly DATALAKEGEN2: "DATALAKEGEN2";
227
- readonly DB2: "DB2";
228
- readonly DB2AS400: "DB2AS400";
229
- readonly DOCUMENTDB: "DOCUMENTDB";
230
- readonly DYNAMODB: "DYNAMODB";
231
- readonly GOOGLECLOUDSTORAGE: "GOOGLECLOUDSTORAGE";
232
- readonly HBASE: "HBASE";
233
- readonly MYSQL: "MYSQL";
234
- readonly OPENSEARCH: "OPENSEARCH";
235
- readonly ORACLE: "ORACLE";
236
- readonly POSTGRESQL: "POSTGRESQL";
237
- readonly REDSHIFT: "REDSHIFT";
238
- readonly SAPHANA: "SAPHANA";
239
- readonly SNOWFLAKE: "SNOWFLAKE";
240
- readonly SQLSERVER: "SQLSERVER";
241
- readonly SYNAPSE: "SYNAPSE";
242
- readonly TIMESTREAM: "TIMESTREAM";
243
- readonly TPCDS: "TPCDS";
244
- };
245
- export type ConnectionType =
246
- (typeof ConnectionType)[keyof typeof ConnectionType];
247
- export declare const DataCatalogStatus: {
248
- readonly CREATE_COMPLETE: "CREATE_COMPLETE";
249
- readonly CREATE_FAILED: "CREATE_FAILED";
250
- readonly CREATE_FAILED_CLEANUP_COMPLETE: "CREATE_FAILED_CLEANUP_COMPLETE";
251
- readonly CREATE_FAILED_CLEANUP_FAILED: "CREATE_FAILED_CLEANUP_FAILED";
252
- readonly CREATE_FAILED_CLEANUP_IN_PROGRESS: "CREATE_FAILED_CLEANUP_IN_PROGRESS";
253
- readonly CREATE_IN_PROGRESS: "CREATE_IN_PROGRESS";
254
- readonly DELETE_COMPLETE: "DELETE_COMPLETE";
255
- readonly DELETE_FAILED: "DELETE_FAILED";
256
- readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
257
- };
258
- export type DataCatalogStatus =
259
- (typeof DataCatalogStatus)[keyof typeof DataCatalogStatus];
260
185
  export interface DataCatalog {
261
186
  Name: string | undefined;
262
187
  Description?: string | undefined;
@@ -288,20 +213,6 @@ export interface CreateNotebookInput {
288
213
  export interface CreateNotebookOutput {
289
214
  NotebookId?: string | undefined;
290
215
  }
291
- export declare const ThrottleReason: {
292
- readonly CONCURRENT_QUERY_LIMIT_EXCEEDED: "CONCURRENT_QUERY_LIMIT_EXCEEDED";
293
- };
294
- export type ThrottleReason =
295
- (typeof ThrottleReason)[keyof typeof ThrottleReason];
296
- export declare class TooManyRequestsException extends __BaseException {
297
- readonly name: "TooManyRequestsException";
298
- readonly $fault: "client";
299
- Message?: string | undefined;
300
- Reason?: ThrottleReason | undefined;
301
- constructor(
302
- opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
303
- );
304
- }
305
216
  export interface CreatePreparedStatementInput {
306
217
  StatementName: string | undefined;
307
218
  WorkGroup: string | undefined;
@@ -317,15 +228,6 @@ export interface CreatePresignedNotebookUrlResponse {
317
228
  AuthToken: string | undefined;
318
229
  AuthTokenExpirationTime: number | undefined;
319
230
  }
320
- export declare class ResourceNotFoundException extends __BaseException {
321
- readonly name: "ResourceNotFoundException";
322
- readonly $fault: "client";
323
- Message?: string | undefined;
324
- ResourceName?: string | undefined;
325
- constructor(
326
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
327
- );
328
- }
329
231
  export interface CustomerContentEncryptionConfiguration {
330
232
  KmsKey: string | undefined;
331
233
  }
@@ -393,10 +295,6 @@ export interface DeleteWorkGroupOutput {}
393
295
  export interface ExportNotebookInput {
394
296
  NotebookId: string | undefined;
395
297
  }
396
- export declare const NotebookType: {
397
- readonly IPYNB: "IPYNB";
398
- };
399
- export type NotebookType = (typeof NotebookType)[keyof typeof NotebookType];
400
298
  export interface NotebookMetadata {
401
299
  NotebookId?: string | undefined;
402
300
  Name?: string | undefined;
@@ -422,18 +320,6 @@ export interface CalculationStatistics {
422
320
  DpuExecutionInMillis?: number | undefined;
423
321
  Progress?: string | undefined;
424
322
  }
425
- export declare const CalculationExecutionState: {
426
- readonly CANCELED: "CANCELED";
427
- readonly CANCELING: "CANCELING";
428
- readonly COMPLETED: "COMPLETED";
429
- readonly CREATED: "CREATED";
430
- readonly CREATING: "CREATING";
431
- readonly FAILED: "FAILED";
432
- readonly QUEUED: "QUEUED";
433
- readonly RUNNING: "RUNNING";
434
- };
435
- export type CalculationExecutionState =
436
- (typeof CalculationExecutionState)[keyof typeof CalculationExecutionState];
437
323
  export interface CalculationStatus {
438
324
  SubmissionDateTime?: Date | undefined;
439
325
  CompletionDateTime?: Date | undefined;
@@ -478,29 +364,12 @@ export interface GetCapacityAssignmentConfigurationOutput {
478
364
  export interface GetCapacityReservationInput {
479
365
  Name: string | undefined;
480
366
  }
481
- export declare const CapacityAllocationStatus: {
482
- readonly FAILED: "FAILED";
483
- readonly PENDING: "PENDING";
484
- readonly SUCCEEDED: "SUCCEEDED";
485
- };
486
- export type CapacityAllocationStatus =
487
- (typeof CapacityAllocationStatus)[keyof typeof CapacityAllocationStatus];
488
367
  export interface CapacityAllocation {
489
368
  Status: CapacityAllocationStatus | undefined;
490
369
  StatusMessage?: string | undefined;
491
370
  RequestTime: Date | undefined;
492
371
  RequestCompletionTime?: Date | undefined;
493
372
  }
494
- export declare const CapacityReservationStatus: {
495
- readonly ACTIVE: "ACTIVE";
496
- readonly CANCELLED: "CANCELLED";
497
- readonly CANCELLING: "CANCELLING";
498
- readonly FAILED: "FAILED";
499
- readonly PENDING: "PENDING";
500
- readonly UPDATE_PENDING: "UPDATE_PENDING";
501
- };
502
- export type CapacityReservationStatus =
503
- (typeof CapacityReservationStatus)[keyof typeof CapacityReservationStatus];
504
373
  export interface CapacityReservation {
505
374
  Name: string | undefined;
506
375
  Status: CapacityReservationStatus | undefined;
@@ -526,12 +395,6 @@ export interface Database {
526
395
  export interface GetDatabaseOutput {
527
396
  Database?: Database | undefined;
528
397
  }
529
- export declare class MetadataException extends __BaseException {
530
- readonly name: "MetadataException";
531
- readonly $fault: "client";
532
- Message?: string | undefined;
533
- constructor(opts: __ExceptionOptionType<MetadataException, __BaseException>);
534
- }
535
398
  export interface GetDataCatalogInput {
536
399
  Name: string | undefined;
537
400
  WorkGroup?: string | undefined;
@@ -564,25 +427,12 @@ export interface GetQueryExecutionInput {
564
427
  export interface GetQueryExecutionOutput {
565
428
  QueryExecution?: QueryExecution | undefined;
566
429
  }
567
- export declare const QueryResultType: {
568
- readonly DATA_MANIFEST: "DATA_MANIFEST";
569
- readonly DATA_ROWS: "DATA_ROWS";
570
- };
571
- export type QueryResultType =
572
- (typeof QueryResultType)[keyof typeof QueryResultType];
573
430
  export interface GetQueryResultsInput {
574
431
  QueryExecutionId: string | undefined;
575
432
  NextToken?: string | undefined;
576
433
  MaxResults?: number | undefined;
577
434
  QueryResultType?: QueryResultType | undefined;
578
435
  }
579
- export declare const ColumnNullable: {
580
- readonly NOT_NULL: "NOT_NULL";
581
- readonly NULLABLE: "NULLABLE";
582
- readonly UNKNOWN: "UNKNOWN";
583
- };
584
- export type ColumnNullable =
585
- (typeof ColumnNullable)[keyof typeof ColumnNullable];
586
436
  export interface ColumnInfo {
587
437
  CatalogName?: string | undefined;
588
438
  SchemaName?: string | undefined;
@@ -649,17 +499,6 @@ export interface SessionConfiguration {
649
499
  export interface SessionStatistics {
650
500
  DpuExecutionInMillis?: number | undefined;
651
501
  }
652
- export declare const SessionState: {
653
- readonly BUSY: "BUSY";
654
- readonly CREATED: "CREATED";
655
- readonly CREATING: "CREATING";
656
- readonly DEGRADED: "DEGRADED";
657
- readonly FAILED: "FAILED";
658
- readonly IDLE: "IDLE";
659
- readonly TERMINATED: "TERMINATED";
660
- readonly TERMINATING: "TERMINATING";
661
- };
662
- export type SessionState = (typeof SessionState)[keyof typeof SessionState];
663
502
  export interface SessionStatus {
664
503
  StartDateTime?: Date | undefined;
665
504
  LastModifiedDateTime?: Date | undefined;
@@ -712,12 +551,6 @@ export interface GetTableMetadataOutput {
712
551
  export interface GetWorkGroupInput {
713
552
  WorkGroup: string | undefined;
714
553
  }
715
- export declare const WorkGroupState: {
716
- readonly DISABLED: "DISABLED";
717
- readonly ENABLED: "ENABLED";
718
- };
719
- export type WorkGroupState =
720
- (typeof WorkGroupState)[keyof typeof WorkGroupState];
721
554
  export interface WorkGroup {
722
555
  Name: string | undefined;
723
556
  State?: WorkGroupState | undefined;
@@ -809,27 +642,12 @@ export interface ListEngineVersionsOutput {
809
642
  EngineVersions?: EngineVersion[] | undefined;
810
643
  NextToken?: string | undefined;
811
644
  }
812
- export declare const ExecutorState: {
813
- readonly CREATED: "CREATED";
814
- readonly CREATING: "CREATING";
815
- readonly FAILED: "FAILED";
816
- readonly REGISTERED: "REGISTERED";
817
- readonly TERMINATED: "TERMINATED";
818
- readonly TERMINATING: "TERMINATING";
819
- };
820
- export type ExecutorState = (typeof ExecutorState)[keyof typeof ExecutorState];
821
645
  export interface ListExecutorsRequest {
822
646
  SessionId: string | undefined;
823
647
  ExecutorStateFilter?: ExecutorState | undefined;
824
648
  MaxResults?: number | undefined;
825
649
  NextToken?: string | undefined;
826
650
  }
827
- export declare const ExecutorType: {
828
- readonly COORDINATOR: "COORDINATOR";
829
- readonly GATEWAY: "GATEWAY";
830
- readonly WORKER: "WORKER";
831
- };
832
- export type ExecutorType = (typeof ExecutorType)[keyof typeof ExecutorType];
833
651
  export interface ExecutorsSummary {
834
652
  ExecutorId: string | undefined;
835
653
  ExecutorType?: ExecutorType | undefined;
@@ -985,14 +803,6 @@ export interface StartQueryExecutionInput {
985
803
  export interface StartQueryExecutionOutput {
986
804
  QueryExecutionId?: string | undefined;
987
805
  }
988
- export declare class SessionAlreadyExistsException extends __BaseException {
989
- readonly name: "SessionAlreadyExistsException";
990
- readonly $fault: "client";
991
- Message?: string | undefined;
992
- constructor(
993
- opts: __ExceptionOptionType<SessionAlreadyExistsException, __BaseException>
994
- );
995
- }
996
806
  export interface StartSessionRequest {
997
807
  Description?: string | undefined;
998
808
  WorkGroup: string | undefined;
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.934.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-athena",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";