@aws-sdk/client-codebuild 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/CodeBuildServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +70 -4
- package/dist-cjs/protocols/Aws_json1_1.js +358 -979
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodeBuildServiceException.js +12 -0
- package/dist-es/models/models_0.js +62 -1
- package/dist-es/protocols/Aws_json1_1.js +792 -1143
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodeBuildServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -21
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CodeBuildServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -21
- package/package.json +25 -25
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1BatchGetReportGroupsCommand = exports.deserializeA
|
|
|
4
4
|
exports.deserializeAws_json1_1UpdateWebhookCommand = exports.deserializeAws_json1_1UpdateReportGroupCommand = exports.deserializeAws_json1_1UpdateProjectVisibilityCommand = exports.deserializeAws_json1_1UpdateProjectCommand = exports.deserializeAws_json1_1StopBuildBatchCommand = exports.deserializeAws_json1_1StopBuildCommand = exports.deserializeAws_json1_1StartBuildBatchCommand = exports.deserializeAws_json1_1StartBuildCommand = exports.deserializeAws_json1_1RetryBuildBatchCommand = exports.deserializeAws_json1_1RetryBuildCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListSourceCredentialsCommand = exports.deserializeAws_json1_1ListSharedReportGroupsCommand = exports.deserializeAws_json1_1ListSharedProjectsCommand = exports.deserializeAws_json1_1ListReportsForReportGroupCommand = exports.deserializeAws_json1_1ListReportsCommand = exports.deserializeAws_json1_1ListReportGroupsCommand = exports.deserializeAws_json1_1ListProjectsCommand = exports.deserializeAws_json1_1ListCuratedEnvironmentImagesCommand = exports.deserializeAws_json1_1ListBuildsForProjectCommand = exports.deserializeAws_json1_1ListBuildsCommand = exports.deserializeAws_json1_1ListBuildBatchesForProjectCommand = exports.deserializeAws_json1_1ListBuildBatchesCommand = exports.deserializeAws_json1_1InvalidateProjectCacheCommand = exports.deserializeAws_json1_1ImportSourceCredentialsCommand = exports.deserializeAws_json1_1GetResourcePolicyCommand = exports.deserializeAws_json1_1GetReportGroupTrendCommand = exports.deserializeAws_json1_1DescribeTestCasesCommand = exports.deserializeAws_json1_1DescribeCodeCoveragesCommand = exports.deserializeAws_json1_1DeleteWebhookCommand = exports.deserializeAws_json1_1DeleteSourceCredentialsCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteReportGroupCommand = exports.deserializeAws_json1_1DeleteReportCommand = exports.deserializeAws_json1_1DeleteProjectCommand = exports.deserializeAws_json1_1DeleteBuildBatchCommand = exports.deserializeAws_json1_1CreateWebhookCommand = exports.deserializeAws_json1_1CreateReportGroupCommand = exports.deserializeAws_json1_1CreateProjectCommand = exports.deserializeAws_json1_1BatchGetReportsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const CodeBuildServiceException_1 = require("../models/CodeBuildServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1BatchDeleteBuildsCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -479,27 +481,16 @@ const deserializeAws_json1_1BatchDeleteBuildsCommandError = async (output, conte
|
|
|
479
481
|
switch (errorCode) {
|
|
480
482
|
case "InvalidInputException":
|
|
481
483
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
482
|
-
|
|
483
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
484
|
-
name: errorCode,
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
};
|
|
487
|
-
break;
|
|
484
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
488
485
|
default:
|
|
489
486
|
const parsedBody = parsedOutput.body;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
...parsedBody,
|
|
493
|
-
name: `${errorCode}`,
|
|
494
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
487
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
488
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
495
489
|
$fault: "client",
|
|
496
490
|
$metadata: deserializeMetadata(output),
|
|
497
|
-
};
|
|
491
|
+
});
|
|
492
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
498
493
|
}
|
|
499
|
-
const message = response.message || response.Message || errorCode;
|
|
500
|
-
response.message = message;
|
|
501
|
-
delete response.Message;
|
|
502
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
503
494
|
};
|
|
504
495
|
const deserializeAws_json1_1BatchGetBuildBatchesCommand = async (output, context) => {
|
|
505
496
|
if (output.statusCode >= 300) {
|
|
@@ -526,27 +517,16 @@ const deserializeAws_json1_1BatchGetBuildBatchesCommandError = async (output, co
|
|
|
526
517
|
switch (errorCode) {
|
|
527
518
|
case "InvalidInputException":
|
|
528
519
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
529
|
-
|
|
530
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
531
|
-
name: errorCode,
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
};
|
|
534
|
-
break;
|
|
520
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
535
521
|
default:
|
|
536
522
|
const parsedBody = parsedOutput.body;
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
...parsedBody,
|
|
540
|
-
name: `${errorCode}`,
|
|
541
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
523
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
524
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
542
525
|
$fault: "client",
|
|
543
526
|
$metadata: deserializeMetadata(output),
|
|
544
|
-
};
|
|
527
|
+
});
|
|
528
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
545
529
|
}
|
|
546
|
-
const message = response.message || response.Message || errorCode;
|
|
547
|
-
response.message = message;
|
|
548
|
-
delete response.Message;
|
|
549
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
550
530
|
};
|
|
551
531
|
const deserializeAws_json1_1BatchGetBuildsCommand = async (output, context) => {
|
|
552
532
|
if (output.statusCode >= 300) {
|
|
@@ -573,27 +553,16 @@ const deserializeAws_json1_1BatchGetBuildsCommandError = async (output, context)
|
|
|
573
553
|
switch (errorCode) {
|
|
574
554
|
case "InvalidInputException":
|
|
575
555
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
576
|
-
|
|
577
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
578
|
-
name: errorCode,
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
581
|
-
break;
|
|
556
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
582
557
|
default:
|
|
583
558
|
const parsedBody = parsedOutput.body;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
...parsedBody,
|
|
587
|
-
name: `${errorCode}`,
|
|
588
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
559
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
589
561
|
$fault: "client",
|
|
590
562
|
$metadata: deserializeMetadata(output),
|
|
591
|
-
};
|
|
563
|
+
});
|
|
564
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
592
565
|
}
|
|
593
|
-
const message = response.message || response.Message || errorCode;
|
|
594
|
-
response.message = message;
|
|
595
|
-
delete response.Message;
|
|
596
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
597
566
|
};
|
|
598
567
|
const deserializeAws_json1_1BatchGetProjectsCommand = async (output, context) => {
|
|
599
568
|
if (output.statusCode >= 300) {
|
|
@@ -620,27 +589,16 @@ const deserializeAws_json1_1BatchGetProjectsCommandError = async (output, contex
|
|
|
620
589
|
switch (errorCode) {
|
|
621
590
|
case "InvalidInputException":
|
|
622
591
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
623
|
-
|
|
624
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
625
|
-
name: errorCode,
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
};
|
|
628
|
-
break;
|
|
592
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
629
593
|
default:
|
|
630
594
|
const parsedBody = parsedOutput.body;
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
...parsedBody,
|
|
634
|
-
name: `${errorCode}`,
|
|
635
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
595
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
596
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
636
597
|
$fault: "client",
|
|
637
598
|
$metadata: deserializeMetadata(output),
|
|
638
|
-
};
|
|
599
|
+
});
|
|
600
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
639
601
|
}
|
|
640
|
-
const message = response.message || response.Message || errorCode;
|
|
641
|
-
response.message = message;
|
|
642
|
-
delete response.Message;
|
|
643
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
644
602
|
};
|
|
645
603
|
const deserializeAws_json1_1BatchGetReportGroupsCommand = async (output, context) => {
|
|
646
604
|
if (output.statusCode >= 300) {
|
|
@@ -667,27 +625,16 @@ const deserializeAws_json1_1BatchGetReportGroupsCommandError = async (output, co
|
|
|
667
625
|
switch (errorCode) {
|
|
668
626
|
case "InvalidInputException":
|
|
669
627
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
670
|
-
|
|
671
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
672
|
-
name: errorCode,
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
};
|
|
675
|
-
break;
|
|
628
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
676
629
|
default:
|
|
677
630
|
const parsedBody = parsedOutput.body;
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
...parsedBody,
|
|
681
|
-
name: `${errorCode}`,
|
|
682
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
631
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
632
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
683
633
|
$fault: "client",
|
|
684
634
|
$metadata: deserializeMetadata(output),
|
|
685
|
-
};
|
|
635
|
+
});
|
|
636
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
686
637
|
}
|
|
687
|
-
const message = response.message || response.Message || errorCode;
|
|
688
|
-
response.message = message;
|
|
689
|
-
delete response.Message;
|
|
690
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
691
638
|
};
|
|
692
639
|
const deserializeAws_json1_1BatchGetReportsCommand = async (output, context) => {
|
|
693
640
|
if (output.statusCode >= 300) {
|
|
@@ -714,27 +661,16 @@ const deserializeAws_json1_1BatchGetReportsCommandError = async (output, context
|
|
|
714
661
|
switch (errorCode) {
|
|
715
662
|
case "InvalidInputException":
|
|
716
663
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
717
|
-
|
|
718
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
719
|
-
name: errorCode,
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
664
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
723
665
|
default:
|
|
724
666
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
...parsedBody,
|
|
728
|
-
name: `${errorCode}`,
|
|
729
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
667
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
668
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
730
669
|
$fault: "client",
|
|
731
670
|
$metadata: deserializeMetadata(output),
|
|
732
|
-
};
|
|
671
|
+
});
|
|
672
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
733
673
|
}
|
|
734
|
-
const message = response.message || response.Message || errorCode;
|
|
735
|
-
response.message = message;
|
|
736
|
-
delete response.Message;
|
|
737
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
738
674
|
};
|
|
739
675
|
const deserializeAws_json1_1CreateProjectCommand = async (output, context) => {
|
|
740
676
|
if (output.statusCode >= 300) {
|
|
@@ -761,43 +697,22 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
761
697
|
switch (errorCode) {
|
|
762
698
|
case "AccountLimitExceededException":
|
|
763
699
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
700
|
+
throw await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
770
701
|
case "InvalidInputException":
|
|
771
702
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
772
|
-
|
|
773
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
774
|
-
name: errorCode,
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
};
|
|
777
|
-
break;
|
|
703
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
778
704
|
case "ResourceAlreadyExistsException":
|
|
779
705
|
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
780
|
-
|
|
781
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
782
|
-
name: errorCode,
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
};
|
|
785
|
-
break;
|
|
706
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
786
707
|
default:
|
|
787
708
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
...parsedBody,
|
|
791
|
-
name: `${errorCode}`,
|
|
792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
709
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
710
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
793
711
|
$fault: "client",
|
|
794
712
|
$metadata: deserializeMetadata(output),
|
|
795
|
-
};
|
|
713
|
+
});
|
|
714
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
796
715
|
}
|
|
797
|
-
const message = response.message || response.Message || errorCode;
|
|
798
|
-
response.message = message;
|
|
799
|
-
delete response.Message;
|
|
800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
801
716
|
};
|
|
802
717
|
const deserializeAws_json1_1CreateReportGroupCommand = async (output, context) => {
|
|
803
718
|
if (output.statusCode >= 300) {
|
|
@@ -824,43 +739,22 @@ const deserializeAws_json1_1CreateReportGroupCommandError = async (output, conte
|
|
|
824
739
|
switch (errorCode) {
|
|
825
740
|
case "AccountLimitExceededException":
|
|
826
741
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
827
|
-
|
|
828
|
-
...(await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context)),
|
|
829
|
-
name: errorCode,
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
832
|
-
break;
|
|
742
|
+
throw await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
833
743
|
case "InvalidInputException":
|
|
834
744
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
835
|
-
|
|
836
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
837
|
-
name: errorCode,
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
840
|
-
break;
|
|
745
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
841
746
|
case "ResourceAlreadyExistsException":
|
|
842
747
|
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
843
|
-
|
|
844
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
845
|
-
name: errorCode,
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
848
|
-
break;
|
|
748
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
849
749
|
default:
|
|
850
750
|
const parsedBody = parsedOutput.body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
...parsedBody,
|
|
854
|
-
name: `${errorCode}`,
|
|
855
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
751
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
752
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
856
753
|
$fault: "client",
|
|
857
754
|
$metadata: deserializeMetadata(output),
|
|
858
|
-
};
|
|
755
|
+
});
|
|
756
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
859
757
|
}
|
|
860
|
-
const message = response.message || response.Message || errorCode;
|
|
861
|
-
response.message = message;
|
|
862
|
-
delete response.Message;
|
|
863
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
864
758
|
};
|
|
865
759
|
const deserializeAws_json1_1CreateWebhookCommand = async (output, context) => {
|
|
866
760
|
if (output.statusCode >= 300) {
|
|
@@ -887,51 +781,25 @@ const deserializeAws_json1_1CreateWebhookCommandError = async (output, context)
|
|
|
887
781
|
switch (errorCode) {
|
|
888
782
|
case "InvalidInputException":
|
|
889
783
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
890
|
-
|
|
891
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
784
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
896
785
|
case "OAuthProviderException":
|
|
897
786
|
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
898
|
-
|
|
899
|
-
...(await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context)),
|
|
900
|
-
name: errorCode,
|
|
901
|
-
$metadata: deserializeMetadata(output),
|
|
902
|
-
};
|
|
903
|
-
break;
|
|
787
|
+
throw await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context);
|
|
904
788
|
case "ResourceAlreadyExistsException":
|
|
905
789
|
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
906
|
-
|
|
907
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
908
|
-
name: errorCode,
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
};
|
|
911
|
-
break;
|
|
790
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
912
791
|
case "ResourceNotFoundException":
|
|
913
792
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
914
|
-
|
|
915
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
916
|
-
name: errorCode,
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
};
|
|
919
|
-
break;
|
|
793
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
920
794
|
default:
|
|
921
795
|
const parsedBody = parsedOutput.body;
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
...parsedBody,
|
|
925
|
-
name: `${errorCode}`,
|
|
926
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
796
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
797
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
927
798
|
$fault: "client",
|
|
928
799
|
$metadata: deserializeMetadata(output),
|
|
929
|
-
};
|
|
800
|
+
});
|
|
801
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
930
802
|
}
|
|
931
|
-
const message = response.message || response.Message || errorCode;
|
|
932
|
-
response.message = message;
|
|
933
|
-
delete response.Message;
|
|
934
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
935
803
|
};
|
|
936
804
|
const deserializeAws_json1_1DeleteBuildBatchCommand = async (output, context) => {
|
|
937
805
|
if (output.statusCode >= 300) {
|
|
@@ -958,27 +826,16 @@ const deserializeAws_json1_1DeleteBuildBatchCommandError = async (output, contex
|
|
|
958
826
|
switch (errorCode) {
|
|
959
827
|
case "InvalidInputException":
|
|
960
828
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
961
|
-
|
|
962
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
963
|
-
name: errorCode,
|
|
964
|
-
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
966
|
-
break;
|
|
829
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
967
830
|
default:
|
|
968
831
|
const parsedBody = parsedOutput.body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
...parsedBody,
|
|
972
|
-
name: `${errorCode}`,
|
|
973
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
832
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
833
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
974
834
|
$fault: "client",
|
|
975
835
|
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
836
|
+
});
|
|
837
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
977
838
|
}
|
|
978
|
-
const message = response.message || response.Message || errorCode;
|
|
979
|
-
response.message = message;
|
|
980
|
-
delete response.Message;
|
|
981
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
982
839
|
};
|
|
983
840
|
const deserializeAws_json1_1DeleteProjectCommand = async (output, context) => {
|
|
984
841
|
if (output.statusCode >= 300) {
|
|
@@ -1005,27 +862,16 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
1005
862
|
switch (errorCode) {
|
|
1006
863
|
case "InvalidInputException":
|
|
1007
864
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1008
|
-
|
|
1009
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1010
|
-
name: errorCode,
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1012
|
-
};
|
|
1013
|
-
break;
|
|
865
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1014
866
|
default:
|
|
1015
867
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
...parsedBody,
|
|
1019
|
-
name: `${errorCode}`,
|
|
1020
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
868
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
870
|
$fault: "client",
|
|
1022
871
|
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
872
|
+
});
|
|
873
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1024
874
|
}
|
|
1025
|
-
const message = response.message || response.Message || errorCode;
|
|
1026
|
-
response.message = message;
|
|
1027
|
-
delete response.Message;
|
|
1028
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1029
875
|
};
|
|
1030
876
|
const deserializeAws_json1_1DeleteReportCommand = async (output, context) => {
|
|
1031
877
|
if (output.statusCode >= 300) {
|
|
@@ -1052,27 +898,16 @@ const deserializeAws_json1_1DeleteReportCommandError = async (output, context) =
|
|
|
1052
898
|
switch (errorCode) {
|
|
1053
899
|
case "InvalidInputException":
|
|
1054
900
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1055
|
-
|
|
1056
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1057
|
-
name: errorCode,
|
|
1058
|
-
$metadata: deserializeMetadata(output),
|
|
1059
|
-
};
|
|
1060
|
-
break;
|
|
901
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1061
902
|
default:
|
|
1062
903
|
const parsedBody = parsedOutput.body;
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
...parsedBody,
|
|
1066
|
-
name: `${errorCode}`,
|
|
1067
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
904
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
905
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1068
906
|
$fault: "client",
|
|
1069
907
|
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
908
|
+
});
|
|
909
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1071
910
|
}
|
|
1072
|
-
const message = response.message || response.Message || errorCode;
|
|
1073
|
-
response.message = message;
|
|
1074
|
-
delete response.Message;
|
|
1075
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1076
911
|
};
|
|
1077
912
|
const deserializeAws_json1_1DeleteReportGroupCommand = async (output, context) => {
|
|
1078
913
|
if (output.statusCode >= 300) {
|
|
@@ -1099,27 +934,16 @@ const deserializeAws_json1_1DeleteReportGroupCommandError = async (output, conte
|
|
|
1099
934
|
switch (errorCode) {
|
|
1100
935
|
case "InvalidInputException":
|
|
1101
936
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1102
|
-
|
|
1103
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1104
|
-
name: errorCode,
|
|
1105
|
-
$metadata: deserializeMetadata(output),
|
|
1106
|
-
};
|
|
1107
|
-
break;
|
|
937
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1108
938
|
default:
|
|
1109
939
|
const parsedBody = parsedOutput.body;
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
...parsedBody,
|
|
1113
|
-
name: `${errorCode}`,
|
|
1114
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
940
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
941
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1115
942
|
$fault: "client",
|
|
1116
943
|
$metadata: deserializeMetadata(output),
|
|
1117
|
-
};
|
|
944
|
+
});
|
|
945
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1118
946
|
}
|
|
1119
|
-
const message = response.message || response.Message || errorCode;
|
|
1120
|
-
response.message = message;
|
|
1121
|
-
delete response.Message;
|
|
1122
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1123
947
|
};
|
|
1124
948
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1125
949
|
if (output.statusCode >= 300) {
|
|
@@ -1146,27 +970,16 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1146
970
|
switch (errorCode) {
|
|
1147
971
|
case "InvalidInputException":
|
|
1148
972
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1155
974
|
default:
|
|
1156
975
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
...parsedBody,
|
|
1160
|
-
name: `${errorCode}`,
|
|
1161
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
976
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
977
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1162
978
|
$fault: "client",
|
|
1163
979
|
$metadata: deserializeMetadata(output),
|
|
1164
|
-
};
|
|
980
|
+
});
|
|
981
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1165
982
|
}
|
|
1166
|
-
const message = response.message || response.Message || errorCode;
|
|
1167
|
-
response.message = message;
|
|
1168
|
-
delete response.Message;
|
|
1169
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1170
983
|
};
|
|
1171
984
|
const deserializeAws_json1_1DeleteSourceCredentialsCommand = async (output, context) => {
|
|
1172
985
|
if (output.statusCode >= 300) {
|
|
@@ -1193,35 +1006,19 @@ const deserializeAws_json1_1DeleteSourceCredentialsCommandError = async (output,
|
|
|
1193
1006
|
switch (errorCode) {
|
|
1194
1007
|
case "InvalidInputException":
|
|
1195
1008
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1196
|
-
|
|
1197
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1198
|
-
name: errorCode,
|
|
1199
|
-
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1201
|
-
break;
|
|
1009
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1202
1010
|
case "ResourceNotFoundException":
|
|
1203
1011
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1204
|
-
|
|
1205
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1206
|
-
name: errorCode,
|
|
1207
|
-
$metadata: deserializeMetadata(output),
|
|
1208
|
-
};
|
|
1209
|
-
break;
|
|
1012
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1210
1013
|
default:
|
|
1211
1014
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
...parsedBody,
|
|
1215
|
-
name: `${errorCode}`,
|
|
1216
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1015
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1016
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1217
1017
|
$fault: "client",
|
|
1218
1018
|
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
1019
|
+
});
|
|
1020
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1220
1021
|
}
|
|
1221
|
-
const message = response.message || response.Message || errorCode;
|
|
1222
|
-
response.message = message;
|
|
1223
|
-
delete response.Message;
|
|
1224
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1225
1022
|
};
|
|
1226
1023
|
const deserializeAws_json1_1DeleteWebhookCommand = async (output, context) => {
|
|
1227
1024
|
if (output.statusCode >= 300) {
|
|
@@ -1248,43 +1045,22 @@ const deserializeAws_json1_1DeleteWebhookCommandError = async (output, context)
|
|
|
1248
1045
|
switch (errorCode) {
|
|
1249
1046
|
case "InvalidInputException":
|
|
1250
1047
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1251
|
-
|
|
1252
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1253
|
-
name: errorCode,
|
|
1254
|
-
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
1256
|
-
break;
|
|
1048
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1257
1049
|
case "OAuthProviderException":
|
|
1258
1050
|
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
1259
|
-
|
|
1260
|
-
...(await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context)),
|
|
1261
|
-
name: errorCode,
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
};
|
|
1264
|
-
break;
|
|
1051
|
+
throw await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context);
|
|
1265
1052
|
case "ResourceNotFoundException":
|
|
1266
1053
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1267
|
-
|
|
1268
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1269
|
-
name: errorCode,
|
|
1270
|
-
$metadata: deserializeMetadata(output),
|
|
1271
|
-
};
|
|
1272
|
-
break;
|
|
1054
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1273
1055
|
default:
|
|
1274
1056
|
const parsedBody = parsedOutput.body;
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
...parsedBody,
|
|
1278
|
-
name: `${errorCode}`,
|
|
1279
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1057
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1058
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1280
1059
|
$fault: "client",
|
|
1281
1060
|
$metadata: deserializeMetadata(output),
|
|
1282
|
-
};
|
|
1061
|
+
});
|
|
1062
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1283
1063
|
}
|
|
1284
|
-
const message = response.message || response.Message || errorCode;
|
|
1285
|
-
response.message = message;
|
|
1286
|
-
delete response.Message;
|
|
1287
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1288
1064
|
};
|
|
1289
1065
|
const deserializeAws_json1_1DescribeCodeCoveragesCommand = async (output, context) => {
|
|
1290
1066
|
if (output.statusCode >= 300) {
|
|
@@ -1311,27 +1087,16 @@ const deserializeAws_json1_1DescribeCodeCoveragesCommandError = async (output, c
|
|
|
1311
1087
|
switch (errorCode) {
|
|
1312
1088
|
case "InvalidInputException":
|
|
1313
1089
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1314
|
-
|
|
1315
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1316
|
-
name: errorCode,
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
};
|
|
1319
|
-
break;
|
|
1090
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1320
1091
|
default:
|
|
1321
1092
|
const parsedBody = parsedOutput.body;
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
...parsedBody,
|
|
1325
|
-
name: `${errorCode}`,
|
|
1326
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1093
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1327
1095
|
$fault: "client",
|
|
1328
1096
|
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1097
|
+
});
|
|
1098
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1330
1099
|
}
|
|
1331
|
-
const message = response.message || response.Message || errorCode;
|
|
1332
|
-
response.message = message;
|
|
1333
|
-
delete response.Message;
|
|
1334
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1335
1100
|
};
|
|
1336
1101
|
const deserializeAws_json1_1DescribeTestCasesCommand = async (output, context) => {
|
|
1337
1102
|
if (output.statusCode >= 300) {
|
|
@@ -1358,35 +1123,19 @@ const deserializeAws_json1_1DescribeTestCasesCommandError = async (output, conte
|
|
|
1358
1123
|
switch (errorCode) {
|
|
1359
1124
|
case "InvalidInputException":
|
|
1360
1125
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1126
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1367
1127
|
case "ResourceNotFoundException":
|
|
1368
1128
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1129
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1375
1130
|
default:
|
|
1376
1131
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
...parsedBody,
|
|
1380
|
-
name: `${errorCode}`,
|
|
1381
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1132
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1133
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1382
1134
|
$fault: "client",
|
|
1383
1135
|
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1136
|
+
});
|
|
1137
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1385
1138
|
}
|
|
1386
|
-
const message = response.message || response.Message || errorCode;
|
|
1387
|
-
response.message = message;
|
|
1388
|
-
delete response.Message;
|
|
1389
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1390
1139
|
};
|
|
1391
1140
|
const deserializeAws_json1_1GetReportGroupTrendCommand = async (output, context) => {
|
|
1392
1141
|
if (output.statusCode >= 300) {
|
|
@@ -1413,35 +1162,19 @@ const deserializeAws_json1_1GetReportGroupTrendCommandError = async (output, con
|
|
|
1413
1162
|
switch (errorCode) {
|
|
1414
1163
|
case "InvalidInputException":
|
|
1415
1164
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1416
|
-
|
|
1417
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1418
|
-
name: errorCode,
|
|
1419
|
-
$metadata: deserializeMetadata(output),
|
|
1420
|
-
};
|
|
1421
|
-
break;
|
|
1165
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1422
1166
|
case "ResourceNotFoundException":
|
|
1423
1167
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1424
|
-
|
|
1425
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1426
|
-
name: errorCode,
|
|
1427
|
-
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1429
|
-
break;
|
|
1168
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1430
1169
|
default:
|
|
1431
1170
|
const parsedBody = parsedOutput.body;
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
...parsedBody,
|
|
1435
|
-
name: `${errorCode}`,
|
|
1436
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1171
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1172
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1437
1173
|
$fault: "client",
|
|
1438
1174
|
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1175
|
+
});
|
|
1176
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1440
1177
|
}
|
|
1441
|
-
const message = response.message || response.Message || errorCode;
|
|
1442
|
-
response.message = message;
|
|
1443
|
-
delete response.Message;
|
|
1444
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1445
1178
|
};
|
|
1446
1179
|
const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
1447
1180
|
if (output.statusCode >= 300) {
|
|
@@ -1468,35 +1201,19 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1468
1201
|
switch (errorCode) {
|
|
1469
1202
|
case "InvalidInputException":
|
|
1470
1203
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1471
|
-
|
|
1472
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1473
|
-
name: errorCode,
|
|
1474
|
-
$metadata: deserializeMetadata(output),
|
|
1475
|
-
};
|
|
1476
|
-
break;
|
|
1204
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1477
1205
|
case "ResourceNotFoundException":
|
|
1478
1206
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1479
|
-
|
|
1480
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1481
|
-
name: errorCode,
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
};
|
|
1484
|
-
break;
|
|
1207
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1485
1208
|
default:
|
|
1486
1209
|
const parsedBody = parsedOutput.body;
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
...parsedBody,
|
|
1490
|
-
name: `${errorCode}`,
|
|
1491
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1210
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1211
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1492
1212
|
$fault: "client",
|
|
1493
1213
|
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1214
|
+
});
|
|
1215
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1495
1216
|
}
|
|
1496
|
-
const message = response.message || response.Message || errorCode;
|
|
1497
|
-
response.message = message;
|
|
1498
|
-
delete response.Message;
|
|
1499
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1500
1217
|
};
|
|
1501
1218
|
const deserializeAws_json1_1ImportSourceCredentialsCommand = async (output, context) => {
|
|
1502
1219
|
if (output.statusCode >= 300) {
|
|
@@ -1523,43 +1240,22 @@ const deserializeAws_json1_1ImportSourceCredentialsCommandError = async (output,
|
|
|
1523
1240
|
switch (errorCode) {
|
|
1524
1241
|
case "AccountLimitExceededException":
|
|
1525
1242
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
1526
|
-
|
|
1527
|
-
...(await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1528
|
-
name: errorCode,
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
1243
|
+
throw await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
1532
1244
|
case "InvalidInputException":
|
|
1533
1245
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1534
|
-
|
|
1535
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1536
|
-
name: errorCode,
|
|
1537
|
-
$metadata: deserializeMetadata(output),
|
|
1538
|
-
};
|
|
1539
|
-
break;
|
|
1246
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1540
1247
|
case "ResourceAlreadyExistsException":
|
|
1541
1248
|
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
1542
|
-
|
|
1543
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1544
|
-
name: errorCode,
|
|
1545
|
-
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1547
|
-
break;
|
|
1249
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1548
1250
|
default:
|
|
1549
1251
|
const parsedBody = parsedOutput.body;
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
...parsedBody,
|
|
1553
|
-
name: `${errorCode}`,
|
|
1554
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1252
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1253
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1555
1254
|
$fault: "client",
|
|
1556
1255
|
$metadata: deserializeMetadata(output),
|
|
1557
|
-
};
|
|
1256
|
+
});
|
|
1257
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1558
1258
|
}
|
|
1559
|
-
const message = response.message || response.Message || errorCode;
|
|
1560
|
-
response.message = message;
|
|
1561
|
-
delete response.Message;
|
|
1562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1563
1259
|
};
|
|
1564
1260
|
const deserializeAws_json1_1InvalidateProjectCacheCommand = async (output, context) => {
|
|
1565
1261
|
if (output.statusCode >= 300) {
|
|
@@ -1586,35 +1282,19 @@ const deserializeAws_json1_1InvalidateProjectCacheCommandError = async (output,
|
|
|
1586
1282
|
switch (errorCode) {
|
|
1587
1283
|
case "InvalidInputException":
|
|
1588
1284
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1589
|
-
|
|
1590
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1591
|
-
name: errorCode,
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
};
|
|
1594
|
-
break;
|
|
1285
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1595
1286
|
case "ResourceNotFoundException":
|
|
1596
1287
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1597
|
-
|
|
1598
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1599
|
-
name: errorCode,
|
|
1600
|
-
$metadata: deserializeMetadata(output),
|
|
1601
|
-
};
|
|
1602
|
-
break;
|
|
1288
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1603
1289
|
default:
|
|
1604
1290
|
const parsedBody = parsedOutput.body;
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
...parsedBody,
|
|
1608
|
-
name: `${errorCode}`,
|
|
1609
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1291
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1292
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1610
1293
|
$fault: "client",
|
|
1611
1294
|
$metadata: deserializeMetadata(output),
|
|
1612
|
-
};
|
|
1295
|
+
});
|
|
1296
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1613
1297
|
}
|
|
1614
|
-
const message = response.message || response.Message || errorCode;
|
|
1615
|
-
response.message = message;
|
|
1616
|
-
delete response.Message;
|
|
1617
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1618
1298
|
};
|
|
1619
1299
|
const deserializeAws_json1_1ListBuildBatchesCommand = async (output, context) => {
|
|
1620
1300
|
if (output.statusCode >= 300) {
|
|
@@ -1641,27 +1321,16 @@ const deserializeAws_json1_1ListBuildBatchesCommandError = async (output, contex
|
|
|
1641
1321
|
switch (errorCode) {
|
|
1642
1322
|
case "InvalidInputException":
|
|
1643
1323
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1644
|
-
|
|
1645
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1646
|
-
name: errorCode,
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
};
|
|
1649
|
-
break;
|
|
1324
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1650
1325
|
default:
|
|
1651
1326
|
const parsedBody = parsedOutput.body;
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
...parsedBody,
|
|
1655
|
-
name: `${errorCode}`,
|
|
1656
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1327
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1328
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1657
1329
|
$fault: "client",
|
|
1658
1330
|
$metadata: deserializeMetadata(output),
|
|
1659
|
-
};
|
|
1331
|
+
});
|
|
1332
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1660
1333
|
}
|
|
1661
|
-
const message = response.message || response.Message || errorCode;
|
|
1662
|
-
response.message = message;
|
|
1663
|
-
delete response.Message;
|
|
1664
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1665
1334
|
};
|
|
1666
1335
|
const deserializeAws_json1_1ListBuildBatchesForProjectCommand = async (output, context) => {
|
|
1667
1336
|
if (output.statusCode >= 300) {
|
|
@@ -1688,35 +1357,19 @@ const deserializeAws_json1_1ListBuildBatchesForProjectCommandError = async (outp
|
|
|
1688
1357
|
switch (errorCode) {
|
|
1689
1358
|
case "InvalidInputException":
|
|
1690
1359
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1691
|
-
|
|
1692
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1693
|
-
name: errorCode,
|
|
1694
|
-
$metadata: deserializeMetadata(output),
|
|
1695
|
-
};
|
|
1696
|
-
break;
|
|
1360
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1697
1361
|
case "ResourceNotFoundException":
|
|
1698
1362
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1699
|
-
|
|
1700
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1701
|
-
name: errorCode,
|
|
1702
|
-
$metadata: deserializeMetadata(output),
|
|
1703
|
-
};
|
|
1704
|
-
break;
|
|
1363
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1705
1364
|
default:
|
|
1706
1365
|
const parsedBody = parsedOutput.body;
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
...parsedBody,
|
|
1710
|
-
name: `${errorCode}`,
|
|
1711
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1366
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1367
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1712
1368
|
$fault: "client",
|
|
1713
1369
|
$metadata: deserializeMetadata(output),
|
|
1714
|
-
};
|
|
1370
|
+
});
|
|
1371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1715
1372
|
}
|
|
1716
|
-
const message = response.message || response.Message || errorCode;
|
|
1717
|
-
response.message = message;
|
|
1718
|
-
delete response.Message;
|
|
1719
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1720
1373
|
};
|
|
1721
1374
|
const deserializeAws_json1_1ListBuildsCommand = async (output, context) => {
|
|
1722
1375
|
if (output.statusCode >= 300) {
|
|
@@ -1743,27 +1396,16 @@ const deserializeAws_json1_1ListBuildsCommandError = async (output, context) =>
|
|
|
1743
1396
|
switch (errorCode) {
|
|
1744
1397
|
case "InvalidInputException":
|
|
1745
1398
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1746
|
-
|
|
1747
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1748
|
-
name: errorCode,
|
|
1749
|
-
$metadata: deserializeMetadata(output),
|
|
1750
|
-
};
|
|
1751
|
-
break;
|
|
1399
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1752
1400
|
default:
|
|
1753
1401
|
const parsedBody = parsedOutput.body;
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
...parsedBody,
|
|
1757
|
-
name: `${errorCode}`,
|
|
1758
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1402
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1403
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1759
1404
|
$fault: "client",
|
|
1760
1405
|
$metadata: deserializeMetadata(output),
|
|
1761
|
-
};
|
|
1406
|
+
});
|
|
1407
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1762
1408
|
}
|
|
1763
|
-
const message = response.message || response.Message || errorCode;
|
|
1764
|
-
response.message = message;
|
|
1765
|
-
delete response.Message;
|
|
1766
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1767
1409
|
};
|
|
1768
1410
|
const deserializeAws_json1_1ListBuildsForProjectCommand = async (output, context) => {
|
|
1769
1411
|
if (output.statusCode >= 300) {
|
|
@@ -1790,35 +1432,19 @@ const deserializeAws_json1_1ListBuildsForProjectCommandError = async (output, co
|
|
|
1790
1432
|
switch (errorCode) {
|
|
1791
1433
|
case "InvalidInputException":
|
|
1792
1434
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1793
|
-
|
|
1794
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1795
|
-
name: errorCode,
|
|
1796
|
-
$metadata: deserializeMetadata(output),
|
|
1797
|
-
};
|
|
1798
|
-
break;
|
|
1435
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1799
1436
|
case "ResourceNotFoundException":
|
|
1800
1437
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1801
|
-
|
|
1802
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1803
|
-
name: errorCode,
|
|
1804
|
-
$metadata: deserializeMetadata(output),
|
|
1805
|
-
};
|
|
1806
|
-
break;
|
|
1438
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1807
1439
|
default:
|
|
1808
1440
|
const parsedBody = parsedOutput.body;
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
...parsedBody,
|
|
1812
|
-
name: `${errorCode}`,
|
|
1813
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1441
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1442
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1814
1443
|
$fault: "client",
|
|
1815
1444
|
$metadata: deserializeMetadata(output),
|
|
1816
|
-
};
|
|
1445
|
+
});
|
|
1446
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1817
1447
|
}
|
|
1818
|
-
const message = response.message || response.Message || errorCode;
|
|
1819
|
-
response.message = message;
|
|
1820
|
-
delete response.Message;
|
|
1821
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1822
1448
|
};
|
|
1823
1449
|
const deserializeAws_json1_1ListCuratedEnvironmentImagesCommand = async (output, context) => {
|
|
1824
1450
|
if (output.statusCode >= 300) {
|
|
@@ -1845,19 +1471,13 @@ const deserializeAws_json1_1ListCuratedEnvironmentImagesCommandError = async (ou
|
|
|
1845
1471
|
switch (errorCode) {
|
|
1846
1472
|
default:
|
|
1847
1473
|
const parsedBody = parsedOutput.body;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
...parsedBody,
|
|
1851
|
-
name: `${errorCode}`,
|
|
1852
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1474
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1475
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1853
1476
|
$fault: "client",
|
|
1854
1477
|
$metadata: deserializeMetadata(output),
|
|
1855
|
-
};
|
|
1478
|
+
});
|
|
1479
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1856
1480
|
}
|
|
1857
|
-
const message = response.message || response.Message || errorCode;
|
|
1858
|
-
response.message = message;
|
|
1859
|
-
delete response.Message;
|
|
1860
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1861
1481
|
};
|
|
1862
1482
|
const deserializeAws_json1_1ListProjectsCommand = async (output, context) => {
|
|
1863
1483
|
if (output.statusCode >= 300) {
|
|
@@ -1884,27 +1504,16 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
|
|
|
1884
1504
|
switch (errorCode) {
|
|
1885
1505
|
case "InvalidInputException":
|
|
1886
1506
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1887
|
-
|
|
1888
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1889
|
-
name: errorCode,
|
|
1890
|
-
$metadata: deserializeMetadata(output),
|
|
1891
|
-
};
|
|
1892
|
-
break;
|
|
1507
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1893
1508
|
default:
|
|
1894
1509
|
const parsedBody = parsedOutput.body;
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
...parsedBody,
|
|
1898
|
-
name: `${errorCode}`,
|
|
1899
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1510
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1900
1512
|
$fault: "client",
|
|
1901
1513
|
$metadata: deserializeMetadata(output),
|
|
1902
|
-
};
|
|
1514
|
+
});
|
|
1515
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1903
1516
|
}
|
|
1904
|
-
const message = response.message || response.Message || errorCode;
|
|
1905
|
-
response.message = message;
|
|
1906
|
-
delete response.Message;
|
|
1907
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1908
1517
|
};
|
|
1909
1518
|
const deserializeAws_json1_1ListReportGroupsCommand = async (output, context) => {
|
|
1910
1519
|
if (output.statusCode >= 300) {
|
|
@@ -1931,27 +1540,16 @@ const deserializeAws_json1_1ListReportGroupsCommandError = async (output, contex
|
|
|
1931
1540
|
switch (errorCode) {
|
|
1932
1541
|
case "InvalidInputException":
|
|
1933
1542
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1934
|
-
|
|
1935
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1936
|
-
name: errorCode,
|
|
1937
|
-
$metadata: deserializeMetadata(output),
|
|
1938
|
-
};
|
|
1939
|
-
break;
|
|
1543
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1940
1544
|
default:
|
|
1941
1545
|
const parsedBody = parsedOutput.body;
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
...parsedBody,
|
|
1945
|
-
name: `${errorCode}`,
|
|
1946
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1546
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1547
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1947
1548
|
$fault: "client",
|
|
1948
1549
|
$metadata: deserializeMetadata(output),
|
|
1949
|
-
};
|
|
1550
|
+
});
|
|
1551
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1950
1552
|
}
|
|
1951
|
-
const message = response.message || response.Message || errorCode;
|
|
1952
|
-
response.message = message;
|
|
1953
|
-
delete response.Message;
|
|
1954
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1955
1553
|
};
|
|
1956
1554
|
const deserializeAws_json1_1ListReportsCommand = async (output, context) => {
|
|
1957
1555
|
if (output.statusCode >= 300) {
|
|
@@ -1978,27 +1576,16 @@ const deserializeAws_json1_1ListReportsCommandError = async (output, context) =>
|
|
|
1978
1576
|
switch (errorCode) {
|
|
1979
1577
|
case "InvalidInputException":
|
|
1980
1578
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1981
|
-
|
|
1982
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1983
|
-
name: errorCode,
|
|
1984
|
-
$metadata: deserializeMetadata(output),
|
|
1985
|
-
};
|
|
1986
|
-
break;
|
|
1579
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1987
1580
|
default:
|
|
1988
1581
|
const parsedBody = parsedOutput.body;
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
...parsedBody,
|
|
1992
|
-
name: `${errorCode}`,
|
|
1993
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1582
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1583
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1994
1584
|
$fault: "client",
|
|
1995
1585
|
$metadata: deserializeMetadata(output),
|
|
1996
|
-
};
|
|
1586
|
+
});
|
|
1587
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1997
1588
|
}
|
|
1998
|
-
const message = response.message || response.Message || errorCode;
|
|
1999
|
-
response.message = message;
|
|
2000
|
-
delete response.Message;
|
|
2001
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2002
1589
|
};
|
|
2003
1590
|
const deserializeAws_json1_1ListReportsForReportGroupCommand = async (output, context) => {
|
|
2004
1591
|
if (output.statusCode >= 300) {
|
|
@@ -2025,35 +1612,19 @@ const deserializeAws_json1_1ListReportsForReportGroupCommandError = async (outpu
|
|
|
2025
1612
|
switch (errorCode) {
|
|
2026
1613
|
case "InvalidInputException":
|
|
2027
1614
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2028
|
-
|
|
2029
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2030
|
-
name: errorCode,
|
|
2031
|
-
$metadata: deserializeMetadata(output),
|
|
2032
|
-
};
|
|
2033
|
-
break;
|
|
1615
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2034
1616
|
case "ResourceNotFoundException":
|
|
2035
1617
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2036
|
-
|
|
2037
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2038
|
-
name: errorCode,
|
|
2039
|
-
$metadata: deserializeMetadata(output),
|
|
2040
|
-
};
|
|
2041
|
-
break;
|
|
1618
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2042
1619
|
default:
|
|
2043
1620
|
const parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
...parsedBody,
|
|
2047
|
-
name: `${errorCode}`,
|
|
2048
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1621
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1622
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2049
1623
|
$fault: "client",
|
|
2050
1624
|
$metadata: deserializeMetadata(output),
|
|
2051
|
-
};
|
|
1625
|
+
});
|
|
1626
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2052
1627
|
}
|
|
2053
|
-
const message = response.message || response.Message || errorCode;
|
|
2054
|
-
response.message = message;
|
|
2055
|
-
delete response.Message;
|
|
2056
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2057
1628
|
};
|
|
2058
1629
|
const deserializeAws_json1_1ListSharedProjectsCommand = async (output, context) => {
|
|
2059
1630
|
if (output.statusCode >= 300) {
|
|
@@ -2080,27 +1651,16 @@ const deserializeAws_json1_1ListSharedProjectsCommandError = async (output, cont
|
|
|
2080
1651
|
switch (errorCode) {
|
|
2081
1652
|
case "InvalidInputException":
|
|
2082
1653
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2083
|
-
|
|
2084
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2085
|
-
name: errorCode,
|
|
2086
|
-
$metadata: deserializeMetadata(output),
|
|
2087
|
-
};
|
|
2088
|
-
break;
|
|
1654
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2089
1655
|
default:
|
|
2090
1656
|
const parsedBody = parsedOutput.body;
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
...parsedBody,
|
|
2094
|
-
name: `${errorCode}`,
|
|
2095
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1657
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1658
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2096
1659
|
$fault: "client",
|
|
2097
1660
|
$metadata: deserializeMetadata(output),
|
|
2098
|
-
};
|
|
1661
|
+
});
|
|
1662
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2099
1663
|
}
|
|
2100
|
-
const message = response.message || response.Message || errorCode;
|
|
2101
|
-
response.message = message;
|
|
2102
|
-
delete response.Message;
|
|
2103
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2104
1664
|
};
|
|
2105
1665
|
const deserializeAws_json1_1ListSharedReportGroupsCommand = async (output, context) => {
|
|
2106
1666
|
if (output.statusCode >= 300) {
|
|
@@ -2127,27 +1687,16 @@ const deserializeAws_json1_1ListSharedReportGroupsCommandError = async (output,
|
|
|
2127
1687
|
switch (errorCode) {
|
|
2128
1688
|
case "InvalidInputException":
|
|
2129
1689
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2130
|
-
|
|
2131
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2132
|
-
name: errorCode,
|
|
2133
|
-
$metadata: deserializeMetadata(output),
|
|
2134
|
-
};
|
|
2135
|
-
break;
|
|
1690
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2136
1691
|
default:
|
|
2137
1692
|
const parsedBody = parsedOutput.body;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
...parsedBody,
|
|
2141
|
-
name: `${errorCode}`,
|
|
2142
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1693
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2143
1695
|
$fault: "client",
|
|
2144
1696
|
$metadata: deserializeMetadata(output),
|
|
2145
|
-
};
|
|
1697
|
+
});
|
|
1698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2146
1699
|
}
|
|
2147
|
-
const message = response.message || response.Message || errorCode;
|
|
2148
|
-
response.message = message;
|
|
2149
|
-
delete response.Message;
|
|
2150
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2151
1700
|
};
|
|
2152
1701
|
const deserializeAws_json1_1ListSourceCredentialsCommand = async (output, context) => {
|
|
2153
1702
|
if (output.statusCode >= 300) {
|
|
@@ -2174,27 +1723,16 @@ const deserializeAws_json1_1ListSourceCredentialsCommandError = async (output, c
|
|
|
2174
1723
|
switch (errorCode) {
|
|
2175
1724
|
case "InvalidInputException":
|
|
2176
1725
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2177
|
-
|
|
2178
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2179
|
-
name: errorCode,
|
|
2180
|
-
$metadata: deserializeMetadata(output),
|
|
2181
|
-
};
|
|
2182
|
-
break;
|
|
1726
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2183
1727
|
default:
|
|
2184
1728
|
const parsedBody = parsedOutput.body;
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
...parsedBody,
|
|
2188
|
-
name: `${errorCode}`,
|
|
2189
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1729
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2190
1731
|
$fault: "client",
|
|
2191
1732
|
$metadata: deserializeMetadata(output),
|
|
2192
|
-
};
|
|
1733
|
+
});
|
|
1734
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2193
1735
|
}
|
|
2194
|
-
const message = response.message || response.Message || errorCode;
|
|
2195
|
-
response.message = message;
|
|
2196
|
-
delete response.Message;
|
|
2197
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2198
1736
|
};
|
|
2199
1737
|
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
2200
1738
|
if (output.statusCode >= 300) {
|
|
@@ -2221,35 +1759,19 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
2221
1759
|
switch (errorCode) {
|
|
2222
1760
|
case "InvalidInputException":
|
|
2223
1761
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2224
|
-
|
|
2225
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2226
|
-
name: errorCode,
|
|
2227
|
-
$metadata: deserializeMetadata(output),
|
|
2228
|
-
};
|
|
2229
|
-
break;
|
|
1762
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2230
1763
|
case "ResourceNotFoundException":
|
|
2231
1764
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2232
|
-
|
|
2233
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2234
|
-
name: errorCode,
|
|
2235
|
-
$metadata: deserializeMetadata(output),
|
|
2236
|
-
};
|
|
2237
|
-
break;
|
|
1765
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2238
1766
|
default:
|
|
2239
1767
|
const parsedBody = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
...parsedBody,
|
|
2243
|
-
name: `${errorCode}`,
|
|
2244
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1768
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2245
1770
|
$fault: "client",
|
|
2246
1771
|
$metadata: deserializeMetadata(output),
|
|
2247
|
-
};
|
|
1772
|
+
});
|
|
1773
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2248
1774
|
}
|
|
2249
|
-
const message = response.message || response.Message || errorCode;
|
|
2250
|
-
response.message = message;
|
|
2251
|
-
delete response.Message;
|
|
2252
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2253
1775
|
};
|
|
2254
1776
|
const deserializeAws_json1_1RetryBuildCommand = async (output, context) => {
|
|
2255
1777
|
if (output.statusCode >= 300) {
|
|
@@ -2276,43 +1798,22 @@ const deserializeAws_json1_1RetryBuildCommandError = async (output, context) =>
|
|
|
2276
1798
|
switch (errorCode) {
|
|
2277
1799
|
case "AccountLimitExceededException":
|
|
2278
1800
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
2279
|
-
|
|
2280
|
-
...(await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2281
|
-
name: errorCode,
|
|
2282
|
-
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
2284
|
-
break;
|
|
1801
|
+
throw await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
2285
1802
|
case "InvalidInputException":
|
|
2286
1803
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2287
|
-
|
|
2288
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2289
|
-
name: errorCode,
|
|
2290
|
-
$metadata: deserializeMetadata(output),
|
|
2291
|
-
};
|
|
2292
|
-
break;
|
|
1804
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2293
1805
|
case "ResourceNotFoundException":
|
|
2294
1806
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2295
|
-
|
|
2296
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2297
|
-
name: errorCode,
|
|
2298
|
-
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
2300
|
-
break;
|
|
1807
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2301
1808
|
default:
|
|
2302
1809
|
const parsedBody = parsedOutput.body;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
...parsedBody,
|
|
2306
|
-
name: `${errorCode}`,
|
|
2307
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1810
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2308
1812
|
$fault: "client",
|
|
2309
1813
|
$metadata: deserializeMetadata(output),
|
|
2310
|
-
};
|
|
1814
|
+
});
|
|
1815
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2311
1816
|
}
|
|
2312
|
-
const message = response.message || response.Message || errorCode;
|
|
2313
|
-
response.message = message;
|
|
2314
|
-
delete response.Message;
|
|
2315
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2316
1817
|
};
|
|
2317
1818
|
const deserializeAws_json1_1RetryBuildBatchCommand = async (output, context) => {
|
|
2318
1819
|
if (output.statusCode >= 300) {
|
|
@@ -2339,35 +1840,19 @@ const deserializeAws_json1_1RetryBuildBatchCommandError = async (output, context
|
|
|
2339
1840
|
switch (errorCode) {
|
|
2340
1841
|
case "InvalidInputException":
|
|
2341
1842
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2342
|
-
|
|
2343
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2344
|
-
name: errorCode,
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
};
|
|
2347
|
-
break;
|
|
1843
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2348
1844
|
case "ResourceNotFoundException":
|
|
2349
1845
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2350
|
-
|
|
2351
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2352
|
-
name: errorCode,
|
|
2353
|
-
$metadata: deserializeMetadata(output),
|
|
2354
|
-
};
|
|
2355
|
-
break;
|
|
1846
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2356
1847
|
default:
|
|
2357
1848
|
const parsedBody = parsedOutput.body;
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
...parsedBody,
|
|
2361
|
-
name: `${errorCode}`,
|
|
2362
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1849
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1850
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2363
1851
|
$fault: "client",
|
|
2364
1852
|
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
1853
|
+
});
|
|
1854
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2366
1855
|
}
|
|
2367
|
-
const message = response.message || response.Message || errorCode;
|
|
2368
|
-
response.message = message;
|
|
2369
|
-
delete response.Message;
|
|
2370
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2371
1856
|
};
|
|
2372
1857
|
const deserializeAws_json1_1StartBuildCommand = async (output, context) => {
|
|
2373
1858
|
if (output.statusCode >= 300) {
|
|
@@ -2394,43 +1879,22 @@ const deserializeAws_json1_1StartBuildCommandError = async (output, context) =>
|
|
|
2394
1879
|
switch (errorCode) {
|
|
2395
1880
|
case "AccountLimitExceededException":
|
|
2396
1881
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
2397
|
-
|
|
2398
|
-
...(await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2399
|
-
name: errorCode,
|
|
2400
|
-
$metadata: deserializeMetadata(output),
|
|
2401
|
-
};
|
|
2402
|
-
break;
|
|
1882
|
+
throw await deserializeAws_json1_1AccountLimitExceededExceptionResponse(parsedOutput, context);
|
|
2403
1883
|
case "InvalidInputException":
|
|
2404
1884
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2405
|
-
|
|
2406
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2407
|
-
name: errorCode,
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
};
|
|
2410
|
-
break;
|
|
1885
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2411
1886
|
case "ResourceNotFoundException":
|
|
2412
1887
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2413
|
-
|
|
2414
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2415
|
-
name: errorCode,
|
|
2416
|
-
$metadata: deserializeMetadata(output),
|
|
2417
|
-
};
|
|
2418
|
-
break;
|
|
1888
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2419
1889
|
default:
|
|
2420
1890
|
const parsedBody = parsedOutput.body;
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
...parsedBody,
|
|
2424
|
-
name: `${errorCode}`,
|
|
2425
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1891
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1892
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2426
1893
|
$fault: "client",
|
|
2427
1894
|
$metadata: deserializeMetadata(output),
|
|
2428
|
-
};
|
|
1895
|
+
});
|
|
1896
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2429
1897
|
}
|
|
2430
|
-
const message = response.message || response.Message || errorCode;
|
|
2431
|
-
response.message = message;
|
|
2432
|
-
delete response.Message;
|
|
2433
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2434
1898
|
};
|
|
2435
1899
|
const deserializeAws_json1_1StartBuildBatchCommand = async (output, context) => {
|
|
2436
1900
|
if (output.statusCode >= 300) {
|
|
@@ -2457,35 +1921,19 @@ const deserializeAws_json1_1StartBuildBatchCommandError = async (output, context
|
|
|
2457
1921
|
switch (errorCode) {
|
|
2458
1922
|
case "InvalidInputException":
|
|
2459
1923
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2460
|
-
|
|
2461
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2462
|
-
name: errorCode,
|
|
2463
|
-
$metadata: deserializeMetadata(output),
|
|
2464
|
-
};
|
|
2465
|
-
break;
|
|
1924
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2466
1925
|
case "ResourceNotFoundException":
|
|
2467
1926
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2468
|
-
|
|
2469
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2470
|
-
name: errorCode,
|
|
2471
|
-
$metadata: deserializeMetadata(output),
|
|
2472
|
-
};
|
|
2473
|
-
break;
|
|
1927
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2474
1928
|
default:
|
|
2475
1929
|
const parsedBody = parsedOutput.body;
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
...parsedBody,
|
|
2479
|
-
name: `${errorCode}`,
|
|
2480
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1930
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2481
1932
|
$fault: "client",
|
|
2482
1933
|
$metadata: deserializeMetadata(output),
|
|
2483
|
-
};
|
|
1934
|
+
});
|
|
1935
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2484
1936
|
}
|
|
2485
|
-
const message = response.message || response.Message || errorCode;
|
|
2486
|
-
response.message = message;
|
|
2487
|
-
delete response.Message;
|
|
2488
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2489
1937
|
};
|
|
2490
1938
|
const deserializeAws_json1_1StopBuildCommand = async (output, context) => {
|
|
2491
1939
|
if (output.statusCode >= 300) {
|
|
@@ -2512,35 +1960,19 @@ const deserializeAws_json1_1StopBuildCommandError = async (output, context) => {
|
|
|
2512
1960
|
switch (errorCode) {
|
|
2513
1961
|
case "InvalidInputException":
|
|
2514
1962
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2515
|
-
|
|
2516
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2517
|
-
name: errorCode,
|
|
2518
|
-
$metadata: deserializeMetadata(output),
|
|
2519
|
-
};
|
|
2520
|
-
break;
|
|
1963
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2521
1964
|
case "ResourceNotFoundException":
|
|
2522
1965
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2523
|
-
|
|
2524
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2525
|
-
name: errorCode,
|
|
2526
|
-
$metadata: deserializeMetadata(output),
|
|
2527
|
-
};
|
|
2528
|
-
break;
|
|
1966
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2529
1967
|
default:
|
|
2530
1968
|
const parsedBody = parsedOutput.body;
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
...parsedBody,
|
|
2534
|
-
name: `${errorCode}`,
|
|
2535
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1969
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2536
1971
|
$fault: "client",
|
|
2537
1972
|
$metadata: deserializeMetadata(output),
|
|
2538
|
-
};
|
|
1973
|
+
});
|
|
1974
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2539
1975
|
}
|
|
2540
|
-
const message = response.message || response.Message || errorCode;
|
|
2541
|
-
response.message = message;
|
|
2542
|
-
delete response.Message;
|
|
2543
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2544
1976
|
};
|
|
2545
1977
|
const deserializeAws_json1_1StopBuildBatchCommand = async (output, context) => {
|
|
2546
1978
|
if (output.statusCode >= 300) {
|
|
@@ -2567,35 +1999,19 @@ const deserializeAws_json1_1StopBuildBatchCommandError = async (output, context)
|
|
|
2567
1999
|
switch (errorCode) {
|
|
2568
2000
|
case "InvalidInputException":
|
|
2569
2001
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2570
|
-
|
|
2571
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2572
|
-
name: errorCode,
|
|
2573
|
-
$metadata: deserializeMetadata(output),
|
|
2574
|
-
};
|
|
2575
|
-
break;
|
|
2002
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2576
2003
|
case "ResourceNotFoundException":
|
|
2577
2004
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2578
|
-
|
|
2579
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2580
|
-
name: errorCode,
|
|
2581
|
-
$metadata: deserializeMetadata(output),
|
|
2582
|
-
};
|
|
2583
|
-
break;
|
|
2005
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2584
2006
|
default:
|
|
2585
2007
|
const parsedBody = parsedOutput.body;
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
...parsedBody,
|
|
2589
|
-
name: `${errorCode}`,
|
|
2590
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2008
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2009
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2591
2010
|
$fault: "client",
|
|
2592
2011
|
$metadata: deserializeMetadata(output),
|
|
2593
|
-
};
|
|
2012
|
+
});
|
|
2013
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2594
2014
|
}
|
|
2595
|
-
const message = response.message || response.Message || errorCode;
|
|
2596
|
-
response.message = message;
|
|
2597
|
-
delete response.Message;
|
|
2598
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2599
2015
|
};
|
|
2600
2016
|
const deserializeAws_json1_1UpdateProjectCommand = async (output, context) => {
|
|
2601
2017
|
if (output.statusCode >= 300) {
|
|
@@ -2622,35 +2038,19 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
|
|
|
2622
2038
|
switch (errorCode) {
|
|
2623
2039
|
case "InvalidInputException":
|
|
2624
2040
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2625
|
-
|
|
2626
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2627
|
-
name: errorCode,
|
|
2628
|
-
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
2630
|
-
break;
|
|
2041
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2631
2042
|
case "ResourceNotFoundException":
|
|
2632
2043
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2633
|
-
|
|
2634
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2635
|
-
name: errorCode,
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
};
|
|
2638
|
-
break;
|
|
2044
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2639
2045
|
default:
|
|
2640
2046
|
const parsedBody = parsedOutput.body;
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
...parsedBody,
|
|
2644
|
-
name: `${errorCode}`,
|
|
2645
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2047
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2048
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2646
2049
|
$fault: "client",
|
|
2647
2050
|
$metadata: deserializeMetadata(output),
|
|
2648
|
-
};
|
|
2051
|
+
});
|
|
2052
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2649
2053
|
}
|
|
2650
|
-
const message = response.message || response.Message || errorCode;
|
|
2651
|
-
response.message = message;
|
|
2652
|
-
delete response.Message;
|
|
2653
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2654
2054
|
};
|
|
2655
2055
|
const deserializeAws_json1_1UpdateProjectVisibilityCommand = async (output, context) => {
|
|
2656
2056
|
if (output.statusCode >= 300) {
|
|
@@ -2677,35 +2077,19 @@ const deserializeAws_json1_1UpdateProjectVisibilityCommandError = async (output,
|
|
|
2677
2077
|
switch (errorCode) {
|
|
2678
2078
|
case "InvalidInputException":
|
|
2679
2079
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2680
|
-
|
|
2681
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2682
|
-
name: errorCode,
|
|
2683
|
-
$metadata: deserializeMetadata(output),
|
|
2684
|
-
};
|
|
2685
|
-
break;
|
|
2080
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2686
2081
|
case "ResourceNotFoundException":
|
|
2687
2082
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2688
|
-
|
|
2689
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2690
|
-
name: errorCode,
|
|
2691
|
-
$metadata: deserializeMetadata(output),
|
|
2692
|
-
};
|
|
2693
|
-
break;
|
|
2083
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2694
2084
|
default:
|
|
2695
2085
|
const parsedBody = parsedOutput.body;
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
...parsedBody,
|
|
2699
|
-
name: `${errorCode}`,
|
|
2700
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2086
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2701
2088
|
$fault: "client",
|
|
2702
2089
|
$metadata: deserializeMetadata(output),
|
|
2703
|
-
};
|
|
2090
|
+
});
|
|
2091
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2704
2092
|
}
|
|
2705
|
-
const message = response.message || response.Message || errorCode;
|
|
2706
|
-
response.message = message;
|
|
2707
|
-
delete response.Message;
|
|
2708
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2709
2093
|
};
|
|
2710
2094
|
const deserializeAws_json1_1UpdateReportGroupCommand = async (output, context) => {
|
|
2711
2095
|
if (output.statusCode >= 300) {
|
|
@@ -2732,35 +2116,19 @@ const deserializeAws_json1_1UpdateReportGroupCommandError = async (output, conte
|
|
|
2732
2116
|
switch (errorCode) {
|
|
2733
2117
|
case "InvalidInputException":
|
|
2734
2118
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2735
|
-
|
|
2736
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2737
|
-
name: errorCode,
|
|
2738
|
-
$metadata: deserializeMetadata(output),
|
|
2739
|
-
};
|
|
2740
|
-
break;
|
|
2119
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2741
2120
|
case "ResourceNotFoundException":
|
|
2742
2121
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2743
|
-
|
|
2744
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2745
|
-
name: errorCode,
|
|
2746
|
-
$metadata: deserializeMetadata(output),
|
|
2747
|
-
};
|
|
2748
|
-
break;
|
|
2122
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2749
2123
|
default:
|
|
2750
2124
|
const parsedBody = parsedOutput.body;
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
...parsedBody,
|
|
2754
|
-
name: `${errorCode}`,
|
|
2755
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2125
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2126
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2756
2127
|
$fault: "client",
|
|
2757
2128
|
$metadata: deserializeMetadata(output),
|
|
2758
|
-
};
|
|
2129
|
+
});
|
|
2130
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2759
2131
|
}
|
|
2760
|
-
const message = response.message || response.Message || errorCode;
|
|
2761
|
-
response.message = message;
|
|
2762
|
-
delete response.Message;
|
|
2763
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2764
2132
|
};
|
|
2765
2133
|
const deserializeAws_json1_1UpdateWebhookCommand = async (output, context) => {
|
|
2766
2134
|
if (output.statusCode >= 300) {
|
|
@@ -2787,98 +2155,67 @@ const deserializeAws_json1_1UpdateWebhookCommandError = async (output, context)
|
|
|
2787
2155
|
switch (errorCode) {
|
|
2788
2156
|
case "InvalidInputException":
|
|
2789
2157
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
2790
|
-
|
|
2791
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2792
|
-
name: errorCode,
|
|
2793
|
-
$metadata: deserializeMetadata(output),
|
|
2794
|
-
};
|
|
2795
|
-
break;
|
|
2158
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2796
2159
|
case "OAuthProviderException":
|
|
2797
2160
|
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
2798
|
-
|
|
2799
|
-
...(await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context)),
|
|
2800
|
-
name: errorCode,
|
|
2801
|
-
$metadata: deserializeMetadata(output),
|
|
2802
|
-
};
|
|
2803
|
-
break;
|
|
2161
|
+
throw await deserializeAws_json1_1OAuthProviderExceptionResponse(parsedOutput, context);
|
|
2804
2162
|
case "ResourceNotFoundException":
|
|
2805
2163
|
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
2806
|
-
|
|
2807
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2808
|
-
name: errorCode,
|
|
2809
|
-
$metadata: deserializeMetadata(output),
|
|
2810
|
-
};
|
|
2811
|
-
break;
|
|
2164
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2812
2165
|
default:
|
|
2813
2166
|
const parsedBody = parsedOutput.body;
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
...parsedBody,
|
|
2817
|
-
name: `${errorCode}`,
|
|
2818
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2167
|
+
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2819
2169
|
$fault: "client",
|
|
2820
2170
|
$metadata: deserializeMetadata(output),
|
|
2821
|
-
};
|
|
2171
|
+
});
|
|
2172
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2822
2173
|
}
|
|
2823
|
-
const message = response.message || response.Message || errorCode;
|
|
2824
|
-
response.message = message;
|
|
2825
|
-
delete response.Message;
|
|
2826
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2827
2174
|
};
|
|
2828
2175
|
const deserializeAws_json1_1AccountLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2829
2176
|
const body = parsedOutput.body;
|
|
2830
2177
|
const deserialized = deserializeAws_json1_1AccountLimitExceededException(body, context);
|
|
2831
|
-
const
|
|
2832
|
-
name: "AccountLimitExceededException",
|
|
2833
|
-
$fault: "client",
|
|
2178
|
+
const exception = new models_0_1.AccountLimitExceededException({
|
|
2834
2179
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2835
2180
|
...deserialized,
|
|
2836
|
-
};
|
|
2837
|
-
return
|
|
2181
|
+
});
|
|
2182
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2838
2183
|
};
|
|
2839
2184
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
2840
2185
|
const body = parsedOutput.body;
|
|
2841
2186
|
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
2842
|
-
const
|
|
2843
|
-
name: "InvalidInputException",
|
|
2844
|
-
$fault: "client",
|
|
2187
|
+
const exception = new models_0_1.InvalidInputException({
|
|
2845
2188
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2846
2189
|
...deserialized,
|
|
2847
|
-
};
|
|
2848
|
-
return
|
|
2190
|
+
});
|
|
2191
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2849
2192
|
};
|
|
2850
2193
|
const deserializeAws_json1_1OAuthProviderExceptionResponse = async (parsedOutput, context) => {
|
|
2851
2194
|
const body = parsedOutput.body;
|
|
2852
2195
|
const deserialized = deserializeAws_json1_1OAuthProviderException(body, context);
|
|
2853
|
-
const
|
|
2854
|
-
name: "OAuthProviderException",
|
|
2855
|
-
$fault: "client",
|
|
2196
|
+
const exception = new models_0_1.OAuthProviderException({
|
|
2856
2197
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2857
2198
|
...deserialized,
|
|
2858
|
-
};
|
|
2859
|
-
return
|
|
2199
|
+
});
|
|
2200
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2860
2201
|
};
|
|
2861
2202
|
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
2862
2203
|
const body = parsedOutput.body;
|
|
2863
2204
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
2864
|
-
const
|
|
2865
|
-
name: "ResourceAlreadyExistsException",
|
|
2866
|
-
$fault: "client",
|
|
2205
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
2867
2206
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2868
2207
|
...deserialized,
|
|
2869
|
-
};
|
|
2870
|
-
return
|
|
2208
|
+
});
|
|
2209
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2871
2210
|
};
|
|
2872
2211
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2873
2212
|
const body = parsedOutput.body;
|
|
2874
2213
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
2875
|
-
const
|
|
2876
|
-
name: "ResourceNotFoundException",
|
|
2877
|
-
$fault: "client",
|
|
2214
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2878
2215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2879
2216
|
...deserialized,
|
|
2880
|
-
};
|
|
2881
|
-
return
|
|
2217
|
+
});
|
|
2218
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
2882
2219
|
};
|
|
2883
2220
|
const serializeAws_json1_1BatchDeleteBuildsInput = (input, context) => {
|
|
2884
2221
|
return {
|
|
@@ -4014,7 +3351,7 @@ const deserializeAws_json1_1BuildArtifacts = (output, context) => {
|
|
|
4014
3351
|
};
|
|
4015
3352
|
};
|
|
4016
3353
|
const deserializeAws_json1_1BuildArtifactsList = (output, context) => {
|
|
4017
|
-
|
|
3354
|
+
const retVal = (output || [])
|
|
4018
3355
|
.filter((e) => e != null)
|
|
4019
3356
|
.map((entry) => {
|
|
4020
3357
|
if (entry === null) {
|
|
@@ -4022,6 +3359,7 @@ const deserializeAws_json1_1BuildArtifactsList = (output, context) => {
|
|
|
4022
3359
|
}
|
|
4023
3360
|
return deserializeAws_json1_1BuildArtifacts(entry, context);
|
|
4024
3361
|
});
|
|
3362
|
+
return retVal;
|
|
4025
3363
|
};
|
|
4026
3364
|
const deserializeAws_json1_1BuildBatch = (output, context) => {
|
|
4027
3365
|
return {
|
|
@@ -4088,7 +3426,7 @@ const deserializeAws_json1_1BuildBatch = (output, context) => {
|
|
|
4088
3426
|
};
|
|
4089
3427
|
};
|
|
4090
3428
|
const deserializeAws_json1_1BuildBatches = (output, context) => {
|
|
4091
|
-
|
|
3429
|
+
const retVal = (output || [])
|
|
4092
3430
|
.filter((e) => e != null)
|
|
4093
3431
|
.map((entry) => {
|
|
4094
3432
|
if (entry === null) {
|
|
@@ -4096,9 +3434,10 @@ const deserializeAws_json1_1BuildBatches = (output, context) => {
|
|
|
4096
3434
|
}
|
|
4097
3435
|
return deserializeAws_json1_1BuildBatch(entry, context);
|
|
4098
3436
|
});
|
|
3437
|
+
return retVal;
|
|
4099
3438
|
};
|
|
4100
3439
|
const deserializeAws_json1_1BuildBatchIds = (output, context) => {
|
|
4101
|
-
|
|
3440
|
+
const retVal = (output || [])
|
|
4102
3441
|
.filter((e) => e != null)
|
|
4103
3442
|
.map((entry) => {
|
|
4104
3443
|
if (entry === null) {
|
|
@@ -4106,6 +3445,7 @@ const deserializeAws_json1_1BuildBatchIds = (output, context) => {
|
|
|
4106
3445
|
}
|
|
4107
3446
|
return smithy_client_1.expectString(entry);
|
|
4108
3447
|
});
|
|
3448
|
+
return retVal;
|
|
4109
3449
|
};
|
|
4110
3450
|
const deserializeAws_json1_1BuildBatchPhase = (output, context) => {
|
|
4111
3451
|
return {
|
|
@@ -4124,7 +3464,7 @@ const deserializeAws_json1_1BuildBatchPhase = (output, context) => {
|
|
|
4124
3464
|
};
|
|
4125
3465
|
};
|
|
4126
3466
|
const deserializeAws_json1_1BuildBatchPhases = (output, context) => {
|
|
4127
|
-
|
|
3467
|
+
const retVal = (output || [])
|
|
4128
3468
|
.filter((e) => e != null)
|
|
4129
3469
|
.map((entry) => {
|
|
4130
3470
|
if (entry === null) {
|
|
@@ -4132,6 +3472,7 @@ const deserializeAws_json1_1BuildBatchPhases = (output, context) => {
|
|
|
4132
3472
|
}
|
|
4133
3473
|
return deserializeAws_json1_1BuildBatchPhase(entry, context);
|
|
4134
3474
|
});
|
|
3475
|
+
return retVal;
|
|
4135
3476
|
};
|
|
4136
3477
|
const deserializeAws_json1_1BuildGroup = (output, context) => {
|
|
4137
3478
|
return {
|
|
@@ -4149,7 +3490,7 @@ const deserializeAws_json1_1BuildGroup = (output, context) => {
|
|
|
4149
3490
|
};
|
|
4150
3491
|
};
|
|
4151
3492
|
const deserializeAws_json1_1BuildGroups = (output, context) => {
|
|
4152
|
-
|
|
3493
|
+
const retVal = (output || [])
|
|
4153
3494
|
.filter((e) => e != null)
|
|
4154
3495
|
.map((entry) => {
|
|
4155
3496
|
if (entry === null) {
|
|
@@ -4157,9 +3498,10 @@ const deserializeAws_json1_1BuildGroups = (output, context) => {
|
|
|
4157
3498
|
}
|
|
4158
3499
|
return deserializeAws_json1_1BuildGroup(entry, context);
|
|
4159
3500
|
});
|
|
3501
|
+
return retVal;
|
|
4160
3502
|
};
|
|
4161
3503
|
const deserializeAws_json1_1BuildIds = (output, context) => {
|
|
4162
|
-
|
|
3504
|
+
const retVal = (output || [])
|
|
4163
3505
|
.filter((e) => e != null)
|
|
4164
3506
|
.map((entry) => {
|
|
4165
3507
|
if (entry === null) {
|
|
@@ -4167,6 +3509,7 @@ const deserializeAws_json1_1BuildIds = (output, context) => {
|
|
|
4167
3509
|
}
|
|
4168
3510
|
return smithy_client_1.expectString(entry);
|
|
4169
3511
|
});
|
|
3512
|
+
return retVal;
|
|
4170
3513
|
};
|
|
4171
3514
|
const deserializeAws_json1_1BuildNotDeleted = (output, context) => {
|
|
4172
3515
|
return {
|
|
@@ -4191,7 +3534,7 @@ const deserializeAws_json1_1BuildPhase = (output, context) => {
|
|
|
4191
3534
|
};
|
|
4192
3535
|
};
|
|
4193
3536
|
const deserializeAws_json1_1BuildPhases = (output, context) => {
|
|
4194
|
-
|
|
3537
|
+
const retVal = (output || [])
|
|
4195
3538
|
.filter((e) => e != null)
|
|
4196
3539
|
.map((entry) => {
|
|
4197
3540
|
if (entry === null) {
|
|
@@ -4199,9 +3542,10 @@ const deserializeAws_json1_1BuildPhases = (output, context) => {
|
|
|
4199
3542
|
}
|
|
4200
3543
|
return deserializeAws_json1_1BuildPhase(entry, context);
|
|
4201
3544
|
});
|
|
3545
|
+
return retVal;
|
|
4202
3546
|
};
|
|
4203
3547
|
const deserializeAws_json1_1BuildReportArns = (output, context) => {
|
|
4204
|
-
|
|
3548
|
+
const retVal = (output || [])
|
|
4205
3549
|
.filter((e) => e != null)
|
|
4206
3550
|
.map((entry) => {
|
|
4207
3551
|
if (entry === null) {
|
|
@@ -4209,9 +3553,10 @@ const deserializeAws_json1_1BuildReportArns = (output, context) => {
|
|
|
4209
3553
|
}
|
|
4210
3554
|
return smithy_client_1.expectString(entry);
|
|
4211
3555
|
});
|
|
3556
|
+
return retVal;
|
|
4212
3557
|
};
|
|
4213
3558
|
const deserializeAws_json1_1Builds = (output, context) => {
|
|
4214
|
-
|
|
3559
|
+
const retVal = (output || [])
|
|
4215
3560
|
.filter((e) => e != null)
|
|
4216
3561
|
.map((entry) => {
|
|
4217
3562
|
if (entry === null) {
|
|
@@ -4219,9 +3564,10 @@ const deserializeAws_json1_1Builds = (output, context) => {
|
|
|
4219
3564
|
}
|
|
4220
3565
|
return deserializeAws_json1_1Build(entry, context);
|
|
4221
3566
|
});
|
|
3567
|
+
return retVal;
|
|
4222
3568
|
};
|
|
4223
3569
|
const deserializeAws_json1_1BuildsNotDeleted = (output, context) => {
|
|
4224
|
-
|
|
3570
|
+
const retVal = (output || [])
|
|
4225
3571
|
.filter((e) => e != null)
|
|
4226
3572
|
.map((entry) => {
|
|
4227
3573
|
if (entry === null) {
|
|
@@ -4229,6 +3575,7 @@ const deserializeAws_json1_1BuildsNotDeleted = (output, context) => {
|
|
|
4229
3575
|
}
|
|
4230
3576
|
return deserializeAws_json1_1BuildNotDeleted(entry, context);
|
|
4231
3577
|
});
|
|
3578
|
+
return retVal;
|
|
4232
3579
|
};
|
|
4233
3580
|
const deserializeAws_json1_1BuildStatusConfig = (output, context) => {
|
|
4234
3581
|
return {
|
|
@@ -4237,7 +3584,7 @@ const deserializeAws_json1_1BuildStatusConfig = (output, context) => {
|
|
|
4237
3584
|
};
|
|
4238
3585
|
};
|
|
4239
3586
|
const deserializeAws_json1_1BuildSummaries = (output, context) => {
|
|
4240
|
-
|
|
3587
|
+
const retVal = (output || [])
|
|
4241
3588
|
.filter((e) => e != null)
|
|
4242
3589
|
.map((entry) => {
|
|
4243
3590
|
if (entry === null) {
|
|
@@ -4245,6 +3592,7 @@ const deserializeAws_json1_1BuildSummaries = (output, context) => {
|
|
|
4245
3592
|
}
|
|
4246
3593
|
return deserializeAws_json1_1BuildSummary(entry, context);
|
|
4247
3594
|
});
|
|
3595
|
+
return retVal;
|
|
4248
3596
|
};
|
|
4249
3597
|
const deserializeAws_json1_1BuildSummary = (output, context) => {
|
|
4250
3598
|
return {
|
|
@@ -4295,7 +3643,7 @@ const deserializeAws_json1_1CodeCoverageReportSummary = (output, context) => {
|
|
|
4295
3643
|
};
|
|
4296
3644
|
};
|
|
4297
3645
|
const deserializeAws_json1_1CodeCoverages = (output, context) => {
|
|
4298
|
-
|
|
3646
|
+
const retVal = (output || [])
|
|
4299
3647
|
.filter((e) => e != null)
|
|
4300
3648
|
.map((entry) => {
|
|
4301
3649
|
if (entry === null) {
|
|
@@ -4303,9 +3651,10 @@ const deserializeAws_json1_1CodeCoverages = (output, context) => {
|
|
|
4303
3651
|
}
|
|
4304
3652
|
return deserializeAws_json1_1CodeCoverage(entry, context);
|
|
4305
3653
|
});
|
|
3654
|
+
return retVal;
|
|
4306
3655
|
};
|
|
4307
3656
|
const deserializeAws_json1_1ComputeTypesAllowed = (output, context) => {
|
|
4308
|
-
|
|
3657
|
+
const retVal = (output || [])
|
|
4309
3658
|
.filter((e) => e != null)
|
|
4310
3659
|
.map((entry) => {
|
|
4311
3660
|
if (entry === null) {
|
|
@@ -4313,6 +3662,7 @@ const deserializeAws_json1_1ComputeTypesAllowed = (output, context) => {
|
|
|
4313
3662
|
}
|
|
4314
3663
|
return smithy_client_1.expectString(entry);
|
|
4315
3664
|
});
|
|
3665
|
+
return retVal;
|
|
4316
3666
|
};
|
|
4317
3667
|
const deserializeAws_json1_1CreateProjectOutput = (output, context) => {
|
|
4318
3668
|
return {
|
|
@@ -4398,7 +3748,7 @@ const deserializeAws_json1_1EnvironmentImage = (output, context) => {
|
|
|
4398
3748
|
};
|
|
4399
3749
|
};
|
|
4400
3750
|
const deserializeAws_json1_1EnvironmentImages = (output, context) => {
|
|
4401
|
-
|
|
3751
|
+
const retVal = (output || [])
|
|
4402
3752
|
.filter((e) => e != null)
|
|
4403
3753
|
.map((entry) => {
|
|
4404
3754
|
if (entry === null) {
|
|
@@ -4406,6 +3756,7 @@ const deserializeAws_json1_1EnvironmentImages = (output, context) => {
|
|
|
4406
3756
|
}
|
|
4407
3757
|
return deserializeAws_json1_1EnvironmentImage(entry, context);
|
|
4408
3758
|
});
|
|
3759
|
+
return retVal;
|
|
4409
3760
|
};
|
|
4410
3761
|
const deserializeAws_json1_1EnvironmentLanguage = (output, context) => {
|
|
4411
3762
|
return {
|
|
@@ -4416,7 +3767,7 @@ const deserializeAws_json1_1EnvironmentLanguage = (output, context) => {
|
|
|
4416
3767
|
};
|
|
4417
3768
|
};
|
|
4418
3769
|
const deserializeAws_json1_1EnvironmentLanguages = (output, context) => {
|
|
4419
|
-
|
|
3770
|
+
const retVal = (output || [])
|
|
4420
3771
|
.filter((e) => e != null)
|
|
4421
3772
|
.map((entry) => {
|
|
4422
3773
|
if (entry === null) {
|
|
@@ -4424,6 +3775,7 @@ const deserializeAws_json1_1EnvironmentLanguages = (output, context) => {
|
|
|
4424
3775
|
}
|
|
4425
3776
|
return deserializeAws_json1_1EnvironmentLanguage(entry, context);
|
|
4426
3777
|
});
|
|
3778
|
+
return retVal;
|
|
4427
3779
|
};
|
|
4428
3780
|
const deserializeAws_json1_1EnvironmentPlatform = (output, context) => {
|
|
4429
3781
|
return {
|
|
@@ -4434,7 +3786,7 @@ const deserializeAws_json1_1EnvironmentPlatform = (output, context) => {
|
|
|
4434
3786
|
};
|
|
4435
3787
|
};
|
|
4436
3788
|
const deserializeAws_json1_1EnvironmentPlatforms = (output, context) => {
|
|
4437
|
-
|
|
3789
|
+
const retVal = (output || [])
|
|
4438
3790
|
.filter((e) => e != null)
|
|
4439
3791
|
.map((entry) => {
|
|
4440
3792
|
if (entry === null) {
|
|
@@ -4442,6 +3794,7 @@ const deserializeAws_json1_1EnvironmentPlatforms = (output, context) => {
|
|
|
4442
3794
|
}
|
|
4443
3795
|
return deserializeAws_json1_1EnvironmentPlatform(entry, context);
|
|
4444
3796
|
});
|
|
3797
|
+
return retVal;
|
|
4445
3798
|
};
|
|
4446
3799
|
const deserializeAws_json1_1EnvironmentVariable = (output, context) => {
|
|
4447
3800
|
return {
|
|
@@ -4451,7 +3804,7 @@ const deserializeAws_json1_1EnvironmentVariable = (output, context) => {
|
|
|
4451
3804
|
};
|
|
4452
3805
|
};
|
|
4453
3806
|
const deserializeAws_json1_1EnvironmentVariables = (output, context) => {
|
|
4454
|
-
|
|
3807
|
+
const retVal = (output || [])
|
|
4455
3808
|
.filter((e) => e != null)
|
|
4456
3809
|
.map((entry) => {
|
|
4457
3810
|
if (entry === null) {
|
|
@@ -4459,6 +3812,7 @@ const deserializeAws_json1_1EnvironmentVariables = (output, context) => {
|
|
|
4459
3812
|
}
|
|
4460
3813
|
return deserializeAws_json1_1EnvironmentVariable(entry, context);
|
|
4461
3814
|
});
|
|
3815
|
+
return retVal;
|
|
4462
3816
|
};
|
|
4463
3817
|
const deserializeAws_json1_1ExportedEnvironmentVariable = (output, context) => {
|
|
4464
3818
|
return {
|
|
@@ -4467,7 +3821,7 @@ const deserializeAws_json1_1ExportedEnvironmentVariable = (output, context) => {
|
|
|
4467
3821
|
};
|
|
4468
3822
|
};
|
|
4469
3823
|
const deserializeAws_json1_1ExportedEnvironmentVariables = (output, context) => {
|
|
4470
|
-
|
|
3824
|
+
const retVal = (output || [])
|
|
4471
3825
|
.filter((e) => e != null)
|
|
4472
3826
|
.map((entry) => {
|
|
4473
3827
|
if (entry === null) {
|
|
@@ -4475,9 +3829,10 @@ const deserializeAws_json1_1ExportedEnvironmentVariables = (output, context) =>
|
|
|
4475
3829
|
}
|
|
4476
3830
|
return deserializeAws_json1_1ExportedEnvironmentVariable(entry, context);
|
|
4477
3831
|
});
|
|
3832
|
+
return retVal;
|
|
4478
3833
|
};
|
|
4479
3834
|
const deserializeAws_json1_1FilterGroup = (output, context) => {
|
|
4480
|
-
|
|
3835
|
+
const retVal = (output || [])
|
|
4481
3836
|
.filter((e) => e != null)
|
|
4482
3837
|
.map((entry) => {
|
|
4483
3838
|
if (entry === null) {
|
|
@@ -4485,9 +3840,10 @@ const deserializeAws_json1_1FilterGroup = (output, context) => {
|
|
|
4485
3840
|
}
|
|
4486
3841
|
return deserializeAws_json1_1WebhookFilter(entry, context);
|
|
4487
3842
|
});
|
|
3843
|
+
return retVal;
|
|
4488
3844
|
};
|
|
4489
3845
|
const deserializeAws_json1_1FilterGroups = (output, context) => {
|
|
4490
|
-
|
|
3846
|
+
const retVal = (output || [])
|
|
4491
3847
|
.filter((e) => e != null)
|
|
4492
3848
|
.map((entry) => {
|
|
4493
3849
|
if (entry === null) {
|
|
@@ -4495,6 +3851,7 @@ const deserializeAws_json1_1FilterGroups = (output, context) => {
|
|
|
4495
3851
|
}
|
|
4496
3852
|
return deserializeAws_json1_1FilterGroup(entry, context);
|
|
4497
3853
|
});
|
|
3854
|
+
return retVal;
|
|
4498
3855
|
};
|
|
4499
3856
|
const deserializeAws_json1_1GetReportGroupTrendOutput = (output, context) => {
|
|
4500
3857
|
return {
|
|
@@ -4517,7 +3874,7 @@ const deserializeAws_json1_1GitSubmodulesConfig = (output, context) => {
|
|
|
4517
3874
|
};
|
|
4518
3875
|
};
|
|
4519
3876
|
const deserializeAws_json1_1Identifiers = (output, context) => {
|
|
4520
|
-
|
|
3877
|
+
const retVal = (output || [])
|
|
4521
3878
|
.filter((e) => e != null)
|
|
4522
3879
|
.map((entry) => {
|
|
4523
3880
|
if (entry === null) {
|
|
@@ -4525,9 +3882,10 @@ const deserializeAws_json1_1Identifiers = (output, context) => {
|
|
|
4525
3882
|
}
|
|
4526
3883
|
return smithy_client_1.expectString(entry);
|
|
4527
3884
|
});
|
|
3885
|
+
return retVal;
|
|
4528
3886
|
};
|
|
4529
3887
|
const deserializeAws_json1_1ImageVersions = (output, context) => {
|
|
4530
|
-
|
|
3888
|
+
const retVal = (output || [])
|
|
4531
3889
|
.filter((e) => e != null)
|
|
4532
3890
|
.map((entry) => {
|
|
4533
3891
|
if (entry === null) {
|
|
@@ -4535,6 +3893,7 @@ const deserializeAws_json1_1ImageVersions = (output, context) => {
|
|
|
4535
3893
|
}
|
|
4536
3894
|
return smithy_client_1.expectString(entry);
|
|
4537
3895
|
});
|
|
3896
|
+
return retVal;
|
|
4538
3897
|
};
|
|
4539
3898
|
const deserializeAws_json1_1ImportSourceCredentialsOutput = (output, context) => {
|
|
4540
3899
|
return {
|
|
@@ -4683,7 +4042,7 @@ const deserializeAws_json1_1PhaseContext = (output, context) => {
|
|
|
4683
4042
|
};
|
|
4684
4043
|
};
|
|
4685
4044
|
const deserializeAws_json1_1PhaseContexts = (output, context) => {
|
|
4686
|
-
|
|
4045
|
+
const retVal = (output || [])
|
|
4687
4046
|
.filter((e) => e != null)
|
|
4688
4047
|
.map((entry) => {
|
|
4689
4048
|
if (entry === null) {
|
|
@@ -4691,6 +4050,7 @@ const deserializeAws_json1_1PhaseContexts = (output, context) => {
|
|
|
4691
4050
|
}
|
|
4692
4051
|
return deserializeAws_json1_1PhaseContext(entry, context);
|
|
4693
4052
|
});
|
|
4053
|
+
return retVal;
|
|
4694
4054
|
};
|
|
4695
4055
|
const deserializeAws_json1_1Project = (output, context) => {
|
|
4696
4056
|
return {
|
|
@@ -4757,7 +4117,7 @@ const deserializeAws_json1_1Project = (output, context) => {
|
|
|
4757
4117
|
};
|
|
4758
4118
|
};
|
|
4759
4119
|
const deserializeAws_json1_1ProjectArns = (output, context) => {
|
|
4760
|
-
|
|
4120
|
+
const retVal = (output || [])
|
|
4761
4121
|
.filter((e) => e != null)
|
|
4762
4122
|
.map((entry) => {
|
|
4763
4123
|
if (entry === null) {
|
|
@@ -4765,6 +4125,7 @@ const deserializeAws_json1_1ProjectArns = (output, context) => {
|
|
|
4765
4125
|
}
|
|
4766
4126
|
return smithy_client_1.expectString(entry);
|
|
4767
4127
|
});
|
|
4128
|
+
return retVal;
|
|
4768
4129
|
};
|
|
4769
4130
|
const deserializeAws_json1_1ProjectArtifacts = (output, context) => {
|
|
4770
4131
|
return {
|
|
@@ -4781,7 +4142,7 @@ const deserializeAws_json1_1ProjectArtifacts = (output, context) => {
|
|
|
4781
4142
|
};
|
|
4782
4143
|
};
|
|
4783
4144
|
const deserializeAws_json1_1ProjectArtifactsList = (output, context) => {
|
|
4784
|
-
|
|
4145
|
+
const retVal = (output || [])
|
|
4785
4146
|
.filter((e) => e != null)
|
|
4786
4147
|
.map((entry) => {
|
|
4787
4148
|
if (entry === null) {
|
|
@@ -4789,6 +4150,7 @@ const deserializeAws_json1_1ProjectArtifactsList = (output, context) => {
|
|
|
4789
4150
|
}
|
|
4790
4151
|
return deserializeAws_json1_1ProjectArtifacts(entry, context);
|
|
4791
4152
|
});
|
|
4153
|
+
return retVal;
|
|
4792
4154
|
};
|
|
4793
4155
|
const deserializeAws_json1_1ProjectBadge = (output, context) => {
|
|
4794
4156
|
return {
|
|
@@ -4817,7 +4179,7 @@ const deserializeAws_json1_1ProjectCache = (output, context) => {
|
|
|
4817
4179
|
};
|
|
4818
4180
|
};
|
|
4819
4181
|
const deserializeAws_json1_1ProjectCacheModes = (output, context) => {
|
|
4820
|
-
|
|
4182
|
+
const retVal = (output || [])
|
|
4821
4183
|
.filter((e) => e != null)
|
|
4822
4184
|
.map((entry) => {
|
|
4823
4185
|
if (entry === null) {
|
|
@@ -4825,6 +4187,7 @@ const deserializeAws_json1_1ProjectCacheModes = (output, context) => {
|
|
|
4825
4187
|
}
|
|
4826
4188
|
return smithy_client_1.expectString(entry);
|
|
4827
4189
|
});
|
|
4190
|
+
return retVal;
|
|
4828
4191
|
};
|
|
4829
4192
|
const deserializeAws_json1_1ProjectEnvironment = (output, context) => {
|
|
4830
4193
|
return {
|
|
@@ -4852,7 +4215,7 @@ const deserializeAws_json1_1ProjectFileSystemLocation = (output, context) => {
|
|
|
4852
4215
|
};
|
|
4853
4216
|
};
|
|
4854
4217
|
const deserializeAws_json1_1ProjectFileSystemLocations = (output, context) => {
|
|
4855
|
-
|
|
4218
|
+
const retVal = (output || [])
|
|
4856
4219
|
.filter((e) => e != null)
|
|
4857
4220
|
.map((entry) => {
|
|
4858
4221
|
if (entry === null) {
|
|
@@ -4860,9 +4223,10 @@ const deserializeAws_json1_1ProjectFileSystemLocations = (output, context) => {
|
|
|
4860
4223
|
}
|
|
4861
4224
|
return deserializeAws_json1_1ProjectFileSystemLocation(entry, context);
|
|
4862
4225
|
});
|
|
4226
|
+
return retVal;
|
|
4863
4227
|
};
|
|
4864
4228
|
const deserializeAws_json1_1ProjectNames = (output, context) => {
|
|
4865
|
-
|
|
4229
|
+
const retVal = (output || [])
|
|
4866
4230
|
.filter((e) => e != null)
|
|
4867
4231
|
.map((entry) => {
|
|
4868
4232
|
if (entry === null) {
|
|
@@ -4870,9 +4234,10 @@ const deserializeAws_json1_1ProjectNames = (output, context) => {
|
|
|
4870
4234
|
}
|
|
4871
4235
|
return smithy_client_1.expectString(entry);
|
|
4872
4236
|
});
|
|
4237
|
+
return retVal;
|
|
4873
4238
|
};
|
|
4874
4239
|
const deserializeAws_json1_1Projects = (output, context) => {
|
|
4875
|
-
|
|
4240
|
+
const retVal = (output || [])
|
|
4876
4241
|
.filter((e) => e != null)
|
|
4877
4242
|
.map((entry) => {
|
|
4878
4243
|
if (entry === null) {
|
|
@@ -4880,9 +4245,10 @@ const deserializeAws_json1_1Projects = (output, context) => {
|
|
|
4880
4245
|
}
|
|
4881
4246
|
return deserializeAws_json1_1Project(entry, context);
|
|
4882
4247
|
});
|
|
4248
|
+
return retVal;
|
|
4883
4249
|
};
|
|
4884
4250
|
const deserializeAws_json1_1ProjectSecondarySourceVersions = (output, context) => {
|
|
4885
|
-
|
|
4251
|
+
const retVal = (output || [])
|
|
4886
4252
|
.filter((e) => e != null)
|
|
4887
4253
|
.map((entry) => {
|
|
4888
4254
|
if (entry === null) {
|
|
@@ -4890,6 +4256,7 @@ const deserializeAws_json1_1ProjectSecondarySourceVersions = (output, context) =
|
|
|
4890
4256
|
}
|
|
4891
4257
|
return deserializeAws_json1_1ProjectSourceVersion(entry, context);
|
|
4892
4258
|
});
|
|
4259
|
+
return retVal;
|
|
4893
4260
|
};
|
|
4894
4261
|
const deserializeAws_json1_1ProjectSource = (output, context) => {
|
|
4895
4262
|
return {
|
|
@@ -4912,7 +4279,7 @@ const deserializeAws_json1_1ProjectSource = (output, context) => {
|
|
|
4912
4279
|
};
|
|
4913
4280
|
};
|
|
4914
4281
|
const deserializeAws_json1_1ProjectSources = (output, context) => {
|
|
4915
|
-
|
|
4282
|
+
const retVal = (output || [])
|
|
4916
4283
|
.filter((e) => e != null)
|
|
4917
4284
|
.map((entry) => {
|
|
4918
4285
|
if (entry === null) {
|
|
@@ -4920,6 +4287,7 @@ const deserializeAws_json1_1ProjectSources = (output, context) => {
|
|
|
4920
4287
|
}
|
|
4921
4288
|
return deserializeAws_json1_1ProjectSource(entry, context);
|
|
4922
4289
|
});
|
|
4290
|
+
return retVal;
|
|
4923
4291
|
};
|
|
4924
4292
|
const deserializeAws_json1_1ProjectSourceVersion = (output, context) => {
|
|
4925
4293
|
return {
|
|
@@ -4965,7 +4333,7 @@ const deserializeAws_json1_1Report = (output, context) => {
|
|
|
4965
4333
|
};
|
|
4966
4334
|
};
|
|
4967
4335
|
const deserializeAws_json1_1ReportArns = (output, context) => {
|
|
4968
|
-
|
|
4336
|
+
const retVal = (output || [])
|
|
4969
4337
|
.filter((e) => e != null)
|
|
4970
4338
|
.map((entry) => {
|
|
4971
4339
|
if (entry === null) {
|
|
@@ -4973,6 +4341,7 @@ const deserializeAws_json1_1ReportArns = (output, context) => {
|
|
|
4973
4341
|
}
|
|
4974
4342
|
return smithy_client_1.expectString(entry);
|
|
4975
4343
|
});
|
|
4344
|
+
return retVal;
|
|
4976
4345
|
};
|
|
4977
4346
|
const deserializeAws_json1_1ReportExportConfig = (output, context) => {
|
|
4978
4347
|
return {
|
|
@@ -5003,7 +4372,7 @@ const deserializeAws_json1_1ReportGroup = (output, context) => {
|
|
|
5003
4372
|
};
|
|
5004
4373
|
};
|
|
5005
4374
|
const deserializeAws_json1_1ReportGroupArns = (output, context) => {
|
|
5006
|
-
|
|
4375
|
+
const retVal = (output || [])
|
|
5007
4376
|
.filter((e) => e != null)
|
|
5008
4377
|
.map((entry) => {
|
|
5009
4378
|
if (entry === null) {
|
|
@@ -5011,9 +4380,10 @@ const deserializeAws_json1_1ReportGroupArns = (output, context) => {
|
|
|
5011
4380
|
}
|
|
5012
4381
|
return smithy_client_1.expectString(entry);
|
|
5013
4382
|
});
|
|
4383
|
+
return retVal;
|
|
5014
4384
|
};
|
|
5015
4385
|
const deserializeAws_json1_1ReportGroups = (output, context) => {
|
|
5016
|
-
|
|
4386
|
+
const retVal = (output || [])
|
|
5017
4387
|
.filter((e) => e != null)
|
|
5018
4388
|
.map((entry) => {
|
|
5019
4389
|
if (entry === null) {
|
|
@@ -5021,9 +4391,10 @@ const deserializeAws_json1_1ReportGroups = (output, context) => {
|
|
|
5021
4391
|
}
|
|
5022
4392
|
return deserializeAws_json1_1ReportGroup(entry, context);
|
|
5023
4393
|
});
|
|
4394
|
+
return retVal;
|
|
5024
4395
|
};
|
|
5025
4396
|
const deserializeAws_json1_1ReportGroupTrendRawDataList = (output, context) => {
|
|
5026
|
-
|
|
4397
|
+
const retVal = (output || [])
|
|
5027
4398
|
.filter((e) => e != null)
|
|
5028
4399
|
.map((entry) => {
|
|
5029
4400
|
if (entry === null) {
|
|
@@ -5031,6 +4402,7 @@ const deserializeAws_json1_1ReportGroupTrendRawDataList = (output, context) => {
|
|
|
5031
4402
|
}
|
|
5032
4403
|
return deserializeAws_json1_1ReportWithRawData(entry, context);
|
|
5033
4404
|
});
|
|
4405
|
+
return retVal;
|
|
5034
4406
|
};
|
|
5035
4407
|
const deserializeAws_json1_1ReportGroupTrendStats = (output, context) => {
|
|
5036
4408
|
return {
|
|
@@ -5040,7 +4412,7 @@ const deserializeAws_json1_1ReportGroupTrendStats = (output, context) => {
|
|
|
5040
4412
|
};
|
|
5041
4413
|
};
|
|
5042
4414
|
const deserializeAws_json1_1Reports = (output, context) => {
|
|
5043
|
-
|
|
4415
|
+
const retVal = (output || [])
|
|
5044
4416
|
.filter((e) => e != null)
|
|
5045
4417
|
.map((entry) => {
|
|
5046
4418
|
if (entry === null) {
|
|
@@ -5048,6 +4420,7 @@ const deserializeAws_json1_1Reports = (output, context) => {
|
|
|
5048
4420
|
}
|
|
5049
4421
|
return deserializeAws_json1_1Report(entry, context);
|
|
5050
4422
|
});
|
|
4423
|
+
return retVal;
|
|
5051
4424
|
};
|
|
5052
4425
|
const deserializeAws_json1_1ReportStatusCounts = (output, context) => {
|
|
5053
4426
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5074,7 +4447,7 @@ const deserializeAws_json1_1ResolvedArtifact = (output, context) => {
|
|
|
5074
4447
|
};
|
|
5075
4448
|
};
|
|
5076
4449
|
const deserializeAws_json1_1ResolvedSecondaryArtifacts = (output, context) => {
|
|
5077
|
-
|
|
4450
|
+
const retVal = (output || [])
|
|
5078
4451
|
.filter((e) => e != null)
|
|
5079
4452
|
.map((entry) => {
|
|
5080
4453
|
if (entry === null) {
|
|
@@ -5082,6 +4455,7 @@ const deserializeAws_json1_1ResolvedSecondaryArtifacts = (output, context) => {
|
|
|
5082
4455
|
}
|
|
5083
4456
|
return deserializeAws_json1_1ResolvedArtifact(entry, context);
|
|
5084
4457
|
});
|
|
4458
|
+
return retVal;
|
|
5085
4459
|
};
|
|
5086
4460
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
5087
4461
|
return {
|
|
@@ -5126,7 +4500,7 @@ const deserializeAws_json1_1S3ReportExportConfig = (output, context) => {
|
|
|
5126
4500
|
};
|
|
5127
4501
|
};
|
|
5128
4502
|
const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
|
|
5129
|
-
|
|
4503
|
+
const retVal = (output || [])
|
|
5130
4504
|
.filter((e) => e != null)
|
|
5131
4505
|
.map((entry) => {
|
|
5132
4506
|
if (entry === null) {
|
|
@@ -5134,6 +4508,7 @@ const deserializeAws_json1_1SecurityGroupIds = (output, context) => {
|
|
|
5134
4508
|
}
|
|
5135
4509
|
return smithy_client_1.expectString(entry);
|
|
5136
4510
|
});
|
|
4511
|
+
return retVal;
|
|
5137
4512
|
};
|
|
5138
4513
|
const deserializeAws_json1_1SourceAuth = (output, context) => {
|
|
5139
4514
|
return {
|
|
@@ -5149,7 +4524,7 @@ const deserializeAws_json1_1SourceCredentialsInfo = (output, context) => {
|
|
|
5149
4524
|
};
|
|
5150
4525
|
};
|
|
5151
4526
|
const deserializeAws_json1_1SourceCredentialsInfos = (output, context) => {
|
|
5152
|
-
|
|
4527
|
+
const retVal = (output || [])
|
|
5153
4528
|
.filter((e) => e != null)
|
|
5154
4529
|
.map((entry) => {
|
|
5155
4530
|
if (entry === null) {
|
|
@@ -5157,6 +4532,7 @@ const deserializeAws_json1_1SourceCredentialsInfos = (output, context) => {
|
|
|
5157
4532
|
}
|
|
5158
4533
|
return deserializeAws_json1_1SourceCredentialsInfo(entry, context);
|
|
5159
4534
|
});
|
|
4535
|
+
return retVal;
|
|
5160
4536
|
};
|
|
5161
4537
|
const deserializeAws_json1_1StartBuildBatchOutput = (output, context) => {
|
|
5162
4538
|
return {
|
|
@@ -5187,7 +4563,7 @@ const deserializeAws_json1_1StopBuildOutput = (output, context) => {
|
|
|
5187
4563
|
};
|
|
5188
4564
|
};
|
|
5189
4565
|
const deserializeAws_json1_1Subnets = (output, context) => {
|
|
5190
|
-
|
|
4566
|
+
const retVal = (output || [])
|
|
5191
4567
|
.filter((e) => e != null)
|
|
5192
4568
|
.map((entry) => {
|
|
5193
4569
|
if (entry === null) {
|
|
@@ -5195,6 +4571,7 @@ const deserializeAws_json1_1Subnets = (output, context) => {
|
|
|
5195
4571
|
}
|
|
5196
4572
|
return smithy_client_1.expectString(entry);
|
|
5197
4573
|
});
|
|
4574
|
+
return retVal;
|
|
5198
4575
|
};
|
|
5199
4576
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
5200
4577
|
return {
|
|
@@ -5203,7 +4580,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
5203
4580
|
};
|
|
5204
4581
|
};
|
|
5205
4582
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
5206
|
-
|
|
4583
|
+
const retVal = (output || [])
|
|
5207
4584
|
.filter((e) => e != null)
|
|
5208
4585
|
.map((entry) => {
|
|
5209
4586
|
if (entry === null) {
|
|
@@ -5211,6 +4588,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
5211
4588
|
}
|
|
5212
4589
|
return deserializeAws_json1_1Tag(entry, context);
|
|
5213
4590
|
});
|
|
4591
|
+
return retVal;
|
|
5214
4592
|
};
|
|
5215
4593
|
const deserializeAws_json1_1TestCase = (output, context) => {
|
|
5216
4594
|
return {
|
|
@@ -5227,7 +4605,7 @@ const deserializeAws_json1_1TestCase = (output, context) => {
|
|
|
5227
4605
|
};
|
|
5228
4606
|
};
|
|
5229
4607
|
const deserializeAws_json1_1TestCases = (output, context) => {
|
|
5230
|
-
|
|
4608
|
+
const retVal = (output || [])
|
|
5231
4609
|
.filter((e) => e != null)
|
|
5232
4610
|
.map((entry) => {
|
|
5233
4611
|
if (entry === null) {
|
|
@@ -5235,6 +4613,7 @@ const deserializeAws_json1_1TestCases = (output, context) => {
|
|
|
5235
4613
|
}
|
|
5236
4614
|
return deserializeAws_json1_1TestCase(entry, context);
|
|
5237
4615
|
});
|
|
4616
|
+
return retVal;
|
|
5238
4617
|
};
|
|
5239
4618
|
const deserializeAws_json1_1TestReportSummary = (output, context) => {
|
|
5240
4619
|
return {
|