@aws-sdk/client-grafana 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/GrafanaServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +110 -1
- package/dist-cjs/protocols/Aws_restJson1.js +166 -528
- package/dist-es/index.js +1 -0
- package/dist-es/models/GrafanaServiceException.js +12 -0
- package/dist-es/models/models_0.js +102 -1
- package/dist-es/protocols/Aws_restJson1.js +299 -581
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/GrafanaServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -47
- package/dist-types/ts3.4/Grafana.d.ts +60 -0
- package/dist-types/ts3.4/GrafanaClient.d.ts +84 -0
- package/dist-types/ts3.4/commands/AssociateLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWorkspaceAuthenticationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateLicenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePermissionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateWorkspaceAuthenticationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateWorkspaceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/GrafanaServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +679 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +35 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
|
-
import {
|
|
5
|
+
import { GrafanaServiceException as __BaseException } from "../models/GrafanaServiceException";
|
|
6
|
+
import { AccessDeniedException, ConflictException, IdpMetadata, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
7
|
export var serializeAws_restJson1AssociateLicenseCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
8
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
8
9
|
return __generator(this, function (_c) {
|
|
@@ -428,16 +429,16 @@ export var deserializeAws_restJson1AssociateLicenseCommand = function (output, c
|
|
|
428
429
|
});
|
|
429
430
|
}); };
|
|
430
431
|
var deserializeAws_restJson1AssociateLicenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
431
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
432
|
-
var
|
|
433
|
-
return __generator(this, function (
|
|
434
|
-
switch (
|
|
432
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
433
|
+
var _c;
|
|
434
|
+
return __generator(this, function (_d) {
|
|
435
|
+
switch (_d.label) {
|
|
435
436
|
case 0:
|
|
436
437
|
_a = [__assign({}, output)];
|
|
437
|
-
|
|
438
|
+
_c = {};
|
|
438
439
|
return [4, parseBody(output.body, context)];
|
|
439
440
|
case 1:
|
|
440
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
441
442
|
errorCode = "UnknownError";
|
|
442
443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
444
|
_b = errorCode;
|
|
@@ -454,46 +455,24 @@ var deserializeAws_restJson1AssociateLicenseCommandError = function (output, con
|
|
|
454
455
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
455
456
|
}
|
|
456
457
|
return [3, 12];
|
|
457
|
-
case 2:
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
case
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
case 4
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
case
|
|
467
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
468
|
-
return [3, 13];
|
|
469
|
-
case 6:
|
|
470
|
-
_e = [{}];
|
|
471
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
472
|
-
case 7:
|
|
473
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
474
|
-
return [3, 13];
|
|
475
|
-
case 8:
|
|
476
|
-
_f = [{}];
|
|
477
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
478
|
-
case 9:
|
|
479
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
480
|
-
return [3, 13];
|
|
481
|
-
case 10:
|
|
482
|
-
_g = [{}];
|
|
483
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
484
|
-
case 11:
|
|
485
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
486
|
-
return [3, 13];
|
|
458
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
459
|
+
case 3: throw _d.sent();
|
|
460
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
461
|
+
case 5: throw _d.sent();
|
|
462
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
463
|
+
case 7: throw _d.sent();
|
|
464
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
465
|
+
case 9: throw _d.sent();
|
|
466
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
467
|
+
case 11: throw _d.sent();
|
|
487
468
|
case 12:
|
|
488
469
|
parsedBody = parsedOutput.body;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
response
|
|
495
|
-
delete response.Message;
|
|
496
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
470
|
+
response = new __BaseException({
|
|
471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
472
|
+
$fault: "client",
|
|
473
|
+
$metadata: deserializeMetadata(output),
|
|
474
|
+
});
|
|
475
|
+
throw __decorateServiceException(response, parsedBody);
|
|
497
476
|
}
|
|
498
477
|
});
|
|
499
478
|
}); };
|
|
@@ -522,16 +501,16 @@ export var deserializeAws_restJson1CreateWorkspaceCommand = function (output, co
|
|
|
522
501
|
});
|
|
523
502
|
}); };
|
|
524
503
|
var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
525
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
526
|
-
var
|
|
527
|
-
return __generator(this, function (
|
|
528
|
-
switch (
|
|
504
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
505
|
+
var _c;
|
|
506
|
+
return __generator(this, function (_d) {
|
|
507
|
+
switch (_d.label) {
|
|
529
508
|
case 0:
|
|
530
509
|
_a = [__assign({}, output)];
|
|
531
|
-
|
|
510
|
+
_c = {};
|
|
532
511
|
return [4, parseBody(output.body, context)];
|
|
533
512
|
case 1:
|
|
534
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
513
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
535
514
|
errorCode = "UnknownError";
|
|
536
515
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
516
|
_b = errorCode;
|
|
@@ -550,52 +529,26 @@ var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, cont
|
|
|
550
529
|
case "com.amazonaws.grafana#ValidationException": return [3, 12];
|
|
551
530
|
}
|
|
552
531
|
return [3, 14];
|
|
553
|
-
case 2:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
case
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
case 4
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
case
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
case 6:
|
|
566
|
-
_e = [{}];
|
|
567
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
568
|
-
case 7:
|
|
569
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
-
return [3, 15];
|
|
571
|
-
case 8:
|
|
572
|
-
_f = [{}];
|
|
573
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
574
|
-
case 9:
|
|
575
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
576
|
-
return [3, 15];
|
|
577
|
-
case 10:
|
|
578
|
-
_g = [{}];
|
|
579
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
580
|
-
case 11:
|
|
581
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
-
return [3, 15];
|
|
583
|
-
case 12:
|
|
584
|
-
_h = [{}];
|
|
585
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
586
|
-
case 13:
|
|
587
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
-
return [3, 15];
|
|
532
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
533
|
+
case 3: throw _d.sent();
|
|
534
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
535
|
+
case 5: throw _d.sent();
|
|
536
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
537
|
+
case 7: throw _d.sent();
|
|
538
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
539
|
+
case 9: throw _d.sent();
|
|
540
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
541
|
+
case 11: throw _d.sent();
|
|
542
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
543
|
+
case 13: throw _d.sent();
|
|
589
544
|
case 14:
|
|
590
545
|
parsedBody = parsedOutput.body;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
response
|
|
597
|
-
delete response.Message;
|
|
598
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
546
|
+
response = new __BaseException({
|
|
547
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
548
|
+
$fault: "client",
|
|
549
|
+
$metadata: deserializeMetadata(output),
|
|
550
|
+
});
|
|
551
|
+
throw __decorateServiceException(response, parsedBody);
|
|
599
552
|
}
|
|
600
553
|
});
|
|
601
554
|
}); };
|
|
@@ -624,16 +577,16 @@ export var deserializeAws_restJson1DeleteWorkspaceCommand = function (output, co
|
|
|
624
577
|
});
|
|
625
578
|
}); };
|
|
626
579
|
var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
628
|
-
var
|
|
629
|
-
return __generator(this, function (
|
|
630
|
-
switch (
|
|
580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
581
|
+
var _c;
|
|
582
|
+
return __generator(this, function (_d) {
|
|
583
|
+
switch (_d.label) {
|
|
631
584
|
case 0:
|
|
632
585
|
_a = [__assign({}, output)];
|
|
633
|
-
|
|
586
|
+
_c = {};
|
|
634
587
|
return [4, parseBody(output.body, context)];
|
|
635
588
|
case 1:
|
|
636
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
589
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
637
590
|
errorCode = "UnknownError";
|
|
638
591
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
639
592
|
_b = errorCode;
|
|
@@ -652,52 +605,26 @@ var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, cont
|
|
|
652
605
|
case "com.amazonaws.grafana#ValidationException": return [3, 12];
|
|
653
606
|
}
|
|
654
607
|
return [3, 14];
|
|
655
|
-
case 2:
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
case
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
case 4
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
case
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
case 6:
|
|
668
|
-
_e = [{}];
|
|
669
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
670
|
-
case 7:
|
|
671
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
672
|
-
return [3, 15];
|
|
673
|
-
case 8:
|
|
674
|
-
_f = [{}];
|
|
675
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
676
|
-
case 9:
|
|
677
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
678
|
-
return [3, 15];
|
|
679
|
-
case 10:
|
|
680
|
-
_g = [{}];
|
|
681
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
682
|
-
case 11:
|
|
683
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
684
|
-
return [3, 15];
|
|
685
|
-
case 12:
|
|
686
|
-
_h = [{}];
|
|
687
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
688
|
-
case 13:
|
|
689
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
690
|
-
return [3, 15];
|
|
608
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
609
|
+
case 3: throw _d.sent();
|
|
610
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
611
|
+
case 5: throw _d.sent();
|
|
612
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
613
|
+
case 7: throw _d.sent();
|
|
614
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
615
|
+
case 9: throw _d.sent();
|
|
616
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
617
|
+
case 11: throw _d.sent();
|
|
618
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
619
|
+
case 13: throw _d.sent();
|
|
691
620
|
case 14:
|
|
692
621
|
parsedBody = parsedOutput.body;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
response
|
|
699
|
-
delete response.Message;
|
|
700
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
622
|
+
response = new __BaseException({
|
|
623
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
624
|
+
$fault: "client",
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
});
|
|
627
|
+
throw __decorateServiceException(response, parsedBody);
|
|
701
628
|
}
|
|
702
629
|
});
|
|
703
630
|
}); };
|
|
@@ -726,16 +653,16 @@ export var deserializeAws_restJson1DescribeWorkspaceCommand = function (output,
|
|
|
726
653
|
});
|
|
727
654
|
}); };
|
|
728
655
|
var deserializeAws_restJson1DescribeWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
729
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
730
|
-
var
|
|
731
|
-
return __generator(this, function (
|
|
732
|
-
switch (
|
|
656
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
657
|
+
var _c;
|
|
658
|
+
return __generator(this, function (_d) {
|
|
659
|
+
switch (_d.label) {
|
|
733
660
|
case 0:
|
|
734
661
|
_a = [__assign({}, output)];
|
|
735
|
-
|
|
662
|
+
_c = {};
|
|
736
663
|
return [4, parseBody(output.body, context)];
|
|
737
664
|
case 1:
|
|
738
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
665
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
739
666
|
errorCode = "UnknownError";
|
|
740
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
668
|
_b = errorCode;
|
|
@@ -752,46 +679,24 @@ var deserializeAws_restJson1DescribeWorkspaceCommandError = function (output, co
|
|
|
752
679
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
753
680
|
}
|
|
754
681
|
return [3, 12];
|
|
755
|
-
case 2:
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
case
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
case 4
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
case
|
|
765
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
766
|
-
return [3, 13];
|
|
767
|
-
case 6:
|
|
768
|
-
_e = [{}];
|
|
769
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
770
|
-
case 7:
|
|
771
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
772
|
-
return [3, 13];
|
|
773
|
-
case 8:
|
|
774
|
-
_f = [{}];
|
|
775
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
776
|
-
case 9:
|
|
777
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
778
|
-
return [3, 13];
|
|
779
|
-
case 10:
|
|
780
|
-
_g = [{}];
|
|
781
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
782
|
-
case 11:
|
|
783
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
784
|
-
return [3, 13];
|
|
682
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
683
|
+
case 3: throw _d.sent();
|
|
684
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
685
|
+
case 5: throw _d.sent();
|
|
686
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
687
|
+
case 7: throw _d.sent();
|
|
688
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
689
|
+
case 9: throw _d.sent();
|
|
690
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
691
|
+
case 11: throw _d.sent();
|
|
785
692
|
case 12:
|
|
786
693
|
parsedBody = parsedOutput.body;
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
response
|
|
793
|
-
delete response.Message;
|
|
794
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
694
|
+
response = new __BaseException({
|
|
695
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
696
|
+
$fault: "client",
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
});
|
|
699
|
+
throw __decorateServiceException(response, parsedBody);
|
|
795
700
|
}
|
|
796
701
|
});
|
|
797
702
|
}); };
|
|
@@ -820,16 +725,16 @@ export var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = func
|
|
|
820
725
|
});
|
|
821
726
|
}); };
|
|
822
727
|
var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
823
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
824
|
-
var
|
|
825
|
-
return __generator(this, function (
|
|
826
|
-
switch (
|
|
728
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
729
|
+
var _c;
|
|
730
|
+
return __generator(this, function (_d) {
|
|
731
|
+
switch (_d.label) {
|
|
827
732
|
case 0:
|
|
828
733
|
_a = [__assign({}, output)];
|
|
829
|
-
|
|
734
|
+
_c = {};
|
|
830
735
|
return [4, parseBody(output.body, context)];
|
|
831
736
|
case 1:
|
|
832
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
737
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
833
738
|
errorCode = "UnknownError";
|
|
834
739
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
835
740
|
_b = errorCode;
|
|
@@ -846,46 +751,24 @@ var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = functi
|
|
|
846
751
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
847
752
|
}
|
|
848
753
|
return [3, 12];
|
|
849
|
-
case 2:
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
case
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
case 4
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
case
|
|
859
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
860
|
-
return [3, 13];
|
|
861
|
-
case 6:
|
|
862
|
-
_e = [{}];
|
|
863
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
864
|
-
case 7:
|
|
865
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
866
|
-
return [3, 13];
|
|
867
|
-
case 8:
|
|
868
|
-
_f = [{}];
|
|
869
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
870
|
-
case 9:
|
|
871
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
872
|
-
return [3, 13];
|
|
873
|
-
case 10:
|
|
874
|
-
_g = [{}];
|
|
875
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
876
|
-
case 11:
|
|
877
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
-
return [3, 13];
|
|
754
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
755
|
+
case 3: throw _d.sent();
|
|
756
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
757
|
+
case 5: throw _d.sent();
|
|
758
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
759
|
+
case 7: throw _d.sent();
|
|
760
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
761
|
+
case 9: throw _d.sent();
|
|
762
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
763
|
+
case 11: throw _d.sent();
|
|
879
764
|
case 12:
|
|
880
765
|
parsedBody = parsedOutput.body;
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
response
|
|
887
|
-
delete response.Message;
|
|
888
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
766
|
+
response = new __BaseException({
|
|
767
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
768
|
+
$fault: "client",
|
|
769
|
+
$metadata: deserializeMetadata(output),
|
|
770
|
+
});
|
|
771
|
+
throw __decorateServiceException(response, parsedBody);
|
|
889
772
|
}
|
|
890
773
|
});
|
|
891
774
|
}); };
|
|
@@ -914,16 +797,16 @@ export var deserializeAws_restJson1DisassociateLicenseCommand = function (output
|
|
|
914
797
|
});
|
|
915
798
|
}); };
|
|
916
799
|
var deserializeAws_restJson1DisassociateLicenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
917
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
918
|
-
var
|
|
919
|
-
return __generator(this, function (
|
|
920
|
-
switch (
|
|
800
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
801
|
+
var _c;
|
|
802
|
+
return __generator(this, function (_d) {
|
|
803
|
+
switch (_d.label) {
|
|
921
804
|
case 0:
|
|
922
805
|
_a = [__assign({}, output)];
|
|
923
|
-
|
|
806
|
+
_c = {};
|
|
924
807
|
return [4, parseBody(output.body, context)];
|
|
925
808
|
case 1:
|
|
926
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
809
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
927
810
|
errorCode = "UnknownError";
|
|
928
811
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
812
|
_b = errorCode;
|
|
@@ -940,46 +823,24 @@ var deserializeAws_restJson1DisassociateLicenseCommandError = function (output,
|
|
|
940
823
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
941
824
|
}
|
|
942
825
|
return [3, 12];
|
|
943
|
-
case 2:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
case
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
case 4
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
case
|
|
953
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
954
|
-
return [3, 13];
|
|
955
|
-
case 6:
|
|
956
|
-
_e = [{}];
|
|
957
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
958
|
-
case 7:
|
|
959
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
960
|
-
return [3, 13];
|
|
961
|
-
case 8:
|
|
962
|
-
_f = [{}];
|
|
963
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
964
|
-
case 9:
|
|
965
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
966
|
-
return [3, 13];
|
|
967
|
-
case 10:
|
|
968
|
-
_g = [{}];
|
|
969
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
970
|
-
case 11:
|
|
971
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
972
|
-
return [3, 13];
|
|
826
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
827
|
+
case 3: throw _d.sent();
|
|
828
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
829
|
+
case 5: throw _d.sent();
|
|
830
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
831
|
+
case 7: throw _d.sent();
|
|
832
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
833
|
+
case 9: throw _d.sent();
|
|
834
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
835
|
+
case 11: throw _d.sent();
|
|
973
836
|
case 12:
|
|
974
837
|
parsedBody = parsedOutput.body;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
response
|
|
981
|
-
delete response.Message;
|
|
982
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
838
|
+
response = new __BaseException({
|
|
839
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
840
|
+
$fault: "client",
|
|
841
|
+
$metadata: deserializeMetadata(output),
|
|
842
|
+
});
|
|
843
|
+
throw __decorateServiceException(response, parsedBody);
|
|
983
844
|
}
|
|
984
845
|
});
|
|
985
846
|
}); };
|
|
@@ -1012,16 +873,16 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
1012
873
|
});
|
|
1013
874
|
}); };
|
|
1014
875
|
var deserializeAws_restJson1ListPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1016
|
-
var
|
|
1017
|
-
return __generator(this, function (
|
|
1018
|
-
switch (
|
|
876
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
877
|
+
var _c;
|
|
878
|
+
return __generator(this, function (_d) {
|
|
879
|
+
switch (_d.label) {
|
|
1019
880
|
case 0:
|
|
1020
881
|
_a = [__assign({}, output)];
|
|
1021
|
-
|
|
882
|
+
_c = {};
|
|
1022
883
|
return [4, parseBody(output.body, context)];
|
|
1023
884
|
case 1:
|
|
1024
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
885
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1025
886
|
errorCode = "UnknownError";
|
|
1026
887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1027
888
|
_b = errorCode;
|
|
@@ -1038,46 +899,24 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
1038
899
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
1039
900
|
}
|
|
1040
901
|
return [3, 12];
|
|
1041
|
-
case 2:
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
case
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
case 4
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
case
|
|
1051
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1052
|
-
return [3, 13];
|
|
1053
|
-
case 6:
|
|
1054
|
-
_e = [{}];
|
|
1055
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1056
|
-
case 7:
|
|
1057
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1058
|
-
return [3, 13];
|
|
1059
|
-
case 8:
|
|
1060
|
-
_f = [{}];
|
|
1061
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1062
|
-
case 9:
|
|
1063
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1064
|
-
return [3, 13];
|
|
1065
|
-
case 10:
|
|
1066
|
-
_g = [{}];
|
|
1067
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1068
|
-
case 11:
|
|
1069
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1070
|
-
return [3, 13];
|
|
902
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
903
|
+
case 3: throw _d.sent();
|
|
904
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
905
|
+
case 5: throw _d.sent();
|
|
906
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
907
|
+
case 7: throw _d.sent();
|
|
908
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
909
|
+
case 9: throw _d.sent();
|
|
910
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
911
|
+
case 11: throw _d.sent();
|
|
1071
912
|
case 12:
|
|
1072
913
|
parsedBody = parsedOutput.body;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
response
|
|
1079
|
-
delete response.Message;
|
|
1080
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
914
|
+
response = new __BaseException({
|
|
915
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
916
|
+
$fault: "client",
|
|
917
|
+
$metadata: deserializeMetadata(output),
|
|
918
|
+
});
|
|
919
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1081
920
|
}
|
|
1082
921
|
});
|
|
1083
922
|
}); };
|
|
@@ -1110,16 +949,16 @@ export var deserializeAws_restJson1ListWorkspacesCommand = function (output, con
|
|
|
1110
949
|
});
|
|
1111
950
|
}); };
|
|
1112
951
|
var deserializeAws_restJson1ListWorkspacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1113
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1114
|
-
var
|
|
1115
|
-
return __generator(this, function (
|
|
1116
|
-
switch (
|
|
952
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
953
|
+
var _c;
|
|
954
|
+
return __generator(this, function (_d) {
|
|
955
|
+
switch (_d.label) {
|
|
1117
956
|
case 0:
|
|
1118
957
|
_a = [__assign({}, output)];
|
|
1119
|
-
|
|
958
|
+
_c = {};
|
|
1120
959
|
return [4, parseBody(output.body, context)];
|
|
1121
960
|
case 1:
|
|
1122
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
961
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1123
962
|
errorCode = "UnknownError";
|
|
1124
963
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
964
|
_b = errorCode;
|
|
@@ -1132,34 +971,20 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
1132
971
|
case "com.amazonaws.grafana#ThrottlingException": return [3, 6];
|
|
1133
972
|
}
|
|
1134
973
|
return [3, 8];
|
|
1135
|
-
case 2:
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
case
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
case 4:
|
|
1142
|
-
_d = [{}];
|
|
1143
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1144
|
-
case 5:
|
|
1145
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1146
|
-
return [3, 9];
|
|
1147
|
-
case 6:
|
|
1148
|
-
_e = [{}];
|
|
1149
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1150
|
-
case 7:
|
|
1151
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1152
|
-
return [3, 9];
|
|
974
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
975
|
+
case 3: throw _d.sent();
|
|
976
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
977
|
+
case 5: throw _d.sent();
|
|
978
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
979
|
+
case 7: throw _d.sent();
|
|
1153
980
|
case 8:
|
|
1154
981
|
parsedBody = parsedOutput.body;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
response
|
|
1161
|
-
delete response.Message;
|
|
1162
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
982
|
+
response = new __BaseException({
|
|
983
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
984
|
+
$fault: "client",
|
|
985
|
+
$metadata: deserializeMetadata(output),
|
|
986
|
+
});
|
|
987
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1163
988
|
}
|
|
1164
989
|
});
|
|
1165
990
|
}); };
|
|
@@ -1188,16 +1013,16 @@ export var deserializeAws_restJson1UpdatePermissionsCommand = function (output,
|
|
|
1188
1013
|
});
|
|
1189
1014
|
}); };
|
|
1190
1015
|
var deserializeAws_restJson1UpdatePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1191
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1192
|
-
var
|
|
1193
|
-
return __generator(this, function (
|
|
1194
|
-
switch (
|
|
1016
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1017
|
+
var _c;
|
|
1018
|
+
return __generator(this, function (_d) {
|
|
1019
|
+
switch (_d.label) {
|
|
1195
1020
|
case 0:
|
|
1196
1021
|
_a = [__assign({}, output)];
|
|
1197
|
-
|
|
1022
|
+
_c = {};
|
|
1198
1023
|
return [4, parseBody(output.body, context)];
|
|
1199
1024
|
case 1:
|
|
1200
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1025
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1201
1026
|
errorCode = "UnknownError";
|
|
1202
1027
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1203
1028
|
_b = errorCode;
|
|
@@ -1214,46 +1039,24 @@ var deserializeAws_restJson1UpdatePermissionsCommandError = function (output, co
|
|
|
1214
1039
|
case "com.amazonaws.grafana#ValidationException": return [3, 10];
|
|
1215
1040
|
}
|
|
1216
1041
|
return [3, 12];
|
|
1217
|
-
case 2:
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
case
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
case 4
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
case
|
|
1227
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1228
|
-
return [3, 13];
|
|
1229
|
-
case 6:
|
|
1230
|
-
_e = [{}];
|
|
1231
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1232
|
-
case 7:
|
|
1233
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1234
|
-
return [3, 13];
|
|
1235
|
-
case 8:
|
|
1236
|
-
_f = [{}];
|
|
1237
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1238
|
-
case 9:
|
|
1239
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1240
|
-
return [3, 13];
|
|
1241
|
-
case 10:
|
|
1242
|
-
_g = [{}];
|
|
1243
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1244
|
-
case 11:
|
|
1245
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1246
|
-
return [3, 13];
|
|
1042
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1043
|
+
case 3: throw _d.sent();
|
|
1044
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1045
|
+
case 5: throw _d.sent();
|
|
1046
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1047
|
+
case 7: throw _d.sent();
|
|
1048
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1049
|
+
case 9: throw _d.sent();
|
|
1050
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1051
|
+
case 11: throw _d.sent();
|
|
1247
1052
|
case 12:
|
|
1248
1053
|
parsedBody = parsedOutput.body;
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
response
|
|
1255
|
-
delete response.Message;
|
|
1256
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1054
|
+
response = new __BaseException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1056
|
+
$fault: "client",
|
|
1057
|
+
$metadata: deserializeMetadata(output),
|
|
1058
|
+
});
|
|
1059
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1257
1060
|
}
|
|
1258
1061
|
});
|
|
1259
1062
|
}); };
|
|
@@ -1282,16 +1085,16 @@ export var deserializeAws_restJson1UpdateWorkspaceCommand = function (output, co
|
|
|
1282
1085
|
});
|
|
1283
1086
|
}); };
|
|
1284
1087
|
var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1285
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1286
|
-
var
|
|
1287
|
-
return __generator(this, function (
|
|
1288
|
-
switch (
|
|
1088
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1089
|
+
var _c;
|
|
1090
|
+
return __generator(this, function (_d) {
|
|
1091
|
+
switch (_d.label) {
|
|
1289
1092
|
case 0:
|
|
1290
1093
|
_a = [__assign({}, output)];
|
|
1291
|
-
|
|
1094
|
+
_c = {};
|
|
1292
1095
|
return [4, parseBody(output.body, context)];
|
|
1293
1096
|
case 1:
|
|
1294
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1097
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1295
1098
|
errorCode = "UnknownError";
|
|
1296
1099
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1297
1100
|
_b = errorCode;
|
|
@@ -1310,52 +1113,26 @@ var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, cont
|
|
|
1310
1113
|
case "com.amazonaws.grafana#ValidationException": return [3, 12];
|
|
1311
1114
|
}
|
|
1312
1115
|
return [3, 14];
|
|
1313
|
-
case 2:
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
case
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
case 4
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
case
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
case 6:
|
|
1326
|
-
_e = [{}];
|
|
1327
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1328
|
-
case 7:
|
|
1329
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1330
|
-
return [3, 15];
|
|
1331
|
-
case 8:
|
|
1332
|
-
_f = [{}];
|
|
1333
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1334
|
-
case 9:
|
|
1335
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1336
|
-
return [3, 15];
|
|
1337
|
-
case 10:
|
|
1338
|
-
_g = [{}];
|
|
1339
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1340
|
-
case 11:
|
|
1341
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1342
|
-
return [3, 15];
|
|
1343
|
-
case 12:
|
|
1344
|
-
_h = [{}];
|
|
1345
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1346
|
-
case 13:
|
|
1347
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1348
|
-
return [3, 15];
|
|
1116
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1117
|
+
case 3: throw _d.sent();
|
|
1118
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1119
|
+
case 5: throw _d.sent();
|
|
1120
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1121
|
+
case 7: throw _d.sent();
|
|
1122
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1123
|
+
case 9: throw _d.sent();
|
|
1124
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1125
|
+
case 11: throw _d.sent();
|
|
1126
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1127
|
+
case 13: throw _d.sent();
|
|
1349
1128
|
case 14:
|
|
1350
1129
|
parsedBody = parsedOutput.body;
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
response
|
|
1357
|
-
delete response.Message;
|
|
1358
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1130
|
+
response = new __BaseException({
|
|
1131
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1132
|
+
$fault: "client",
|
|
1133
|
+
$metadata: deserializeMetadata(output),
|
|
1134
|
+
});
|
|
1135
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1359
1136
|
}
|
|
1360
1137
|
});
|
|
1361
1138
|
}); };
|
|
@@ -1384,16 +1161,16 @@ export var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = functi
|
|
|
1384
1161
|
});
|
|
1385
1162
|
}); };
|
|
1386
1163
|
var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1387
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1388
|
-
var
|
|
1389
|
-
return __generator(this, function (
|
|
1390
|
-
switch (
|
|
1164
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1165
|
+
var _c;
|
|
1166
|
+
return __generator(this, function (_d) {
|
|
1167
|
+
switch (_d.label) {
|
|
1391
1168
|
case 0:
|
|
1392
1169
|
_a = [__assign({}, output)];
|
|
1393
|
-
|
|
1170
|
+
_c = {};
|
|
1394
1171
|
return [4, parseBody(output.body, context)];
|
|
1395
1172
|
case 1:
|
|
1396
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1173
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1397
1174
|
errorCode = "UnknownError";
|
|
1398
1175
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1399
1176
|
_b = errorCode;
|
|
@@ -1412,82 +1189,45 @@ var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = function
|
|
|
1412
1189
|
case "com.amazonaws.grafana#ValidationException": return [3, 12];
|
|
1413
1190
|
}
|
|
1414
1191
|
return [3, 14];
|
|
1415
|
-
case 2:
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
case
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
case 4
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
case
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
case 6:
|
|
1428
|
-
_e = [{}];
|
|
1429
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1430
|
-
case 7:
|
|
1431
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1432
|
-
return [3, 15];
|
|
1433
|
-
case 8:
|
|
1434
|
-
_f = [{}];
|
|
1435
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1436
|
-
case 9:
|
|
1437
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1438
|
-
return [3, 15];
|
|
1439
|
-
case 10:
|
|
1440
|
-
_g = [{}];
|
|
1441
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1442
|
-
case 11:
|
|
1443
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1444
|
-
return [3, 15];
|
|
1445
|
-
case 12:
|
|
1446
|
-
_h = [{}];
|
|
1447
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1448
|
-
case 13:
|
|
1449
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1450
|
-
return [3, 15];
|
|
1192
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1193
|
+
case 3: throw _d.sent();
|
|
1194
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1195
|
+
case 5: throw _d.sent();
|
|
1196
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1197
|
+
case 7: throw _d.sent();
|
|
1198
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1199
|
+
case 9: throw _d.sent();
|
|
1200
|
+
case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1201
|
+
case 11: throw _d.sent();
|
|
1202
|
+
case 12: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1203
|
+
case 13: throw _d.sent();
|
|
1451
1204
|
case 14:
|
|
1452
1205
|
parsedBody = parsedOutput.body;
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
response
|
|
1459
|
-
delete response.Message;
|
|
1460
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1206
|
+
response = new __BaseException({
|
|
1207
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1208
|
+
$fault: "client",
|
|
1209
|
+
$metadata: deserializeMetadata(output),
|
|
1210
|
+
});
|
|
1211
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1461
1212
|
}
|
|
1462
1213
|
});
|
|
1463
1214
|
}); };
|
|
1464
1215
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1465
|
-
var contents, data;
|
|
1216
|
+
var contents, data, exception;
|
|
1466
1217
|
return __generator(this, function (_a) {
|
|
1467
|
-
contents = {
|
|
1468
|
-
name: "AccessDeniedException",
|
|
1469
|
-
$fault: "client",
|
|
1470
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
|
-
message: undefined,
|
|
1472
|
-
};
|
|
1218
|
+
contents = {};
|
|
1473
1219
|
data = parsedOutput.body;
|
|
1474
1220
|
if (data.message !== undefined && data.message !== null) {
|
|
1475
1221
|
contents.message = __expectString(data.message);
|
|
1476
1222
|
}
|
|
1477
|
-
|
|
1223
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1224
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1478
1225
|
});
|
|
1479
1226
|
}); };
|
|
1480
1227
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1481
|
-
var contents, data;
|
|
1228
|
+
var contents, data, exception;
|
|
1482
1229
|
return __generator(this, function (_a) {
|
|
1483
|
-
contents = {
|
|
1484
|
-
name: "ConflictException",
|
|
1485
|
-
$fault: "client",
|
|
1486
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1487
|
-
message: undefined,
|
|
1488
|
-
resourceId: undefined,
|
|
1489
|
-
resourceType: undefined,
|
|
1490
|
-
};
|
|
1230
|
+
contents = {};
|
|
1491
1231
|
data = parsedOutput.body;
|
|
1492
1232
|
if (data.message !== undefined && data.message !== null) {
|
|
1493
1233
|
contents.message = __expectString(data.message);
|
|
@@ -1498,20 +1238,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1498
1238
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
1499
1239
|
contents.resourceType = __expectString(data.resourceType);
|
|
1500
1240
|
}
|
|
1501
|
-
|
|
1241
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1242
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1502
1243
|
});
|
|
1503
1244
|
}); };
|
|
1504
1245
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1505
|
-
var contents, data;
|
|
1246
|
+
var contents, data, exception;
|
|
1506
1247
|
return __generator(this, function (_a) {
|
|
1507
|
-
contents = {
|
|
1508
|
-
name: "InternalServerException",
|
|
1509
|
-
$fault: "server",
|
|
1510
|
-
$retryable: {},
|
|
1511
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1512
|
-
message: undefined,
|
|
1513
|
-
retryAfterSeconds: undefined,
|
|
1514
|
-
};
|
|
1248
|
+
contents = {};
|
|
1515
1249
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
1516
1250
|
contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
1517
1251
|
}
|
|
@@ -1519,20 +1253,14 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1519
1253
|
if (data.message !== undefined && data.message !== null) {
|
|
1520
1254
|
contents.message = __expectString(data.message);
|
|
1521
1255
|
}
|
|
1522
|
-
|
|
1256
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1257
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1523
1258
|
});
|
|
1524
1259
|
}); };
|
|
1525
1260
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1526
|
-
var contents, data;
|
|
1261
|
+
var contents, data, exception;
|
|
1527
1262
|
return __generator(this, function (_a) {
|
|
1528
|
-
contents = {
|
|
1529
|
-
name: "ResourceNotFoundException",
|
|
1530
|
-
$fault: "client",
|
|
1531
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1532
|
-
message: undefined,
|
|
1533
|
-
resourceId: undefined,
|
|
1534
|
-
resourceType: undefined,
|
|
1535
|
-
};
|
|
1263
|
+
contents = {};
|
|
1536
1264
|
data = parsedOutput.body;
|
|
1537
1265
|
if (data.message !== undefined && data.message !== null) {
|
|
1538
1266
|
contents.message = __expectString(data.message);
|
|
@@ -1543,22 +1271,14 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1543
1271
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
1544
1272
|
contents.resourceType = __expectString(data.resourceType);
|
|
1545
1273
|
}
|
|
1546
|
-
|
|
1274
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1275
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1547
1276
|
});
|
|
1548
1277
|
}); };
|
|
1549
1278
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1550
|
-
var contents, data;
|
|
1279
|
+
var contents, data, exception;
|
|
1551
1280
|
return __generator(this, function (_a) {
|
|
1552
|
-
contents = {
|
|
1553
|
-
name: "ServiceQuotaExceededException",
|
|
1554
|
-
$fault: "client",
|
|
1555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1556
|
-
message: undefined,
|
|
1557
|
-
quotaCode: undefined,
|
|
1558
|
-
resourceId: undefined,
|
|
1559
|
-
resourceType: undefined,
|
|
1560
|
-
serviceCode: undefined,
|
|
1561
|
-
};
|
|
1281
|
+
contents = {};
|
|
1562
1282
|
data = parsedOutput.body;
|
|
1563
1283
|
if (data.message !== undefined && data.message !== null) {
|
|
1564
1284
|
contents.message = __expectString(data.message);
|
|
@@ -1575,22 +1295,14 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1575
1295
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
1576
1296
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
1577
1297
|
}
|
|
1578
|
-
|
|
1298
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1299
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1579
1300
|
});
|
|
1580
1301
|
}); };
|
|
1581
1302
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1582
|
-
var contents, data;
|
|
1303
|
+
var contents, data, exception;
|
|
1583
1304
|
return __generator(this, function (_a) {
|
|
1584
|
-
contents = {
|
|
1585
|
-
name: "ThrottlingException",
|
|
1586
|
-
$fault: "client",
|
|
1587
|
-
$retryable: {},
|
|
1588
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1589
|
-
message: undefined,
|
|
1590
|
-
quotaCode: undefined,
|
|
1591
|
-
retryAfterSeconds: undefined,
|
|
1592
|
-
serviceCode: undefined,
|
|
1593
|
-
};
|
|
1305
|
+
contents = {};
|
|
1594
1306
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
1595
1307
|
contents.retryAfterSeconds = __strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
1596
1308
|
}
|
|
@@ -1604,20 +1316,14 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1604
1316
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
1605
1317
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
1606
1318
|
}
|
|
1607
|
-
|
|
1319
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1320
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1608
1321
|
});
|
|
1609
1322
|
}); };
|
|
1610
1323
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1611
|
-
var contents, data;
|
|
1324
|
+
var contents, data, exception;
|
|
1612
1325
|
return __generator(this, function (_a) {
|
|
1613
|
-
contents = {
|
|
1614
|
-
name: "ValidationException",
|
|
1615
|
-
$fault: "client",
|
|
1616
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1617
|
-
fieldList: undefined,
|
|
1618
|
-
message: undefined,
|
|
1619
|
-
reason: undefined,
|
|
1620
|
-
};
|
|
1326
|
+
contents = {};
|
|
1621
1327
|
data = parsedOutput.body;
|
|
1622
1328
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
1623
1329
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
@@ -1628,7 +1334,8 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1628
1334
|
if (data.reason !== undefined && data.reason !== null) {
|
|
1629
1335
|
contents.reason = __expectString(data.reason);
|
|
1630
1336
|
}
|
|
1631
|
-
|
|
1337
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
1338
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1632
1339
|
});
|
|
1633
1340
|
}); };
|
|
1634
1341
|
var serializeAws_restJson1AllowedOrganizations = function (input, context) {
|
|
@@ -1746,7 +1453,7 @@ var serializeAws_restJson1UserList = function (input, context) {
|
|
|
1746
1453
|
});
|
|
1747
1454
|
};
|
|
1748
1455
|
var deserializeAws_restJson1AllowedOrganizations = function (output, context) {
|
|
1749
|
-
|
|
1456
|
+
var retVal = (output || [])
|
|
1750
1457
|
.filter(function (e) { return e != null; })
|
|
1751
1458
|
.map(function (entry) {
|
|
1752
1459
|
if (entry === null) {
|
|
@@ -1754,6 +1461,7 @@ var deserializeAws_restJson1AllowedOrganizations = function (output, context) {
|
|
|
1754
1461
|
}
|
|
1755
1462
|
return __expectString(entry);
|
|
1756
1463
|
});
|
|
1464
|
+
return retVal;
|
|
1757
1465
|
};
|
|
1758
1466
|
var deserializeAws_restJson1AssertionAttributes = function (output, context) {
|
|
1759
1467
|
return {
|
|
@@ -1779,7 +1487,7 @@ var deserializeAws_restJson1AuthenticationDescription = function (output, contex
|
|
|
1779
1487
|
};
|
|
1780
1488
|
};
|
|
1781
1489
|
var deserializeAws_restJson1AuthenticationProviders = function (output, context) {
|
|
1782
|
-
|
|
1490
|
+
var retVal = (output || [])
|
|
1783
1491
|
.filter(function (e) { return e != null; })
|
|
1784
1492
|
.map(function (entry) {
|
|
1785
1493
|
if (entry === null) {
|
|
@@ -1787,6 +1495,7 @@ var deserializeAws_restJson1AuthenticationProviders = function (output, context)
|
|
|
1787
1495
|
}
|
|
1788
1496
|
return __expectString(entry);
|
|
1789
1497
|
});
|
|
1498
|
+
return retVal;
|
|
1790
1499
|
};
|
|
1791
1500
|
var deserializeAws_restJson1AuthenticationSummary = function (output, context) {
|
|
1792
1501
|
return {
|
|
@@ -1802,7 +1511,7 @@ var deserializeAws_restJson1AwsSsoAuthentication = function (output, context) {
|
|
|
1802
1511
|
};
|
|
1803
1512
|
};
|
|
1804
1513
|
var deserializeAws_restJson1DataSourceTypesList = function (output, context) {
|
|
1805
|
-
|
|
1514
|
+
var retVal = (output || [])
|
|
1806
1515
|
.filter(function (e) { return e != null; })
|
|
1807
1516
|
.map(function (entry) {
|
|
1808
1517
|
if (entry === null) {
|
|
@@ -1810,6 +1519,7 @@ var deserializeAws_restJson1DataSourceTypesList = function (output, context) {
|
|
|
1810
1519
|
}
|
|
1811
1520
|
return __expectString(entry);
|
|
1812
1521
|
});
|
|
1522
|
+
return retVal;
|
|
1813
1523
|
};
|
|
1814
1524
|
var deserializeAws_restJson1IdpMetadata = function (output, context) {
|
|
1815
1525
|
if (__expectString(output.url) !== undefined) {
|
|
@@ -1821,7 +1531,7 @@ var deserializeAws_restJson1IdpMetadata = function (output, context) {
|
|
|
1821
1531
|
return { $unknown: Object.entries(output)[0] };
|
|
1822
1532
|
};
|
|
1823
1533
|
var deserializeAws_restJson1NotificationDestinationsList = function (output, context) {
|
|
1824
|
-
|
|
1534
|
+
var retVal = (output || [])
|
|
1825
1535
|
.filter(function (e) { return e != null; })
|
|
1826
1536
|
.map(function (entry) {
|
|
1827
1537
|
if (entry === null) {
|
|
@@ -1829,9 +1539,10 @@ var deserializeAws_restJson1NotificationDestinationsList = function (output, con
|
|
|
1829
1539
|
}
|
|
1830
1540
|
return __expectString(entry);
|
|
1831
1541
|
});
|
|
1542
|
+
return retVal;
|
|
1832
1543
|
};
|
|
1833
1544
|
var deserializeAws_restJson1OrganizationalUnitList = function (output, context) {
|
|
1834
|
-
|
|
1545
|
+
var retVal = (output || [])
|
|
1835
1546
|
.filter(function (e) { return e != null; })
|
|
1836
1547
|
.map(function (entry) {
|
|
1837
1548
|
if (entry === null) {
|
|
@@ -1839,6 +1550,7 @@ var deserializeAws_restJson1OrganizationalUnitList = function (output, context)
|
|
|
1839
1550
|
}
|
|
1840
1551
|
return __expectString(entry);
|
|
1841
1552
|
});
|
|
1553
|
+
return retVal;
|
|
1842
1554
|
};
|
|
1843
1555
|
var deserializeAws_restJson1PermissionEntry = function (output, context) {
|
|
1844
1556
|
return {
|
|
@@ -1849,7 +1561,7 @@ var deserializeAws_restJson1PermissionEntry = function (output, context) {
|
|
|
1849
1561
|
};
|
|
1850
1562
|
};
|
|
1851
1563
|
var deserializeAws_restJson1PermissionEntryList = function (output, context) {
|
|
1852
|
-
|
|
1564
|
+
var retVal = (output || [])
|
|
1853
1565
|
.filter(function (e) { return e != null; })
|
|
1854
1566
|
.map(function (entry) {
|
|
1855
1567
|
if (entry === null) {
|
|
@@ -1857,9 +1569,10 @@ var deserializeAws_restJson1PermissionEntryList = function (output, context) {
|
|
|
1857
1569
|
}
|
|
1858
1570
|
return deserializeAws_restJson1PermissionEntry(entry, context);
|
|
1859
1571
|
});
|
|
1572
|
+
return retVal;
|
|
1860
1573
|
};
|
|
1861
1574
|
var deserializeAws_restJson1RoleValueList = function (output, context) {
|
|
1862
|
-
|
|
1575
|
+
var retVal = (output || [])
|
|
1863
1576
|
.filter(function (e) { return e != null; })
|
|
1864
1577
|
.map(function (entry) {
|
|
1865
1578
|
if (entry === null) {
|
|
@@ -1867,6 +1580,7 @@ var deserializeAws_restJson1RoleValueList = function (output, context) {
|
|
|
1867
1580
|
}
|
|
1868
1581
|
return __expectString(entry);
|
|
1869
1582
|
});
|
|
1583
|
+
return retVal;
|
|
1870
1584
|
};
|
|
1871
1585
|
var deserializeAws_restJson1RoleValues = function (output, context) {
|
|
1872
1586
|
return {
|
|
@@ -1913,7 +1627,7 @@ var deserializeAws_restJson1UpdateError = function (output, context) {
|
|
|
1913
1627
|
};
|
|
1914
1628
|
};
|
|
1915
1629
|
var deserializeAws_restJson1UpdateErrorList = function (output, context) {
|
|
1916
|
-
|
|
1630
|
+
var retVal = (output || [])
|
|
1917
1631
|
.filter(function (e) { return e != null; })
|
|
1918
1632
|
.map(function (entry) {
|
|
1919
1633
|
if (entry === null) {
|
|
@@ -1921,6 +1635,7 @@ var deserializeAws_restJson1UpdateErrorList = function (output, context) {
|
|
|
1921
1635
|
}
|
|
1922
1636
|
return deserializeAws_restJson1UpdateError(entry, context);
|
|
1923
1637
|
});
|
|
1638
|
+
return retVal;
|
|
1924
1639
|
};
|
|
1925
1640
|
var deserializeAws_restJson1UpdateInstruction = function (output, context) {
|
|
1926
1641
|
return {
|
|
@@ -1938,7 +1653,7 @@ var deserializeAws_restJson1User = function (output, context) {
|
|
|
1938
1653
|
};
|
|
1939
1654
|
};
|
|
1940
1655
|
var deserializeAws_restJson1UserList = function (output, context) {
|
|
1941
|
-
|
|
1656
|
+
var retVal = (output || [])
|
|
1942
1657
|
.filter(function (e) { return e != null; })
|
|
1943
1658
|
.map(function (entry) {
|
|
1944
1659
|
if (entry === null) {
|
|
@@ -1946,6 +1661,7 @@ var deserializeAws_restJson1UserList = function (output, context) {
|
|
|
1946
1661
|
}
|
|
1947
1662
|
return deserializeAws_restJson1User(entry, context);
|
|
1948
1663
|
});
|
|
1664
|
+
return retVal;
|
|
1949
1665
|
};
|
|
1950
1666
|
var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
|
|
1951
1667
|
return {
|
|
@@ -1954,7 +1670,7 @@ var deserializeAws_restJson1ValidationExceptionField = function (output, context
|
|
|
1954
1670
|
};
|
|
1955
1671
|
};
|
|
1956
1672
|
var deserializeAws_restJson1ValidationExceptionFieldList = function (output, context) {
|
|
1957
|
-
|
|
1673
|
+
var retVal = (output || [])
|
|
1958
1674
|
.filter(function (e) { return e != null; })
|
|
1959
1675
|
.map(function (entry) {
|
|
1960
1676
|
if (entry === null) {
|
|
@@ -1962,6 +1678,7 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
|
|
|
1962
1678
|
}
|
|
1963
1679
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
1964
1680
|
});
|
|
1681
|
+
return retVal;
|
|
1965
1682
|
};
|
|
1966
1683
|
var deserializeAws_restJson1WorkspaceDescription = function (output, context) {
|
|
1967
1684
|
return {
|
|
@@ -2005,7 +1722,7 @@ var deserializeAws_restJson1WorkspaceDescription = function (output, context) {
|
|
|
2005
1722
|
};
|
|
2006
1723
|
};
|
|
2007
1724
|
var deserializeAws_restJson1WorkspaceList = function (output, context) {
|
|
2008
|
-
|
|
1725
|
+
var retVal = (output || [])
|
|
2009
1726
|
.filter(function (e) { return e != null; })
|
|
2010
1727
|
.map(function (entry) {
|
|
2011
1728
|
if (entry === null) {
|
|
@@ -2013,6 +1730,7 @@ var deserializeAws_restJson1WorkspaceList = function (output, context) {
|
|
|
2013
1730
|
}
|
|
2014
1731
|
return deserializeAws_restJson1WorkspaceSummary(entry, context);
|
|
2015
1732
|
});
|
|
1733
|
+
return retVal;
|
|
2016
1734
|
};
|
|
2017
1735
|
var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
|
|
2018
1736
|
return {
|