@aws-sdk/client-codebuild 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +51 -45
- package/dist-es/CodeBuild.js +182 -189
- package/dist-es/CodeBuildClient.js +22 -28
- package/dist-es/commands/BatchDeleteBuildsCommand.js +21 -28
- package/dist-es/commands/BatchGetBuildBatchesCommand.js +21 -28
- package/dist-es/commands/BatchGetBuildsCommand.js +21 -28
- package/dist-es/commands/BatchGetProjectsCommand.js +21 -28
- package/dist-es/commands/BatchGetReportGroupsCommand.js +21 -28
- package/dist-es/commands/BatchGetReportsCommand.js +21 -28
- package/dist-es/commands/CreateProjectCommand.js +21 -28
- package/dist-es/commands/CreateReportGroupCommand.js +21 -28
- package/dist-es/commands/CreateWebhookCommand.js +21 -28
- package/dist-es/commands/DeleteBuildBatchCommand.js +21 -28
- package/dist-es/commands/DeleteProjectCommand.js +21 -28
- package/dist-es/commands/DeleteReportCommand.js +21 -28
- package/dist-es/commands/DeleteReportGroupCommand.js +21 -28
- package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
- package/dist-es/commands/DeleteSourceCredentialsCommand.js +21 -28
- package/dist-es/commands/DeleteWebhookCommand.js +21 -28
- package/dist-es/commands/DescribeCodeCoveragesCommand.js +21 -28
- package/dist-es/commands/DescribeTestCasesCommand.js +21 -28
- package/dist-es/commands/GetReportGroupTrendCommand.js +21 -28
- package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
- package/dist-es/commands/ImportSourceCredentialsCommand.js +21 -28
- package/dist-es/commands/InvalidateProjectCacheCommand.js +21 -28
- package/dist-es/commands/ListBuildBatchesCommand.js +21 -28
- package/dist-es/commands/ListBuildBatchesForProjectCommand.js +21 -28
- package/dist-es/commands/ListBuildsCommand.js +21 -28
- package/dist-es/commands/ListBuildsForProjectCommand.js +21 -28
- package/dist-es/commands/ListCuratedEnvironmentImagesCommand.js +21 -28
- package/dist-es/commands/ListProjectsCommand.js +21 -28
- package/dist-es/commands/ListReportGroupsCommand.js +21 -28
- package/dist-es/commands/ListReportsCommand.js +21 -28
- package/dist-es/commands/ListReportsForReportGroupCommand.js +21 -28
- package/dist-es/commands/ListSharedProjectsCommand.js +21 -28
- package/dist-es/commands/ListSharedReportGroupsCommand.js +21 -28
- package/dist-es/commands/ListSourceCredentialsCommand.js +21 -28
- package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
- package/dist-es/commands/RetryBuildBatchCommand.js +21 -28
- package/dist-es/commands/RetryBuildCommand.js +21 -28
- package/dist-es/commands/StartBuildBatchCommand.js +21 -28
- package/dist-es/commands/StartBuildCommand.js +21 -28
- package/dist-es/commands/StopBuildBatchCommand.js +21 -28
- package/dist-es/commands/StopBuildCommand.js +21 -28
- package/dist-es/commands/UpdateProjectCommand.js +21 -28
- package/dist-es/commands/UpdateProjectVisibilityCommand.js +21 -28
- package/dist-es/commands/UpdateReportGroupCommand.js +21 -28
- package/dist-es/commands/UpdateWebhookCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/CodeBuildServiceException.js +5 -10
- package/dist-es/models/models_0.js +485 -199
- package/dist-es/pagination/DescribeCodeCoveragesPaginator.js +25 -68
- package/dist-es/pagination/DescribeTestCasesPaginator.js +25 -68
- package/dist-es/pagination/ListBuildBatchesForProjectPaginator.js +25 -68
- package/dist-es/pagination/ListBuildBatchesPaginator.js +25 -68
- package/dist-es/pagination/ListBuildsForProjectPaginator.js +24 -67
- package/dist-es/pagination/ListBuildsPaginator.js +24 -67
- package/dist-es/pagination/ListProjectsPaginator.js +24 -67
- package/dist-es/pagination/ListReportGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListReportsForReportGroupPaginator.js +25 -68
- package/dist-es/pagination/ListReportsPaginator.js +25 -68
- package/dist-es/pagination/ListSharedProjectsPaginator.js +25 -68
- package/dist-es/pagination/ListSharedReportGroupsPaginator.js +25 -68
- package/dist-es/protocols/Aws_json1_1.js +3001 -3584
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-codebuild
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-codebuild
|
|
@@ -473,7 +473,7 @@ exports.deserializeAws_json1_1BatchDeleteBuildsCommand = deserializeAws_json1_1B
|
|
|
473
473
|
const deserializeAws_json1_1BatchDeleteBuildsCommandError = async (output, context) => {
|
|
474
474
|
const parsedOutput = {
|
|
475
475
|
...output,
|
|
476
|
-
body: await
|
|
476
|
+
body: await parseErrorBody(output.body, context),
|
|
477
477
|
};
|
|
478
478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
479
|
switch (errorCode) {
|
|
@@ -507,7 +507,7 @@ exports.deserializeAws_json1_1BatchGetBuildBatchesCommand = deserializeAws_json1
|
|
|
507
507
|
const deserializeAws_json1_1BatchGetBuildBatchesCommandError = async (output, context) => {
|
|
508
508
|
const parsedOutput = {
|
|
509
509
|
...output,
|
|
510
|
-
body: await
|
|
510
|
+
body: await parseErrorBody(output.body, context),
|
|
511
511
|
};
|
|
512
512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
513
|
switch (errorCode) {
|
|
@@ -541,7 +541,7 @@ exports.deserializeAws_json1_1BatchGetBuildsCommand = deserializeAws_json1_1Batc
|
|
|
541
541
|
const deserializeAws_json1_1BatchGetBuildsCommandError = async (output, context) => {
|
|
542
542
|
const parsedOutput = {
|
|
543
543
|
...output,
|
|
544
|
-
body: await
|
|
544
|
+
body: await parseErrorBody(output.body, context),
|
|
545
545
|
};
|
|
546
546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
547
|
switch (errorCode) {
|
|
@@ -575,7 +575,7 @@ exports.deserializeAws_json1_1BatchGetProjectsCommand = deserializeAws_json1_1Ba
|
|
|
575
575
|
const deserializeAws_json1_1BatchGetProjectsCommandError = async (output, context) => {
|
|
576
576
|
const parsedOutput = {
|
|
577
577
|
...output,
|
|
578
|
-
body: await
|
|
578
|
+
body: await parseErrorBody(output.body, context),
|
|
579
579
|
};
|
|
580
580
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
581
|
switch (errorCode) {
|
|
@@ -609,7 +609,7 @@ exports.deserializeAws_json1_1BatchGetReportGroupsCommand = deserializeAws_json1
|
|
|
609
609
|
const deserializeAws_json1_1BatchGetReportGroupsCommandError = async (output, context) => {
|
|
610
610
|
const parsedOutput = {
|
|
611
611
|
...output,
|
|
612
|
-
body: await
|
|
612
|
+
body: await parseErrorBody(output.body, context),
|
|
613
613
|
};
|
|
614
614
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
615
|
switch (errorCode) {
|
|
@@ -643,7 +643,7 @@ exports.deserializeAws_json1_1BatchGetReportsCommand = deserializeAws_json1_1Bat
|
|
|
643
643
|
const deserializeAws_json1_1BatchGetReportsCommandError = async (output, context) => {
|
|
644
644
|
const parsedOutput = {
|
|
645
645
|
...output,
|
|
646
|
-
body: await
|
|
646
|
+
body: await parseErrorBody(output.body, context),
|
|
647
647
|
};
|
|
648
648
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
649
649
|
switch (errorCode) {
|
|
@@ -677,7 +677,7 @@ exports.deserializeAws_json1_1CreateProjectCommand = deserializeAws_json1_1Creat
|
|
|
677
677
|
const deserializeAws_json1_1CreateProjectCommandError = async (output, context) => {
|
|
678
678
|
const parsedOutput = {
|
|
679
679
|
...output,
|
|
680
|
-
body: await
|
|
680
|
+
body: await parseErrorBody(output.body, context),
|
|
681
681
|
};
|
|
682
682
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
683
|
switch (errorCode) {
|
|
@@ -717,7 +717,7 @@ exports.deserializeAws_json1_1CreateReportGroupCommand = deserializeAws_json1_1C
|
|
|
717
717
|
const deserializeAws_json1_1CreateReportGroupCommandError = async (output, context) => {
|
|
718
718
|
const parsedOutput = {
|
|
719
719
|
...output,
|
|
720
|
-
body: await
|
|
720
|
+
body: await parseErrorBody(output.body, context),
|
|
721
721
|
};
|
|
722
722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
723
723
|
switch (errorCode) {
|
|
@@ -757,7 +757,7 @@ exports.deserializeAws_json1_1CreateWebhookCommand = deserializeAws_json1_1Creat
|
|
|
757
757
|
const deserializeAws_json1_1CreateWebhookCommandError = async (output, context) => {
|
|
758
758
|
const parsedOutput = {
|
|
759
759
|
...output,
|
|
760
|
-
body: await
|
|
760
|
+
body: await parseErrorBody(output.body, context),
|
|
761
761
|
};
|
|
762
762
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
763
763
|
switch (errorCode) {
|
|
@@ -800,7 +800,7 @@ exports.deserializeAws_json1_1DeleteBuildBatchCommand = deserializeAws_json1_1De
|
|
|
800
800
|
const deserializeAws_json1_1DeleteBuildBatchCommandError = async (output, context) => {
|
|
801
801
|
const parsedOutput = {
|
|
802
802
|
...output,
|
|
803
|
-
body: await
|
|
803
|
+
body: await parseErrorBody(output.body, context),
|
|
804
804
|
};
|
|
805
805
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
806
806
|
switch (errorCode) {
|
|
@@ -834,7 +834,7 @@ exports.deserializeAws_json1_1DeleteProjectCommand = deserializeAws_json1_1Delet
|
|
|
834
834
|
const deserializeAws_json1_1DeleteProjectCommandError = async (output, context) => {
|
|
835
835
|
const parsedOutput = {
|
|
836
836
|
...output,
|
|
837
|
-
body: await
|
|
837
|
+
body: await parseErrorBody(output.body, context),
|
|
838
838
|
};
|
|
839
839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
840
840
|
switch (errorCode) {
|
|
@@ -868,7 +868,7 @@ exports.deserializeAws_json1_1DeleteReportCommand = deserializeAws_json1_1Delete
|
|
|
868
868
|
const deserializeAws_json1_1DeleteReportCommandError = async (output, context) => {
|
|
869
869
|
const parsedOutput = {
|
|
870
870
|
...output,
|
|
871
|
-
body: await
|
|
871
|
+
body: await parseErrorBody(output.body, context),
|
|
872
872
|
};
|
|
873
873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
874
|
switch (errorCode) {
|
|
@@ -902,7 +902,7 @@ exports.deserializeAws_json1_1DeleteReportGroupCommand = deserializeAws_json1_1D
|
|
|
902
902
|
const deserializeAws_json1_1DeleteReportGroupCommandError = async (output, context) => {
|
|
903
903
|
const parsedOutput = {
|
|
904
904
|
...output,
|
|
905
|
-
body: await
|
|
905
|
+
body: await parseErrorBody(output.body, context),
|
|
906
906
|
};
|
|
907
907
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
908
|
switch (errorCode) {
|
|
@@ -936,7 +936,7 @@ exports.deserializeAws_json1_1DeleteResourcePolicyCommand = deserializeAws_json1
|
|
|
936
936
|
const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, context) => {
|
|
937
937
|
const parsedOutput = {
|
|
938
938
|
...output,
|
|
939
|
-
body: await
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
940
|
};
|
|
941
941
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
942
|
switch (errorCode) {
|
|
@@ -970,7 +970,7 @@ exports.deserializeAws_json1_1DeleteSourceCredentialsCommand = deserializeAws_js
|
|
|
970
970
|
const deserializeAws_json1_1DeleteSourceCredentialsCommandError = async (output, context) => {
|
|
971
971
|
const parsedOutput = {
|
|
972
972
|
...output,
|
|
973
|
-
body: await
|
|
973
|
+
body: await parseErrorBody(output.body, context),
|
|
974
974
|
};
|
|
975
975
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
976
976
|
switch (errorCode) {
|
|
@@ -1007,7 +1007,7 @@ exports.deserializeAws_json1_1DeleteWebhookCommand = deserializeAws_json1_1Delet
|
|
|
1007
1007
|
const deserializeAws_json1_1DeleteWebhookCommandError = async (output, context) => {
|
|
1008
1008
|
const parsedOutput = {
|
|
1009
1009
|
...output,
|
|
1010
|
-
body: await
|
|
1010
|
+
body: await parseErrorBody(output.body, context),
|
|
1011
1011
|
};
|
|
1012
1012
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
1013
|
switch (errorCode) {
|
|
@@ -1047,7 +1047,7 @@ exports.deserializeAws_json1_1DescribeCodeCoveragesCommand = deserializeAws_json
|
|
|
1047
1047
|
const deserializeAws_json1_1DescribeCodeCoveragesCommandError = async (output, context) => {
|
|
1048
1048
|
const parsedOutput = {
|
|
1049
1049
|
...output,
|
|
1050
|
-
body: await
|
|
1050
|
+
body: await parseErrorBody(output.body, context),
|
|
1051
1051
|
};
|
|
1052
1052
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
1053
|
switch (errorCode) {
|
|
@@ -1081,7 +1081,7 @@ exports.deserializeAws_json1_1DescribeTestCasesCommand = deserializeAws_json1_1D
|
|
|
1081
1081
|
const deserializeAws_json1_1DescribeTestCasesCommandError = async (output, context) => {
|
|
1082
1082
|
const parsedOutput = {
|
|
1083
1083
|
...output,
|
|
1084
|
-
body: await
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
1085
|
};
|
|
1086
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
@@ -1118,7 +1118,7 @@ exports.deserializeAws_json1_1GetReportGroupTrendCommand = deserializeAws_json1_
|
|
|
1118
1118
|
const deserializeAws_json1_1GetReportGroupTrendCommandError = async (output, context) => {
|
|
1119
1119
|
const parsedOutput = {
|
|
1120
1120
|
...output,
|
|
1121
|
-
body: await
|
|
1121
|
+
body: await parseErrorBody(output.body, context),
|
|
1122
1122
|
};
|
|
1123
1123
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
switch (errorCode) {
|
|
@@ -1155,7 +1155,7 @@ exports.deserializeAws_json1_1GetResourcePolicyCommand = deserializeAws_json1_1G
|
|
|
1155
1155
|
const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, context) => {
|
|
1156
1156
|
const parsedOutput = {
|
|
1157
1157
|
...output,
|
|
1158
|
-
body: await
|
|
1158
|
+
body: await parseErrorBody(output.body, context),
|
|
1159
1159
|
};
|
|
1160
1160
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
switch (errorCode) {
|
|
@@ -1192,7 +1192,7 @@ exports.deserializeAws_json1_1ImportSourceCredentialsCommand = deserializeAws_js
|
|
|
1192
1192
|
const deserializeAws_json1_1ImportSourceCredentialsCommandError = async (output, context) => {
|
|
1193
1193
|
const parsedOutput = {
|
|
1194
1194
|
...output,
|
|
1195
|
-
body: await
|
|
1195
|
+
body: await parseErrorBody(output.body, context),
|
|
1196
1196
|
};
|
|
1197
1197
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1198
1198
|
switch (errorCode) {
|
|
@@ -1232,7 +1232,7 @@ exports.deserializeAws_json1_1InvalidateProjectCacheCommand = deserializeAws_jso
|
|
|
1232
1232
|
const deserializeAws_json1_1InvalidateProjectCacheCommandError = async (output, context) => {
|
|
1233
1233
|
const parsedOutput = {
|
|
1234
1234
|
...output,
|
|
1235
|
-
body: await
|
|
1235
|
+
body: await parseErrorBody(output.body, context),
|
|
1236
1236
|
};
|
|
1237
1237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1238
|
switch (errorCode) {
|
|
@@ -1269,7 +1269,7 @@ exports.deserializeAws_json1_1ListBuildBatchesCommand = deserializeAws_json1_1Li
|
|
|
1269
1269
|
const deserializeAws_json1_1ListBuildBatchesCommandError = async (output, context) => {
|
|
1270
1270
|
const parsedOutput = {
|
|
1271
1271
|
...output,
|
|
1272
|
-
body: await
|
|
1272
|
+
body: await parseErrorBody(output.body, context),
|
|
1273
1273
|
};
|
|
1274
1274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1275
1275
|
switch (errorCode) {
|
|
@@ -1303,7 +1303,7 @@ exports.deserializeAws_json1_1ListBuildBatchesForProjectCommand = deserializeAws
|
|
|
1303
1303
|
const deserializeAws_json1_1ListBuildBatchesForProjectCommandError = async (output, context) => {
|
|
1304
1304
|
const parsedOutput = {
|
|
1305
1305
|
...output,
|
|
1306
|
-
body: await
|
|
1306
|
+
body: await parseErrorBody(output.body, context),
|
|
1307
1307
|
};
|
|
1308
1308
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1309
|
switch (errorCode) {
|
|
@@ -1340,7 +1340,7 @@ exports.deserializeAws_json1_1ListBuildsCommand = deserializeAws_json1_1ListBuil
|
|
|
1340
1340
|
const deserializeAws_json1_1ListBuildsCommandError = async (output, context) => {
|
|
1341
1341
|
const parsedOutput = {
|
|
1342
1342
|
...output,
|
|
1343
|
-
body: await
|
|
1343
|
+
body: await parseErrorBody(output.body, context),
|
|
1344
1344
|
};
|
|
1345
1345
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1346
1346
|
switch (errorCode) {
|
|
@@ -1374,7 +1374,7 @@ exports.deserializeAws_json1_1ListBuildsForProjectCommand = deserializeAws_json1
|
|
|
1374
1374
|
const deserializeAws_json1_1ListBuildsForProjectCommandError = async (output, context) => {
|
|
1375
1375
|
const parsedOutput = {
|
|
1376
1376
|
...output,
|
|
1377
|
-
body: await
|
|
1377
|
+
body: await parseErrorBody(output.body, context),
|
|
1378
1378
|
};
|
|
1379
1379
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
switch (errorCode) {
|
|
@@ -1411,7 +1411,7 @@ exports.deserializeAws_json1_1ListCuratedEnvironmentImagesCommand = deserializeA
|
|
|
1411
1411
|
const deserializeAws_json1_1ListCuratedEnvironmentImagesCommandError = async (output, context) => {
|
|
1412
1412
|
const parsedOutput = {
|
|
1413
1413
|
...output,
|
|
1414
|
-
body: await
|
|
1414
|
+
body: await parseErrorBody(output.body, context),
|
|
1415
1415
|
};
|
|
1416
1416
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
1417
|
const parsedBody = parsedOutput.body;
|
|
@@ -1439,7 +1439,7 @@ exports.deserializeAws_json1_1ListProjectsCommand = deserializeAws_json1_1ListPr
|
|
|
1439
1439
|
const deserializeAws_json1_1ListProjectsCommandError = async (output, context) => {
|
|
1440
1440
|
const parsedOutput = {
|
|
1441
1441
|
...output,
|
|
1442
|
-
body: await
|
|
1442
|
+
body: await parseErrorBody(output.body, context),
|
|
1443
1443
|
};
|
|
1444
1444
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
1445
|
switch (errorCode) {
|
|
@@ -1473,7 +1473,7 @@ exports.deserializeAws_json1_1ListReportGroupsCommand = deserializeAws_json1_1Li
|
|
|
1473
1473
|
const deserializeAws_json1_1ListReportGroupsCommandError = async (output, context) => {
|
|
1474
1474
|
const parsedOutput = {
|
|
1475
1475
|
...output,
|
|
1476
|
-
body: await
|
|
1476
|
+
body: await parseErrorBody(output.body, context),
|
|
1477
1477
|
};
|
|
1478
1478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1479
|
switch (errorCode) {
|
|
@@ -1507,7 +1507,7 @@ exports.deserializeAws_json1_1ListReportsCommand = deserializeAws_json1_1ListRep
|
|
|
1507
1507
|
const deserializeAws_json1_1ListReportsCommandError = async (output, context) => {
|
|
1508
1508
|
const parsedOutput = {
|
|
1509
1509
|
...output,
|
|
1510
|
-
body: await
|
|
1510
|
+
body: await parseErrorBody(output.body, context),
|
|
1511
1511
|
};
|
|
1512
1512
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
1513
|
switch (errorCode) {
|
|
@@ -1541,7 +1541,7 @@ exports.deserializeAws_json1_1ListReportsForReportGroupCommand = deserializeAws_
|
|
|
1541
1541
|
const deserializeAws_json1_1ListReportsForReportGroupCommandError = async (output, context) => {
|
|
1542
1542
|
const parsedOutput = {
|
|
1543
1543
|
...output,
|
|
1544
|
-
body: await
|
|
1544
|
+
body: await parseErrorBody(output.body, context),
|
|
1545
1545
|
};
|
|
1546
1546
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
1547
|
switch (errorCode) {
|
|
@@ -1578,7 +1578,7 @@ exports.deserializeAws_json1_1ListSharedProjectsCommand = deserializeAws_json1_1
|
|
|
1578
1578
|
const deserializeAws_json1_1ListSharedProjectsCommandError = async (output, context) => {
|
|
1579
1579
|
const parsedOutput = {
|
|
1580
1580
|
...output,
|
|
1581
|
-
body: await
|
|
1581
|
+
body: await parseErrorBody(output.body, context),
|
|
1582
1582
|
};
|
|
1583
1583
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1584
|
switch (errorCode) {
|
|
@@ -1612,7 +1612,7 @@ exports.deserializeAws_json1_1ListSharedReportGroupsCommand = deserializeAws_jso
|
|
|
1612
1612
|
const deserializeAws_json1_1ListSharedReportGroupsCommandError = async (output, context) => {
|
|
1613
1613
|
const parsedOutput = {
|
|
1614
1614
|
...output,
|
|
1615
|
-
body: await
|
|
1615
|
+
body: await parseErrorBody(output.body, context),
|
|
1616
1616
|
};
|
|
1617
1617
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1618
1618
|
switch (errorCode) {
|
|
@@ -1646,7 +1646,7 @@ exports.deserializeAws_json1_1ListSourceCredentialsCommand = deserializeAws_json
|
|
|
1646
1646
|
const deserializeAws_json1_1ListSourceCredentialsCommandError = async (output, context) => {
|
|
1647
1647
|
const parsedOutput = {
|
|
1648
1648
|
...output,
|
|
1649
|
-
body: await
|
|
1649
|
+
body: await parseErrorBody(output.body, context),
|
|
1650
1650
|
};
|
|
1651
1651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1652
1652
|
switch (errorCode) {
|
|
@@ -1680,7 +1680,7 @@ exports.deserializeAws_json1_1PutResourcePolicyCommand = deserializeAws_json1_1P
|
|
|
1680
1680
|
const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, context) => {
|
|
1681
1681
|
const parsedOutput = {
|
|
1682
1682
|
...output,
|
|
1683
|
-
body: await
|
|
1683
|
+
body: await parseErrorBody(output.body, context),
|
|
1684
1684
|
};
|
|
1685
1685
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
1686
|
switch (errorCode) {
|
|
@@ -1717,7 +1717,7 @@ exports.deserializeAws_json1_1RetryBuildCommand = deserializeAws_json1_1RetryBui
|
|
|
1717
1717
|
const deserializeAws_json1_1RetryBuildCommandError = async (output, context) => {
|
|
1718
1718
|
const parsedOutput = {
|
|
1719
1719
|
...output,
|
|
1720
|
-
body: await
|
|
1720
|
+
body: await parseErrorBody(output.body, context),
|
|
1721
1721
|
};
|
|
1722
1722
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1723
1723
|
switch (errorCode) {
|
|
@@ -1757,7 +1757,7 @@ exports.deserializeAws_json1_1RetryBuildBatchCommand = deserializeAws_json1_1Ret
|
|
|
1757
1757
|
const deserializeAws_json1_1RetryBuildBatchCommandError = async (output, context) => {
|
|
1758
1758
|
const parsedOutput = {
|
|
1759
1759
|
...output,
|
|
1760
|
-
body: await
|
|
1760
|
+
body: await parseErrorBody(output.body, context),
|
|
1761
1761
|
};
|
|
1762
1762
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1763
1763
|
switch (errorCode) {
|
|
@@ -1794,7 +1794,7 @@ exports.deserializeAws_json1_1StartBuildCommand = deserializeAws_json1_1StartBui
|
|
|
1794
1794
|
const deserializeAws_json1_1StartBuildCommandError = async (output, context) => {
|
|
1795
1795
|
const parsedOutput = {
|
|
1796
1796
|
...output,
|
|
1797
|
-
body: await
|
|
1797
|
+
body: await parseErrorBody(output.body, context),
|
|
1798
1798
|
};
|
|
1799
1799
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1800
1800
|
switch (errorCode) {
|
|
@@ -1834,7 +1834,7 @@ exports.deserializeAws_json1_1StartBuildBatchCommand = deserializeAws_json1_1Sta
|
|
|
1834
1834
|
const deserializeAws_json1_1StartBuildBatchCommandError = async (output, context) => {
|
|
1835
1835
|
const parsedOutput = {
|
|
1836
1836
|
...output,
|
|
1837
|
-
body: await
|
|
1837
|
+
body: await parseErrorBody(output.body, context),
|
|
1838
1838
|
};
|
|
1839
1839
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1840
|
switch (errorCode) {
|
|
@@ -1871,7 +1871,7 @@ exports.deserializeAws_json1_1StopBuildCommand = deserializeAws_json1_1StopBuild
|
|
|
1871
1871
|
const deserializeAws_json1_1StopBuildCommandError = async (output, context) => {
|
|
1872
1872
|
const parsedOutput = {
|
|
1873
1873
|
...output,
|
|
1874
|
-
body: await
|
|
1874
|
+
body: await parseErrorBody(output.body, context),
|
|
1875
1875
|
};
|
|
1876
1876
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1877
|
switch (errorCode) {
|
|
@@ -1908,7 +1908,7 @@ exports.deserializeAws_json1_1StopBuildBatchCommand = deserializeAws_json1_1Stop
|
|
|
1908
1908
|
const deserializeAws_json1_1StopBuildBatchCommandError = async (output, context) => {
|
|
1909
1909
|
const parsedOutput = {
|
|
1910
1910
|
...output,
|
|
1911
|
-
body: await
|
|
1911
|
+
body: await parseErrorBody(output.body, context),
|
|
1912
1912
|
};
|
|
1913
1913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1914
1914
|
switch (errorCode) {
|
|
@@ -1945,7 +1945,7 @@ exports.deserializeAws_json1_1UpdateProjectCommand = deserializeAws_json1_1Updat
|
|
|
1945
1945
|
const deserializeAws_json1_1UpdateProjectCommandError = async (output, context) => {
|
|
1946
1946
|
const parsedOutput = {
|
|
1947
1947
|
...output,
|
|
1948
|
-
body: await
|
|
1948
|
+
body: await parseErrorBody(output.body, context),
|
|
1949
1949
|
};
|
|
1950
1950
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1951
1951
|
switch (errorCode) {
|
|
@@ -1982,7 +1982,7 @@ exports.deserializeAws_json1_1UpdateProjectVisibilityCommand = deserializeAws_js
|
|
|
1982
1982
|
const deserializeAws_json1_1UpdateProjectVisibilityCommandError = async (output, context) => {
|
|
1983
1983
|
const parsedOutput = {
|
|
1984
1984
|
...output,
|
|
1985
|
-
body: await
|
|
1985
|
+
body: await parseErrorBody(output.body, context),
|
|
1986
1986
|
};
|
|
1987
1987
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
1988
|
switch (errorCode) {
|
|
@@ -2019,7 +2019,7 @@ exports.deserializeAws_json1_1UpdateReportGroupCommand = deserializeAws_json1_1U
|
|
|
2019
2019
|
const deserializeAws_json1_1UpdateReportGroupCommandError = async (output, context) => {
|
|
2020
2020
|
const parsedOutput = {
|
|
2021
2021
|
...output,
|
|
2022
|
-
body: await
|
|
2022
|
+
body: await parseErrorBody(output.body, context),
|
|
2023
2023
|
};
|
|
2024
2024
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
2025
|
switch (errorCode) {
|
|
@@ -2056,7 +2056,7 @@ exports.deserializeAws_json1_1UpdateWebhookCommand = deserializeAws_json1_1Updat
|
|
|
2056
2056
|
const deserializeAws_json1_1UpdateWebhookCommandError = async (output, context) => {
|
|
2057
2057
|
const parsedOutput = {
|
|
2058
2058
|
...output,
|
|
2059
|
-
body: await
|
|
2059
|
+
body: await parseErrorBody(output.body, context),
|
|
2060
2060
|
};
|
|
2061
2061
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
2062
|
switch (errorCode) {
|
|
@@ -4259,6 +4259,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4259
4259
|
}
|
|
4260
4260
|
return {};
|
|
4261
4261
|
});
|
|
4262
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
4263
|
+
var _a;
|
|
4264
|
+
const value = await parseBody(errorBody, context);
|
|
4265
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
4266
|
+
return value;
|
|
4267
|
+
};
|
|
4262
4268
|
const loadRestJsonErrorCode = (output, data) => {
|
|
4263
4269
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4264
4270
|
const sanitizeErrorCode = (rawValue) => {
|