@aws-sdk/client-codepipeline 3.50.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CodePipelineServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +473 -4
- package/dist-cjs/protocols/Aws_json1_1.js +458 -1447
- package/dist-es/index.js +1 -0
- package/dist-es/models/CodePipelineServiceException.js +12 -0
- package/dist-es/models/models_0.js +434 -1
- package/dist-es/protocols/Aws_json1_1.js +913 -1532
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CodePipelineServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +202 -170
- package/dist-types/ts3.4/CodePipeline.d.ts +200 -0
- package/dist-types/ts3.4/CodePipelineClient.d.ts +112 -0
- package/dist-types/ts3.4/commands/AcknowledgeJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AcknowledgeThirdPartyJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCustomActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCustomActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWebhookCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeregisterWebhookWithThirdPartyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisableStageTransitionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/EnableStageTransitionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetJobDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetPipelineStateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetThirdPartyJobDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListActionExecutionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListActionTypesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPipelineExecutionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPipelinesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWebhooksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PollForJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PollForThirdPartyJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutActionRevisionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutApprovalResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutJobFailureResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutJobSuccessResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutThirdPartyJobFailureResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutThirdPartyJobSuccessResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutWebhookCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RegisterWebhookWithThirdPartyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RetryStageExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopPipelineExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateActionTypeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePipelineCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +39 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/CodePipelineServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2098 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListActionExecutionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListActionTypesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPipelineExecutionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPipelinesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWebhooksPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +119 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -5,6 +5,8 @@ exports.deserializeAws_json1_1UpdatePipelineCommand = exports.deserializeAws_jso
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const CodePipelineServiceException_1 = require("../models/CodePipelineServiceException");
|
|
9
|
+
const models_0_1 = require("../models/models_0");
|
|
8
10
|
const serializeAws_json1_1AcknowledgeJobCommand = async (input, context) => {
|
|
9
11
|
const headers = {
|
|
10
12
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -420,43 +422,22 @@ const deserializeAws_json1_1AcknowledgeJobCommandError = async (output, context)
|
|
|
420
422
|
switch (errorCode) {
|
|
421
423
|
case "InvalidNonceException":
|
|
422
424
|
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
423
|
-
|
|
424
|
-
...(await deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context)),
|
|
425
|
-
name: errorCode,
|
|
426
|
-
$metadata: deserializeMetadata(output),
|
|
427
|
-
};
|
|
428
|
-
break;
|
|
425
|
+
throw await deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context);
|
|
429
426
|
case "JobNotFoundException":
|
|
430
427
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
431
|
-
|
|
432
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
433
|
-
name: errorCode,
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
};
|
|
436
|
-
break;
|
|
428
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
437
429
|
case "ValidationException":
|
|
438
430
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
439
|
-
|
|
440
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
441
|
-
name: errorCode,
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
};
|
|
444
|
-
break;
|
|
431
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
445
432
|
default:
|
|
446
433
|
const parsedBody = parsedOutput.body;
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
...parsedBody,
|
|
450
|
-
name: `${errorCode}`,
|
|
451
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
434
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
435
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
452
436
|
$fault: "client",
|
|
453
437
|
$metadata: deserializeMetadata(output),
|
|
454
|
-
};
|
|
438
|
+
});
|
|
439
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
455
440
|
}
|
|
456
|
-
const message = response.message || response.Message || errorCode;
|
|
457
|
-
response.message = message;
|
|
458
|
-
delete response.Message;
|
|
459
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
460
441
|
};
|
|
461
442
|
const deserializeAws_json1_1AcknowledgeThirdPartyJobCommand = async (output, context) => {
|
|
462
443
|
if (output.statusCode >= 300) {
|
|
@@ -483,51 +464,25 @@ const deserializeAws_json1_1AcknowledgeThirdPartyJobCommandError = async (output
|
|
|
483
464
|
switch (errorCode) {
|
|
484
465
|
case "InvalidClientTokenException":
|
|
485
466
|
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
486
|
-
|
|
487
|
-
...(await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)),
|
|
488
|
-
name: errorCode,
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
};
|
|
491
|
-
break;
|
|
467
|
+
throw await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context);
|
|
492
468
|
case "InvalidNonceException":
|
|
493
469
|
case "com.amazonaws.codepipeline#InvalidNonceException":
|
|
494
|
-
|
|
495
|
-
...(await deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context)),
|
|
496
|
-
name: errorCode,
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
};
|
|
499
|
-
break;
|
|
470
|
+
throw await deserializeAws_json1_1InvalidNonceExceptionResponse(parsedOutput, context);
|
|
500
471
|
case "JobNotFoundException":
|
|
501
472
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
502
|
-
|
|
503
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
504
|
-
name: errorCode,
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
};
|
|
507
|
-
break;
|
|
473
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
508
474
|
case "ValidationException":
|
|
509
475
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
510
|
-
|
|
511
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
512
|
-
name: errorCode,
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
};
|
|
515
|
-
break;
|
|
476
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
516
477
|
default:
|
|
517
478
|
const parsedBody = parsedOutput.body;
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
...parsedBody,
|
|
521
|
-
name: `${errorCode}`,
|
|
522
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
479
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
480
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
523
481
|
$fault: "client",
|
|
524
482
|
$metadata: deserializeMetadata(output),
|
|
525
|
-
};
|
|
483
|
+
});
|
|
484
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
526
485
|
}
|
|
527
|
-
const message = response.message || response.Message || errorCode;
|
|
528
|
-
response.message = message;
|
|
529
|
-
delete response.Message;
|
|
530
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
531
486
|
};
|
|
532
487
|
const deserializeAws_json1_1CreateCustomActionTypeCommand = async (output, context) => {
|
|
533
488
|
if (output.statusCode >= 300) {
|
|
@@ -554,59 +509,28 @@ const deserializeAws_json1_1CreateCustomActionTypeCommandError = async (output,
|
|
|
554
509
|
switch (errorCode) {
|
|
555
510
|
case "ConcurrentModificationException":
|
|
556
511
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
557
|
-
|
|
558
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
559
|
-
name: errorCode,
|
|
560
|
-
$metadata: deserializeMetadata(output),
|
|
561
|
-
};
|
|
562
|
-
break;
|
|
512
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
563
513
|
case "InvalidTagsException":
|
|
564
514
|
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
565
|
-
|
|
566
|
-
...(await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)),
|
|
567
|
-
name: errorCode,
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
};
|
|
570
|
-
break;
|
|
515
|
+
throw await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context);
|
|
571
516
|
case "LimitExceededException":
|
|
572
517
|
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
573
|
-
|
|
574
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
575
|
-
name: errorCode,
|
|
576
|
-
$metadata: deserializeMetadata(output),
|
|
577
|
-
};
|
|
578
|
-
break;
|
|
518
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
579
519
|
case "TooManyTagsException":
|
|
580
520
|
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
581
|
-
|
|
582
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
583
|
-
name: errorCode,
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
};
|
|
586
|
-
break;
|
|
521
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
587
522
|
case "ValidationException":
|
|
588
523
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
589
|
-
|
|
590
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
591
|
-
name: errorCode,
|
|
592
|
-
$metadata: deserializeMetadata(output),
|
|
593
|
-
};
|
|
594
|
-
break;
|
|
524
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
595
525
|
default:
|
|
596
526
|
const parsedBody = parsedOutput.body;
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
...parsedBody,
|
|
600
|
-
name: `${errorCode}`,
|
|
601
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
527
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
528
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
602
529
|
$fault: "client",
|
|
603
530
|
$metadata: deserializeMetadata(output),
|
|
604
|
-
};
|
|
531
|
+
});
|
|
532
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
605
533
|
}
|
|
606
|
-
const message = response.message || response.Message || errorCode;
|
|
607
|
-
response.message = message;
|
|
608
|
-
delete response.Message;
|
|
609
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
610
534
|
};
|
|
611
535
|
const deserializeAws_json1_1CreatePipelineCommand = async (output, context) => {
|
|
612
536
|
if (output.statusCode >= 300) {
|
|
@@ -633,99 +557,43 @@ const deserializeAws_json1_1CreatePipelineCommandError = async (output, context)
|
|
|
633
557
|
switch (errorCode) {
|
|
634
558
|
case "ConcurrentModificationException":
|
|
635
559
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
636
|
-
|
|
637
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
638
|
-
name: errorCode,
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
};
|
|
641
|
-
break;
|
|
560
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
642
561
|
case "InvalidActionDeclarationException":
|
|
643
562
|
case "com.amazonaws.codepipeline#InvalidActionDeclarationException":
|
|
644
|
-
|
|
645
|
-
...(await deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context)),
|
|
646
|
-
name: errorCode,
|
|
647
|
-
$metadata: deserializeMetadata(output),
|
|
648
|
-
};
|
|
649
|
-
break;
|
|
563
|
+
throw await deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context);
|
|
650
564
|
case "InvalidBlockerDeclarationException":
|
|
651
565
|
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException":
|
|
652
|
-
|
|
653
|
-
...(await deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context)),
|
|
654
|
-
name: errorCode,
|
|
655
|
-
$metadata: deserializeMetadata(output),
|
|
656
|
-
};
|
|
657
|
-
break;
|
|
566
|
+
throw await deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context);
|
|
658
567
|
case "InvalidStageDeclarationException":
|
|
659
568
|
case "com.amazonaws.codepipeline#InvalidStageDeclarationException":
|
|
660
|
-
|
|
661
|
-
...(await deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context)),
|
|
662
|
-
name: errorCode,
|
|
663
|
-
$metadata: deserializeMetadata(output),
|
|
664
|
-
};
|
|
665
|
-
break;
|
|
569
|
+
throw await deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context);
|
|
666
570
|
case "InvalidStructureException":
|
|
667
571
|
case "com.amazonaws.codepipeline#InvalidStructureException":
|
|
668
|
-
|
|
669
|
-
...(await deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context)),
|
|
670
|
-
name: errorCode,
|
|
671
|
-
$metadata: deserializeMetadata(output),
|
|
672
|
-
};
|
|
673
|
-
break;
|
|
572
|
+
throw await deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context);
|
|
674
573
|
case "InvalidTagsException":
|
|
675
574
|
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
676
|
-
|
|
677
|
-
...(await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)),
|
|
678
|
-
name: errorCode,
|
|
679
|
-
$metadata: deserializeMetadata(output),
|
|
680
|
-
};
|
|
681
|
-
break;
|
|
575
|
+
throw await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context);
|
|
682
576
|
case "LimitExceededException":
|
|
683
577
|
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
684
|
-
|
|
685
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
686
|
-
name: errorCode,
|
|
687
|
-
$metadata: deserializeMetadata(output),
|
|
688
|
-
};
|
|
689
|
-
break;
|
|
578
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
690
579
|
case "PipelineNameInUseException":
|
|
691
580
|
case "com.amazonaws.codepipeline#PipelineNameInUseException":
|
|
692
|
-
|
|
693
|
-
...(await deserializeAws_json1_1PipelineNameInUseExceptionResponse(parsedOutput, context)),
|
|
694
|
-
name: errorCode,
|
|
695
|
-
$metadata: deserializeMetadata(output),
|
|
696
|
-
};
|
|
697
|
-
break;
|
|
581
|
+
throw await deserializeAws_json1_1PipelineNameInUseExceptionResponse(parsedOutput, context);
|
|
698
582
|
case "TooManyTagsException":
|
|
699
583
|
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
700
|
-
|
|
701
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
702
|
-
name: errorCode,
|
|
703
|
-
$metadata: deserializeMetadata(output),
|
|
704
|
-
};
|
|
705
|
-
break;
|
|
584
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
706
585
|
case "ValidationException":
|
|
707
586
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
708
|
-
|
|
709
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
710
|
-
name: errorCode,
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
};
|
|
713
|
-
break;
|
|
587
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
714
588
|
default:
|
|
715
589
|
const parsedBody = parsedOutput.body;
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
...parsedBody,
|
|
719
|
-
name: `${errorCode}`,
|
|
720
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
590
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
591
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
721
592
|
$fault: "client",
|
|
722
593
|
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
594
|
+
});
|
|
595
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
724
596
|
}
|
|
725
|
-
const message = response.message || response.Message || errorCode;
|
|
726
|
-
response.message = message;
|
|
727
|
-
delete response.Message;
|
|
728
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
729
597
|
};
|
|
730
598
|
const deserializeAws_json1_1DeleteCustomActionTypeCommand = async (output, context) => {
|
|
731
599
|
if (output.statusCode >= 300) {
|
|
@@ -749,35 +617,19 @@ const deserializeAws_json1_1DeleteCustomActionTypeCommandError = async (output,
|
|
|
749
617
|
switch (errorCode) {
|
|
750
618
|
case "ConcurrentModificationException":
|
|
751
619
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
752
|
-
|
|
753
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
754
|
-
name: errorCode,
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
};
|
|
757
|
-
break;
|
|
620
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
758
621
|
case "ValidationException":
|
|
759
622
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
760
|
-
|
|
761
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
762
|
-
name: errorCode,
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
};
|
|
765
|
-
break;
|
|
623
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
766
624
|
default:
|
|
767
625
|
const parsedBody = parsedOutput.body;
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
...parsedBody,
|
|
771
|
-
name: `${errorCode}`,
|
|
772
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
626
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
627
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
773
628
|
$fault: "client",
|
|
774
629
|
$metadata: deserializeMetadata(output),
|
|
775
|
-
};
|
|
630
|
+
});
|
|
631
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
776
632
|
}
|
|
777
|
-
const message = response.message || response.Message || errorCode;
|
|
778
|
-
response.message = message;
|
|
779
|
-
delete response.Message;
|
|
780
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
781
633
|
};
|
|
782
634
|
const deserializeAws_json1_1DeletePipelineCommand = async (output, context) => {
|
|
783
635
|
if (output.statusCode >= 300) {
|
|
@@ -801,35 +653,19 @@ const deserializeAws_json1_1DeletePipelineCommandError = async (output, context)
|
|
|
801
653
|
switch (errorCode) {
|
|
802
654
|
case "ConcurrentModificationException":
|
|
803
655
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
804
|
-
|
|
805
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
806
|
-
name: errorCode,
|
|
807
|
-
$metadata: deserializeMetadata(output),
|
|
808
|
-
};
|
|
809
|
-
break;
|
|
656
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
810
657
|
case "ValidationException":
|
|
811
658
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
812
|
-
|
|
813
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
814
|
-
name: errorCode,
|
|
815
|
-
$metadata: deserializeMetadata(output),
|
|
816
|
-
};
|
|
817
|
-
break;
|
|
659
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
818
660
|
default:
|
|
819
661
|
const parsedBody = parsedOutput.body;
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
...parsedBody,
|
|
823
|
-
name: `${errorCode}`,
|
|
824
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
662
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
663
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
825
664
|
$fault: "client",
|
|
826
665
|
$metadata: deserializeMetadata(output),
|
|
827
|
-
};
|
|
666
|
+
});
|
|
667
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
828
668
|
}
|
|
829
|
-
const message = response.message || response.Message || errorCode;
|
|
830
|
-
response.message = message;
|
|
831
|
-
delete response.Message;
|
|
832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
833
669
|
};
|
|
834
670
|
const deserializeAws_json1_1DeleteWebhookCommand = async (output, context) => {
|
|
835
671
|
if (output.statusCode >= 300) {
|
|
@@ -856,35 +692,19 @@ const deserializeAws_json1_1DeleteWebhookCommandError = async (output, context)
|
|
|
856
692
|
switch (errorCode) {
|
|
857
693
|
case "ConcurrentModificationException":
|
|
858
694
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
859
|
-
|
|
860
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
861
|
-
name: errorCode,
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
};
|
|
864
|
-
break;
|
|
695
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
865
696
|
case "ValidationException":
|
|
866
697
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
867
|
-
|
|
868
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
869
|
-
name: errorCode,
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
};
|
|
872
|
-
break;
|
|
698
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
873
699
|
default:
|
|
874
700
|
const parsedBody = parsedOutput.body;
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
...parsedBody,
|
|
878
|
-
name: `${errorCode}`,
|
|
879
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
701
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
880
703
|
$fault: "client",
|
|
881
704
|
$metadata: deserializeMetadata(output),
|
|
882
|
-
};
|
|
705
|
+
});
|
|
706
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
883
707
|
}
|
|
884
|
-
const message = response.message || response.Message || errorCode;
|
|
885
|
-
response.message = message;
|
|
886
|
-
delete response.Message;
|
|
887
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
888
708
|
};
|
|
889
709
|
const deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommand = async (output, context) => {
|
|
890
710
|
if (output.statusCode >= 300) {
|
|
@@ -911,35 +731,19 @@ const deserializeAws_json1_1DeregisterWebhookWithThirdPartyCommandError = async
|
|
|
911
731
|
switch (errorCode) {
|
|
912
732
|
case "ValidationException":
|
|
913
733
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
914
|
-
|
|
915
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
916
|
-
name: errorCode,
|
|
917
|
-
$metadata: deserializeMetadata(output),
|
|
918
|
-
};
|
|
919
|
-
break;
|
|
734
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
920
735
|
case "WebhookNotFoundException":
|
|
921
736
|
case "com.amazonaws.codepipeline#WebhookNotFoundException":
|
|
922
|
-
|
|
923
|
-
...(await deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context)),
|
|
924
|
-
name: errorCode,
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
};
|
|
927
|
-
break;
|
|
737
|
+
throw await deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context);
|
|
928
738
|
default:
|
|
929
739
|
const parsedBody = parsedOutput.body;
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
...parsedBody,
|
|
933
|
-
name: `${errorCode}`,
|
|
934
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
740
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
935
742
|
$fault: "client",
|
|
936
743
|
$metadata: deserializeMetadata(output),
|
|
937
|
-
};
|
|
744
|
+
});
|
|
745
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
938
746
|
}
|
|
939
|
-
const message = response.message || response.Message || errorCode;
|
|
940
|
-
response.message = message;
|
|
941
|
-
delete response.Message;
|
|
942
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
943
747
|
};
|
|
944
748
|
const deserializeAws_json1_1DisableStageTransitionCommand = async (output, context) => {
|
|
945
749
|
if (output.statusCode >= 300) {
|
|
@@ -963,43 +767,22 @@ const deserializeAws_json1_1DisableStageTransitionCommandError = async (output,
|
|
|
963
767
|
switch (errorCode) {
|
|
964
768
|
case "PipelineNotFoundException":
|
|
965
769
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
966
|
-
|
|
967
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
968
|
-
name: errorCode,
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
};
|
|
971
|
-
break;
|
|
770
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
972
771
|
case "StageNotFoundException":
|
|
973
772
|
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
974
|
-
|
|
975
|
-
...(await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)),
|
|
976
|
-
name: errorCode,
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
};
|
|
979
|
-
break;
|
|
773
|
+
throw await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context);
|
|
980
774
|
case "ValidationException":
|
|
981
775
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
776
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
988
777
|
default:
|
|
989
778
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
...parsedBody,
|
|
993
|
-
name: `${errorCode}`,
|
|
994
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
779
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
780
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
995
781
|
$fault: "client",
|
|
996
782
|
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
783
|
+
});
|
|
784
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
998
785
|
}
|
|
999
|
-
const message = response.message || response.Message || errorCode;
|
|
1000
|
-
response.message = message;
|
|
1001
|
-
delete response.Message;
|
|
1002
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1003
786
|
};
|
|
1004
787
|
const deserializeAws_json1_1EnableStageTransitionCommand = async (output, context) => {
|
|
1005
788
|
if (output.statusCode >= 300) {
|
|
@@ -1023,43 +806,22 @@ const deserializeAws_json1_1EnableStageTransitionCommandError = async (output, c
|
|
|
1023
806
|
switch (errorCode) {
|
|
1024
807
|
case "PipelineNotFoundException":
|
|
1025
808
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1026
|
-
|
|
1027
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1028
|
-
name: errorCode,
|
|
1029
|
-
$metadata: deserializeMetadata(output),
|
|
1030
|
-
};
|
|
1031
|
-
break;
|
|
809
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1032
810
|
case "StageNotFoundException":
|
|
1033
811
|
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
1034
|
-
|
|
1035
|
-
...(await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1036
|
-
name: errorCode,
|
|
1037
|
-
$metadata: deserializeMetadata(output),
|
|
1038
|
-
};
|
|
1039
|
-
break;
|
|
812
|
+
throw await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context);
|
|
1040
813
|
case "ValidationException":
|
|
1041
814
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1042
|
-
|
|
1043
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1044
|
-
name: errorCode,
|
|
1045
|
-
$metadata: deserializeMetadata(output),
|
|
1046
|
-
};
|
|
1047
|
-
break;
|
|
815
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1048
816
|
default:
|
|
1049
817
|
const parsedBody = parsedOutput.body;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
...parsedBody,
|
|
1053
|
-
name: `${errorCode}`,
|
|
1054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
818
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
819
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1055
820
|
$fault: "client",
|
|
1056
821
|
$metadata: deserializeMetadata(output),
|
|
1057
|
-
};
|
|
822
|
+
});
|
|
823
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1058
824
|
}
|
|
1059
|
-
const message = response.message || response.Message || errorCode;
|
|
1060
|
-
response.message = message;
|
|
1061
|
-
delete response.Message;
|
|
1062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1063
825
|
};
|
|
1064
826
|
const deserializeAws_json1_1GetActionTypeCommand = async (output, context) => {
|
|
1065
827
|
if (output.statusCode >= 300) {
|
|
@@ -1086,35 +848,19 @@ const deserializeAws_json1_1GetActionTypeCommandError = async (output, context)
|
|
|
1086
848
|
switch (errorCode) {
|
|
1087
849
|
case "ActionTypeNotFoundException":
|
|
1088
850
|
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1089
|
-
|
|
1090
|
-
...(await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1091
|
-
name: errorCode,
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
};
|
|
1094
|
-
break;
|
|
851
|
+
throw await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1095
852
|
case "ValidationException":
|
|
1096
853
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1097
|
-
|
|
1098
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1099
|
-
name: errorCode,
|
|
1100
|
-
$metadata: deserializeMetadata(output),
|
|
1101
|
-
};
|
|
1102
|
-
break;
|
|
854
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1103
855
|
default:
|
|
1104
856
|
const parsedBody = parsedOutput.body;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
...parsedBody,
|
|
1108
|
-
name: `${errorCode}`,
|
|
1109
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
857
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
858
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1110
859
|
$fault: "client",
|
|
1111
860
|
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
861
|
+
});
|
|
862
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1113
863
|
}
|
|
1114
|
-
const message = response.message || response.Message || errorCode;
|
|
1115
|
-
response.message = message;
|
|
1116
|
-
delete response.Message;
|
|
1117
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1118
864
|
};
|
|
1119
865
|
const deserializeAws_json1_1GetJobDetailsCommand = async (output, context) => {
|
|
1120
866
|
if (output.statusCode >= 300) {
|
|
@@ -1141,35 +887,19 @@ const deserializeAws_json1_1GetJobDetailsCommandError = async (output, context)
|
|
|
1141
887
|
switch (errorCode) {
|
|
1142
888
|
case "JobNotFoundException":
|
|
1143
889
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1144
|
-
|
|
1145
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
1146
|
-
name: errorCode,
|
|
1147
|
-
$metadata: deserializeMetadata(output),
|
|
1148
|
-
};
|
|
1149
|
-
break;
|
|
890
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
1150
891
|
case "ValidationException":
|
|
1151
892
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1152
|
-
|
|
1153
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1154
|
-
name: errorCode,
|
|
1155
|
-
$metadata: deserializeMetadata(output),
|
|
1156
|
-
};
|
|
1157
|
-
break;
|
|
893
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1158
894
|
default:
|
|
1159
895
|
const parsedBody = parsedOutput.body;
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
...parsedBody,
|
|
1163
|
-
name: `${errorCode}`,
|
|
1164
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
896
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
897
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1165
898
|
$fault: "client",
|
|
1166
899
|
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
900
|
+
});
|
|
901
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1168
902
|
}
|
|
1169
|
-
const message = response.message || response.Message || errorCode;
|
|
1170
|
-
response.message = message;
|
|
1171
|
-
delete response.Message;
|
|
1172
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1173
903
|
};
|
|
1174
904
|
const deserializeAws_json1_1GetPipelineCommand = async (output, context) => {
|
|
1175
905
|
if (output.statusCode >= 300) {
|
|
@@ -1196,43 +926,22 @@ const deserializeAws_json1_1GetPipelineCommandError = async (output, context) =>
|
|
|
1196
926
|
switch (errorCode) {
|
|
1197
927
|
case "PipelineNotFoundException":
|
|
1198
928
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1199
|
-
|
|
1200
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1201
|
-
name: errorCode,
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
};
|
|
1204
|
-
break;
|
|
929
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1205
930
|
case "PipelineVersionNotFoundException":
|
|
1206
931
|
case "com.amazonaws.codepipeline#PipelineVersionNotFoundException":
|
|
1207
|
-
|
|
1208
|
-
...(await deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse(parsedOutput, context)),
|
|
1209
|
-
name: errorCode,
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
};
|
|
1212
|
-
break;
|
|
932
|
+
throw await deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse(parsedOutput, context);
|
|
1213
933
|
case "ValidationException":
|
|
1214
934
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1215
|
-
|
|
1216
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1217
|
-
name: errorCode,
|
|
1218
|
-
$metadata: deserializeMetadata(output),
|
|
1219
|
-
};
|
|
1220
|
-
break;
|
|
935
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1221
936
|
default:
|
|
1222
937
|
const parsedBody = parsedOutput.body;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
...parsedBody,
|
|
1226
|
-
name: `${errorCode}`,
|
|
1227
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
938
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1228
940
|
$fault: "client",
|
|
1229
941
|
$metadata: deserializeMetadata(output),
|
|
1230
|
-
};
|
|
942
|
+
});
|
|
943
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1231
944
|
}
|
|
1232
|
-
const message = response.message || response.Message || errorCode;
|
|
1233
|
-
response.message = message;
|
|
1234
|
-
delete response.Message;
|
|
1235
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1236
945
|
};
|
|
1237
946
|
const deserializeAws_json1_1GetPipelineExecutionCommand = async (output, context) => {
|
|
1238
947
|
if (output.statusCode >= 300) {
|
|
@@ -1259,43 +968,22 @@ const deserializeAws_json1_1GetPipelineExecutionCommandError = async (output, co
|
|
|
1259
968
|
switch (errorCode) {
|
|
1260
969
|
case "PipelineExecutionNotFoundException":
|
|
1261
970
|
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException":
|
|
1262
|
-
|
|
1263
|
-
...(await deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context)),
|
|
1264
|
-
name: errorCode,
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
};
|
|
1267
|
-
break;
|
|
971
|
+
throw await deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context);
|
|
1268
972
|
case "PipelineNotFoundException":
|
|
1269
973
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1270
|
-
|
|
1271
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1272
|
-
name: errorCode,
|
|
1273
|
-
$metadata: deserializeMetadata(output),
|
|
1274
|
-
};
|
|
1275
|
-
break;
|
|
974
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1276
975
|
case "ValidationException":
|
|
1277
976
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1278
|
-
|
|
1279
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1280
|
-
name: errorCode,
|
|
1281
|
-
$metadata: deserializeMetadata(output),
|
|
1282
|
-
};
|
|
1283
|
-
break;
|
|
977
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1284
978
|
default:
|
|
1285
979
|
const parsedBody = parsedOutput.body;
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
...parsedBody,
|
|
1289
|
-
name: `${errorCode}`,
|
|
1290
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
980
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
981
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1291
982
|
$fault: "client",
|
|
1292
983
|
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
984
|
+
});
|
|
985
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1294
986
|
}
|
|
1295
|
-
const message = response.message || response.Message || errorCode;
|
|
1296
|
-
response.message = message;
|
|
1297
|
-
delete response.Message;
|
|
1298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1299
987
|
};
|
|
1300
988
|
const deserializeAws_json1_1GetPipelineStateCommand = async (output, context) => {
|
|
1301
989
|
if (output.statusCode >= 300) {
|
|
@@ -1322,35 +1010,19 @@ const deserializeAws_json1_1GetPipelineStateCommandError = async (output, contex
|
|
|
1322
1010
|
switch (errorCode) {
|
|
1323
1011
|
case "PipelineNotFoundException":
|
|
1324
1012
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1325
|
-
|
|
1326
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1327
|
-
name: errorCode,
|
|
1328
|
-
$metadata: deserializeMetadata(output),
|
|
1329
|
-
};
|
|
1330
|
-
break;
|
|
1013
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1331
1014
|
case "ValidationException":
|
|
1332
1015
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1333
|
-
|
|
1334
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1335
|
-
name: errorCode,
|
|
1336
|
-
$metadata: deserializeMetadata(output),
|
|
1337
|
-
};
|
|
1338
|
-
break;
|
|
1016
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1339
1017
|
default:
|
|
1340
1018
|
const parsedBody = parsedOutput.body;
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...parsedBody,
|
|
1344
|
-
name: `${errorCode}`,
|
|
1345
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1019
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1346
1021
|
$fault: "client",
|
|
1347
1022
|
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1023
|
+
});
|
|
1024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1349
1025
|
}
|
|
1350
|
-
const message = response.message || response.Message || errorCode;
|
|
1351
|
-
response.message = message;
|
|
1352
|
-
delete response.Message;
|
|
1353
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1354
1026
|
};
|
|
1355
1027
|
const deserializeAws_json1_1GetThirdPartyJobDetailsCommand = async (output, context) => {
|
|
1356
1028
|
if (output.statusCode >= 300) {
|
|
@@ -1377,51 +1049,25 @@ const deserializeAws_json1_1GetThirdPartyJobDetailsCommandError = async (output,
|
|
|
1377
1049
|
switch (errorCode) {
|
|
1378
1050
|
case "InvalidClientTokenException":
|
|
1379
1051
|
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
1380
|
-
|
|
1381
|
-
...(await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)),
|
|
1382
|
-
name: errorCode,
|
|
1383
|
-
$metadata: deserializeMetadata(output),
|
|
1384
|
-
};
|
|
1385
|
-
break;
|
|
1052
|
+
throw await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context);
|
|
1386
1053
|
case "InvalidJobException":
|
|
1387
1054
|
case "com.amazonaws.codepipeline#InvalidJobException":
|
|
1388
|
-
|
|
1389
|
-
...(await deserializeAws_json1_1InvalidJobExceptionResponse(parsedOutput, context)),
|
|
1390
|
-
name: errorCode,
|
|
1391
|
-
$metadata: deserializeMetadata(output),
|
|
1392
|
-
};
|
|
1393
|
-
break;
|
|
1055
|
+
throw await deserializeAws_json1_1InvalidJobExceptionResponse(parsedOutput, context);
|
|
1394
1056
|
case "JobNotFoundException":
|
|
1395
1057
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
1396
|
-
|
|
1397
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
1398
|
-
name: errorCode,
|
|
1399
|
-
$metadata: deserializeMetadata(output),
|
|
1400
|
-
};
|
|
1401
|
-
break;
|
|
1058
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
1402
1059
|
case "ValidationException":
|
|
1403
1060
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1404
|
-
|
|
1405
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1406
|
-
name: errorCode,
|
|
1407
|
-
$metadata: deserializeMetadata(output),
|
|
1408
|
-
};
|
|
1409
|
-
break;
|
|
1061
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1410
1062
|
default:
|
|
1411
1063
|
const parsedBody = parsedOutput.body;
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
...parsedBody,
|
|
1415
|
-
name: `${errorCode}`,
|
|
1416
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1064
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1065
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1417
1066
|
$fault: "client",
|
|
1418
1067
|
$metadata: deserializeMetadata(output),
|
|
1419
|
-
};
|
|
1068
|
+
});
|
|
1069
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1420
1070
|
}
|
|
1421
|
-
const message = response.message || response.Message || errorCode;
|
|
1422
|
-
response.message = message;
|
|
1423
|
-
delete response.Message;
|
|
1424
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1425
1071
|
};
|
|
1426
1072
|
const deserializeAws_json1_1ListActionExecutionsCommand = async (output, context) => {
|
|
1427
1073
|
if (output.statusCode >= 300) {
|
|
@@ -1448,51 +1094,25 @@ const deserializeAws_json1_1ListActionExecutionsCommandError = async (output, co
|
|
|
1448
1094
|
switch (errorCode) {
|
|
1449
1095
|
case "InvalidNextTokenException":
|
|
1450
1096
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1451
|
-
|
|
1452
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1453
|
-
name: errorCode,
|
|
1454
|
-
$metadata: deserializeMetadata(output),
|
|
1455
|
-
};
|
|
1456
|
-
break;
|
|
1097
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1457
1098
|
case "PipelineExecutionNotFoundException":
|
|
1458
1099
|
case "com.amazonaws.codepipeline#PipelineExecutionNotFoundException":
|
|
1459
|
-
|
|
1460
|
-
...(await deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context)),
|
|
1461
|
-
name: errorCode,
|
|
1462
|
-
$metadata: deserializeMetadata(output),
|
|
1463
|
-
};
|
|
1464
|
-
break;
|
|
1100
|
+
throw await deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse(parsedOutput, context);
|
|
1465
1101
|
case "PipelineNotFoundException":
|
|
1466
1102
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1467
|
-
|
|
1468
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1469
|
-
name: errorCode,
|
|
1470
|
-
$metadata: deserializeMetadata(output),
|
|
1471
|
-
};
|
|
1472
|
-
break;
|
|
1103
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1473
1104
|
case "ValidationException":
|
|
1474
1105
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1475
|
-
|
|
1476
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1477
|
-
name: errorCode,
|
|
1478
|
-
$metadata: deserializeMetadata(output),
|
|
1479
|
-
};
|
|
1480
|
-
break;
|
|
1106
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1481
1107
|
default:
|
|
1482
1108
|
const parsedBody = parsedOutput.body;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
...parsedBody,
|
|
1486
|
-
name: `${errorCode}`,
|
|
1487
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1109
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1110
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1488
1111
|
$fault: "client",
|
|
1489
1112
|
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1113
|
+
});
|
|
1114
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1491
1115
|
}
|
|
1492
|
-
const message = response.message || response.Message || errorCode;
|
|
1493
|
-
response.message = message;
|
|
1494
|
-
delete response.Message;
|
|
1495
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1496
1116
|
};
|
|
1497
1117
|
const deserializeAws_json1_1ListActionTypesCommand = async (output, context) => {
|
|
1498
1118
|
if (output.statusCode >= 300) {
|
|
@@ -1519,35 +1139,19 @@ const deserializeAws_json1_1ListActionTypesCommandError = async (output, context
|
|
|
1519
1139
|
switch (errorCode) {
|
|
1520
1140
|
case "InvalidNextTokenException":
|
|
1521
1141
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1522
|
-
|
|
1523
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1524
|
-
name: errorCode,
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
};
|
|
1527
|
-
break;
|
|
1142
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1528
1143
|
case "ValidationException":
|
|
1529
1144
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1530
|
-
|
|
1531
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1532
|
-
name: errorCode,
|
|
1533
|
-
$metadata: deserializeMetadata(output),
|
|
1534
|
-
};
|
|
1535
|
-
break;
|
|
1145
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1536
1146
|
default:
|
|
1537
1147
|
const parsedBody = parsedOutput.body;
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
...parsedBody,
|
|
1541
|
-
name: `${errorCode}`,
|
|
1542
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1148
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1543
1150
|
$fault: "client",
|
|
1544
1151
|
$metadata: deserializeMetadata(output),
|
|
1545
|
-
};
|
|
1152
|
+
});
|
|
1153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1546
1154
|
}
|
|
1547
|
-
const message = response.message || response.Message || errorCode;
|
|
1548
|
-
response.message = message;
|
|
1549
|
-
delete response.Message;
|
|
1550
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1551
1155
|
};
|
|
1552
1156
|
const deserializeAws_json1_1ListPipelineExecutionsCommand = async (output, context) => {
|
|
1553
1157
|
if (output.statusCode >= 300) {
|
|
@@ -1574,43 +1178,22 @@ const deserializeAws_json1_1ListPipelineExecutionsCommandError = async (output,
|
|
|
1574
1178
|
switch (errorCode) {
|
|
1575
1179
|
case "InvalidNextTokenException":
|
|
1576
1180
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1577
|
-
|
|
1578
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1579
|
-
name: errorCode,
|
|
1580
|
-
$metadata: deserializeMetadata(output),
|
|
1581
|
-
};
|
|
1582
|
-
break;
|
|
1181
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1583
1182
|
case "PipelineNotFoundException":
|
|
1584
1183
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1585
|
-
|
|
1586
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1587
|
-
name: errorCode,
|
|
1588
|
-
$metadata: deserializeMetadata(output),
|
|
1589
|
-
};
|
|
1590
|
-
break;
|
|
1184
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1591
1185
|
case "ValidationException":
|
|
1592
1186
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1593
|
-
|
|
1594
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1595
|
-
name: errorCode,
|
|
1596
|
-
$metadata: deserializeMetadata(output),
|
|
1597
|
-
};
|
|
1598
|
-
break;
|
|
1187
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1599
1188
|
default:
|
|
1600
1189
|
const parsedBody = parsedOutput.body;
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
...parsedBody,
|
|
1604
|
-
name: `${errorCode}`,
|
|
1605
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1190
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1191
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1606
1192
|
$fault: "client",
|
|
1607
1193
|
$metadata: deserializeMetadata(output),
|
|
1608
|
-
};
|
|
1194
|
+
});
|
|
1195
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1609
1196
|
}
|
|
1610
|
-
const message = response.message || response.Message || errorCode;
|
|
1611
|
-
response.message = message;
|
|
1612
|
-
delete response.Message;
|
|
1613
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1614
1197
|
};
|
|
1615
1198
|
const deserializeAws_json1_1ListPipelinesCommand = async (output, context) => {
|
|
1616
1199
|
if (output.statusCode >= 300) {
|
|
@@ -1637,35 +1220,19 @@ const deserializeAws_json1_1ListPipelinesCommandError = async (output, context)
|
|
|
1637
1220
|
switch (errorCode) {
|
|
1638
1221
|
case "InvalidNextTokenException":
|
|
1639
1222
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1640
|
-
|
|
1641
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1642
|
-
name: errorCode,
|
|
1643
|
-
$metadata: deserializeMetadata(output),
|
|
1644
|
-
};
|
|
1645
|
-
break;
|
|
1223
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1646
1224
|
case "ValidationException":
|
|
1647
1225
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1648
|
-
|
|
1649
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1650
|
-
name: errorCode,
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
};
|
|
1653
|
-
break;
|
|
1226
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1654
1227
|
default:
|
|
1655
1228
|
const parsedBody = parsedOutput.body;
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
...parsedBody,
|
|
1659
|
-
name: `${errorCode}`,
|
|
1660
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1229
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1230
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1661
1231
|
$fault: "client",
|
|
1662
1232
|
$metadata: deserializeMetadata(output),
|
|
1663
|
-
};
|
|
1233
|
+
});
|
|
1234
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1664
1235
|
}
|
|
1665
|
-
const message = response.message || response.Message || errorCode;
|
|
1666
|
-
response.message = message;
|
|
1667
|
-
delete response.Message;
|
|
1668
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1669
1236
|
};
|
|
1670
1237
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1671
1238
|
if (output.statusCode >= 300) {
|
|
@@ -1692,51 +1259,25 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1692
1259
|
switch (errorCode) {
|
|
1693
1260
|
case "InvalidArnException":
|
|
1694
1261
|
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
1695
|
-
|
|
1696
|
-
...(await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)),
|
|
1697
|
-
name: errorCode,
|
|
1698
|
-
$metadata: deserializeMetadata(output),
|
|
1699
|
-
};
|
|
1700
|
-
break;
|
|
1262
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
1701
1263
|
case "InvalidNextTokenException":
|
|
1702
1264
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1703
|
-
|
|
1704
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1705
|
-
name: errorCode,
|
|
1706
|
-
$metadata: deserializeMetadata(output),
|
|
1707
|
-
};
|
|
1708
|
-
break;
|
|
1265
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1709
1266
|
case "ResourceNotFoundException":
|
|
1710
1267
|
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
1711
|
-
|
|
1712
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1713
|
-
name: errorCode,
|
|
1714
|
-
$metadata: deserializeMetadata(output),
|
|
1715
|
-
};
|
|
1716
|
-
break;
|
|
1268
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1717
1269
|
case "ValidationException":
|
|
1718
1270
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1719
|
-
|
|
1720
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1721
|
-
name: errorCode,
|
|
1722
|
-
$metadata: deserializeMetadata(output),
|
|
1723
|
-
};
|
|
1724
|
-
break;
|
|
1271
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1725
1272
|
default:
|
|
1726
1273
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
...parsedBody,
|
|
1730
|
-
name: `${errorCode}`,
|
|
1731
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1274
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1275
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1732
1276
|
$fault: "client",
|
|
1733
1277
|
$metadata: deserializeMetadata(output),
|
|
1734
|
-
};
|
|
1278
|
+
});
|
|
1279
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1735
1280
|
}
|
|
1736
|
-
const message = response.message || response.Message || errorCode;
|
|
1737
|
-
response.message = message;
|
|
1738
|
-
delete response.Message;
|
|
1739
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1740
1281
|
};
|
|
1741
1282
|
const deserializeAws_json1_1ListWebhooksCommand = async (output, context) => {
|
|
1742
1283
|
if (output.statusCode >= 300) {
|
|
@@ -1763,35 +1304,19 @@ const deserializeAws_json1_1ListWebhooksCommandError = async (output, context) =
|
|
|
1763
1304
|
switch (errorCode) {
|
|
1764
1305
|
case "InvalidNextTokenException":
|
|
1765
1306
|
case "com.amazonaws.codepipeline#InvalidNextTokenException":
|
|
1766
|
-
|
|
1767
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1768
|
-
name: errorCode,
|
|
1769
|
-
$metadata: deserializeMetadata(output),
|
|
1770
|
-
};
|
|
1771
|
-
break;
|
|
1307
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1772
1308
|
case "ValidationException":
|
|
1773
1309
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1774
|
-
|
|
1775
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1776
|
-
name: errorCode,
|
|
1777
|
-
$metadata: deserializeMetadata(output),
|
|
1778
|
-
};
|
|
1779
|
-
break;
|
|
1310
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1780
1311
|
default:
|
|
1781
1312
|
const parsedBody = parsedOutput.body;
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
...parsedBody,
|
|
1785
|
-
name: `${errorCode}`,
|
|
1786
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1313
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1314
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1787
1315
|
$fault: "client",
|
|
1788
1316
|
$metadata: deserializeMetadata(output),
|
|
1789
|
-
};
|
|
1317
|
+
});
|
|
1318
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1790
1319
|
}
|
|
1791
|
-
const message = response.message || response.Message || errorCode;
|
|
1792
|
-
response.message = message;
|
|
1793
|
-
delete response.Message;
|
|
1794
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1795
1320
|
};
|
|
1796
1321
|
const deserializeAws_json1_1PollForJobsCommand = async (output, context) => {
|
|
1797
1322
|
if (output.statusCode >= 300) {
|
|
@@ -1818,35 +1343,19 @@ const deserializeAws_json1_1PollForJobsCommandError = async (output, context) =>
|
|
|
1818
1343
|
switch (errorCode) {
|
|
1819
1344
|
case "ActionTypeNotFoundException":
|
|
1820
1345
|
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1821
|
-
|
|
1822
|
-
...(await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1823
|
-
name: errorCode,
|
|
1824
|
-
$metadata: deserializeMetadata(output),
|
|
1825
|
-
};
|
|
1826
|
-
break;
|
|
1346
|
+
throw await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1827
1347
|
case "ValidationException":
|
|
1828
1348
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1829
|
-
|
|
1830
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1831
|
-
name: errorCode,
|
|
1832
|
-
$metadata: deserializeMetadata(output),
|
|
1833
|
-
};
|
|
1834
|
-
break;
|
|
1349
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1835
1350
|
default:
|
|
1836
1351
|
const parsedBody = parsedOutput.body;
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
...parsedBody,
|
|
1840
|
-
name: `${errorCode}`,
|
|
1841
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1352
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1353
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1842
1354
|
$fault: "client",
|
|
1843
1355
|
$metadata: deserializeMetadata(output),
|
|
1844
|
-
};
|
|
1356
|
+
});
|
|
1357
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1845
1358
|
}
|
|
1846
|
-
const message = response.message || response.Message || errorCode;
|
|
1847
|
-
response.message = message;
|
|
1848
|
-
delete response.Message;
|
|
1849
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1850
1359
|
};
|
|
1851
1360
|
const deserializeAws_json1_1PollForThirdPartyJobsCommand = async (output, context) => {
|
|
1852
1361
|
if (output.statusCode >= 300) {
|
|
@@ -1873,35 +1382,19 @@ const deserializeAws_json1_1PollForThirdPartyJobsCommandError = async (output, c
|
|
|
1873
1382
|
switch (errorCode) {
|
|
1874
1383
|
case "ActionTypeNotFoundException":
|
|
1875
1384
|
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
1876
|
-
|
|
1877
|
-
...(await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
1878
|
-
name: errorCode,
|
|
1879
|
-
$metadata: deserializeMetadata(output),
|
|
1880
|
-
};
|
|
1881
|
-
break;
|
|
1385
|
+
throw await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
1882
1386
|
case "ValidationException":
|
|
1883
1387
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1884
|
-
|
|
1885
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1886
|
-
name: errorCode,
|
|
1887
|
-
$metadata: deserializeMetadata(output),
|
|
1888
|
-
};
|
|
1889
|
-
break;
|
|
1388
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1890
1389
|
default:
|
|
1891
1390
|
const parsedBody = parsedOutput.body;
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
...parsedBody,
|
|
1895
|
-
name: `${errorCode}`,
|
|
1896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1391
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1392
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1897
1393
|
$fault: "client",
|
|
1898
1394
|
$metadata: deserializeMetadata(output),
|
|
1899
|
-
};
|
|
1395
|
+
});
|
|
1396
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1900
1397
|
}
|
|
1901
|
-
const message = response.message || response.Message || errorCode;
|
|
1902
|
-
response.message = message;
|
|
1903
|
-
delete response.Message;
|
|
1904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1905
1398
|
};
|
|
1906
1399
|
const deserializeAws_json1_1PutActionRevisionCommand = async (output, context) => {
|
|
1907
1400
|
if (output.statusCode >= 300) {
|
|
@@ -1928,51 +1421,25 @@ const deserializeAws_json1_1PutActionRevisionCommandError = async (output, conte
|
|
|
1928
1421
|
switch (errorCode) {
|
|
1929
1422
|
case "ActionNotFoundException":
|
|
1930
1423
|
case "com.amazonaws.codepipeline#ActionNotFoundException":
|
|
1931
|
-
|
|
1932
|
-
...(await deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context)),
|
|
1933
|
-
name: errorCode,
|
|
1934
|
-
$metadata: deserializeMetadata(output),
|
|
1935
|
-
};
|
|
1936
|
-
break;
|
|
1424
|
+
throw await deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context);
|
|
1937
1425
|
case "PipelineNotFoundException":
|
|
1938
1426
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
1939
|
-
|
|
1940
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
1941
|
-
name: errorCode,
|
|
1942
|
-
$metadata: deserializeMetadata(output),
|
|
1943
|
-
};
|
|
1944
|
-
break;
|
|
1427
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
1945
1428
|
case "StageNotFoundException":
|
|
1946
1429
|
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
1947
|
-
|
|
1948
|
-
...(await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1949
|
-
name: errorCode,
|
|
1950
|
-
$metadata: deserializeMetadata(output),
|
|
1951
|
-
};
|
|
1952
|
-
break;
|
|
1430
|
+
throw await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context);
|
|
1953
1431
|
case "ValidationException":
|
|
1954
1432
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
1955
|
-
|
|
1956
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1957
|
-
name: errorCode,
|
|
1958
|
-
$metadata: deserializeMetadata(output),
|
|
1959
|
-
};
|
|
1960
|
-
break;
|
|
1433
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1961
1434
|
default:
|
|
1962
1435
|
const parsedBody = parsedOutput.body;
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
...parsedBody,
|
|
1966
|
-
name: `${errorCode}`,
|
|
1967
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1436
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1437
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1968
1438
|
$fault: "client",
|
|
1969
1439
|
$metadata: deserializeMetadata(output),
|
|
1970
|
-
};
|
|
1440
|
+
});
|
|
1441
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1971
1442
|
}
|
|
1972
|
-
const message = response.message || response.Message || errorCode;
|
|
1973
|
-
response.message = message;
|
|
1974
|
-
delete response.Message;
|
|
1975
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1976
1443
|
};
|
|
1977
1444
|
const deserializeAws_json1_1PutApprovalResultCommand = async (output, context) => {
|
|
1978
1445
|
if (output.statusCode >= 300) {
|
|
@@ -1999,67 +1466,31 @@ const deserializeAws_json1_1PutApprovalResultCommandError = async (output, conte
|
|
|
1999
1466
|
switch (errorCode) {
|
|
2000
1467
|
case "ActionNotFoundException":
|
|
2001
1468
|
case "com.amazonaws.codepipeline#ActionNotFoundException":
|
|
2002
|
-
|
|
2003
|
-
...(await deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context)),
|
|
2004
|
-
name: errorCode,
|
|
2005
|
-
$metadata: deserializeMetadata(output),
|
|
2006
|
-
};
|
|
2007
|
-
break;
|
|
1469
|
+
throw await deserializeAws_json1_1ActionNotFoundExceptionResponse(parsedOutput, context);
|
|
2008
1470
|
case "ApprovalAlreadyCompletedException":
|
|
2009
1471
|
case "com.amazonaws.codepipeline#ApprovalAlreadyCompletedException":
|
|
2010
|
-
|
|
2011
|
-
...(await deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse(parsedOutput, context)),
|
|
2012
|
-
name: errorCode,
|
|
2013
|
-
$metadata: deserializeMetadata(output),
|
|
2014
|
-
};
|
|
2015
|
-
break;
|
|
1472
|
+
throw await deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse(parsedOutput, context);
|
|
2016
1473
|
case "InvalidApprovalTokenException":
|
|
2017
1474
|
case "com.amazonaws.codepipeline#InvalidApprovalTokenException":
|
|
2018
|
-
|
|
2019
|
-
...(await deserializeAws_json1_1InvalidApprovalTokenExceptionResponse(parsedOutput, context)),
|
|
2020
|
-
name: errorCode,
|
|
2021
|
-
$metadata: deserializeMetadata(output),
|
|
2022
|
-
};
|
|
2023
|
-
break;
|
|
1475
|
+
throw await deserializeAws_json1_1InvalidApprovalTokenExceptionResponse(parsedOutput, context);
|
|
2024
1476
|
case "PipelineNotFoundException":
|
|
2025
1477
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
2026
|
-
|
|
2027
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
2028
|
-
name: errorCode,
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
};
|
|
2031
|
-
break;
|
|
1478
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
2032
1479
|
case "StageNotFoundException":
|
|
2033
1480
|
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
2034
|
-
|
|
2035
|
-
...(await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)),
|
|
2036
|
-
name: errorCode,
|
|
2037
|
-
$metadata: deserializeMetadata(output),
|
|
2038
|
-
};
|
|
2039
|
-
break;
|
|
1481
|
+
throw await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context);
|
|
2040
1482
|
case "ValidationException":
|
|
2041
1483
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2042
|
-
|
|
2043
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2044
|
-
name: errorCode,
|
|
2045
|
-
$metadata: deserializeMetadata(output),
|
|
2046
|
-
};
|
|
2047
|
-
break;
|
|
1484
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2048
1485
|
default:
|
|
2049
1486
|
const parsedBody = parsedOutput.body;
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
...parsedBody,
|
|
2053
|
-
name: `${errorCode}`,
|
|
2054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1487
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1488
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2055
1489
|
$fault: "client",
|
|
2056
1490
|
$metadata: deserializeMetadata(output),
|
|
2057
|
-
};
|
|
1491
|
+
});
|
|
1492
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2058
1493
|
}
|
|
2059
|
-
const message = response.message || response.Message || errorCode;
|
|
2060
|
-
response.message = message;
|
|
2061
|
-
delete response.Message;
|
|
2062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2063
1494
|
};
|
|
2064
1495
|
const deserializeAws_json1_1PutJobFailureResultCommand = async (output, context) => {
|
|
2065
1496
|
if (output.statusCode >= 300) {
|
|
@@ -2083,43 +1514,22 @@ const deserializeAws_json1_1PutJobFailureResultCommandError = async (output, con
|
|
|
2083
1514
|
switch (errorCode) {
|
|
2084
1515
|
case "InvalidJobStateException":
|
|
2085
1516
|
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
2086
|
-
|
|
2087
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
2088
|
-
name: errorCode,
|
|
2089
|
-
$metadata: deserializeMetadata(output),
|
|
2090
|
-
};
|
|
2091
|
-
break;
|
|
1517
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
2092
1518
|
case "JobNotFoundException":
|
|
2093
1519
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
2094
|
-
|
|
2095
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
2096
|
-
name: errorCode,
|
|
2097
|
-
$metadata: deserializeMetadata(output),
|
|
2098
|
-
};
|
|
2099
|
-
break;
|
|
1520
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
2100
1521
|
case "ValidationException":
|
|
2101
1522
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2102
|
-
|
|
2103
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2104
|
-
name: errorCode,
|
|
2105
|
-
$metadata: deserializeMetadata(output),
|
|
2106
|
-
};
|
|
2107
|
-
break;
|
|
1523
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2108
1524
|
default:
|
|
2109
1525
|
const parsedBody = parsedOutput.body;
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
...parsedBody,
|
|
2113
|
-
name: `${errorCode}`,
|
|
2114
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1526
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1527
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2115
1528
|
$fault: "client",
|
|
2116
1529
|
$metadata: deserializeMetadata(output),
|
|
2117
|
-
};
|
|
1530
|
+
});
|
|
1531
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2118
1532
|
}
|
|
2119
|
-
const message = response.message || response.Message || errorCode;
|
|
2120
|
-
response.message = message;
|
|
2121
|
-
delete response.Message;
|
|
2122
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2123
1533
|
};
|
|
2124
1534
|
const deserializeAws_json1_1PutJobSuccessResultCommand = async (output, context) => {
|
|
2125
1535
|
if (output.statusCode >= 300) {
|
|
@@ -2143,51 +1553,25 @@ const deserializeAws_json1_1PutJobSuccessResultCommandError = async (output, con
|
|
|
2143
1553
|
switch (errorCode) {
|
|
2144
1554
|
case "InvalidJobStateException":
|
|
2145
1555
|
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
2146
|
-
|
|
2147
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
2148
|
-
name: errorCode,
|
|
2149
|
-
$metadata: deserializeMetadata(output),
|
|
2150
|
-
};
|
|
2151
|
-
break;
|
|
1556
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
2152
1557
|
case "JobNotFoundException":
|
|
2153
1558
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
2154
|
-
|
|
2155
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
2156
|
-
name: errorCode,
|
|
2157
|
-
$metadata: deserializeMetadata(output),
|
|
2158
|
-
};
|
|
2159
|
-
break;
|
|
1559
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
2160
1560
|
case "OutputVariablesSizeExceededException":
|
|
2161
1561
|
case "com.amazonaws.codepipeline#OutputVariablesSizeExceededException":
|
|
2162
|
-
|
|
2163
|
-
...(await deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse(parsedOutput, context)),
|
|
2164
|
-
name: errorCode,
|
|
2165
|
-
$metadata: deserializeMetadata(output),
|
|
2166
|
-
};
|
|
2167
|
-
break;
|
|
1562
|
+
throw await deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse(parsedOutput, context);
|
|
2168
1563
|
case "ValidationException":
|
|
2169
1564
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2170
|
-
|
|
2171
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2172
|
-
name: errorCode,
|
|
2173
|
-
$metadata: deserializeMetadata(output),
|
|
2174
|
-
};
|
|
2175
|
-
break;
|
|
1565
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2176
1566
|
default:
|
|
2177
1567
|
const parsedBody = parsedOutput.body;
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
...parsedBody,
|
|
2181
|
-
name: `${errorCode}`,
|
|
2182
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1568
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1569
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2183
1570
|
$fault: "client",
|
|
2184
1571
|
$metadata: deserializeMetadata(output),
|
|
2185
|
-
};
|
|
1572
|
+
});
|
|
1573
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2186
1574
|
}
|
|
2187
|
-
const message = response.message || response.Message || errorCode;
|
|
2188
|
-
response.message = message;
|
|
2189
|
-
delete response.Message;
|
|
2190
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2191
1575
|
};
|
|
2192
1576
|
const deserializeAws_json1_1PutThirdPartyJobFailureResultCommand = async (output, context) => {
|
|
2193
1577
|
if (output.statusCode >= 300) {
|
|
@@ -2211,51 +1595,25 @@ const deserializeAws_json1_1PutThirdPartyJobFailureResultCommandError = async (o
|
|
|
2211
1595
|
switch (errorCode) {
|
|
2212
1596
|
case "InvalidClientTokenException":
|
|
2213
1597
|
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
2214
|
-
|
|
2215
|
-
...(await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)),
|
|
2216
|
-
name: errorCode,
|
|
2217
|
-
$metadata: deserializeMetadata(output),
|
|
2218
|
-
};
|
|
2219
|
-
break;
|
|
1598
|
+
throw await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context);
|
|
2220
1599
|
case "InvalidJobStateException":
|
|
2221
1600
|
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
2222
|
-
|
|
2223
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
2224
|
-
name: errorCode,
|
|
2225
|
-
$metadata: deserializeMetadata(output),
|
|
2226
|
-
};
|
|
2227
|
-
break;
|
|
1601
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
2228
1602
|
case "JobNotFoundException":
|
|
2229
1603
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
2230
|
-
|
|
2231
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
2232
|
-
name: errorCode,
|
|
2233
|
-
$metadata: deserializeMetadata(output),
|
|
2234
|
-
};
|
|
2235
|
-
break;
|
|
1604
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
2236
1605
|
case "ValidationException":
|
|
2237
1606
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2238
|
-
|
|
2239
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2240
|
-
name: errorCode,
|
|
2241
|
-
$metadata: deserializeMetadata(output),
|
|
2242
|
-
};
|
|
2243
|
-
break;
|
|
1607
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2244
1608
|
default:
|
|
2245
1609
|
const parsedBody = parsedOutput.body;
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
...parsedBody,
|
|
2249
|
-
name: `${errorCode}`,
|
|
2250
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1610
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1611
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2251
1612
|
$fault: "client",
|
|
2252
1613
|
$metadata: deserializeMetadata(output),
|
|
2253
|
-
};
|
|
1614
|
+
});
|
|
1615
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2254
1616
|
}
|
|
2255
|
-
const message = response.message || response.Message || errorCode;
|
|
2256
|
-
response.message = message;
|
|
2257
|
-
delete response.Message;
|
|
2258
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2259
1617
|
};
|
|
2260
1618
|
const deserializeAws_json1_1PutThirdPartyJobSuccessResultCommand = async (output, context) => {
|
|
2261
1619
|
if (output.statusCode >= 300) {
|
|
@@ -2279,51 +1637,25 @@ const deserializeAws_json1_1PutThirdPartyJobSuccessResultCommandError = async (o
|
|
|
2279
1637
|
switch (errorCode) {
|
|
2280
1638
|
case "InvalidClientTokenException":
|
|
2281
1639
|
case "com.amazonaws.codepipeline#InvalidClientTokenException":
|
|
2282
|
-
|
|
2283
|
-
...(await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context)),
|
|
2284
|
-
name: errorCode,
|
|
2285
|
-
$metadata: deserializeMetadata(output),
|
|
2286
|
-
};
|
|
2287
|
-
break;
|
|
1640
|
+
throw await deserializeAws_json1_1InvalidClientTokenExceptionResponse(parsedOutput, context);
|
|
2288
1641
|
case "InvalidJobStateException":
|
|
2289
1642
|
case "com.amazonaws.codepipeline#InvalidJobStateException":
|
|
2290
|
-
|
|
2291
|
-
...(await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context)),
|
|
2292
|
-
name: errorCode,
|
|
2293
|
-
$metadata: deserializeMetadata(output),
|
|
2294
|
-
};
|
|
2295
|
-
break;
|
|
1643
|
+
throw await deserializeAws_json1_1InvalidJobStateExceptionResponse(parsedOutput, context);
|
|
2296
1644
|
case "JobNotFoundException":
|
|
2297
1645
|
case "com.amazonaws.codepipeline#JobNotFoundException":
|
|
2298
|
-
|
|
2299
|
-
...(await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context)),
|
|
2300
|
-
name: errorCode,
|
|
2301
|
-
$metadata: deserializeMetadata(output),
|
|
2302
|
-
};
|
|
2303
|
-
break;
|
|
1646
|
+
throw await deserializeAws_json1_1JobNotFoundExceptionResponse(parsedOutput, context);
|
|
2304
1647
|
case "ValidationException":
|
|
2305
1648
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2306
|
-
|
|
2307
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2308
|
-
name: errorCode,
|
|
2309
|
-
$metadata: deserializeMetadata(output),
|
|
2310
|
-
};
|
|
2311
|
-
break;
|
|
1649
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2312
1650
|
default:
|
|
2313
1651
|
const parsedBody = parsedOutput.body;
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
...parsedBody,
|
|
2317
|
-
name: `${errorCode}`,
|
|
2318
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1652
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1653
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2319
1654
|
$fault: "client",
|
|
2320
1655
|
$metadata: deserializeMetadata(output),
|
|
2321
|
-
};
|
|
1656
|
+
});
|
|
1657
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2322
1658
|
}
|
|
2323
|
-
const message = response.message || response.Message || errorCode;
|
|
2324
|
-
response.message = message;
|
|
2325
|
-
delete response.Message;
|
|
2326
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2327
1659
|
};
|
|
2328
1660
|
const deserializeAws_json1_1PutWebhookCommand = async (output, context) => {
|
|
2329
1661
|
if (output.statusCode >= 300) {
|
|
@@ -2350,83 +1682,37 @@ const deserializeAws_json1_1PutWebhookCommandError = async (output, context) =>
|
|
|
2350
1682
|
switch (errorCode) {
|
|
2351
1683
|
case "ConcurrentModificationException":
|
|
2352
1684
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
2353
|
-
|
|
2354
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2355
|
-
name: errorCode,
|
|
2356
|
-
$metadata: deserializeMetadata(output),
|
|
2357
|
-
};
|
|
2358
|
-
break;
|
|
1685
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2359
1686
|
case "InvalidTagsException":
|
|
2360
1687
|
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
2361
|
-
|
|
2362
|
-
...(await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)),
|
|
2363
|
-
name: errorCode,
|
|
2364
|
-
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
2366
|
-
break;
|
|
1688
|
+
throw await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context);
|
|
2367
1689
|
case "InvalidWebhookAuthenticationParametersException":
|
|
2368
1690
|
case "com.amazonaws.codepipeline#InvalidWebhookAuthenticationParametersException":
|
|
2369
|
-
|
|
2370
|
-
...(await deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionResponse(parsedOutput, context)),
|
|
2371
|
-
name: errorCode,
|
|
2372
|
-
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
2374
|
-
break;
|
|
1691
|
+
throw await deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionResponse(parsedOutput, context);
|
|
2375
1692
|
case "InvalidWebhookFilterPatternException":
|
|
2376
1693
|
case "com.amazonaws.codepipeline#InvalidWebhookFilterPatternException":
|
|
2377
|
-
|
|
2378
|
-
...(await deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse(parsedOutput, context)),
|
|
2379
|
-
name: errorCode,
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
};
|
|
2382
|
-
break;
|
|
1694
|
+
throw await deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse(parsedOutput, context);
|
|
2383
1695
|
case "LimitExceededException":
|
|
2384
1696
|
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
2385
|
-
|
|
2386
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2387
|
-
name: errorCode,
|
|
2388
|
-
$metadata: deserializeMetadata(output),
|
|
2389
|
-
};
|
|
2390
|
-
break;
|
|
1697
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2391
1698
|
case "PipelineNotFoundException":
|
|
2392
1699
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
2393
|
-
|
|
2394
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
2395
|
-
name: errorCode,
|
|
2396
|
-
$metadata: deserializeMetadata(output),
|
|
2397
|
-
};
|
|
2398
|
-
break;
|
|
1700
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
2399
1701
|
case "TooManyTagsException":
|
|
2400
1702
|
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
2401
|
-
|
|
2402
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
2403
|
-
name: errorCode,
|
|
2404
|
-
$metadata: deserializeMetadata(output),
|
|
2405
|
-
};
|
|
2406
|
-
break;
|
|
1703
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2407
1704
|
case "ValidationException":
|
|
2408
1705
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2409
|
-
|
|
2410
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2411
|
-
name: errorCode,
|
|
2412
|
-
$metadata: deserializeMetadata(output),
|
|
2413
|
-
};
|
|
2414
|
-
break;
|
|
1706
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2415
1707
|
default:
|
|
2416
1708
|
const parsedBody = parsedOutput.body;
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
...parsedBody,
|
|
2420
|
-
name: `${errorCode}`,
|
|
2421
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1709
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1710
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2422
1711
|
$fault: "client",
|
|
2423
1712
|
$metadata: deserializeMetadata(output),
|
|
2424
|
-
};
|
|
1713
|
+
});
|
|
1714
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2425
1715
|
}
|
|
2426
|
-
const message = response.message || response.Message || errorCode;
|
|
2427
|
-
response.message = message;
|
|
2428
|
-
delete response.Message;
|
|
2429
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2430
1716
|
};
|
|
2431
1717
|
const deserializeAws_json1_1RegisterWebhookWithThirdPartyCommand = async (output, context) => {
|
|
2432
1718
|
if (output.statusCode >= 300) {
|
|
@@ -2453,35 +1739,19 @@ const deserializeAws_json1_1RegisterWebhookWithThirdPartyCommandError = async (o
|
|
|
2453
1739
|
switch (errorCode) {
|
|
2454
1740
|
case "ValidationException":
|
|
2455
1741
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2456
|
-
|
|
2457
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2458
|
-
name: errorCode,
|
|
2459
|
-
$metadata: deserializeMetadata(output),
|
|
2460
|
-
};
|
|
2461
|
-
break;
|
|
1742
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2462
1743
|
case "WebhookNotFoundException":
|
|
2463
1744
|
case "com.amazonaws.codepipeline#WebhookNotFoundException":
|
|
2464
|
-
|
|
2465
|
-
...(await deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context)),
|
|
2466
|
-
name: errorCode,
|
|
2467
|
-
$metadata: deserializeMetadata(output),
|
|
2468
|
-
};
|
|
2469
|
-
break;
|
|
1745
|
+
throw await deserializeAws_json1_1WebhookNotFoundExceptionResponse(parsedOutput, context);
|
|
2470
1746
|
default:
|
|
2471
1747
|
const parsedBody = parsedOutput.body;
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
...parsedBody,
|
|
2475
|
-
name: `${errorCode}`,
|
|
2476
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1748
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1749
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2477
1750
|
$fault: "client",
|
|
2478
1751
|
$metadata: deserializeMetadata(output),
|
|
2479
|
-
};
|
|
1752
|
+
});
|
|
1753
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2480
1754
|
}
|
|
2481
|
-
const message = response.message || response.Message || errorCode;
|
|
2482
|
-
response.message = message;
|
|
2483
|
-
delete response.Message;
|
|
2484
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2485
1755
|
};
|
|
2486
1756
|
const deserializeAws_json1_1RetryStageExecutionCommand = async (output, context) => {
|
|
2487
1757
|
if (output.statusCode >= 300) {
|
|
@@ -2508,67 +1778,31 @@ const deserializeAws_json1_1RetryStageExecutionCommandError = async (output, con
|
|
|
2508
1778
|
switch (errorCode) {
|
|
2509
1779
|
case "ConflictException":
|
|
2510
1780
|
case "com.amazonaws.codepipeline#ConflictException":
|
|
2511
|
-
|
|
2512
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2513
|
-
name: errorCode,
|
|
2514
|
-
$metadata: deserializeMetadata(output),
|
|
2515
|
-
};
|
|
2516
|
-
break;
|
|
1781
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2517
1782
|
case "NotLatestPipelineExecutionException":
|
|
2518
1783
|
case "com.amazonaws.codepipeline#NotLatestPipelineExecutionException":
|
|
2519
|
-
|
|
2520
|
-
...(await deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse(parsedOutput, context)),
|
|
2521
|
-
name: errorCode,
|
|
2522
|
-
$metadata: deserializeMetadata(output),
|
|
2523
|
-
};
|
|
2524
|
-
break;
|
|
1784
|
+
throw await deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse(parsedOutput, context);
|
|
2525
1785
|
case "PipelineNotFoundException":
|
|
2526
1786
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
2527
|
-
|
|
2528
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
2529
|
-
name: errorCode,
|
|
2530
|
-
$metadata: deserializeMetadata(output),
|
|
2531
|
-
};
|
|
2532
|
-
break;
|
|
1787
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
2533
1788
|
case "StageNotFoundException":
|
|
2534
1789
|
case "com.amazonaws.codepipeline#StageNotFoundException":
|
|
2535
|
-
|
|
2536
|
-
...(await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context)),
|
|
2537
|
-
name: errorCode,
|
|
2538
|
-
$metadata: deserializeMetadata(output),
|
|
2539
|
-
};
|
|
2540
|
-
break;
|
|
1790
|
+
throw await deserializeAws_json1_1StageNotFoundExceptionResponse(parsedOutput, context);
|
|
2541
1791
|
case "StageNotRetryableException":
|
|
2542
1792
|
case "com.amazonaws.codepipeline#StageNotRetryableException":
|
|
2543
|
-
|
|
2544
|
-
...(await deserializeAws_json1_1StageNotRetryableExceptionResponse(parsedOutput, context)),
|
|
2545
|
-
name: errorCode,
|
|
2546
|
-
$metadata: deserializeMetadata(output),
|
|
2547
|
-
};
|
|
2548
|
-
break;
|
|
1793
|
+
throw await deserializeAws_json1_1StageNotRetryableExceptionResponse(parsedOutput, context);
|
|
2549
1794
|
case "ValidationException":
|
|
2550
1795
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2551
|
-
|
|
2552
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2553
|
-
name: errorCode,
|
|
2554
|
-
$metadata: deserializeMetadata(output),
|
|
2555
|
-
};
|
|
2556
|
-
break;
|
|
1796
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2557
1797
|
default:
|
|
2558
1798
|
const parsedBody = parsedOutput.body;
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
...parsedBody,
|
|
2562
|
-
name: `${errorCode}`,
|
|
2563
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1799
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1800
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2564
1801
|
$fault: "client",
|
|
2565
1802
|
$metadata: deserializeMetadata(output),
|
|
2566
|
-
};
|
|
1803
|
+
});
|
|
1804
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2567
1805
|
}
|
|
2568
|
-
const message = response.message || response.Message || errorCode;
|
|
2569
|
-
response.message = message;
|
|
2570
|
-
delete response.Message;
|
|
2571
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2572
1806
|
};
|
|
2573
1807
|
const deserializeAws_json1_1StartPipelineExecutionCommand = async (output, context) => {
|
|
2574
1808
|
if (output.statusCode >= 300) {
|
|
@@ -2595,43 +1829,22 @@ const deserializeAws_json1_1StartPipelineExecutionCommandError = async (output,
|
|
|
2595
1829
|
switch (errorCode) {
|
|
2596
1830
|
case "ConflictException":
|
|
2597
1831
|
case "com.amazonaws.codepipeline#ConflictException":
|
|
2598
|
-
|
|
2599
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2600
|
-
name: errorCode,
|
|
2601
|
-
$metadata: deserializeMetadata(output),
|
|
2602
|
-
};
|
|
2603
|
-
break;
|
|
1832
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2604
1833
|
case "PipelineNotFoundException":
|
|
2605
1834
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
2606
|
-
|
|
2607
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
2608
|
-
name: errorCode,
|
|
2609
|
-
$metadata: deserializeMetadata(output),
|
|
2610
|
-
};
|
|
2611
|
-
break;
|
|
1835
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
2612
1836
|
case "ValidationException":
|
|
2613
1837
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2614
|
-
|
|
2615
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2616
|
-
name: errorCode,
|
|
2617
|
-
$metadata: deserializeMetadata(output),
|
|
2618
|
-
};
|
|
2619
|
-
break;
|
|
1838
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2620
1839
|
default:
|
|
2621
1840
|
const parsedBody = parsedOutput.body;
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
...parsedBody,
|
|
2625
|
-
name: `${errorCode}`,
|
|
2626
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1841
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1842
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2627
1843
|
$fault: "client",
|
|
2628
1844
|
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
1845
|
+
});
|
|
1846
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2630
1847
|
}
|
|
2631
|
-
const message = response.message || response.Message || errorCode;
|
|
2632
|
-
response.message = message;
|
|
2633
|
-
delete response.Message;
|
|
2634
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2635
1848
|
};
|
|
2636
1849
|
const deserializeAws_json1_1StopPipelineExecutionCommand = async (output, context) => {
|
|
2637
1850
|
if (output.statusCode >= 300) {
|
|
@@ -2658,59 +1871,28 @@ const deserializeAws_json1_1StopPipelineExecutionCommandError = async (output, c
|
|
|
2658
1871
|
switch (errorCode) {
|
|
2659
1872
|
case "ConflictException":
|
|
2660
1873
|
case "com.amazonaws.codepipeline#ConflictException":
|
|
2661
|
-
|
|
2662
|
-
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
2663
|
-
name: errorCode,
|
|
2664
|
-
$metadata: deserializeMetadata(output),
|
|
2665
|
-
};
|
|
2666
|
-
break;
|
|
1874
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
2667
1875
|
case "DuplicatedStopRequestException":
|
|
2668
1876
|
case "com.amazonaws.codepipeline#DuplicatedStopRequestException":
|
|
2669
|
-
|
|
2670
|
-
...(await deserializeAws_json1_1DuplicatedStopRequestExceptionResponse(parsedOutput, context)),
|
|
2671
|
-
name: errorCode,
|
|
2672
|
-
$metadata: deserializeMetadata(output),
|
|
2673
|
-
};
|
|
2674
|
-
break;
|
|
1877
|
+
throw await deserializeAws_json1_1DuplicatedStopRequestExceptionResponse(parsedOutput, context);
|
|
2675
1878
|
case "PipelineExecutionNotStoppableException":
|
|
2676
1879
|
case "com.amazonaws.codepipeline#PipelineExecutionNotStoppableException":
|
|
2677
|
-
|
|
2678
|
-
...(await deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse(parsedOutput, context)),
|
|
2679
|
-
name: errorCode,
|
|
2680
|
-
$metadata: deserializeMetadata(output),
|
|
2681
|
-
};
|
|
2682
|
-
break;
|
|
1880
|
+
throw await deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse(parsedOutput, context);
|
|
2683
1881
|
case "PipelineNotFoundException":
|
|
2684
1882
|
case "com.amazonaws.codepipeline#PipelineNotFoundException":
|
|
2685
|
-
|
|
2686
|
-
...(await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context)),
|
|
2687
|
-
name: errorCode,
|
|
2688
|
-
$metadata: deserializeMetadata(output),
|
|
2689
|
-
};
|
|
2690
|
-
break;
|
|
1883
|
+
throw await deserializeAws_json1_1PipelineNotFoundExceptionResponse(parsedOutput, context);
|
|
2691
1884
|
case "ValidationException":
|
|
2692
1885
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2693
|
-
|
|
2694
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2695
|
-
name: errorCode,
|
|
2696
|
-
$metadata: deserializeMetadata(output),
|
|
2697
|
-
};
|
|
2698
|
-
break;
|
|
1886
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2699
1887
|
default:
|
|
2700
1888
|
const parsedBody = parsedOutput.body;
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
...parsedBody,
|
|
2704
|
-
name: `${errorCode}`,
|
|
2705
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1889
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1890
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2706
1891
|
$fault: "client",
|
|
2707
1892
|
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
1893
|
+
});
|
|
1894
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2709
1895
|
}
|
|
2710
|
-
const message = response.message || response.Message || errorCode;
|
|
2711
|
-
response.message = message;
|
|
2712
|
-
delete response.Message;
|
|
2713
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2714
1896
|
};
|
|
2715
1897
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2716
1898
|
if (output.statusCode >= 300) {
|
|
@@ -2737,67 +1919,31 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2737
1919
|
switch (errorCode) {
|
|
2738
1920
|
case "ConcurrentModificationException":
|
|
2739
1921
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
2740
|
-
|
|
2741
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2742
|
-
name: errorCode,
|
|
2743
|
-
$metadata: deserializeMetadata(output),
|
|
2744
|
-
};
|
|
2745
|
-
break;
|
|
1922
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2746
1923
|
case "InvalidArnException":
|
|
2747
1924
|
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
2748
|
-
|
|
2749
|
-
...(await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)),
|
|
2750
|
-
name: errorCode,
|
|
2751
|
-
$metadata: deserializeMetadata(output),
|
|
2752
|
-
};
|
|
2753
|
-
break;
|
|
1925
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
2754
1926
|
case "InvalidTagsException":
|
|
2755
1927
|
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
2756
|
-
|
|
2757
|
-
...(await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)),
|
|
2758
|
-
name: errorCode,
|
|
2759
|
-
$metadata: deserializeMetadata(output),
|
|
2760
|
-
};
|
|
2761
|
-
break;
|
|
1928
|
+
throw await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context);
|
|
2762
1929
|
case "ResourceNotFoundException":
|
|
2763
1930
|
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
2764
|
-
|
|
2765
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2766
|
-
name: errorCode,
|
|
2767
|
-
$metadata: deserializeMetadata(output),
|
|
2768
|
-
};
|
|
2769
|
-
break;
|
|
1931
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2770
1932
|
case "TooManyTagsException":
|
|
2771
1933
|
case "com.amazonaws.codepipeline#TooManyTagsException":
|
|
2772
|
-
|
|
2773
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
2774
|
-
name: errorCode,
|
|
2775
|
-
$metadata: deserializeMetadata(output),
|
|
2776
|
-
};
|
|
2777
|
-
break;
|
|
1934
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2778
1935
|
case "ValidationException":
|
|
2779
1936
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2780
|
-
|
|
2781
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2782
|
-
name: errorCode,
|
|
2783
|
-
$metadata: deserializeMetadata(output),
|
|
2784
|
-
};
|
|
2785
|
-
break;
|
|
1937
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2786
1938
|
default:
|
|
2787
1939
|
const parsedBody = parsedOutput.body;
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
...parsedBody,
|
|
2791
|
-
name: `${errorCode}`,
|
|
2792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1940
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1941
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2793
1942
|
$fault: "client",
|
|
2794
1943
|
$metadata: deserializeMetadata(output),
|
|
2795
|
-
};
|
|
1944
|
+
});
|
|
1945
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2796
1946
|
}
|
|
2797
|
-
const message = response.message || response.Message || errorCode;
|
|
2798
|
-
response.message = message;
|
|
2799
|
-
delete response.Message;
|
|
2800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2801
1947
|
};
|
|
2802
1948
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2803
1949
|
if (output.statusCode >= 300) {
|
|
@@ -2824,59 +1970,28 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2824
1970
|
switch (errorCode) {
|
|
2825
1971
|
case "ConcurrentModificationException":
|
|
2826
1972
|
case "com.amazonaws.codepipeline#ConcurrentModificationException":
|
|
2827
|
-
|
|
2828
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
2829
|
-
name: errorCode,
|
|
2830
|
-
$metadata: deserializeMetadata(output),
|
|
2831
|
-
};
|
|
2832
|
-
break;
|
|
1973
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
2833
1974
|
case "InvalidArnException":
|
|
2834
1975
|
case "com.amazonaws.codepipeline#InvalidArnException":
|
|
2835
|
-
|
|
2836
|
-
...(await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context)),
|
|
2837
|
-
name: errorCode,
|
|
2838
|
-
$metadata: deserializeMetadata(output),
|
|
2839
|
-
};
|
|
2840
|
-
break;
|
|
1976
|
+
throw await deserializeAws_json1_1InvalidArnExceptionResponse(parsedOutput, context);
|
|
2841
1977
|
case "InvalidTagsException":
|
|
2842
1978
|
case "com.amazonaws.codepipeline#InvalidTagsException":
|
|
2843
|
-
|
|
2844
|
-
...(await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context)),
|
|
2845
|
-
name: errorCode,
|
|
2846
|
-
$metadata: deserializeMetadata(output),
|
|
2847
|
-
};
|
|
2848
|
-
break;
|
|
1979
|
+
throw await deserializeAws_json1_1InvalidTagsExceptionResponse(parsedOutput, context);
|
|
2849
1980
|
case "ResourceNotFoundException":
|
|
2850
1981
|
case "com.amazonaws.codepipeline#ResourceNotFoundException":
|
|
2851
|
-
|
|
2852
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2853
|
-
name: errorCode,
|
|
2854
|
-
$metadata: deserializeMetadata(output),
|
|
2855
|
-
};
|
|
2856
|
-
break;
|
|
1982
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2857
1983
|
case "ValidationException":
|
|
2858
1984
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2859
|
-
|
|
2860
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2861
|
-
name: errorCode,
|
|
2862
|
-
$metadata: deserializeMetadata(output),
|
|
2863
|
-
};
|
|
2864
|
-
break;
|
|
1985
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2865
1986
|
default:
|
|
2866
1987
|
const parsedBody = parsedOutput.body;
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
...parsedBody,
|
|
2870
|
-
name: `${errorCode}`,
|
|
2871
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1988
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
1989
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2872
1990
|
$fault: "client",
|
|
2873
1991
|
$metadata: deserializeMetadata(output),
|
|
2874
|
-
};
|
|
1992
|
+
});
|
|
1993
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2875
1994
|
}
|
|
2876
|
-
const message = response.message || response.Message || errorCode;
|
|
2877
|
-
response.message = message;
|
|
2878
|
-
delete response.Message;
|
|
2879
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2880
1995
|
};
|
|
2881
1996
|
const deserializeAws_json1_1UpdateActionTypeCommand = async (output, context) => {
|
|
2882
1997
|
if (output.statusCode >= 300) {
|
|
@@ -2900,43 +2015,22 @@ const deserializeAws_json1_1UpdateActionTypeCommandError = async (output, contex
|
|
|
2900
2015
|
switch (errorCode) {
|
|
2901
2016
|
case "ActionTypeNotFoundException":
|
|
2902
2017
|
case "com.amazonaws.codepipeline#ActionTypeNotFoundException":
|
|
2903
|
-
|
|
2904
|
-
...(await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context)),
|
|
2905
|
-
name: errorCode,
|
|
2906
|
-
$metadata: deserializeMetadata(output),
|
|
2907
|
-
};
|
|
2908
|
-
break;
|
|
2018
|
+
throw await deserializeAws_json1_1ActionTypeNotFoundExceptionResponse(parsedOutput, context);
|
|
2909
2019
|
case "RequestFailedException":
|
|
2910
2020
|
case "com.amazonaws.codepipeline#RequestFailedException":
|
|
2911
|
-
|
|
2912
|
-
...(await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context)),
|
|
2913
|
-
name: errorCode,
|
|
2914
|
-
$metadata: deserializeMetadata(output),
|
|
2915
|
-
};
|
|
2916
|
-
break;
|
|
2021
|
+
throw await deserializeAws_json1_1RequestFailedExceptionResponse(parsedOutput, context);
|
|
2917
2022
|
case "ValidationException":
|
|
2918
2023
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
2919
|
-
|
|
2920
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2921
|
-
name: errorCode,
|
|
2922
|
-
$metadata: deserializeMetadata(output),
|
|
2923
|
-
};
|
|
2924
|
-
break;
|
|
2024
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2925
2025
|
default:
|
|
2926
2026
|
const parsedBody = parsedOutput.body;
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
...parsedBody,
|
|
2930
|
-
name: `${errorCode}`,
|
|
2931
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2027
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
2028
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2932
2029
|
$fault: "client",
|
|
2933
2030
|
$metadata: deserializeMetadata(output),
|
|
2934
|
-
};
|
|
2031
|
+
});
|
|
2032
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2935
2033
|
}
|
|
2936
|
-
const message = response.message || response.Message || errorCode;
|
|
2937
|
-
response.message = message;
|
|
2938
|
-
delete response.Message;
|
|
2939
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2940
2034
|
};
|
|
2941
2035
|
const deserializeAws_json1_1UpdatePipelineCommand = async (output, context) => {
|
|
2942
2036
|
if (output.statusCode >= 300) {
|
|
@@ -2963,463 +2057,355 @@ const deserializeAws_json1_1UpdatePipelineCommandError = async (output, context)
|
|
|
2963
2057
|
switch (errorCode) {
|
|
2964
2058
|
case "InvalidActionDeclarationException":
|
|
2965
2059
|
case "com.amazonaws.codepipeline#InvalidActionDeclarationException":
|
|
2966
|
-
|
|
2967
|
-
...(await deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context)),
|
|
2968
|
-
name: errorCode,
|
|
2969
|
-
$metadata: deserializeMetadata(output),
|
|
2970
|
-
};
|
|
2971
|
-
break;
|
|
2060
|
+
throw await deserializeAws_json1_1InvalidActionDeclarationExceptionResponse(parsedOutput, context);
|
|
2972
2061
|
case "InvalidBlockerDeclarationException":
|
|
2973
2062
|
case "com.amazonaws.codepipeline#InvalidBlockerDeclarationException":
|
|
2974
|
-
|
|
2975
|
-
...(await deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context)),
|
|
2976
|
-
name: errorCode,
|
|
2977
|
-
$metadata: deserializeMetadata(output),
|
|
2978
|
-
};
|
|
2979
|
-
break;
|
|
2063
|
+
throw await deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse(parsedOutput, context);
|
|
2980
2064
|
case "InvalidStageDeclarationException":
|
|
2981
2065
|
case "com.amazonaws.codepipeline#InvalidStageDeclarationException":
|
|
2982
|
-
|
|
2983
|
-
...(await deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context)),
|
|
2984
|
-
name: errorCode,
|
|
2985
|
-
$metadata: deserializeMetadata(output),
|
|
2986
|
-
};
|
|
2987
|
-
break;
|
|
2066
|
+
throw await deserializeAws_json1_1InvalidStageDeclarationExceptionResponse(parsedOutput, context);
|
|
2988
2067
|
case "InvalidStructureException":
|
|
2989
2068
|
case "com.amazonaws.codepipeline#InvalidStructureException":
|
|
2990
|
-
|
|
2991
|
-
...(await deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context)),
|
|
2992
|
-
name: errorCode,
|
|
2993
|
-
$metadata: deserializeMetadata(output),
|
|
2994
|
-
};
|
|
2995
|
-
break;
|
|
2069
|
+
throw await deserializeAws_json1_1InvalidStructureExceptionResponse(parsedOutput, context);
|
|
2996
2070
|
case "LimitExceededException":
|
|
2997
2071
|
case "com.amazonaws.codepipeline#LimitExceededException":
|
|
2998
|
-
|
|
2999
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3000
|
-
name: errorCode,
|
|
3001
|
-
$metadata: deserializeMetadata(output),
|
|
3002
|
-
};
|
|
3003
|
-
break;
|
|
2072
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3004
2073
|
case "ValidationException":
|
|
3005
2074
|
case "com.amazonaws.codepipeline#ValidationException":
|
|
3006
|
-
|
|
3007
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3008
|
-
name: errorCode,
|
|
3009
|
-
$metadata: deserializeMetadata(output),
|
|
3010
|
-
};
|
|
3011
|
-
break;
|
|
2075
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3012
2076
|
default:
|
|
3013
2077
|
const parsedBody = parsedOutput.body;
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
...parsedBody,
|
|
3017
|
-
name: `${errorCode}`,
|
|
3018
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2078
|
+
response = new CodePipelineServiceException_1.CodePipelineServiceException({
|
|
2079
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3019
2080
|
$fault: "client",
|
|
3020
2081
|
$metadata: deserializeMetadata(output),
|
|
3021
|
-
};
|
|
2082
|
+
});
|
|
2083
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3022
2084
|
}
|
|
3023
|
-
const message = response.message || response.Message || errorCode;
|
|
3024
|
-
response.message = message;
|
|
3025
|
-
delete response.Message;
|
|
3026
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3027
2085
|
};
|
|
3028
2086
|
const deserializeAws_json1_1ActionNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3029
2087
|
const body = parsedOutput.body;
|
|
3030
2088
|
const deserialized = deserializeAws_json1_1ActionNotFoundException(body, context);
|
|
3031
|
-
const
|
|
3032
|
-
name: "ActionNotFoundException",
|
|
3033
|
-
$fault: "client",
|
|
2089
|
+
const exception = new models_0_1.ActionNotFoundException({
|
|
3034
2090
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3035
2091
|
...deserialized,
|
|
3036
|
-
};
|
|
3037
|
-
return
|
|
2092
|
+
});
|
|
2093
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3038
2094
|
};
|
|
3039
2095
|
const deserializeAws_json1_1ActionTypeNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3040
2096
|
const body = parsedOutput.body;
|
|
3041
2097
|
const deserialized = deserializeAws_json1_1ActionTypeNotFoundException(body, context);
|
|
3042
|
-
const
|
|
3043
|
-
name: "ActionTypeNotFoundException",
|
|
3044
|
-
$fault: "client",
|
|
2098
|
+
const exception = new models_0_1.ActionTypeNotFoundException({
|
|
3045
2099
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3046
2100
|
...deserialized,
|
|
3047
|
-
};
|
|
3048
|
-
return
|
|
2101
|
+
});
|
|
2102
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3049
2103
|
};
|
|
3050
2104
|
const deserializeAws_json1_1ApprovalAlreadyCompletedExceptionResponse = async (parsedOutput, context) => {
|
|
3051
2105
|
const body = parsedOutput.body;
|
|
3052
2106
|
const deserialized = deserializeAws_json1_1ApprovalAlreadyCompletedException(body, context);
|
|
3053
|
-
const
|
|
3054
|
-
name: "ApprovalAlreadyCompletedException",
|
|
3055
|
-
$fault: "client",
|
|
2107
|
+
const exception = new models_0_1.ApprovalAlreadyCompletedException({
|
|
3056
2108
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3057
2109
|
...deserialized,
|
|
3058
|
-
};
|
|
3059
|
-
return
|
|
2110
|
+
});
|
|
2111
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3060
2112
|
};
|
|
3061
2113
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
3062
2114
|
const body = parsedOutput.body;
|
|
3063
2115
|
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
3064
|
-
const
|
|
3065
|
-
name: "ConcurrentModificationException",
|
|
3066
|
-
$fault: "client",
|
|
2116
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
3067
2117
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3068
2118
|
...deserialized,
|
|
3069
|
-
};
|
|
3070
|
-
return
|
|
2119
|
+
});
|
|
2120
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3071
2121
|
};
|
|
3072
2122
|
const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3073
2123
|
const body = parsedOutput.body;
|
|
3074
2124
|
const deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3075
|
-
const
|
|
3076
|
-
name: "ConflictException",
|
|
3077
|
-
$fault: "client",
|
|
2125
|
+
const exception = new models_0_1.ConflictException({
|
|
3078
2126
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3079
2127
|
...deserialized,
|
|
3080
|
-
};
|
|
3081
|
-
return
|
|
2128
|
+
});
|
|
2129
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3082
2130
|
};
|
|
3083
2131
|
const deserializeAws_json1_1DuplicatedStopRequestExceptionResponse = async (parsedOutput, context) => {
|
|
3084
2132
|
const body = parsedOutput.body;
|
|
3085
2133
|
const deserialized = deserializeAws_json1_1DuplicatedStopRequestException(body, context);
|
|
3086
|
-
const
|
|
3087
|
-
name: "DuplicatedStopRequestException",
|
|
3088
|
-
$fault: "client",
|
|
2134
|
+
const exception = new models_0_1.DuplicatedStopRequestException({
|
|
3089
2135
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3090
2136
|
...deserialized,
|
|
3091
|
-
};
|
|
3092
|
-
return
|
|
2137
|
+
});
|
|
2138
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3093
2139
|
};
|
|
3094
2140
|
const deserializeAws_json1_1InvalidActionDeclarationExceptionResponse = async (parsedOutput, context) => {
|
|
3095
2141
|
const body = parsedOutput.body;
|
|
3096
2142
|
const deserialized = deserializeAws_json1_1InvalidActionDeclarationException(body, context);
|
|
3097
|
-
const
|
|
3098
|
-
name: "InvalidActionDeclarationException",
|
|
3099
|
-
$fault: "client",
|
|
2143
|
+
const exception = new models_0_1.InvalidActionDeclarationException({
|
|
3100
2144
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3101
2145
|
...deserialized,
|
|
3102
|
-
};
|
|
3103
|
-
return
|
|
2146
|
+
});
|
|
2147
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3104
2148
|
};
|
|
3105
2149
|
const deserializeAws_json1_1InvalidApprovalTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3106
2150
|
const body = parsedOutput.body;
|
|
3107
2151
|
const deserialized = deserializeAws_json1_1InvalidApprovalTokenException(body, context);
|
|
3108
|
-
const
|
|
3109
|
-
name: "InvalidApprovalTokenException",
|
|
3110
|
-
$fault: "client",
|
|
2152
|
+
const exception = new models_0_1.InvalidApprovalTokenException({
|
|
3111
2153
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3112
2154
|
...deserialized,
|
|
3113
|
-
};
|
|
3114
|
-
return
|
|
2155
|
+
});
|
|
2156
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3115
2157
|
};
|
|
3116
2158
|
const deserializeAws_json1_1InvalidArnExceptionResponse = async (parsedOutput, context) => {
|
|
3117
2159
|
const body = parsedOutput.body;
|
|
3118
2160
|
const deserialized = deserializeAws_json1_1InvalidArnException(body, context);
|
|
3119
|
-
const
|
|
3120
|
-
name: "InvalidArnException",
|
|
3121
|
-
$fault: "client",
|
|
2161
|
+
const exception = new models_0_1.InvalidArnException({
|
|
3122
2162
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3123
2163
|
...deserialized,
|
|
3124
|
-
};
|
|
3125
|
-
return
|
|
2164
|
+
});
|
|
2165
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3126
2166
|
};
|
|
3127
2167
|
const deserializeAws_json1_1InvalidBlockerDeclarationExceptionResponse = async (parsedOutput, context) => {
|
|
3128
2168
|
const body = parsedOutput.body;
|
|
3129
2169
|
const deserialized = deserializeAws_json1_1InvalidBlockerDeclarationException(body, context);
|
|
3130
|
-
const
|
|
3131
|
-
name: "InvalidBlockerDeclarationException",
|
|
3132
|
-
$fault: "client",
|
|
2170
|
+
const exception = new models_0_1.InvalidBlockerDeclarationException({
|
|
3133
2171
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3134
2172
|
...deserialized,
|
|
3135
|
-
};
|
|
3136
|
-
return
|
|
2173
|
+
});
|
|
2174
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3137
2175
|
};
|
|
3138
2176
|
const deserializeAws_json1_1InvalidClientTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3139
2177
|
const body = parsedOutput.body;
|
|
3140
2178
|
const deserialized = deserializeAws_json1_1InvalidClientTokenException(body, context);
|
|
3141
|
-
const
|
|
3142
|
-
name: "InvalidClientTokenException",
|
|
3143
|
-
$fault: "client",
|
|
2179
|
+
const exception = new models_0_1.InvalidClientTokenException({
|
|
3144
2180
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3145
2181
|
...deserialized,
|
|
3146
|
-
};
|
|
3147
|
-
return
|
|
2182
|
+
});
|
|
2183
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3148
2184
|
};
|
|
3149
2185
|
const deserializeAws_json1_1InvalidJobExceptionResponse = async (parsedOutput, context) => {
|
|
3150
2186
|
const body = parsedOutput.body;
|
|
3151
2187
|
const deserialized = deserializeAws_json1_1InvalidJobException(body, context);
|
|
3152
|
-
const
|
|
3153
|
-
name: "InvalidJobException",
|
|
3154
|
-
$fault: "client",
|
|
2188
|
+
const exception = new models_0_1.InvalidJobException({
|
|
3155
2189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3156
2190
|
...deserialized,
|
|
3157
|
-
};
|
|
3158
|
-
return
|
|
2191
|
+
});
|
|
2192
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3159
2193
|
};
|
|
3160
2194
|
const deserializeAws_json1_1InvalidJobStateExceptionResponse = async (parsedOutput, context) => {
|
|
3161
2195
|
const body = parsedOutput.body;
|
|
3162
2196
|
const deserialized = deserializeAws_json1_1InvalidJobStateException(body, context);
|
|
3163
|
-
const
|
|
3164
|
-
name: "InvalidJobStateException",
|
|
3165
|
-
$fault: "client",
|
|
2197
|
+
const exception = new models_0_1.InvalidJobStateException({
|
|
3166
2198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3167
2199
|
...deserialized,
|
|
3168
|
-
};
|
|
3169
|
-
return
|
|
2200
|
+
});
|
|
2201
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3170
2202
|
};
|
|
3171
2203
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3172
2204
|
const body = parsedOutput.body;
|
|
3173
2205
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3174
|
-
const
|
|
3175
|
-
name: "InvalidNextTokenException",
|
|
3176
|
-
$fault: "client",
|
|
2206
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
3177
2207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3178
2208
|
...deserialized,
|
|
3179
|
-
};
|
|
3180
|
-
return
|
|
2209
|
+
});
|
|
2210
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3181
2211
|
};
|
|
3182
2212
|
const deserializeAws_json1_1InvalidNonceExceptionResponse = async (parsedOutput, context) => {
|
|
3183
2213
|
const body = parsedOutput.body;
|
|
3184
2214
|
const deserialized = deserializeAws_json1_1InvalidNonceException(body, context);
|
|
3185
|
-
const
|
|
3186
|
-
name: "InvalidNonceException",
|
|
3187
|
-
$fault: "client",
|
|
2215
|
+
const exception = new models_0_1.InvalidNonceException({
|
|
3188
2216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3189
2217
|
...deserialized,
|
|
3190
|
-
};
|
|
3191
|
-
return
|
|
2218
|
+
});
|
|
2219
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3192
2220
|
};
|
|
3193
2221
|
const deserializeAws_json1_1InvalidStageDeclarationExceptionResponse = async (parsedOutput, context) => {
|
|
3194
2222
|
const body = parsedOutput.body;
|
|
3195
2223
|
const deserialized = deserializeAws_json1_1InvalidStageDeclarationException(body, context);
|
|
3196
|
-
const
|
|
3197
|
-
name: "InvalidStageDeclarationException",
|
|
3198
|
-
$fault: "client",
|
|
2224
|
+
const exception = new models_0_1.InvalidStageDeclarationException({
|
|
3199
2225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3200
2226
|
...deserialized,
|
|
3201
|
-
};
|
|
3202
|
-
return
|
|
2227
|
+
});
|
|
2228
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3203
2229
|
};
|
|
3204
2230
|
const deserializeAws_json1_1InvalidStructureExceptionResponse = async (parsedOutput, context) => {
|
|
3205
2231
|
const body = parsedOutput.body;
|
|
3206
2232
|
const deserialized = deserializeAws_json1_1InvalidStructureException(body, context);
|
|
3207
|
-
const
|
|
3208
|
-
name: "InvalidStructureException",
|
|
3209
|
-
$fault: "client",
|
|
2233
|
+
const exception = new models_0_1.InvalidStructureException({
|
|
3210
2234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3211
2235
|
...deserialized,
|
|
3212
|
-
};
|
|
3213
|
-
return
|
|
2236
|
+
});
|
|
2237
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3214
2238
|
};
|
|
3215
2239
|
const deserializeAws_json1_1InvalidTagsExceptionResponse = async (parsedOutput, context) => {
|
|
3216
2240
|
const body = parsedOutput.body;
|
|
3217
2241
|
const deserialized = deserializeAws_json1_1InvalidTagsException(body, context);
|
|
3218
|
-
const
|
|
3219
|
-
name: "InvalidTagsException",
|
|
3220
|
-
$fault: "client",
|
|
2242
|
+
const exception = new models_0_1.InvalidTagsException({
|
|
3221
2243
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3222
2244
|
...deserialized,
|
|
3223
|
-
};
|
|
3224
|
-
return
|
|
2245
|
+
});
|
|
2246
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3225
2247
|
};
|
|
3226
2248
|
const deserializeAws_json1_1InvalidWebhookAuthenticationParametersExceptionResponse = async (parsedOutput, context) => {
|
|
3227
2249
|
const body = parsedOutput.body;
|
|
3228
2250
|
const deserialized = deserializeAws_json1_1InvalidWebhookAuthenticationParametersException(body, context);
|
|
3229
|
-
const
|
|
3230
|
-
name: "InvalidWebhookAuthenticationParametersException",
|
|
3231
|
-
$fault: "client",
|
|
2251
|
+
const exception = new models_0_1.InvalidWebhookAuthenticationParametersException({
|
|
3232
2252
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3233
2253
|
...deserialized,
|
|
3234
|
-
};
|
|
3235
|
-
return
|
|
2254
|
+
});
|
|
2255
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3236
2256
|
};
|
|
3237
2257
|
const deserializeAws_json1_1InvalidWebhookFilterPatternExceptionResponse = async (parsedOutput, context) => {
|
|
3238
2258
|
const body = parsedOutput.body;
|
|
3239
2259
|
const deserialized = deserializeAws_json1_1InvalidWebhookFilterPatternException(body, context);
|
|
3240
|
-
const
|
|
3241
|
-
name: "InvalidWebhookFilterPatternException",
|
|
3242
|
-
$fault: "client",
|
|
2260
|
+
const exception = new models_0_1.InvalidWebhookFilterPatternException({
|
|
3243
2261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3244
2262
|
...deserialized,
|
|
3245
|
-
};
|
|
3246
|
-
return
|
|
2263
|
+
});
|
|
2264
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3247
2265
|
};
|
|
3248
2266
|
const deserializeAws_json1_1JobNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3249
2267
|
const body = parsedOutput.body;
|
|
3250
2268
|
const deserialized = deserializeAws_json1_1JobNotFoundException(body, context);
|
|
3251
|
-
const
|
|
3252
|
-
name: "JobNotFoundException",
|
|
3253
|
-
$fault: "client",
|
|
2269
|
+
const exception = new models_0_1.JobNotFoundException({
|
|
3254
2270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3255
2271
|
...deserialized,
|
|
3256
|
-
};
|
|
3257
|
-
return
|
|
2272
|
+
});
|
|
2273
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3258
2274
|
};
|
|
3259
2275
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3260
2276
|
const body = parsedOutput.body;
|
|
3261
2277
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3262
|
-
const
|
|
3263
|
-
name: "LimitExceededException",
|
|
3264
|
-
$fault: "client",
|
|
2278
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3265
2279
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3266
2280
|
...deserialized,
|
|
3267
|
-
};
|
|
3268
|
-
return
|
|
2281
|
+
});
|
|
2282
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3269
2283
|
};
|
|
3270
2284
|
const deserializeAws_json1_1NotLatestPipelineExecutionExceptionResponse = async (parsedOutput, context) => {
|
|
3271
2285
|
const body = parsedOutput.body;
|
|
3272
2286
|
const deserialized = deserializeAws_json1_1NotLatestPipelineExecutionException(body, context);
|
|
3273
|
-
const
|
|
3274
|
-
name: "NotLatestPipelineExecutionException",
|
|
3275
|
-
$fault: "client",
|
|
2287
|
+
const exception = new models_0_1.NotLatestPipelineExecutionException({
|
|
3276
2288
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3277
2289
|
...deserialized,
|
|
3278
|
-
};
|
|
3279
|
-
return
|
|
2290
|
+
});
|
|
2291
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3280
2292
|
};
|
|
3281
2293
|
const deserializeAws_json1_1OutputVariablesSizeExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3282
2294
|
const body = parsedOutput.body;
|
|
3283
2295
|
const deserialized = deserializeAws_json1_1OutputVariablesSizeExceededException(body, context);
|
|
3284
|
-
const
|
|
3285
|
-
name: "OutputVariablesSizeExceededException",
|
|
3286
|
-
$fault: "client",
|
|
2296
|
+
const exception = new models_0_1.OutputVariablesSizeExceededException({
|
|
3287
2297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3288
2298
|
...deserialized,
|
|
3289
|
-
};
|
|
3290
|
-
return
|
|
2299
|
+
});
|
|
2300
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3291
2301
|
};
|
|
3292
2302
|
const deserializeAws_json1_1PipelineExecutionNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3293
2303
|
const body = parsedOutput.body;
|
|
3294
2304
|
const deserialized = deserializeAws_json1_1PipelineExecutionNotFoundException(body, context);
|
|
3295
|
-
const
|
|
3296
|
-
name: "PipelineExecutionNotFoundException",
|
|
3297
|
-
$fault: "client",
|
|
2305
|
+
const exception = new models_0_1.PipelineExecutionNotFoundException({
|
|
3298
2306
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3299
2307
|
...deserialized,
|
|
3300
|
-
};
|
|
3301
|
-
return
|
|
2308
|
+
});
|
|
2309
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3302
2310
|
};
|
|
3303
2311
|
const deserializeAws_json1_1PipelineExecutionNotStoppableExceptionResponse = async (parsedOutput, context) => {
|
|
3304
2312
|
const body = parsedOutput.body;
|
|
3305
2313
|
const deserialized = deserializeAws_json1_1PipelineExecutionNotStoppableException(body, context);
|
|
3306
|
-
const
|
|
3307
|
-
name: "PipelineExecutionNotStoppableException",
|
|
3308
|
-
$fault: "client",
|
|
2314
|
+
const exception = new models_0_1.PipelineExecutionNotStoppableException({
|
|
3309
2315
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3310
2316
|
...deserialized,
|
|
3311
|
-
};
|
|
3312
|
-
return
|
|
2317
|
+
});
|
|
2318
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3313
2319
|
};
|
|
3314
2320
|
const deserializeAws_json1_1PipelineNameInUseExceptionResponse = async (parsedOutput, context) => {
|
|
3315
2321
|
const body = parsedOutput.body;
|
|
3316
2322
|
const deserialized = deserializeAws_json1_1PipelineNameInUseException(body, context);
|
|
3317
|
-
const
|
|
3318
|
-
name: "PipelineNameInUseException",
|
|
3319
|
-
$fault: "client",
|
|
2323
|
+
const exception = new models_0_1.PipelineNameInUseException({
|
|
3320
2324
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3321
2325
|
...deserialized,
|
|
3322
|
-
};
|
|
3323
|
-
return
|
|
2326
|
+
});
|
|
2327
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3324
2328
|
};
|
|
3325
2329
|
const deserializeAws_json1_1PipelineNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3326
2330
|
const body = parsedOutput.body;
|
|
3327
2331
|
const deserialized = deserializeAws_json1_1PipelineNotFoundException(body, context);
|
|
3328
|
-
const
|
|
3329
|
-
name: "PipelineNotFoundException",
|
|
3330
|
-
$fault: "client",
|
|
2332
|
+
const exception = new models_0_1.PipelineNotFoundException({
|
|
3331
2333
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3332
2334
|
...deserialized,
|
|
3333
|
-
};
|
|
3334
|
-
return
|
|
2335
|
+
});
|
|
2336
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3335
2337
|
};
|
|
3336
2338
|
const deserializeAws_json1_1PipelineVersionNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3337
2339
|
const body = parsedOutput.body;
|
|
3338
2340
|
const deserialized = deserializeAws_json1_1PipelineVersionNotFoundException(body, context);
|
|
3339
|
-
const
|
|
3340
|
-
name: "PipelineVersionNotFoundException",
|
|
3341
|
-
$fault: "client",
|
|
2341
|
+
const exception = new models_0_1.PipelineVersionNotFoundException({
|
|
3342
2342
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3343
2343
|
...deserialized,
|
|
3344
|
-
};
|
|
3345
|
-
return
|
|
2344
|
+
});
|
|
2345
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3346
2346
|
};
|
|
3347
2347
|
const deserializeAws_json1_1RequestFailedExceptionResponse = async (parsedOutput, context) => {
|
|
3348
2348
|
const body = parsedOutput.body;
|
|
3349
2349
|
const deserialized = deserializeAws_json1_1RequestFailedException(body, context);
|
|
3350
|
-
const
|
|
3351
|
-
name: "RequestFailedException",
|
|
3352
|
-
$fault: "client",
|
|
2350
|
+
const exception = new models_0_1.RequestFailedException({
|
|
3353
2351
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3354
2352
|
...deserialized,
|
|
3355
|
-
};
|
|
3356
|
-
return
|
|
2353
|
+
});
|
|
2354
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3357
2355
|
};
|
|
3358
2356
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3359
2357
|
const body = parsedOutput.body;
|
|
3360
2358
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3361
|
-
const
|
|
3362
|
-
name: "ResourceNotFoundException",
|
|
3363
|
-
$fault: "client",
|
|
2359
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3364
2360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3365
2361
|
...deserialized,
|
|
3366
|
-
};
|
|
3367
|
-
return
|
|
2362
|
+
});
|
|
2363
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3368
2364
|
};
|
|
3369
2365
|
const deserializeAws_json1_1StageNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3370
2366
|
const body = parsedOutput.body;
|
|
3371
2367
|
const deserialized = deserializeAws_json1_1StageNotFoundException(body, context);
|
|
3372
|
-
const
|
|
3373
|
-
name: "StageNotFoundException",
|
|
3374
|
-
$fault: "client",
|
|
2368
|
+
const exception = new models_0_1.StageNotFoundException({
|
|
3375
2369
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3376
2370
|
...deserialized,
|
|
3377
|
-
};
|
|
3378
|
-
return
|
|
2371
|
+
});
|
|
2372
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3379
2373
|
};
|
|
3380
2374
|
const deserializeAws_json1_1StageNotRetryableExceptionResponse = async (parsedOutput, context) => {
|
|
3381
2375
|
const body = parsedOutput.body;
|
|
3382
2376
|
const deserialized = deserializeAws_json1_1StageNotRetryableException(body, context);
|
|
3383
|
-
const
|
|
3384
|
-
name: "StageNotRetryableException",
|
|
3385
|
-
$fault: "client",
|
|
2377
|
+
const exception = new models_0_1.StageNotRetryableException({
|
|
3386
2378
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3387
2379
|
...deserialized,
|
|
3388
|
-
};
|
|
3389
|
-
return
|
|
2380
|
+
});
|
|
2381
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3390
2382
|
};
|
|
3391
2383
|
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
3392
2384
|
const body = parsedOutput.body;
|
|
3393
2385
|
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3394
|
-
const
|
|
3395
|
-
name: "TooManyTagsException",
|
|
3396
|
-
$fault: "client",
|
|
2386
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
3397
2387
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3398
2388
|
...deserialized,
|
|
3399
|
-
};
|
|
3400
|
-
return
|
|
2389
|
+
});
|
|
2390
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3401
2391
|
};
|
|
3402
2392
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3403
2393
|
const body = parsedOutput.body;
|
|
3404
2394
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
3405
|
-
const
|
|
3406
|
-
name: "ValidationException",
|
|
3407
|
-
$fault: "client",
|
|
2395
|
+
const exception = new models_0_1.ValidationException({
|
|
3408
2396
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3409
2397
|
...deserialized,
|
|
3410
|
-
};
|
|
3411
|
-
return
|
|
2398
|
+
});
|
|
2399
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3412
2400
|
};
|
|
3413
2401
|
const deserializeAws_json1_1WebhookNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3414
2402
|
const body = parsedOutput.body;
|
|
3415
2403
|
const deserialized = deserializeAws_json1_1WebhookNotFoundException(body, context);
|
|
3416
|
-
const
|
|
3417
|
-
name: "WebhookNotFoundException",
|
|
3418
|
-
$fault: "client",
|
|
2404
|
+
const exception = new models_0_1.WebhookNotFoundException({
|
|
3419
2405
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3420
2406
|
...deserialized,
|
|
3421
|
-
};
|
|
3422
|
-
return
|
|
2407
|
+
});
|
|
2408
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3423
2409
|
};
|
|
3424
2410
|
const serializeAws_json1_1AcknowledgeJobInput = (input, context) => {
|
|
3425
2411
|
return {
|
|
@@ -4266,7 +3252,7 @@ const deserializeAws_json1_1ActionConfigurationProperty = (output, context) => {
|
|
|
4266
3252
|
};
|
|
4267
3253
|
};
|
|
4268
3254
|
const deserializeAws_json1_1ActionConfigurationPropertyList = (output, context) => {
|
|
4269
|
-
|
|
3255
|
+
const retVal = (output || [])
|
|
4270
3256
|
.filter((e) => e != null)
|
|
4271
3257
|
.map((entry) => {
|
|
4272
3258
|
if (entry === null) {
|
|
@@ -4274,6 +3260,7 @@ const deserializeAws_json1_1ActionConfigurationPropertyList = (output, context)
|
|
|
4274
3260
|
}
|
|
4275
3261
|
return deserializeAws_json1_1ActionConfigurationProperty(entry, context);
|
|
4276
3262
|
});
|
|
3263
|
+
return retVal;
|
|
4277
3264
|
};
|
|
4278
3265
|
const deserializeAws_json1_1ActionContext = (output, context) => {
|
|
4279
3266
|
return {
|
|
@@ -4343,7 +3330,7 @@ const deserializeAws_json1_1ActionExecutionDetail = (output, context) => {
|
|
|
4343
3330
|
};
|
|
4344
3331
|
};
|
|
4345
3332
|
const deserializeAws_json1_1ActionExecutionDetailList = (output, context) => {
|
|
4346
|
-
|
|
3333
|
+
const retVal = (output || [])
|
|
4347
3334
|
.filter((e) => e != null)
|
|
4348
3335
|
.map((entry) => {
|
|
4349
3336
|
if (entry === null) {
|
|
@@ -4351,6 +3338,7 @@ const deserializeAws_json1_1ActionExecutionDetailList = (output, context) => {
|
|
|
4351
3338
|
}
|
|
4352
3339
|
return deserializeAws_json1_1ActionExecutionDetail(entry, context);
|
|
4353
3340
|
});
|
|
3341
|
+
return retVal;
|
|
4354
3342
|
};
|
|
4355
3343
|
const deserializeAws_json1_1ActionExecutionInput = (output, context) => {
|
|
4356
3344
|
return {
|
|
@@ -4419,7 +3407,7 @@ const deserializeAws_json1_1ActionState = (output, context) => {
|
|
|
4419
3407
|
};
|
|
4420
3408
|
};
|
|
4421
3409
|
const deserializeAws_json1_1ActionStateList = (output, context) => {
|
|
4422
|
-
|
|
3410
|
+
const retVal = (output || [])
|
|
4423
3411
|
.filter((e) => e != null)
|
|
4424
3412
|
.map((entry) => {
|
|
4425
3413
|
if (entry === null) {
|
|
@@ -4427,6 +3415,7 @@ const deserializeAws_json1_1ActionStateList = (output, context) => {
|
|
|
4427
3415
|
}
|
|
4428
3416
|
return deserializeAws_json1_1ActionState(entry, context);
|
|
4429
3417
|
});
|
|
3418
|
+
return retVal;
|
|
4430
3419
|
};
|
|
4431
3420
|
const deserializeAws_json1_1ActionType = (output, context) => {
|
|
4432
3421
|
return {
|
|
@@ -4506,7 +3495,7 @@ const deserializeAws_json1_1ActionTypeIdentifier = (output, context) => {
|
|
|
4506
3495
|
};
|
|
4507
3496
|
};
|
|
4508
3497
|
const deserializeAws_json1_1ActionTypeList = (output, context) => {
|
|
4509
|
-
|
|
3498
|
+
const retVal = (output || [])
|
|
4510
3499
|
.filter((e) => e != null)
|
|
4511
3500
|
.map((entry) => {
|
|
4512
3501
|
if (entry === null) {
|
|
@@ -4514,6 +3503,7 @@ const deserializeAws_json1_1ActionTypeList = (output, context) => {
|
|
|
4514
3503
|
}
|
|
4515
3504
|
return deserializeAws_json1_1ActionType(entry, context);
|
|
4516
3505
|
});
|
|
3506
|
+
return retVal;
|
|
4517
3507
|
};
|
|
4518
3508
|
const deserializeAws_json1_1ActionTypeNotFoundException = (output, context) => {
|
|
4519
3509
|
return {
|
|
@@ -4528,7 +3518,7 @@ const deserializeAws_json1_1ActionTypePermissions = (output, context) => {
|
|
|
4528
3518
|
};
|
|
4529
3519
|
};
|
|
4530
3520
|
const deserializeAws_json1_1ActionTypeProperties = (output, context) => {
|
|
4531
|
-
|
|
3521
|
+
const retVal = (output || [])
|
|
4532
3522
|
.filter((e) => e != null)
|
|
4533
3523
|
.map((entry) => {
|
|
4534
3524
|
if (entry === null) {
|
|
@@ -4536,6 +3526,7 @@ const deserializeAws_json1_1ActionTypeProperties = (output, context) => {
|
|
|
4536
3526
|
}
|
|
4537
3527
|
return deserializeAws_json1_1ActionTypeProperty(entry, context);
|
|
4538
3528
|
});
|
|
3529
|
+
return retVal;
|
|
4539
3530
|
};
|
|
4540
3531
|
const deserializeAws_json1_1ActionTypeProperty = (output, context) => {
|
|
4541
3532
|
return {
|
|
@@ -4564,7 +3555,7 @@ const deserializeAws_json1_1ActionTypeUrls = (output, context) => {
|
|
|
4564
3555
|
};
|
|
4565
3556
|
};
|
|
4566
3557
|
const deserializeAws_json1_1AllowedAccounts = (output, context) => {
|
|
4567
|
-
|
|
3558
|
+
const retVal = (output || [])
|
|
4568
3559
|
.filter((e) => e != null)
|
|
4569
3560
|
.map((entry) => {
|
|
4570
3561
|
if (entry === null) {
|
|
@@ -4572,6 +3563,7 @@ const deserializeAws_json1_1AllowedAccounts = (output, context) => {
|
|
|
4572
3563
|
}
|
|
4573
3564
|
return smithy_client_1.expectString(entry);
|
|
4574
3565
|
});
|
|
3566
|
+
return retVal;
|
|
4575
3567
|
};
|
|
4576
3568
|
const deserializeAws_json1_1ApprovalAlreadyCompletedException = (output, context) => {
|
|
4577
3569
|
return {
|
|
@@ -4596,7 +3588,7 @@ const deserializeAws_json1_1ArtifactDetail = (output, context) => {
|
|
|
4596
3588
|
};
|
|
4597
3589
|
};
|
|
4598
3590
|
const deserializeAws_json1_1ArtifactDetailList = (output, context) => {
|
|
4599
|
-
|
|
3591
|
+
const retVal = (output || [])
|
|
4600
3592
|
.filter((e) => e != null)
|
|
4601
3593
|
.map((entry) => {
|
|
4602
3594
|
if (entry === null) {
|
|
@@ -4604,6 +3596,7 @@ const deserializeAws_json1_1ArtifactDetailList = (output, context) => {
|
|
|
4604
3596
|
}
|
|
4605
3597
|
return deserializeAws_json1_1ArtifactDetail(entry, context);
|
|
4606
3598
|
});
|
|
3599
|
+
return retVal;
|
|
4607
3600
|
};
|
|
4608
3601
|
const deserializeAws_json1_1ArtifactDetails = (output, context) => {
|
|
4609
3602
|
return {
|
|
@@ -4612,7 +3605,7 @@ const deserializeAws_json1_1ArtifactDetails = (output, context) => {
|
|
|
4612
3605
|
};
|
|
4613
3606
|
};
|
|
4614
3607
|
const deserializeAws_json1_1ArtifactList = (output, context) => {
|
|
4615
|
-
|
|
3608
|
+
const retVal = (output || [])
|
|
4616
3609
|
.filter((e) => e != null)
|
|
4617
3610
|
.map((entry) => {
|
|
4618
3611
|
if (entry === null) {
|
|
@@ -4620,6 +3613,7 @@ const deserializeAws_json1_1ArtifactList = (output, context) => {
|
|
|
4620
3613
|
}
|
|
4621
3614
|
return deserializeAws_json1_1Artifact(entry, context);
|
|
4622
3615
|
});
|
|
3616
|
+
return retVal;
|
|
4623
3617
|
};
|
|
4624
3618
|
const deserializeAws_json1_1ArtifactLocation = (output, context) => {
|
|
4625
3619
|
return {
|
|
@@ -4642,7 +3636,7 @@ const deserializeAws_json1_1ArtifactRevision = (output, context) => {
|
|
|
4642
3636
|
};
|
|
4643
3637
|
};
|
|
4644
3638
|
const deserializeAws_json1_1ArtifactRevisionList = (output, context) => {
|
|
4645
|
-
|
|
3639
|
+
const retVal = (output || [])
|
|
4646
3640
|
.filter((e) => e != null)
|
|
4647
3641
|
.map((entry) => {
|
|
4648
3642
|
if (entry === null) {
|
|
@@ -4650,6 +3644,7 @@ const deserializeAws_json1_1ArtifactRevisionList = (output, context) => {
|
|
|
4650
3644
|
}
|
|
4651
3645
|
return deserializeAws_json1_1ArtifactRevision(entry, context);
|
|
4652
3646
|
});
|
|
3647
|
+
return retVal;
|
|
4653
3648
|
};
|
|
4654
3649
|
const deserializeAws_json1_1ArtifactStore = (output, context) => {
|
|
4655
3650
|
return {
|
|
@@ -4812,7 +3807,7 @@ const deserializeAws_json1_1InputArtifact = (output, context) => {
|
|
|
4812
3807
|
};
|
|
4813
3808
|
};
|
|
4814
3809
|
const deserializeAws_json1_1InputArtifactList = (output, context) => {
|
|
4815
|
-
|
|
3810
|
+
const retVal = (output || [])
|
|
4816
3811
|
.filter((e) => e != null)
|
|
4817
3812
|
.map((entry) => {
|
|
4818
3813
|
if (entry === null) {
|
|
@@ -4820,6 +3815,7 @@ const deserializeAws_json1_1InputArtifactList = (output, context) => {
|
|
|
4820
3815
|
}
|
|
4821
3816
|
return deserializeAws_json1_1InputArtifact(entry, context);
|
|
4822
3817
|
});
|
|
3818
|
+
return retVal;
|
|
4823
3819
|
};
|
|
4824
3820
|
const deserializeAws_json1_1InvalidActionDeclarationException = (output, context) => {
|
|
4825
3821
|
return {
|
|
@@ -4937,7 +3933,7 @@ const deserializeAws_json1_1JobDetails = (output, context) => {
|
|
|
4937
3933
|
};
|
|
4938
3934
|
};
|
|
4939
3935
|
const deserializeAws_json1_1JobList = (output, context) => {
|
|
4940
|
-
|
|
3936
|
+
const retVal = (output || [])
|
|
4941
3937
|
.filter((e) => e != null)
|
|
4942
3938
|
.map((entry) => {
|
|
4943
3939
|
if (entry === null) {
|
|
@@ -4945,6 +3941,7 @@ const deserializeAws_json1_1JobList = (output, context) => {
|
|
|
4945
3941
|
}
|
|
4946
3942
|
return deserializeAws_json1_1Job(entry, context);
|
|
4947
3943
|
});
|
|
3944
|
+
return retVal;
|
|
4948
3945
|
};
|
|
4949
3946
|
const deserializeAws_json1_1JobNotFoundException = (output, context) => {
|
|
4950
3947
|
return {
|
|
@@ -5047,7 +4044,7 @@ const deserializeAws_json1_1OutputArtifact = (output, context) => {
|
|
|
5047
4044
|
};
|
|
5048
4045
|
};
|
|
5049
4046
|
const deserializeAws_json1_1OutputArtifactList = (output, context) => {
|
|
5050
|
-
|
|
4047
|
+
const retVal = (output || [])
|
|
5051
4048
|
.filter((e) => e != null)
|
|
5052
4049
|
.map((entry) => {
|
|
5053
4050
|
if (entry === null) {
|
|
@@ -5055,6 +4052,7 @@ const deserializeAws_json1_1OutputArtifactList = (output, context) => {
|
|
|
5055
4052
|
}
|
|
5056
4053
|
return deserializeAws_json1_1OutputArtifact(entry, context);
|
|
5057
4054
|
});
|
|
4055
|
+
return retVal;
|
|
5058
4056
|
};
|
|
5059
4057
|
const deserializeAws_json1_1OutputVariablesMap = (output, context) => {
|
|
5060
4058
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -5145,7 +4143,7 @@ const deserializeAws_json1_1PipelineExecutionSummary = (output, context) => {
|
|
|
5145
4143
|
};
|
|
5146
4144
|
};
|
|
5147
4145
|
const deserializeAws_json1_1PipelineExecutionSummaryList = (output, context) => {
|
|
5148
|
-
|
|
4146
|
+
const retVal = (output || [])
|
|
5149
4147
|
.filter((e) => e != null)
|
|
5150
4148
|
.map((entry) => {
|
|
5151
4149
|
if (entry === null) {
|
|
@@ -5153,9 +4151,10 @@ const deserializeAws_json1_1PipelineExecutionSummaryList = (output, context) =>
|
|
|
5153
4151
|
}
|
|
5154
4152
|
return deserializeAws_json1_1PipelineExecutionSummary(entry, context);
|
|
5155
4153
|
});
|
|
4154
|
+
return retVal;
|
|
5156
4155
|
};
|
|
5157
4156
|
const deserializeAws_json1_1PipelineList = (output, context) => {
|
|
5158
|
-
|
|
4157
|
+
const retVal = (output || [])
|
|
5159
4158
|
.filter((e) => e != null)
|
|
5160
4159
|
.map((entry) => {
|
|
5161
4160
|
if (entry === null) {
|
|
@@ -5163,6 +4162,7 @@ const deserializeAws_json1_1PipelineList = (output, context) => {
|
|
|
5163
4162
|
}
|
|
5164
4163
|
return deserializeAws_json1_1PipelineSummary(entry, context);
|
|
5165
4164
|
});
|
|
4165
|
+
return retVal;
|
|
5166
4166
|
};
|
|
5167
4167
|
const deserializeAws_json1_1PipelineMetadata = (output, context) => {
|
|
5168
4168
|
return {
|
|
@@ -5186,7 +4186,7 @@ const deserializeAws_json1_1PipelineNotFoundException = (output, context) => {
|
|
|
5186
4186
|
};
|
|
5187
4187
|
};
|
|
5188
4188
|
const deserializeAws_json1_1PipelineStageDeclarationList = (output, context) => {
|
|
5189
|
-
|
|
4189
|
+
const retVal = (output || [])
|
|
5190
4190
|
.filter((e) => e != null)
|
|
5191
4191
|
.map((entry) => {
|
|
5192
4192
|
if (entry === null) {
|
|
@@ -5194,6 +4194,7 @@ const deserializeAws_json1_1PipelineStageDeclarationList = (output, context) =>
|
|
|
5194
4194
|
}
|
|
5195
4195
|
return deserializeAws_json1_1StageDeclaration(entry, context);
|
|
5196
4196
|
});
|
|
4197
|
+
return retVal;
|
|
5197
4198
|
};
|
|
5198
4199
|
const deserializeAws_json1_1PipelineSummary = (output, context) => {
|
|
5199
4200
|
return {
|
|
@@ -5227,7 +4228,7 @@ const deserializeAws_json1_1PollForThirdPartyJobsOutput = (output, context) => {
|
|
|
5227
4228
|
};
|
|
5228
4229
|
};
|
|
5229
4230
|
const deserializeAws_json1_1PollingAccountList = (output, context) => {
|
|
5230
|
-
|
|
4231
|
+
const retVal = (output || [])
|
|
5231
4232
|
.filter((e) => e != null)
|
|
5232
4233
|
.map((entry) => {
|
|
5233
4234
|
if (entry === null) {
|
|
@@ -5235,9 +4236,10 @@ const deserializeAws_json1_1PollingAccountList = (output, context) => {
|
|
|
5235
4236
|
}
|
|
5236
4237
|
return smithy_client_1.expectString(entry);
|
|
5237
4238
|
});
|
|
4239
|
+
return retVal;
|
|
5238
4240
|
};
|
|
5239
4241
|
const deserializeAws_json1_1PollingServicePrincipalList = (output, context) => {
|
|
5240
|
-
|
|
4242
|
+
const retVal = (output || [])
|
|
5241
4243
|
.filter((e) => e != null)
|
|
5242
4244
|
.map((entry) => {
|
|
5243
4245
|
if (entry === null) {
|
|
@@ -5245,6 +4247,7 @@ const deserializeAws_json1_1PollingServicePrincipalList = (output, context) => {
|
|
|
5245
4247
|
}
|
|
5246
4248
|
return smithy_client_1.expectString(entry);
|
|
5247
4249
|
});
|
|
4250
|
+
return retVal;
|
|
5248
4251
|
};
|
|
5249
4252
|
const deserializeAws_json1_1PutActionRevisionOutput = (output, context) => {
|
|
5250
4253
|
return {
|
|
@@ -5316,7 +4319,7 @@ const deserializeAws_json1_1SourceRevision = (output, context) => {
|
|
|
5316
4319
|
};
|
|
5317
4320
|
};
|
|
5318
4321
|
const deserializeAws_json1_1SourceRevisionList = (output, context) => {
|
|
5319
|
-
|
|
4322
|
+
const retVal = (output || [])
|
|
5320
4323
|
.filter((e) => e != null)
|
|
5321
4324
|
.map((entry) => {
|
|
5322
4325
|
if (entry === null) {
|
|
@@ -5324,9 +4327,10 @@ const deserializeAws_json1_1SourceRevisionList = (output, context) => {
|
|
|
5324
4327
|
}
|
|
5325
4328
|
return deserializeAws_json1_1SourceRevision(entry, context);
|
|
5326
4329
|
});
|
|
4330
|
+
return retVal;
|
|
5327
4331
|
};
|
|
5328
4332
|
const deserializeAws_json1_1StageActionDeclarationList = (output, context) => {
|
|
5329
|
-
|
|
4333
|
+
const retVal = (output || [])
|
|
5330
4334
|
.filter((e) => e != null)
|
|
5331
4335
|
.map((entry) => {
|
|
5332
4336
|
if (entry === null) {
|
|
@@ -5334,9 +4338,10 @@ const deserializeAws_json1_1StageActionDeclarationList = (output, context) => {
|
|
|
5334
4338
|
}
|
|
5335
4339
|
return deserializeAws_json1_1ActionDeclaration(entry, context);
|
|
5336
4340
|
});
|
|
4341
|
+
return retVal;
|
|
5337
4342
|
};
|
|
5338
4343
|
const deserializeAws_json1_1StageBlockerDeclarationList = (output, context) => {
|
|
5339
|
-
|
|
4344
|
+
const retVal = (output || [])
|
|
5340
4345
|
.filter((e) => e != null)
|
|
5341
4346
|
.map((entry) => {
|
|
5342
4347
|
if (entry === null) {
|
|
@@ -5344,6 +4349,7 @@ const deserializeAws_json1_1StageBlockerDeclarationList = (output, context) => {
|
|
|
5344
4349
|
}
|
|
5345
4350
|
return deserializeAws_json1_1BlockerDeclaration(entry, context);
|
|
5346
4351
|
});
|
|
4352
|
+
return retVal;
|
|
5347
4353
|
};
|
|
5348
4354
|
const deserializeAws_json1_1StageContext = (output, context) => {
|
|
5349
4355
|
return {
|
|
@@ -5395,7 +4401,7 @@ const deserializeAws_json1_1StageState = (output, context) => {
|
|
|
5395
4401
|
};
|
|
5396
4402
|
};
|
|
5397
4403
|
const deserializeAws_json1_1StageStateList = (output, context) => {
|
|
5398
|
-
|
|
4404
|
+
const retVal = (output || [])
|
|
5399
4405
|
.filter((e) => e != null)
|
|
5400
4406
|
.map((entry) => {
|
|
5401
4407
|
if (entry === null) {
|
|
@@ -5403,6 +4409,7 @@ const deserializeAws_json1_1StageStateList = (output, context) => {
|
|
|
5403
4409
|
}
|
|
5404
4410
|
return deserializeAws_json1_1StageState(entry, context);
|
|
5405
4411
|
});
|
|
4412
|
+
return retVal;
|
|
5406
4413
|
};
|
|
5407
4414
|
const deserializeAws_json1_1StartPipelineExecutionOutput = (output, context) => {
|
|
5408
4415
|
return {
|
|
@@ -5426,7 +4433,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
5426
4433
|
};
|
|
5427
4434
|
};
|
|
5428
4435
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
5429
|
-
|
|
4436
|
+
const retVal = (output || [])
|
|
5430
4437
|
.filter((e) => e != null)
|
|
5431
4438
|
.map((entry) => {
|
|
5432
4439
|
if (entry === null) {
|
|
@@ -5434,6 +4441,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
5434
4441
|
}
|
|
5435
4442
|
return deserializeAws_json1_1Tag(entry, context);
|
|
5436
4443
|
});
|
|
4444
|
+
return retVal;
|
|
5437
4445
|
};
|
|
5438
4446
|
const deserializeAws_json1_1TagResourceOutput = (output, context) => {
|
|
5439
4447
|
return {};
|
|
@@ -5480,7 +4488,7 @@ const deserializeAws_json1_1ThirdPartyJobDetails = (output, context) => {
|
|
|
5480
4488
|
};
|
|
5481
4489
|
};
|
|
5482
4490
|
const deserializeAws_json1_1ThirdPartyJobList = (output, context) => {
|
|
5483
|
-
|
|
4491
|
+
const retVal = (output || [])
|
|
5484
4492
|
.filter((e) => e != null)
|
|
5485
4493
|
.map((entry) => {
|
|
5486
4494
|
if (entry === null) {
|
|
@@ -5488,6 +4496,7 @@ const deserializeAws_json1_1ThirdPartyJobList = (output, context) => {
|
|
|
5488
4496
|
}
|
|
5489
4497
|
return deserializeAws_json1_1ThirdPartyJob(entry, context);
|
|
5490
4498
|
});
|
|
4499
|
+
return retVal;
|
|
5491
4500
|
};
|
|
5492
4501
|
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
5493
4502
|
return {
|
|
@@ -5546,7 +4555,7 @@ const deserializeAws_json1_1WebhookFilterRule = (output, context) => {
|
|
|
5546
4555
|
};
|
|
5547
4556
|
};
|
|
5548
4557
|
const deserializeAws_json1_1WebhookFilters = (output, context) => {
|
|
5549
|
-
|
|
4558
|
+
const retVal = (output || [])
|
|
5550
4559
|
.filter((e) => e != null)
|
|
5551
4560
|
.map((entry) => {
|
|
5552
4561
|
if (entry === null) {
|
|
@@ -5554,9 +4563,10 @@ const deserializeAws_json1_1WebhookFilters = (output, context) => {
|
|
|
5554
4563
|
}
|
|
5555
4564
|
return deserializeAws_json1_1WebhookFilterRule(entry, context);
|
|
5556
4565
|
});
|
|
4566
|
+
return retVal;
|
|
5557
4567
|
};
|
|
5558
4568
|
const deserializeAws_json1_1WebhookList = (output, context) => {
|
|
5559
|
-
|
|
4569
|
+
const retVal = (output || [])
|
|
5560
4570
|
.filter((e) => e != null)
|
|
5561
4571
|
.map((entry) => {
|
|
5562
4572
|
if (entry === null) {
|
|
@@ -5564,6 +4574,7 @@ const deserializeAws_json1_1WebhookList = (output, context) => {
|
|
|
5564
4574
|
}
|
|
5565
4575
|
return deserializeAws_json1_1ListWebhookItem(entry, context);
|
|
5566
4576
|
});
|
|
4577
|
+
return retVal;
|
|
5567
4578
|
};
|
|
5568
4579
|
const deserializeAws_json1_1WebhookNotFoundException = (output, context) => {
|
|
5569
4580
|
return {};
|