@aws-sdk/client-codebuild 3.504.0 → 3.507.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/dist-cjs/index.js +69 -1093
- package/dist-es/protocols/Aws_json1_1.js +90 -1114
- package/package.json +3 -3
|
@@ -304,7 +304,7 @@ export const se_UpdateWebhookCommand = async (input, context) => {
|
|
|
304
304
|
};
|
|
305
305
|
export const de_BatchDeleteBuildsCommand = async (output, context) => {
|
|
306
306
|
if (output.statusCode >= 300) {
|
|
307
|
-
return
|
|
307
|
+
return de_CommandError(output, context);
|
|
308
308
|
}
|
|
309
309
|
const data = await parseBody(output.body, context);
|
|
310
310
|
let contents = {};
|
|
@@ -315,28 +315,9 @@ export const de_BatchDeleteBuildsCommand = async (output, context) => {
|
|
|
315
315
|
};
|
|
316
316
|
return response;
|
|
317
317
|
};
|
|
318
|
-
const de_BatchDeleteBuildsCommandError = async (output, context) => {
|
|
319
|
-
const parsedOutput = {
|
|
320
|
-
...output,
|
|
321
|
-
body: await parseErrorBody(output.body, context),
|
|
322
|
-
};
|
|
323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
324
|
-
switch (errorCode) {
|
|
325
|
-
case "InvalidInputException":
|
|
326
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
327
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
328
|
-
default:
|
|
329
|
-
const parsedBody = parsedOutput.body;
|
|
330
|
-
return throwDefaultError({
|
|
331
|
-
output,
|
|
332
|
-
parsedBody,
|
|
333
|
-
errorCode,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
318
|
export const de_BatchGetBuildBatchesCommand = async (output, context) => {
|
|
338
319
|
if (output.statusCode >= 300) {
|
|
339
|
-
return
|
|
320
|
+
return de_CommandError(output, context);
|
|
340
321
|
}
|
|
341
322
|
const data = await parseBody(output.body, context);
|
|
342
323
|
let contents = {};
|
|
@@ -347,28 +328,9 @@ export const de_BatchGetBuildBatchesCommand = async (output, context) => {
|
|
|
347
328
|
};
|
|
348
329
|
return response;
|
|
349
330
|
};
|
|
350
|
-
const de_BatchGetBuildBatchesCommandError = async (output, context) => {
|
|
351
|
-
const parsedOutput = {
|
|
352
|
-
...output,
|
|
353
|
-
body: await parseErrorBody(output.body, context),
|
|
354
|
-
};
|
|
355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
356
|
-
switch (errorCode) {
|
|
357
|
-
case "InvalidInputException":
|
|
358
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
359
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
360
|
-
default:
|
|
361
|
-
const parsedBody = parsedOutput.body;
|
|
362
|
-
return throwDefaultError({
|
|
363
|
-
output,
|
|
364
|
-
parsedBody,
|
|
365
|
-
errorCode,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
331
|
export const de_BatchGetBuildsCommand = async (output, context) => {
|
|
370
332
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
372
334
|
}
|
|
373
335
|
const data = await parseBody(output.body, context);
|
|
374
336
|
let contents = {};
|
|
@@ -379,28 +341,9 @@ export const de_BatchGetBuildsCommand = async (output, context) => {
|
|
|
379
341
|
};
|
|
380
342
|
return response;
|
|
381
343
|
};
|
|
382
|
-
const de_BatchGetBuildsCommandError = async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context),
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "InvalidInputException":
|
|
390
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
391
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
392
|
-
default:
|
|
393
|
-
const parsedBody = parsedOutput.body;
|
|
394
|
-
return throwDefaultError({
|
|
395
|
-
output,
|
|
396
|
-
parsedBody,
|
|
397
|
-
errorCode,
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
344
|
export const de_BatchGetFleetsCommand = async (output, context) => {
|
|
402
345
|
if (output.statusCode >= 300) {
|
|
403
|
-
return
|
|
346
|
+
return de_CommandError(output, context);
|
|
404
347
|
}
|
|
405
348
|
const data = await parseBody(output.body, context);
|
|
406
349
|
let contents = {};
|
|
@@ -411,28 +354,9 @@ export const de_BatchGetFleetsCommand = async (output, context) => {
|
|
|
411
354
|
};
|
|
412
355
|
return response;
|
|
413
356
|
};
|
|
414
|
-
const de_BatchGetFleetsCommandError = async (output, context) => {
|
|
415
|
-
const parsedOutput = {
|
|
416
|
-
...output,
|
|
417
|
-
body: await parseErrorBody(output.body, context),
|
|
418
|
-
};
|
|
419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
|
-
switch (errorCode) {
|
|
421
|
-
case "InvalidInputException":
|
|
422
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
423
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
424
|
-
default:
|
|
425
|
-
const parsedBody = parsedOutput.body;
|
|
426
|
-
return throwDefaultError({
|
|
427
|
-
output,
|
|
428
|
-
parsedBody,
|
|
429
|
-
errorCode,
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
};
|
|
433
357
|
export const de_BatchGetProjectsCommand = async (output, context) => {
|
|
434
358
|
if (output.statusCode >= 300) {
|
|
435
|
-
return
|
|
359
|
+
return de_CommandError(output, context);
|
|
436
360
|
}
|
|
437
361
|
const data = await parseBody(output.body, context);
|
|
438
362
|
let contents = {};
|
|
@@ -443,28 +367,9 @@ export const de_BatchGetProjectsCommand = async (output, context) => {
|
|
|
443
367
|
};
|
|
444
368
|
return response;
|
|
445
369
|
};
|
|
446
|
-
const de_BatchGetProjectsCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "InvalidInputException":
|
|
454
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
455
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
456
|
-
default:
|
|
457
|
-
const parsedBody = parsedOutput.body;
|
|
458
|
-
return throwDefaultError({
|
|
459
|
-
output,
|
|
460
|
-
parsedBody,
|
|
461
|
-
errorCode,
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
370
|
export const de_BatchGetReportGroupsCommand = async (output, context) => {
|
|
466
371
|
if (output.statusCode >= 300) {
|
|
467
|
-
return
|
|
372
|
+
return de_CommandError(output, context);
|
|
468
373
|
}
|
|
469
374
|
const data = await parseBody(output.body, context);
|
|
470
375
|
let contents = {};
|
|
@@ -475,28 +380,9 @@ export const de_BatchGetReportGroupsCommand = async (output, context) => {
|
|
|
475
380
|
};
|
|
476
381
|
return response;
|
|
477
382
|
};
|
|
478
|
-
const de_BatchGetReportGroupsCommandError = async (output, context) => {
|
|
479
|
-
const parsedOutput = {
|
|
480
|
-
...output,
|
|
481
|
-
body: await parseErrorBody(output.body, context),
|
|
482
|
-
};
|
|
483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
-
switch (errorCode) {
|
|
485
|
-
case "InvalidInputException":
|
|
486
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
487
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
488
|
-
default:
|
|
489
|
-
const parsedBody = parsedOutput.body;
|
|
490
|
-
return throwDefaultError({
|
|
491
|
-
output,
|
|
492
|
-
parsedBody,
|
|
493
|
-
errorCode,
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
};
|
|
497
383
|
export const de_BatchGetReportsCommand = async (output, context) => {
|
|
498
384
|
if (output.statusCode >= 300) {
|
|
499
|
-
return
|
|
385
|
+
return de_CommandError(output, context);
|
|
500
386
|
}
|
|
501
387
|
const data = await parseBody(output.body, context);
|
|
502
388
|
let contents = {};
|
|
@@ -507,28 +393,9 @@ export const de_BatchGetReportsCommand = async (output, context) => {
|
|
|
507
393
|
};
|
|
508
394
|
return response;
|
|
509
395
|
};
|
|
510
|
-
const de_BatchGetReportsCommandError = async (output, context) => {
|
|
511
|
-
const parsedOutput = {
|
|
512
|
-
...output,
|
|
513
|
-
body: await parseErrorBody(output.body, context),
|
|
514
|
-
};
|
|
515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
516
|
-
switch (errorCode) {
|
|
517
|
-
case "InvalidInputException":
|
|
518
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
519
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
520
|
-
default:
|
|
521
|
-
const parsedBody = parsedOutput.body;
|
|
522
|
-
return throwDefaultError({
|
|
523
|
-
output,
|
|
524
|
-
parsedBody,
|
|
525
|
-
errorCode,
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
396
|
export const de_CreateFleetCommand = async (output, context) => {
|
|
530
397
|
if (output.statusCode >= 300) {
|
|
531
|
-
return
|
|
398
|
+
return de_CommandError(output, context);
|
|
532
399
|
}
|
|
533
400
|
const data = await parseBody(output.body, context);
|
|
534
401
|
let contents = {};
|
|
@@ -539,34 +406,9 @@ export const de_CreateFleetCommand = async (output, context) => {
|
|
|
539
406
|
};
|
|
540
407
|
return response;
|
|
541
408
|
};
|
|
542
|
-
const de_CreateFleetCommandError = async (output, context) => {
|
|
543
|
-
const parsedOutput = {
|
|
544
|
-
...output,
|
|
545
|
-
body: await parseErrorBody(output.body, context),
|
|
546
|
-
};
|
|
547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
|
-
switch (errorCode) {
|
|
549
|
-
case "AccountLimitExceededException":
|
|
550
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
551
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
552
|
-
case "InvalidInputException":
|
|
553
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
554
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
555
|
-
case "ResourceAlreadyExistsException":
|
|
556
|
-
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
557
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
558
|
-
default:
|
|
559
|
-
const parsedBody = parsedOutput.body;
|
|
560
|
-
return throwDefaultError({
|
|
561
|
-
output,
|
|
562
|
-
parsedBody,
|
|
563
|
-
errorCode,
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
409
|
export const de_CreateProjectCommand = async (output, context) => {
|
|
568
410
|
if (output.statusCode >= 300) {
|
|
569
|
-
return
|
|
411
|
+
return de_CommandError(output, context);
|
|
570
412
|
}
|
|
571
413
|
const data = await parseBody(output.body, context);
|
|
572
414
|
let contents = {};
|
|
@@ -577,34 +419,9 @@ export const de_CreateProjectCommand = async (output, context) => {
|
|
|
577
419
|
};
|
|
578
420
|
return response;
|
|
579
421
|
};
|
|
580
|
-
const de_CreateProjectCommandError = async (output, context) => {
|
|
581
|
-
const parsedOutput = {
|
|
582
|
-
...output,
|
|
583
|
-
body: await parseErrorBody(output.body, context),
|
|
584
|
-
};
|
|
585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
586
|
-
switch (errorCode) {
|
|
587
|
-
case "AccountLimitExceededException":
|
|
588
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
589
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
590
|
-
case "InvalidInputException":
|
|
591
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
592
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
593
|
-
case "ResourceAlreadyExistsException":
|
|
594
|
-
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
595
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
596
|
-
default:
|
|
597
|
-
const parsedBody = parsedOutput.body;
|
|
598
|
-
return throwDefaultError({
|
|
599
|
-
output,
|
|
600
|
-
parsedBody,
|
|
601
|
-
errorCode,
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
422
|
export const de_CreateReportGroupCommand = async (output, context) => {
|
|
606
423
|
if (output.statusCode >= 300) {
|
|
607
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
608
425
|
}
|
|
609
426
|
const data = await parseBody(output.body, context);
|
|
610
427
|
let contents = {};
|
|
@@ -615,34 +432,9 @@ export const de_CreateReportGroupCommand = async (output, context) => {
|
|
|
615
432
|
};
|
|
616
433
|
return response;
|
|
617
434
|
};
|
|
618
|
-
const de_CreateReportGroupCommandError = async (output, context) => {
|
|
619
|
-
const parsedOutput = {
|
|
620
|
-
...output,
|
|
621
|
-
body: await parseErrorBody(output.body, context),
|
|
622
|
-
};
|
|
623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
624
|
-
switch (errorCode) {
|
|
625
|
-
case "AccountLimitExceededException":
|
|
626
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
627
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
628
|
-
case "InvalidInputException":
|
|
629
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
630
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ResourceAlreadyExistsException":
|
|
632
|
-
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
633
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
435
|
export const de_CreateWebhookCommand = async (output, context) => {
|
|
644
436
|
if (output.statusCode >= 300) {
|
|
645
|
-
return
|
|
437
|
+
return de_CommandError(output, context);
|
|
646
438
|
}
|
|
647
439
|
const data = await parseBody(output.body, context);
|
|
648
440
|
let contents = {};
|
|
@@ -653,37 +445,9 @@ export const de_CreateWebhookCommand = async (output, context) => {
|
|
|
653
445
|
};
|
|
654
446
|
return response;
|
|
655
447
|
};
|
|
656
|
-
const de_CreateWebhookCommandError = async (output, context) => {
|
|
657
|
-
const parsedOutput = {
|
|
658
|
-
...output,
|
|
659
|
-
body: await parseErrorBody(output.body, context),
|
|
660
|
-
};
|
|
661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
|
-
switch (errorCode) {
|
|
663
|
-
case "InvalidInputException":
|
|
664
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
665
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
666
|
-
case "OAuthProviderException":
|
|
667
|
-
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
668
|
-
throw await de_OAuthProviderExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ResourceAlreadyExistsException":
|
|
670
|
-
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
671
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
672
|
-
case "ResourceNotFoundException":
|
|
673
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
674
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
675
|
-
default:
|
|
676
|
-
const parsedBody = parsedOutput.body;
|
|
677
|
-
return throwDefaultError({
|
|
678
|
-
output,
|
|
679
|
-
parsedBody,
|
|
680
|
-
errorCode,
|
|
681
|
-
});
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
448
|
export const de_DeleteBuildBatchCommand = async (output, context) => {
|
|
685
449
|
if (output.statusCode >= 300) {
|
|
686
|
-
return
|
|
450
|
+
return de_CommandError(output, context);
|
|
687
451
|
}
|
|
688
452
|
const data = await parseBody(output.body, context);
|
|
689
453
|
let contents = {};
|
|
@@ -694,28 +458,9 @@ export const de_DeleteBuildBatchCommand = async (output, context) => {
|
|
|
694
458
|
};
|
|
695
459
|
return response;
|
|
696
460
|
};
|
|
697
|
-
const de_DeleteBuildBatchCommandError = async (output, context) => {
|
|
698
|
-
const parsedOutput = {
|
|
699
|
-
...output,
|
|
700
|
-
body: await parseErrorBody(output.body, context),
|
|
701
|
-
};
|
|
702
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
703
|
-
switch (errorCode) {
|
|
704
|
-
case "InvalidInputException":
|
|
705
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
706
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
707
|
-
default:
|
|
708
|
-
const parsedBody = parsedOutput.body;
|
|
709
|
-
return throwDefaultError({
|
|
710
|
-
output,
|
|
711
|
-
parsedBody,
|
|
712
|
-
errorCode,
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
461
|
export const de_DeleteFleetCommand = async (output, context) => {
|
|
717
462
|
if (output.statusCode >= 300) {
|
|
718
|
-
return
|
|
463
|
+
return de_CommandError(output, context);
|
|
719
464
|
}
|
|
720
465
|
const data = await parseBody(output.body, context);
|
|
721
466
|
let contents = {};
|
|
@@ -726,60 +471,22 @@ export const de_DeleteFleetCommand = async (output, context) => {
|
|
|
726
471
|
};
|
|
727
472
|
return response;
|
|
728
473
|
};
|
|
729
|
-
const
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
default:
|
|
740
|
-
const parsedBody = parsedOutput.body;
|
|
741
|
-
return throwDefaultError({
|
|
742
|
-
output,
|
|
743
|
-
parsedBody,
|
|
744
|
-
errorCode,
|
|
745
|
-
});
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
export const de_DeleteProjectCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode >= 300) {
|
|
750
|
-
return de_DeleteProjectCommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const data = await parseBody(output.body, context);
|
|
753
|
-
let contents = {};
|
|
754
|
-
contents = _json(data);
|
|
755
|
-
const response = {
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
...contents,
|
|
474
|
+
export const de_DeleteProjectCommand = async (output, context) => {
|
|
475
|
+
if (output.statusCode >= 300) {
|
|
476
|
+
return de_CommandError(output, context);
|
|
477
|
+
}
|
|
478
|
+
const data = await parseBody(output.body, context);
|
|
479
|
+
let contents = {};
|
|
480
|
+
contents = _json(data);
|
|
481
|
+
const response = {
|
|
482
|
+
$metadata: deserializeMetadata(output),
|
|
483
|
+
...contents,
|
|
758
484
|
};
|
|
759
485
|
return response;
|
|
760
486
|
};
|
|
761
|
-
const de_DeleteProjectCommandError = async (output, context) => {
|
|
762
|
-
const parsedOutput = {
|
|
763
|
-
...output,
|
|
764
|
-
body: await parseErrorBody(output.body, context),
|
|
765
|
-
};
|
|
766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
767
|
-
switch (errorCode) {
|
|
768
|
-
case "InvalidInputException":
|
|
769
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
770
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
771
|
-
default:
|
|
772
|
-
const parsedBody = parsedOutput.body;
|
|
773
|
-
return throwDefaultError({
|
|
774
|
-
output,
|
|
775
|
-
parsedBody,
|
|
776
|
-
errorCode,
|
|
777
|
-
});
|
|
778
|
-
}
|
|
779
|
-
};
|
|
780
487
|
export const de_DeleteReportCommand = async (output, context) => {
|
|
781
488
|
if (output.statusCode >= 300) {
|
|
782
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
783
490
|
}
|
|
784
491
|
const data = await parseBody(output.body, context);
|
|
785
492
|
let contents = {};
|
|
@@ -790,28 +497,9 @@ export const de_DeleteReportCommand = async (output, context) => {
|
|
|
790
497
|
};
|
|
791
498
|
return response;
|
|
792
499
|
};
|
|
793
|
-
const de_DeleteReportCommandError = async (output, context) => {
|
|
794
|
-
const parsedOutput = {
|
|
795
|
-
...output,
|
|
796
|
-
body: await parseErrorBody(output.body, context),
|
|
797
|
-
};
|
|
798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
-
switch (errorCode) {
|
|
800
|
-
case "InvalidInputException":
|
|
801
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
802
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
803
|
-
default:
|
|
804
|
-
const parsedBody = parsedOutput.body;
|
|
805
|
-
return throwDefaultError({
|
|
806
|
-
output,
|
|
807
|
-
parsedBody,
|
|
808
|
-
errorCode,
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
};
|
|
812
500
|
export const de_DeleteReportGroupCommand = async (output, context) => {
|
|
813
501
|
if (output.statusCode >= 300) {
|
|
814
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
815
503
|
}
|
|
816
504
|
const data = await parseBody(output.body, context);
|
|
817
505
|
let contents = {};
|
|
@@ -822,28 +510,9 @@ export const de_DeleteReportGroupCommand = async (output, context) => {
|
|
|
822
510
|
};
|
|
823
511
|
return response;
|
|
824
512
|
};
|
|
825
|
-
const de_DeleteReportGroupCommandError = async (output, context) => {
|
|
826
|
-
const parsedOutput = {
|
|
827
|
-
...output,
|
|
828
|
-
body: await parseErrorBody(output.body, context),
|
|
829
|
-
};
|
|
830
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
-
switch (errorCode) {
|
|
832
|
-
case "InvalidInputException":
|
|
833
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
834
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
513
|
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
845
514
|
if (output.statusCode >= 300) {
|
|
846
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
847
516
|
}
|
|
848
517
|
const data = await parseBody(output.body, context);
|
|
849
518
|
let contents = {};
|
|
@@ -854,28 +523,9 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
854
523
|
};
|
|
855
524
|
return response;
|
|
856
525
|
};
|
|
857
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context),
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "InvalidInputException":
|
|
865
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
866
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
867
|
-
default:
|
|
868
|
-
const parsedBody = parsedOutput.body;
|
|
869
|
-
return throwDefaultError({
|
|
870
|
-
output,
|
|
871
|
-
parsedBody,
|
|
872
|
-
errorCode,
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
};
|
|
876
526
|
export const de_DeleteSourceCredentialsCommand = async (output, context) => {
|
|
877
527
|
if (output.statusCode >= 300) {
|
|
878
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
879
529
|
}
|
|
880
530
|
const data = await parseBody(output.body, context);
|
|
881
531
|
let contents = {};
|
|
@@ -886,31 +536,9 @@ export const de_DeleteSourceCredentialsCommand = async (output, context) => {
|
|
|
886
536
|
};
|
|
887
537
|
return response;
|
|
888
538
|
};
|
|
889
|
-
const de_DeleteSourceCredentialsCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "InvalidInputException":
|
|
897
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
898
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
899
|
-
case "ResourceNotFoundException":
|
|
900
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
902
|
-
default:
|
|
903
|
-
const parsedBody = parsedOutput.body;
|
|
904
|
-
return throwDefaultError({
|
|
905
|
-
output,
|
|
906
|
-
parsedBody,
|
|
907
|
-
errorCode,
|
|
908
|
-
});
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
539
|
export const de_DeleteWebhookCommand = async (output, context) => {
|
|
912
540
|
if (output.statusCode >= 300) {
|
|
913
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
914
542
|
}
|
|
915
543
|
const data = await parseBody(output.body, context);
|
|
916
544
|
let contents = {};
|
|
@@ -921,34 +549,9 @@ export const de_DeleteWebhookCommand = async (output, context) => {
|
|
|
921
549
|
};
|
|
922
550
|
return response;
|
|
923
551
|
};
|
|
924
|
-
const de_DeleteWebhookCommandError = async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "InvalidInputException":
|
|
932
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
933
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
934
|
-
case "OAuthProviderException":
|
|
935
|
-
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
936
|
-
throw await de_OAuthProviderExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ResourceNotFoundException":
|
|
938
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
552
|
export const de_DescribeCodeCoveragesCommand = async (output, context) => {
|
|
950
553
|
if (output.statusCode >= 300) {
|
|
951
|
-
return
|
|
554
|
+
return de_CommandError(output, context);
|
|
952
555
|
}
|
|
953
556
|
const data = await parseBody(output.body, context);
|
|
954
557
|
let contents = {};
|
|
@@ -959,28 +562,9 @@ export const de_DescribeCodeCoveragesCommand = async (output, context) => {
|
|
|
959
562
|
};
|
|
960
563
|
return response;
|
|
961
564
|
};
|
|
962
|
-
const de_DescribeCodeCoveragesCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "InvalidInputException":
|
|
970
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
971
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
972
|
-
default:
|
|
973
|
-
const parsedBody = parsedOutput.body;
|
|
974
|
-
return throwDefaultError({
|
|
975
|
-
output,
|
|
976
|
-
parsedBody,
|
|
977
|
-
errorCode,
|
|
978
|
-
});
|
|
979
|
-
}
|
|
980
|
-
};
|
|
981
565
|
export const de_DescribeTestCasesCommand = async (output, context) => {
|
|
982
566
|
if (output.statusCode >= 300) {
|
|
983
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
984
568
|
}
|
|
985
569
|
const data = await parseBody(output.body, context);
|
|
986
570
|
let contents = {};
|
|
@@ -991,31 +575,9 @@ export const de_DescribeTestCasesCommand = async (output, context) => {
|
|
|
991
575
|
};
|
|
992
576
|
return response;
|
|
993
577
|
};
|
|
994
|
-
const de_DescribeTestCasesCommandError = async (output, context) => {
|
|
995
|
-
const parsedOutput = {
|
|
996
|
-
...output,
|
|
997
|
-
body: await parseErrorBody(output.body, context),
|
|
998
|
-
};
|
|
999
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
-
switch (errorCode) {
|
|
1001
|
-
case "InvalidInputException":
|
|
1002
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1003
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1004
|
-
case "ResourceNotFoundException":
|
|
1005
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1006
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1007
|
-
default:
|
|
1008
|
-
const parsedBody = parsedOutput.body;
|
|
1009
|
-
return throwDefaultError({
|
|
1010
|
-
output,
|
|
1011
|
-
parsedBody,
|
|
1012
|
-
errorCode,
|
|
1013
|
-
});
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
578
|
export const de_GetReportGroupTrendCommand = async (output, context) => {
|
|
1017
579
|
if (output.statusCode >= 300) {
|
|
1018
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
1019
581
|
}
|
|
1020
582
|
const data = await parseBody(output.body, context);
|
|
1021
583
|
let contents = {};
|
|
@@ -1026,31 +588,9 @@ export const de_GetReportGroupTrendCommand = async (output, context) => {
|
|
|
1026
588
|
};
|
|
1027
589
|
return response;
|
|
1028
590
|
};
|
|
1029
|
-
const de_GetReportGroupTrendCommandError = async (output, context) => {
|
|
1030
|
-
const parsedOutput = {
|
|
1031
|
-
...output,
|
|
1032
|
-
body: await parseErrorBody(output.body, context),
|
|
1033
|
-
};
|
|
1034
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1035
|
-
switch (errorCode) {
|
|
1036
|
-
case "InvalidInputException":
|
|
1037
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1038
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ResourceNotFoundException":
|
|
1040
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1041
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1042
|
-
default:
|
|
1043
|
-
const parsedBody = parsedOutput.body;
|
|
1044
|
-
return throwDefaultError({
|
|
1045
|
-
output,
|
|
1046
|
-
parsedBody,
|
|
1047
|
-
errorCode,
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
591
|
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
1052
592
|
if (output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
593
|
+
return de_CommandError(output, context);
|
|
1054
594
|
}
|
|
1055
595
|
const data = await parseBody(output.body, context);
|
|
1056
596
|
let contents = {};
|
|
@@ -1061,69 +601,9 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
|
1061
601
|
};
|
|
1062
602
|
return response;
|
|
1063
603
|
};
|
|
1064
|
-
const de_GetResourcePolicyCommandError = async (output, context) => {
|
|
1065
|
-
const parsedOutput = {
|
|
1066
|
-
...output,
|
|
1067
|
-
body: await parseErrorBody(output.body, context),
|
|
1068
|
-
};
|
|
1069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
|
-
switch (errorCode) {
|
|
1071
|
-
case "InvalidInputException":
|
|
1072
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1073
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ResourceNotFoundException":
|
|
1075
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1076
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
604
|
export const de_ImportSourceCredentialsCommand = async (output, context) => {
|
|
1087
605
|
if (output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
1089
|
-
}
|
|
1090
|
-
const data = await parseBody(output.body, context);
|
|
1091
|
-
let contents = {};
|
|
1092
|
-
contents = _json(data);
|
|
1093
|
-
const response = {
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
...contents,
|
|
1096
|
-
};
|
|
1097
|
-
return response;
|
|
1098
|
-
};
|
|
1099
|
-
const de_ImportSourceCredentialsCommandError = async (output, context) => {
|
|
1100
|
-
const parsedOutput = {
|
|
1101
|
-
...output,
|
|
1102
|
-
body: await parseErrorBody(output.body, context),
|
|
1103
|
-
};
|
|
1104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
-
switch (errorCode) {
|
|
1106
|
-
case "AccountLimitExceededException":
|
|
1107
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
1108
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "InvalidInputException":
|
|
1110
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1111
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceAlreadyExistsException":
|
|
1113
|
-
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
1114
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1115
|
-
default:
|
|
1116
|
-
const parsedBody = parsedOutput.body;
|
|
1117
|
-
return throwDefaultError({
|
|
1118
|
-
output,
|
|
1119
|
-
parsedBody,
|
|
1120
|
-
errorCode,
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
export const de_InvalidateProjectCacheCommand = async (output, context) => {
|
|
1125
|
-
if (output.statusCode >= 300) {
|
|
1126
|
-
return de_InvalidateProjectCacheCommandError(output, context);
|
|
606
|
+
return de_CommandError(output, context);
|
|
1127
607
|
}
|
|
1128
608
|
const data = await parseBody(output.body, context);
|
|
1129
609
|
let contents = {};
|
|
@@ -1131,34 +611,12 @@ export const de_InvalidateProjectCacheCommand = async (output, context) => {
|
|
|
1131
611
|
const response = {
|
|
1132
612
|
$metadata: deserializeMetadata(output),
|
|
1133
613
|
...contents,
|
|
1134
|
-
};
|
|
1135
|
-
return response;
|
|
1136
|
-
};
|
|
1137
|
-
const de_InvalidateProjectCacheCommandError = async (output, context) => {
|
|
1138
|
-
const parsedOutput = {
|
|
1139
|
-
...output,
|
|
1140
|
-
body: await parseErrorBody(output.body, context),
|
|
1141
|
-
};
|
|
1142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
-
switch (errorCode) {
|
|
1144
|
-
case "InvalidInputException":
|
|
1145
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1146
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ResourceNotFoundException":
|
|
1148
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1149
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1150
|
-
default:
|
|
1151
|
-
const parsedBody = parsedOutput.body;
|
|
1152
|
-
return throwDefaultError({
|
|
1153
|
-
output,
|
|
1154
|
-
parsedBody,
|
|
1155
|
-
errorCode,
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
614
|
+
};
|
|
615
|
+
return response;
|
|
1158
616
|
};
|
|
1159
|
-
export const
|
|
617
|
+
export const de_InvalidateProjectCacheCommand = async (output, context) => {
|
|
1160
618
|
if (output.statusCode >= 300) {
|
|
1161
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1162
620
|
}
|
|
1163
621
|
const data = await parseBody(output.body, context);
|
|
1164
622
|
let contents = {};
|
|
@@ -1169,28 +627,22 @@ export const de_ListBuildBatchesCommand = async (output, context) => {
|
|
|
1169
627
|
};
|
|
1170
628
|
return response;
|
|
1171
629
|
};
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
body: await parseErrorBody(output.body, context),
|
|
1176
|
-
};
|
|
1177
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1178
|
-
switch (errorCode) {
|
|
1179
|
-
case "InvalidInputException":
|
|
1180
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1181
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1182
|
-
default:
|
|
1183
|
-
const parsedBody = parsedOutput.body;
|
|
1184
|
-
return throwDefaultError({
|
|
1185
|
-
output,
|
|
1186
|
-
parsedBody,
|
|
1187
|
-
errorCode,
|
|
1188
|
-
});
|
|
630
|
+
export const de_ListBuildBatchesCommand = async (output, context) => {
|
|
631
|
+
if (output.statusCode >= 300) {
|
|
632
|
+
return de_CommandError(output, context);
|
|
1189
633
|
}
|
|
634
|
+
const data = await parseBody(output.body, context);
|
|
635
|
+
let contents = {};
|
|
636
|
+
contents = _json(data);
|
|
637
|
+
const response = {
|
|
638
|
+
$metadata: deserializeMetadata(output),
|
|
639
|
+
...contents,
|
|
640
|
+
};
|
|
641
|
+
return response;
|
|
1190
642
|
};
|
|
1191
643
|
export const de_ListBuildBatchesForProjectCommand = async (output, context) => {
|
|
1192
644
|
if (output.statusCode >= 300) {
|
|
1193
|
-
return
|
|
645
|
+
return de_CommandError(output, context);
|
|
1194
646
|
}
|
|
1195
647
|
const data = await parseBody(output.body, context);
|
|
1196
648
|
let contents = {};
|
|
@@ -1201,31 +653,9 @@ export const de_ListBuildBatchesForProjectCommand = async (output, context) => {
|
|
|
1201
653
|
};
|
|
1202
654
|
return response;
|
|
1203
655
|
};
|
|
1204
|
-
const de_ListBuildBatchesForProjectCommandError = async (output, context) => {
|
|
1205
|
-
const parsedOutput = {
|
|
1206
|
-
...output,
|
|
1207
|
-
body: await parseErrorBody(output.body, context),
|
|
1208
|
-
};
|
|
1209
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1210
|
-
switch (errorCode) {
|
|
1211
|
-
case "InvalidInputException":
|
|
1212
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1213
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ResourceNotFoundException":
|
|
1215
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1217
|
-
default:
|
|
1218
|
-
const parsedBody = parsedOutput.body;
|
|
1219
|
-
return throwDefaultError({
|
|
1220
|
-
output,
|
|
1221
|
-
parsedBody,
|
|
1222
|
-
errorCode,
|
|
1223
|
-
});
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
656
|
export const de_ListBuildsCommand = async (output, context) => {
|
|
1227
657
|
if (output.statusCode >= 300) {
|
|
1228
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1229
659
|
}
|
|
1230
660
|
const data = await parseBody(output.body, context);
|
|
1231
661
|
let contents = {};
|
|
@@ -1236,28 +666,9 @@ export const de_ListBuildsCommand = async (output, context) => {
|
|
|
1236
666
|
};
|
|
1237
667
|
return response;
|
|
1238
668
|
};
|
|
1239
|
-
const de_ListBuildsCommandError = async (output, context) => {
|
|
1240
|
-
const parsedOutput = {
|
|
1241
|
-
...output,
|
|
1242
|
-
body: await parseErrorBody(output.body, context),
|
|
1243
|
-
};
|
|
1244
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
-
switch (errorCode) {
|
|
1246
|
-
case "InvalidInputException":
|
|
1247
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1248
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody,
|
|
1254
|
-
errorCode,
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
};
|
|
1258
669
|
export const de_ListBuildsForProjectCommand = async (output, context) => {
|
|
1259
670
|
if (output.statusCode >= 300) {
|
|
1260
|
-
return
|
|
671
|
+
return de_CommandError(output, context);
|
|
1261
672
|
}
|
|
1262
673
|
const data = await parseBody(output.body, context);
|
|
1263
674
|
let contents = {};
|
|
@@ -1268,31 +679,9 @@ export const de_ListBuildsForProjectCommand = async (output, context) => {
|
|
|
1268
679
|
};
|
|
1269
680
|
return response;
|
|
1270
681
|
};
|
|
1271
|
-
const de_ListBuildsForProjectCommandError = async (output, context) => {
|
|
1272
|
-
const parsedOutput = {
|
|
1273
|
-
...output,
|
|
1274
|
-
body: await parseErrorBody(output.body, context),
|
|
1275
|
-
};
|
|
1276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1277
|
-
switch (errorCode) {
|
|
1278
|
-
case "InvalidInputException":
|
|
1279
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1280
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "ResourceNotFoundException":
|
|
1282
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1283
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1284
|
-
default:
|
|
1285
|
-
const parsedBody = parsedOutput.body;
|
|
1286
|
-
return throwDefaultError({
|
|
1287
|
-
output,
|
|
1288
|
-
parsedBody,
|
|
1289
|
-
errorCode,
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
};
|
|
1293
682
|
export const de_ListCuratedEnvironmentImagesCommand = async (output, context) => {
|
|
1294
683
|
if (output.statusCode >= 300) {
|
|
1295
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
1296
685
|
}
|
|
1297
686
|
const data = await parseBody(output.body, context);
|
|
1298
687
|
let contents = {};
|
|
@@ -1303,22 +692,9 @@ export const de_ListCuratedEnvironmentImagesCommand = async (output, context) =>
|
|
|
1303
692
|
};
|
|
1304
693
|
return response;
|
|
1305
694
|
};
|
|
1306
|
-
const de_ListCuratedEnvironmentImagesCommandError = async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context),
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
const parsedBody = parsedOutput.body;
|
|
1313
|
-
return throwDefaultError({
|
|
1314
|
-
output,
|
|
1315
|
-
parsedBody,
|
|
1316
|
-
errorCode,
|
|
1317
|
-
});
|
|
1318
|
-
};
|
|
1319
695
|
export const de_ListFleetsCommand = async (output, context) => {
|
|
1320
696
|
if (output.statusCode >= 300) {
|
|
1321
|
-
return
|
|
697
|
+
return de_CommandError(output, context);
|
|
1322
698
|
}
|
|
1323
699
|
const data = await parseBody(output.body, context);
|
|
1324
700
|
let contents = {};
|
|
@@ -1329,28 +705,9 @@ export const de_ListFleetsCommand = async (output, context) => {
|
|
|
1329
705
|
};
|
|
1330
706
|
return response;
|
|
1331
707
|
};
|
|
1332
|
-
const de_ListFleetsCommandError = async (output, context) => {
|
|
1333
|
-
const parsedOutput = {
|
|
1334
|
-
...output,
|
|
1335
|
-
body: await parseErrorBody(output.body, context),
|
|
1336
|
-
};
|
|
1337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1338
|
-
switch (errorCode) {
|
|
1339
|
-
case "InvalidInputException":
|
|
1340
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1341
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1342
|
-
default:
|
|
1343
|
-
const parsedBody = parsedOutput.body;
|
|
1344
|
-
return throwDefaultError({
|
|
1345
|
-
output,
|
|
1346
|
-
parsedBody,
|
|
1347
|
-
errorCode,
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
};
|
|
1351
708
|
export const de_ListProjectsCommand = async (output, context) => {
|
|
1352
709
|
if (output.statusCode >= 300) {
|
|
1353
|
-
return
|
|
710
|
+
return de_CommandError(output, context);
|
|
1354
711
|
}
|
|
1355
712
|
const data = await parseBody(output.body, context);
|
|
1356
713
|
let contents = {};
|
|
@@ -1361,28 +718,9 @@ export const de_ListProjectsCommand = async (output, context) => {
|
|
|
1361
718
|
};
|
|
1362
719
|
return response;
|
|
1363
720
|
};
|
|
1364
|
-
const de_ListProjectsCommandError = async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context),
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "InvalidInputException":
|
|
1372
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1373
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1374
|
-
default:
|
|
1375
|
-
const parsedBody = parsedOutput.body;
|
|
1376
|
-
return throwDefaultError({
|
|
1377
|
-
output,
|
|
1378
|
-
parsedBody,
|
|
1379
|
-
errorCode,
|
|
1380
|
-
});
|
|
1381
|
-
}
|
|
1382
|
-
};
|
|
1383
721
|
export const de_ListReportGroupsCommand = async (output, context) => {
|
|
1384
722
|
if (output.statusCode >= 300) {
|
|
1385
|
-
return
|
|
723
|
+
return de_CommandError(output, context);
|
|
1386
724
|
}
|
|
1387
725
|
const data = await parseBody(output.body, context);
|
|
1388
726
|
let contents = {};
|
|
@@ -1393,28 +731,9 @@ export const de_ListReportGroupsCommand = async (output, context) => {
|
|
|
1393
731
|
};
|
|
1394
732
|
return response;
|
|
1395
733
|
};
|
|
1396
|
-
const de_ListReportGroupsCommandError = async (output, context) => {
|
|
1397
|
-
const parsedOutput = {
|
|
1398
|
-
...output,
|
|
1399
|
-
body: await parseErrorBody(output.body, context),
|
|
1400
|
-
};
|
|
1401
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1402
|
-
switch (errorCode) {
|
|
1403
|
-
case "InvalidInputException":
|
|
1404
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1405
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1406
|
-
default:
|
|
1407
|
-
const parsedBody = parsedOutput.body;
|
|
1408
|
-
return throwDefaultError({
|
|
1409
|
-
output,
|
|
1410
|
-
parsedBody,
|
|
1411
|
-
errorCode,
|
|
1412
|
-
});
|
|
1413
|
-
}
|
|
1414
|
-
};
|
|
1415
734
|
export const de_ListReportsCommand = async (output, context) => {
|
|
1416
735
|
if (output.statusCode >= 300) {
|
|
1417
|
-
return
|
|
736
|
+
return de_CommandError(output, context);
|
|
1418
737
|
}
|
|
1419
738
|
const data = await parseBody(output.body, context);
|
|
1420
739
|
let contents = {};
|
|
@@ -1425,28 +744,9 @@ export const de_ListReportsCommand = async (output, context) => {
|
|
|
1425
744
|
};
|
|
1426
745
|
return response;
|
|
1427
746
|
};
|
|
1428
|
-
const de_ListReportsCommandError = async (output, context) => {
|
|
1429
|
-
const parsedOutput = {
|
|
1430
|
-
...output,
|
|
1431
|
-
body: await parseErrorBody(output.body, context),
|
|
1432
|
-
};
|
|
1433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
|
-
switch (errorCode) {
|
|
1435
|
-
case "InvalidInputException":
|
|
1436
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1437
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1438
|
-
default:
|
|
1439
|
-
const parsedBody = parsedOutput.body;
|
|
1440
|
-
return throwDefaultError({
|
|
1441
|
-
output,
|
|
1442
|
-
parsedBody,
|
|
1443
|
-
errorCode,
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
747
|
export const de_ListReportsForReportGroupCommand = async (output, context) => {
|
|
1448
748
|
if (output.statusCode >= 300) {
|
|
1449
|
-
return
|
|
749
|
+
return de_CommandError(output, context);
|
|
1450
750
|
}
|
|
1451
751
|
const data = await parseBody(output.body, context);
|
|
1452
752
|
let contents = {};
|
|
@@ -1457,31 +757,9 @@ export const de_ListReportsForReportGroupCommand = async (output, context) => {
|
|
|
1457
757
|
};
|
|
1458
758
|
return response;
|
|
1459
759
|
};
|
|
1460
|
-
const de_ListReportsForReportGroupCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "InvalidInputException":
|
|
1468
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1469
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "ResourceNotFoundException":
|
|
1471
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1472
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1473
|
-
default:
|
|
1474
|
-
const parsedBody = parsedOutput.body;
|
|
1475
|
-
return throwDefaultError({
|
|
1476
|
-
output,
|
|
1477
|
-
parsedBody,
|
|
1478
|
-
errorCode,
|
|
1479
|
-
});
|
|
1480
|
-
}
|
|
1481
|
-
};
|
|
1482
760
|
export const de_ListSharedProjectsCommand = async (output, context) => {
|
|
1483
761
|
if (output.statusCode >= 300) {
|
|
1484
|
-
return
|
|
762
|
+
return de_CommandError(output, context);
|
|
1485
763
|
}
|
|
1486
764
|
const data = await parseBody(output.body, context);
|
|
1487
765
|
let contents = {};
|
|
@@ -1492,60 +770,9 @@ export const de_ListSharedProjectsCommand = async (output, context) => {
|
|
|
1492
770
|
};
|
|
1493
771
|
return response;
|
|
1494
772
|
};
|
|
1495
|
-
const de_ListSharedProjectsCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "InvalidInputException":
|
|
1503
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1504
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode,
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
};
|
|
1514
773
|
export const de_ListSharedReportGroupsCommand = async (output, context) => {
|
|
1515
774
|
if (output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1517
|
-
}
|
|
1518
|
-
const data = await parseBody(output.body, context);
|
|
1519
|
-
let contents = {};
|
|
1520
|
-
contents = _json(data);
|
|
1521
|
-
const response = {
|
|
1522
|
-
$metadata: deserializeMetadata(output),
|
|
1523
|
-
...contents,
|
|
1524
|
-
};
|
|
1525
|
-
return response;
|
|
1526
|
-
};
|
|
1527
|
-
const de_ListSharedReportGroupsCommandError = async (output, context) => {
|
|
1528
|
-
const parsedOutput = {
|
|
1529
|
-
...output,
|
|
1530
|
-
body: await parseErrorBody(output.body, context),
|
|
1531
|
-
};
|
|
1532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
-
switch (errorCode) {
|
|
1534
|
-
case "InvalidInputException":
|
|
1535
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1536
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1537
|
-
default:
|
|
1538
|
-
const parsedBody = parsedOutput.body;
|
|
1539
|
-
return throwDefaultError({
|
|
1540
|
-
output,
|
|
1541
|
-
parsedBody,
|
|
1542
|
-
errorCode,
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
};
|
|
1546
|
-
export const de_ListSourceCredentialsCommand = async (output, context) => {
|
|
1547
|
-
if (output.statusCode >= 300) {
|
|
1548
|
-
return de_ListSourceCredentialsCommandError(output, context);
|
|
775
|
+
return de_CommandError(output, context);
|
|
1549
776
|
}
|
|
1550
777
|
const data = await parseBody(output.body, context);
|
|
1551
778
|
let contents = {};
|
|
@@ -1556,28 +783,9 @@ export const de_ListSourceCredentialsCommand = async (output, context) => {
|
|
|
1556
783
|
};
|
|
1557
784
|
return response;
|
|
1558
785
|
};
|
|
1559
|
-
const
|
|
1560
|
-
const parsedOutput = {
|
|
1561
|
-
...output,
|
|
1562
|
-
body: await parseErrorBody(output.body, context),
|
|
1563
|
-
};
|
|
1564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
-
switch (errorCode) {
|
|
1566
|
-
case "InvalidInputException":
|
|
1567
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1568
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1569
|
-
default:
|
|
1570
|
-
const parsedBody = parsedOutput.body;
|
|
1571
|
-
return throwDefaultError({
|
|
1572
|
-
output,
|
|
1573
|
-
parsedBody,
|
|
1574
|
-
errorCode,
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
};
|
|
1578
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
786
|
+
export const de_ListSourceCredentialsCommand = async (output, context) => {
|
|
1579
787
|
if (output.statusCode >= 300) {
|
|
1580
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
1581
789
|
}
|
|
1582
790
|
const data = await parseBody(output.body, context);
|
|
1583
791
|
let contents = {};
|
|
@@ -1588,31 +796,22 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1588
796
|
};
|
|
1589
797
|
return response;
|
|
1590
798
|
};
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
body: await parseErrorBody(output.body, context),
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "InvalidInputException":
|
|
1599
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1600
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "ResourceNotFoundException":
|
|
1602
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1603
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1604
|
-
default:
|
|
1605
|
-
const parsedBody = parsedOutput.body;
|
|
1606
|
-
return throwDefaultError({
|
|
1607
|
-
output,
|
|
1608
|
-
parsedBody,
|
|
1609
|
-
errorCode,
|
|
1610
|
-
});
|
|
799
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
800
|
+
if (output.statusCode >= 300) {
|
|
801
|
+
return de_CommandError(output, context);
|
|
1611
802
|
}
|
|
803
|
+
const data = await parseBody(output.body, context);
|
|
804
|
+
let contents = {};
|
|
805
|
+
contents = _json(data);
|
|
806
|
+
const response = {
|
|
807
|
+
$metadata: deserializeMetadata(output),
|
|
808
|
+
...contents,
|
|
809
|
+
};
|
|
810
|
+
return response;
|
|
1612
811
|
};
|
|
1613
812
|
export const de_RetryBuildCommand = async (output, context) => {
|
|
1614
813
|
if (output.statusCode >= 300) {
|
|
1615
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
1616
815
|
}
|
|
1617
816
|
const data = await parseBody(output.body, context);
|
|
1618
817
|
let contents = {};
|
|
@@ -1623,34 +822,9 @@ export const de_RetryBuildCommand = async (output, context) => {
|
|
|
1623
822
|
};
|
|
1624
823
|
return response;
|
|
1625
824
|
};
|
|
1626
|
-
const de_RetryBuildCommandError = async (output, context) => {
|
|
1627
|
-
const parsedOutput = {
|
|
1628
|
-
...output,
|
|
1629
|
-
body: await parseErrorBody(output.body, context),
|
|
1630
|
-
};
|
|
1631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1632
|
-
switch (errorCode) {
|
|
1633
|
-
case "AccountLimitExceededException":
|
|
1634
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
1635
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "InvalidInputException":
|
|
1637
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1638
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ResourceNotFoundException":
|
|
1640
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1642
|
-
default:
|
|
1643
|
-
const parsedBody = parsedOutput.body;
|
|
1644
|
-
return throwDefaultError({
|
|
1645
|
-
output,
|
|
1646
|
-
parsedBody,
|
|
1647
|
-
errorCode,
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
};
|
|
1651
825
|
export const de_RetryBuildBatchCommand = async (output, context) => {
|
|
1652
826
|
if (output.statusCode >= 300) {
|
|
1653
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
1654
828
|
}
|
|
1655
829
|
const data = await parseBody(output.body, context);
|
|
1656
830
|
let contents = {};
|
|
@@ -1661,31 +835,9 @@ export const de_RetryBuildBatchCommand = async (output, context) => {
|
|
|
1661
835
|
};
|
|
1662
836
|
return response;
|
|
1663
837
|
};
|
|
1664
|
-
const de_RetryBuildBatchCommandError = async (output, context) => {
|
|
1665
|
-
const parsedOutput = {
|
|
1666
|
-
...output,
|
|
1667
|
-
body: await parseErrorBody(output.body, context),
|
|
1668
|
-
};
|
|
1669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1670
|
-
switch (errorCode) {
|
|
1671
|
-
case "InvalidInputException":
|
|
1672
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1673
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1674
|
-
case "ResourceNotFoundException":
|
|
1675
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1676
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1677
|
-
default:
|
|
1678
|
-
const parsedBody = parsedOutput.body;
|
|
1679
|
-
return throwDefaultError({
|
|
1680
|
-
output,
|
|
1681
|
-
parsedBody,
|
|
1682
|
-
errorCode,
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
838
|
export const de_StartBuildCommand = async (output, context) => {
|
|
1687
839
|
if (output.statusCode >= 300) {
|
|
1688
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
1689
841
|
}
|
|
1690
842
|
const data = await parseBody(output.body, context);
|
|
1691
843
|
let contents = {};
|
|
@@ -1696,34 +848,9 @@ export const de_StartBuildCommand = async (output, context) => {
|
|
|
1696
848
|
};
|
|
1697
849
|
return response;
|
|
1698
850
|
};
|
|
1699
|
-
const de_StartBuildCommandError = async (output, context) => {
|
|
1700
|
-
const parsedOutput = {
|
|
1701
|
-
...output,
|
|
1702
|
-
body: await parseErrorBody(output.body, context),
|
|
1703
|
-
};
|
|
1704
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1705
|
-
switch (errorCode) {
|
|
1706
|
-
case "AccountLimitExceededException":
|
|
1707
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
1708
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "InvalidInputException":
|
|
1710
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1711
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "ResourceNotFoundException":
|
|
1713
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1715
|
-
default:
|
|
1716
|
-
const parsedBody = parsedOutput.body;
|
|
1717
|
-
return throwDefaultError({
|
|
1718
|
-
output,
|
|
1719
|
-
parsedBody,
|
|
1720
|
-
errorCode,
|
|
1721
|
-
});
|
|
1722
|
-
}
|
|
1723
|
-
};
|
|
1724
851
|
export const de_StartBuildBatchCommand = async (output, context) => {
|
|
1725
852
|
if (output.statusCode >= 300) {
|
|
1726
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1727
854
|
}
|
|
1728
855
|
const data = await parseBody(output.body, context);
|
|
1729
856
|
let contents = {};
|
|
@@ -1734,31 +861,9 @@ export const de_StartBuildBatchCommand = async (output, context) => {
|
|
|
1734
861
|
};
|
|
1735
862
|
return response;
|
|
1736
863
|
};
|
|
1737
|
-
const de_StartBuildBatchCommandError = async (output, context) => {
|
|
1738
|
-
const parsedOutput = {
|
|
1739
|
-
...output,
|
|
1740
|
-
body: await parseErrorBody(output.body, context),
|
|
1741
|
-
};
|
|
1742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
-
switch (errorCode) {
|
|
1744
|
-
case "InvalidInputException":
|
|
1745
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1746
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "ResourceNotFoundException":
|
|
1748
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1749
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1750
|
-
default:
|
|
1751
|
-
const parsedBody = parsedOutput.body;
|
|
1752
|
-
return throwDefaultError({
|
|
1753
|
-
output,
|
|
1754
|
-
parsedBody,
|
|
1755
|
-
errorCode,
|
|
1756
|
-
});
|
|
1757
|
-
}
|
|
1758
|
-
};
|
|
1759
864
|
export const de_StopBuildCommand = async (output, context) => {
|
|
1760
865
|
if (output.statusCode >= 300) {
|
|
1761
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1762
867
|
}
|
|
1763
868
|
const data = await parseBody(output.body, context);
|
|
1764
869
|
let contents = {};
|
|
@@ -1769,31 +874,9 @@ export const de_StopBuildCommand = async (output, context) => {
|
|
|
1769
874
|
};
|
|
1770
875
|
return response;
|
|
1771
876
|
};
|
|
1772
|
-
const de_StopBuildCommandError = async (output, context) => {
|
|
1773
|
-
const parsedOutput = {
|
|
1774
|
-
...output,
|
|
1775
|
-
body: await parseErrorBody(output.body, context),
|
|
1776
|
-
};
|
|
1777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
|
-
switch (errorCode) {
|
|
1779
|
-
case "InvalidInputException":
|
|
1780
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1781
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1782
|
-
case "ResourceNotFoundException":
|
|
1783
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1784
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1785
|
-
default:
|
|
1786
|
-
const parsedBody = parsedOutput.body;
|
|
1787
|
-
return throwDefaultError({
|
|
1788
|
-
output,
|
|
1789
|
-
parsedBody,
|
|
1790
|
-
errorCode,
|
|
1791
|
-
});
|
|
1792
|
-
}
|
|
1793
|
-
};
|
|
1794
877
|
export const de_StopBuildBatchCommand = async (output, context) => {
|
|
1795
878
|
if (output.statusCode >= 300) {
|
|
1796
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1797
880
|
}
|
|
1798
881
|
const data = await parseBody(output.body, context);
|
|
1799
882
|
let contents = {};
|
|
@@ -1804,31 +887,9 @@ export const de_StopBuildBatchCommand = async (output, context) => {
|
|
|
1804
887
|
};
|
|
1805
888
|
return response;
|
|
1806
889
|
};
|
|
1807
|
-
const de_StopBuildBatchCommandError = async (output, context) => {
|
|
1808
|
-
const parsedOutput = {
|
|
1809
|
-
...output,
|
|
1810
|
-
body: await parseErrorBody(output.body, context),
|
|
1811
|
-
};
|
|
1812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
-
switch (errorCode) {
|
|
1814
|
-
case "InvalidInputException":
|
|
1815
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1816
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ResourceNotFoundException":
|
|
1818
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1820
|
-
default:
|
|
1821
|
-
const parsedBody = parsedOutput.body;
|
|
1822
|
-
return throwDefaultError({
|
|
1823
|
-
output,
|
|
1824
|
-
parsedBody,
|
|
1825
|
-
errorCode,
|
|
1826
|
-
});
|
|
1827
|
-
}
|
|
1828
|
-
};
|
|
1829
890
|
export const de_UpdateFleetCommand = async (output, context) => {
|
|
1830
891
|
if (output.statusCode >= 300) {
|
|
1831
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1832
893
|
}
|
|
1833
894
|
const data = await parseBody(output.body, context);
|
|
1834
895
|
let contents = {};
|
|
@@ -1839,34 +900,9 @@ export const de_UpdateFleetCommand = async (output, context) => {
|
|
|
1839
900
|
};
|
|
1840
901
|
return response;
|
|
1841
902
|
};
|
|
1842
|
-
const de_UpdateFleetCommandError = async (output, context) => {
|
|
1843
|
-
const parsedOutput = {
|
|
1844
|
-
...output,
|
|
1845
|
-
body: await parseErrorBody(output.body, context),
|
|
1846
|
-
};
|
|
1847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
-
switch (errorCode) {
|
|
1849
|
-
case "AccountLimitExceededException":
|
|
1850
|
-
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
1851
|
-
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "InvalidInputException":
|
|
1853
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1854
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ResourceNotFoundException":
|
|
1856
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1857
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode,
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
903
|
export const de_UpdateProjectCommand = async (output, context) => {
|
|
1868
904
|
if (output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1870
906
|
}
|
|
1871
907
|
const data = await parseBody(output.body, context);
|
|
1872
908
|
let contents = {};
|
|
@@ -1877,31 +913,9 @@ export const de_UpdateProjectCommand = async (output, context) => {
|
|
|
1877
913
|
};
|
|
1878
914
|
return response;
|
|
1879
915
|
};
|
|
1880
|
-
const de_UpdateProjectCommandError = async (output, context) => {
|
|
1881
|
-
const parsedOutput = {
|
|
1882
|
-
...output,
|
|
1883
|
-
body: await parseErrorBody(output.body, context),
|
|
1884
|
-
};
|
|
1885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
|
-
switch (errorCode) {
|
|
1887
|
-
case "InvalidInputException":
|
|
1888
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1889
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "ResourceNotFoundException":
|
|
1891
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1893
|
-
default:
|
|
1894
|
-
const parsedBody = parsedOutput.body;
|
|
1895
|
-
return throwDefaultError({
|
|
1896
|
-
output,
|
|
1897
|
-
parsedBody,
|
|
1898
|
-
errorCode,
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
916
|
export const de_UpdateProjectVisibilityCommand = async (output, context) => {
|
|
1903
917
|
if (output.statusCode >= 300) {
|
|
1904
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1905
919
|
}
|
|
1906
920
|
const data = await parseBody(output.body, context);
|
|
1907
921
|
let contents = {};
|
|
@@ -1912,31 +926,9 @@ export const de_UpdateProjectVisibilityCommand = async (output, context) => {
|
|
|
1912
926
|
};
|
|
1913
927
|
return response;
|
|
1914
928
|
};
|
|
1915
|
-
const de_UpdateProjectVisibilityCommandError = async (output, context) => {
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context),
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "InvalidInputException":
|
|
1923
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1924
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ResourceNotFoundException":
|
|
1926
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1927
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1928
|
-
default:
|
|
1929
|
-
const parsedBody = parsedOutput.body;
|
|
1930
|
-
return throwDefaultError({
|
|
1931
|
-
output,
|
|
1932
|
-
parsedBody,
|
|
1933
|
-
errorCode,
|
|
1934
|
-
});
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
929
|
export const de_UpdateReportGroupCommand = async (output, context) => {
|
|
1938
930
|
if (output.statusCode >= 300) {
|
|
1939
|
-
return
|
|
931
|
+
return de_CommandError(output, context);
|
|
1940
932
|
}
|
|
1941
933
|
const data = await parseBody(output.body, context);
|
|
1942
934
|
let contents = {};
|
|
@@ -1947,31 +939,9 @@ export const de_UpdateReportGroupCommand = async (output, context) => {
|
|
|
1947
939
|
};
|
|
1948
940
|
return response;
|
|
1949
941
|
};
|
|
1950
|
-
const de_UpdateReportGroupCommandError = async (output, context) => {
|
|
1951
|
-
const parsedOutput = {
|
|
1952
|
-
...output,
|
|
1953
|
-
body: await parseErrorBody(output.body, context),
|
|
1954
|
-
};
|
|
1955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
-
switch (errorCode) {
|
|
1957
|
-
case "InvalidInputException":
|
|
1958
|
-
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1959
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ResourceNotFoundException":
|
|
1961
|
-
case "com.amazonaws.codebuild#ResourceNotFoundException":
|
|
1962
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1963
|
-
default:
|
|
1964
|
-
const parsedBody = parsedOutput.body;
|
|
1965
|
-
return throwDefaultError({
|
|
1966
|
-
output,
|
|
1967
|
-
parsedBody,
|
|
1968
|
-
errorCode,
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
};
|
|
1972
942
|
export const de_UpdateWebhookCommand = async (output, context) => {
|
|
1973
943
|
if (output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1975
945
|
}
|
|
1976
946
|
const data = await parseBody(output.body, context);
|
|
1977
947
|
let contents = {};
|
|
@@ -1982,7 +952,7 @@ export const de_UpdateWebhookCommand = async (output, context) => {
|
|
|
1982
952
|
};
|
|
1983
953
|
return response;
|
|
1984
954
|
};
|
|
1985
|
-
const
|
|
955
|
+
const de_CommandError = async (output, context) => {
|
|
1986
956
|
const parsedOutput = {
|
|
1987
957
|
...output,
|
|
1988
958
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1992,6 +962,12 @@ const de_UpdateWebhookCommandError = async (output, context) => {
|
|
|
1992
962
|
case "InvalidInputException":
|
|
1993
963
|
case "com.amazonaws.codebuild#InvalidInputException":
|
|
1994
964
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
965
|
+
case "AccountLimitExceededException":
|
|
966
|
+
case "com.amazonaws.codebuild#AccountLimitExceededException":
|
|
967
|
+
throw await de_AccountLimitExceededExceptionRes(parsedOutput, context);
|
|
968
|
+
case "ResourceAlreadyExistsException":
|
|
969
|
+
case "com.amazonaws.codebuild#ResourceAlreadyExistsException":
|
|
970
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1995
971
|
case "OAuthProviderException":
|
|
1996
972
|
case "com.amazonaws.codebuild#OAuthProviderException":
|
|
1997
973
|
throw await de_OAuthProviderExceptionRes(parsedOutput, context);
|