@aws-sdk/client-athena 3.987.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultAthenaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2017-05-18",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.athena",
30
+ errorTypeRegistries,
29
31
  version: "2017-05-18",
30
32
  serviceTarget: "AmazonAthena",
31
33
  },
@@ -359,7 +359,7 @@ const _QSPNu = "QueryStagePlanNodes";
359
359
  const _QSu = "QueryStatement";
360
360
  const _QSue = "QueryStage";
361
361
  const _QSuer = "QueryStages";
362
- const _R = "Retryable";
362
+ const _R = "Reason";
363
363
  const _RAC = "RemoveAclConfiguration";
364
364
  const _RARN = "ResourceARN";
365
365
  const _RBSCPQ = "RemoveBytesScannedCutoffPerQuery";
@@ -385,8 +385,8 @@ const _RSU = "ResultS3Uri";
385
385
  const _RSe = "RemoteSources";
386
386
  const _RT = "ResultType";
387
387
  const _RTe = "RequestTime";
388
- const _Re = "Result";
389
- const _Rea = "Reason";
388
+ const _Re = "Retryable";
389
+ const _Res = "Result";
390
390
  const _Ro = "Rows";
391
391
  const _Row = "Row";
392
392
  const _S = "State";
@@ -506,12 +506,56 @@ const _WGo = "WorkGroups";
506
506
  const _c = "client";
507
507
  const _dL = "datumList";
508
508
  const _e = "error";
509
- const _s = "server";
510
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.athena";
509
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.athena";
510
+ const _se = "server";
511
511
  const n0 = "com.amazonaws.athena";
512
512
  import { TypeRegistry } from "@smithy/core/schema";
513
513
  import { AthenaServiceException } from "../models/AthenaServiceException";
514
514
  import { InternalServerException, InvalidRequestException, MetadataException, ResourceNotFoundException, SessionAlreadyExistsException, TooManyRequestsException, } from "../models/errors";
