@aws-sdk/client-resource-groups 3.52.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ResourceGroupsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +101 -2
- package/dist-cjs/protocols/Aws_restJson1.js +227 -791
- package/dist-es/index.js +1 -0
- package/dist-es/models/ResourceGroupsServiceException.js +12 -0
- package/dist-es/models/models_0.js +93 -1
- package/dist-es/protocols/Aws_restJson1.js +437 -863
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ResourceGroupsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ResourceGroupsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/package.json +25 -25
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1UpdateGroupQueryCommand = exports.deserializeAws_restJson1UpdateGroupCommand = exports.deserializeAws_restJson1UntagCommand = exports.deserializeAws_restJson1UngroupResourcesCommand = exports.deserializeAws_restJson1TagCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutGroupConfigurationCommand = exports.deserializeAws_restJson1ListGroupsCommand = exports.deserializeAws_restJson1ListGroupResourcesCommand = exports.deserializeAws_restJson1GroupResourcesCommand = exports.deserializeAws_restJson1GetTagsCommand = exports.deserializeAws_restJson1GetGroupQueryCommand = exports.deserializeAws_restJson1GetGroupConfigurationCommand = exports.deserializeAws_restJson1GetGroupCommand = exports.deserializeAws_restJson1DeleteGroupCommand = exports.deserializeAws_restJson1CreateGroupCommand = exports.serializeAws_restJson1UpdateGroupQueryCommand = exports.serializeAws_restJson1UpdateGroupCommand = exports.serializeAws_restJson1UntagCommand = exports.serializeAws_restJson1UngroupResourcesCommand = exports.serializeAws_restJson1TagCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutGroupConfigurationCommand = exports.serializeAws_restJson1ListGroupsCommand = exports.serializeAws_restJson1ListGroupResourcesCommand = exports.serializeAws_restJson1GroupResourcesCommand = exports.serializeAws_restJson1GetTagsCommand = exports.serializeAws_restJson1GetGroupQueryCommand = exports.serializeAws_restJson1GetGroupConfigurationCommand = exports.serializeAws_restJson1GetGroupCommand = exports.serializeAws_restJson1DeleteGroupCommand = exports.serializeAws_restJson1CreateGroupCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const ResourceGroupsServiceException_1 = require("../models/ResourceGroupsServiceException");
|
|
6
8
|
const serializeAws_restJson1CreateGroupCommand = async (input, context) => {
|
|
7
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
10
|
const headers = {
|
|
@@ -451,59 +453,28 @@ const deserializeAws_restJson1CreateGroupCommandError = async (output, context)
|
|
|
451
453
|
switch (errorCode) {
|
|
452
454
|
case "BadRequestException":
|
|
453
455
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
454
|
-
|
|
455
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
456
|
-
name: errorCode,
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
};
|
|
459
|
-
break;
|
|
456
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
460
457
|
case "ForbiddenException":
|
|
461
458
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
462
|
-
|
|
463
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
464
|
-
name: errorCode,
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
};
|
|
467
|
-
break;
|
|
459
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
468
460
|
case "InternalServerErrorException":
|
|
469
461
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
470
|
-
|
|
471
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
472
|
-
name: errorCode,
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
};
|
|
475
|
-
break;
|
|
462
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
476
463
|
case "MethodNotAllowedException":
|
|
477
464
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
478
|
-
|
|
479
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
480
|
-
name: errorCode,
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
};
|
|
483
|
-
break;
|
|
465
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
484
466
|
case "TooManyRequestsException":
|
|
485
467
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
486
|
-
|
|
487
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
488
|
-
name: errorCode,
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
break;
|
|
468
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
492
469
|
default:
|
|
493
470
|
const parsedBody = parsedOutput.body;
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
...parsedBody,
|
|
497
|
-
name: `${errorCode}`,
|
|
498
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
471
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
472
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
499
473
|
$fault: "client",
|
|
500
474
|
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
475
|
+
});
|
|
476
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
502
477
|
}
|
|
503
|
-
const message = response.message || response.Message || errorCode;
|
|
504
|
-
response.message = message;
|
|
505
|
-
delete response.Message;
|
|
506
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
507
478
|
};
|
|
508
479
|
const deserializeAws_restJson1DeleteGroupCommand = async (output, context) => {
|
|
509
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -531,67 +502,31 @@ const deserializeAws_restJson1DeleteGroupCommandError = async (output, context)
|
|
|
531
502
|
switch (errorCode) {
|
|
532
503
|
case "BadRequestException":
|
|
533
504
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
534
|
-
|
|
535
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
536
|
-
name: errorCode,
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
};
|
|
539
|
-
break;
|
|
505
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
540
506
|
case "ForbiddenException":
|
|
541
507
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
542
|
-
|
|
543
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
544
|
-
name: errorCode,
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
};
|
|
547
|
-
break;
|
|
508
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
548
509
|
case "InternalServerErrorException":
|
|
549
510
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
550
|
-
|
|
551
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
552
|
-
name: errorCode,
|
|
553
|
-
$metadata: deserializeMetadata(output),
|
|
554
|
-
};
|
|
555
|
-
break;
|
|
511
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
556
512
|
case "MethodNotAllowedException":
|
|
557
513
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
558
|
-
|
|
559
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
560
|
-
name: errorCode,
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
};
|
|
563
|
-
break;
|
|
514
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
564
515
|
case "NotFoundException":
|
|
565
516
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
566
|
-
|
|
567
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
568
|
-
name: errorCode,
|
|
569
|
-
$metadata: deserializeMetadata(output),
|
|
570
|
-
};
|
|
571
|
-
break;
|
|
517
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
572
518
|
case "TooManyRequestsException":
|
|
573
519
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
574
|
-
|
|
575
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
576
|
-
name: errorCode,
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
};
|
|
579
|
-
break;
|
|
520
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
580
521
|
default:
|
|
581
522
|
const parsedBody = parsedOutput.body;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
...parsedBody,
|
|
585
|
-
name: `${errorCode}`,
|
|
586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
523
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
524
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
587
525
|
$fault: "client",
|
|
588
526
|
$metadata: deserializeMetadata(output),
|
|
589
|
-
};
|
|
527
|
+
});
|
|
528
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
590
529
|
}
|
|
591
|
-
const message = response.message || response.Message || errorCode;
|
|
592
|
-
response.message = message;
|
|
593
|
-
delete response.Message;
|
|
594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
595
530
|
};
|
|
596
531
|
const deserializeAws_restJson1GetGroupCommand = async (output, context) => {
|
|
597
532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -619,67 +554,31 @@ const deserializeAws_restJson1GetGroupCommandError = async (output, context) =>
|
|
|
619
554
|
switch (errorCode) {
|
|
620
555
|
case "BadRequestException":
|
|
621
556
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
622
|
-
|
|
623
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
624
|
-
name: errorCode,
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
};
|
|
627
|
-
break;
|
|
557
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
628
558
|
case "ForbiddenException":
|
|
629
559
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
630
|
-
|
|
631
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
632
|
-
name: errorCode,
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
};
|
|
635
|
-
break;
|
|
560
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
636
561
|
case "InternalServerErrorException":
|
|
637
562
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
638
|
-
|
|
639
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
640
|
-
name: errorCode,
|
|
641
|
-
$metadata: deserializeMetadata(output),
|
|
642
|
-
};
|
|
643
|
-
break;
|
|
563
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
644
564
|
case "MethodNotAllowedException":
|
|
645
565
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
646
|
-
|
|
647
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
648
|
-
name: errorCode,
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
};
|
|
651
|
-
break;
|
|
566
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
652
567
|
case "NotFoundException":
|
|
653
568
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
654
|
-
|
|
655
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
656
|
-
name: errorCode,
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
};
|
|
659
|
-
break;
|
|
569
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
660
570
|
case "TooManyRequestsException":
|
|
661
571
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
662
|
-
|
|
663
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
664
|
-
name: errorCode,
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
667
|
-
break;
|
|
572
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
668
573
|
default:
|
|
669
574
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
...parsedBody,
|
|
673
|
-
name: `${errorCode}`,
|
|
674
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
575
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
576
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
675
577
|
$fault: "client",
|
|
676
578
|
$metadata: deserializeMetadata(output),
|
|
677
|
-
};
|
|
579
|
+
});
|
|
580
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
678
581
|
}
|
|
679
|
-
const message = response.message || response.Message || errorCode;
|
|
680
|
-
response.message = message;
|
|
681
|
-
delete response.Message;
|
|
682
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
683
582
|
};
|
|
684
583
|
const deserializeAws_restJson1GetGroupConfigurationCommand = async (output, context) => {
|
|
685
584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -707,67 +606,31 @@ const deserializeAws_restJson1GetGroupConfigurationCommandError = async (output,
|
|
|
707
606
|
switch (errorCode) {
|
|
708
607
|
case "BadRequestException":
|
|
709
608
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
710
|
-
|
|
711
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
712
|
-
name: errorCode,
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
609
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
716
610
|
case "ForbiddenException":
|
|
717
611
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
718
|
-
|
|
719
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
612
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
724
613
|
case "InternalServerErrorException":
|
|
725
614
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
726
|
-
|
|
727
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
615
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
732
616
|
case "MethodNotAllowedException":
|
|
733
617
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
734
|
-
|
|
735
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
618
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
740
619
|
case "NotFoundException":
|
|
741
620
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
742
|
-
|
|
743
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
744
|
-
name: errorCode,
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
621
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
748
622
|
case "TooManyRequestsException":
|
|
749
623
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
750
|
-
|
|
751
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
752
|
-
name: errorCode,
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
};
|
|
755
|
-
break;
|
|
624
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
756
625
|
default:
|
|
757
626
|
const parsedBody = parsedOutput.body;
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
...parsedBody,
|
|
761
|
-
name: `${errorCode}`,
|
|
762
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
627
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
628
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
763
629
|
$fault: "client",
|
|
764
630
|
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
631
|
+
});
|
|
632
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
766
633
|
}
|
|
767
|
-
const message = response.message || response.Message || errorCode;
|
|
768
|
-
response.message = message;
|
|
769
|
-
delete response.Message;
|
|
770
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
771
634
|
};
|
|
772
635
|
const deserializeAws_restJson1GetGroupQueryCommand = async (output, context) => {
|
|
773
636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -795,67 +658,31 @@ const deserializeAws_restJson1GetGroupQueryCommandError = async (output, context
|
|
|
795
658
|
switch (errorCode) {
|
|
796
659
|
case "BadRequestException":
|
|
797
660
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
798
|
-
|
|
799
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
800
|
-
name: errorCode,
|
|
801
|
-
$metadata: deserializeMetadata(output),
|
|
802
|
-
};
|
|
803
|
-
break;
|
|
661
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
804
662
|
case "ForbiddenException":
|
|
805
663
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
806
|
-
|
|
807
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
808
|
-
name: errorCode,
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
};
|
|
811
|
-
break;
|
|
664
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
812
665
|
case "InternalServerErrorException":
|
|
813
666
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
814
|
-
|
|
815
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
816
|
-
name: errorCode,
|
|
817
|
-
$metadata: deserializeMetadata(output),
|
|
818
|
-
};
|
|
819
|
-
break;
|
|
667
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
820
668
|
case "MethodNotAllowedException":
|
|
821
669
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
822
|
-
|
|
823
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
824
|
-
name: errorCode,
|
|
825
|
-
$metadata: deserializeMetadata(output),
|
|
826
|
-
};
|
|
827
|
-
break;
|
|
670
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
828
671
|
case "NotFoundException":
|
|
829
672
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
830
|
-
|
|
831
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
832
|
-
name: errorCode,
|
|
833
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
-
};
|
|
835
|
-
break;
|
|
673
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
836
674
|
case "TooManyRequestsException":
|
|
837
675
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
838
|
-
|
|
839
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
840
|
-
name: errorCode,
|
|
841
|
-
$metadata: deserializeMetadata(output),
|
|
842
|
-
};
|
|
843
|
-
break;
|
|
676
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
844
677
|
default:
|
|
845
678
|
const parsedBody = parsedOutput.body;
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
...parsedBody,
|
|
849
|
-
name: `${errorCode}`,
|
|
850
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
679
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
680
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
851
681
|
$fault: "client",
|
|
852
682
|
$metadata: deserializeMetadata(output),
|
|
853
|
-
};
|
|
683
|
+
});
|
|
684
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
854
685
|
}
|
|
855
|
-
const message = response.message || response.Message || errorCode;
|
|
856
|
-
response.message = message;
|
|
857
|
-
delete response.Message;
|
|
858
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
859
686
|
};
|
|
860
687
|
const deserializeAws_restJson1GetTagsCommand = async (output, context) => {
|
|
861
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -887,67 +714,31 @@ const deserializeAws_restJson1GetTagsCommandError = async (output, context) => {
|
|
|
887
714
|
switch (errorCode) {
|
|
888
715
|
case "BadRequestException":
|
|
889
716
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
890
|
-
|
|
891
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
717
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
896
718
|
case "ForbiddenException":
|
|
897
719
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
898
|
-
|
|
899
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
900
|
-
name: errorCode,
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
903
|
-
break;
|
|
720
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
904
721
|
case "InternalServerErrorException":
|
|
905
722
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
906
|
-
|
|
907
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
908
|
-
name: errorCode,
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
911
|
-
break;
|
|
723
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
912
724
|
case "MethodNotAllowedException":
|
|
913
725
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
914
|
-
|
|
915
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
916
|
-
name: errorCode,
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
};
|
|
919
|
-
break;
|
|
726
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
920
727
|
case "NotFoundException":
|
|
921
728
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
922
|
-
|
|
923
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
924
|
-
name: errorCode,
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
};
|
|
927
|
-
break;
|
|
729
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
928
730
|
case "TooManyRequestsException":
|
|
929
731
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
930
|
-
|
|
931
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
932
|
-
name: errorCode,
|
|
933
|
-
$metadata: deserializeMetadata(output),
|
|
934
|
-
};
|
|
935
|
-
break;
|
|
732
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
936
733
|
default:
|
|
937
734
|
const parsedBody = parsedOutput.body;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
...parsedBody,
|
|
941
|
-
name: `${errorCode}`,
|
|
942
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
735
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
736
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
943
737
|
$fault: "client",
|
|
944
738
|
$metadata: deserializeMetadata(output),
|
|
945
|
-
};
|
|
739
|
+
});
|
|
740
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
946
741
|
}
|
|
947
|
-
const message = response.message || response.Message || errorCode;
|
|
948
|
-
response.message = message;
|
|
949
|
-
delete response.Message;
|
|
950
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
951
742
|
};
|
|
952
743
|
const deserializeAws_restJson1GroupResourcesCommand = async (output, context) => {
|
|
953
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -983,67 +774,31 @@ const deserializeAws_restJson1GroupResourcesCommandError = async (output, contex
|
|
|
983
774
|
switch (errorCode) {
|
|
984
775
|
case "BadRequestException":
|
|
985
776
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
986
|
-
|
|
987
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
988
|
-
name: errorCode,
|
|
989
|
-
$metadata: deserializeMetadata(output),
|
|
990
|
-
};
|
|
991
|
-
break;
|
|
777
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
992
778
|
case "ForbiddenException":
|
|
993
779
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
994
|
-
|
|
995
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
996
|
-
name: errorCode,
|
|
997
|
-
$metadata: deserializeMetadata(output),
|
|
998
|
-
};
|
|
999
|
-
break;
|
|
780
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1000
781
|
case "InternalServerErrorException":
|
|
1001
782
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1002
|
-
|
|
1003
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1004
|
-
name: errorCode,
|
|
1005
|
-
$metadata: deserializeMetadata(output),
|
|
1006
|
-
};
|
|
1007
|
-
break;
|
|
783
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1008
784
|
case "MethodNotAllowedException":
|
|
1009
785
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1010
|
-
|
|
1011
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1012
|
-
name: errorCode,
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
};
|
|
1015
|
-
break;
|
|
786
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1016
787
|
case "NotFoundException":
|
|
1017
788
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1018
|
-
|
|
1019
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1020
|
-
name: errorCode,
|
|
1021
|
-
$metadata: deserializeMetadata(output),
|
|
1022
|
-
};
|
|
1023
|
-
break;
|
|
789
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1024
790
|
case "TooManyRequestsException":
|
|
1025
791
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1026
|
-
|
|
1027
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1028
|
-
name: errorCode,
|
|
1029
|
-
$metadata: deserializeMetadata(output),
|
|
1030
|
-
};
|
|
1031
|
-
break;
|
|
792
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1032
793
|
default:
|
|
1033
794
|
const parsedBody = parsedOutput.body;
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
...parsedBody,
|
|
1037
|
-
name: `${errorCode}`,
|
|
1038
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
795
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
796
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1039
797
|
$fault: "client",
|
|
1040
798
|
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
799
|
+
});
|
|
800
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1042
801
|
}
|
|
1043
|
-
const message = response.message || response.Message || errorCode;
|
|
1044
|
-
response.message = message;
|
|
1045
|
-
delete response.Message;
|
|
1046
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1047
802
|
};
|
|
1048
803
|
const deserializeAws_restJson1ListGroupResourcesCommand = async (output, context) => {
|
|
1049
804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1083,75 +838,34 @@ const deserializeAws_restJson1ListGroupResourcesCommandError = async (output, co
|
|
|
1083
838
|
switch (errorCode) {
|
|
1084
839
|
case "BadRequestException":
|
|
1085
840
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1086
|
-
|
|
1087
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1088
|
-
name: errorCode,
|
|
1089
|
-
$metadata: deserializeMetadata(output),
|
|
1090
|
-
};
|
|
1091
|
-
break;
|
|
841
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1092
842
|
case "ForbiddenException":
|
|
1093
843
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1094
|
-
|
|
1095
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1096
|
-
name: errorCode,
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
};
|
|
1099
|
-
break;
|
|
844
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1100
845
|
case "InternalServerErrorException":
|
|
1101
846
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1102
|
-
|
|
1103
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1104
|
-
name: errorCode,
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
};
|
|
1107
|
-
break;
|
|
847
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1108
848
|
case "MethodNotAllowedException":
|
|
1109
849
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1110
|
-
|
|
1111
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1112
|
-
name: errorCode,
|
|
1113
|
-
$metadata: deserializeMetadata(output),
|
|
1114
|
-
};
|
|
1115
|
-
break;
|
|
850
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1116
851
|
case "NotFoundException":
|
|
1117
852
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1118
|
-
|
|
1119
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1120
|
-
name: errorCode,
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
};
|
|
1123
|
-
break;
|
|
853
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1124
854
|
case "TooManyRequestsException":
|
|
1125
855
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1126
|
-
|
|
1127
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1128
|
-
name: errorCode,
|
|
1129
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
-
};
|
|
1131
|
-
break;
|
|
856
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1132
857
|
case "UnauthorizedException":
|
|
1133
858
|
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1134
|
-
|
|
1135
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1136
|
-
name: errorCode,
|
|
1137
|
-
$metadata: deserializeMetadata(output),
|
|
1138
|
-
};
|
|
1139
|
-
break;
|
|
859
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1140
860
|
default:
|
|
1141
861
|
const parsedBody = parsedOutput.body;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
...parsedBody,
|
|
1145
|
-
name: `${errorCode}`,
|
|
1146
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
862
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
863
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1147
864
|
$fault: "client",
|
|
1148
865
|
$metadata: deserializeMetadata(output),
|
|
1149
|
-
};
|
|
866
|
+
});
|
|
867
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1150
868
|
}
|
|
1151
|
-
const message = response.message || response.Message || errorCode;
|
|
1152
|
-
response.message = message;
|
|
1153
|
-
delete response.Message;
|
|
1154
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1155
869
|
};
|
|
1156
870
|
const deserializeAws_restJson1ListGroupsCommand = async (output, context) => {
|
|
1157
871
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1187,59 +901,28 @@ const deserializeAws_restJson1ListGroupsCommandError = async (output, context) =
|
|
|
1187
901
|
switch (errorCode) {
|
|
1188
902
|
case "BadRequestException":
|
|
1189
903
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1190
|
-
|
|
1191
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1192
|
-
name: errorCode,
|
|
1193
|
-
$metadata: deserializeMetadata(output),
|
|
1194
|
-
};
|
|
1195
|
-
break;
|
|
904
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1196
905
|
case "ForbiddenException":
|
|
1197
906
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1198
|
-
|
|
1199
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1200
|
-
name: errorCode,
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
1203
|
-
break;
|
|
907
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1204
908
|
case "InternalServerErrorException":
|
|
1205
909
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1206
|
-
|
|
1207
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1208
|
-
name: errorCode,
|
|
1209
|
-
$metadata: deserializeMetadata(output),
|
|
1210
|
-
};
|
|
1211
|
-
break;
|
|
910
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1212
911
|
case "MethodNotAllowedException":
|
|
1213
912
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1214
|
-
|
|
1215
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1216
|
-
name: errorCode,
|
|
1217
|
-
$metadata: deserializeMetadata(output),
|
|
1218
|
-
};
|
|
1219
|
-
break;
|
|
913
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1220
914
|
case "TooManyRequestsException":
|
|
1221
915
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1222
|
-
|
|
1223
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1224
|
-
name: errorCode,
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
};
|
|
1227
|
-
break;
|
|
916
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1228
917
|
default:
|
|
1229
918
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
...parsedBody,
|
|
1233
|
-
name: `${errorCode}`,
|
|
1234
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
919
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
920
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1235
921
|
$fault: "client",
|
|
1236
922
|
$metadata: deserializeMetadata(output),
|
|
1237
|
-
};
|
|
923
|
+
});
|
|
924
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1238
925
|
}
|
|
1239
|
-
const message = response.message || response.Message || errorCode;
|
|
1240
|
-
response.message = message;
|
|
1241
|
-
delete response.Message;
|
|
1242
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1243
926
|
};
|
|
1244
927
|
const deserializeAws_restJson1PutGroupConfigurationCommand = async (output, context) => {
|
|
1245
928
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -1263,67 +946,31 @@ const deserializeAws_restJson1PutGroupConfigurationCommandError = async (output,
|
|
|
1263
946
|
switch (errorCode) {
|
|
1264
947
|
case "BadRequestException":
|
|
1265
948
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1266
|
-
|
|
1267
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1268
|
-
name: errorCode,
|
|
1269
|
-
$metadata: deserializeMetadata(output),
|
|
1270
|
-
};
|
|
1271
|
-
break;
|
|
949
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1272
950
|
case "ForbiddenException":
|
|
1273
951
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1274
|
-
|
|
1275
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1276
|
-
name: errorCode,
|
|
1277
|
-
$metadata: deserializeMetadata(output),
|
|
1278
|
-
};
|
|
1279
|
-
break;
|
|
952
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1280
953
|
case "InternalServerErrorException":
|
|
1281
954
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1282
|
-
|
|
1283
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1284
|
-
name: errorCode,
|
|
1285
|
-
$metadata: deserializeMetadata(output),
|
|
1286
|
-
};
|
|
1287
|
-
break;
|
|
955
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1288
956
|
case "MethodNotAllowedException":
|
|
1289
957
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1290
|
-
|
|
1291
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1292
|
-
name: errorCode,
|
|
1293
|
-
$metadata: deserializeMetadata(output),
|
|
1294
|
-
};
|
|
1295
|
-
break;
|
|
958
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1296
959
|
case "NotFoundException":
|
|
1297
960
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1298
|
-
|
|
1299
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1300
|
-
name: errorCode,
|
|
1301
|
-
$metadata: deserializeMetadata(output),
|
|
1302
|
-
};
|
|
1303
|
-
break;
|
|
961
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1304
962
|
case "TooManyRequestsException":
|
|
1305
963
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1306
|
-
|
|
1307
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1308
|
-
name: errorCode,
|
|
1309
|
-
$metadata: deserializeMetadata(output),
|
|
1310
|
-
};
|
|
1311
|
-
break;
|
|
964
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1312
965
|
default:
|
|
1313
966
|
const parsedBody = parsedOutput.body;
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
...parsedBody,
|
|
1317
|
-
name: `${errorCode}`,
|
|
1318
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
967
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
968
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1319
969
|
$fault: "client",
|
|
1320
970
|
$metadata: deserializeMetadata(output),
|
|
1321
|
-
};
|
|
971
|
+
});
|
|
972
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1322
973
|
}
|
|
1323
|
-
const message = response.message || response.Message || errorCode;
|
|
1324
|
-
response.message = message;
|
|
1325
|
-
delete response.Message;
|
|
1326
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1327
974
|
};
|
|
1328
975
|
const deserializeAws_restJson1SearchResourcesCommand = async (output, context) => {
|
|
1329
976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1359,67 +1006,31 @@ const deserializeAws_restJson1SearchResourcesCommandError = async (output, conte
|
|
|
1359
1006
|
switch (errorCode) {
|
|
1360
1007
|
case "BadRequestException":
|
|
1361
1008
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1362
|
-
|
|
1363
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1364
|
-
name: errorCode,
|
|
1365
|
-
$metadata: deserializeMetadata(output),
|
|
1366
|
-
};
|
|
1367
|
-
break;
|
|
1009
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1368
1010
|
case "ForbiddenException":
|
|
1369
1011
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1370
|
-
|
|
1371
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1372
|
-
name: errorCode,
|
|
1373
|
-
$metadata: deserializeMetadata(output),
|
|
1374
|
-
};
|
|
1375
|
-
break;
|
|
1012
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1376
1013
|
case "InternalServerErrorException":
|
|
1377
1014
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1378
|
-
|
|
1379
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1380
|
-
name: errorCode,
|
|
1381
|
-
$metadata: deserializeMetadata(output),
|
|
1382
|
-
};
|
|
1383
|
-
break;
|
|
1015
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1384
1016
|
case "MethodNotAllowedException":
|
|
1385
1017
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1386
|
-
|
|
1387
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1388
|
-
name: errorCode,
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
};
|
|
1391
|
-
break;
|
|
1018
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1392
1019
|
case "TooManyRequestsException":
|
|
1393
1020
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1394
|
-
|
|
1395
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1396
|
-
name: errorCode,
|
|
1397
|
-
$metadata: deserializeMetadata(output),
|
|
1398
|
-
};
|
|
1399
|
-
break;
|
|
1021
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1400
1022
|
case "UnauthorizedException":
|
|
1401
1023
|
case "com.amazonaws.resourcegroups#UnauthorizedException":
|
|
1402
|
-
|
|
1403
|
-
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
1404
|
-
name: errorCode,
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
1407
|
-
break;
|
|
1024
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
1408
1025
|
default:
|
|
1409
1026
|
const parsedBody = parsedOutput.body;
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
...parsedBody,
|
|
1413
|
-
name: `${errorCode}`,
|
|
1414
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1027
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1028
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1415
1029
|
$fault: "client",
|
|
1416
1030
|
$metadata: deserializeMetadata(output),
|
|
1417
|
-
};
|
|
1031
|
+
});
|
|
1032
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1418
1033
|
}
|
|
1419
|
-
const message = response.message || response.Message || errorCode;
|
|
1420
|
-
response.message = message;
|
|
1421
|
-
delete response.Message;
|
|
1422
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1423
1034
|
};
|
|
1424
1035
|
const deserializeAws_restJson1TagCommand = async (output, context) => {
|
|
1425
1036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1451,67 +1062,31 @@ const deserializeAws_restJson1TagCommandError = async (output, context) => {
|
|
|
1451
1062
|
switch (errorCode) {
|
|
1452
1063
|
case "BadRequestException":
|
|
1453
1064
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1454
|
-
|
|
1455
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1456
|
-
name: errorCode,
|
|
1457
|
-
$metadata: deserializeMetadata(output),
|
|
1458
|
-
};
|
|
1459
|
-
break;
|
|
1065
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1460
1066
|
case "ForbiddenException":
|
|
1461
1067
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1462
|
-
|
|
1463
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1464
|
-
name: errorCode,
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
};
|
|
1467
|
-
break;
|
|
1068
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1468
1069
|
case "InternalServerErrorException":
|
|
1469
1070
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1470
|
-
|
|
1471
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1472
|
-
name: errorCode,
|
|
1473
|
-
$metadata: deserializeMetadata(output),
|
|
1474
|
-
};
|
|
1475
|
-
break;
|
|
1071
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1476
1072
|
case "MethodNotAllowedException":
|
|
1477
1073
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1074
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1484
1075
|
case "NotFoundException":
|
|
1485
1076
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1486
|
-
|
|
1487
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1488
|
-
name: errorCode,
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1491
|
-
break;
|
|
1077
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1492
1078
|
case "TooManyRequestsException":
|
|
1493
1079
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1494
|
-
|
|
1495
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1496
|
-
name: errorCode,
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
};
|
|
1499
|
-
break;
|
|
1080
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1500
1081
|
default:
|
|
1501
1082
|
const parsedBody = parsedOutput.body;
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
...parsedBody,
|
|
1505
|
-
name: `${errorCode}`,
|
|
1506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1083
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1084
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1507
1085
|
$fault: "client",
|
|
1508
1086
|
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1087
|
+
});
|
|
1088
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1510
1089
|
}
|
|
1511
|
-
const message = response.message || response.Message || errorCode;
|
|
1512
|
-
response.message = message;
|
|
1513
|
-
delete response.Message;
|
|
1514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1515
1090
|
};
|
|
1516
1091
|
const deserializeAws_restJson1UngroupResourcesCommand = async (output, context) => {
|
|
1517
1092
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1547,67 +1122,31 @@ const deserializeAws_restJson1UngroupResourcesCommandError = async (output, cont
|
|
|
1547
1122
|
switch (errorCode) {
|
|
1548
1123
|
case "BadRequestException":
|
|
1549
1124
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1550
|
-
|
|
1551
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1552
|
-
name: errorCode,
|
|
1553
|
-
$metadata: deserializeMetadata(output),
|
|
1554
|
-
};
|
|
1555
|
-
break;
|
|
1125
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1556
1126
|
case "ForbiddenException":
|
|
1557
1127
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1558
|
-
|
|
1559
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1560
|
-
name: errorCode,
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
};
|
|
1563
|
-
break;
|
|
1128
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1564
1129
|
case "InternalServerErrorException":
|
|
1565
1130
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1566
|
-
|
|
1567
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1568
|
-
name: errorCode,
|
|
1569
|
-
$metadata: deserializeMetadata(output),
|
|
1570
|
-
};
|
|
1571
|
-
break;
|
|
1131
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1572
1132
|
case "MethodNotAllowedException":
|
|
1573
1133
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1134
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1580
1135
|
case "NotFoundException":
|
|
1581
1136
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1582
|
-
|
|
1583
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1584
|
-
name: errorCode,
|
|
1585
|
-
$metadata: deserializeMetadata(output),
|
|
1586
|
-
};
|
|
1587
|
-
break;
|
|
1137
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1588
1138
|
case "TooManyRequestsException":
|
|
1589
1139
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1590
|
-
|
|
1591
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1592
|
-
name: errorCode,
|
|
1593
|
-
$metadata: deserializeMetadata(output),
|
|
1594
|
-
};
|
|
1595
|
-
break;
|
|
1140
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1596
1141
|
default:
|
|
1597
1142
|
const parsedBody = parsedOutput.body;
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
...parsedBody,
|
|
1601
|
-
name: `${errorCode}`,
|
|
1602
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1143
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1144
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1603
1145
|
$fault: "client",
|
|
1604
1146
|
$metadata: deserializeMetadata(output),
|
|
1605
|
-
};
|
|
1147
|
+
});
|
|
1148
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1606
1149
|
}
|
|
1607
|
-
const message = response.message || response.Message || errorCode;
|
|
1608
|
-
response.message = message;
|
|
1609
|
-
delete response.Message;
|
|
1610
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1611
1150
|
};
|
|
1612
1151
|
const deserializeAws_restJson1UntagCommand = async (output, context) => {
|
|
1613
1152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1639,67 +1178,31 @@ const deserializeAws_restJson1UntagCommandError = async (output, context) => {
|
|
|
1639
1178
|
switch (errorCode) {
|
|
1640
1179
|
case "BadRequestException":
|
|
1641
1180
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1642
|
-
|
|
1643
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1644
|
-
name: errorCode,
|
|
1645
|
-
$metadata: deserializeMetadata(output),
|
|
1646
|
-
};
|
|
1647
|
-
break;
|
|
1181
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1648
1182
|
case "ForbiddenException":
|
|
1649
1183
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1650
|
-
|
|
1651
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1652
|
-
name: errorCode,
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
};
|
|
1655
|
-
break;
|
|
1184
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1656
1185
|
case "InternalServerErrorException":
|
|
1657
1186
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1658
|
-
|
|
1659
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1660
|
-
name: errorCode,
|
|
1661
|
-
$metadata: deserializeMetadata(output),
|
|
1662
|
-
};
|
|
1663
|
-
break;
|
|
1187
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1664
1188
|
case "MethodNotAllowedException":
|
|
1665
1189
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1666
|
-
|
|
1667
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1668
|
-
name: errorCode,
|
|
1669
|
-
$metadata: deserializeMetadata(output),
|
|
1670
|
-
};
|
|
1671
|
-
break;
|
|
1190
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1672
1191
|
case "NotFoundException":
|
|
1673
1192
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1674
|
-
|
|
1675
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1676
|
-
name: errorCode,
|
|
1677
|
-
$metadata: deserializeMetadata(output),
|
|
1678
|
-
};
|
|
1679
|
-
break;
|
|
1193
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1680
1194
|
case "TooManyRequestsException":
|
|
1681
1195
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1682
|
-
|
|
1683
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1684
|
-
name: errorCode,
|
|
1685
|
-
$metadata: deserializeMetadata(output),
|
|
1686
|
-
};
|
|
1687
|
-
break;
|
|
1196
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1688
1197
|
default:
|
|
1689
1198
|
const parsedBody = parsedOutput.body;
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
...parsedBody,
|
|
1693
|
-
name: `${errorCode}`,
|
|
1694
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1199
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1200
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
1201
|
$fault: "client",
|
|
1696
1202
|
$metadata: deserializeMetadata(output),
|
|
1697
|
-
};
|
|
1203
|
+
});
|
|
1204
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1698
1205
|
}
|
|
1699
|
-
const message = response.message || response.Message || errorCode;
|
|
1700
|
-
response.message = message;
|
|
1701
|
-
delete response.Message;
|
|
1702
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1703
1206
|
};
|
|
1704
1207
|
const deserializeAws_restJson1UpdateGroupCommand = async (output, context) => {
|
|
1705
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1727,67 +1230,31 @@ const deserializeAws_restJson1UpdateGroupCommandError = async (output, context)
|
|
|
1727
1230
|
switch (errorCode) {
|
|
1728
1231
|
case "BadRequestException":
|
|
1729
1232
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1730
|
-
|
|
1731
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1732
|
-
name: errorCode,
|
|
1733
|
-
$metadata: deserializeMetadata(output),
|
|
1734
|
-
};
|
|
1735
|
-
break;
|
|
1233
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1736
1234
|
case "ForbiddenException":
|
|
1737
1235
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1738
|
-
|
|
1739
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1740
|
-
name: errorCode,
|
|
1741
|
-
$metadata: deserializeMetadata(output),
|
|
1742
|
-
};
|
|
1743
|
-
break;
|
|
1236
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1744
1237
|
case "InternalServerErrorException":
|
|
1745
1238
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1746
|
-
|
|
1747
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1748
|
-
name: errorCode,
|
|
1749
|
-
$metadata: deserializeMetadata(output),
|
|
1750
|
-
};
|
|
1751
|
-
break;
|
|
1239
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1752
1240
|
case "MethodNotAllowedException":
|
|
1753
1241
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1754
|
-
|
|
1755
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1756
|
-
name: errorCode,
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
};
|
|
1759
|
-
break;
|
|
1242
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1760
1243
|
case "NotFoundException":
|
|
1761
1244
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1762
|
-
|
|
1763
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1764
|
-
name: errorCode,
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
};
|
|
1767
|
-
break;
|
|
1245
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1768
1246
|
case "TooManyRequestsException":
|
|
1769
1247
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1770
|
-
|
|
1771
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1772
|
-
name: errorCode,
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
};
|
|
1775
|
-
break;
|
|
1248
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1776
1249
|
default:
|
|
1777
1250
|
const parsedBody = parsedOutput.body;
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
...parsedBody,
|
|
1781
|
-
name: `${errorCode}`,
|
|
1782
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1251
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1252
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1783
1253
|
$fault: "client",
|
|
1784
1254
|
$metadata: deserializeMetadata(output),
|
|
1785
|
-
};
|
|
1255
|
+
});
|
|
1256
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1786
1257
|
}
|
|
1787
|
-
const message = response.message || response.Message || errorCode;
|
|
1788
|
-
response.message = message;
|
|
1789
|
-
delete response.Message;
|
|
1790
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1791
1258
|
};
|
|
1792
1259
|
const deserializeAws_restJson1UpdateGroupQueryCommand = async (output, context) => {
|
|
1793
1260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1815,158 +1282,115 @@ const deserializeAws_restJson1UpdateGroupQueryCommandError = async (output, cont
|
|
|
1815
1282
|
switch (errorCode) {
|
|
1816
1283
|
case "BadRequestException":
|
|
1817
1284
|
case "com.amazonaws.resourcegroups#BadRequestException":
|
|
1818
|
-
|
|
1819
|
-
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
1820
|
-
name: errorCode,
|
|
1821
|
-
$metadata: deserializeMetadata(output),
|
|
1822
|
-
};
|
|
1823
|
-
break;
|
|
1285
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
1824
1286
|
case "ForbiddenException":
|
|
1825
1287
|
case "com.amazonaws.resourcegroups#ForbiddenException":
|
|
1826
|
-
|
|
1827
|
-
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
1828
|
-
name: errorCode,
|
|
1829
|
-
$metadata: deserializeMetadata(output),
|
|
1830
|
-
};
|
|
1831
|
-
break;
|
|
1288
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
1832
1289
|
case "InternalServerErrorException":
|
|
1833
1290
|
case "com.amazonaws.resourcegroups#InternalServerErrorException":
|
|
1834
|
-
|
|
1835
|
-
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
1836
|
-
name: errorCode,
|
|
1837
|
-
$metadata: deserializeMetadata(output),
|
|
1838
|
-
};
|
|
1839
|
-
break;
|
|
1291
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
1840
1292
|
case "MethodNotAllowedException":
|
|
1841
1293
|
case "com.amazonaws.resourcegroups#MethodNotAllowedException":
|
|
1842
|
-
|
|
1843
|
-
...(await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context)),
|
|
1844
|
-
name: errorCode,
|
|
1845
|
-
$metadata: deserializeMetadata(output),
|
|
1846
|
-
};
|
|
1847
|
-
break;
|
|
1294
|
+
throw await deserializeAws_restJson1MethodNotAllowedExceptionResponse(parsedOutput, context);
|
|
1848
1295
|
case "NotFoundException":
|
|
1849
1296
|
case "com.amazonaws.resourcegroups#NotFoundException":
|
|
1850
|
-
|
|
1851
|
-
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1852
|
-
name: errorCode,
|
|
1853
|
-
$metadata: deserializeMetadata(output),
|
|
1854
|
-
};
|
|
1855
|
-
break;
|
|
1297
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
1856
1298
|
case "TooManyRequestsException":
|
|
1857
1299
|
case "com.amazonaws.resourcegroups#TooManyRequestsException":
|
|
1858
|
-
|
|
1859
|
-
...(await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)),
|
|
1860
|
-
name: errorCode,
|
|
1861
|
-
$metadata: deserializeMetadata(output),
|
|
1862
|
-
};
|
|
1863
|
-
break;
|
|
1300
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1864
1301
|
default:
|
|
1865
1302
|
const parsedBody = parsedOutput.body;
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
...parsedBody,
|
|
1869
|
-
name: `${errorCode}`,
|
|
1870
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1303
|
+
response = new ResourceGroupsServiceException_1.ResourceGroupsServiceException({
|
|
1304
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1871
1305
|
$fault: "client",
|
|
1872
1306
|
$metadata: deserializeMetadata(output),
|
|
1873
|
-
};
|
|
1307
|
+
});
|
|
1308
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1874
1309
|
}
|
|
1875
|
-
const message = response.message || response.Message || errorCode;
|
|
1876
|
-
response.message = message;
|
|
1877
|
-
delete response.Message;
|
|
1878
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1879
1310
|
};
|
|
1880
1311
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1881
|
-
const contents = {
|
|
1882
|
-
name: "BadRequestException",
|
|
1883
|
-
$fault: "client",
|
|
1884
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1885
|
-
Message: undefined,
|
|
1886
|
-
};
|
|
1312
|
+
const contents = {};
|
|
1887
1313
|
const data = parsedOutput.body;
|
|
1888
1314
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1889
1315
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1890
1316
|
}
|
|
1891
|
-
|
|
1317
|
+
const exception = new models_0_1.BadRequestException({
|
|
1318
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1319
|
+
...contents,
|
|
1320
|
+
});
|
|
1321
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1892
1322
|
};
|
|
1893
1323
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1894
|
-
const contents = {
|
|
1895
|
-
name: "ForbiddenException",
|
|
1896
|
-
$fault: "client",
|
|
1897
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1898
|
-
Message: undefined,
|
|
1899
|
-
};
|
|
1324
|
+
const contents = {};
|
|
1900
1325
|
const data = parsedOutput.body;
|
|
1901
1326
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1902
1327
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1903
1328
|
}
|
|
1904
|
-
|
|
1329
|
+
const exception = new models_0_1.ForbiddenException({
|
|
1330
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1331
|
+
...contents,
|
|
1332
|
+
});
|
|
1333
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1905
1334
|
};
|
|
1906
1335
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1907
|
-
const contents = {
|
|
1908
|
-
name: "InternalServerErrorException",
|
|
1909
|
-
$fault: "server",
|
|
1910
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1911
|
-
Message: undefined,
|
|
1912
|
-
};
|
|
1336
|
+
const contents = {};
|
|
1913
1337
|
const data = parsedOutput.body;
|
|
1914
1338
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1915
1339
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1916
1340
|
}
|
|
1917
|
-
|
|
1341
|
+
const exception = new models_0_1.InternalServerErrorException({
|
|
1342
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1343
|
+
...contents,
|
|
1344
|
+
});
|
|
1345
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1918
1346
|
};
|
|
1919
1347
|
const deserializeAws_restJson1MethodNotAllowedExceptionResponse = async (parsedOutput, context) => {
|
|
1920
|
-
const contents = {
|
|
1921
|
-
name: "MethodNotAllowedException",
|
|
1922
|
-
$fault: "client",
|
|
1923
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1924
|
-
Message: undefined,
|
|
1925
|
-
};
|
|
1348
|
+
const contents = {};
|
|
1926
1349
|
const data = parsedOutput.body;
|
|
1927
1350
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1928
1351
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1929
1352
|
}
|
|
1930
|
-
|
|
1353
|
+
const exception = new models_0_1.MethodNotAllowedException({
|
|
1354
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1355
|
+
...contents,
|
|
1356
|
+
});
|
|
1357
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1931
1358
|
};
|
|
1932
1359
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1933
|
-
const contents = {
|
|
1934
|
-
name: "NotFoundException",
|
|
1935
|
-
$fault: "client",
|
|
1936
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1937
|
-
Message: undefined,
|
|
1938
|
-
};
|
|
1360
|
+
const contents = {};
|
|
1939
1361
|
const data = parsedOutput.body;
|
|
1940
1362
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1941
1363
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1942
1364
|
}
|
|
1943
|
-
|
|
1365
|
+
const exception = new models_0_1.NotFoundException({
|
|
1366
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1367
|
+
...contents,
|
|
1368
|
+
});
|
|
1369
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1944
1370
|
};
|
|
1945
1371
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1946
|
-
const contents = {
|
|
1947
|
-
name: "TooManyRequestsException",
|
|
1948
|
-
$fault: "client",
|
|
1949
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1950
|
-
Message: undefined,
|
|
1951
|
-
};
|
|
1372
|
+
const contents = {};
|
|
1952
1373
|
const data = parsedOutput.body;
|
|
1953
1374
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1954
1375
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1955
1376
|
}
|
|
1956
|
-
|
|
1377
|
+
const exception = new models_0_1.TooManyRequestsException({
|
|
1378
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
|
+
...contents,
|
|
1380
|
+
});
|
|
1381
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1957
1382
|
};
|
|
1958
1383
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1959
|
-
const contents = {
|
|
1960
|
-
name: "UnauthorizedException",
|
|
1961
|
-
$fault: "client",
|
|
1962
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1963
|
-
Message: undefined,
|
|
1964
|
-
};
|
|
1384
|
+
const contents = {};
|
|
1965
1385
|
const data = parsedOutput.body;
|
|
1966
1386
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1967
1387
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
1968
1388
|
}
|
|
1969
|
-
|
|
1389
|
+
const exception = new models_0_1.UnauthorizedException({
|
|
1390
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1391
|
+
...contents,
|
|
1392
|
+
});
|
|
1393
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1970
1394
|
};
|
|
1971
1395
|
const serializeAws_restJson1GroupConfigurationItem = (input, context) => {
|
|
1972
1396
|
return {
|
|
@@ -2113,7 +1537,7 @@ const deserializeAws_restJson1FailedResource = (output, context) => {
|
|
|
2113
1537
|
};
|
|
2114
1538
|
};
|
|
2115
1539
|
const deserializeAws_restJson1FailedResourceList = (output, context) => {
|
|
2116
|
-
|
|
1540
|
+
const retVal = (output || [])
|
|
2117
1541
|
.filter((e) => e != null)
|
|
2118
1542
|
.map((entry) => {
|
|
2119
1543
|
if (entry === null) {
|
|
@@ -2121,6 +1545,7 @@ const deserializeAws_restJson1FailedResourceList = (output, context) => {
|
|
|
2121
1545
|
}
|
|
2122
1546
|
return deserializeAws_restJson1FailedResource(entry, context);
|
|
2123
1547
|
});
|
|
1548
|
+
return retVal;
|
|
2124
1549
|
};
|
|
2125
1550
|
const deserializeAws_restJson1Group = (output, context) => {
|
|
2126
1551
|
return {
|
|
@@ -2150,7 +1575,7 @@ const deserializeAws_restJson1GroupConfigurationItem = (output, context) => {
|
|
|
2150
1575
|
};
|
|
2151
1576
|
};
|
|
2152
1577
|
const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
|
|
2153
|
-
|
|
1578
|
+
const retVal = (output || [])
|
|
2154
1579
|
.filter((e) => e != null)
|
|
2155
1580
|
.map((entry) => {
|
|
2156
1581
|
if (entry === null) {
|
|
@@ -2158,6 +1583,7 @@ const deserializeAws_restJson1GroupConfigurationList = (output, context) => {
|
|
|
2158
1583
|
}
|
|
2159
1584
|
return deserializeAws_restJson1GroupConfigurationItem(entry, context);
|
|
2160
1585
|
});
|
|
1586
|
+
return retVal;
|
|
2161
1587
|
};
|
|
2162
1588
|
const deserializeAws_restJson1GroupConfigurationParameter = (output, context) => {
|
|
2163
1589
|
return {
|
|
@@ -2168,7 +1594,7 @@ const deserializeAws_restJson1GroupConfigurationParameter = (output, context) =>
|
|
|
2168
1594
|
};
|
|
2169
1595
|
};
|
|
2170
1596
|
const deserializeAws_restJson1GroupConfigurationParameterValueList = (output, context) => {
|
|
2171
|
-
|
|
1597
|
+
const retVal = (output || [])
|
|
2172
1598
|
.filter((e) => e != null)
|
|
2173
1599
|
.map((entry) => {
|
|
2174
1600
|
if (entry === null) {
|
|
@@ -2176,6 +1602,7 @@ const deserializeAws_restJson1GroupConfigurationParameterValueList = (output, co
|
|
|
2176
1602
|
}
|
|
2177
1603
|
return smithy_client_1.expectString(entry);
|
|
2178
1604
|
});
|
|
1605
|
+
return retVal;
|
|
2179
1606
|
};
|
|
2180
1607
|
const deserializeAws_restJson1GroupIdentifier = (output, context) => {
|
|
2181
1608
|
return {
|
|
@@ -2184,7 +1611,7 @@ const deserializeAws_restJson1GroupIdentifier = (output, context) => {
|
|
|
2184
1611
|
};
|
|
2185
1612
|
};
|
|
2186
1613
|
const deserializeAws_restJson1GroupIdentifierList = (output, context) => {
|
|
2187
|
-
|
|
1614
|
+
const retVal = (output || [])
|
|
2188
1615
|
.filter((e) => e != null)
|
|
2189
1616
|
.map((entry) => {
|
|
2190
1617
|
if (entry === null) {
|
|
@@ -2192,9 +1619,10 @@ const deserializeAws_restJson1GroupIdentifierList = (output, context) => {
|
|
|
2192
1619
|
}
|
|
2193
1620
|
return deserializeAws_restJson1GroupIdentifier(entry, context);
|
|
2194
1621
|
});
|
|
1622
|
+
return retVal;
|
|
2195
1623
|
};
|
|
2196
1624
|
const deserializeAws_restJson1GroupList = (output, context) => {
|
|
2197
|
-
|
|
1625
|
+
const retVal = (output || [])
|
|
2198
1626
|
.filter((e) => e != null)
|
|
2199
1627
|
.map((entry) => {
|
|
2200
1628
|
if (entry === null) {
|
|
@@ -2202,9 +1630,10 @@ const deserializeAws_restJson1GroupList = (output, context) => {
|
|
|
2202
1630
|
}
|
|
2203
1631
|
return deserializeAws_restJson1Group(entry, context);
|
|
2204
1632
|
});
|
|
1633
|
+
return retVal;
|
|
2205
1634
|
};
|
|
2206
1635
|
const deserializeAws_restJson1GroupParameterList = (output, context) => {
|
|
2207
|
-
|
|
1636
|
+
const retVal = (output || [])
|
|
2208
1637
|
.filter((e) => e != null)
|
|
2209
1638
|
.map((entry) => {
|
|
2210
1639
|
if (entry === null) {
|
|
@@ -2212,6 +1641,7 @@ const deserializeAws_restJson1GroupParameterList = (output, context) => {
|
|
|
2212
1641
|
}
|
|
2213
1642
|
return deserializeAws_restJson1GroupConfigurationParameter(entry, context);
|
|
2214
1643
|
});
|
|
1644
|
+
return retVal;
|
|
2215
1645
|
};
|
|
2216
1646
|
const deserializeAws_restJson1GroupQuery = (output, context) => {
|
|
2217
1647
|
return {
|
|
@@ -2232,7 +1662,7 @@ const deserializeAws_restJson1ListGroupResourcesItem = (output, context) => {
|
|
|
2232
1662
|
};
|
|
2233
1663
|
};
|
|
2234
1664
|
const deserializeAws_restJson1ListGroupResourcesItemList = (output, context) => {
|
|
2235
|
-
|
|
1665
|
+
const retVal = (output || [])
|
|
2236
1666
|
.filter((e) => e != null)
|
|
2237
1667
|
.map((entry) => {
|
|
2238
1668
|
if (entry === null) {
|
|
@@ -2240,6 +1670,7 @@ const deserializeAws_restJson1ListGroupResourcesItemList = (output, context) =>
|
|
|
2240
1670
|
}
|
|
2241
1671
|
return deserializeAws_restJson1ListGroupResourcesItem(entry, context);
|
|
2242
1672
|
});
|
|
1673
|
+
return retVal;
|
|
2243
1674
|
};
|
|
2244
1675
|
const deserializeAws_restJson1PendingResource = (output, context) => {
|
|
2245
1676
|
return {
|
|
@@ -2247,7 +1678,7 @@ const deserializeAws_restJson1PendingResource = (output, context) => {
|
|
|
2247
1678
|
};
|
|
2248
1679
|
};
|
|
2249
1680
|
const deserializeAws_restJson1PendingResourceList = (output, context) => {
|
|
2250
|
-
|
|
1681
|
+
const retVal = (output || [])
|
|
2251
1682
|
.filter((e) => e != null)
|
|
2252
1683
|
.map((entry) => {
|
|
2253
1684
|
if (entry === null) {
|
|
@@ -2255,6 +1686,7 @@ const deserializeAws_restJson1PendingResourceList = (output, context) => {
|
|
|
2255
1686
|
}
|
|
2256
1687
|
return deserializeAws_restJson1PendingResource(entry, context);
|
|
2257
1688
|
});
|
|
1689
|
+
return retVal;
|
|
2258
1690
|
};
|
|
2259
1691
|
const deserializeAws_restJson1QueryError = (output, context) => {
|
|
2260
1692
|
return {
|
|
@@ -2263,7 +1695,7 @@ const deserializeAws_restJson1QueryError = (output, context) => {
|
|
|
2263
1695
|
};
|
|
2264
1696
|
};
|
|
2265
1697
|
const deserializeAws_restJson1QueryErrorList = (output, context) => {
|
|
2266
|
-
|
|
1698
|
+
const retVal = (output || [])
|
|
2267
1699
|
.filter((e) => e != null)
|
|
2268
1700
|
.map((entry) => {
|
|
2269
1701
|
if (entry === null) {
|
|
@@ -2271,9 +1703,10 @@ const deserializeAws_restJson1QueryErrorList = (output, context) => {
|
|
|
2271
1703
|
}
|
|
2272
1704
|
return deserializeAws_restJson1QueryError(entry, context);
|
|
2273
1705
|
});
|
|
1706
|
+
return retVal;
|
|
2274
1707
|
};
|
|
2275
1708
|
const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
2276
|
-
|
|
1709
|
+
const retVal = (output || [])
|
|
2277
1710
|
.filter((e) => e != null)
|
|
2278
1711
|
.map((entry) => {
|
|
2279
1712
|
if (entry === null) {
|
|
@@ -2281,6 +1714,7 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
|
2281
1714
|
}
|
|
2282
1715
|
return smithy_client_1.expectString(entry);
|
|
2283
1716
|
});
|
|
1717
|
+
return retVal;
|
|
2284
1718
|
};
|
|
2285
1719
|
const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
|
|
2286
1720
|
return {
|
|
@@ -2289,7 +1723,7 @@ const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
|
|
|
2289
1723
|
};
|
|
2290
1724
|
};
|
|
2291
1725
|
const deserializeAws_restJson1ResourceIdentifierList = (output, context) => {
|
|
2292
|
-
|
|
1726
|
+
const retVal = (output || [])
|
|
2293
1727
|
.filter((e) => e != null)
|
|
2294
1728
|
.map((entry) => {
|
|
2295
1729
|
if (entry === null) {
|
|
@@ -2297,6 +1731,7 @@ const deserializeAws_restJson1ResourceIdentifierList = (output, context) => {
|
|
|
2297
1731
|
}
|
|
2298
1732
|
return deserializeAws_restJson1ResourceIdentifier(entry, context);
|
|
2299
1733
|
});
|
|
1734
|
+
return retVal;
|
|
2300
1735
|
};
|
|
2301
1736
|
const deserializeAws_restJson1ResourceQuery = (output, context) => {
|
|
2302
1737
|
return {
|
|
@@ -2310,7 +1745,7 @@ const deserializeAws_restJson1ResourceStatus = (output, context) => {
|
|
|
2310
1745
|
};
|
|
2311
1746
|
};
|
|
2312
1747
|
const deserializeAws_restJson1TagKeyList = (output, context) => {
|
|
2313
|
-
|
|
1748
|
+
const retVal = (output || [])
|
|
2314
1749
|
.filter((e) => e != null)
|
|
2315
1750
|
.map((entry) => {
|
|
2316
1751
|
if (entry === null) {
|
|
@@ -2318,6 +1753,7 @@ const deserializeAws_restJson1TagKeyList = (output, context) => {
|
|
|
2318
1753
|
}
|
|
2319
1754
|
return smithy_client_1.expectString(entry);
|
|
2320
1755
|
});
|
|
1756
|
+
return retVal;
|
|
2321
1757
|
};
|
|
2322
1758
|
const deserializeAws_restJson1Tags = (output, context) => {
|
|
2323
1759
|
return Object.entries(output).reduce((acc, [key, value]) => {
|