@aws-sdk/client-codebuild 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +648 -926
- package/dist-es/protocols/Aws_json1_1.js +478 -756
- package/package.json +26 -26
|
@@ -476,18 +476,19 @@ const deserializeAws_json1_1BatchDeleteBuildsCommandError = async (output, conte
|
|
|
476
476
|
body: await parseBody(output.body, context),
|
|
477
477
|
};
|
|
478
478
|
let response;
|
|
479
|
-
|
|
480
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
481
480
|
switch (errorCode) {
|
|
482
481
|
case "InvalidInputException":
|
|
483
482
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
484
483
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
485
484
|
default:
|
|
486
485
|
const parsedBody = parsedOutput.body;
|
|
486
|
+
const $metadata = deserializeMetadata(output);
|
|
487
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
487
488
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
488
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
489
490
|
$fault: "client",
|
|
490
|
-
$metadata
|
|
491
|
+
$metadata,
|
|
491
492
|
});
|
|
492
493
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
493
494
|
}
|
|
@@ -512,18 +513,19 @@ const deserializeAws_json1_1BatchGetBuildBatchesCommandError = async (output, co
|
|
|
512
513
|
body: await parseBody(output.body, context),
|
|
513
514
|
};
|
|
514
515
|
let response;
|
|
515
|
-
|
|
516
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
517
|
switch (errorCode) {
|
|
518
518
|
case "InvalidInputException":
|
|
519
519
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
520
520
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
521
521
|
default:
|
|
522
522
|
const parsedBody = parsedOutput.body;
|
|
523
|
+
const $metadata = deserializeMetadata(output);
|
|
524
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
523
525
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
524
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
525
527
|
$fault: "client",
|
|
526
|
-
$metadata
|
|
528
|
+
$metadata,
|
|
527
529
|
});
|
|
528
530
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
529
531
|
}
|
|
@@ -548,18 +550,19 @@ const deserializeAws_json1_1BatchGetBuildsCommandError = async (output, context)
|
|
|
548
550
|
body: await parseBody(output.body, context),
|
|
549
551
|
};
|
|
550
552
|
let response;
|
|
551
|
-
|
|
552
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
554
|
switch (errorCode) {
|
|
554
555
|
case "InvalidInputException":
|
|
555
556
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
556
557
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
557
558
|
default:
|
|
558
559
|
const parsedBody = parsedOutput.body;
|
|
560
|
+
const $metadata = deserializeMetadata(output);
|
|
561
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
559
562
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
560
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
563
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
561
564
|
$fault: "client",
|
|
562
|
-
$metadata
|
|
565
|
+
$metadata,
|
|
563
566
|
});
|
|
564
567
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
565
568
|
}
|
|
@@ -584,18 +587,19 @@ const deserializeAws_json1_1BatchGetProjectsCommandError = async (output, contex
|
|
|
584
587
|
body: await parseBody(output.body, context),
|
|
585
588
|
};
|
|
586
589
|
let response;
|
|
587
|
-
|
|
588
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
590
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
589
591
|
switch (errorCode) {
|
|
590
592
|
case "InvalidInputException":
|
|
591
593
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
592
594
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
593
595
|
default:
|
|
594
596
|
const parsedBody = parsedOutput.body;
|
|
597
|
+
const $metadata = deserializeMetadata(output);
|
|
598
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
595
599
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
596
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
600
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
597
601
|
$fault: "client",
|
|
598
|
-
$metadata
|
|
602
|
+
$metadata,
|
|
599
603
|
});
|
|
600
604
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
601
605
|
}
|
|
@@ -620,18 +624,19 @@ const deserializeAws_json1_1BatchGetReportGroupsCommandError = async (output, co
|
|
|
620
624
|
body: await parseBody(output.body, context),
|
|
621
625
|
};
|
|
622
626
|
let response;
|
|
623
|
-
|
|
624
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
627
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
628
|
switch (errorCode) {
|
|
626
629
|
case "InvalidInputException":
|
|
627
630
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
628
631
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
629
632
|
default:
|
|
630
633
|
const parsedBody = parsedOutput.body;
|
|
634
|
+
const $metadata = deserializeMetadata(output);
|
|
635
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
631
636
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
632
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
637
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
633
638
|
$fault: "client",
|
|
634
|
-
$metadata
|
|
639
|
+
$metadata,
|
|
635
640
|
});
|
|
636
641
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
637
642
|
}
|
|
@@ -656,18 +661,19 @@ const deserializeAws_json1_1BatchGetReportsCommandError = async (output, context
|
|
|
656
661
|
body: await parseBody(output.body, context),
|
|
657
662
|
};
|
|
658
663
|
let response;
|
|
659
|
-
|
|
660
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
665
|
switch (errorCode) {
|
|
662
666
|
case "InvalidInputException":
|
|
663
667
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
664
668
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
665
669
|
default:
|
|
666
670
|
const parsedBody = parsedOutput.body;
|
|
671
|
+
const $metadata = deserializeMetadata(output);
|
|
672
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
667
673
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
668
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
674
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
669
675
|
$fault: "client",
|
|
670
|
-
$metadata
|
|
676
|
+
$metadata,
|
|
671
677
|
});
|
|
672
678
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
673
679
|
}
|
|
@@ -692,8 +698,7 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
692
698
|
body: await parseBody(output.body, context),
|
|
693
699
|
};
|
|
694
700
|
let response;
|
|
695
|
-
|
|
696
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
702
|
switch (errorCode) {
|
|
698
703
|
case "AccountLimitExceededException":
|
|
699
704
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
@@ -706,10 +711,12 @@ const deserializeAws_json1_1CreateProjectCommandError = async (output, context)
|
|
|
706
711
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
707
712
|
default:
|
|
708
713
|
const parsedBody = parsedOutput.body;
|
|
714
|
+
const $metadata = deserializeMetadata(output);
|
|
715
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
709
716
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
710
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
717
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
711
718
|
$fault: "client",
|
|
712
|
-
$metadata
|
|
719
|
+
$metadata,
|
|
713
720
|
});
|
|
714
721
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
715
722
|
}
|
|
@@ -734,8 +741,7 @@ const deserializeAws_json1_1CreateReportGroupCommandError = async (output, conte
|
|
|
734
741
|
body: await parseBody(output.body, context),
|
|
735
742
|
};
|
|
736
743
|
let response;
|
|
737
|
-
|
|
738
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
744
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
739
745
|
switch (errorCode) {
|
|
740
746
|
case "AccountLimitExceededException":
|
|
741
747
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
@@ -748,10 +754,12 @@ const deserializeAws_json1_1CreateReportGroupCommandError = async (output, conte
|
|
|
748
754
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
749
755
|
default:
|
|
750
756
|
const parsedBody = parsedOutput.body;
|
|
757
|
+
const $metadata = deserializeMetadata(output);
|
|
758
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
751
759
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
752
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
760
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
753
761
|
$fault: "client",
|
|
754
|
-
$metadata
|
|
762
|
+
$metadata,
|
|
755
763
|
});
|
|
756
764
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
757
765
|
}
|
|
@@ -776,8 +784,7 @@ const deserializeAws_json1_1CreateWebhookCommandError = async (output, context)
|
|
|
776
784
|
body: await parseBody(output.body, context),
|
|
777
785
|
};
|
|
778
786
|
let response;
|
|
779
|
-
|
|
780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
788
|
switch (errorCode) {
|
|
782
789
|
case "InvalidInputException":
|
|
783
790
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -793,10 +800,12 @@ const deserializeAws_json1_1CreateWebhookCommandError = async (output, context)
|
|
|
793
800
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
794
801
|
default:
|
|
795
802
|
const parsedBody = parsedOutput.body;
|
|
803
|
+
const $metadata = deserializeMetadata(output);
|
|
804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
796
805
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
797
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
798
807
|
$fault: "client",
|
|
799
|
-
$metadata
|
|
808
|
+
$metadata,
|
|
800
809
|
});
|
|
801
810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
802
811
|
}
|
|
@@ -821,18 +830,19 @@ const deserializeAws_json1_1DeleteBuildBatchCommandError = async (output, contex
|
|
|
821
830
|
body: await parseBody(output.body, context),
|
|
822
831
|
};
|
|
823
832
|
let response;
|
|
824
|
-
|
|
825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
834
|
switch (errorCode) {
|
|
827
835
|
case "InvalidInputException":
|
|
828
836
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
829
837
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
830
838
|
default:
|
|
831
839
|
const parsedBody = parsedOutput.body;
|
|
840
|
+
const $metadata = deserializeMetadata(output);
|
|
841
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
832
842
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
833
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
843
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
834
844
|
$fault: "client",
|
|
835
|
-
$metadata
|
|
845
|
+
$metadata,
|
|
836
846
|
});
|
|
837
847
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
838
848
|
}
|
|
@@ -857,18 +867,19 @@ const deserializeAws_json1_1DeleteProjectCommandError = async (output, context)
|
|
|
857
867
|
body: await parseBody(output.body, context),
|
|
858
868
|
};
|
|
859
869
|
let response;
|
|
860
|
-
|
|
861
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
871
|
switch (errorCode) {
|
|
863
872
|
case "InvalidInputException":
|
|
864
873
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
865
874
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
866
875
|
default:
|
|
867
876
|
const parsedBody = parsedOutput.body;
|
|
877
|
+
const $metadata = deserializeMetadata(output);
|
|
878
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
868
879
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
869
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
880
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
870
881
|
$fault: "client",
|
|
871
|
-
$metadata
|
|
882
|
+
$metadata,
|
|
872
883
|
});
|
|
873
884
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
874
885
|
}
|
|
@@ -893,18 +904,19 @@ const deserializeAws_json1_1DeleteReportCommandError = async (output, context) =
|
|
|
893
904
|
body: await parseBody(output.body, context),
|
|
894
905
|
};
|
|
895
906
|
let response;
|
|
896
|
-
|
|
897
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
908
|
switch (errorCode) {
|
|
899
909
|
case "InvalidInputException":
|
|
900
910
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
901
911
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
902
912
|
default:
|
|
903
913
|
const parsedBody = parsedOutput.body;
|
|
914
|
+
const $metadata = deserializeMetadata(output);
|
|
915
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
904
916
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
905
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
917
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
906
918
|
$fault: "client",
|
|
907
|
-
$metadata
|
|
919
|
+
$metadata,
|
|
908
920
|
});
|
|
909
921
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
910
922
|
}
|
|
@@ -929,18 +941,19 @@ const deserializeAws_json1_1DeleteReportGroupCommandError = async (output, conte
|
|
|
929
941
|
body: await parseBody(output.body, context),
|
|
930
942
|
};
|
|
931
943
|
let response;
|
|
932
|
-
|
|
933
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
945
|
switch (errorCode) {
|
|
935
946
|
case "InvalidInputException":
|
|
936
947
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
937
948
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
938
949
|
default:
|
|
939
950
|
const parsedBody = parsedOutput.body;
|
|
951
|
+
const $metadata = deserializeMetadata(output);
|
|
952
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
940
953
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
941
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
954
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
942
955
|
$fault: "client",
|
|
943
|
-
$metadata
|
|
956
|
+
$metadata,
|
|
944
957
|
});
|
|
945
958
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
946
959
|
}
|
|
@@ -965,18 +978,19 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
965
978
|
body: await parseBody(output.body, context),
|
|
966
979
|
};
|
|
967
980
|
let response;
|
|
968
|
-
|
|
969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
982
|
switch (errorCode) {
|
|
971
983
|
case "InvalidInputException":
|
|
972
984
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
973
985
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
974
986
|
default:
|
|
975
987
|
const parsedBody = parsedOutput.body;
|
|
988
|
+
const $metadata = deserializeMetadata(output);
|
|
989
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
976
990
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
991
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
978
992
|
$fault: "client",
|
|
979
|
-
$metadata
|
|
993
|
+
$metadata,
|
|
980
994
|
});
|
|
981
995
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
982
996
|
}
|
|
@@ -1001,8 +1015,7 @@ const deserializeAws_json1_1DeleteSourceCredentialsCommandError = async (output,
|
|
|
1001
1015
|
body: await parseBody(output.body, context),
|
|
1002
1016
|
};
|
|
1003
1017
|
let response;
|
|
1004
|
-
|
|
1005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
1019
|
switch (errorCode) {
|
|
1007
1020
|
case "InvalidInputException":
|
|
1008
1021
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1012,10 +1025,12 @@ const deserializeAws_json1_1DeleteSourceCredentialsCommandError = async (output,
|
|
|
1012
1025
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1013
1026
|
default:
|
|
1014
1027
|
const parsedBody = parsedOutput.body;
|
|
1028
|
+
const $metadata = deserializeMetadata(output);
|
|
1029
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1015
1030
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1031
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1017
1032
|
$fault: "client",
|
|
1018
|
-
$metadata
|
|
1033
|
+
$metadata,
|
|
1019
1034
|
});
|
|
1020
1035
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1021
1036
|
}
|
|
@@ -1040,8 +1055,7 @@ const deserializeAws_json1_1DeleteWebhookCommandError = async (output, context)
|
|
|
1040
1055
|
body: await parseBody(output.body, context),
|
|
1041
1056
|
};
|
|
1042
1057
|
let response;
|
|
1043
|
-
|
|
1044
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
1059
|
switch (errorCode) {
|
|
1046
1060
|
case "InvalidInputException":
|
|
1047
1061
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1054,10 +1068,12 @@ const deserializeAws_json1_1DeleteWebhookCommandError = async (output, context)
|
|
|
1054
1068
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1055
1069
|
default:
|
|
1056
1070
|
const parsedBody = parsedOutput.body;
|
|
1071
|
+
const $metadata = deserializeMetadata(output);
|
|
1072
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1057
1073
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1058
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1074
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1059
1075
|
$fault: "client",
|
|
1060
|
-
$metadata
|
|
1076
|
+
$metadata,
|
|
1061
1077
|
});
|
|
1062
1078
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1063
1079
|
}
|
|
@@ -1082,18 +1098,19 @@ const deserializeAws_json1_1DescribeCodeCoveragesCommandError = async (output, c
|
|
|
1082
1098
|
body: await parseBody(output.body, context),
|
|
1083
1099
|
};
|
|
1084
1100
|
let response;
|
|
1085
|
-
|
|
1086
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1102
|
switch (errorCode) {
|
|
1088
1103
|
case "InvalidInputException":
|
|
1089
1104
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1090
1105
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1091
1106
|
default:
|
|
1092
1107
|
const parsedBody = parsedOutput.body;
|
|
1108
|
+
const $metadata = deserializeMetadata(output);
|
|
1109
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1093
1110
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1111
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1095
1112
|
$fault: "client",
|
|
1096
|
-
$metadata
|
|
1113
|
+
$metadata,
|
|
1097
1114
|
});
|
|
1098
1115
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1099
1116
|
}
|
|
@@ -1118,8 +1135,7 @@ const deserializeAws_json1_1DescribeTestCasesCommandError = async (output, conte
|
|
|
1118
1135
|
body: await parseBody(output.body, context),
|
|
1119
1136
|
};
|
|
1120
1137
|
let response;
|
|
1121
|
-
|
|
1122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
1139
|
switch (errorCode) {
|
|
1124
1140
|
case "InvalidInputException":
|
|
1125
1141
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1129,10 +1145,12 @@ const deserializeAws_json1_1DescribeTestCasesCommandError = async (output, conte
|
|
|
1129
1145
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1130
1146
|
default:
|
|
1131
1147
|
const parsedBody = parsedOutput.body;
|
|
1148
|
+
const $metadata = deserializeMetadata(output);
|
|
1149
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1132
1150
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1151
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1134
1152
|
$fault: "client",
|
|
1135
|
-
$metadata
|
|
1153
|
+
$metadata,
|
|
1136
1154
|
});
|
|
1137
1155
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1138
1156
|
}
|
|
@@ -1157,8 +1175,7 @@ const deserializeAws_json1_1GetReportGroupTrendCommandError = async (output, con
|
|
|
1157
1175
|
body: await parseBody(output.body, context),
|
|
1158
1176
|
};
|
|
1159
1177
|
let response;
|
|
1160
|
-
|
|
1161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
1179
|
switch (errorCode) {
|
|
1163
1180
|
case "InvalidInputException":
|
|
1164
1181
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1168,10 +1185,12 @@ const deserializeAws_json1_1GetReportGroupTrendCommandError = async (output, con
|
|
|
1168
1185
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1169
1186
|
default:
|
|
1170
1187
|
const parsedBody = parsedOutput.body;
|
|
1188
|
+
const $metadata = deserializeMetadata(output);
|
|
1189
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1171
1190
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1191
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1173
1192
|
$fault: "client",
|
|
1174
|
-
$metadata
|
|
1193
|
+
$metadata,
|
|
1175
1194
|
});
|
|
1176
1195
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1177
1196
|
}
|
|
@@ -1196,8 +1215,7 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1196
1215
|
body: await parseBody(output.body, context),
|
|
1197
1216
|
};
|
|
1198
1217
|
let response;
|
|
1199
|
-
|
|
1200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1219
|
switch (errorCode) {
|
|
1202
1220
|
case "InvalidInputException":
|
|
1203
1221
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1207,10 +1225,12 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
1207
1225
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1208
1226
|
default:
|
|
1209
1227
|
const parsedBody = parsedOutput.body;
|
|
1228
|
+
const $metadata = deserializeMetadata(output);
|
|
1229
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1210
1230
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1231
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1212
1232
|
$fault: "client",
|
|
1213
|
-
$metadata
|
|
1233
|
+
$metadata,
|
|
1214
1234
|
});
|
|
1215
1235
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1216
1236
|
}
|
|
@@ -1235,8 +1255,7 @@ const deserializeAws_json1_1ImportSourceCredentialsCommandError = async (output,
|
|
|
1235
1255
|
body: await parseBody(output.body, context),
|
|
1236
1256
|
};
|
|
1237
1257
|
let response;
|
|
1238
|
-
|
|
1239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1259
|
switch (errorCode) {
|
|
1241
1260
|
case "AccountLimitExceededException":
|
|
1242
1261
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
@@ -1249,10 +1268,12 @@ const deserializeAws_json1_1ImportSourceCredentialsCommandError = async (output,
|
|
|
1249
1268
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1250
1269
|
default:
|
|
1251
1270
|
const parsedBody = parsedOutput.body;
|
|
1271
|
+
const $metadata = deserializeMetadata(output);
|
|
1272
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1252
1273
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1253
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1274
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1254
1275
|
$fault: "client",
|
|
1255
|
-
$metadata
|
|
1276
|
+
$metadata,
|
|
1256
1277
|
});
|
|
1257
1278
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1258
1279
|
}
|
|
@@ -1277,8 +1298,7 @@ const deserializeAws_json1_1InvalidateProjectCacheCommandError = async (output,
|
|
|
1277
1298
|
body: await parseBody(output.body, context),
|
|
1278
1299
|
};
|
|
1279
1300
|
let response;
|
|
1280
|
-
|
|
1281
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1301
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1282
1302
|
switch (errorCode) {
|
|
1283
1303
|
case "InvalidInputException":
|
|
1284
1304
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1288,10 +1308,12 @@ const deserializeAws_json1_1InvalidateProjectCacheCommandError = async (output,
|
|
|
1288
1308
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1289
1309
|
default:
|
|
1290
1310
|
const parsedBody = parsedOutput.body;
|
|
1311
|
+
const $metadata = deserializeMetadata(output);
|
|
1312
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1291
1313
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1292
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1314
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1293
1315
|
$fault: "client",
|
|
1294
|
-
$metadata
|
|
1316
|
+
$metadata,
|
|
1295
1317
|
});
|
|
1296
1318
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1297
1319
|
}
|
|
@@ -1316,18 +1338,19 @@ const deserializeAws_json1_1ListBuildBatchesCommandError = async (output, contex
|
|
|
1316
1338
|
body: await parseBody(output.body, context),
|
|
1317
1339
|
};
|
|
1318
1340
|
let response;
|
|
1319
|
-
|
|
1320
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
1342
|
switch (errorCode) {
|
|
1322
1343
|
case "InvalidInputException":
|
|
1323
1344
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1324
1345
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1325
1346
|
default:
|
|
1326
1347
|
const parsedBody = parsedOutput.body;
|
|
1348
|
+
const $metadata = deserializeMetadata(output);
|
|
1349
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1327
1350
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1351
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1329
1352
|
$fault: "client",
|
|
1330
|
-
$metadata
|
|
1353
|
+
$metadata,
|
|
1331
1354
|
});
|
|
1332
1355
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1333
1356
|
}
|
|
@@ -1352,8 +1375,7 @@ const deserializeAws_json1_1ListBuildBatchesForProjectCommandError = async (outp
|
|
|
1352
1375
|
body: await parseBody(output.body, context),
|
|
1353
1376
|
};
|
|
1354
1377
|
let response;
|
|
1355
|
-
|
|
1356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1379
|
switch (errorCode) {
|
|
1358
1380
|
case "InvalidInputException":
|
|
1359
1381
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1363,10 +1385,12 @@ const deserializeAws_json1_1ListBuildBatchesForProjectCommandError = async (outp
|
|
|
1363
1385
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1364
1386
|
default:
|
|
1365
1387
|
const parsedBody = parsedOutput.body;
|
|
1388
|
+
const $metadata = deserializeMetadata(output);
|
|
1389
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1366
1390
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1391
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1368
1392
|
$fault: "client",
|
|
1369
|
-
$metadata
|
|
1393
|
+
$metadata,
|
|
1370
1394
|
});
|
|
1371
1395
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1372
1396
|
}
|
|
@@ -1391,18 +1415,19 @@ const deserializeAws_json1_1ListBuildsCommandError = async (output, context) =>
|
|
|
1391
1415
|
body: await parseBody(output.body, context),
|
|
1392
1416
|
};
|
|
1393
1417
|
let response;
|
|
1394
|
-
|
|
1395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
1419
|
switch (errorCode) {
|
|
1397
1420
|
case "InvalidInputException":
|
|
1398
1421
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1399
1422
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1400
1423
|
default:
|
|
1401
1424
|
const parsedBody = parsedOutput.body;
|
|
1425
|
+
const $metadata = deserializeMetadata(output);
|
|
1426
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1402
1427
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1403
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1428
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1404
1429
|
$fault: "client",
|
|
1405
|
-
$metadata
|
|
1430
|
+
$metadata,
|
|
1406
1431
|
});
|
|
1407
1432
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1408
1433
|
}
|
|
@@ -1427,8 +1452,7 @@ const deserializeAws_json1_1ListBuildsForProjectCommandError = async (output, co
|
|
|
1427
1452
|
body: await parseBody(output.body, context),
|
|
1428
1453
|
};
|
|
1429
1454
|
let response;
|
|
1430
|
-
|
|
1431
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1455
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1456
|
switch (errorCode) {
|
|
1433
1457
|
case "InvalidInputException":
|
|
1434
1458
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1438,10 +1462,12 @@ const deserializeAws_json1_1ListBuildsForProjectCommandError = async (output, co
|
|
|
1438
1462
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1439
1463
|
default:
|
|
1440
1464
|
const parsedBody = parsedOutput.body;
|
|
1465
|
+
const $metadata = deserializeMetadata(output);
|
|
1466
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1441
1467
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1442
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1468
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1443
1469
|
$fault: "client",
|
|
1444
|
-
$metadata
|
|
1470
|
+
$metadata,
|
|
1445
1471
|
});
|
|
1446
1472
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1447
1473
|
}
|
|
@@ -1466,15 +1492,16 @@ const deserializeAws_json1_1ListCuratedEnvironmentImagesCommandError = async (ou
|
|
|
1466
1492
|
body: await parseBody(output.body, context),
|
|
1467
1493
|
};
|
|
1468
1494
|
let response;
|
|
1469
|
-
|
|
1470
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1495
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
1496
|
switch (errorCode) {
|
|
1472
1497
|
default:
|
|
1473
1498
|
const parsedBody = parsedOutput.body;
|
|
1499
|
+
const $metadata = deserializeMetadata(output);
|
|
1500
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1474
1501
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1475
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1502
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1476
1503
|
$fault: "client",
|
|
1477
|
-
$metadata
|
|
1504
|
+
$metadata,
|
|
1478
1505
|
});
|
|
1479
1506
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1480
1507
|
}
|
|
@@ -1499,18 +1526,19 @@ const deserializeAws_json1_1ListProjectsCommandError = async (output, context) =
|
|
|
1499
1526
|
body: await parseBody(output.body, context),
|
|
1500
1527
|
};
|
|
1501
1528
|
let response;
|
|
1502
|
-
|
|
1503
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1529
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1504
1530
|
switch (errorCode) {
|
|
1505
1531
|
case "InvalidInputException":
|
|
1506
1532
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1507
1533
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1508
1534
|
default:
|
|
1509
1535
|
const parsedBody = parsedOutput.body;
|
|
1536
|
+
const $metadata = deserializeMetadata(output);
|
|
1537
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1510
1538
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1511
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1539
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1512
1540
|
$fault: "client",
|
|
1513
|
-
$metadata
|
|
1541
|
+
$metadata,
|
|
1514
1542
|
});
|
|
1515
1543
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1544
|
}
|
|
@@ -1535,18 +1563,19 @@ const deserializeAws_json1_1ListReportGroupsCommandError = async (output, contex
|
|
|
1535
1563
|
body: await parseBody(output.body, context),
|
|
1536
1564
|
};
|
|
1537
1565
|
let response;
|
|
1538
|
-
|
|
1539
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1566
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1540
1567
|
switch (errorCode) {
|
|
1541
1568
|
case "InvalidInputException":
|
|
1542
1569
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1543
1570
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1544
1571
|
default:
|
|
1545
1572
|
const parsedBody = parsedOutput.body;
|
|
1573
|
+
const $metadata = deserializeMetadata(output);
|
|
1574
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1546
1575
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1547
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1576
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1548
1577
|
$fault: "client",
|
|
1549
|
-
$metadata
|
|
1578
|
+
$metadata,
|
|
1550
1579
|
});
|
|
1551
1580
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1552
1581
|
}
|
|
@@ -1571,18 +1600,19 @@ const deserializeAws_json1_1ListReportsCommandError = async (output, context) =>
|
|
|
1571
1600
|
body: await parseBody(output.body, context),
|
|
1572
1601
|
};
|
|
1573
1602
|
let response;
|
|
1574
|
-
|
|
1575
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1603
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
1604
|
switch (errorCode) {
|
|
1577
1605
|
case "InvalidInputException":
|
|
1578
1606
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1579
1607
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1580
1608
|
default:
|
|
1581
1609
|
const parsedBody = parsedOutput.body;
|
|
1610
|
+
const $metadata = deserializeMetadata(output);
|
|
1611
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1582
1612
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1583
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1613
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1584
1614
|
$fault: "client",
|
|
1585
|
-
$metadata
|
|
1615
|
+
$metadata,
|
|
1586
1616
|
});
|
|
1587
1617
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1588
1618
|
}
|
|
@@ -1607,8 +1637,7 @@ const deserializeAws_json1_1ListReportsForReportGroupCommandError = async (outpu
|
|
|
1607
1637
|
body: await parseBody(output.body, context),
|
|
1608
1638
|
};
|
|
1609
1639
|
let response;
|
|
1610
|
-
|
|
1611
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1641
|
switch (errorCode) {
|
|
1613
1642
|
case "InvalidInputException":
|
|
1614
1643
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1618,10 +1647,12 @@ const deserializeAws_json1_1ListReportsForReportGroupCommandError = async (outpu
|
|
|
1618
1647
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1619
1648
|
default:
|
|
1620
1649
|
const parsedBody = parsedOutput.body;
|
|
1650
|
+
const $metadata = deserializeMetadata(output);
|
|
1651
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1621
1652
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1622
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1653
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1623
1654
|
$fault: "client",
|
|
1624
|
-
$metadata
|
|
1655
|
+
$metadata,
|
|
1625
1656
|
});
|
|
1626
1657
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1627
1658
|
}
|
|
@@ -1646,18 +1677,19 @@ const deserializeAws_json1_1ListSharedProjectsCommandError = async (output, cont
|
|
|
1646
1677
|
body: await parseBody(output.body, context),
|
|
1647
1678
|
};
|
|
1648
1679
|
let response;
|
|
1649
|
-
|
|
1650
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1680
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
1681
|
switch (errorCode) {
|
|
1652
1682
|
case "InvalidInputException":
|
|
1653
1683
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1654
1684
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1655
1685
|
default:
|
|
1656
1686
|
const parsedBody = parsedOutput.body;
|
|
1687
|
+
const $metadata = deserializeMetadata(output);
|
|
1688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1657
1689
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1658
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1659
1691
|
$fault: "client",
|
|
1660
|
-
$metadata
|
|
1692
|
+
$metadata,
|
|
1661
1693
|
});
|
|
1662
1694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1663
1695
|
}
|
|
@@ -1682,18 +1714,19 @@ const deserializeAws_json1_1ListSharedReportGroupsCommandError = async (output,
|
|
|
1682
1714
|
body: await parseBody(output.body, context),
|
|
1683
1715
|
};
|
|
1684
1716
|
let response;
|
|
1685
|
-
|
|
1686
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1687
1718
|
switch (errorCode) {
|
|
1688
1719
|
case "InvalidInputException":
|
|
1689
1720
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1690
1721
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1691
1722
|
default:
|
|
1692
1723
|
const parsedBody = parsedOutput.body;
|
|
1724
|
+
const $metadata = deserializeMetadata(output);
|
|
1725
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1693
1726
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1694
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1727
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1695
1728
|
$fault: "client",
|
|
1696
|
-
$metadata
|
|
1729
|
+
$metadata,
|
|
1697
1730
|
});
|
|
1698
1731
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1699
1732
|
}
|
|
@@ -1718,18 +1751,19 @@ const deserializeAws_json1_1ListSourceCredentialsCommandError = async (output, c
|
|
|
1718
1751
|
body: await parseBody(output.body, context),
|
|
1719
1752
|
};
|
|
1720
1753
|
let response;
|
|
1721
|
-
|
|
1722
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1755
|
switch (errorCode) {
|
|
1724
1756
|
case "InvalidInputException":
|
|
1725
1757
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1726
1758
|
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
1727
1759
|
default:
|
|
1728
1760
|
const parsedBody = parsedOutput.body;
|
|
1761
|
+
const $metadata = deserializeMetadata(output);
|
|
1762
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1729
1763
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1764
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1731
1765
|
$fault: "client",
|
|
1732
|
-
$metadata
|
|
1766
|
+
$metadata,
|
|
1733
1767
|
});
|
|
1734
1768
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1769
|
}
|
|
@@ -1754,8 +1788,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1754
1788
|
body: await parseBody(output.body, context),
|
|
1755
1789
|
};
|
|
1756
1790
|
let response;
|
|
1757
|
-
|
|
1758
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1791
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1759
1792
|
switch (errorCode) {
|
|
1760
1793
|
case "InvalidInputException":
|
|
1761
1794
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1765,10 +1798,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
1765
1798
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1766
1799
|
default:
|
|
1767
1800
|
const parsedBody = parsedOutput.body;
|
|
1801
|
+
const $metadata = deserializeMetadata(output);
|
|
1802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1768
1803
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1769
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1770
1805
|
$fault: "client",
|
|
1771
|
-
$metadata
|
|
1806
|
+
$metadata,
|
|
1772
1807
|
});
|
|
1773
1808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1774
1809
|
}
|
|
@@ -1793,8 +1828,7 @@ const deserializeAws_json1_1RetryBuildCommandError = async (output, context) =>
|
|
|
1793
1828
|
body: await parseBody(output.body, context),
|
|
1794
1829
|
};
|
|
1795
1830
|
let response;
|
|
1796
|
-
|
|
1797
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1798
1832
|
switch (errorCode) {
|
|
1799
1833
|
case "AccountLimitExceededException":
|
|
1800
1834
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
@@ -1807,10 +1841,12 @@ const deserializeAws_json1_1RetryBuildCommandError = async (output, context) =>
|
|
|
1807
1841
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1808
1842
|
default:
|
|
1809
1843
|
const parsedBody = parsedOutput.body;
|
|
1844
|
+
const $metadata = deserializeMetadata(output);
|
|
1845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1810
1846
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1811
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1812
1848
|
$fault: "client",
|
|
1813
|
-
$metadata
|
|
1849
|
+
$metadata,
|
|
1814
1850
|
});
|
|
1815
1851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1816
1852
|
}
|
|
@@ -1835,8 +1871,7 @@ const deserializeAws_json1_1RetryBuildBatchCommandError = async (output, context
|
|
|
1835
1871
|
body: await parseBody(output.body, context),
|
|
1836
1872
|
};
|
|
1837
1873
|
let response;
|
|
1838
|
-
|
|
1839
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1874
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1875
|
switch (errorCode) {
|
|
1841
1876
|
case "InvalidInputException":
|
|
1842
1877
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1846,10 +1881,12 @@ const deserializeAws_json1_1RetryBuildBatchCommandError = async (output, context
|
|
|
1846
1881
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1847
1882
|
default:
|
|
1848
1883
|
const parsedBody = parsedOutput.body;
|
|
1884
|
+
const $metadata = deserializeMetadata(output);
|
|
1885
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1849
1886
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1850
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1887
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1851
1888
|
$fault: "client",
|
|
1852
|
-
$metadata
|
|
1889
|
+
$metadata,
|
|
1853
1890
|
});
|
|
1854
1891
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1855
1892
|
}
|
|
@@ -1874,8 +1911,7 @@ const deserializeAws_json1_1StartBuildCommandError = async (output, context) =>
|
|
|
1874
1911
|
body: await parseBody(output.body, context),
|
|
1875
1912
|
};
|
|
1876
1913
|
let response;
|
|
1877
|
-
|
|
1878
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1879
1915
|
switch (errorCode) {
|
|
1880
1916
|
case "AccountLimitExceededException":
|
|
1881
1917
|
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
@@ -1888,10 +1924,12 @@ const deserializeAws_json1_1StartBuildCommandError = async (output, context) =>
|
|
|
1888
1924
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1889
1925
|
default:
|
|
1890
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1891
1929
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1892
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1893
1931
|
$fault: "client",
|
|
1894
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1895
1933
|
});
|
|
1896
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1897
1935
|
}
|
|
@@ -1916,8 +1954,7 @@ const deserializeAws_json1_1StartBuildBatchCommandError = async (output, context
|
|
|
1916
1954
|
body: await parseBody(output.body, context),
|
|
1917
1955
|
};
|
|
1918
1956
|
let response;
|
|
1919
|
-
|
|
1920
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
1958
|
switch (errorCode) {
|
|
1922
1959
|
case "InvalidInputException":
|
|
1923
1960
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1927,10 +1964,12 @@ const deserializeAws_json1_1StartBuildBatchCommandError = async (output, context
|
|
|
1927
1964
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1928
1965
|
default:
|
|
1929
1966
|
const parsedBody = parsedOutput.body;
|
|
1967
|
+
const $metadata = deserializeMetadata(output);
|
|
1968
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1930
1969
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1931
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1932
1971
|
$fault: "client",
|
|
1933
|
-
$metadata
|
|
1972
|
+
$metadata,
|
|
1934
1973
|
});
|
|
1935
1974
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1936
1975
|
}
|
|
@@ -1955,8 +1994,7 @@ const deserializeAws_json1_1StopBuildCommandError = async (output, context) => {
|
|
|
1955
1994
|
body: await parseBody(output.body, context),
|
|
1956
1995
|
};
|
|
1957
1996
|
let response;
|
|
1958
|
-
|
|
1959
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
1998
|
switch (errorCode) {
|
|
1961
1999
|
case "InvalidInputException":
|
|
1962
2000
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -1966,10 +2004,12 @@ const deserializeAws_json1_1StopBuildCommandError = async (output, context) => {
|
|
|
1966
2004
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1967
2005
|
default:
|
|
1968
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
|
+
const $metadata = deserializeMetadata(output);
|
|
2008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1969
2009
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
1970
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1971
2011
|
$fault: "client",
|
|
1972
|
-
$metadata
|
|
2012
|
+
$metadata,
|
|
1973
2013
|
});
|
|
1974
2014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1975
2015
|
}
|
|
@@ -1994,8 +2034,7 @@ const deserializeAws_json1_1StopBuildBatchCommandError = async (output, context)
|
|
|
1994
2034
|
body: await parseBody(output.body, context),
|
|
1995
2035
|
};
|
|
1996
2036
|
let response;
|
|
1997
|
-
|
|
1998
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1999
2038
|
switch (errorCode) {
|
|
2000
2039
|
case "InvalidInputException":
|
|
2001
2040
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2005,10 +2044,12 @@ const deserializeAws_json1_1StopBuildBatchCommandError = async (output, context)
|
|
|
2005
2044
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2006
2045
|
default:
|
|
2007
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2008
2049
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2009
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2010
2051
|
$fault: "client",
|
|
2011
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2012
2053
|
});
|
|
2013
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2014
2055
|
}
|
|
@@ -2033,8 +2074,7 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
|
|
|
2033
2074
|
body: await parseBody(output.body, context),
|
|
2034
2075
|
};
|
|
2035
2076
|
let response;
|
|
2036
|
-
|
|
2037
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2038
2078
|
switch (errorCode) {
|
|
2039
2079
|
case "InvalidInputException":
|
|
2040
2080
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2044,10 +2084,12 @@ const deserializeAws_json1_1UpdateProjectCommandError = async (output, context)
|
|
|
2044
2084
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2045
2085
|
default:
|
|
2046
2086
|
const parsedBody = parsedOutput.body;
|
|
2087
|
+
const $metadata = deserializeMetadata(output);
|
|
2088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2047
2089
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2048
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2049
2091
|
$fault: "client",
|
|
2050
|
-
$metadata
|
|
2092
|
+
$metadata,
|
|
2051
2093
|
});
|
|
2052
2094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2053
2095
|
}
|
|
@@ -2072,8 +2114,7 @@ const deserializeAws_json1_1UpdateProjectVisibilityCommandError = async (output,
|
|
|
2072
2114
|
body: await parseBody(output.body, context),
|
|
2073
2115
|
};
|
|
2074
2116
|
let response;
|
|
2075
|
-
|
|
2076
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
2118
|
switch (errorCode) {
|
|
2078
2119
|
case "InvalidInputException":
|
|
2079
2120
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2083,10 +2124,12 @@ const deserializeAws_json1_1UpdateProjectVisibilityCommandError = async (output,
|
|
|
2083
2124
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2084
2125
|
default:
|
|
2085
2126
|
const parsedBody = parsedOutput.body;
|
|
2127
|
+
const $metadata = deserializeMetadata(output);
|
|
2128
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2086
2129
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2087
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2088
2131
|
$fault: "client",
|
|
2089
|
-
$metadata
|
|
2132
|
+
$metadata,
|
|
2090
2133
|
});
|
|
2091
2134
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2092
2135
|
}
|
|
@@ -2111,8 +2154,7 @@ const deserializeAws_json1_1UpdateReportGroupCommandError = async (output, conte
|
|
|
2111
2154
|
body: await parseBody(output.body, context),
|
|
2112
2155
|
};
|
|
2113
2156
|
let response;
|
|
2114
|
-
|
|
2115
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2158
|
switch (errorCode) {
|
|
2117
2159
|
case "InvalidInputException":
|
|
2118
2160
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2122,10 +2164,12 @@ const deserializeAws_json1_1UpdateReportGroupCommandError = async (output, conte
|
|
|
2122
2164
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2123
2165
|
default:
|
|
2124
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2169
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2171
|
$fault: "client",
|
|
2128
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2129
2173
|
});
|
|
2130
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2131
2175
|
}
|
|
@@ -2150,8 +2194,7 @@ const deserializeAws_json1_1UpdateWebhookCommandError = async (output, context)
|
|
|
2150
2194
|
body: await parseBody(output.body, context),
|
|
2151
2195
|
};
|
|
2152
2196
|
let response;
|
|
2153
|
-
|
|
2154
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
2198
|
switch (errorCode) {
|
|
2156
2199
|
case "InvalidInputException":
|
|
2157
2200
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
@@ -2164,10 +2207,12 @@ const deserializeAws_json1_1UpdateWebhookCommandError = async (output, context)
|
|
|
2164
2207
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2165
2208
|
default:
|
|
2166
2209
|
const parsedBody = parsedOutput.body;
|
|
2210
|
+
const $metadata = deserializeMetadata(output);
|
|
2211
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2167
2212
|
response = new CodeBuildServiceException_1.CodeBuildServiceException({
|
|
2168
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2213
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2169
2214
|
$fault: "client",
|
|
2170
|
-
$metadata
|
|
2215
|
+
$metadata,
|
|
2171
2216
|
});
|
|
2172
2217
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2173
2218
|
}
|
|
@@ -2219,53 +2264,47 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
2219
2264
|
};
|
|
2220
2265
|
const serializeAws_json1_1BatchDeleteBuildsInput = (input, context) => {
|
|
2221
2266
|
return {
|
|
2222
|
-
...(input.ids
|
|
2267
|
+
...(input.ids != null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }),
|
|
2223
2268
|
};
|
|
2224
2269
|
};
|
|
2225
2270
|
const serializeAws_json1_1BatchGetBuildBatchesInput = (input, context) => {
|
|
2226
2271
|
return {
|
|
2227
|
-
...(input.ids
|
|
2228
|
-
input.ids !== null && { ids: serializeAws_json1_1BuildBatchIds(input.ids, context) }),
|
|
2272
|
+
...(input.ids != null && { ids: serializeAws_json1_1BuildBatchIds(input.ids, context) }),
|
|
2229
2273
|
};
|
|
2230
2274
|
};
|
|
2231
2275
|
const serializeAws_json1_1BatchGetBuildsInput = (input, context) => {
|
|
2232
2276
|
return {
|
|
2233
|
-
...(input.ids
|
|
2277
|
+
...(input.ids != null && { ids: serializeAws_json1_1BuildIds(input.ids, context) }),
|
|
2234
2278
|
};
|
|
2235
2279
|
};
|
|
2236
2280
|
const serializeAws_json1_1BatchGetProjectsInput = (input, context) => {
|
|
2237
2281
|
return {
|
|
2238
|
-
...(input.names
|
|
2239
|
-
input.names !== null && { names: serializeAws_json1_1ProjectNames(input.names, context) }),
|
|
2282
|
+
...(input.names != null && { names: serializeAws_json1_1ProjectNames(input.names, context) }),
|
|
2240
2283
|
};
|
|
2241
2284
|
};
|
|
2242
2285
|
const serializeAws_json1_1BatchGetReportGroupsInput = (input, context) => {
|
|
2243
2286
|
return {
|
|
2244
|
-
...(input.reportGroupArns
|
|
2245
|
-
input.reportGroupArns !== null && {
|
|
2287
|
+
...(input.reportGroupArns != null && {
|
|
2246
2288
|
reportGroupArns: serializeAws_json1_1ReportGroupArns(input.reportGroupArns, context),
|
|
2247
2289
|
}),
|
|
2248
2290
|
};
|
|
2249
2291
|
};
|
|
2250
2292
|
const serializeAws_json1_1BatchGetReportsInput = (input, context) => {
|
|
2251
2293
|
return {
|
|
2252
|
-
...(input.reportArns
|
|
2253
|
-
input.reportArns !== null && { reportArns: serializeAws_json1_1ReportArns(input.reportArns, context) }),
|
|
2294
|
+
...(input.reportArns != null && { reportArns: serializeAws_json1_1ReportArns(input.reportArns, context) }),
|
|
2254
2295
|
};
|
|
2255
2296
|
};
|
|
2256
2297
|
const serializeAws_json1_1BatchRestrictions = (input, context) => {
|
|
2257
2298
|
return {
|
|
2258
|
-
...(input.computeTypesAllowed
|
|
2259
|
-
input.computeTypesAllowed !== null && {
|
|
2299
|
+
...(input.computeTypesAllowed != null && {
|
|
2260
2300
|
computeTypesAllowed: serializeAws_json1_1ComputeTypesAllowed(input.computeTypesAllowed, context),
|
|
2261
2301
|
}),
|
|
2262
|
-
...(input.maximumBuildsAllowed
|
|
2263
|
-
input.maximumBuildsAllowed !== null && { maximumBuildsAllowed: input.maximumBuildsAllowed }),
|
|
2302
|
+
...(input.maximumBuildsAllowed != null && { maximumBuildsAllowed: input.maximumBuildsAllowed }),
|
|
2264
2303
|
};
|
|
2265
2304
|
};
|
|
2266
2305
|
const serializeAws_json1_1BuildBatchFilter = (input, context) => {
|
|
2267
2306
|
return {
|
|
2268
|
-
...(input.status
|
|
2307
|
+
...(input.status != null && { status: input.status }),
|
|
2269
2308
|
};
|
|
2270
2309
|
};
|
|
2271
2310
|
const serializeAws_json1_1BuildBatchIds = (input, context) => {
|
|
@@ -2290,15 +2329,15 @@ const serializeAws_json1_1BuildIds = (input, context) => {
|
|
|
2290
2329
|
};
|
|
2291
2330
|
const serializeAws_json1_1BuildStatusConfig = (input, context) => {
|
|
2292
2331
|
return {
|
|
2293
|
-
...(input.context
|
|
2294
|
-
...(input.targetUrl
|
|
2332
|
+
...(input.context != null && { context: input.context }),
|
|
2333
|
+
...(input.targetUrl != null && { targetUrl: input.targetUrl }),
|
|
2295
2334
|
};
|
|
2296
2335
|
};
|
|
2297
2336
|
const serializeAws_json1_1CloudWatchLogsConfig = (input, context) => {
|
|
2298
2337
|
return {
|
|
2299
|
-
...(input.groupName
|
|
2300
|
-
...(input.status
|
|
2301
|
-
...(input.streamName
|
|
2338
|
+
...(input.groupName != null && { groupName: input.groupName }),
|
|
2339
|
+
...(input.status != null && { status: input.status }),
|
|
2340
|
+
...(input.streamName != null && { streamName: input.streamName }),
|
|
2302
2341
|
};
|
|
2303
2342
|
};
|
|
2304
2343
|
const serializeAws_json1_1ComputeTypesAllowed = (input, context) => {
|
|
@@ -2313,142 +2352,123 @@ const serializeAws_json1_1ComputeTypesAllowed = (input, context) => {
|
|
|
2313
2352
|
};
|
|
2314
2353
|
const serializeAws_json1_1CreateProjectInput = (input, context) => {
|
|
2315
2354
|
return {
|
|
2316
|
-
...(input.artifacts
|
|
2317
|
-
|
|
2318
|
-
...(input.
|
|
2319
|
-
...(input.buildBatchConfig !== undefined &&
|
|
2320
|
-
input.buildBatchConfig !== null && {
|
|
2355
|
+
...(input.artifacts != null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) }),
|
|
2356
|
+
...(input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled }),
|
|
2357
|
+
...(input.buildBatchConfig != null && {
|
|
2321
2358
|
buildBatchConfig: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfig, context),
|
|
2322
2359
|
}),
|
|
2323
|
-
...(input.cache
|
|
2324
|
-
|
|
2325
|
-
...(input.
|
|
2326
|
-
|
|
2327
|
-
...(input.
|
|
2328
|
-
...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
|
|
2329
|
-
...(input.environment !== undefined &&
|
|
2330
|
-
input.environment !== null && {
|
|
2360
|
+
...(input.cache != null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) }),
|
|
2361
|
+
...(input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit }),
|
|
2362
|
+
...(input.description != null && { description: input.description }),
|
|
2363
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
2364
|
+
...(input.environment != null && {
|
|
2331
2365
|
environment: serializeAws_json1_1ProjectEnvironment(input.environment, context),
|
|
2332
2366
|
}),
|
|
2333
|
-
...(input.fileSystemLocations
|
|
2334
|
-
input.fileSystemLocations !== null && {
|
|
2367
|
+
...(input.fileSystemLocations != null && {
|
|
2335
2368
|
fileSystemLocations: serializeAws_json1_1ProjectFileSystemLocations(input.fileSystemLocations, context),
|
|
2336
2369
|
}),
|
|
2337
|
-
...(input.logsConfig
|
|
2338
|
-
|
|
2339
|
-
...(input.
|
|
2340
|
-
...(input.
|
|
2341
|
-
input.queuedTimeoutInMinutes !== null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
|
|
2342
|
-
...(input.secondaryArtifacts !== undefined &&
|
|
2343
|
-
input.secondaryArtifacts !== null && {
|
|
2370
|
+
...(input.logsConfig != null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) }),
|
|
2371
|
+
...(input.name != null && { name: input.name }),
|
|
2372
|
+
...(input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
|
|
2373
|
+
...(input.secondaryArtifacts != null && {
|
|
2344
2374
|
secondaryArtifacts: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifacts, context),
|
|
2345
2375
|
}),
|
|
2346
|
-
...(input.secondarySourceVersions
|
|
2347
|
-
input.secondarySourceVersions !== null && {
|
|
2376
|
+
...(input.secondarySourceVersions != null && {
|
|
2348
2377
|
secondarySourceVersions: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
|
|
2349
2378
|
}),
|
|
2350
|
-
...(input.secondarySources
|
|
2351
|
-
input.secondarySources !== null && {
|
|
2379
|
+
...(input.secondarySources != null && {
|
|
2352
2380
|
secondarySources: serializeAws_json1_1ProjectSources(input.secondarySources, context),
|
|
2353
2381
|
}),
|
|
2354
|
-
...(input.serviceRole
|
|
2355
|
-
...(input.source
|
|
2356
|
-
|
|
2357
|
-
...(input.
|
|
2358
|
-
...(input.
|
|
2359
|
-
...(input.
|
|
2360
|
-
input.timeoutInMinutes !== null && { timeoutInMinutes: input.timeoutInMinutes }),
|
|
2361
|
-
...(input.vpcConfig !== undefined &&
|
|
2362
|
-
input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }),
|
|
2382
|
+
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
2383
|
+
...(input.source != null && { source: serializeAws_json1_1ProjectSource(input.source, context) }),
|
|
2384
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
2385
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2386
|
+
...(input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes }),
|
|
2387
|
+
...(input.vpcConfig != null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }),
|
|
2363
2388
|
};
|
|
2364
2389
|
};
|
|
2365
2390
|
const serializeAws_json1_1CreateReportGroupInput = (input, context) => {
|
|
2366
2391
|
return {
|
|
2367
|
-
...(input.exportConfig
|
|
2368
|
-
input.exportConfig !== null && {
|
|
2392
|
+
...(input.exportConfig != null && {
|
|
2369
2393
|
exportConfig: serializeAws_json1_1ReportExportConfig(input.exportConfig, context),
|
|
2370
2394
|
}),
|
|
2371
|
-
...(input.name
|
|
2372
|
-
...(input.tags
|
|
2373
|
-
...(input.type
|
|
2395
|
+
...(input.name != null && { name: input.name }),
|
|
2396
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2397
|
+
...(input.type != null && { type: input.type }),
|
|
2374
2398
|
};
|
|
2375
2399
|
};
|
|
2376
2400
|
const serializeAws_json1_1CreateWebhookInput = (input, context) => {
|
|
2377
2401
|
return {
|
|
2378
|
-
...(input.branchFilter
|
|
2379
|
-
...(input.buildType
|
|
2380
|
-
...(input.filterGroups
|
|
2381
|
-
|
|
2382
|
-
...(input.projectName !== undefined && input.projectName !== null && { projectName: input.projectName }),
|
|
2402
|
+
...(input.branchFilter != null && { branchFilter: input.branchFilter }),
|
|
2403
|
+
...(input.buildType != null && { buildType: input.buildType }),
|
|
2404
|
+
...(input.filterGroups != null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) }),
|
|
2405
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2383
2406
|
};
|
|
2384
2407
|
};
|
|
2385
2408
|
const serializeAws_json1_1DeleteBuildBatchInput = (input, context) => {
|
|
2386
2409
|
return {
|
|
2387
|
-
...(input.id
|
|
2410
|
+
...(input.id != null && { id: input.id }),
|
|
2388
2411
|
};
|
|
2389
2412
|
};
|
|
2390
2413
|
const serializeAws_json1_1DeleteProjectInput = (input, context) => {
|
|
2391
2414
|
return {
|
|
2392
|
-
...(input.name
|
|
2415
|
+
...(input.name != null && { name: input.name }),
|
|
2393
2416
|
};
|
|
2394
2417
|
};
|
|
2395
2418
|
const serializeAws_json1_1DeleteReportGroupInput = (input, context) => {
|
|
2396
2419
|
return {
|
|
2397
|
-
...(input.arn
|
|
2398
|
-
...(input.deleteReports
|
|
2420
|
+
...(input.arn != null && { arn: input.arn }),
|
|
2421
|
+
...(input.deleteReports != null && { deleteReports: input.deleteReports }),
|
|
2399
2422
|
};
|
|
2400
2423
|
};
|
|
2401
2424
|
const serializeAws_json1_1DeleteReportInput = (input, context) => {
|
|
2402
2425
|
return {
|
|
2403
|
-
...(input.arn
|
|
2426
|
+
...(input.arn != null && { arn: input.arn }),
|
|
2404
2427
|
};
|
|
2405
2428
|
};
|
|
2406
2429
|
const serializeAws_json1_1DeleteResourcePolicyInput = (input, context) => {
|
|
2407
2430
|
return {
|
|
2408
|
-
...(input.resourceArn
|
|
2431
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2409
2432
|
};
|
|
2410
2433
|
};
|
|
2411
2434
|
const serializeAws_json1_1DeleteSourceCredentialsInput = (input, context) => {
|
|
2412
2435
|
return {
|
|
2413
|
-
...(input.arn
|
|
2436
|
+
...(input.arn != null && { arn: input.arn }),
|
|
2414
2437
|
};
|
|
2415
2438
|
};
|
|
2416
2439
|
const serializeAws_json1_1DeleteWebhookInput = (input, context) => {
|
|
2417
2440
|
return {
|
|
2418
|
-
...(input.projectName
|
|
2441
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2419
2442
|
};
|
|
2420
2443
|
};
|
|
2421
2444
|
const serializeAws_json1_1DescribeCodeCoveragesInput = (input, context) => {
|
|
2422
2445
|
return {
|
|
2423
|
-
...(input.maxLineCoveragePercentage
|
|
2424
|
-
input.maxLineCoveragePercentage !== null && {
|
|
2446
|
+
...(input.maxLineCoveragePercentage != null && {
|
|
2425
2447
|
maxLineCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.maxLineCoveragePercentage),
|
|
2426
2448
|
}),
|
|
2427
|
-
...(input.maxResults
|
|
2428
|
-
...(input.minLineCoveragePercentage
|
|
2429
|
-
input.minLineCoveragePercentage !== null && {
|
|
2449
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2450
|
+
...(input.minLineCoveragePercentage != null && {
|
|
2430
2451
|
minLineCoveragePercentage: (0, smithy_client_1.serializeFloat)(input.minLineCoveragePercentage),
|
|
2431
2452
|
}),
|
|
2432
|
-
...(input.nextToken
|
|
2433
|
-
...(input.reportArn
|
|
2434
|
-
...(input.sortBy
|
|
2435
|
-
...(input.sortOrder
|
|
2453
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2454
|
+
...(input.reportArn != null && { reportArn: input.reportArn }),
|
|
2455
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2456
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2436
2457
|
};
|
|
2437
2458
|
};
|
|
2438
2459
|
const serializeAws_json1_1DescribeTestCasesInput = (input, context) => {
|
|
2439
2460
|
return {
|
|
2440
|
-
...(input.filter
|
|
2441
|
-
|
|
2442
|
-
...(input.
|
|
2443
|
-
...(input.
|
|
2444
|
-
...(input.reportArn !== undefined && input.reportArn !== null && { reportArn: input.reportArn }),
|
|
2461
|
+
...(input.filter != null && { filter: serializeAws_json1_1TestCaseFilter(input.filter, context) }),
|
|
2462
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2463
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2464
|
+
...(input.reportArn != null && { reportArn: input.reportArn }),
|
|
2445
2465
|
};
|
|
2446
2466
|
};
|
|
2447
2467
|
const serializeAws_json1_1EnvironmentVariable = (input, context) => {
|
|
2448
2468
|
return {
|
|
2449
|
-
...(input.name
|
|
2450
|
-
...(input.type
|
|
2451
|
-
...(input.value
|
|
2469
|
+
...(input.name != null && { name: input.name }),
|
|
2470
|
+
...(input.type != null && { type: input.type }),
|
|
2471
|
+
...(input.value != null && { value: input.value }),
|
|
2452
2472
|
};
|
|
2453
2473
|
};
|
|
2454
2474
|
const serializeAws_json1_1EnvironmentVariables = (input, context) => {
|
|
@@ -2483,68 +2503,63 @@ const serializeAws_json1_1FilterGroups = (input, context) => {
|
|
|
2483
2503
|
};
|
|
2484
2504
|
const serializeAws_json1_1GetReportGroupTrendInput = (input, context) => {
|
|
2485
2505
|
return {
|
|
2486
|
-
...(input.numOfReports
|
|
2487
|
-
...(input.reportGroupArn
|
|
2488
|
-
|
|
2489
|
-
...(input.trendField !== undefined && input.trendField !== null && { trendField: input.trendField }),
|
|
2506
|
+
...(input.numOfReports != null && { numOfReports: input.numOfReports }),
|
|
2507
|
+
...(input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn }),
|
|
2508
|
+
...(input.trendField != null && { trendField: input.trendField }),
|
|
2490
2509
|
};
|
|
2491
2510
|
};
|
|
2492
2511
|
const serializeAws_json1_1GetResourcePolicyInput = (input, context) => {
|
|
2493
2512
|
return {
|
|
2494
|
-
...(input.resourceArn
|
|
2513
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2495
2514
|
};
|
|
2496
2515
|
};
|
|
2497
2516
|
const serializeAws_json1_1GitSubmodulesConfig = (input, context) => {
|
|
2498
2517
|
return {
|
|
2499
|
-
...(input.fetchSubmodules
|
|
2500
|
-
input.fetchSubmodules !== null && { fetchSubmodules: input.fetchSubmodules }),
|
|
2518
|
+
...(input.fetchSubmodules != null && { fetchSubmodules: input.fetchSubmodules }),
|
|
2501
2519
|
};
|
|
2502
2520
|
};
|
|
2503
2521
|
const serializeAws_json1_1ImportSourceCredentialsInput = (input, context) => {
|
|
2504
2522
|
return {
|
|
2505
|
-
...(input.authType
|
|
2506
|
-
...(input.serverType
|
|
2507
|
-
...(input.shouldOverwrite
|
|
2508
|
-
|
|
2509
|
-
...(input.
|
|
2510
|
-
...(input.username !== undefined && input.username !== null && { username: input.username }),
|
|
2523
|
+
...(input.authType != null && { authType: input.authType }),
|
|
2524
|
+
...(input.serverType != null && { serverType: input.serverType }),
|
|
2525
|
+
...(input.shouldOverwrite != null && { shouldOverwrite: input.shouldOverwrite }),
|
|
2526
|
+
...(input.token != null && { token: input.token }),
|
|
2527
|
+
...(input.username != null && { username: input.username }),
|
|
2511
2528
|
};
|
|
2512
2529
|
};
|
|
2513
2530
|
const serializeAws_json1_1InvalidateProjectCacheInput = (input, context) => {
|
|
2514
2531
|
return {
|
|
2515
|
-
...(input.projectName
|
|
2532
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2516
2533
|
};
|
|
2517
2534
|
};
|
|
2518
2535
|
const serializeAws_json1_1ListBuildBatchesForProjectInput = (input, context) => {
|
|
2519
2536
|
return {
|
|
2520
|
-
...(input.filter
|
|
2521
|
-
|
|
2522
|
-
...(input.
|
|
2523
|
-
...(input.
|
|
2524
|
-
...(input.
|
|
2525
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2537
|
+
...(input.filter != null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) }),
|
|
2538
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2539
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2540
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2541
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2526
2542
|
};
|
|
2527
2543
|
};
|
|
2528
2544
|
const serializeAws_json1_1ListBuildBatchesInput = (input, context) => {
|
|
2529
2545
|
return {
|
|
2530
|
-
...(input.filter
|
|
2531
|
-
|
|
2532
|
-
...(input.
|
|
2533
|
-
...(input.
|
|
2534
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2546
|
+
...(input.filter != null && { filter: serializeAws_json1_1BuildBatchFilter(input.filter, context) }),
|
|
2547
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2548
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2549
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2535
2550
|
};
|
|
2536
2551
|
};
|
|
2537
2552
|
const serializeAws_json1_1ListBuildsForProjectInput = (input, context) => {
|
|
2538
2553
|
return {
|
|
2539
|
-
...(input.nextToken
|
|
2540
|
-
...(input.projectName
|
|
2541
|
-
...(input.sortOrder
|
|
2554
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2555
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2556
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2542
2557
|
};
|
|
2543
2558
|
};
|
|
2544
2559
|
const serializeAws_json1_1ListBuildsInput = (input, context) => {
|
|
2545
2560
|
return {
|
|
2546
|
-
...(input.nextToken
|
|
2547
|
-
...(input.sortOrder
|
|
2561
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2562
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2548
2563
|
};
|
|
2549
2564
|
};
|
|
2550
2565
|
const serializeAws_json1_1ListCuratedEnvironmentImagesInput = (input, context) => {
|
|
@@ -2552,53 +2567,50 @@ const serializeAws_json1_1ListCuratedEnvironmentImagesInput = (input, context) =
|
|
|
2552
2567
|
};
|
|
2553
2568
|
const serializeAws_json1_1ListProjectsInput = (input, context) => {
|
|
2554
2569
|
return {
|
|
2555
|
-
...(input.nextToken
|
|
2556
|
-
...(input.sortBy
|
|
2557
|
-
...(input.sortOrder
|
|
2570
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2571
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2572
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2558
2573
|
};
|
|
2559
2574
|
};
|
|
2560
2575
|
const serializeAws_json1_1ListReportGroupsInput = (input, context) => {
|
|
2561
2576
|
return {
|
|
2562
|
-
...(input.maxResults
|
|
2563
|
-
...(input.nextToken
|
|
2564
|
-
...(input.sortBy
|
|
2565
|
-
...(input.sortOrder
|
|
2577
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2578
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2579
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2580
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2566
2581
|
};
|
|
2567
2582
|
};
|
|
2568
2583
|
const serializeAws_json1_1ListReportsForReportGroupInput = (input, context) => {
|
|
2569
2584
|
return {
|
|
2570
|
-
...(input.filter
|
|
2571
|
-
|
|
2572
|
-
...(input.
|
|
2573
|
-
...(input.
|
|
2574
|
-
...(input.
|
|
2575
|
-
input.reportGroupArn !== null && { reportGroupArn: input.reportGroupArn }),
|
|
2576
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2585
|
+
...(input.filter != null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) }),
|
|
2586
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2587
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2588
|
+
...(input.reportGroupArn != null && { reportGroupArn: input.reportGroupArn }),
|
|
2589
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2577
2590
|
};
|
|
2578
2591
|
};
|
|
2579
2592
|
const serializeAws_json1_1ListReportsInput = (input, context) => {
|
|
2580
2593
|
return {
|
|
2581
|
-
...(input.filter
|
|
2582
|
-
|
|
2583
|
-
...(input.
|
|
2584
|
-
...(input.
|
|
2585
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
2594
|
+
...(input.filter != null && { filter: serializeAws_json1_1ReportFilter(input.filter, context) }),
|
|
2595
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2596
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2597
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2586
2598
|
};
|
|
2587
2599
|
};
|
|
2588
2600
|
const serializeAws_json1_1ListSharedProjectsInput = (input, context) => {
|
|
2589
2601
|
return {
|
|
2590
|
-
...(input.maxResults
|
|
2591
|
-
...(input.nextToken
|
|
2592
|
-
...(input.sortBy
|
|
2593
|
-
...(input.sortOrder
|
|
2602
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2603
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2604
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2605
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2594
2606
|
};
|
|
2595
2607
|
};
|
|
2596
2608
|
const serializeAws_json1_1ListSharedReportGroupsInput = (input, context) => {
|
|
2597
2609
|
return {
|
|
2598
|
-
...(input.maxResults
|
|
2599
|
-
...(input.nextToken
|
|
2600
|
-
...(input.sortBy
|
|
2601
|
-
...(input.sortOrder
|
|
2610
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2611
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2612
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
2613
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2602
2614
|
};
|
|
2603
2615
|
};
|
|
2604
2616
|
const serializeAws_json1_1ListSourceCredentialsInput = (input, context) => {
|
|
@@ -2606,30 +2618,24 @@ const serializeAws_json1_1ListSourceCredentialsInput = (input, context) => {
|
|
|
2606
2618
|
};
|
|
2607
2619
|
const serializeAws_json1_1LogsConfig = (input, context) => {
|
|
2608
2620
|
return {
|
|
2609
|
-
...(input.cloudWatchLogs
|
|
2610
|
-
input.cloudWatchLogs !== null && {
|
|
2621
|
+
...(input.cloudWatchLogs != null && {
|
|
2611
2622
|
cloudWatchLogs: serializeAws_json1_1CloudWatchLogsConfig(input.cloudWatchLogs, context),
|
|
2612
2623
|
}),
|
|
2613
|
-
...(input.s3Logs
|
|
2614
|
-
input.s3Logs !== null && { s3Logs: serializeAws_json1_1S3LogsConfig(input.s3Logs, context) }),
|
|
2624
|
+
...(input.s3Logs != null && { s3Logs: serializeAws_json1_1S3LogsConfig(input.s3Logs, context) }),
|
|
2615
2625
|
};
|
|
2616
2626
|
};
|
|
2617
2627
|
const serializeAws_json1_1ProjectArtifacts = (input, context) => {
|
|
2618
2628
|
return {
|
|
2619
|
-
...(input.artifactIdentifier
|
|
2620
|
-
|
|
2621
|
-
...(input.
|
|
2622
|
-
|
|
2623
|
-
...(input.
|
|
2624
|
-
|
|
2625
|
-
...(input.
|
|
2626
|
-
...(input.
|
|
2627
|
-
...(input.
|
|
2628
|
-
...(input.
|
|
2629
|
-
input.overrideArtifactName !== null && { overrideArtifactName: input.overrideArtifactName }),
|
|
2630
|
-
...(input.packaging !== undefined && input.packaging !== null && { packaging: input.packaging }),
|
|
2631
|
-
...(input.path !== undefined && input.path !== null && { path: input.path }),
|
|
2632
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
2629
|
+
...(input.artifactIdentifier != null && { artifactIdentifier: input.artifactIdentifier }),
|
|
2630
|
+
...(input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess }),
|
|
2631
|
+
...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
|
|
2632
|
+
...(input.location != null && { location: input.location }),
|
|
2633
|
+
...(input.name != null && { name: input.name }),
|
|
2634
|
+
...(input.namespaceType != null && { namespaceType: input.namespaceType }),
|
|
2635
|
+
...(input.overrideArtifactName != null && { overrideArtifactName: input.overrideArtifactName }),
|
|
2636
|
+
...(input.packaging != null && { packaging: input.packaging }),
|
|
2637
|
+
...(input.path != null && { path: input.path }),
|
|
2638
|
+
...(input.type != null && { type: input.type }),
|
|
2633
2639
|
};
|
|
2634
2640
|
};
|
|
2635
2641
|
const serializeAws_json1_1ProjectArtifactsList = (input, context) => {
|
|
@@ -2644,24 +2650,20 @@ const serializeAws_json1_1ProjectArtifactsList = (input, context) => {
|
|
|
2644
2650
|
};
|
|
2645
2651
|
const serializeAws_json1_1ProjectBuildBatchConfig = (input, context) => {
|
|
2646
2652
|
return {
|
|
2647
|
-
...(input.batchReportMode
|
|
2648
|
-
|
|
2649
|
-
...(input.
|
|
2650
|
-
input.combineArtifacts !== null && { combineArtifacts: input.combineArtifacts }),
|
|
2651
|
-
...(input.restrictions !== undefined &&
|
|
2652
|
-
input.restrictions !== null && {
|
|
2653
|
+
...(input.batchReportMode != null && { batchReportMode: input.batchReportMode }),
|
|
2654
|
+
...(input.combineArtifacts != null && { combineArtifacts: input.combineArtifacts }),
|
|
2655
|
+
...(input.restrictions != null && {
|
|
2653
2656
|
restrictions: serializeAws_json1_1BatchRestrictions(input.restrictions, context),
|
|
2654
2657
|
}),
|
|
2655
|
-
...(input.serviceRole
|
|
2656
|
-
...(input.timeoutInMins
|
|
2658
|
+
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
2659
|
+
...(input.timeoutInMins != null && { timeoutInMins: input.timeoutInMins }),
|
|
2657
2660
|
};
|
|
2658
2661
|
};
|
|
2659
2662
|
const serializeAws_json1_1ProjectCache = (input, context) => {
|
|
2660
2663
|
return {
|
|
2661
|
-
...(input.location
|
|
2662
|
-
...(input.modes
|
|
2663
|
-
|
|
2664
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
2664
|
+
...(input.location != null && { location: input.location }),
|
|
2665
|
+
...(input.modes != null && { modes: serializeAws_json1_1ProjectCacheModes(input.modes, context) }),
|
|
2666
|
+
...(input.type != null && { type: input.type }),
|
|
2665
2667
|
};
|
|
2666
2668
|
};
|
|
2667
2669
|
const serializeAws_json1_1ProjectCacheModes = (input, context) => {
|
|
@@ -2676,31 +2678,27 @@ const serializeAws_json1_1ProjectCacheModes = (input, context) => {
|
|
|
2676
2678
|
};
|
|
2677
2679
|
const serializeAws_json1_1ProjectEnvironment = (input, context) => {
|
|
2678
2680
|
return {
|
|
2679
|
-
...(input.certificate
|
|
2680
|
-
...(input.computeType
|
|
2681
|
-
...(input.environmentVariables
|
|
2682
|
-
input.environmentVariables !== null && {
|
|
2681
|
+
...(input.certificate != null && { certificate: input.certificate }),
|
|
2682
|
+
...(input.computeType != null && { computeType: input.computeType }),
|
|
2683
|
+
...(input.environmentVariables != null && {
|
|
2683
2684
|
environmentVariables: serializeAws_json1_1EnvironmentVariables(input.environmentVariables, context),
|
|
2684
2685
|
}),
|
|
2685
|
-
...(input.image
|
|
2686
|
-
...(input.imagePullCredentialsType
|
|
2687
|
-
|
|
2688
|
-
...(input.
|
|
2689
|
-
input.privilegedMode !== null && { privilegedMode: input.privilegedMode }),
|
|
2690
|
-
...(input.registryCredential !== undefined &&
|
|
2691
|
-
input.registryCredential !== null && {
|
|
2686
|
+
...(input.image != null && { image: input.image }),
|
|
2687
|
+
...(input.imagePullCredentialsType != null && { imagePullCredentialsType: input.imagePullCredentialsType }),
|
|
2688
|
+
...(input.privilegedMode != null && { privilegedMode: input.privilegedMode }),
|
|
2689
|
+
...(input.registryCredential != null && {
|
|
2692
2690
|
registryCredential: serializeAws_json1_1RegistryCredential(input.registryCredential, context),
|
|
2693
2691
|
}),
|
|
2694
|
-
...(input.type
|
|
2692
|
+
...(input.type != null && { type: input.type }),
|
|
2695
2693
|
};
|
|
2696
2694
|
};
|
|
2697
2695
|
const serializeAws_json1_1ProjectFileSystemLocation = (input, context) => {
|
|
2698
2696
|
return {
|
|
2699
|
-
...(input.identifier
|
|
2700
|
-
...(input.location
|
|
2701
|
-
...(input.mountOptions
|
|
2702
|
-
...(input.mountPoint
|
|
2703
|
-
...(input.type
|
|
2697
|
+
...(input.identifier != null && { identifier: input.identifier }),
|
|
2698
|
+
...(input.location != null && { location: input.location }),
|
|
2699
|
+
...(input.mountOptions != null && { mountOptions: input.mountOptions }),
|
|
2700
|
+
...(input.mountPoint != null && { mountPoint: input.mountPoint }),
|
|
2701
|
+
...(input.type != null && { type: input.type }),
|
|
2704
2702
|
};
|
|
2705
2703
|
};
|
|
2706
2704
|
const serializeAws_json1_1ProjectFileSystemLocations = (input, context) => {
|
|
@@ -2735,25 +2733,20 @@ const serializeAws_json1_1ProjectSecondarySourceVersions = (input, context) => {
|
|
|
2735
2733
|
};
|
|
2736
2734
|
const serializeAws_json1_1ProjectSource = (input, context) => {
|
|
2737
2735
|
return {
|
|
2738
|
-
...(input.auth
|
|
2739
|
-
|
|
2740
|
-
...(input.buildStatusConfig !== undefined &&
|
|
2741
|
-
input.buildStatusConfig !== null && {
|
|
2736
|
+
...(input.auth != null && { auth: serializeAws_json1_1SourceAuth(input.auth, context) }),
|
|
2737
|
+
...(input.buildStatusConfig != null && {
|
|
2742
2738
|
buildStatusConfig: serializeAws_json1_1BuildStatusConfig(input.buildStatusConfig, context),
|
|
2743
2739
|
}),
|
|
2744
|
-
...(input.buildspec
|
|
2745
|
-
...(input.gitCloneDepth
|
|
2746
|
-
...(input.gitSubmodulesConfig
|
|
2747
|
-
input.gitSubmodulesConfig !== null && {
|
|
2740
|
+
...(input.buildspec != null && { buildspec: input.buildspec }),
|
|
2741
|
+
...(input.gitCloneDepth != null && { gitCloneDepth: input.gitCloneDepth }),
|
|
2742
|
+
...(input.gitSubmodulesConfig != null && {
|
|
2748
2743
|
gitSubmodulesConfig: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfig, context),
|
|
2749
2744
|
}),
|
|
2750
|
-
...(input.insecureSsl
|
|
2751
|
-
...(input.location
|
|
2752
|
-
...(input.reportBuildStatus
|
|
2753
|
-
|
|
2754
|
-
...(input.
|
|
2755
|
-
input.sourceIdentifier !== null && { sourceIdentifier: input.sourceIdentifier }),
|
|
2756
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
2745
|
+
...(input.insecureSsl != null && { insecureSsl: input.insecureSsl }),
|
|
2746
|
+
...(input.location != null && { location: input.location }),
|
|
2747
|
+
...(input.reportBuildStatus != null && { reportBuildStatus: input.reportBuildStatus }),
|
|
2748
|
+
...(input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier }),
|
|
2749
|
+
...(input.type != null && { type: input.type }),
|
|
2757
2750
|
};
|
|
2758
2751
|
};
|
|
2759
2752
|
const serializeAws_json1_1ProjectSources = (input, context) => {
|
|
@@ -2768,22 +2761,20 @@ const serializeAws_json1_1ProjectSources = (input, context) => {
|
|
|
2768
2761
|
};
|
|
2769
2762
|
const serializeAws_json1_1ProjectSourceVersion = (input, context) => {
|
|
2770
2763
|
return {
|
|
2771
|
-
...(input.sourceIdentifier
|
|
2772
|
-
|
|
2773
|
-
...(input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }),
|
|
2764
|
+
...(input.sourceIdentifier != null && { sourceIdentifier: input.sourceIdentifier }),
|
|
2765
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
2774
2766
|
};
|
|
2775
2767
|
};
|
|
2776
2768
|
const serializeAws_json1_1PutResourcePolicyInput = (input, context) => {
|
|
2777
2769
|
return {
|
|
2778
|
-
...(input.policy
|
|
2779
|
-
...(input.resourceArn
|
|
2770
|
+
...(input.policy != null && { policy: input.policy }),
|
|
2771
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2780
2772
|
};
|
|
2781
2773
|
};
|
|
2782
2774
|
const serializeAws_json1_1RegistryCredential = (input, context) => {
|
|
2783
2775
|
return {
|
|
2784
|
-
...(input.credential
|
|
2785
|
-
...(input.credentialProvider
|
|
2786
|
-
input.credentialProvider !== null && { credentialProvider: input.credentialProvider }),
|
|
2776
|
+
...(input.credential != null && { credential: input.credential }),
|
|
2777
|
+
...(input.credentialProvider != null && { credentialProvider: input.credentialProvider }),
|
|
2787
2778
|
};
|
|
2788
2779
|
};
|
|
2789
2780
|
const serializeAws_json1_1ReportArns = (input, context) => {
|
|
@@ -2798,17 +2789,15 @@ const serializeAws_json1_1ReportArns = (input, context) => {
|
|
|
2798
2789
|
};
|
|
2799
2790
|
const serializeAws_json1_1ReportExportConfig = (input, context) => {
|
|
2800
2791
|
return {
|
|
2801
|
-
...(input.exportConfigType
|
|
2802
|
-
|
|
2803
|
-
...(input.s3Destination !== undefined &&
|
|
2804
|
-
input.s3Destination !== null && {
|
|
2792
|
+
...(input.exportConfigType != null && { exportConfigType: input.exportConfigType }),
|
|
2793
|
+
...(input.s3Destination != null && {
|
|
2805
2794
|
s3Destination: serializeAws_json1_1S3ReportExportConfig(input.s3Destination, context),
|
|
2806
2795
|
}),
|
|
2807
2796
|
};
|
|
2808
2797
|
};
|
|
2809
2798
|
const serializeAws_json1_1ReportFilter = (input, context) => {
|
|
2810
2799
|
return {
|
|
2811
|
-
...(input.status
|
|
2800
|
+
...(input.status != null && { status: input.status }),
|
|
2812
2801
|
};
|
|
2813
2802
|
};
|
|
2814
2803
|
const serializeAws_json1_1ReportGroupArns = (input, context) => {
|
|
@@ -2823,38 +2812,33 @@ const serializeAws_json1_1ReportGroupArns = (input, context) => {
|
|
|
2823
2812
|
};
|
|
2824
2813
|
const serializeAws_json1_1RetryBuildBatchInput = (input, context) => {
|
|
2825
2814
|
return {
|
|
2826
|
-
...(input.id
|
|
2827
|
-
...(input.idempotencyToken
|
|
2828
|
-
|
|
2829
|
-
...(input.retryType !== undefined && input.retryType !== null && { retryType: input.retryType }),
|
|
2815
|
+
...(input.id != null && { id: input.id }),
|
|
2816
|
+
...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
|
|
2817
|
+
...(input.retryType != null && { retryType: input.retryType }),
|
|
2830
2818
|
};
|
|
2831
2819
|
};
|
|
2832
2820
|
const serializeAws_json1_1RetryBuildInput = (input, context) => {
|
|
2833
2821
|
return {
|
|
2834
|
-
...(input.id
|
|
2835
|
-
...(input.idempotencyToken
|
|
2836
|
-
input.idempotencyToken !== null && { idempotencyToken: input.idempotencyToken }),
|
|
2822
|
+
...(input.id != null && { id: input.id }),
|
|
2823
|
+
...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
|
|
2837
2824
|
};
|
|
2838
2825
|
};
|
|
2839
2826
|
const serializeAws_json1_1S3LogsConfig = (input, context) => {
|
|
2840
2827
|
return {
|
|
2841
|
-
...(input.bucketOwnerAccess
|
|
2842
|
-
|
|
2843
|
-
...(input.
|
|
2844
|
-
|
|
2845
|
-
...(input.location !== undefined && input.location !== null && { location: input.location }),
|
|
2846
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
2828
|
+
...(input.bucketOwnerAccess != null && { bucketOwnerAccess: input.bucketOwnerAccess }),
|
|
2829
|
+
...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
|
|
2830
|
+
...(input.location != null && { location: input.location }),
|
|
2831
|
+
...(input.status != null && { status: input.status }),
|
|
2847
2832
|
};
|
|
2848
2833
|
};
|
|
2849
2834
|
const serializeAws_json1_1S3ReportExportConfig = (input, context) => {
|
|
2850
2835
|
return {
|
|
2851
|
-
...(input.bucket
|
|
2852
|
-
...(input.bucketOwner
|
|
2853
|
-
...(input.encryptionDisabled
|
|
2854
|
-
|
|
2855
|
-
...(input.
|
|
2856
|
-
...(input.
|
|
2857
|
-
...(input.path !== undefined && input.path !== null && { path: input.path }),
|
|
2836
|
+
...(input.bucket != null && { bucket: input.bucket }),
|
|
2837
|
+
...(input.bucketOwner != null && { bucketOwner: input.bucketOwner }),
|
|
2838
|
+
...(input.encryptionDisabled != null && { encryptionDisabled: input.encryptionDisabled }),
|
|
2839
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
2840
|
+
...(input.packaging != null && { packaging: input.packaging }),
|
|
2841
|
+
...(input.path != null && { path: input.path }),
|
|
2858
2842
|
};
|
|
2859
2843
|
};
|
|
2860
2844
|
const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
@@ -2869,200 +2853,144 @@ const serializeAws_json1_1SecurityGroupIds = (input, context) => {
|
|
|
2869
2853
|
};
|
|
2870
2854
|
const serializeAws_json1_1SourceAuth = (input, context) => {
|
|
2871
2855
|
return {
|
|
2872
|
-
...(input.resource
|
|
2873
|
-
...(input.type
|
|
2856
|
+
...(input.resource != null && { resource: input.resource }),
|
|
2857
|
+
...(input.type != null && { type: input.type }),
|
|
2874
2858
|
};
|
|
2875
2859
|
};
|
|
2876
2860
|
const serializeAws_json1_1StartBuildBatchInput = (input, context) => {
|
|
2877
2861
|
return {
|
|
2878
|
-
...(input.artifactsOverride
|
|
2879
|
-
input.artifactsOverride !== null && {
|
|
2862
|
+
...(input.artifactsOverride != null && {
|
|
2880
2863
|
artifactsOverride: serializeAws_json1_1ProjectArtifacts(input.artifactsOverride, context),
|
|
2881
2864
|
}),
|
|
2882
|
-
...(input.buildBatchConfigOverride
|
|
2883
|
-
input.buildBatchConfigOverride !== null && {
|
|
2865
|
+
...(input.buildBatchConfigOverride != null && {
|
|
2884
2866
|
buildBatchConfigOverride: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfigOverride, context),
|
|
2885
2867
|
}),
|
|
2886
|
-
...(input.buildTimeoutInMinutesOverride
|
|
2887
|
-
input.buildTimeoutInMinutesOverride !== null && {
|
|
2868
|
+
...(input.buildTimeoutInMinutesOverride != null && {
|
|
2888
2869
|
buildTimeoutInMinutesOverride: input.buildTimeoutInMinutesOverride,
|
|
2889
2870
|
}),
|
|
2890
|
-
...(input.buildspecOverride
|
|
2891
|
-
|
|
2892
|
-
...(input.cacheOverride !== undefined &&
|
|
2893
|
-
input.cacheOverride !== null && {
|
|
2871
|
+
...(input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride }),
|
|
2872
|
+
...(input.cacheOverride != null && {
|
|
2894
2873
|
cacheOverride: serializeAws_json1_1ProjectCache(input.cacheOverride, context),
|
|
2895
2874
|
}),
|
|
2896
|
-
...(input.certificateOverride
|
|
2897
|
-
|
|
2898
|
-
...(input.
|
|
2899
|
-
|
|
2900
|
-
...(input.
|
|
2901
|
-
|
|
2902
|
-
...(input.encryptionKeyOverride !== undefined &&
|
|
2903
|
-
input.encryptionKeyOverride !== null && { encryptionKeyOverride: input.encryptionKeyOverride }),
|
|
2904
|
-
...(input.environmentTypeOverride !== undefined &&
|
|
2905
|
-
input.environmentTypeOverride !== null && { environmentTypeOverride: input.environmentTypeOverride }),
|
|
2906
|
-
...(input.environmentVariablesOverride !== undefined &&
|
|
2907
|
-
input.environmentVariablesOverride !== null && {
|
|
2875
|
+
...(input.certificateOverride != null && { certificateOverride: input.certificateOverride }),
|
|
2876
|
+
...(input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride }),
|
|
2877
|
+
...(input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled }),
|
|
2878
|
+
...(input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride }),
|
|
2879
|
+
...(input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride }),
|
|
2880
|
+
...(input.environmentVariablesOverride != null && {
|
|
2908
2881
|
environmentVariablesOverride: serializeAws_json1_1EnvironmentVariables(input.environmentVariablesOverride, context),
|
|
2909
2882
|
}),
|
|
2910
|
-
...(input.gitCloneDepthOverride
|
|
2911
|
-
|
|
2912
|
-
...(input.gitSubmodulesConfigOverride !== undefined &&
|
|
2913
|
-
input.gitSubmodulesConfigOverride !== null && {
|
|
2883
|
+
...(input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride }),
|
|
2884
|
+
...(input.gitSubmodulesConfigOverride != null && {
|
|
2914
2885
|
gitSubmodulesConfigOverride: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
|
|
2915
2886
|
}),
|
|
2916
|
-
...(input.idempotencyToken
|
|
2917
|
-
|
|
2918
|
-
...(input.
|
|
2919
|
-
...(input.imagePullCredentialsTypeOverride !== undefined &&
|
|
2920
|
-
input.imagePullCredentialsTypeOverride !== null && {
|
|
2887
|
+
...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
|
|
2888
|
+
...(input.imageOverride != null && { imageOverride: input.imageOverride }),
|
|
2889
|
+
...(input.imagePullCredentialsTypeOverride != null && {
|
|
2921
2890
|
imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
|
|
2922
2891
|
}),
|
|
2923
|
-
...(input.insecureSslOverride
|
|
2924
|
-
|
|
2925
|
-
...(input.logsConfigOverride !== undefined &&
|
|
2926
|
-
input.logsConfigOverride !== null && {
|
|
2892
|
+
...(input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride }),
|
|
2893
|
+
...(input.logsConfigOverride != null && {
|
|
2927
2894
|
logsConfigOverride: serializeAws_json1_1LogsConfig(input.logsConfigOverride, context),
|
|
2928
2895
|
}),
|
|
2929
|
-
...(input.privilegedModeOverride
|
|
2930
|
-
|
|
2931
|
-
...(input.
|
|
2932
|
-
...(input.queuedTimeoutInMinutesOverride !== undefined &&
|
|
2933
|
-
input.queuedTimeoutInMinutesOverride !== null && {
|
|
2896
|
+
...(input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride }),
|
|
2897
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2898
|
+
...(input.queuedTimeoutInMinutesOverride != null && {
|
|
2934
2899
|
queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
|
|
2935
2900
|
}),
|
|
2936
|
-
...(input.registryCredentialOverride
|
|
2937
|
-
input.registryCredentialOverride !== null && {
|
|
2901
|
+
...(input.registryCredentialOverride != null && {
|
|
2938
2902
|
registryCredentialOverride: serializeAws_json1_1RegistryCredential(input.registryCredentialOverride, context),
|
|
2939
2903
|
}),
|
|
2940
|
-
...(input.reportBuildBatchStatusOverride
|
|
2941
|
-
input.reportBuildBatchStatusOverride !== null && {
|
|
2904
|
+
...(input.reportBuildBatchStatusOverride != null && {
|
|
2942
2905
|
reportBuildBatchStatusOverride: input.reportBuildBatchStatusOverride,
|
|
2943
2906
|
}),
|
|
2944
|
-
...(input.secondaryArtifactsOverride
|
|
2945
|
-
input.secondaryArtifactsOverride !== null && {
|
|
2907
|
+
...(input.secondaryArtifactsOverride != null && {
|
|
2946
2908
|
secondaryArtifactsOverride: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifactsOverride, context),
|
|
2947
2909
|
}),
|
|
2948
|
-
...(input.secondarySourcesOverride
|
|
2949
|
-
input.secondarySourcesOverride !== null && {
|
|
2910
|
+
...(input.secondarySourcesOverride != null && {
|
|
2950
2911
|
secondarySourcesOverride: serializeAws_json1_1ProjectSources(input.secondarySourcesOverride, context),
|
|
2951
2912
|
}),
|
|
2952
|
-
...(input.secondarySourcesVersionOverride
|
|
2953
|
-
input.secondarySourcesVersionOverride !== null && {
|
|
2913
|
+
...(input.secondarySourcesVersionOverride != null && {
|
|
2954
2914
|
secondarySourcesVersionOverride: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
|
|
2955
2915
|
}),
|
|
2956
|
-
...(input.serviceRoleOverride
|
|
2957
|
-
|
|
2958
|
-
...(input.sourceAuthOverride !== undefined &&
|
|
2959
|
-
input.sourceAuthOverride !== null && {
|
|
2916
|
+
...(input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride }),
|
|
2917
|
+
...(input.sourceAuthOverride != null && {
|
|
2960
2918
|
sourceAuthOverride: serializeAws_json1_1SourceAuth(input.sourceAuthOverride, context),
|
|
2961
2919
|
}),
|
|
2962
|
-
...(input.sourceLocationOverride
|
|
2963
|
-
|
|
2964
|
-
...(input.
|
|
2965
|
-
input.sourceTypeOverride !== null && { sourceTypeOverride: input.sourceTypeOverride }),
|
|
2966
|
-
...(input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }),
|
|
2920
|
+
...(input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride }),
|
|
2921
|
+
...(input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride }),
|
|
2922
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
2967
2923
|
};
|
|
2968
2924
|
};
|
|
2969
2925
|
const serializeAws_json1_1StartBuildInput = (input, context) => {
|
|
2970
2926
|
return {
|
|
2971
|
-
...(input.artifactsOverride
|
|
2972
|
-
input.artifactsOverride !== null && {
|
|
2927
|
+
...(input.artifactsOverride != null && {
|
|
2973
2928
|
artifactsOverride: serializeAws_json1_1ProjectArtifacts(input.artifactsOverride, context),
|
|
2974
2929
|
}),
|
|
2975
|
-
...(input.buildStatusConfigOverride
|
|
2976
|
-
input.buildStatusConfigOverride !== null && {
|
|
2930
|
+
...(input.buildStatusConfigOverride != null && {
|
|
2977
2931
|
buildStatusConfigOverride: serializeAws_json1_1BuildStatusConfig(input.buildStatusConfigOverride, context),
|
|
2978
2932
|
}),
|
|
2979
|
-
...(input.buildspecOverride
|
|
2980
|
-
|
|
2981
|
-
...(input.cacheOverride !== undefined &&
|
|
2982
|
-
input.cacheOverride !== null && {
|
|
2933
|
+
...(input.buildspecOverride != null && { buildspecOverride: input.buildspecOverride }),
|
|
2934
|
+
...(input.cacheOverride != null && {
|
|
2983
2935
|
cacheOverride: serializeAws_json1_1ProjectCache(input.cacheOverride, context),
|
|
2984
2936
|
}),
|
|
2985
|
-
...(input.certificateOverride
|
|
2986
|
-
|
|
2987
|
-
...(input.
|
|
2988
|
-
|
|
2989
|
-
...(input.
|
|
2990
|
-
|
|
2991
|
-
...(input.encryptionKeyOverride !== undefined &&
|
|
2992
|
-
input.encryptionKeyOverride !== null && { encryptionKeyOverride: input.encryptionKeyOverride }),
|
|
2993
|
-
...(input.environmentTypeOverride !== undefined &&
|
|
2994
|
-
input.environmentTypeOverride !== null && { environmentTypeOverride: input.environmentTypeOverride }),
|
|
2995
|
-
...(input.environmentVariablesOverride !== undefined &&
|
|
2996
|
-
input.environmentVariablesOverride !== null && {
|
|
2937
|
+
...(input.certificateOverride != null && { certificateOverride: input.certificateOverride }),
|
|
2938
|
+
...(input.computeTypeOverride != null && { computeTypeOverride: input.computeTypeOverride }),
|
|
2939
|
+
...(input.debugSessionEnabled != null && { debugSessionEnabled: input.debugSessionEnabled }),
|
|
2940
|
+
...(input.encryptionKeyOverride != null && { encryptionKeyOverride: input.encryptionKeyOverride }),
|
|
2941
|
+
...(input.environmentTypeOverride != null && { environmentTypeOverride: input.environmentTypeOverride }),
|
|
2942
|
+
...(input.environmentVariablesOverride != null && {
|
|
2997
2943
|
environmentVariablesOverride: serializeAws_json1_1EnvironmentVariables(input.environmentVariablesOverride, context),
|
|
2998
2944
|
}),
|
|
2999
|
-
...(input.gitCloneDepthOverride
|
|
3000
|
-
|
|
3001
|
-
...(input.gitSubmodulesConfigOverride !== undefined &&
|
|
3002
|
-
input.gitSubmodulesConfigOverride !== null && {
|
|
2945
|
+
...(input.gitCloneDepthOverride != null && { gitCloneDepthOverride: input.gitCloneDepthOverride }),
|
|
2946
|
+
...(input.gitSubmodulesConfigOverride != null && {
|
|
3003
2947
|
gitSubmodulesConfigOverride: serializeAws_json1_1GitSubmodulesConfig(input.gitSubmodulesConfigOverride, context),
|
|
3004
2948
|
}),
|
|
3005
|
-
...(input.idempotencyToken
|
|
3006
|
-
|
|
3007
|
-
...(input.
|
|
3008
|
-
...(input.imagePullCredentialsTypeOverride !== undefined &&
|
|
3009
|
-
input.imagePullCredentialsTypeOverride !== null && {
|
|
2949
|
+
...(input.idempotencyToken != null && { idempotencyToken: input.idempotencyToken }),
|
|
2950
|
+
...(input.imageOverride != null && { imageOverride: input.imageOverride }),
|
|
2951
|
+
...(input.imagePullCredentialsTypeOverride != null && {
|
|
3010
2952
|
imagePullCredentialsTypeOverride: input.imagePullCredentialsTypeOverride,
|
|
3011
2953
|
}),
|
|
3012
|
-
...(input.insecureSslOverride
|
|
3013
|
-
|
|
3014
|
-
...(input.logsConfigOverride !== undefined &&
|
|
3015
|
-
input.logsConfigOverride !== null && {
|
|
2954
|
+
...(input.insecureSslOverride != null && { insecureSslOverride: input.insecureSslOverride }),
|
|
2955
|
+
...(input.logsConfigOverride != null && {
|
|
3016
2956
|
logsConfigOverride: serializeAws_json1_1LogsConfig(input.logsConfigOverride, context),
|
|
3017
2957
|
}),
|
|
3018
|
-
...(input.privilegedModeOverride
|
|
3019
|
-
|
|
3020
|
-
...(input.
|
|
3021
|
-
...(input.queuedTimeoutInMinutesOverride !== undefined &&
|
|
3022
|
-
input.queuedTimeoutInMinutesOverride !== null && {
|
|
2958
|
+
...(input.privilegedModeOverride != null && { privilegedModeOverride: input.privilegedModeOverride }),
|
|
2959
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
2960
|
+
...(input.queuedTimeoutInMinutesOverride != null && {
|
|
3023
2961
|
queuedTimeoutInMinutesOverride: input.queuedTimeoutInMinutesOverride,
|
|
3024
2962
|
}),
|
|
3025
|
-
...(input.registryCredentialOverride
|
|
3026
|
-
input.registryCredentialOverride !== null && {
|
|
2963
|
+
...(input.registryCredentialOverride != null && {
|
|
3027
2964
|
registryCredentialOverride: serializeAws_json1_1RegistryCredential(input.registryCredentialOverride, context),
|
|
3028
2965
|
}),
|
|
3029
|
-
...(input.reportBuildStatusOverride
|
|
3030
|
-
|
|
3031
|
-
...(input.secondaryArtifactsOverride !== undefined &&
|
|
3032
|
-
input.secondaryArtifactsOverride !== null && {
|
|
2966
|
+
...(input.reportBuildStatusOverride != null && { reportBuildStatusOverride: input.reportBuildStatusOverride }),
|
|
2967
|
+
...(input.secondaryArtifactsOverride != null && {
|
|
3033
2968
|
secondaryArtifactsOverride: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifactsOverride, context),
|
|
3034
2969
|
}),
|
|
3035
|
-
...(input.secondarySourcesOverride
|
|
3036
|
-
input.secondarySourcesOverride !== null && {
|
|
2970
|
+
...(input.secondarySourcesOverride != null && {
|
|
3037
2971
|
secondarySourcesOverride: serializeAws_json1_1ProjectSources(input.secondarySourcesOverride, context),
|
|
3038
2972
|
}),
|
|
3039
|
-
...(input.secondarySourcesVersionOverride
|
|
3040
|
-
input.secondarySourcesVersionOverride !== null && {
|
|
2973
|
+
...(input.secondarySourcesVersionOverride != null && {
|
|
3041
2974
|
secondarySourcesVersionOverride: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourcesVersionOverride, context),
|
|
3042
2975
|
}),
|
|
3043
|
-
...(input.serviceRoleOverride
|
|
3044
|
-
|
|
3045
|
-
...(input.sourceAuthOverride !== undefined &&
|
|
3046
|
-
input.sourceAuthOverride !== null && {
|
|
2976
|
+
...(input.serviceRoleOverride != null && { serviceRoleOverride: input.serviceRoleOverride }),
|
|
2977
|
+
...(input.sourceAuthOverride != null && {
|
|
3047
2978
|
sourceAuthOverride: serializeAws_json1_1SourceAuth(input.sourceAuthOverride, context),
|
|
3048
2979
|
}),
|
|
3049
|
-
...(input.sourceLocationOverride
|
|
3050
|
-
|
|
3051
|
-
...(input.
|
|
3052
|
-
|
|
3053
|
-
...(input.sourceVersion !== undefined && input.sourceVersion !== null && { sourceVersion: input.sourceVersion }),
|
|
3054
|
-
...(input.timeoutInMinutesOverride !== undefined &&
|
|
3055
|
-
input.timeoutInMinutesOverride !== null && { timeoutInMinutesOverride: input.timeoutInMinutesOverride }),
|
|
2980
|
+
...(input.sourceLocationOverride != null && { sourceLocationOverride: input.sourceLocationOverride }),
|
|
2981
|
+
...(input.sourceTypeOverride != null && { sourceTypeOverride: input.sourceTypeOverride }),
|
|
2982
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
2983
|
+
...(input.timeoutInMinutesOverride != null && { timeoutInMinutesOverride: input.timeoutInMinutesOverride }),
|
|
3056
2984
|
};
|
|
3057
2985
|
};
|
|
3058
2986
|
const serializeAws_json1_1StopBuildBatchInput = (input, context) => {
|
|
3059
2987
|
return {
|
|
3060
|
-
...(input.id
|
|
2988
|
+
...(input.id != null && { id: input.id }),
|
|
3061
2989
|
};
|
|
3062
2990
|
};
|
|
3063
2991
|
const serializeAws_json1_1StopBuildInput = (input, context) => {
|
|
3064
2992
|
return {
|
|
3065
|
-
...(input.id
|
|
2993
|
+
...(input.id != null && { id: input.id }),
|
|
3066
2994
|
};
|
|
3067
2995
|
};
|
|
3068
2996
|
const serializeAws_json1_1Subnets = (input, context) => {
|
|
@@ -3077,8 +3005,8 @@ const serializeAws_json1_1Subnets = (input, context) => {
|
|
|
3077
3005
|
};
|
|
3078
3006
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
3079
3007
|
return {
|
|
3080
|
-
...(input.key
|
|
3081
|
-
...(input.value
|
|
3008
|
+
...(input.key != null && { key: input.key }),
|
|
3009
|
+
...(input.value != null && { value: input.value }),
|
|
3082
3010
|
};
|
|
3083
3011
|
};
|
|
3084
3012
|
const serializeAws_json1_1TagList = (input, context) => {
|
|
@@ -3093,107 +3021,86 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3093
3021
|
};
|
|
3094
3022
|
const serializeAws_json1_1TestCaseFilter = (input, context) => {
|
|
3095
3023
|
return {
|
|
3096
|
-
...(input.keyword
|
|
3097
|
-
...(input.status
|
|
3024
|
+
...(input.keyword != null && { keyword: input.keyword }),
|
|
3025
|
+
...(input.status != null && { status: input.status }),
|
|
3098
3026
|
};
|
|
3099
3027
|
};
|
|
3100
3028
|
const serializeAws_json1_1UpdateProjectInput = (input, context) => {
|
|
3101
3029
|
return {
|
|
3102
|
-
...(input.artifacts
|
|
3103
|
-
|
|
3104
|
-
...(input.
|
|
3105
|
-
...(input.buildBatchConfig !== undefined &&
|
|
3106
|
-
input.buildBatchConfig !== null && {
|
|
3030
|
+
...(input.artifacts != null && { artifacts: serializeAws_json1_1ProjectArtifacts(input.artifacts, context) }),
|
|
3031
|
+
...(input.badgeEnabled != null && { badgeEnabled: input.badgeEnabled }),
|
|
3032
|
+
...(input.buildBatchConfig != null && {
|
|
3107
3033
|
buildBatchConfig: serializeAws_json1_1ProjectBuildBatchConfig(input.buildBatchConfig, context),
|
|
3108
3034
|
}),
|
|
3109
|
-
...(input.cache
|
|
3110
|
-
|
|
3111
|
-
...(input.
|
|
3112
|
-
|
|
3113
|
-
...(input.
|
|
3114
|
-
...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
|
|
3115
|
-
...(input.environment !== undefined &&
|
|
3116
|
-
input.environment !== null && {
|
|
3035
|
+
...(input.cache != null && { cache: serializeAws_json1_1ProjectCache(input.cache, context) }),
|
|
3036
|
+
...(input.concurrentBuildLimit != null && { concurrentBuildLimit: input.concurrentBuildLimit }),
|
|
3037
|
+
...(input.description != null && { description: input.description }),
|
|
3038
|
+
...(input.encryptionKey != null && { encryptionKey: input.encryptionKey }),
|
|
3039
|
+
...(input.environment != null && {
|
|
3117
3040
|
environment: serializeAws_json1_1ProjectEnvironment(input.environment, context),
|
|
3118
3041
|
}),
|
|
3119
|
-
...(input.fileSystemLocations
|
|
3120
|
-
input.fileSystemLocations !== null && {
|
|
3042
|
+
...(input.fileSystemLocations != null && {
|
|
3121
3043
|
fileSystemLocations: serializeAws_json1_1ProjectFileSystemLocations(input.fileSystemLocations, context),
|
|
3122
3044
|
}),
|
|
3123
|
-
...(input.logsConfig
|
|
3124
|
-
|
|
3125
|
-
...(input.
|
|
3126
|
-
...(input.
|
|
3127
|
-
input.queuedTimeoutInMinutes !== null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
|
|
3128
|
-
...(input.secondaryArtifacts !== undefined &&
|
|
3129
|
-
input.secondaryArtifacts !== null && {
|
|
3045
|
+
...(input.logsConfig != null && { logsConfig: serializeAws_json1_1LogsConfig(input.logsConfig, context) }),
|
|
3046
|
+
...(input.name != null && { name: input.name }),
|
|
3047
|
+
...(input.queuedTimeoutInMinutes != null && { queuedTimeoutInMinutes: input.queuedTimeoutInMinutes }),
|
|
3048
|
+
...(input.secondaryArtifacts != null && {
|
|
3130
3049
|
secondaryArtifacts: serializeAws_json1_1ProjectArtifactsList(input.secondaryArtifacts, context),
|
|
3131
3050
|
}),
|
|
3132
|
-
...(input.secondarySourceVersions
|
|
3133
|
-
input.secondarySourceVersions !== null && {
|
|
3051
|
+
...(input.secondarySourceVersions != null && {
|
|
3134
3052
|
secondarySourceVersions: serializeAws_json1_1ProjectSecondarySourceVersions(input.secondarySourceVersions, context),
|
|
3135
3053
|
}),
|
|
3136
|
-
...(input.secondarySources
|
|
3137
|
-
input.secondarySources !== null && {
|
|
3054
|
+
...(input.secondarySources != null && {
|
|
3138
3055
|
secondarySources: serializeAws_json1_1ProjectSources(input.secondarySources, context),
|
|
3139
3056
|
}),
|
|
3140
|
-
...(input.serviceRole
|
|
3141
|
-
...(input.source
|
|
3142
|
-
|
|
3143
|
-
...(input.
|
|
3144
|
-
...(input.
|
|
3145
|
-
...(input.
|
|
3146
|
-
input.timeoutInMinutes !== null && { timeoutInMinutes: input.timeoutInMinutes }),
|
|
3147
|
-
...(input.vpcConfig !== undefined &&
|
|
3148
|
-
input.vpcConfig !== null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }),
|
|
3057
|
+
...(input.serviceRole != null && { serviceRole: input.serviceRole }),
|
|
3058
|
+
...(input.source != null && { source: serializeAws_json1_1ProjectSource(input.source, context) }),
|
|
3059
|
+
...(input.sourceVersion != null && { sourceVersion: input.sourceVersion }),
|
|
3060
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3061
|
+
...(input.timeoutInMinutes != null && { timeoutInMinutes: input.timeoutInMinutes }),
|
|
3062
|
+
...(input.vpcConfig != null && { vpcConfig: serializeAws_json1_1VpcConfig(input.vpcConfig, context) }),
|
|
3149
3063
|
};
|
|
3150
3064
|
};
|
|
3151
3065
|
const serializeAws_json1_1UpdateProjectVisibilityInput = (input, context) => {
|
|
3152
3066
|
return {
|
|
3153
|
-
...(input.projectArn
|
|
3154
|
-
...(input.projectVisibility
|
|
3155
|
-
|
|
3156
|
-
...(input.resourceAccessRole !== undefined &&
|
|
3157
|
-
input.resourceAccessRole !== null && { resourceAccessRole: input.resourceAccessRole }),
|
|
3067
|
+
...(input.projectArn != null && { projectArn: input.projectArn }),
|
|
3068
|
+
...(input.projectVisibility != null && { projectVisibility: input.projectVisibility }),
|
|
3069
|
+
...(input.resourceAccessRole != null && { resourceAccessRole: input.resourceAccessRole }),
|
|
3158
3070
|
};
|
|
3159
3071
|
};
|
|
3160
3072
|
const serializeAws_json1_1UpdateReportGroupInput = (input, context) => {
|
|
3161
3073
|
return {
|
|
3162
|
-
...(input.arn
|
|
3163
|
-
...(input.exportConfig
|
|
3164
|
-
input.exportConfig !== null && {
|
|
3074
|
+
...(input.arn != null && { arn: input.arn }),
|
|
3075
|
+
...(input.exportConfig != null && {
|
|
3165
3076
|
exportConfig: serializeAws_json1_1ReportExportConfig(input.exportConfig, context),
|
|
3166
3077
|
}),
|
|
3167
|
-
...(input.tags
|
|
3078
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3168
3079
|
};
|
|
3169
3080
|
};
|
|
3170
3081
|
const serializeAws_json1_1UpdateWebhookInput = (input, context) => {
|
|
3171
3082
|
return {
|
|
3172
|
-
...(input.branchFilter
|
|
3173
|
-
...(input.buildType
|
|
3174
|
-
...(input.filterGroups
|
|
3175
|
-
|
|
3176
|
-
...(input.
|
|
3177
|
-
...(input.rotateSecret !== undefined && input.rotateSecret !== null && { rotateSecret: input.rotateSecret }),
|
|
3083
|
+
...(input.branchFilter != null && { branchFilter: input.branchFilter }),
|
|
3084
|
+
...(input.buildType != null && { buildType: input.buildType }),
|
|
3085
|
+
...(input.filterGroups != null && { filterGroups: serializeAws_json1_1FilterGroups(input.filterGroups, context) }),
|
|
3086
|
+
...(input.projectName != null && { projectName: input.projectName }),
|
|
3087
|
+
...(input.rotateSecret != null && { rotateSecret: input.rotateSecret }),
|
|
3178
3088
|
};
|
|
3179
3089
|
};
|
|
3180
3090
|
const serializeAws_json1_1VpcConfig = (input, context) => {
|
|
3181
3091
|
return {
|
|
3182
|
-
...(input.securityGroupIds
|
|
3183
|
-
input.securityGroupIds !== null && {
|
|
3092
|
+
...(input.securityGroupIds != null && {
|
|
3184
3093
|
securityGroupIds: serializeAws_json1_1SecurityGroupIds(input.securityGroupIds, context),
|
|
3185
3094
|
}),
|
|
3186
|
-
...(input.subnets
|
|
3187
|
-
|
|
3188
|
-
...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
|
|
3095
|
+
...(input.subnets != null && { subnets: serializeAws_json1_1Subnets(input.subnets, context) }),
|
|
3096
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
3189
3097
|
};
|
|
3190
3098
|
};
|
|
3191
3099
|
const serializeAws_json1_1WebhookFilter = (input, context) => {
|
|
3192
3100
|
return {
|
|
3193
|
-
...(input.excludeMatchedPattern
|
|
3194
|
-
|
|
3195
|
-
...(input.
|
|
3196
|
-
...(input.type !== undefined && input.type !== null && { type: input.type }),
|
|
3101
|
+
...(input.excludeMatchedPattern != null && { excludeMatchedPattern: input.excludeMatchedPattern }),
|
|
3102
|
+
...(input.pattern != null && { pattern: input.pattern }),
|
|
3103
|
+
...(input.type != null && { type: input.type }),
|
|
3197
3104
|
};
|
|
3198
3105
|
};
|
|
3199
3106
|
const deserializeAws_json1_1AccountLimitExceededException = (output, context) => {
|
|
@@ -3203,67 +3110,51 @@ const deserializeAws_json1_1AccountLimitExceededException = (output, context) =>
|
|
|
3203
3110
|
};
|
|
3204
3111
|
const deserializeAws_json1_1BatchDeleteBuildsOutput = (output, context) => {
|
|
3205
3112
|
return {
|
|
3206
|
-
buildsDeleted: output.buildsDeleted
|
|
3207
|
-
|
|
3208
|
-
: undefined,
|
|
3209
|
-
buildsNotDeleted: output.buildsNotDeleted !== undefined && output.buildsNotDeleted !== null
|
|
3113
|
+
buildsDeleted: output.buildsDeleted != null ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context) : undefined,
|
|
3114
|
+
buildsNotDeleted: output.buildsNotDeleted != null
|
|
3210
3115
|
? deserializeAws_json1_1BuildsNotDeleted(output.buildsNotDeleted, context)
|
|
3211
3116
|
: undefined,
|
|
3212
3117
|
};
|
|
3213
3118
|
};
|
|
3214
3119
|
const deserializeAws_json1_1BatchGetBuildBatchesOutput = (output, context) => {
|
|
3215
3120
|
return {
|
|
3216
|
-
buildBatches: output.buildBatches
|
|
3217
|
-
|
|
3218
|
-
: undefined,
|
|
3219
|
-
buildBatchesNotFound: output.buildBatchesNotFound !== undefined && output.buildBatchesNotFound !== null
|
|
3121
|
+
buildBatches: output.buildBatches != null ? deserializeAws_json1_1BuildBatches(output.buildBatches, context) : undefined,
|
|
3122
|
+
buildBatchesNotFound: output.buildBatchesNotFound != null
|
|
3220
3123
|
? deserializeAws_json1_1BuildBatchIds(output.buildBatchesNotFound, context)
|
|
3221
3124
|
: undefined,
|
|
3222
3125
|
};
|
|
3223
3126
|
};
|
|
3224
3127
|
const deserializeAws_json1_1BatchGetBuildsOutput = (output, context) => {
|
|
3225
3128
|
return {
|
|
3226
|
-
builds: output.builds
|
|
3227
|
-
|
|
3228
|
-
: undefined,
|
|
3229
|
-
buildsNotFound: output.buildsNotFound !== undefined && output.buildsNotFound !== null
|
|
3230
|
-
? deserializeAws_json1_1BuildIds(output.buildsNotFound, context)
|
|
3231
|
-
: undefined,
|
|
3129
|
+
builds: output.builds != null ? deserializeAws_json1_1Builds(output.builds, context) : undefined,
|
|
3130
|
+
buildsNotFound: output.buildsNotFound != null ? deserializeAws_json1_1BuildIds(output.buildsNotFound, context) : undefined,
|
|
3232
3131
|
};
|
|
3233
3132
|
};
|
|
3234
3133
|
const deserializeAws_json1_1BatchGetProjectsOutput = (output, context) => {
|
|
3235
3134
|
return {
|
|
3236
|
-
projects: output.projects
|
|
3237
|
-
|
|
3238
|
-
: undefined,
|
|
3239
|
-
projectsNotFound: output.projectsNotFound !== undefined && output.projectsNotFound !== null
|
|
3135
|
+
projects: output.projects != null ? deserializeAws_json1_1Projects(output.projects, context) : undefined,
|
|
3136
|
+
projectsNotFound: output.projectsNotFound != null
|
|
3240
3137
|
? deserializeAws_json1_1ProjectNames(output.projectsNotFound, context)
|
|
3241
3138
|
: undefined,
|
|
3242
3139
|
};
|
|
3243
3140
|
};
|
|
3244
3141
|
const deserializeAws_json1_1BatchGetReportGroupsOutput = (output, context) => {
|
|
3245
3142
|
return {
|
|
3246
|
-
reportGroups: output.reportGroups
|
|
3247
|
-
|
|
3248
|
-
: undefined,
|
|
3249
|
-
reportGroupsNotFound: output.reportGroupsNotFound !== undefined && output.reportGroupsNotFound !== null
|
|
3143
|
+
reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroups(output.reportGroups, context) : undefined,
|
|
3144
|
+
reportGroupsNotFound: output.reportGroupsNotFound != null
|
|
3250
3145
|
? deserializeAws_json1_1ReportGroupArns(output.reportGroupsNotFound, context)
|
|
3251
3146
|
: undefined,
|
|
3252
3147
|
};
|
|
3253
3148
|
};
|
|
3254
3149
|
const deserializeAws_json1_1BatchGetReportsOutput = (output, context) => {
|
|
3255
3150
|
return {
|
|
3256
|
-
reports: output.reports
|
|
3257
|
-
|
|
3258
|
-
: undefined,
|
|
3259
|
-
reportsNotFound: output.reportsNotFound !== undefined && output.reportsNotFound !== null
|
|
3260
|
-
? deserializeAws_json1_1ReportArns(output.reportsNotFound, context)
|
|
3261
|
-
: undefined,
|
|
3151
|
+
reports: output.reports != null ? deserializeAws_json1_1Reports(output.reports, context) : undefined,
|
|
3152
|
+
reportsNotFound: output.reportsNotFound != null ? deserializeAws_json1_1ReportArns(output.reportsNotFound, context) : undefined,
|
|
3262
3153
|
};
|
|
3263
3154
|
};
|
|
3264
3155
|
const deserializeAws_json1_1BatchRestrictions = (output, context) => {
|
|
3265
3156
|
return {
|
|
3266
|
-
computeTypesAllowed: output.computeTypesAllowed
|
|
3157
|
+
computeTypesAllowed: output.computeTypesAllowed != null
|
|
3267
3158
|
? deserializeAws_json1_1ComputeTypesAllowed(output.computeTypesAllowed, context)
|
|
3268
3159
|
: undefined,
|
|
3269
3160
|
maximumBuildsAllowed: (0, smithy_client_1.expectInt32)(output.maximumBuildsAllowed),
|
|
@@ -3272,71 +3163,49 @@ const deserializeAws_json1_1BatchRestrictions = (output, context) => {
|
|
|
3272
3163
|
const deserializeAws_json1_1Build = (output, context) => {
|
|
3273
3164
|
return {
|
|
3274
3165
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3275
|
-
artifacts: output.artifacts
|
|
3276
|
-
? deserializeAws_json1_1BuildArtifacts(output.artifacts, context)
|
|
3277
|
-
: undefined,
|
|
3166
|
+
artifacts: output.artifacts != null ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context) : undefined,
|
|
3278
3167
|
buildBatchArn: (0, smithy_client_1.expectString)(output.buildBatchArn),
|
|
3279
3168
|
buildComplete: (0, smithy_client_1.expectBoolean)(output.buildComplete),
|
|
3280
3169
|
buildNumber: (0, smithy_client_1.expectLong)(output.buildNumber),
|
|
3281
3170
|
buildStatus: (0, smithy_client_1.expectString)(output.buildStatus),
|
|
3282
|
-
cache: output.cache
|
|
3283
|
-
? deserializeAws_json1_1ProjectCache(output.cache, context)
|
|
3284
|
-
: undefined,
|
|
3171
|
+
cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
|
|
3285
3172
|
currentPhase: (0, smithy_client_1.expectString)(output.currentPhase),
|
|
3286
|
-
debugSession: output.debugSession
|
|
3287
|
-
? deserializeAws_json1_1DebugSession(output.debugSession, context)
|
|
3288
|
-
: undefined,
|
|
3173
|
+
debugSession: output.debugSession != null ? deserializeAws_json1_1DebugSession(output.debugSession, context) : undefined,
|
|
3289
3174
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
3290
|
-
endTime: output.endTime
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
environment: output.environment !== undefined && output.environment !== null
|
|
3294
|
-
? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
|
|
3295
|
-
: undefined,
|
|
3296
|
-
exportedEnvironmentVariables: output.exportedEnvironmentVariables !== undefined && output.exportedEnvironmentVariables !== null
|
|
3175
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3176
|
+
environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
|
|
3177
|
+
exportedEnvironmentVariables: output.exportedEnvironmentVariables != null
|
|
3297
3178
|
? deserializeAws_json1_1ExportedEnvironmentVariables(output.exportedEnvironmentVariables, context)
|
|
3298
3179
|
: undefined,
|
|
3299
|
-
fileSystemLocations: output.fileSystemLocations
|
|
3180
|
+
fileSystemLocations: output.fileSystemLocations != null
|
|
3300
3181
|
? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
|
|
3301
3182
|
: undefined,
|
|
3302
3183
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3303
3184
|
initiator: (0, smithy_client_1.expectString)(output.initiator),
|
|
3304
|
-
logs: output.logs
|
|
3305
|
-
|
|
3306
|
-
: undefined,
|
|
3307
|
-
networkInterface: output.networkInterface !== undefined && output.networkInterface !== null
|
|
3185
|
+
logs: output.logs != null ? deserializeAws_json1_1LogsLocation(output.logs, context) : undefined,
|
|
3186
|
+
networkInterface: output.networkInterface != null
|
|
3308
3187
|
? deserializeAws_json1_1NetworkInterface(output.networkInterface, context)
|
|
3309
3188
|
: undefined,
|
|
3310
|
-
phases: output.phases
|
|
3311
|
-
? deserializeAws_json1_1BuildPhases(output.phases, context)
|
|
3312
|
-
: undefined,
|
|
3189
|
+
phases: output.phases != null ? deserializeAws_json1_1BuildPhases(output.phases, context) : undefined,
|
|
3313
3190
|
projectName: (0, smithy_client_1.expectString)(output.projectName),
|
|
3314
3191
|
queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
|
|
3315
|
-
reportArns: output.reportArns
|
|
3316
|
-
? deserializeAws_json1_1BuildReportArns(output.reportArns, context)
|
|
3317
|
-
: undefined,
|
|
3192
|
+
reportArns: output.reportArns != null ? deserializeAws_json1_1BuildReportArns(output.reportArns, context) : undefined,
|
|
3318
3193
|
resolvedSourceVersion: (0, smithy_client_1.expectString)(output.resolvedSourceVersion),
|
|
3319
|
-
secondaryArtifacts: output.secondaryArtifacts
|
|
3194
|
+
secondaryArtifacts: output.secondaryArtifacts != null
|
|
3320
3195
|
? deserializeAws_json1_1BuildArtifactsList(output.secondaryArtifacts, context)
|
|
3321
3196
|
: undefined,
|
|
3322
|
-
secondarySourceVersions: output.secondarySourceVersions
|
|
3197
|
+
secondarySourceVersions: output.secondarySourceVersions != null
|
|
3323
3198
|
? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
|
|
3324
3199
|
: undefined,
|
|
3325
|
-
secondarySources: output.secondarySources
|
|
3200
|
+
secondarySources: output.secondarySources != null
|
|
3326
3201
|
? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
|
|
3327
3202
|
: undefined,
|
|
3328
3203
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
3329
|
-
source: output.source
|
|
3330
|
-
? deserializeAws_json1_1ProjectSource(output.source, context)
|
|
3331
|
-
: undefined,
|
|
3204
|
+
source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
|
|
3332
3205
|
sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
|
|
3333
|
-
startTime: output.startTime
|
|
3334
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3335
|
-
: undefined,
|
|
3206
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3336
3207
|
timeoutInMinutes: (0, smithy_client_1.expectInt32)(output.timeoutInMinutes),
|
|
3337
|
-
vpcConfig: output.vpcConfig
|
|
3338
|
-
? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
|
|
3339
|
-
: undefined,
|
|
3208
|
+
vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
|
|
3340
3209
|
};
|
|
3341
3210
|
};
|
|
3342
3211
|
const deserializeAws_json1_1BuildArtifacts = (output, context) => {
|
|
@@ -3364,65 +3233,45 @@ const deserializeAws_json1_1BuildArtifactsList = (output, context) => {
|
|
|
3364
3233
|
const deserializeAws_json1_1BuildBatch = (output, context) => {
|
|
3365
3234
|
return {
|
|
3366
3235
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3367
|
-
artifacts: output.artifacts
|
|
3368
|
-
|
|
3369
|
-
: undefined,
|
|
3370
|
-
buildBatchConfig: output.buildBatchConfig !== undefined && output.buildBatchConfig !== null
|
|
3236
|
+
artifacts: output.artifacts != null ? deserializeAws_json1_1BuildArtifacts(output.artifacts, context) : undefined,
|
|
3237
|
+
buildBatchConfig: output.buildBatchConfig != null
|
|
3371
3238
|
? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context)
|
|
3372
3239
|
: undefined,
|
|
3373
3240
|
buildBatchNumber: (0, smithy_client_1.expectLong)(output.buildBatchNumber),
|
|
3374
3241
|
buildBatchStatus: (0, smithy_client_1.expectString)(output.buildBatchStatus),
|
|
3375
|
-
buildGroups: output.buildGroups
|
|
3376
|
-
? deserializeAws_json1_1BuildGroups(output.buildGroups, context)
|
|
3377
|
-
: undefined,
|
|
3242
|
+
buildGroups: output.buildGroups != null ? deserializeAws_json1_1BuildGroups(output.buildGroups, context) : undefined,
|
|
3378
3243
|
buildTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.buildTimeoutInMinutes),
|
|
3379
|
-
cache: output.cache
|
|
3380
|
-
? deserializeAws_json1_1ProjectCache(output.cache, context)
|
|
3381
|
-
: undefined,
|
|
3244
|
+
cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
|
|
3382
3245
|
complete: (0, smithy_client_1.expectBoolean)(output.complete),
|
|
3383
3246
|
currentPhase: (0, smithy_client_1.expectString)(output.currentPhase),
|
|
3384
3247
|
debugSessionEnabled: (0, smithy_client_1.expectBoolean)(output.debugSessionEnabled),
|
|
3385
3248
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
3386
|
-
endTime: output.endTime
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
environment: output.environment !== undefined && output.environment !== null
|
|
3390
|
-
? deserializeAws_json1_1ProjectEnvironment(output.environment, context)
|
|
3391
|
-
: undefined,
|
|
3392
|
-
fileSystemLocations: output.fileSystemLocations !== undefined && output.fileSystemLocations !== null
|
|
3249
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3250
|
+
environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
|
|
3251
|
+
fileSystemLocations: output.fileSystemLocations != null
|
|
3393
3252
|
? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
|
|
3394
3253
|
: undefined,
|
|
3395
3254
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3396
3255
|
initiator: (0, smithy_client_1.expectString)(output.initiator),
|
|
3397
|
-
logConfig: output.logConfig
|
|
3398
|
-
|
|
3399
|
-
: undefined,
|
|
3400
|
-
phases: output.phases !== undefined && output.phases !== null
|
|
3401
|
-
? deserializeAws_json1_1BuildBatchPhases(output.phases, context)
|
|
3402
|
-
: undefined,
|
|
3256
|
+
logConfig: output.logConfig != null ? deserializeAws_json1_1LogsConfig(output.logConfig, context) : undefined,
|
|
3257
|
+
phases: output.phases != null ? deserializeAws_json1_1BuildBatchPhases(output.phases, context) : undefined,
|
|
3403
3258
|
projectName: (0, smithy_client_1.expectString)(output.projectName),
|
|
3404
3259
|
queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
|
|
3405
3260
|
resolvedSourceVersion: (0, smithy_client_1.expectString)(output.resolvedSourceVersion),
|
|
3406
|
-
secondaryArtifacts: output.secondaryArtifacts
|
|
3261
|
+
secondaryArtifacts: output.secondaryArtifacts != null
|
|
3407
3262
|
? deserializeAws_json1_1BuildArtifactsList(output.secondaryArtifacts, context)
|
|
3408
3263
|
: undefined,
|
|
3409
|
-
secondarySourceVersions: output.secondarySourceVersions
|
|
3264
|
+
secondarySourceVersions: output.secondarySourceVersions != null
|
|
3410
3265
|
? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
|
|
3411
3266
|
: undefined,
|
|
3412
|
-
secondarySources: output.secondarySources
|
|
3267
|
+
secondarySources: output.secondarySources != null
|
|
3413
3268
|
? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
|
|
3414
3269
|
: undefined,
|
|
3415
3270
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
3416
|
-
source: output.source
|
|
3417
|
-
? deserializeAws_json1_1ProjectSource(output.source, context)
|
|
3418
|
-
: undefined,
|
|
3271
|
+
source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
|
|
3419
3272
|
sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
|
|
3420
|
-
startTime: output.startTime
|
|
3421
|
-
|
|
3422
|
-
: undefined,
|
|
3423
|
-
vpcConfig: output.vpcConfig !== undefined && output.vpcConfig !== null
|
|
3424
|
-
? deserializeAws_json1_1VpcConfig(output.vpcConfig, context)
|
|
3425
|
-
: undefined,
|
|
3273
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3274
|
+
vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
|
|
3426
3275
|
};
|
|
3427
3276
|
};
|
|
3428
3277
|
const deserializeAws_json1_1BuildBatches = (output, context) => {
|
|
@@ -3449,18 +3298,12 @@ const deserializeAws_json1_1BuildBatchIds = (output, context) => {
|
|
|
3449
3298
|
};
|
|
3450
3299
|
const deserializeAws_json1_1BuildBatchPhase = (output, context) => {
|
|
3451
3300
|
return {
|
|
3452
|
-
contexts: output.contexts
|
|
3453
|
-
? deserializeAws_json1_1PhaseContexts(output.contexts, context)
|
|
3454
|
-
: undefined,
|
|
3301
|
+
contexts: output.contexts != null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined,
|
|
3455
3302
|
durationInSeconds: (0, smithy_client_1.expectLong)(output.durationInSeconds),
|
|
3456
|
-
endTime: output.endTime
|
|
3457
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
3458
|
-
: undefined,
|
|
3303
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3459
3304
|
phaseStatus: (0, smithy_client_1.expectString)(output.phaseStatus),
|
|
3460
3305
|
phaseType: (0, smithy_client_1.expectString)(output.phaseType),
|
|
3461
|
-
startTime: output.startTime
|
|
3462
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3463
|
-
: undefined,
|
|
3306
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3464
3307
|
};
|
|
3465
3308
|
};
|
|
3466
3309
|
const deserializeAws_json1_1BuildBatchPhases = (output, context) => {
|
|
@@ -3476,15 +3319,13 @@ const deserializeAws_json1_1BuildBatchPhases = (output, context) => {
|
|
|
3476
3319
|
};
|
|
3477
3320
|
const deserializeAws_json1_1BuildGroup = (output, context) => {
|
|
3478
3321
|
return {
|
|
3479
|
-
currentBuildSummary: output.currentBuildSummary
|
|
3322
|
+
currentBuildSummary: output.currentBuildSummary != null
|
|
3480
3323
|
? deserializeAws_json1_1BuildSummary(output.currentBuildSummary, context)
|
|
3481
3324
|
: undefined,
|
|
3482
|
-
dependsOn: output.dependsOn
|
|
3483
|
-
? deserializeAws_json1_1Identifiers(output.dependsOn, context)
|
|
3484
|
-
: undefined,
|
|
3325
|
+
dependsOn: output.dependsOn != null ? deserializeAws_json1_1Identifiers(output.dependsOn, context) : undefined,
|
|
3485
3326
|
identifier: (0, smithy_client_1.expectString)(output.identifier),
|
|
3486
3327
|
ignoreFailure: (0, smithy_client_1.expectBoolean)(output.ignoreFailure),
|
|
3487
|
-
priorBuildSummaryList: output.priorBuildSummaryList
|
|
3328
|
+
priorBuildSummaryList: output.priorBuildSummaryList != null
|
|
3488
3329
|
? deserializeAws_json1_1BuildSummaries(output.priorBuildSummaryList, context)
|
|
3489
3330
|
: undefined,
|
|
3490
3331
|
};
|
|
@@ -3519,18 +3360,12 @@ const deserializeAws_json1_1BuildNotDeleted = (output, context) => {
|
|
|
3519
3360
|
};
|
|
3520
3361
|
const deserializeAws_json1_1BuildPhase = (output, context) => {
|
|
3521
3362
|
return {
|
|
3522
|
-
contexts: output.contexts
|
|
3523
|
-
? deserializeAws_json1_1PhaseContexts(output.contexts, context)
|
|
3524
|
-
: undefined,
|
|
3363
|
+
contexts: output.contexts != null ? deserializeAws_json1_1PhaseContexts(output.contexts, context) : undefined,
|
|
3525
3364
|
durationInSeconds: (0, smithy_client_1.expectLong)(output.durationInSeconds),
|
|
3526
|
-
endTime: output.endTime
|
|
3527
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
3528
|
-
: undefined,
|
|
3365
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
3529
3366
|
phaseStatus: (0, smithy_client_1.expectString)(output.phaseStatus),
|
|
3530
3367
|
phaseType: (0, smithy_client_1.expectString)(output.phaseType),
|
|
3531
|
-
startTime: output.startTime
|
|
3532
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
3533
|
-
: undefined,
|
|
3368
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
3534
3369
|
};
|
|
3535
3370
|
};
|
|
3536
3371
|
const deserializeAws_json1_1BuildPhases = (output, context) => {
|
|
@@ -3598,13 +3433,13 @@ const deserializeAws_json1_1BuildSummary = (output, context) => {
|
|
|
3598
3433
|
return {
|
|
3599
3434
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3600
3435
|
buildStatus: (0, smithy_client_1.expectString)(output.buildStatus),
|
|
3601
|
-
primaryArtifact: output.primaryArtifact
|
|
3436
|
+
primaryArtifact: output.primaryArtifact != null
|
|
3602
3437
|
? deserializeAws_json1_1ResolvedArtifact(output.primaryArtifact, context)
|
|
3603
3438
|
: undefined,
|
|
3604
|
-
requestedOn: output.requestedOn
|
|
3439
|
+
requestedOn: output.requestedOn != null
|
|
3605
3440
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestedOn)))
|
|
3606
3441
|
: undefined,
|
|
3607
|
-
secondaryArtifacts: output.secondaryArtifacts
|
|
3442
|
+
secondaryArtifacts: output.secondaryArtifacts != null
|
|
3608
3443
|
? deserializeAws_json1_1ResolvedSecondaryArtifacts(output.secondaryArtifacts, context)
|
|
3609
3444
|
: undefined,
|
|
3610
3445
|
};
|
|
@@ -3621,9 +3456,7 @@ const deserializeAws_json1_1CodeCoverage = (output, context) => {
|
|
|
3621
3456
|
branchCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.branchCoveragePercentage),
|
|
3622
3457
|
branchesCovered: (0, smithy_client_1.expectInt32)(output.branchesCovered),
|
|
3623
3458
|
branchesMissed: (0, smithy_client_1.expectInt32)(output.branchesMissed),
|
|
3624
|
-
expired: output.expired
|
|
3625
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired)))
|
|
3626
|
-
: undefined,
|
|
3459
|
+
expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
|
|
3627
3460
|
filePath: (0, smithy_client_1.expectString)(output.filePath),
|
|
3628
3461
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
3629
3462
|
lineCoveragePercentage: (0, smithy_client_1.limitedParseDouble)(output.lineCoveragePercentage),
|
|
@@ -3666,23 +3499,17 @@ const deserializeAws_json1_1ComputeTypesAllowed = (output, context) => {
|
|
|
3666
3499
|
};
|
|
3667
3500
|
const deserializeAws_json1_1CreateProjectOutput = (output, context) => {
|
|
3668
3501
|
return {
|
|
3669
|
-
project: output.project
|
|
3670
|
-
? deserializeAws_json1_1Project(output.project, context)
|
|
3671
|
-
: undefined,
|
|
3502
|
+
project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
|
|
3672
3503
|
};
|
|
3673
3504
|
};
|
|
3674
3505
|
const deserializeAws_json1_1CreateReportGroupOutput = (output, context) => {
|
|
3675
3506
|
return {
|
|
3676
|
-
reportGroup: output.reportGroup
|
|
3677
|
-
? deserializeAws_json1_1ReportGroup(output.reportGroup, context)
|
|
3678
|
-
: undefined,
|
|
3507
|
+
reportGroup: output.reportGroup != null ? deserializeAws_json1_1ReportGroup(output.reportGroup, context) : undefined,
|
|
3679
3508
|
};
|
|
3680
3509
|
};
|
|
3681
3510
|
const deserializeAws_json1_1CreateWebhookOutput = (output, context) => {
|
|
3682
3511
|
return {
|
|
3683
|
-
webhook: output.webhook
|
|
3684
|
-
? deserializeAws_json1_1Webhook(output.webhook, context)
|
|
3685
|
-
: undefined,
|
|
3512
|
+
webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
|
|
3686
3513
|
};
|
|
3687
3514
|
};
|
|
3688
3515
|
const deserializeAws_json1_1DebugSession = (output, context) => {
|
|
@@ -3693,10 +3520,8 @@ const deserializeAws_json1_1DebugSession = (output, context) => {
|
|
|
3693
3520
|
};
|
|
3694
3521
|
const deserializeAws_json1_1DeleteBuildBatchOutput = (output, context) => {
|
|
3695
3522
|
return {
|
|
3696
|
-
buildsDeleted: output.buildsDeleted
|
|
3697
|
-
|
|
3698
|
-
: undefined,
|
|
3699
|
-
buildsNotDeleted: output.buildsNotDeleted !== undefined && output.buildsNotDeleted !== null
|
|
3523
|
+
buildsDeleted: output.buildsDeleted != null ? deserializeAws_json1_1BuildIds(output.buildsDeleted, context) : undefined,
|
|
3524
|
+
buildsNotDeleted: output.buildsNotDeleted != null
|
|
3700
3525
|
? deserializeAws_json1_1BuildsNotDeleted(output.buildsNotDeleted, context)
|
|
3701
3526
|
: undefined,
|
|
3702
3527
|
statusCode: (0, smithy_client_1.expectString)(output.statusCode),
|
|
@@ -3724,27 +3549,21 @@ const deserializeAws_json1_1DeleteWebhookOutput = (output, context) => {
|
|
|
3724
3549
|
};
|
|
3725
3550
|
const deserializeAws_json1_1DescribeCodeCoveragesOutput = (output, context) => {
|
|
3726
3551
|
return {
|
|
3727
|
-
codeCoverages: output.codeCoverages
|
|
3728
|
-
? deserializeAws_json1_1CodeCoverages(output.codeCoverages, context)
|
|
3729
|
-
: undefined,
|
|
3552
|
+
codeCoverages: output.codeCoverages != null ? deserializeAws_json1_1CodeCoverages(output.codeCoverages, context) : undefined,
|
|
3730
3553
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3731
3554
|
};
|
|
3732
3555
|
};
|
|
3733
3556
|
const deserializeAws_json1_1DescribeTestCasesOutput = (output, context) => {
|
|
3734
3557
|
return {
|
|
3735
3558
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3736
|
-
testCases: output.testCases
|
|
3737
|
-
? deserializeAws_json1_1TestCases(output.testCases, context)
|
|
3738
|
-
: undefined,
|
|
3559
|
+
testCases: output.testCases != null ? deserializeAws_json1_1TestCases(output.testCases, context) : undefined,
|
|
3739
3560
|
};
|
|
3740
3561
|
};
|
|
3741
3562
|
const deserializeAws_json1_1EnvironmentImage = (output, context) => {
|
|
3742
3563
|
return {
|
|
3743
3564
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
3744
3565
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3745
|
-
versions: output.versions
|
|
3746
|
-
? deserializeAws_json1_1ImageVersions(output.versions, context)
|
|
3747
|
-
: undefined,
|
|
3566
|
+
versions: output.versions != null ? deserializeAws_json1_1ImageVersions(output.versions, context) : undefined,
|
|
3748
3567
|
};
|
|
3749
3568
|
};
|
|
3750
3569
|
const deserializeAws_json1_1EnvironmentImages = (output, context) => {
|
|
@@ -3760,9 +3579,7 @@ const deserializeAws_json1_1EnvironmentImages = (output, context) => {
|
|
|
3760
3579
|
};
|
|
3761
3580
|
const deserializeAws_json1_1EnvironmentLanguage = (output, context) => {
|
|
3762
3581
|
return {
|
|
3763
|
-
images: output.images
|
|
3764
|
-
? deserializeAws_json1_1EnvironmentImages(output.images, context)
|
|
3765
|
-
: undefined,
|
|
3582
|
+
images: output.images != null ? deserializeAws_json1_1EnvironmentImages(output.images, context) : undefined,
|
|
3766
3583
|
language: (0, smithy_client_1.expectString)(output.language),
|
|
3767
3584
|
};
|
|
3768
3585
|
};
|
|
@@ -3779,9 +3596,7 @@ const deserializeAws_json1_1EnvironmentLanguages = (output, context) => {
|
|
|
3779
3596
|
};
|
|
3780
3597
|
const deserializeAws_json1_1EnvironmentPlatform = (output, context) => {
|
|
3781
3598
|
return {
|
|
3782
|
-
languages: output.languages
|
|
3783
|
-
? deserializeAws_json1_1EnvironmentLanguages(output.languages, context)
|
|
3784
|
-
: undefined,
|
|
3599
|
+
languages: output.languages != null ? deserializeAws_json1_1EnvironmentLanguages(output.languages, context) : undefined,
|
|
3785
3600
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
3786
3601
|
};
|
|
3787
3602
|
};
|
|
@@ -3855,12 +3670,8 @@ const deserializeAws_json1_1FilterGroups = (output, context) => {
|
|
|
3855
3670
|
};
|
|
3856
3671
|
const deserializeAws_json1_1GetReportGroupTrendOutput = (output, context) => {
|
|
3857
3672
|
return {
|
|
3858
|
-
rawData: output.rawData
|
|
3859
|
-
|
|
3860
|
-
: undefined,
|
|
3861
|
-
stats: output.stats !== undefined && output.stats !== null
|
|
3862
|
-
? deserializeAws_json1_1ReportGroupTrendStats(output.stats, context)
|
|
3863
|
-
: undefined,
|
|
3673
|
+
rawData: output.rawData != null ? deserializeAws_json1_1ReportGroupTrendRawDataList(output.rawData, context) : undefined,
|
|
3674
|
+
stats: output.stats != null ? deserializeAws_json1_1ReportGroupTrendStats(output.stats, context) : undefined,
|
|
3864
3675
|
};
|
|
3865
3676
|
};
|
|
3866
3677
|
const deserializeAws_json1_1GetResourcePolicyOutput = (output, context) => {
|
|
@@ -3910,116 +3721,94 @@ const deserializeAws_json1_1InvalidInputException = (output, context) => {
|
|
|
3910
3721
|
};
|
|
3911
3722
|
const deserializeAws_json1_1ListBuildBatchesForProjectOutput = (output, context) => {
|
|
3912
3723
|
return {
|
|
3913
|
-
ids: output.ids
|
|
3914
|
-
? deserializeAws_json1_1BuildBatchIds(output.ids, context)
|
|
3915
|
-
: undefined,
|
|
3724
|
+
ids: output.ids != null ? deserializeAws_json1_1BuildBatchIds(output.ids, context) : undefined,
|
|
3916
3725
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3917
3726
|
};
|
|
3918
3727
|
};
|
|
3919
3728
|
const deserializeAws_json1_1ListBuildBatchesOutput = (output, context) => {
|
|
3920
3729
|
return {
|
|
3921
|
-
ids: output.ids
|
|
3922
|
-
? deserializeAws_json1_1BuildBatchIds(output.ids, context)
|
|
3923
|
-
: undefined,
|
|
3730
|
+
ids: output.ids != null ? deserializeAws_json1_1BuildBatchIds(output.ids, context) : undefined,
|
|
3924
3731
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3925
3732
|
};
|
|
3926
3733
|
};
|
|
3927
3734
|
const deserializeAws_json1_1ListBuildsForProjectOutput = (output, context) => {
|
|
3928
3735
|
return {
|
|
3929
|
-
ids: output.ids
|
|
3736
|
+
ids: output.ids != null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
|
|
3930
3737
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3931
3738
|
};
|
|
3932
3739
|
};
|
|
3933
3740
|
const deserializeAws_json1_1ListBuildsOutput = (output, context) => {
|
|
3934
3741
|
return {
|
|
3935
|
-
ids: output.ids
|
|
3742
|
+
ids: output.ids != null ? deserializeAws_json1_1BuildIds(output.ids, context) : undefined,
|
|
3936
3743
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3937
3744
|
};
|
|
3938
3745
|
};
|
|
3939
3746
|
const deserializeAws_json1_1ListCuratedEnvironmentImagesOutput = (output, context) => {
|
|
3940
3747
|
return {
|
|
3941
|
-
platforms: output.platforms
|
|
3942
|
-
? deserializeAws_json1_1EnvironmentPlatforms(output.platforms, context)
|
|
3943
|
-
: undefined,
|
|
3748
|
+
platforms: output.platforms != null ? deserializeAws_json1_1EnvironmentPlatforms(output.platforms, context) : undefined,
|
|
3944
3749
|
};
|
|
3945
3750
|
};
|
|
3946
3751
|
const deserializeAws_json1_1ListProjectsOutput = (output, context) => {
|
|
3947
3752
|
return {
|
|
3948
3753
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3949
|
-
projects: output.projects
|
|
3950
|
-
? deserializeAws_json1_1ProjectNames(output.projects, context)
|
|
3951
|
-
: undefined,
|
|
3754
|
+
projects: output.projects != null ? deserializeAws_json1_1ProjectNames(output.projects, context) : undefined,
|
|
3952
3755
|
};
|
|
3953
3756
|
};
|
|
3954
3757
|
const deserializeAws_json1_1ListReportGroupsOutput = (output, context) => {
|
|
3955
3758
|
return {
|
|
3956
3759
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3957
|
-
reportGroups: output.reportGroups
|
|
3958
|
-
? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context)
|
|
3959
|
-
: undefined,
|
|
3760
|
+
reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context) : undefined,
|
|
3960
3761
|
};
|
|
3961
3762
|
};
|
|
3962
3763
|
const deserializeAws_json1_1ListReportsForReportGroupOutput = (output, context) => {
|
|
3963
3764
|
return {
|
|
3964
3765
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3965
|
-
reports: output.reports
|
|
3966
|
-
? deserializeAws_json1_1ReportArns(output.reports, context)
|
|
3967
|
-
: undefined,
|
|
3766
|
+
reports: output.reports != null ? deserializeAws_json1_1ReportArns(output.reports, context) : undefined,
|
|
3968
3767
|
};
|
|
3969
3768
|
};
|
|
3970
3769
|
const deserializeAws_json1_1ListReportsOutput = (output, context) => {
|
|
3971
3770
|
return {
|
|
3972
3771
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3973
|
-
reports: output.reports
|
|
3974
|
-
? deserializeAws_json1_1ReportArns(output.reports, context)
|
|
3975
|
-
: undefined,
|
|
3772
|
+
reports: output.reports != null ? deserializeAws_json1_1ReportArns(output.reports, context) : undefined,
|
|
3976
3773
|
};
|
|
3977
3774
|
};
|
|
3978
3775
|
const deserializeAws_json1_1ListSharedProjectsOutput = (output, context) => {
|
|
3979
3776
|
return {
|
|
3980
3777
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3981
|
-
projects: output.projects
|
|
3982
|
-
? deserializeAws_json1_1ProjectArns(output.projects, context)
|
|
3983
|
-
: undefined,
|
|
3778
|
+
projects: output.projects != null ? deserializeAws_json1_1ProjectArns(output.projects, context) : undefined,
|
|
3984
3779
|
};
|
|
3985
3780
|
};
|
|
3986
3781
|
const deserializeAws_json1_1ListSharedReportGroupsOutput = (output, context) => {
|
|
3987
3782
|
return {
|
|
3988
3783
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3989
|
-
reportGroups: output.reportGroups
|
|
3990
|
-
? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context)
|
|
3991
|
-
: undefined,
|
|
3784
|
+
reportGroups: output.reportGroups != null ? deserializeAws_json1_1ReportGroupArns(output.reportGroups, context) : undefined,
|
|
3992
3785
|
};
|
|
3993
3786
|
};
|
|
3994
3787
|
const deserializeAws_json1_1ListSourceCredentialsOutput = (output, context) => {
|
|
3995
3788
|
return {
|
|
3996
|
-
sourceCredentialsInfos: output.sourceCredentialsInfos
|
|
3789
|
+
sourceCredentialsInfos: output.sourceCredentialsInfos != null
|
|
3997
3790
|
? deserializeAws_json1_1SourceCredentialsInfos(output.sourceCredentialsInfos, context)
|
|
3998
3791
|
: undefined,
|
|
3999
3792
|
};
|
|
4000
3793
|
};
|
|
4001
3794
|
const deserializeAws_json1_1LogsConfig = (output, context) => {
|
|
4002
3795
|
return {
|
|
4003
|
-
cloudWatchLogs: output.cloudWatchLogs
|
|
3796
|
+
cloudWatchLogs: output.cloudWatchLogs != null
|
|
4004
3797
|
? deserializeAws_json1_1CloudWatchLogsConfig(output.cloudWatchLogs, context)
|
|
4005
3798
|
: undefined,
|
|
4006
|
-
s3Logs: output.s3Logs
|
|
4007
|
-
? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context)
|
|
4008
|
-
: undefined,
|
|
3799
|
+
s3Logs: output.s3Logs != null ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context) : undefined,
|
|
4009
3800
|
};
|
|
4010
3801
|
};
|
|
4011
3802
|
const deserializeAws_json1_1LogsLocation = (output, context) => {
|
|
4012
3803
|
return {
|
|
4013
|
-
cloudWatchLogs: output.cloudWatchLogs
|
|
3804
|
+
cloudWatchLogs: output.cloudWatchLogs != null
|
|
4014
3805
|
? deserializeAws_json1_1CloudWatchLogsConfig(output.cloudWatchLogs, context)
|
|
4015
3806
|
: undefined,
|
|
4016
3807
|
cloudWatchLogsArn: (0, smithy_client_1.expectString)(output.cloudWatchLogsArn),
|
|
4017
3808
|
deepLink: (0, smithy_client_1.expectString)(output.deepLink),
|
|
4018
3809
|
groupName: (0, smithy_client_1.expectString)(output.groupName),
|
|
4019
3810
|
s3DeepLink: (0, smithy_client_1.expectString)(output.s3DeepLink),
|
|
4020
|
-
s3Logs: output.s3Logs
|
|
4021
|
-
? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context)
|
|
4022
|
-
: undefined,
|
|
3811
|
+
s3Logs: output.s3Logs != null ? deserializeAws_json1_1S3LogsConfig(output.s3Logs, context) : undefined,
|
|
4023
3812
|
s3LogsArn: (0, smithy_client_1.expectString)(output.s3LogsArn),
|
|
4024
3813
|
streamName: (0, smithy_client_1.expectString)(output.streamName),
|
|
4025
3814
|
};
|
|
@@ -4055,65 +3844,45 @@ const deserializeAws_json1_1PhaseContexts = (output, context) => {
|
|
|
4055
3844
|
const deserializeAws_json1_1Project = (output, context) => {
|
|
4056
3845
|
return {
|
|
4057
3846
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4058
|
-
artifacts: output.artifacts
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
badge: output.badge !== undefined && output.badge !== null
|
|
4062
|
-
? deserializeAws_json1_1ProjectBadge(output.badge, context)
|
|
4063
|
-
: undefined,
|
|
4064
|
-
buildBatchConfig: output.buildBatchConfig !== undefined && output.buildBatchConfig !== null
|
|
3847
|
+
artifacts: output.artifacts != null ? deserializeAws_json1_1ProjectArtifacts(output.artifacts, context) : undefined,
|
|
3848
|
+
badge: output.badge != null ? deserializeAws_json1_1ProjectBadge(output.badge, context) : undefined,
|
|
3849
|
+
buildBatchConfig: output.buildBatchConfig != null
|
|
4065
3850
|
? deserializeAws_json1_1ProjectBuildBatchConfig(output.buildBatchConfig, context)
|
|
4066
3851
|
: undefined,
|
|
4067
|
-
cache: output.cache
|
|
4068
|
-
? deserializeAws_json1_1ProjectCache(output.cache, context)
|
|
4069
|
-
: undefined,
|
|
3852
|
+
cache: output.cache != null ? deserializeAws_json1_1ProjectCache(output.cache, context) : undefined,
|
|
4070
3853
|
concurrentBuildLimit: (0, smithy_client_1.expectInt32)(output.concurrentBuildLimit),
|
|
4071
|
-
created: output.created
|
|
4072
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
|
|
4073
|
-
: undefined,
|
|
3854
|
+
created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
|
|
4074
3855
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
4075
3856
|
encryptionKey: (0, smithy_client_1.expectString)(output.encryptionKey),
|
|
4076
|
-
environment: output.environment
|
|
4077
|
-
|
|
4078
|
-
: undefined,
|
|
4079
|
-
fileSystemLocations: output.fileSystemLocations !== undefined && output.fileSystemLocations !== null
|
|
3857
|
+
environment: output.environment != null ? deserializeAws_json1_1ProjectEnvironment(output.environment, context) : undefined,
|
|
3858
|
+
fileSystemLocations: output.fileSystemLocations != null
|
|
4080
3859
|
? deserializeAws_json1_1ProjectFileSystemLocations(output.fileSystemLocations, context)
|
|
4081
3860
|
: undefined,
|
|
4082
|
-
lastModified: output.lastModified
|
|
3861
|
+
lastModified: output.lastModified != null
|
|
4083
3862
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModified)))
|
|
4084
3863
|
: undefined,
|
|
4085
|
-
logsConfig: output.logsConfig
|
|
4086
|
-
? deserializeAws_json1_1LogsConfig(output.logsConfig, context)
|
|
4087
|
-
: undefined,
|
|
3864
|
+
logsConfig: output.logsConfig != null ? deserializeAws_json1_1LogsConfig(output.logsConfig, context) : undefined,
|
|
4088
3865
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4089
3866
|
projectVisibility: (0, smithy_client_1.expectString)(output.projectVisibility),
|
|
4090
3867
|
publicProjectAlias: (0, smithy_client_1.expectString)(output.publicProjectAlias),
|
|
4091
3868
|
queuedTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.queuedTimeoutInMinutes),
|
|
4092
3869
|
resourceAccessRole: (0, smithy_client_1.expectString)(output.resourceAccessRole),
|
|
4093
|
-
secondaryArtifacts: output.secondaryArtifacts
|
|
3870
|
+
secondaryArtifacts: output.secondaryArtifacts != null
|
|
4094
3871
|
? deserializeAws_json1_1ProjectArtifactsList(output.secondaryArtifacts, context)
|
|
4095
3872
|
: undefined,
|
|
4096
|
-
secondarySourceVersions: output.secondarySourceVersions
|
|
3873
|
+
secondarySourceVersions: output.secondarySourceVersions != null
|
|
4097
3874
|
? deserializeAws_json1_1ProjectSecondarySourceVersions(output.secondarySourceVersions, context)
|
|
4098
3875
|
: undefined,
|
|
4099
|
-
secondarySources: output.secondarySources
|
|
3876
|
+
secondarySources: output.secondarySources != null
|
|
4100
3877
|
? deserializeAws_json1_1ProjectSources(output.secondarySources, context)
|
|
4101
3878
|
: undefined,
|
|
4102
3879
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
4103
|
-
source: output.source
|
|
4104
|
-
? deserializeAws_json1_1ProjectSource(output.source, context)
|
|
4105
|
-
: undefined,
|
|
3880
|
+
source: output.source != null ? deserializeAws_json1_1ProjectSource(output.source, context) : undefined,
|
|
4106
3881
|
sourceVersion: (0, smithy_client_1.expectString)(output.sourceVersion),
|
|
4107
|
-
tags: output.tags
|
|
4108
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4109
|
-
: undefined,
|
|
3882
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4110
3883
|
timeoutInMinutes: (0, smithy_client_1.expectInt32)(output.timeoutInMinutes),
|
|
4111
|
-
vpcConfig: output.vpcConfig
|
|
4112
|
-
|
|
4113
|
-
: undefined,
|
|
4114
|
-
webhook: output.webhook !== undefined && output.webhook !== null
|
|
4115
|
-
? deserializeAws_json1_1Webhook(output.webhook, context)
|
|
4116
|
-
: undefined,
|
|
3884
|
+
vpcConfig: output.vpcConfig != null ? deserializeAws_json1_1VpcConfig(output.vpcConfig, context) : undefined,
|
|
3885
|
+
webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
|
|
4117
3886
|
};
|
|
4118
3887
|
};
|
|
4119
3888
|
const deserializeAws_json1_1ProjectArns = (output, context) => {
|
|
@@ -4162,9 +3931,7 @@ const deserializeAws_json1_1ProjectBuildBatchConfig = (output, context) => {
|
|
|
4162
3931
|
return {
|
|
4163
3932
|
batchReportMode: (0, smithy_client_1.expectString)(output.batchReportMode),
|
|
4164
3933
|
combineArtifacts: (0, smithy_client_1.expectBoolean)(output.combineArtifacts),
|
|
4165
|
-
restrictions: output.restrictions
|
|
4166
|
-
? deserializeAws_json1_1BatchRestrictions(output.restrictions, context)
|
|
4167
|
-
: undefined,
|
|
3934
|
+
restrictions: output.restrictions != null ? deserializeAws_json1_1BatchRestrictions(output.restrictions, context) : undefined,
|
|
4168
3935
|
serviceRole: (0, smithy_client_1.expectString)(output.serviceRole),
|
|
4169
3936
|
timeoutInMins: (0, smithy_client_1.expectInt32)(output.timeoutInMins),
|
|
4170
3937
|
};
|
|
@@ -4172,9 +3939,7 @@ const deserializeAws_json1_1ProjectBuildBatchConfig = (output, context) => {
|
|
|
4172
3939
|
const deserializeAws_json1_1ProjectCache = (output, context) => {
|
|
4173
3940
|
return {
|
|
4174
3941
|
location: (0, smithy_client_1.expectString)(output.location),
|
|
4175
|
-
modes: output.modes
|
|
4176
|
-
? deserializeAws_json1_1ProjectCacheModes(output.modes, context)
|
|
4177
|
-
: undefined,
|
|
3942
|
+
modes: output.modes != null ? deserializeAws_json1_1ProjectCacheModes(output.modes, context) : undefined,
|
|
4178
3943
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4179
3944
|
};
|
|
4180
3945
|
};
|
|
@@ -4193,13 +3958,13 @@ const deserializeAws_json1_1ProjectEnvironment = (output, context) => {
|
|
|
4193
3958
|
return {
|
|
4194
3959
|
certificate: (0, smithy_client_1.expectString)(output.certificate),
|
|
4195
3960
|
computeType: (0, smithy_client_1.expectString)(output.computeType),
|
|
4196
|
-
environmentVariables: output.environmentVariables
|
|
3961
|
+
environmentVariables: output.environmentVariables != null
|
|
4197
3962
|
? deserializeAws_json1_1EnvironmentVariables(output.environmentVariables, context)
|
|
4198
3963
|
: undefined,
|
|
4199
3964
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
4200
3965
|
imagePullCredentialsType: (0, smithy_client_1.expectString)(output.imagePullCredentialsType),
|
|
4201
3966
|
privilegedMode: (0, smithy_client_1.expectBoolean)(output.privilegedMode),
|
|
4202
|
-
registryCredential: output.registryCredential
|
|
3967
|
+
registryCredential: output.registryCredential != null
|
|
4203
3968
|
? deserializeAws_json1_1RegistryCredential(output.registryCredential, context)
|
|
4204
3969
|
: undefined,
|
|
4205
3970
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -4260,15 +4025,13 @@ const deserializeAws_json1_1ProjectSecondarySourceVersions = (output, context) =
|
|
|
4260
4025
|
};
|
|
4261
4026
|
const deserializeAws_json1_1ProjectSource = (output, context) => {
|
|
4262
4027
|
return {
|
|
4263
|
-
auth: output.auth
|
|
4264
|
-
|
|
4265
|
-
: undefined,
|
|
4266
|
-
buildStatusConfig: output.buildStatusConfig !== undefined && output.buildStatusConfig !== null
|
|
4028
|
+
auth: output.auth != null ? deserializeAws_json1_1SourceAuth(output.auth, context) : undefined,
|
|
4029
|
+
buildStatusConfig: output.buildStatusConfig != null
|
|
4267
4030
|
? deserializeAws_json1_1BuildStatusConfig(output.buildStatusConfig, context)
|
|
4268
4031
|
: undefined,
|
|
4269
4032
|
buildspec: (0, smithy_client_1.expectString)(output.buildspec),
|
|
4270
4033
|
gitCloneDepth: (0, smithy_client_1.expectInt32)(output.gitCloneDepth),
|
|
4271
|
-
gitSubmodulesConfig: output.gitSubmodulesConfig
|
|
4034
|
+
gitSubmodulesConfig: output.gitSubmodulesConfig != null
|
|
4272
4035
|
? deserializeAws_json1_1GitSubmodulesConfig(output.gitSubmodulesConfig, context)
|
|
4273
4036
|
: undefined,
|
|
4274
4037
|
insecureSsl: (0, smithy_client_1.expectBoolean)(output.insecureSsl),
|
|
@@ -4309,25 +4072,17 @@ const deserializeAws_json1_1RegistryCredential = (output, context) => {
|
|
|
4309
4072
|
const deserializeAws_json1_1Report = (output, context) => {
|
|
4310
4073
|
return {
|
|
4311
4074
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4312
|
-
codeCoverageSummary: output.codeCoverageSummary
|
|
4075
|
+
codeCoverageSummary: output.codeCoverageSummary != null
|
|
4313
4076
|
? deserializeAws_json1_1CodeCoverageReportSummary(output.codeCoverageSummary, context)
|
|
4314
4077
|
: undefined,
|
|
4315
|
-
created: output.created
|
|
4316
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created)))
|
|
4317
|
-
: undefined,
|
|
4078
|
+
created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
|
|
4318
4079
|
executionId: (0, smithy_client_1.expectString)(output.executionId),
|
|
4319
|
-
expired: output.expired
|
|
4320
|
-
|
|
4321
|
-
: undefined,
|
|
4322
|
-
exportConfig: output.exportConfig !== undefined && output.exportConfig !== null
|
|
4323
|
-
? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
|
|
4324
|
-
: undefined,
|
|
4080
|
+
expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
|
|
4081
|
+
exportConfig: output.exportConfig != null ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context) : undefined,
|
|
4325
4082
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4326
4083
|
reportGroupArn: (0, smithy_client_1.expectString)(output.reportGroupArn),
|
|
4327
4084
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4328
|
-
testSummary: output.testSummary
|
|
4329
|
-
? deserializeAws_json1_1TestReportSummary(output.testSummary, context)
|
|
4330
|
-
: undefined,
|
|
4085
|
+
testSummary: output.testSummary != null ? deserializeAws_json1_1TestReportSummary(output.testSummary, context) : undefined,
|
|
4331
4086
|
truncated: (0, smithy_client_1.expectBoolean)(output.truncated),
|
|
4332
4087
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4333
4088
|
};
|
|
@@ -4346,7 +4101,7 @@ const deserializeAws_json1_1ReportArns = (output, context) => {
|
|
|
4346
4101
|
const deserializeAws_json1_1ReportExportConfig = (output, context) => {
|
|
4347
4102
|
return {
|
|
4348
4103
|
exportConfigType: (0, smithy_client_1.expectString)(output.exportConfigType),
|
|
4349
|
-
s3Destination: output.s3Destination
|
|
4104
|
+
s3Destination: output.s3Destination != null
|
|
4350
4105
|
? deserializeAws_json1_1S3ReportExportConfig(output.s3Destination, context)
|
|
4351
4106
|
: undefined,
|
|
4352
4107
|
};
|
|
@@ -4354,20 +4109,14 @@ const deserializeAws_json1_1ReportExportConfig = (output, context) => {
|
|
|
4354
4109
|
const deserializeAws_json1_1ReportGroup = (output, context) => {
|
|
4355
4110
|
return {
|
|
4356
4111
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4357
|
-
created: output.created
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
exportConfig: output.exportConfig !== undefined && output.exportConfig !== null
|
|
4361
|
-
? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context)
|
|
4362
|
-
: undefined,
|
|
4363
|
-
lastModified: output.lastModified !== undefined && output.lastModified !== null
|
|
4112
|
+
created: output.created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.created))) : undefined,
|
|
4113
|
+
exportConfig: output.exportConfig != null ? deserializeAws_json1_1ReportExportConfig(output.exportConfig, context) : undefined,
|
|
4114
|
+
lastModified: output.lastModified != null
|
|
4364
4115
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModified)))
|
|
4365
4116
|
: undefined,
|
|
4366
4117
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4367
4118
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4368
|
-
tags: output.tags
|
|
4369
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4370
|
-
: undefined,
|
|
4119
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4371
4120
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
4372
4121
|
};
|
|
4373
4122
|
};
|
|
@@ -4469,16 +4218,12 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
4469
4218
|
};
|
|
4470
4219
|
const deserializeAws_json1_1RetryBuildBatchOutput = (output, context) => {
|
|
4471
4220
|
return {
|
|
4472
|
-
buildBatch: output.buildBatch
|
|
4473
|
-
? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
|
|
4474
|
-
: undefined,
|
|
4221
|
+
buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
|
|
4475
4222
|
};
|
|
4476
4223
|
};
|
|
4477
4224
|
const deserializeAws_json1_1RetryBuildOutput = (output, context) => {
|
|
4478
4225
|
return {
|
|
4479
|
-
build: output.build
|
|
4480
|
-
? deserializeAws_json1_1Build(output.build, context)
|
|
4481
|
-
: undefined,
|
|
4226
|
+
build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
|
|
4482
4227
|
};
|
|
4483
4228
|
};
|
|
4484
4229
|
const deserializeAws_json1_1S3LogsConfig = (output, context) => {
|
|
@@ -4536,30 +4281,22 @@ const deserializeAws_json1_1SourceCredentialsInfos = (output, context) => {
|
|
|
4536
4281
|
};
|
|
4537
4282
|
const deserializeAws_json1_1StartBuildBatchOutput = (output, context) => {
|
|
4538
4283
|
return {
|
|
4539
|
-
buildBatch: output.buildBatch
|
|
4540
|
-
? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
|
|
4541
|
-
: undefined,
|
|
4284
|
+
buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
|
|
4542
4285
|
};
|
|
4543
4286
|
};
|
|
4544
4287
|
const deserializeAws_json1_1StartBuildOutput = (output, context) => {
|
|
4545
4288
|
return {
|
|
4546
|
-
build: output.build
|
|
4547
|
-
? deserializeAws_json1_1Build(output.build, context)
|
|
4548
|
-
: undefined,
|
|
4289
|
+
build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
|
|
4549
4290
|
};
|
|
4550
4291
|
};
|
|
4551
4292
|
const deserializeAws_json1_1StopBuildBatchOutput = (output, context) => {
|
|
4552
4293
|
return {
|
|
4553
|
-
buildBatch: output.buildBatch
|
|
4554
|
-
? deserializeAws_json1_1BuildBatch(output.buildBatch, context)
|
|
4555
|
-
: undefined,
|
|
4294
|
+
buildBatch: output.buildBatch != null ? deserializeAws_json1_1BuildBatch(output.buildBatch, context) : undefined,
|
|
4556
4295
|
};
|
|
4557
4296
|
};
|
|
4558
4297
|
const deserializeAws_json1_1StopBuildOutput = (output, context) => {
|
|
4559
4298
|
return {
|
|
4560
|
-
build: output.build
|
|
4561
|
-
? deserializeAws_json1_1Build(output.build, context)
|
|
4562
|
-
: undefined,
|
|
4299
|
+
build: output.build != null ? deserializeAws_json1_1Build(output.build, context) : undefined,
|
|
4563
4300
|
};
|
|
4564
4301
|
};
|
|
4565
4302
|
const deserializeAws_json1_1Subnets = (output, context) => {
|
|
@@ -4593,9 +4330,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
4593
4330
|
const deserializeAws_json1_1TestCase = (output, context) => {
|
|
4594
4331
|
return {
|
|
4595
4332
|
durationInNanoSeconds: (0, smithy_client_1.expectLong)(output.durationInNanoSeconds),
|
|
4596
|
-
expired: output.expired
|
|
4597
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired)))
|
|
4598
|
-
: undefined,
|
|
4333
|
+
expired: output.expired != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expired))) : undefined,
|
|
4599
4334
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
4600
4335
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
4601
4336
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
@@ -4618,17 +4353,13 @@ const deserializeAws_json1_1TestCases = (output, context) => {
|
|
|
4618
4353
|
const deserializeAws_json1_1TestReportSummary = (output, context) => {
|
|
4619
4354
|
return {
|
|
4620
4355
|
durationInNanoSeconds: (0, smithy_client_1.expectLong)(output.durationInNanoSeconds),
|
|
4621
|
-
statusCounts: output.statusCounts
|
|
4622
|
-
? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context)
|
|
4623
|
-
: undefined,
|
|
4356
|
+
statusCounts: output.statusCounts != null ? deserializeAws_json1_1ReportStatusCounts(output.statusCounts, context) : undefined,
|
|
4624
4357
|
total: (0, smithy_client_1.expectInt32)(output.total),
|
|
4625
4358
|
};
|
|
4626
4359
|
};
|
|
4627
4360
|
const deserializeAws_json1_1UpdateProjectOutput = (output, context) => {
|
|
4628
4361
|
return {
|
|
4629
|
-
project: output.project
|
|
4630
|
-
? deserializeAws_json1_1Project(output.project, context)
|
|
4631
|
-
: undefined,
|
|
4362
|
+
project: output.project != null ? deserializeAws_json1_1Project(output.project, context) : undefined,
|
|
4632
4363
|
};
|
|
4633
4364
|
};
|
|
4634
4365
|
const deserializeAws_json1_1UpdateProjectVisibilityOutput = (output, context) => {
|
|
@@ -4640,26 +4371,20 @@ const deserializeAws_json1_1UpdateProjectVisibilityOutput = (output, context) =>
|
|
|
4640
4371
|
};
|
|
4641
4372
|
const deserializeAws_json1_1UpdateReportGroupOutput = (output, context) => {
|
|
4642
4373
|
return {
|
|
4643
|
-
reportGroup: output.reportGroup
|
|
4644
|
-
? deserializeAws_json1_1ReportGroup(output.reportGroup, context)
|
|
4645
|
-
: undefined,
|
|
4374
|
+
reportGroup: output.reportGroup != null ? deserializeAws_json1_1ReportGroup(output.reportGroup, context) : undefined,
|
|
4646
4375
|
};
|
|
4647
4376
|
};
|
|
4648
4377
|
const deserializeAws_json1_1UpdateWebhookOutput = (output, context) => {
|
|
4649
4378
|
return {
|
|
4650
|
-
webhook: output.webhook
|
|
4651
|
-
? deserializeAws_json1_1Webhook(output.webhook, context)
|
|
4652
|
-
: undefined,
|
|
4379
|
+
webhook: output.webhook != null ? deserializeAws_json1_1Webhook(output.webhook, context) : undefined,
|
|
4653
4380
|
};
|
|
4654
4381
|
};
|
|
4655
4382
|
const deserializeAws_json1_1VpcConfig = (output, context) => {
|
|
4656
4383
|
return {
|
|
4657
|
-
securityGroupIds: output.securityGroupIds
|
|
4384
|
+
securityGroupIds: output.securityGroupIds != null
|
|
4658
4385
|
? deserializeAws_json1_1SecurityGroupIds(output.securityGroupIds, context)
|
|
4659
4386
|
: undefined,
|
|
4660
|
-
subnets: output.subnets
|
|
4661
|
-
? deserializeAws_json1_1Subnets(output.subnets, context)
|
|
4662
|
-
: undefined,
|
|
4387
|
+
subnets: output.subnets != null ? deserializeAws_json1_1Subnets(output.subnets, context) : undefined,
|
|
4663
4388
|
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
4664
4389
|
};
|
|
4665
4390
|
};
|
|
@@ -4667,10 +4392,8 @@ const deserializeAws_json1_1Webhook = (output, context) => {
|
|
|
4667
4392
|
return {
|
|
4668
4393
|
branchFilter: (0, smithy_client_1.expectString)(output.branchFilter),
|
|
4669
4394
|
buildType: (0, smithy_client_1.expectString)(output.buildType),
|
|
4670
|
-
filterGroups: output.filterGroups
|
|
4671
|
-
|
|
4672
|
-
: undefined,
|
|
4673
|
-
lastModifiedSecret: output.lastModifiedSecret !== undefined && output.lastModifiedSecret !== null
|
|
4395
|
+
filterGroups: output.filterGroups != null ? deserializeAws_json1_1FilterGroups(output.filterGroups, context) : undefined,
|
|
4396
|
+
lastModifiedSecret: output.lastModifiedSecret != null
|
|
4674
4397
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedSecret)))
|
|
4675
4398
|
: undefined,
|
|
4676
4399
|
payloadUrl: (0, smithy_client_1.expectString)(output.payloadUrl),
|
|
@@ -4747,5 +4470,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4747
4470
|
if (data["__type"] !== undefined) {
|
|
4748
4471
|
return sanitizeErrorCode(data["__type"]);
|
|
4749
4472
|
}
|
|
4750
|
-
return "";
|
|
4751
4473
|
};
|