515
+ const _s_registry = TypeRegistry.for(_s);
516
+ export var AthenaServiceException$ = [-3, _s, "AthenaServiceException", 0, [], []];
517
+ _s_registry.registerError(AthenaServiceException$, AthenaServiceException);
518
+ const n0_registry = TypeRegistry.for(n0);
519
+ export var InternalServerException$ = [-3, n0, _ISE,
520
+ { [_e]: _se },
521
+ [_M],
522
+ [0]
523
+ ];
524
+ n0_registry.registerError(InternalServerException$, InternalServerException);
525
+ export var InvalidRequestException$ = [-3, n0, _IRE,
526
+ { [_e]: _c },
527
+ [_AEC, _M],
528
+ [0, 0]
529
+ ];
530
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
531
+ export var MetadataException$ = [-3, n0, _ME,
532
+ { [_e]: _c },
533
+ [_M],
534
+ [0]
535
+ ];
536
+ n0_registry.registerError(MetadataException$, MetadataException);
537
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
538
+ { [_e]: _c },
539
+ [_M, _RN],
540
+ [0, 0]
541
+ ];
542
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
543
+ export var SessionAlreadyExistsException$ = [-3, n0, _SAEE,
544
+ { [_e]: _c },
545
+ [_M],
546
+ [0]
547
+ ];
548
+ n0_registry.registerError(SessionAlreadyExistsException$, SessionAlreadyExistsException);
549
+ export var TooManyRequestsException$ = [-3, n0, _TMRE,
550
+ { [_e]: _c },
551
+ [_M, _R],
552
+ [0, 0]
553
+ ];
554
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
555
+ export const errorTypeRegistries = [
556
+ _s_registry,
557
+ n0_registry,
558
+ ];
515
559
  export var AclConfiguration$ = [3, n0, _AC,
516
560
  0,
517
561
  [_SAO],
@@ -524,7 +568,7 @@ export var ApplicationDPUSizes$ = [3, n0, _ADPUS,
524
568
  ];
525
569
  export var AthenaError$ = [3, n0, _AE,
526
570
  0,
527
- [_EC, _ET, _R, _EM],
571
+ [_EC, _ET, _Re, _EM],
528
572
  [1, 1, 2, 0]
529
573
  ];
530
574
  export var BatchGetNamedQueryInput$ = [3, n0, _BGNQI,
@@ -839,7 +883,7 @@ export var GetCalculationExecutionRequest$ = [3, n0, _GCER,
839
883
  ];
840
884
  export var GetCalculationExecutionResponse$ = [3, n0, _GCERe,
841
885
  0,
842
- [_CEI, _SI, _D, _WD, _St, _Sta, _Re],
886
+ [_CEI, _SI, _D, _WD, _St, _Sta, _Res],
843
887
  [0, 0, 0, 0, () => CalculationStatus$, () => CalculationStatistics$, () => CalculationResult$]
844
888
  ];
845
889
  export var GetCalculationExecutionStatusRequest$ = [3, n0, _GCESR,
@@ -1027,18 +1071,6 @@ export var ImportNotebookOutput$ = [3, n0, _INO,
1027
1071
  [_NI],
1028
1072
  [0]
1029
1073
  ];
1030
- export var InternalServerException$ = [-3, n0, _ISE,
1031
- { [_e]: _s },
1032
- [_M],
1033
- [0]
1034
- ];
1035
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
1036
- export var InvalidRequestException$ = [-3, n0, _IRE,
1037
- { [_e]: _c },
1038
- [_AEC, _M],
1039
- [0, 0]
1040
- ];
1041
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
1042
1074
  export var ListApplicationDPUSizesInput$ = [3, n0, _LADPUSI,
1043
1075
  0,
1044
1076
  [_MR, _NT],
@@ -1219,12 +1251,6 @@ export var ManagedQueryResultsEncryptionConfiguration$ = [3, n0, _MQREC,
1219
1251
  [_KK],
1220
1252
  [0], 1
1221
1253
  ];
1222
- export var MetadataException$ = [-3, n0, _ME,
1223
- { [_e]: _c },
1224
- [_M],
1225
- [0]
1226
- ];
1227
- TypeRegistry.for(n0).registerError(MetadataException$, MetadataException);
1228
1254
  export var MonitoringConfiguration$ = [3, n0, _MC,
1229
1255
  0,
1230
1256
  [_CWLC, _MLC, _SLC],
@@ -1315,12 +1341,6 @@ export var QueryStagePlanNode$ = [3, n0, _QSPN,
1315
1341
  [_N, _I, _Ch, _RSe],
1316
1342
  [0, 0, () => QueryStagePlanNodes, 64 | 0]
1317
1343
  ];
1318
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
1319
- { [_e]: _c },
1320
- [_M, _RN],
1321
- [0, 0]
1322
- ];
1323
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
1324
1344
  export var ResultConfiguration$ = [3, n0, _RC,
1325
1345
  0,
1326
1346
  [_OL, _ECn, _EBO, _AC],
@@ -1366,12 +1386,6 @@ export var S3LoggingConfiguration$ = [3, n0, _SLC,
1366
1386
  [_E, _KK, _LL],
1367
1387
  [2, 0, 0], 1
1368
1388
  ];
1369
- export var SessionAlreadyExistsException$ = [-3, n0, _SAEE,
1370
- { [_e]: _c },
1371
- [_M],
1372
- [0]
1373
- ];
1374
- TypeRegistry.for(n0).registerError(SessionAlreadyExistsException$, SessionAlreadyExistsException);
1375
1389
  export var SessionConfiguration$ = [3, n0, _SC,
1376
1390
  0,
1377
1391
  [_ER, _WD, _ITS, _SITIM, _ECn],
@@ -1472,12 +1486,6 @@ export var TerminateSessionResponse$ = [3, n0, _TSRe,
1472
1486
  [_S],
1473
1487
  [0]
1474
1488
  ];
1475
- export var TooManyRequestsException$ = [-3, n0, _TMRE,
1476
- { [_e]: _c },
1477
- [_M, _Rea],
1478
- [0, 0]
1479
- ];
1480
- TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
1481
1489
  export var UnprocessedNamedQueryId$ = [3, n0, _UNQIn,
1482
1490
  0,
1483
1491
  [_NQIa, _ECr, _EM],
@@ -1593,8 +1601,6 @@ export var WorkGroupSummary$ = [3, n0, _WGS,
1593
1601
  [_N, _S, _D, _CT, _EV, _ICAA],
1594
1602
  [0, 0, 0, 4, () => EngineVersion$, 0]
1595
1603
  ];
1596
- export var AthenaServiceException$ = [-3, _sm, "AthenaServiceException", 0, [], []];
1597
- TypeRegistry.for(_sm).registerError(AthenaServiceException$, AthenaServiceException);
1598
1604
  var ApplicationDPUSizesList = [1, n0, _ADPUSL,
1599
1605
  0, () => ApplicationDPUSizes$
1600
1606
  ];
@@ -1,4 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var AthenaServiceException$: StaticErrorSchema;
4
+ export declare var InternalServerException$: StaticErrorSchema;
5
+ export declare var InvalidRequestException$: StaticErrorSchema;
6
+ export declare var MetadataException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var SessionAlreadyExistsException$: StaticErrorSchema;
9
+ export declare var TooManyRequestsException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
2
16
  export declare var AclConfiguration$: StaticStructureSchema;
3
17
  export declare var ApplicationDPUSizes$: StaticStructureSchema;
4
18
  export declare var AthenaError$: StaticStructureSchema;
@@ -102,8 +116,6 @@ export declare var GetWorkGroupOutput$: StaticStructureSchema;
102
116
  export declare var IdentityCenterConfiguration$: StaticStructureSchema;
103
117
  export declare var ImportNotebookInput$: StaticStructureSchema;
104
118
  export declare var ImportNotebookOutput$: StaticStructureSchema;
105
- export declare var InternalServerException$: StaticErrorSchema;
106
- export declare var InvalidRequestException$: StaticErrorSchema;
107
119
  export declare var ListApplicationDPUSizesInput$: StaticStructureSchema;
108
120
  export declare var ListApplicationDPUSizesOutput$: StaticStructureSchema;
109
121
  export declare var ListCalculationExecutionsRequest$: StaticStructureSchema;
@@ -140,7 +152,6 @@ export declare var ManagedLoggingConfiguration$: StaticStructureSchema;
140
152
  export declare var ManagedQueryResultsConfiguration$: StaticStructureSchema;
141
153
  export declare var ManagedQueryResultsConfigurationUpdates$: StaticStructureSchema;
142
154
  export declare var ManagedQueryResultsEncryptionConfiguration$: StaticStructureSchema;
143
- export declare var MetadataException$: StaticErrorSchema;
144
155
  export declare var MonitoringConfiguration$: StaticStructureSchema;
145
156
  export declare var NamedQuery$: StaticStructureSchema;
146
157
  export declare var NotebookMetadata$: StaticStructureSchema;
@@ -159,7 +170,6 @@ export declare var QueryRuntimeStatisticsRows$: StaticStructureSchema;
159
170
  export declare var QueryRuntimeStatisticsTimeline$: StaticStructureSchema;
160
171
  export declare var QueryStage$: StaticStructureSchema;
161
172
  export declare var QueryStagePlanNode$: StaticStructureSchema;
162
- export declare var ResourceNotFoundException$: StaticErrorSchema;
163
173
  export declare var ResultConfiguration$: StaticStructureSchema;
164
174
  export declare var ResultConfigurationUpdates$: StaticStructureSchema;
165
175
  export declare var ResultReuseByAgeConfiguration$: StaticStructureSchema;
@@ -169,7 +179,6 @@ export declare var ResultSet$: StaticStructureSchema;
169
179
  export declare var ResultSetMetadata$: StaticStructureSchema;
170
180
  export declare var Row$: StaticStructureSchema;
171
181
  export declare var S3LoggingConfiguration$: StaticStructureSchema;
172
- export declare var SessionAlreadyExistsException$: StaticErrorSchema;
173
182
  export declare var SessionConfiguration$: StaticStructureSchema;
174
183
  export declare var SessionStatistics$: StaticStructureSchema;
175
184
  export declare var SessionStatus$: StaticStructureSchema;
@@ -190,7 +199,6 @@ export declare var TagResourceInput$: StaticStructureSchema;
190
199
  export declare var TagResourceOutput$: StaticStructureSchema;
191
200
  export declare var TerminateSessionRequest$: StaticStructureSchema;
192
201
  export declare var TerminateSessionResponse$: StaticStructureSchema;
193
- export declare var TooManyRequestsException$: StaticErrorSchema;
194
202
  export declare var UnprocessedNamedQueryId$: StaticStructureSchema;
195
203
  export declare var UnprocessedPreparedStatementName$: StaticStructureSchema;
196
204
  export declare var UnprocessedQueryExecutionId$: StaticStructureSchema;
@@ -214,7 +222,6 @@ export declare var WorkGroup$: StaticStructureSchema;
214
222
  export declare var WorkGroupConfiguration$: StaticStructureSchema;
215
223
  export declare var WorkGroupConfigurationUpdates$: StaticStructureSchema;
216
224
  export declare var WorkGroupSummary$: StaticStructureSchema;
217
- export declare var AthenaServiceException$: StaticErrorSchema;
218
225
  export declare var BatchGetNamedQuery$: StaticOperationSchema;
219
226
  export declare var BatchGetPreparedStatement$: StaticOperationSchema;
220
227
  export declare var BatchGetQueryExecution$: StaticOperationSchema;
@@ -1,8 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var AthenaServiceException$: StaticErrorSchema;
8
+ export declare var InternalServerException$: StaticErrorSchema;
9
+ export declare var InvalidRequestException$: StaticErrorSchema;
10
+ export declare var MetadataException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var SessionAlreadyExistsException$: StaticErrorSchema;
13
+ export declare var TooManyRequestsException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
6
15
  export declare var AclConfiguration$: StaticStructureSchema;
7
16
  export declare var ApplicationDPUSizes$: StaticStructureSchema;
8
17
  export declare var AthenaError$: StaticStructureSchema;
@@ -106,8 +115,6 @@ export declare var GetWorkGroupOutput$: StaticStructureSchema;
106
115
  export declare var IdentityCenterConfiguration$: StaticStructureSchema;
107
116
  export declare var ImportNotebookInput$: StaticStructureSchema;
108
117
  export declare var ImportNotebookOutput$: StaticStructureSchema;
109
- export declare var InternalServerException$: StaticErrorSchema;
110
- export declare var InvalidRequestException$: StaticErrorSchema;
111
118
  export declare var ListApplicationDPUSizesInput$: StaticStructureSchema;
112
119
  export declare var ListApplicationDPUSizesOutput$: StaticStructureSchema;
113
120
  export declare var ListCalculationExecutionsRequest$: StaticStructureSchema;
@@ -144,7 +151,6 @@ export declare var ManagedLoggingConfiguration$: StaticStructureSchema;
144
151
  export declare var ManagedQueryResultsConfiguration$: StaticStructureSchema;
145
152
  export declare var ManagedQueryResultsConfigurationUpdates$: StaticStructureSchema;
146
153
  export declare var ManagedQueryResultsEncryptionConfiguration$: StaticStructureSchema;
147
- export declare var MetadataException$: StaticErrorSchema;
148
154
  export declare var MonitoringConfiguration$: StaticStructureSchema;
149
155
  export declare var NamedQuery$: StaticStructureSchema;
150
156
  export declare var NotebookMetadata$: StaticStructureSchema;
@@ -163,7 +169,6 @@ export declare var QueryRuntimeStatisticsRows$: StaticStructureSchema;
163
169
  export declare var QueryRuntimeStatisticsTimeline$: StaticStructureSchema;
164
170
  export declare var QueryStage$: StaticStructureSchema;
165
171
  export declare var QueryStagePlanNode$: StaticStructureSchema;
166
- export declare var ResourceNotFoundException$: StaticErrorSchema;
167
172
  export declare var ResultConfiguration$: StaticStructureSchema;
168
173
  export declare var ResultConfigurationUpdates$: StaticStructureSchema;
169
174
  export declare var ResultReuseByAgeConfiguration$: StaticStructureSchema;
@@ -173,7 +178,6 @@ export declare var ResultSet$: StaticStructureSchema;
173
178
  export declare var ResultSetMetadata$: StaticStructureSchema;
174
179
  export declare var Row$: StaticStructureSchema;
175
180
  export declare var S3LoggingConfiguration$: StaticStructureSchema;
176
- export declare var SessionAlreadyExistsException$: StaticErrorSchema;
177
181
  export declare var SessionConfiguration$: StaticStructureSchema;
178
182
  export declare var SessionStatistics$: StaticStructureSchema;
179
183
  export declare var SessionStatus$: StaticStructureSchema;
@@ -194,7 +198,6 @@ export declare var TagResourceInput$: StaticStructureSchema;
194
198
  export declare var TagResourceOutput$: StaticStructureSchema;
195
199
  export declare var TerminateSessionRequest$: StaticStructureSchema;
196
200
  export declare var TerminateSessionResponse$: StaticStructureSchema;
197
- export declare var TooManyRequestsException$: StaticErrorSchema;
198
201
  export declare var UnprocessedNamedQueryId$: StaticStructureSchema;
199
202
  export declare var UnprocessedPreparedStatementName$: StaticStructureSchema;
200
203
  export declare var UnprocessedQueryExecutionId$: StaticStructureSchema;
@@ -218,7 +221,6 @@ export declare var WorkGroup$: StaticStructureSchema;
218
221
  export declare var WorkGroupConfiguration$: StaticStructureSchema;
219
222
  export declare var WorkGroupConfigurationUpdates$: StaticStructureSchema;
220
223
  export declare var WorkGroupSummary$: StaticStructureSchema;
221
- export declare var AthenaServiceException$: StaticErrorSchema;
222
224
  export declare var BatchGetNamedQuery$: StaticOperationSchema;
223
225
  export declare var BatchGetPreparedStatement$: StaticOperationSchema;
224
226
  export declare var BatchGetQueryExecution$: StaticOperationSchema;
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.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-athena",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",