@aws-sdk/client-athena 3.52.0 → 3.54.1
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 +30 -0
- package/dist-cjs/Athena.js +15 -0
- package/dist-cjs/commands/UpdateNamedQueryCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AthenaServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +99 -3
- package/dist-cjs/protocols/Aws_json1_1.js +349 -856
- package/dist-es/Athena.js +15 -0
- package/dist-es/commands/UpdateNamedQueryCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/AthenaServiceException.js +12 -0
- package/dist-es/models/models_0.js +86 -1
- package/dist-es/protocols/Aws_json1_1.js +710 -986
- package/dist-types/Athena.d.ts +7 -0
- package/dist-types/AthenaClient.d.ts +5 -4
- package/dist-types/commands/UpdateNamedQueryCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AthenaServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +127 -23
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Athena.d.ts +5 -0
- package/dist-types/ts3.4/AthenaClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/UpdateNamedQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AthenaServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +65 -16
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateWorkGroupCommand = exports.deserializeAws_json1_1UpdatePreparedStatementCommand = exports.deserializeAws_json1_1UpdateDataCatalogCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopQueryExecutionCommand = exports.deserializeAws_json1_1StartQueryExecutionCommand = exports.deserializeAws_json1_1ListWorkGroupsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableMetadataCommand = exports.deserializeAws_json1_1ListQueryExecutionsCommand = exports.deserializeAws_json1_1ListPreparedStatementsCommand = exports.deserializeAws_json1_1ListNamedQueriesCommand = exports.deserializeAws_json1_1ListEngineVersionsCommand = exports.deserializeAws_json1_1ListDataCatalogsCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1GetWorkGroupCommand = exports.deserializeAws_json1_1GetTableMetadataCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1GetQueryExecutionCommand = exports.deserializeAws_json1_1GetPreparedStatementCommand = exports.deserializeAws_json1_1GetNamedQueryCommand = exports.deserializeAws_json1_1GetDataCatalogCommand = exports.deserializeAws_json1_1GetDatabaseCommand = exports.deserializeAws_json1_1DeleteWorkGroupCommand = exports.deserializeAws_json1_1DeletePreparedStatementCommand = exports.deserializeAws_json1_1DeleteNamedQueryCommand = exports.deserializeAws_json1_1DeleteDataCatalogCommand = exports.deserializeAws_json1_1CreateWorkGroupCommand = exports.deserializeAws_json1_1CreatePreparedStatementCommand = exports.deserializeAws_json1_1CreateNamedQueryCommand = exports.deserializeAws_json1_1CreateDataCatalogCommand = exports.deserializeAws_json1_1BatchGetQueryExecutionCommand = exports.deserializeAws_json1_1BatchGetNamedQueryCommand = exports.serializeAws_json1_1UpdateWorkGroupCommand = exports.serializeAws_json1_1UpdatePreparedStatementCommand = exports.serializeAws_json1_1UpdateNamedQueryCommand = exports.serializeAws_json1_1UpdateDataCatalogCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopQueryExecutionCommand = exports.serializeAws_json1_1StartQueryExecutionCommand = exports.serializeAws_json1_1ListWorkGroupsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListTableMetadataCommand = exports.serializeAws_json1_1ListQueryExecutionsCommand = exports.serializeAws_json1_1ListPreparedStatementsCommand = exports.serializeAws_json1_1ListNamedQueriesCommand = exports.serializeAws_json1_1ListEngineVersionsCommand = exports.serializeAws_json1_1ListDataCatalogsCommand = exports.serializeAws_json1_1ListDatabasesCommand = exports.serializeAws_json1_1GetWorkGroupCommand = exports.serializeAws_json1_1GetTableMetadataCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetQueryExecutionCommand = exports.serializeAws_json1_1GetPreparedStatementCommand = exports.serializeAws_json1_1GetNamedQueryCommand = exports.serializeAws_json1_1GetDataCatalogCommand = exports.serializeAws_json1_1GetDatabaseCommand = exports.serializeAws_json1_1DeleteWorkGroupCommand = exports.serializeAws_json1_1DeletePreparedStatementCommand = exports.serializeAws_json1_1DeleteNamedQueryCommand = exports.serializeAws_json1_1DeleteDataCatalogCommand = exports.serializeAws_json1_1CreateWorkGroupCommand = exports.serializeAws_json1_1CreatePreparedStatementCommand = exports.serializeAws_json1_1CreateNamedQueryCommand = exports.serializeAws_json1_1CreateDataCatalogCommand = exports.serializeAws_json1_1BatchGetQueryExecutionCommand = exports.serializeAws_json1_1BatchGetNamedQueryCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateWorkGroupCommand = exports.deserializeAws_json1_1UpdatePreparedStatementCommand = exports.deserializeAws_json1_1UpdateNamedQueryCommand = exports.deserializeAws_json1_1UpdateDataCatalogCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopQueryExecutionCommand = exports.deserializeAws_json1_1StartQueryExecutionCommand = exports.deserializeAws_json1_1ListWorkGroupsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableMetadataCommand = exports.deserializeAws_json1_1ListQueryExecutionsCommand = exports.deserializeAws_json1_1ListPreparedStatementsCommand = exports.deserializeAws_json1_1ListNamedQueriesCommand = exports.deserializeAws_json1_1ListEngineVersionsCommand = exports.deserializeAws_json1_1ListDataCatalogsCommand = exports.deserializeAws_json1_1ListDatabasesCommand = exports.deserializeAws_json1_1GetWorkGroupCommand = exports.deserializeAws_json1_1GetTableMetadataCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const AthenaServiceException_1 = require("../models/AthenaServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_json1_1BatchGetNamedQueryCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -325,6 +327,16 @@ const serializeAws_json1_1UpdateDataCatalogCommand = async (input, context) => {
|
|
|
325
327
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
326
328
|
};
|
|
327
329
|
exports.serializeAws_json1_1UpdateDataCatalogCommand = serializeAws_json1_1UpdateDataCatalogCommand;
|
|
330
|
+
const serializeAws_json1_1UpdateNamedQueryCommand = async (input, context) => {
|
|
331
|
+
const headers = {
|
|
332
|
+
"content-type": "application/x-amz-json-1.1",
|
|
333
|
+
"x-amz-target": "AmazonAthena.UpdateNamedQuery",
|
|
334
|
+
};
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify(serializeAws_json1_1UpdateNamedQueryInput(input, context));
|
|
337
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
+
};
|
|
339
|
+
exports.serializeAws_json1_1UpdateNamedQueryCommand = serializeAws_json1_1UpdateNamedQueryCommand;
|
|
328
340
|
const serializeAws_json1_1UpdatePreparedStatementCommand = async (input, context) => {
|
|
329
341
|
const headers = {
|
|
330
342
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -370,35 +382,19 @@ const deserializeAws_json1_1BatchGetNamedQueryCommandError = async (output, cont
|
|
|
370
382
|
switch (errorCode) {
|
|
371
383
|
case "InternalServerException":
|
|
372
384
|
case "com.amazonaws.athena#InternalServerException":
|
|
373
|
-
|
|
374
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
375
|
-
name: errorCode,
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
};
|
|
378
|
-
break;
|
|
385
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
379
386
|
case "InvalidRequestException":
|
|
380
387
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
381
|
-
|
|
382
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
383
|
-
name: errorCode,
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
};
|
|
386
|
-
break;
|
|
388
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
387
389
|
default:
|
|
388
390
|
const parsedBody = parsedOutput.body;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
...parsedBody,
|
|
392
|
-
name: `${errorCode}`,
|
|
393
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
391
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
392
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
394
393
|
$fault: "client",
|
|
395
394
|
$metadata: deserializeMetadata(output),
|
|
396
|
-
};
|
|
395
|
+
});
|
|
396
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
397
397
|
}
|
|
398
|
-
const message = response.message || response.Message || errorCode;
|
|
399
|
-
response.message = message;
|
|
400
|
-
delete response.Message;
|
|
401
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
402
398
|
};
|
|
403
399
|
const deserializeAws_json1_1BatchGetQueryExecutionCommand = async (output, context) => {
|
|
404
400
|
if (output.statusCode >= 300) {
|
|
@@ -425,35 +421,19 @@ const deserializeAws_json1_1BatchGetQueryExecutionCommandError = async (output,
|
|
|
425
421
|
switch (errorCode) {
|
|
426
422
|
case "InternalServerException":
|
|
427
423
|
case "com.amazonaws.athena#InternalServerException":
|
|
428
|
-
|
|
429
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
430
|
-
name: errorCode,
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
};
|
|
433
|
-
break;
|
|
424
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
434
425
|
case "InvalidRequestException":
|
|
435
426
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
436
|
-
|
|
437
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
438
|
-
name: errorCode,
|
|
439
|
-
$metadata: deserializeMetadata(output),
|
|
440
|
-
};
|
|
441
|
-
break;
|
|
427
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
442
428
|
default:
|
|
443
429
|
const parsedBody = parsedOutput.body;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
...parsedBody,
|
|
447
|
-
name: `${errorCode}`,
|
|
448
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
430
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
431
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
449
432
|
$fault: "client",
|
|
450
433
|
$metadata: deserializeMetadata(output),
|
|
451
|
-
};
|
|
434
|
+
});
|
|
435
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
452
436
|
}
|
|
453
|
-
const message = response.message || response.Message || errorCode;
|
|
454
|
-
response.message = message;
|
|
455
|
-
delete response.Message;
|
|
456
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
457
437
|
};
|
|
458
438
|
const deserializeAws_json1_1CreateDataCatalogCommand = async (output, context) => {
|
|
459
439
|
if (output.statusCode >= 300) {
|
|
@@ -480,35 +460,19 @@ const deserializeAws_json1_1CreateDataCatalogCommandError = async (output, conte
|
|
|
480
460
|
switch (errorCode) {
|
|
481
461
|
case "InternalServerException":
|
|
482
462
|
case "com.amazonaws.athena#InternalServerException":
|
|
483
|
-
|
|
484
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
485
|
-
name: errorCode,
|
|
486
|
-
$metadata: deserializeMetadata(output),
|
|
487
|
-
};
|
|
488
|
-
break;
|
|
463
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
489
464
|
case "InvalidRequestException":
|
|
490
465
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
491
|
-
|
|
492
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
493
|
-
name: errorCode,
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
};
|
|
496
|
-
break;
|
|
466
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
497
467
|
default:
|
|
498
468
|
const parsedBody = parsedOutput.body;
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
...parsedBody,
|
|
502
|
-
name: `${errorCode}`,
|
|
503
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
469
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
470
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
504
471
|
$fault: "client",
|
|
505
472
|
$metadata: deserializeMetadata(output),
|
|
506
|
-
};
|
|
473
|
+
});
|
|
474
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
507
475
|
}
|
|
508
|
-
const message = response.message || response.Message || errorCode;
|
|
509
|
-
response.message = message;
|
|
510
|
-
delete response.Message;
|
|
511
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
512
476
|
};
|
|
513
477
|
const deserializeAws_json1_1CreateNamedQueryCommand = async (output, context) => {
|
|
514
478
|
if (output.statusCode >= 300) {
|
|
@@ -535,35 +499,19 @@ const deserializeAws_json1_1CreateNamedQueryCommandError = async (output, contex
|
|
|
535
499
|
switch (errorCode) {
|
|
536
500
|
case "InternalServerException":
|
|
537
501
|
case "com.amazonaws.athena#InternalServerException":
|
|
538
|
-
|
|
539
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
540
|
-
name: errorCode,
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
};
|
|
543
|
-
break;
|
|
502
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
544
503
|
case "InvalidRequestException":
|
|
545
504
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
546
|
-
|
|
547
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
548
|
-
name: errorCode,
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
};
|
|
551
|
-
break;
|
|
505
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
552
506
|
default:
|
|
553
507
|
const parsedBody = parsedOutput.body;
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
...parsedBody,
|
|
557
|
-
name: `${errorCode}`,
|
|
558
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
508
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
509
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
559
510
|
$fault: "client",
|
|
560
511
|
$metadata: deserializeMetadata(output),
|
|
561
|
-
};
|
|
512
|
+
});
|
|
513
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
562
514
|
}
|
|
563
|
-
const message = response.message || response.Message || errorCode;
|
|
564
|
-
response.message = message;
|
|
565
|
-
delete response.Message;
|
|
566
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
567
515
|
};
|
|
568
516
|
const deserializeAws_json1_1CreatePreparedStatementCommand = async (output, context) => {
|
|
569
517
|
if (output.statusCode >= 300) {
|
|
@@ -590,35 +538,19 @@ const deserializeAws_json1_1CreatePreparedStatementCommandError = async (output,
|
|
|
590
538
|
switch (errorCode) {
|
|
591
539
|
case "InternalServerException":
|
|
592
540
|
case "com.amazonaws.athena#InternalServerException":
|
|
593
|
-
|
|
594
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
595
|
-
name: errorCode,
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
598
|
-
break;
|
|
541
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
599
542
|
case "InvalidRequestException":
|
|
600
543
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
601
|
-
|
|
602
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
603
|
-
name: errorCode,
|
|
604
|
-
$metadata: deserializeMetadata(output),
|
|
605
|
-
};
|
|
606
|
-
break;
|
|
544
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
607
545
|
default:
|
|
608
546
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
...parsedBody,
|
|
612
|
-
name: `${errorCode}`,
|
|
613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
547
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
548
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
614
549
|
$fault: "client",
|
|
615
550
|
$metadata: deserializeMetadata(output),
|
|
616
|
-
};
|
|
551
|
+
});
|
|
552
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
617
553
|
}
|
|
618
|
-
const message = response.message || response.Message || errorCode;
|
|
619
|
-
response.message = message;
|
|
620
|
-
delete response.Message;
|
|
621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
622
554
|
};
|
|
623
555
|
const deserializeAws_json1_1CreateWorkGroupCommand = async (output, context) => {
|
|
624
556
|
if (output.statusCode >= 300) {
|
|
@@ -645,35 +577,19 @@ const deserializeAws_json1_1CreateWorkGroupCommandError = async (output, context
|
|
|
645
577
|
switch (errorCode) {
|
|
646
578
|
case "InternalServerException":
|
|
647
579
|
case "com.amazonaws.athena#InternalServerException":
|
|
648
|
-
|
|
649
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
650
|
-
name: errorCode,
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
};
|
|
653
|
-
break;
|
|
580
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
654
581
|
case "InvalidRequestException":
|
|
655
582
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
656
|
-
|
|
657
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
658
|
-
name: errorCode,
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
661
|
-
break;
|
|
583
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
662
584
|
default:
|
|
663
585
|
const parsedBody = parsedOutput.body;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
...parsedBody,
|
|
667
|
-
name: `${errorCode}`,
|
|
668
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
586
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
587
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
669
588
|
$fault: "client",
|
|
670
589
|
$metadata: deserializeMetadata(output),
|
|
671
|
-
};
|
|
590
|
+
});
|
|
591
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
672
592
|
}
|
|
673
|
-
const message = response.message || response.Message || errorCode;
|
|
674
|
-
response.message = message;
|
|
675
|
-
delete response.Message;
|
|
676
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
677
593
|
};
|
|
678
594
|
const deserializeAws_json1_1DeleteDataCatalogCommand = async (output, context) => {
|
|
679
595
|
if (output.statusCode >= 300) {
|
|
@@ -700,35 +616,19 @@ const deserializeAws_json1_1DeleteDataCatalogCommandError = async (output, conte
|
|
|
700
616
|
switch (errorCode) {
|
|
701
617
|
case "InternalServerException":
|
|
702
618
|
case "com.amazonaws.athena#InternalServerException":
|
|
703
|
-
|
|
704
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
705
|
-
name: errorCode,
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
};
|
|
708
|
-
break;
|
|
619
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
709
620
|
case "InvalidRequestException":
|
|
710
621
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
711
|
-
|
|
712
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
713
|
-
name: errorCode,
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
};
|
|
716
|
-
break;
|
|
622
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
717
623
|
default:
|
|
718
624
|
const parsedBody = parsedOutput.body;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
...parsedBody,
|
|
722
|
-
name: `${errorCode}`,
|
|
723
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
625
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
626
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
724
627
|
$fault: "client",
|
|
725
628
|
$metadata: deserializeMetadata(output),
|
|
726
|
-
};
|
|
629
|
+
});
|
|
630
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
727
631
|
}
|
|
728
|
-
const message = response.message || response.Message || errorCode;
|
|
729
|
-
response.message = message;
|
|
730
|
-
delete response.Message;
|
|
731
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
732
632
|
};
|
|
733
633
|
const deserializeAws_json1_1DeleteNamedQueryCommand = async (output, context) => {
|
|
734
634
|
if (output.statusCode >= 300) {
|
|
@@ -755,35 +655,19 @@ const deserializeAws_json1_1DeleteNamedQueryCommandError = async (output, contex
|
|
|
755
655
|
switch (errorCode) {
|
|
756
656
|
case "InternalServerException":
|
|
757
657
|
case "com.amazonaws.athena#InternalServerException":
|
|
758
|
-
|
|
759
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
760
|
-
name: errorCode,
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
};
|
|
763
|
-
break;
|
|
658
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
764
659
|
case "InvalidRequestException":
|
|
765
660
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
766
|
-
|
|
767
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
768
|
-
name: errorCode,
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
};
|
|
771
|
-
break;
|
|
661
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
772
662
|
default:
|
|
773
663
|
const parsedBody = parsedOutput.body;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
...parsedBody,
|
|
777
|
-
name: `${errorCode}`,
|
|
778
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
664
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
665
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
779
666
|
$fault: "client",
|
|
780
667
|
$metadata: deserializeMetadata(output),
|
|
781
|
-
};
|
|
668
|
+
});
|
|
669
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
782
670
|
}
|
|
783
|
-
const message = response.message || response.Message || errorCode;
|
|
784
|
-
response.message = message;
|
|
785
|
-
delete response.Message;
|
|
786
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
787
671
|
};
|
|
788
672
|
const deserializeAws_json1_1DeletePreparedStatementCommand = async (output, context) => {
|
|
789
673
|
if (output.statusCode >= 300) {
|
|
@@ -810,43 +694,22 @@ const deserializeAws_json1_1DeletePreparedStatementCommandError = async (output,
|
|
|
810
694
|
switch (errorCode) {
|
|
811
695
|
case "InternalServerException":
|
|
812
696
|
case "com.amazonaws.athena#InternalServerException":
|
|
813
|
-
|
|
814
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
815
|
-
name: errorCode,
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
818
|
-
break;
|
|
697
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
819
698
|
case "InvalidRequestException":
|
|
820
699
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
821
|
-
|
|
822
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
823
|
-
name: errorCode,
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
};
|
|
826
|
-
break;
|
|
700
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
827
701
|
case "ResourceNotFoundException":
|
|
828
702
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
829
|
-
|
|
830
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
831
|
-
name: errorCode,
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
break;
|
|
703
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
835
704
|
default:
|
|
836
705
|
const parsedBody = parsedOutput.body;
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
...parsedBody,
|
|
840
|
-
name: `${errorCode}`,
|
|
841
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
706
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
707
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
842
708
|
$fault: "client",
|
|
843
709
|
$metadata: deserializeMetadata(output),
|
|
844
|
-
};
|
|
710
|
+
});
|
|
711
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
845
712
|
}
|
|
846
|
-
const message = response.message || response.Message || errorCode;
|
|
847
|
-
response.message = message;
|
|
848
|
-
delete response.Message;
|
|
849
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
850
713
|
};
|
|
851
714
|
const deserializeAws_json1_1DeleteWorkGroupCommand = async (output, context) => {
|
|
852
715
|
if (output.statusCode >= 300) {
|
|
@@ -873,35 +736,19 @@ const deserializeAws_json1_1DeleteWorkGroupCommandError = async (output, context
|
|
|
873
736
|
switch (errorCode) {
|
|
874
737
|
case "InternalServerException":
|
|
875
738
|
case "com.amazonaws.athena#InternalServerException":
|
|
876
|
-
|
|
877
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
878
|
-
name: errorCode,
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
};
|
|
881
|
-
break;
|
|
739
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
882
740
|
case "InvalidRequestException":
|
|
883
741
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
884
|
-
|
|
885
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
886
|
-
name: errorCode,
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
};
|
|
889
|
-
break;
|
|
742
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
890
743
|
default:
|
|
891
744
|
const parsedBody = parsedOutput.body;
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
...parsedBody,
|
|
895
|
-
name: `${errorCode}`,
|
|
896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
745
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
746
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
897
747
|
$fault: "client",
|
|
898
748
|
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
749
|
+
});
|
|
750
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
900
751
|
}
|
|
901
|
-
const message = response.message || response.Message || errorCode;
|
|
902
|
-
response.message = message;
|
|
903
|
-
delete response.Message;
|
|
904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
905
752
|
};
|
|
906
753
|
const deserializeAws_json1_1GetDatabaseCommand = async (output, context) => {
|
|
907
754
|
if (output.statusCode >= 300) {
|
|
@@ -928,43 +775,22 @@ const deserializeAws_json1_1GetDatabaseCommandError = async (output, context) =>
|
|
|
928
775
|
switch (errorCode) {
|
|
929
776
|
case "InternalServerException":
|
|
930
777
|
case "com.amazonaws.athena#InternalServerException":
|
|
931
|
-
|
|
932
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
933
|
-
name: errorCode,
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
};
|
|
936
|
-
break;
|
|
778
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
937
779
|
case "InvalidRequestException":
|
|
938
780
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
939
|
-
|
|
940
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
941
|
-
name: errorCode,
|
|
942
|
-
$metadata: deserializeMetadata(output),
|
|
943
|
-
};
|
|
944
|
-
break;
|
|
781
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
945
782
|
case "MetadataException":
|
|
946
783
|
case "com.amazonaws.athena#MetadataException":
|
|
947
|
-
|
|
948
|
-
...(await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context)),
|
|
949
|
-
name: errorCode,
|
|
950
|
-
$metadata: deserializeMetadata(output),
|
|
951
|
-
};
|
|
952
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
953
785
|
default:
|
|
954
786
|
const parsedBody = parsedOutput.body;
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
...parsedBody,
|
|
958
|
-
name: `${errorCode}`,
|
|
959
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
787
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
788
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
960
789
|
$fault: "client",
|
|
961
790
|
$metadata: deserializeMetadata(output),
|
|
962
|
-
};
|
|
791
|
+
});
|
|
792
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
963
793
|
}
|
|
964
|
-
const message = response.message || response.Message || errorCode;
|
|
965
|
-
response.message = message;
|
|
966
|
-
delete response.Message;
|
|
967
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
968
794
|
};
|
|
969
795
|
const deserializeAws_json1_1GetDataCatalogCommand = async (output, context) => {
|
|
970
796
|
if (output.statusCode >= 300) {
|
|
@@ -991,35 +817,19 @@ const deserializeAws_json1_1GetDataCatalogCommandError = async (output, context)
|
|
|
991
817
|
switch (errorCode) {
|
|
992
818
|
case "InternalServerException":
|
|
993
819
|
case "com.amazonaws.athena#InternalServerException":
|
|
994
|
-
|
|
995
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
820
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1000
821
|
case "InvalidRequestException":
|
|
1001
822
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1002
|
-
|
|
1003
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1004
|
-
name: errorCode,
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
};
|
|
1007
|
-
break;
|
|
823
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1008
824
|
default:
|
|
1009
825
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
...parsedBody,
|
|
1013
|
-
name: `${errorCode}`,
|
|
1014
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
826
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
827
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1015
828
|
$fault: "client",
|
|
1016
829
|
$metadata: deserializeMetadata(output),
|
|
1017
|
-
};
|
|
830
|
+
});
|
|
831
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1018
832
|
}
|
|
1019
|
-
const message = response.message || response.Message || errorCode;
|
|
1020
|
-
response.message = message;
|
|
1021
|
-
delete response.Message;
|
|
1022
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1023
833
|
};
|
|
1024
834
|
const deserializeAws_json1_1GetNamedQueryCommand = async (output, context) => {
|
|
1025
835
|
if (output.statusCode >= 300) {
|
|
@@ -1046,35 +856,19 @@ const deserializeAws_json1_1GetNamedQueryCommandError = async (output, context)
|
|
|
1046
856
|
switch (errorCode) {
|
|
1047
857
|
case "InternalServerException":
|
|
1048
858
|
case "com.amazonaws.athena#InternalServerException":
|
|
1049
|
-
|
|
1050
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1051
|
-
name: errorCode,
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
1054
|
-
break;
|
|
859
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1055
860
|
case "InvalidRequestException":
|
|
1056
861
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
862
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1063
863
|
default:
|
|
1064
864
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
...parsedBody,
|
|
1068
|
-
name: `${errorCode}`,
|
|
1069
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
865
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
866
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1070
867
|
$fault: "client",
|
|
1071
868
|
$metadata: deserializeMetadata(output),
|
|
1072
|
-
};
|
|
869
|
+
});
|
|
870
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1073
871
|
}
|
|
1074
|
-
const message = response.message || response.Message || errorCode;
|
|
1075
|
-
response.message = message;
|
|
1076
|
-
delete response.Message;
|
|
1077
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1078
872
|
};
|
|
1079
873
|
const deserializeAws_json1_1GetPreparedStatementCommand = async (output, context) => {
|
|
1080
874
|
if (output.statusCode >= 300) {
|
|
@@ -1101,43 +895,22 @@ const deserializeAws_json1_1GetPreparedStatementCommandError = async (output, co
|
|
|
1101
895
|
switch (errorCode) {
|
|
1102
896
|
case "InternalServerException":
|
|
1103
897
|
case "com.amazonaws.athena#InternalServerException":
|
|
1104
|
-
|
|
1105
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1106
|
-
name: errorCode,
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
};
|
|
1109
|
-
break;
|
|
898
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1110
899
|
case "InvalidRequestException":
|
|
1111
900
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1112
|
-
|
|
1113
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1114
|
-
name: errorCode,
|
|
1115
|
-
$metadata: deserializeMetadata(output),
|
|
1116
|
-
};
|
|
1117
|
-
break;
|
|
901
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1118
902
|
case "ResourceNotFoundException":
|
|
1119
903
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1120
|
-
|
|
1121
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1122
|
-
name: errorCode,
|
|
1123
|
-
$metadata: deserializeMetadata(output),
|
|
1124
|
-
};
|
|
1125
|
-
break;
|
|
904
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1126
905
|
default:
|
|
1127
906
|
const parsedBody = parsedOutput.body;
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
...parsedBody,
|
|
1131
|
-
name: `${errorCode}`,
|
|
1132
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
907
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
908
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1133
909
|
$fault: "client",
|
|
1134
910
|
$metadata: deserializeMetadata(output),
|
|
1135
|
-
};
|
|
911
|
+
});
|
|
912
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1136
913
|
}
|
|
1137
|
-
const message = response.message || response.Message || errorCode;
|
|
1138
|
-
response.message = message;
|
|
1139
|
-
delete response.Message;
|
|
1140
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1141
914
|
};
|
|
1142
915
|
const deserializeAws_json1_1GetQueryExecutionCommand = async (output, context) => {
|
|
1143
916
|
if (output.statusCode >= 300) {
|
|
@@ -1164,35 +937,19 @@ const deserializeAws_json1_1GetQueryExecutionCommandError = async (output, conte
|
|
|
1164
937
|
switch (errorCode) {
|
|
1165
938
|
case "InternalServerException":
|
|
1166
939
|
case "com.amazonaws.athena#InternalServerException":
|
|
1167
|
-
|
|
1168
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1169
|
-
name: errorCode,
|
|
1170
|
-
$metadata: deserializeMetadata(output),
|
|
1171
|
-
};
|
|
1172
|
-
break;
|
|
940
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1173
941
|
case "InvalidRequestException":
|
|
1174
942
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1175
|
-
|
|
1176
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1177
|
-
name: errorCode,
|
|
1178
|
-
$metadata: deserializeMetadata(output),
|
|
1179
|
-
};
|
|
1180
|
-
break;
|
|
943
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1181
944
|
default:
|
|
1182
945
|
const parsedBody = parsedOutput.body;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
...parsedBody,
|
|
1186
|
-
name: `${errorCode}`,
|
|
1187
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
946
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
947
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1188
948
|
$fault: "client",
|
|
1189
949
|
$metadata: deserializeMetadata(output),
|
|
1190
|
-
};
|
|
950
|
+
});
|
|
951
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1191
952
|
}
|
|
1192
|
-
const message = response.message || response.Message || errorCode;
|
|
1193
|
-
response.message = message;
|
|
1194
|
-
delete response.Message;
|
|
1195
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1196
953
|
};
|
|
1197
954
|
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
1198
955
|
if (output.statusCode >= 300) {
|
|
@@ -1219,35 +976,19 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
1219
976
|
switch (errorCode) {
|
|
1220
977
|
case "InternalServerException":
|
|
1221
978
|
case "com.amazonaws.athena#InternalServerException":
|
|
1222
|
-
|
|
1223
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1224
|
-
name: errorCode,
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1227
|
-
break;
|
|
979
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1228
980
|
case "InvalidRequestException":
|
|
1229
981
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1230
|
-
|
|
1231
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1232
|
-
name: errorCode,
|
|
1233
|
-
$metadata: deserializeMetadata(output),
|
|
1234
|
-
};
|
|
1235
|
-
break;
|
|
982
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1236
983
|
default:
|
|
1237
984
|
const parsedBody = parsedOutput.body;
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
...parsedBody,
|
|
1241
|
-
name: `${errorCode}`,
|
|
1242
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
985
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
986
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1243
987
|
$fault: "client",
|
|
1244
988
|
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
989
|
+
});
|
|
990
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1246
991
|
}
|
|
1247
|
-
const message = response.message || response.Message || errorCode;
|
|
1248
|
-
response.message = message;
|
|
1249
|
-
delete response.Message;
|
|
1250
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1251
992
|
};
|
|
1252
993
|
const deserializeAws_json1_1GetTableMetadataCommand = async (output, context) => {
|
|
1253
994
|
if (output.statusCode >= 300) {
|
|
@@ -1274,43 +1015,22 @@ const deserializeAws_json1_1GetTableMetadataCommandError = async (output, contex
|
|
|
1274
1015
|
switch (errorCode) {
|
|
1275
1016
|
case "InternalServerException":
|
|
1276
1017
|
case "com.amazonaws.athena#InternalServerException":
|
|
1277
|
-
|
|
1278
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1279
|
-
name: errorCode,
|
|
1280
|
-
$metadata: deserializeMetadata(output),
|
|
1281
|
-
};
|
|
1282
|
-
break;
|
|
1018
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1283
1019
|
case "InvalidRequestException":
|
|
1284
1020
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1285
|
-
|
|
1286
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1287
|
-
name: errorCode,
|
|
1288
|
-
$metadata: deserializeMetadata(output),
|
|
1289
|
-
};
|
|
1290
|
-
break;
|
|
1021
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1291
1022
|
case "MetadataException":
|
|
1292
1023
|
case "com.amazonaws.athena#MetadataException":
|
|
1293
|
-
|
|
1294
|
-
...(await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context)),
|
|
1295
|
-
name: errorCode,
|
|
1296
|
-
$metadata: deserializeMetadata(output),
|
|
1297
|
-
};
|
|
1298
|
-
break;
|
|
1024
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1299
1025
|
default:
|
|
1300
1026
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
...parsedBody,
|
|
1304
|
-
name: `${errorCode}`,
|
|
1305
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1027
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1028
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1306
1029
|
$fault: "client",
|
|
1307
1030
|
$metadata: deserializeMetadata(output),
|
|
1308
|
-
};
|
|
1031
|
+
});
|
|
1032
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1309
1033
|
}
|
|
1310
|
-
const message = response.message || response.Message || errorCode;
|
|
1311
|
-
response.message = message;
|
|
1312
|
-
delete response.Message;
|
|
1313
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1314
1034
|
};
|
|
1315
1035
|
const deserializeAws_json1_1GetWorkGroupCommand = async (output, context) => {
|
|
1316
1036
|
if (output.statusCode >= 300) {
|
|
@@ -1337,35 +1057,19 @@ const deserializeAws_json1_1GetWorkGroupCommandError = async (output, context) =
|
|
|
1337
1057
|
switch (errorCode) {
|
|
1338
1058
|
case "InternalServerException":
|
|
1339
1059
|
case "com.amazonaws.athena#InternalServerException":
|
|
1340
|
-
|
|
1341
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1342
|
-
name: errorCode,
|
|
1343
|
-
$metadata: deserializeMetadata(output),
|
|
1344
|
-
};
|
|
1345
|
-
break;
|
|
1060
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1346
1061
|
case "InvalidRequestException":
|
|
1347
1062
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1348
|
-
|
|
1349
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1350
|
-
name: errorCode,
|
|
1351
|
-
$metadata: deserializeMetadata(output),
|
|
1352
|
-
};
|
|
1353
|
-
break;
|
|
1063
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1354
1064
|
default:
|
|
1355
1065
|
const parsedBody = parsedOutput.body;
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
...parsedBody,
|
|
1359
|
-
name: `${errorCode}`,
|
|
1360
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1066
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1067
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1361
1068
|
$fault: "client",
|
|
1362
1069
|
$metadata: deserializeMetadata(output),
|
|
1363
|
-
};
|
|
1070
|
+
});
|
|
1071
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1364
1072
|
}
|
|
1365
|
-
const message = response.message || response.Message || errorCode;
|
|
1366
|
-
response.message = message;
|
|
1367
|
-
delete response.Message;
|
|
1368
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1369
1073
|
};
|
|
1370
1074
|
const deserializeAws_json1_1ListDatabasesCommand = async (output, context) => {
|
|
1371
1075
|
if (output.statusCode >= 300) {
|
|
@@ -1392,43 +1096,22 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (output, context)
|
|
|
1392
1096
|
switch (errorCode) {
|
|
1393
1097
|
case "InternalServerException":
|
|
1394
1098
|
case "com.amazonaws.athena#InternalServerException":
|
|
1395
|
-
|
|
1396
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1397
|
-
name: errorCode,
|
|
1398
|
-
$metadata: deserializeMetadata(output),
|
|
1399
|
-
};
|
|
1400
|
-
break;
|
|
1099
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1401
1100
|
case "InvalidRequestException":
|
|
1402
1101
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1403
|
-
|
|
1404
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1405
|
-
name: errorCode,
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
};
|
|
1408
|
-
break;
|
|
1102
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1409
1103
|
case "MetadataException":
|
|
1410
1104
|
case "com.amazonaws.athena#MetadataException":
|
|
1411
|
-
|
|
1412
|
-
...(await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context)),
|
|
1413
|
-
name: errorCode,
|
|
1414
|
-
$metadata: deserializeMetadata(output),
|
|
1415
|
-
};
|
|
1416
|
-
break;
|
|
1105
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1417
1106
|
default:
|
|
1418
1107
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
...parsedBody,
|
|
1422
|
-
name: `${errorCode}`,
|
|
1423
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1108
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1424
1110
|
$fault: "client",
|
|
1425
1111
|
$metadata: deserializeMetadata(output),
|
|
1426
|
-
};
|
|
1112
|
+
});
|
|
1113
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1427
1114
|
}
|
|
1428
|
-
const message = response.message || response.Message || errorCode;
|
|
1429
|
-
response.message = message;
|
|
1430
|
-
delete response.Message;
|
|
1431
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1432
1115
|
};
|
|
1433
1116
|
const deserializeAws_json1_1ListDataCatalogsCommand = async (output, context) => {
|
|
1434
1117
|
if (output.statusCode >= 300) {
|
|
@@ -1455,35 +1138,19 @@ const deserializeAws_json1_1ListDataCatalogsCommandError = async (output, contex
|
|
|
1455
1138
|
switch (errorCode) {
|
|
1456
1139
|
case "InternalServerException":
|
|
1457
1140
|
case "com.amazonaws.athena#InternalServerException":
|
|
1458
|
-
|
|
1459
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1460
|
-
name: errorCode,
|
|
1461
|
-
$metadata: deserializeMetadata(output),
|
|
1462
|
-
};
|
|
1463
|
-
break;
|
|
1141
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1464
1142
|
case "InvalidRequestException":
|
|
1465
1143
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1466
|
-
|
|
1467
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1468
|
-
name: errorCode,
|
|
1469
|
-
$metadata: deserializeMetadata(output),
|
|
1470
|
-
};
|
|
1471
|
-
break;
|
|
1144
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1472
1145
|
default:
|
|
1473
1146
|
const parsedBody = parsedOutput.body;
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
...parsedBody,
|
|
1477
|
-
name: `${errorCode}`,
|
|
1478
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1147
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1148
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1479
1149
|
$fault: "client",
|
|
1480
1150
|
$metadata: deserializeMetadata(output),
|
|
1481
|
-
};
|
|
1151
|
+
});
|
|
1152
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1482
1153
|
}
|
|
1483
|
-
const message = response.message || response.Message || errorCode;
|
|
1484
|
-
response.message = message;
|
|
1485
|
-
delete response.Message;
|
|
1486
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1487
1154
|
};
|
|
1488
1155
|
const deserializeAws_json1_1ListEngineVersionsCommand = async (output, context) => {
|
|
1489
1156
|
if (output.statusCode >= 300) {
|
|
@@ -1510,35 +1177,19 @@ const deserializeAws_json1_1ListEngineVersionsCommandError = async (output, cont
|
|
|
1510
1177
|
switch (errorCode) {
|
|
1511
1178
|
case "InternalServerException":
|
|
1512
1179
|
case "com.amazonaws.athena#InternalServerException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1180
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1519
1181
|
case "InvalidRequestException":
|
|
1520
1182
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1183
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1527
1184
|
default:
|
|
1528
1185
|
const parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
...parsedBody,
|
|
1532
|
-
name: `${errorCode}`,
|
|
1533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1186
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1187
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
1188
|
$fault: "client",
|
|
1535
1189
|
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1190
|
+
});
|
|
1191
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1537
1192
|
}
|
|
1538
|
-
const message = response.message || response.Message || errorCode;
|
|
1539
|
-
response.message = message;
|
|
1540
|
-
delete response.Message;
|
|
1541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1542
1193
|
};
|
|
1543
1194
|
const deserializeAws_json1_1ListNamedQueriesCommand = async (output, context) => {
|
|
1544
1195
|
if (output.statusCode >= 300) {
|
|
@@ -1565,35 +1216,19 @@ const deserializeAws_json1_1ListNamedQueriesCommandError = async (output, contex
|
|
|
1565
1216
|
switch (errorCode) {
|
|
1566
1217
|
case "InternalServerException":
|
|
1567
1218
|
case "com.amazonaws.athena#InternalServerException":
|
|
1568
|
-
|
|
1569
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1570
|
-
name: errorCode,
|
|
1571
|
-
$metadata: deserializeMetadata(output),
|
|
1572
|
-
};
|
|
1573
|
-
break;
|
|
1219
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1574
1220
|
case "InvalidRequestException":
|
|
1575
1221
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1576
|
-
|
|
1577
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1578
|
-
name: errorCode,
|
|
1579
|
-
$metadata: deserializeMetadata(output),
|
|
1580
|
-
};
|
|
1581
|
-
break;
|
|
1222
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1582
1223
|
default:
|
|
1583
1224
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
...parsedBody,
|
|
1587
|
-
name: `${errorCode}`,
|
|
1588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1225
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1226
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
1227
|
$fault: "client",
|
|
1590
1228
|
$metadata: deserializeMetadata(output),
|
|
1591
|
-
};
|
|
1229
|
+
});
|
|
1230
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1592
1231
|
}
|
|
1593
|
-
const message = response.message || response.Message || errorCode;
|
|
1594
|
-
response.message = message;
|
|
1595
|
-
delete response.Message;
|
|
1596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1597
1232
|
};
|
|
1598
1233
|
const deserializeAws_json1_1ListPreparedStatementsCommand = async (output, context) => {
|
|
1599
1234
|
if (output.statusCode >= 300) {
|
|
@@ -1620,35 +1255,19 @@ const deserializeAws_json1_1ListPreparedStatementsCommandError = async (output,
|
|
|
1620
1255
|
switch (errorCode) {
|
|
1621
1256
|
case "InternalServerException":
|
|
1622
1257
|
case "com.amazonaws.athena#InternalServerException":
|
|
1623
|
-
|
|
1624
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1625
|
-
name: errorCode,
|
|
1626
|
-
$metadata: deserializeMetadata(output),
|
|
1627
|
-
};
|
|
1628
|
-
break;
|
|
1258
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1629
1259
|
case "InvalidRequestException":
|
|
1630
1260
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1631
|
-
|
|
1632
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1633
|
-
name: errorCode,
|
|
1634
|
-
$metadata: deserializeMetadata(output),
|
|
1635
|
-
};
|
|
1636
|
-
break;
|
|
1261
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1637
1262
|
default:
|
|
1638
1263
|
const parsedBody = parsedOutput.body;
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
...parsedBody,
|
|
1642
|
-
name: `${errorCode}`,
|
|
1643
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1264
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1265
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1644
1266
|
$fault: "client",
|
|
1645
1267
|
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1268
|
+
});
|
|
1269
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1647
1270
|
}
|
|
1648
|
-
const message = response.message || response.Message || errorCode;
|
|
1649
|
-
response.message = message;
|
|
1650
|
-
delete response.Message;
|
|
1651
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1652
1271
|
};
|
|
1653
1272
|
const deserializeAws_json1_1ListQueryExecutionsCommand = async (output, context) => {
|
|
1654
1273
|
if (output.statusCode >= 300) {
|
|
@@ -1675,35 +1294,19 @@ const deserializeAws_json1_1ListQueryExecutionsCommandError = async (output, con
|
|
|
1675
1294
|
switch (errorCode) {
|
|
1676
1295
|
case "InternalServerException":
|
|
1677
1296
|
case "com.amazonaws.athena#InternalServerException":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1297
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1684
1298
|
case "InvalidRequestException":
|
|
1685
1299
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1300
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1692
1301
|
default:
|
|
1693
1302
|
const parsedBody = parsedOutput.body;
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
...parsedBody,
|
|
1697
|
-
name: `${errorCode}`,
|
|
1698
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1303
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1304
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1699
1305
|
$fault: "client",
|
|
1700
1306
|
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1307
|
+
});
|
|
1308
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1702
1309
|
}
|
|
1703
|
-
const message = response.message || response.Message || errorCode;
|
|
1704
|
-
response.message = message;
|
|
1705
|
-
delete response.Message;
|
|
1706
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1707
1310
|
};
|
|
1708
1311
|
const deserializeAws_json1_1ListTableMetadataCommand = async (output, context) => {
|
|
1709
1312
|
if (output.statusCode >= 300) {
|
|
@@ -1730,43 +1333,22 @@ const deserializeAws_json1_1ListTableMetadataCommandError = async (output, conte
|
|
|
1730
1333
|
switch (errorCode) {
|
|
1731
1334
|
case "InternalServerException":
|
|
1732
1335
|
case "com.amazonaws.athena#InternalServerException":
|
|
1733
|
-
|
|
1734
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1735
|
-
name: errorCode,
|
|
1736
|
-
$metadata: deserializeMetadata(output),
|
|
1737
|
-
};
|
|
1738
|
-
break;
|
|
1336
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1739
1337
|
case "InvalidRequestException":
|
|
1740
1338
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1741
|
-
|
|
1742
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1743
|
-
name: errorCode,
|
|
1744
|
-
$metadata: deserializeMetadata(output),
|
|
1745
|
-
};
|
|
1746
|
-
break;
|
|
1339
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1747
1340
|
case "MetadataException":
|
|
1748
1341
|
case "com.amazonaws.athena#MetadataException":
|
|
1749
|
-
|
|
1750
|
-
...(await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context)),
|
|
1751
|
-
name: errorCode,
|
|
1752
|
-
$metadata: deserializeMetadata(output),
|
|
1753
|
-
};
|
|
1754
|
-
break;
|
|
1342
|
+
throw await deserializeAws_json1_1MetadataExceptionResponse(parsedOutput, context);
|
|
1755
1343
|
default:
|
|
1756
1344
|
const parsedBody = parsedOutput.body;
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
...parsedBody,
|
|
1760
|
-
name: `${errorCode}`,
|
|
1761
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1345
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1346
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1762
1347
|
$fault: "client",
|
|
1763
1348
|
$metadata: deserializeMetadata(output),
|
|
1764
|
-
};
|
|
1349
|
+
});
|
|
1350
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1765
1351
|
}
|
|
1766
|
-
const message = response.message || response.Message || errorCode;
|
|
1767
|
-
response.message = message;
|
|
1768
|
-
delete response.Message;
|
|
1769
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1770
1352
|
};
|
|
1771
1353
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1772
1354
|
if (output.statusCode >= 300) {
|
|
@@ -1793,43 +1375,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1793
1375
|
switch (errorCode) {
|
|
1794
1376
|
case "InternalServerException":
|
|
1795
1377
|
case "com.amazonaws.athena#InternalServerException":
|
|
1796
|
-
|
|
1797
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1798
|
-
name: errorCode,
|
|
1799
|
-
$metadata: deserializeMetadata(output),
|
|
1800
|
-
};
|
|
1801
|
-
break;
|
|
1378
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1802
1379
|
case "InvalidRequestException":
|
|
1803
1380
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1804
|
-
|
|
1805
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1806
|
-
name: errorCode,
|
|
1807
|
-
$metadata: deserializeMetadata(output),
|
|
1808
|
-
};
|
|
1809
|
-
break;
|
|
1381
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1810
1382
|
case "ResourceNotFoundException":
|
|
1811
1383
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
1812
|
-
|
|
1813
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1814
|
-
name: errorCode,
|
|
1815
|
-
$metadata: deserializeMetadata(output),
|
|
1816
|
-
};
|
|
1817
|
-
break;
|
|
1384
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1818
1385
|
default:
|
|
1819
1386
|
const parsedBody = parsedOutput.body;
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
...parsedBody,
|
|
1823
|
-
name: `${errorCode}`,
|
|
1824
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1387
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1388
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1825
1389
|
$fault: "client",
|
|
1826
1390
|
$metadata: deserializeMetadata(output),
|
|
1827
|
-
};
|
|
1391
|
+
});
|
|
1392
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1828
1393
|
}
|
|
1829
|
-
const message = response.message || response.Message || errorCode;
|
|
1830
|
-
response.message = message;
|
|
1831
|
-
delete response.Message;
|
|
1832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1833
1394
|
};
|
|
1834
1395
|
const deserializeAws_json1_1ListWorkGroupsCommand = async (output, context) => {
|
|
1835
1396
|
if (output.statusCode >= 300) {
|
|
@@ -1856,35 +1417,19 @@ const deserializeAws_json1_1ListWorkGroupsCommandError = async (output, context)
|
|
|
1856
1417
|
switch (errorCode) {
|
|
1857
1418
|
case "InternalServerException":
|
|
1858
1419
|
case "com.amazonaws.athena#InternalServerException":
|
|
1859
|
-
|
|
1860
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1861
|
-
name: errorCode,
|
|
1862
|
-
$metadata: deserializeMetadata(output),
|
|
1863
|
-
};
|
|
1864
|
-
break;
|
|
1420
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1865
1421
|
case "InvalidRequestException":
|
|
1866
1422
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1867
|
-
|
|
1868
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1869
|
-
name: errorCode,
|
|
1870
|
-
$metadata: deserializeMetadata(output),
|
|
1871
|
-
};
|
|
1872
|
-
break;
|
|
1423
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1873
1424
|
default:
|
|
1874
1425
|
const parsedBody = parsedOutput.body;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
...parsedBody,
|
|
1878
|
-
name: `${errorCode}`,
|
|
1879
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1426
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1427
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1880
1428
|
$fault: "client",
|
|
1881
1429
|
$metadata: deserializeMetadata(output),
|
|
1882
|
-
};
|
|
1430
|
+
});
|
|
1431
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1883
1432
|
}
|
|
1884
|
-
const message = response.message || response.Message || errorCode;
|
|
1885
|
-
response.message = message;
|
|
1886
|
-
delete response.Message;
|
|
1887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1888
1433
|
};
|
|
1889
1434
|
const deserializeAws_json1_1StartQueryExecutionCommand = async (output, context) => {
|
|
1890
1435
|
if (output.statusCode >= 300) {
|
|
@@ -1911,43 +1456,22 @@ const deserializeAws_json1_1StartQueryExecutionCommandError = async (output, con
|
|
|
1911
1456
|
switch (errorCode) {
|
|
1912
1457
|
case "InternalServerException":
|
|
1913
1458
|
case "com.amazonaws.athena#InternalServerException":
|
|
1914
|
-
|
|
1915
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1916
|
-
name: errorCode,
|
|
1917
|
-
$metadata: deserializeMetadata(output),
|
|
1918
|
-
};
|
|
1919
|
-
break;
|
|
1459
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1920
1460
|
case "InvalidRequestException":
|
|
1921
1461
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1922
|
-
|
|
1923
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1924
|
-
name: errorCode,
|
|
1925
|
-
$metadata: deserializeMetadata(output),
|
|
1926
|
-
};
|
|
1927
|
-
break;
|
|
1462
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1928
1463
|
case "TooManyRequestsException":
|
|
1929
1464
|
case "com.amazonaws.athena#TooManyRequestsException":
|
|
1930
|
-
|
|
1931
|
-
...(await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1932
|
-
name: errorCode,
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1935
|
-
break;
|
|
1465
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1936
1466
|
default:
|
|
1937
1467
|
const parsedBody = parsedOutput.body;
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
...parsedBody,
|
|
1941
|
-
name: `${errorCode}`,
|
|
1942
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1468
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1469
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1943
1470
|
$fault: "client",
|
|
1944
1471
|
$metadata: deserializeMetadata(output),
|
|
1945
|
-
};
|
|
1472
|
+
});
|
|
1473
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1946
1474
|
}
|
|
1947
|
-
const message = response.message || response.Message || errorCode;
|
|
1948
|
-
response.message = message;
|
|
1949
|
-
delete response.Message;
|
|
1950
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1951
1475
|
};
|
|
1952
1476
|
const deserializeAws_json1_1StopQueryExecutionCommand = async (output, context) => {
|
|
1953
1477
|
if (output.statusCode >= 300) {
|
|
@@ -1974,35 +1498,19 @@ const deserializeAws_json1_1StopQueryExecutionCommandError = async (output, cont
|
|
|
1974
1498
|
switch (errorCode) {
|
|
1975
1499
|
case "InternalServerException":
|
|
1976
1500
|
case "com.amazonaws.athena#InternalServerException":
|
|
1977
|
-
|
|
1978
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1979
|
-
name: errorCode,
|
|
1980
|
-
$metadata: deserializeMetadata(output),
|
|
1981
|
-
};
|
|
1982
|
-
break;
|
|
1501
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1983
1502
|
case "InvalidRequestException":
|
|
1984
1503
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
1985
|
-
|
|
1986
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
1987
|
-
name: errorCode,
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
};
|
|
1990
|
-
break;
|
|
1504
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1991
1505
|
default:
|
|
1992
1506
|
const parsedBody = parsedOutput.body;
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
...parsedBody,
|
|
1996
|
-
name: `${errorCode}`,
|
|
1997
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1507
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1508
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1998
1509
|
$fault: "client",
|
|
1999
1510
|
$metadata: deserializeMetadata(output),
|
|
2000
|
-
};
|
|
1511
|
+
});
|
|
1512
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2001
1513
|
}
|
|
2002
|
-
const message = response.message || response.Message || errorCode;
|
|
2003
|
-
response.message = message;
|
|
2004
|
-
delete response.Message;
|
|
2005
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2006
1514
|
};
|
|
2007
1515
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2008
1516
|
if (output.statusCode >= 300) {
|
|
@@ -2029,43 +1537,22 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2029
1537
|
switch (errorCode) {
|
|
2030
1538
|
case "InternalServerException":
|
|
2031
1539
|
case "com.amazonaws.athena#InternalServerException":
|
|
2032
|
-
|
|
2033
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2034
|
-
name: errorCode,
|
|
2035
|
-
$metadata: deserializeMetadata(output),
|
|
2036
|
-
};
|
|
2037
|
-
break;
|
|
1540
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2038
1541
|
case "InvalidRequestException":
|
|
2039
1542
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
2040
|
-
|
|
2041
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2042
|
-
name: errorCode,
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2045
|
-
break;
|
|
1543
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2046
1544
|
case "ResourceNotFoundException":
|
|
2047
1545
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2048
|
-
|
|
2049
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2050
|
-
name: errorCode,
|
|
2051
|
-
$metadata: deserializeMetadata(output),
|
|
2052
|
-
};
|
|
2053
|
-
break;
|
|
1546
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2054
1547
|
default:
|
|
2055
1548
|
const parsedBody = parsedOutput.body;
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
...parsedBody,
|
|
2059
|
-
name: `${errorCode}`,
|
|
2060
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1549
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1550
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2061
1551
|
$fault: "client",
|
|
2062
1552
|
$metadata: deserializeMetadata(output),
|
|
2063
|
-
};
|
|
1553
|
+
});
|
|
1554
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2064
1555
|
}
|
|
2065
|
-
const message = response.message || response.Message || errorCode;
|
|
2066
|
-
response.message = message;
|
|
2067
|
-
delete response.Message;
|
|
2068
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2069
1556
|
};
|
|
2070
1557
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2071
1558
|
if (output.statusCode >= 300) {
|
|
@@ -2092,43 +1579,22 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2092
1579
|
switch (errorCode) {
|
|
2093
1580
|
case "InternalServerException":
|
|
2094
1581
|
case "com.amazonaws.athena#InternalServerException":
|
|
2095
|
-
|
|
2096
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2097
|
-
name: errorCode,
|
|
2098
|
-
$metadata: deserializeMetadata(output),
|
|
2099
|
-
};
|
|
2100
|
-
break;
|
|
1582
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2101
1583
|
case "InvalidRequestException":
|
|
2102
1584
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
2103
|
-
|
|
2104
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2105
|
-
name: errorCode,
|
|
2106
|
-
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
2108
|
-
break;
|
|
1585
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2109
1586
|
case "ResourceNotFoundException":
|
|
2110
1587
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2111
|
-
|
|
2112
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2113
|
-
name: errorCode,
|
|
2114
|
-
$metadata: deserializeMetadata(output),
|
|
2115
|
-
};
|
|
2116
|
-
break;
|
|
1588
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2117
1589
|
default:
|
|
2118
1590
|
const parsedBody = parsedOutput.body;
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
...parsedBody,
|
|
2122
|
-
name: `${errorCode}`,
|
|
2123
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1591
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1592
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2124
1593
|
$fault: "client",
|
|
2125
1594
|
$metadata: deserializeMetadata(output),
|
|
2126
|
-
};
|
|
1595
|
+
});
|
|
1596
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2127
1597
|
}
|
|
2128
|
-
const message = response.message || response.Message || errorCode;
|
|
2129
|
-
response.message = message;
|
|
2130
|
-
delete response.Message;
|
|
2131
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2132
1598
|
};
|
|
2133
1599
|
const deserializeAws_json1_1UpdateDataCatalogCommand = async (output, context) => {
|
|
2134
1600
|
if (output.statusCode >= 300) {
|
|
@@ -2155,35 +1621,58 @@ const deserializeAws_json1_1UpdateDataCatalogCommandError = async (output, conte
|
|
|
2155
1621
|
switch (errorCode) {
|
|
2156
1622
|
case "InternalServerException":
|
|
2157
1623
|
case "com.amazonaws.athena#InternalServerException":
|
|
2158
|
-
|
|
2159
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2160
|
-
name: errorCode,
|
|
2161
|
-
$metadata: deserializeMetadata(output),
|
|
2162
|
-
};
|
|
2163
|
-
break;
|
|
1624
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2164
1625
|
case "InvalidRequestException":
|
|
2165
1626
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
1627
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1628
|
+
default:
|
|
1629
|
+
const parsedBody = parsedOutput.body;
|
|
1630
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1631
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
|
+
$fault: "client",
|
|
2169
1633
|
$metadata: deserializeMetadata(output),
|
|
2170
|
-
};
|
|
2171
|
-
|
|
1634
|
+
});
|
|
1635
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
const deserializeAws_json1_1UpdateNamedQueryCommand = async (output, context) => {
|
|
1639
|
+
if (output.statusCode >= 300) {
|
|
1640
|
+
return deserializeAws_json1_1UpdateNamedQueryCommandError(output, context);
|
|
1641
|
+
}
|
|
1642
|
+
const data = await parseBody(output.body, context);
|
|
1643
|
+
let contents = {};
|
|
1644
|
+
contents = deserializeAws_json1_1UpdateNamedQueryOutput(data, context);
|
|
1645
|
+
const response = {
|
|
1646
|
+
$metadata: deserializeMetadata(output),
|
|
1647
|
+
...contents,
|
|
1648
|
+
};
|
|
1649
|
+
return Promise.resolve(response);
|
|
1650
|
+
};
|
|
1651
|
+
exports.deserializeAws_json1_1UpdateNamedQueryCommand = deserializeAws_json1_1UpdateNamedQueryCommand;
|
|
1652
|
+
const deserializeAws_json1_1UpdateNamedQueryCommandError = async (output, context) => {
|
|
1653
|
+
const parsedOutput = {
|
|
1654
|
+
...output,
|
|
1655
|
+
body: await parseBody(output.body, context),
|
|
1656
|
+
};
|
|
1657
|
+
let response;
|
|
1658
|
+
let errorCode = "UnknownError";
|
|
1659
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
+
switch (errorCode) {
|
|
1661
|
+
case "InternalServerException":
|
|
1662
|
+
case "com.amazonaws.athena#InternalServerException":
|
|
1663
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1664
|
+
case "InvalidRequestException":
|
|
1665
|
+
case "com.amazonaws.athena#InvalidRequestException":
|
|
1666
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2172
1667
|
default:
|
|
2173
1668
|
const parsedBody = parsedOutput.body;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
...parsedBody,
|
|
2177
|
-
name: `${errorCode}`,
|
|
2178
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1669
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1670
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2179
1671
|
$fault: "client",
|
|
2180
1672
|
$metadata: deserializeMetadata(output),
|
|
2181
|
-
};
|
|
1673
|
+
});
|
|
1674
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2182
1675
|
}
|
|
2183
|
-
const message = response.message || response.Message || errorCode;
|
|
2184
|
-
response.message = message;
|
|
2185
|
-
delete response.Message;
|
|
2186
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2187
1676
|
};
|
|
2188
1677
|
const deserializeAws_json1_1UpdatePreparedStatementCommand = async (output, context) => {
|
|
2189
1678
|
if (output.statusCode >= 300) {
|
|
@@ -2210,43 +1699,22 @@ const deserializeAws_json1_1UpdatePreparedStatementCommandError = async (output,
|
|
|
2210
1699
|
switch (errorCode) {
|
|
2211
1700
|
case "InternalServerException":
|
|
2212
1701
|
case "com.amazonaws.athena#InternalServerException":
|
|
2213
|
-
|
|
2214
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
1702
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2219
1703
|
case "InvalidRequestException":
|
|
2220
1704
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
2221
|
-
|
|
2222
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
1705
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2227
1706
|
case "ResourceNotFoundException":
|
|
2228
1707
|
case "com.amazonaws.athena#ResourceNotFoundException":
|
|
2229
|
-
|
|
2230
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2231
|
-
name: errorCode,
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2234
|
-
break;
|
|
1708
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2235
1709
|
default:
|
|
2236
1710
|
const parsedBody = parsedOutput.body;
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
...parsedBody,
|
|
2240
|
-
name: `${errorCode}`,
|
|
2241
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1711
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1712
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2242
1713
|
$fault: "client",
|
|
2243
1714
|
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
1715
|
+
});
|
|
1716
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2245
1717
|
}
|
|
2246
|
-
const message = response.message || response.Message || errorCode;
|
|
2247
|
-
response.message = message;
|
|
2248
|
-
delete response.Message;
|
|
2249
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2250
1718
|
};
|
|
2251
1719
|
const deserializeAws_json1_1UpdateWorkGroupCommand = async (output, context) => {
|
|
2252
1720
|
if (output.statusCode >= 300) {
|
|
@@ -2273,90 +1741,69 @@ const deserializeAws_json1_1UpdateWorkGroupCommandError = async (output, context
|
|
|
2273
1741
|
switch (errorCode) {
|
|
2274
1742
|
case "InternalServerException":
|
|
2275
1743
|
case "com.amazonaws.athena#InternalServerException":
|
|
2276
|
-
|
|
2277
|
-
...(await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2278
|
-
name: errorCode,
|
|
2279
|
-
$metadata: deserializeMetadata(output),
|
|
2280
|
-
};
|
|
2281
|
-
break;
|
|
1744
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
2282
1745
|
case "InvalidRequestException":
|
|
2283
1746
|
case "com.amazonaws.athena#InvalidRequestException":
|
|
2284
|
-
|
|
2285
|
-
...(await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2286
|
-
name: errorCode,
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
};
|
|
2289
|
-
break;
|
|
1747
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2290
1748
|
default:
|
|
2291
1749
|
const parsedBody = parsedOutput.body;
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
...parsedBody,
|
|
2295
|
-
name: `${errorCode}`,
|
|
2296
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1750
|
+
response = new AthenaServiceException_1.AthenaServiceException({
|
|
1751
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2297
1752
|
$fault: "client",
|
|
2298
1753
|
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
1754
|
+
});
|
|
1755
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2300
1756
|
}
|
|
2301
|
-
const message = response.message || response.Message || errorCode;
|
|
2302
|
-
response.message = message;
|
|
2303
|
-
delete response.Message;
|
|
2304
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2305
1757
|
};
|
|
2306
1758
|
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2307
1759
|
const body = parsedOutput.body;
|
|
2308
1760
|
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
2309
|
-
const
|
|
2310
|
-
name: "InternalServerException",
|
|
2311
|
-
$fault: "server",
|
|
1761
|
+
const exception = new models_0_1.InternalServerException({
|
|
2312
1762
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2313
1763
|
...deserialized,
|
|
2314
|
-
};
|
|
2315
|
-
return
|
|
1764
|
+
});
|
|
1765
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2316
1766
|
};
|
|
2317
1767
|
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
2318
1768
|
const body = parsedOutput.body;
|
|
2319
1769
|
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2320
|
-
const
|
|
2321
|
-
name: "InvalidRequestException",
|
|
2322
|
-
$fault: "client",
|
|
1770
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
2323
1771
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2324
1772
|
...deserialized,
|
|
2325
|
-
};
|
|
2326
|
-
return
|
|
1773
|
+
});
|
|
1774
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2327
1775
|
};
|
|
2328
1776
|
const deserializeAws_json1_1MetadataExceptionResponse = async (parsedOutput, context) => {
|
|
2329
1777
|
const body = parsedOutput.body;
|
|
2330
1778
|
const deserialized = deserializeAws_json1_1MetadataException(body, context);
|
|
2331
|
-
const
|
|
2332
|
-
name: "MetadataException",
|
|
2333
|
-
$fault: "client",
|
|
1779
|
+
const exception = new models_0_1.MetadataException({
|
|
2334
1780
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2335
1781
|
...deserialized,
|
|
2336
|
-
};
|
|
2337
|
-
return
|
|
1782
|
+
});
|
|
1783
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2338
1784
|
};
|
|
2339
1785
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2340
1786
|
const body = parsedOutput.body;
|
|
2341
1787
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2342
|
-
const
|
|
2343
|
-
name: "ResourceNotFoundException",
|
|
2344
|
-
$fault: "client",
|
|
1788
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2345
1789
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2346
1790
|
...deserialized,
|
|
2347
|
-
};
|
|
2348
|
-
return
|
|
1791
|
+
});
|
|
1792
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2349
1793
|
};
|
|
2350
1794
|
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
2351
1795
|
const body = parsedOutput.body;
|
|
2352
1796
|
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
2353
|
-
const
|
|
2354
|
-
name: "TooManyRequestsException",
|
|
2355
|
-
$fault: "client",
|
|
1797
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
2356
1798
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2357
1799
|
...deserialized,
|
|
1800
|
+
});
|
|
1801
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1802
|
+
};
|
|
1803
|
+
const serializeAws_json1_1AclConfiguration = (input, context) => {
|
|
1804
|
+
return {
|
|
1805
|
+
...(input.S3AclOption !== undefined && input.S3AclOption !== null && { S3AclOption: input.S3AclOption }),
|
|
2358
1806
|
};
|
|
2359
|
-
return contents;
|
|
2360
1807
|
};
|
|
2361
1808
|
const serializeAws_json1_1BatchGetNamedQueryInput = (input, context) => {
|
|
2362
1809
|
return {
|
|
@@ -2603,6 +2050,10 @@ const serializeAws_json1_1QueryExecutionIdList = (input, context) => {
|
|
|
2603
2050
|
};
|
|
2604
2051
|
const serializeAws_json1_1ResultConfiguration = (input, context) => {
|
|
2605
2052
|
return {
|
|
2053
|
+
...(input.AclConfiguration !== undefined &&
|
|
2054
|
+
input.AclConfiguration !== null && {
|
|
2055
|
+
AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
|
|
2056
|
+
}),
|
|
2606
2057
|
...(input.EncryptionConfiguration !== undefined &&
|
|
2607
2058
|
input.EncryptionConfiguration !== null && {
|
|
2608
2059
|
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
@@ -2615,6 +2066,10 @@ const serializeAws_json1_1ResultConfiguration = (input, context) => {
|
|
|
2615
2066
|
};
|
|
2616
2067
|
const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
|
|
2617
2068
|
return {
|
|
2069
|
+
...(input.AclConfiguration !== undefined &&
|
|
2070
|
+
input.AclConfiguration !== null && {
|
|
2071
|
+
AclConfiguration: serializeAws_json1_1AclConfiguration(input.AclConfiguration, context),
|
|
2072
|
+
}),
|
|
2618
2073
|
...(input.EncryptionConfiguration !== undefined &&
|
|
2619
2074
|
input.EncryptionConfiguration !== null && {
|
|
2620
2075
|
EncryptionConfiguration: serializeAws_json1_1EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
@@ -2623,6 +2078,8 @@ const serializeAws_json1_1ResultConfigurationUpdates = (input, context) => {
|
|
|
2623
2078
|
input.ExpectedBucketOwner !== null && { ExpectedBucketOwner: input.ExpectedBucketOwner }),
|
|
2624
2079
|
...(input.OutputLocation !== undefined &&
|
|
2625
2080
|
input.OutputLocation !== null && { OutputLocation: input.OutputLocation }),
|
|
2081
|
+
...(input.RemoveAclConfiguration !== undefined &&
|
|
2082
|
+
input.RemoveAclConfiguration !== null && { RemoveAclConfiguration: input.RemoveAclConfiguration }),
|
|
2626
2083
|
...(input.RemoveEncryptionConfiguration !== undefined &&
|
|
2627
2084
|
input.RemoveEncryptionConfiguration !== null && {
|
|
2628
2085
|
RemoveEncryptionConfiguration: input.RemoveEncryptionConfiguration,
|
|
@@ -2703,6 +2160,14 @@ const serializeAws_json1_1UpdateDataCatalogInput = (input, context) => {
|
|
|
2703
2160
|
...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
|
|
2704
2161
|
};
|
|
2705
2162
|
};
|
|
2163
|
+
const serializeAws_json1_1UpdateNamedQueryInput = (input, context) => {
|
|
2164
|
+
return {
|
|
2165
|
+
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
2166
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2167
|
+
...(input.NamedQueryId !== undefined && input.NamedQueryId !== null && { NamedQueryId: input.NamedQueryId }),
|
|
2168
|
+
...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2706
2171
|
const serializeAws_json1_1UpdatePreparedStatementInput = (input, context) => {
|
|
2707
2172
|
return {
|
|
2708
2173
|
...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
|
|
@@ -2775,6 +2240,11 @@ const serializeAws_json1_1WorkGroupConfigurationUpdates = (input, context) => {
|
|
|
2775
2240
|
}),
|
|
2776
2241
|
};
|
|
2777
2242
|
};
|
|
2243
|
+
const deserializeAws_json1_1AclConfiguration = (output, context) => {
|
|
2244
|
+
return {
|
|
2245
|
+
S3AclOption: smithy_client_1.expectString(output.S3AclOption),
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2778
2248
|
const deserializeAws_json1_1AthenaError = (output, context) => {
|
|
2779
2249
|
return {
|
|
2780
2250
|
ErrorCategory: smithy_client_1.expectInt32(output.ErrorCategory),
|
|
@@ -2823,7 +2293,7 @@ const deserializeAws_json1_1ColumnInfo = (output, context) => {
|
|
|
2823
2293
|
};
|
|
2824
2294
|
};
|
|
2825
2295
|
const deserializeAws_json1_1ColumnInfoList = (output, context) => {
|
|
2826
|
-
|
|
2296
|
+
const retVal = (output || [])
|
|
2827
2297
|
.filter((e) => e != null)
|
|
2828
2298
|
.map((entry) => {
|
|
2829
2299
|
if (entry === null) {
|
|
@@ -2831,9 +2301,10 @@ const deserializeAws_json1_1ColumnInfoList = (output, context) => {
|
|
|
2831
2301
|
}
|
|
2832
2302
|
return deserializeAws_json1_1ColumnInfo(entry, context);
|
|
2833
2303
|
});
|
|
2304
|
+
return retVal;
|
|
2834
2305
|
};
|
|
2835
2306
|
const deserializeAws_json1_1ColumnList = (output, context) => {
|
|
2836
|
-
|
|
2307
|
+
const retVal = (output || [])
|
|
2837
2308
|
.filter((e) => e != null)
|
|
2838
2309
|
.map((entry) => {
|
|
2839
2310
|
if (entry === null) {
|
|
@@ -2841,6 +2312,7 @@ const deserializeAws_json1_1ColumnList = (output, context) => {
|
|
|
2841
2312
|
}
|
|
2842
2313
|
return deserializeAws_json1_1Column(entry, context);
|
|
2843
2314
|
});
|
|
2315
|
+
return retVal;
|
|
2844
2316
|
};
|
|
2845
2317
|
const deserializeAws_json1_1CreateDataCatalogOutput = (output, context) => {
|
|
2846
2318
|
return {};
|
|
@@ -2866,7 +2338,7 @@ const deserializeAws_json1_1Database = (output, context) => {
|
|
|
2866
2338
|
};
|
|
2867
2339
|
};
|
|
2868
2340
|
const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
2869
|
-
|
|
2341
|
+
const retVal = (output || [])
|
|
2870
2342
|
.filter((e) => e != null)
|
|
2871
2343
|
.map((entry) => {
|
|
2872
2344
|
if (entry === null) {
|
|
@@ -2874,6 +2346,7 @@ const deserializeAws_json1_1DatabaseList = (output, context) => {
|
|
|
2874
2346
|
}
|
|
2875
2347
|
return deserializeAws_json1_1Database(entry, context);
|
|
2876
2348
|
});
|
|
2349
|
+
return retVal;
|
|
2877
2350
|
};
|
|
2878
2351
|
const deserializeAws_json1_1DataCatalog = (output, context) => {
|
|
2879
2352
|
return {
|
|
@@ -2892,7 +2365,7 @@ const deserializeAws_json1_1DataCatalogSummary = (output, context) => {
|
|
|
2892
2365
|
};
|
|
2893
2366
|
};
|
|
2894
2367
|
const deserializeAws_json1_1DataCatalogSummaryList = (output, context) => {
|
|
2895
|
-
|
|
2368
|
+
const retVal = (output || [])
|
|
2896
2369
|
.filter((e) => e != null)
|
|
2897
2370
|
.map((entry) => {
|
|
2898
2371
|
if (entry === null) {
|
|
@@ -2900,6 +2373,7 @@ const deserializeAws_json1_1DataCatalogSummaryList = (output, context) => {
|
|
|
2900
2373
|
}
|
|
2901
2374
|
return deserializeAws_json1_1DataCatalogSummary(entry, context);
|
|
2902
2375
|
});
|
|
2376
|
+
return retVal;
|
|
2903
2377
|
};
|
|
2904
2378
|
const deserializeAws_json1_1Datum = (output, context) => {
|
|
2905
2379
|
return {
|
|
@@ -2907,7 +2381,7 @@ const deserializeAws_json1_1Datum = (output, context) => {
|
|
|
2907
2381
|
};
|
|
2908
2382
|
};
|
|
2909
2383
|
const deserializeAws_json1_1datumList = (output, context) => {
|
|
2910
|
-
|
|
2384
|
+
const retVal = (output || [])
|
|
2911
2385
|
.filter((e) => e != null)
|
|
2912
2386
|
.map((entry) => {
|
|
2913
2387
|
if (entry === null) {
|
|
@@ -2915,6 +2389,7 @@ const deserializeAws_json1_1datumList = (output, context) => {
|
|
|
2915
2389
|
}
|
|
2916
2390
|
return deserializeAws_json1_1Datum(entry, context);
|
|
2917
2391
|
});
|
|
2392
|
+
return retVal;
|
|
2918
2393
|
};
|
|
2919
2394
|
const deserializeAws_json1_1DeleteDataCatalogOutput = (output, context) => {
|
|
2920
2395
|
return {};
|
|
@@ -2941,7 +2416,7 @@ const deserializeAws_json1_1EngineVersion = (output, context) => {
|
|
|
2941
2416
|
};
|
|
2942
2417
|
};
|
|
2943
2418
|
const deserializeAws_json1_1EngineVersionsList = (output, context) => {
|
|
2944
|
-
|
|
2419
|
+
const retVal = (output || [])
|
|
2945
2420
|
.filter((e) => e != null)
|
|
2946
2421
|
.map((entry) => {
|
|
2947
2422
|
if (entry === null) {
|
|
@@ -2949,6 +2424,7 @@ const deserializeAws_json1_1EngineVersionsList = (output, context) => {
|
|
|
2949
2424
|
}
|
|
2950
2425
|
return deserializeAws_json1_1EngineVersion(entry, context);
|
|
2951
2426
|
});
|
|
2427
|
+
return retVal;
|
|
2952
2428
|
};
|
|
2953
2429
|
const deserializeAws_json1_1GetDatabaseOutput = (output, context) => {
|
|
2954
2430
|
return {
|
|
@@ -3107,7 +2583,7 @@ const deserializeAws_json1_1NamedQuery = (output, context) => {
|
|
|
3107
2583
|
};
|
|
3108
2584
|
};
|
|
3109
2585
|
const deserializeAws_json1_1NamedQueryIdList = (output, context) => {
|
|
3110
|
-
|
|
2586
|
+
const retVal = (output || [])
|
|
3111
2587
|
.filter((e) => e != null)
|
|
3112
2588
|
.map((entry) => {
|
|
3113
2589
|
if (entry === null) {
|
|
@@ -3115,9 +2591,10 @@ const deserializeAws_json1_1NamedQueryIdList = (output, context) => {
|
|
|
3115
2591
|
}
|
|
3116
2592
|
return smithy_client_1.expectString(entry);
|
|
3117
2593
|
});
|
|
2594
|
+
return retVal;
|
|
3118
2595
|
};
|
|
3119
2596
|
const deserializeAws_json1_1NamedQueryList = (output, context) => {
|
|
3120
|
-
|
|
2597
|
+
const retVal = (output || [])
|
|
3121
2598
|
.filter((e) => e != null)
|
|
3122
2599
|
.map((entry) => {
|
|
3123
2600
|
if (entry === null) {
|
|
@@ -3125,6 +2602,7 @@ const deserializeAws_json1_1NamedQueryList = (output, context) => {
|
|
|
3125
2602
|
}
|
|
3126
2603
|
return deserializeAws_json1_1NamedQuery(entry, context);
|
|
3127
2604
|
});
|
|
2605
|
+
return retVal;
|
|
3128
2606
|
};
|
|
3129
2607
|
const deserializeAws_json1_1ParametersMap = (output, context) => {
|
|
3130
2608
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3149,7 +2627,7 @@ const deserializeAws_json1_1PreparedStatement = (output, context) => {
|
|
|
3149
2627
|
};
|
|
3150
2628
|
};
|
|
3151
2629
|
const deserializeAws_json1_1PreparedStatementsList = (output, context) => {
|
|
3152
|
-
|
|
2630
|
+
const retVal = (output || [])
|
|
3153
2631
|
.filter((e) => e != null)
|
|
3154
2632
|
.map((entry) => {
|
|
3155
2633
|
if (entry === null) {
|
|
@@ -3157,6 +2635,7 @@ const deserializeAws_json1_1PreparedStatementsList = (output, context) => {
|
|
|
3157
2635
|
}
|
|
3158
2636
|
return deserializeAws_json1_1PreparedStatementSummary(entry, context);
|
|
3159
2637
|
});
|
|
2638
|
+
return retVal;
|
|
3160
2639
|
};
|
|
3161
2640
|
const deserializeAws_json1_1PreparedStatementSummary = (output, context) => {
|
|
3162
2641
|
return {
|
|
@@ -3196,7 +2675,7 @@ const deserializeAws_json1_1QueryExecutionContext = (output, context) => {
|
|
|
3196
2675
|
};
|
|
3197
2676
|
};
|
|
3198
2677
|
const deserializeAws_json1_1QueryExecutionIdList = (output, context) => {
|
|
3199
|
-
|
|
2678
|
+
const retVal = (output || [])
|
|
3200
2679
|
.filter((e) => e != null)
|
|
3201
2680
|
.map((entry) => {
|
|
3202
2681
|
if (entry === null) {
|
|
@@ -3204,9 +2683,10 @@ const deserializeAws_json1_1QueryExecutionIdList = (output, context) => {
|
|
|
3204
2683
|
}
|
|
3205
2684
|
return smithy_client_1.expectString(entry);
|
|
3206
2685
|
});
|
|
2686
|
+
return retVal;
|
|
3207
2687
|
};
|
|
3208
2688
|
const deserializeAws_json1_1QueryExecutionList = (output, context) => {
|
|
3209
|
-
|
|
2689
|
+
const retVal = (output || [])
|
|
3210
2690
|
.filter((e) => e != null)
|
|
3211
2691
|
.map((entry) => {
|
|
3212
2692
|
if (entry === null) {
|
|
@@ -3214,6 +2694,7 @@ const deserializeAws_json1_1QueryExecutionList = (output, context) => {
|
|
|
3214
2694
|
}
|
|
3215
2695
|
return deserializeAws_json1_1QueryExecution(entry, context);
|
|
3216
2696
|
});
|
|
2697
|
+
return retVal;
|
|
3217
2698
|
};
|
|
3218
2699
|
const deserializeAws_json1_1QueryExecutionStatistics = (output, context) => {
|
|
3219
2700
|
return {
|
|
@@ -3249,6 +2730,9 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
3249
2730
|
};
|
|
3250
2731
|
const deserializeAws_json1_1ResultConfiguration = (output, context) => {
|
|
3251
2732
|
return {
|
|
2733
|
+
AclConfiguration: output.AclConfiguration !== undefined && output.AclConfiguration !== null
|
|
2734
|
+
? deserializeAws_json1_1AclConfiguration(output.AclConfiguration, context)
|
|
2735
|
+
: undefined,
|
|
3252
2736
|
EncryptionConfiguration: output.EncryptionConfiguration !== undefined && output.EncryptionConfiguration !== null
|
|
3253
2737
|
? deserializeAws_json1_1EncryptionConfiguration(output.EncryptionConfiguration, context)
|
|
3254
2738
|
: undefined,
|
|
@@ -3281,7 +2765,7 @@ const deserializeAws_json1_1Row = (output, context) => {
|
|
|
3281
2765
|
};
|
|
3282
2766
|
};
|
|
3283
2767
|
const deserializeAws_json1_1RowList = (output, context) => {
|
|
3284
|
-
|
|
2768
|
+
const retVal = (output || [])
|
|
3285
2769
|
.filter((e) => e != null)
|
|
3286
2770
|
.map((entry) => {
|
|
3287
2771
|
if (entry === null) {
|
|
@@ -3289,6 +2773,7 @@ const deserializeAws_json1_1RowList = (output, context) => {
|
|
|
3289
2773
|
}
|
|
3290
2774
|
return deserializeAws_json1_1Row(entry, context);
|
|
3291
2775
|
});
|
|
2776
|
+
return retVal;
|
|
3292
2777
|
};
|
|
3293
2778
|
const deserializeAws_json1_1StartQueryExecutionOutput = (output, context) => {
|
|
3294
2779
|
return {
|
|
@@ -3320,7 +2805,7 @@ const deserializeAws_json1_1TableMetadata = (output, context) => {
|
|
|
3320
2805
|
};
|
|
3321
2806
|
};
|
|
3322
2807
|
const deserializeAws_json1_1TableMetadataList = (output, context) => {
|
|
3323
|
-
|
|
2808
|
+
const retVal = (output || [])
|
|
3324
2809
|
.filter((e) => e != null)
|
|
3325
2810
|
.map((entry) => {
|
|
3326
2811
|
if (entry === null) {
|
|
@@ -3328,6 +2813,7 @@ const deserializeAws_json1_1TableMetadataList = (output, context) => {
|
|
|
3328
2813
|
}
|
|
3329
2814
|
return deserializeAws_json1_1TableMetadata(entry, context);
|
|
3330
2815
|
});
|
|
2816
|
+
return retVal;
|
|
3331
2817
|
};
|
|
3332
2818
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
3333
2819
|
return {
|
|
@@ -3336,7 +2822,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
3336
2822
|
};
|
|
3337
2823
|
};
|
|
3338
2824
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
3339
|
-
|
|
2825
|
+
const retVal = (output || [])
|
|
3340
2826
|
.filter((e) => e != null)
|
|
3341
2827
|
.map((entry) => {
|
|
3342
2828
|
if (entry === null) {
|
|
@@ -3344,6 +2830,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
3344
2830
|
}
|
|
3345
2831
|
return deserializeAws_json1_1Tag(entry, context);
|
|
3346
2832
|
});
|
|
2833
|
+
return retVal;
|
|
3347
2834
|
};
|
|
3348
2835
|
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
3349
2836
|
return {};
|
|
@@ -3362,7 +2849,7 @@ const deserializeAws_json1_1UnprocessedNamedQueryId = (output, context) => {
|
|
|
3362
2849
|
};
|
|
3363
2850
|
};
|
|
3364
2851
|
const deserializeAws_json1_1UnprocessedNamedQueryIdList = (output, context) => {
|
|
3365
|
-
|
|
2852
|
+
const retVal = (output || [])
|
|
3366
2853
|
.filter((e) => e != null)
|
|
3367
2854
|
.map((entry) => {
|
|
3368
2855
|
if (entry === null) {
|
|
@@ -3370,6 +2857,7 @@ const deserializeAws_json1_1UnprocessedNamedQueryIdList = (output, context) => {
|
|
|
3370
2857
|
}
|
|
3371
2858
|
return deserializeAws_json1_1UnprocessedNamedQueryId(entry, context);
|
|
3372
2859
|
});
|
|
2860
|
+
return retVal;
|
|
3373
2861
|
};
|
|
3374
2862
|
const deserializeAws_json1_1UnprocessedQueryExecutionId = (output, context) => {
|
|
3375
2863
|
return {
|
|
@@ -3379,7 +2867,7 @@ const deserializeAws_json1_1UnprocessedQueryExecutionId = (output, context) => {
|
|
|
3379
2867
|
};
|
|
3380
2868
|
};
|
|
3381
2869
|
const deserializeAws_json1_1UnprocessedQueryExecutionIdList = (output, context) => {
|
|
3382
|
-
|
|
2870
|
+
const retVal = (output || [])
|
|
3383
2871
|
.filter((e) => e != null)
|
|
3384
2872
|
.map((entry) => {
|
|
3385
2873
|
if (entry === null) {
|
|
@@ -3387,6 +2875,7 @@ const deserializeAws_json1_1UnprocessedQueryExecutionIdList = (output, context)
|
|
|
3387
2875
|
}
|
|
3388
2876
|
return deserializeAws_json1_1UnprocessedQueryExecutionId(entry, context);
|
|
3389
2877
|
});
|
|
2878
|
+
return retVal;
|
|
3390
2879
|
};
|
|
3391
2880
|
const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
|
|
3392
2881
|
return {};
|
|
@@ -3394,6 +2883,9 @@ const deserializeAws_json1_1UntagResourceOutput = (output, context) => {
|
|
|
3394
2883
|
const deserializeAws_json1_1UpdateDataCatalogOutput = (output, context) => {
|
|
3395
2884
|
return {};
|
|
3396
2885
|
};
|
|
2886
|
+
const deserializeAws_json1_1UpdateNamedQueryOutput = (output, context) => {
|
|
2887
|
+
return {};
|
|
2888
|
+
};
|
|
3397
2889
|
const deserializeAws_json1_1UpdatePreparedStatementOutput = (output, context) => {
|
|
3398
2890
|
return {};
|
|
3399
2891
|
};
|
|
@@ -3428,7 +2920,7 @@ const deserializeAws_json1_1WorkGroupConfiguration = (output, context) => {
|
|
|
3428
2920
|
};
|
|
3429
2921
|
};
|
|
3430
2922
|
const deserializeAws_json1_1WorkGroupsList = (output, context) => {
|
|
3431
|
-
|
|
2923
|
+
const retVal = (output || [])
|
|
3432
2924
|
.filter((e) => e != null)
|
|
3433
2925
|
.map((entry) => {
|
|
3434
2926
|
if (entry === null) {
|
|
@@ -3436,6 +2928,7 @@ const deserializeAws_json1_1WorkGroupsList = (output, context) => {
|
|
|
3436
2928
|
}
|
|
3437
2929
|
return deserializeAws_json1_1WorkGroupSummary(entry, context);
|
|
3438
2930
|
});
|
|
2931
|
+
return retVal;
|
|
3439
2932
|
};
|
|
3440
2933
|
const deserializeAws_json1_1WorkGroupSummary = (output, context) => {
|
|
3441
2934
|
return {
|