@aws-sdk/client-ecr 3.52.0 → 3.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ECRServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +439 -3
- package/dist-cjs/protocols/Aws_json1_1.js +503 -1673
- package/dist-es/index.js +1 -0
- package/dist-es/models/ECRServiceException.js +12 -0
- package/dist-es/models/models_0.js +403 -1
- package/dist-es/protocols/Aws_json1_1.js +1010 -1772
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ECRServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +201 -149
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ECRServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +151 -133
- package/package.json +26 -26
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1DeletePullThroughCacheRuleCommand = exports.deseri
|
|
|
4
4
|
exports.deserializeAws_json1_1UploadLayerPartCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1StartImageScanCommand = exports.deserializeAws_json1_1SetRepositoryPolicyCommand = exports.deserializeAws_json1_1PutReplicationConfigurationCommand = exports.deserializeAws_json1_1PutRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1PutRegistryPolicyCommand = exports.deserializeAws_json1_1PutLifecyclePolicyCommand = exports.deserializeAws_json1_1PutImageTagMutabilityCommand = exports.deserializeAws_json1_1PutImageScanningConfigurationCommand = exports.deserializeAws_json1_1PutImageCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListImagesCommand = exports.deserializeAws_json1_1InitiateLayerUploadCommand = exports.deserializeAws_json1_1GetRepositoryPolicyCommand = exports.deserializeAws_json1_1GetRegistryScanningConfigurationCommand = exports.deserializeAws_json1_1GetRegistryPolicyCommand = exports.deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = exports.deserializeAws_json1_1GetLifecyclePolicyCommand = exports.deserializeAws_json1_1GetDownloadUrlForLayerCommand = exports.deserializeAws_json1_1GetAuthorizationTokenCommand = exports.deserializeAws_json1_1DescribeRepositoriesCommand = exports.deserializeAws_json1_1DescribeRegistryCommand = exports.deserializeAws_json1_1DescribePullThroughCacheRulesCommand = exports.deserializeAws_json1_1DescribeImageScanFindingsCommand = exports.deserializeAws_json1_1DescribeImagesCommand = exports.deserializeAws_json1_1DescribeImageReplicationStatusCommand = exports.deserializeAws_json1_1DeleteRepositoryPolicyCommand = exports.deserializeAws_json1_1DeleteRepositoryCommand = exports.deserializeAws_json1_1DeleteRegistryPolicyCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const ECRServiceException_1 = require("../models/ECRServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -439,43 +441,22 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
439
441
|
switch (errorCode) {
|
|
440
442
|
case "InvalidParameterException":
|
|
441
443
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
442
|
-
|
|
443
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
444
|
-
name: errorCode,
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
};
|
|
447
|
-
break;
|
|
444
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
448
445
|
case "RepositoryNotFoundException":
|
|
449
446
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
450
|
-
|
|
451
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
452
|
-
name: errorCode,
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
};
|
|
455
|
-
break;
|
|
447
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
456
448
|
case "ServerException":
|
|
457
449
|
case "com.amazonaws.ecr#ServerException":
|
|
458
|
-
|
|
459
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
460
|
-
name: errorCode,
|
|
461
|
-
$metadata: deserializeMetadata(output),
|
|
462
|
-
};
|
|
463
|
-
break;
|
|
450
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
464
451
|
default:
|
|
465
452
|
const parsedBody = parsedOutput.body;
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
...parsedBody,
|
|
469
|
-
name: `${errorCode}`,
|
|
470
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
453
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
454
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
471
455
|
$fault: "client",
|
|
472
456
|
$metadata: deserializeMetadata(output),
|
|
473
|
-
};
|
|
457
|
+
});
|
|
458
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
474
459
|
}
|
|
475
|
-
const message = response.message || response.Message || errorCode;
|
|
476
|
-
response.message = message;
|
|
477
|
-
delete response.Message;
|
|
478
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
479
460
|
};
|
|
480
461
|
const deserializeAws_json1_1BatchDeleteImageCommand = async (output, context) => {
|
|
481
462
|
if (output.statusCode >= 300) {
|
|
@@ -502,43 +483,22 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
502
483
|
switch (errorCode) {
|
|
503
484
|
case "InvalidParameterException":
|
|
504
485
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
505
|
-
|
|
506
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
507
|
-
name: errorCode,
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
};
|
|
510
|
-
break;
|
|
486
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
511
487
|
case "RepositoryNotFoundException":
|
|
512
488
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
513
|
-
|
|
514
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
515
|
-
name: errorCode,
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
};
|
|
518
|
-
break;
|
|
489
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
519
490
|
case "ServerException":
|
|
520
491
|
case "com.amazonaws.ecr#ServerException":
|
|
521
|
-
|
|
522
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
523
|
-
name: errorCode,
|
|
524
|
-
$metadata: deserializeMetadata(output),
|
|
525
|
-
};
|
|
526
|
-
break;
|
|
492
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
527
493
|
default:
|
|
528
494
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
...parsedBody,
|
|
532
|
-
name: `${errorCode}`,
|
|
533
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
495
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
496
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
534
497
|
$fault: "client",
|
|
535
498
|
$metadata: deserializeMetadata(output),
|
|
536
|
-
};
|
|
499
|
+
});
|
|
500
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
537
501
|
}
|
|
538
|
-
const message = response.message || response.Message || errorCode;
|
|
539
|
-
response.message = message;
|
|
540
|
-
delete response.Message;
|
|
541
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
542
502
|
};
|
|
543
503
|
const deserializeAws_json1_1BatchGetImageCommand = async (output, context) => {
|
|
544
504
|
if (output.statusCode >= 300) {
|
|
@@ -565,43 +525,22 @@ const deserializeAws_json1_1BatchGetImageCommandError = async (output, context)
|
|
|
565
525
|
switch (errorCode) {
|
|
566
526
|
case "InvalidParameterException":
|
|
567
527
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
568
|
-
|
|
569
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
570
|
-
name: errorCode,
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
};
|
|
573
|
-
break;
|
|
528
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
574
529
|
case "RepositoryNotFoundException":
|
|
575
530
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
576
|
-
|
|
577
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
578
|
-
name: errorCode,
|
|
579
|
-
$metadata: deserializeMetadata(output),
|
|
580
|
-
};
|
|
581
|
-
break;
|
|
531
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
582
532
|
case "ServerException":
|
|
583
533
|
case "com.amazonaws.ecr#ServerException":
|
|
584
|
-
|
|
585
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
586
|
-
name: errorCode,
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
};
|
|
589
|
-
break;
|
|
534
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
590
535
|
default:
|
|
591
536
|
const parsedBody = parsedOutput.body;
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
...parsedBody,
|
|
595
|
-
name: `${errorCode}`,
|
|
596
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
537
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
538
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
597
539
|
$fault: "client",
|
|
598
540
|
$metadata: deserializeMetadata(output),
|
|
599
|
-
};
|
|
541
|
+
});
|
|
542
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
600
543
|
}
|
|
601
|
-
const message = response.message || response.Message || errorCode;
|
|
602
|
-
response.message = message;
|
|
603
|
-
delete response.Message;
|
|
604
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
605
544
|
};
|
|
606
545
|
const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommand = async (output, context) => {
|
|
607
546
|
if (output.statusCode >= 300) {
|
|
@@ -628,51 +567,25 @@ const deserializeAws_json1_1BatchGetRepositoryScanningConfigurationCommandError
|
|
|
628
567
|
switch (errorCode) {
|
|
629
568
|
case "InvalidParameterException":
|
|
630
569
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
631
|
-
|
|
632
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
633
|
-
name: errorCode,
|
|
634
|
-
$metadata: deserializeMetadata(output),
|
|
635
|
-
};
|
|
636
|
-
break;
|
|
570
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
637
571
|
case "RepositoryNotFoundException":
|
|
638
572
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
639
|
-
|
|
640
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
641
|
-
name: errorCode,
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
644
|
-
break;
|
|
573
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
645
574
|
case "ServerException":
|
|
646
575
|
case "com.amazonaws.ecr#ServerException":
|
|
647
|
-
|
|
648
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
576
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
653
577
|
case "ValidationException":
|
|
654
578
|
case "com.amazonaws.ecr#ValidationException":
|
|
655
|
-
|
|
656
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
579
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
661
580
|
default:
|
|
662
581
|
const parsedBody = parsedOutput.body;
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
...parsedBody,
|
|
666
|
-
name: `${errorCode}`,
|
|
667
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
582
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
583
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
668
584
|
$fault: "client",
|
|
669
585
|
$metadata: deserializeMetadata(output),
|
|
670
|
-
};
|
|
586
|
+
});
|
|
587
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
671
588
|
}
|
|
672
|
-
const message = response.message || response.Message || errorCode;
|
|
673
|
-
response.message = message;
|
|
674
|
-
delete response.Message;
|
|
675
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
676
589
|
};
|
|
677
590
|
const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => {
|
|
678
591
|
if (output.statusCode >= 300) {
|
|
@@ -699,91 +612,40 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
699
612
|
switch (errorCode) {
|
|
700
613
|
case "EmptyUploadException":
|
|
701
614
|
case "com.amazonaws.ecr#EmptyUploadException":
|
|
702
|
-
|
|
703
|
-
...(await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)),
|
|
704
|
-
name: errorCode,
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
};
|
|
707
|
-
break;
|
|
615
|
+
throw await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context);
|
|
708
616
|
case "InvalidLayerException":
|
|
709
617
|
case "com.amazonaws.ecr#InvalidLayerException":
|
|
710
|
-
|
|
711
|
-
...(await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)),
|
|
712
|
-
name: errorCode,
|
|
713
|
-
$metadata: deserializeMetadata(output),
|
|
714
|
-
};
|
|
715
|
-
break;
|
|
618
|
+
throw await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context);
|
|
716
619
|
case "InvalidParameterException":
|
|
717
620
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
718
|
-
|
|
719
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
720
|
-
name: errorCode,
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
};
|
|
723
|
-
break;
|
|
621
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
724
622
|
case "KmsException":
|
|
725
623
|
case "com.amazonaws.ecr#KmsException":
|
|
726
|
-
|
|
727
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
728
|
-
name: errorCode,
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
};
|
|
731
|
-
break;
|
|
624
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
732
625
|
case "LayerAlreadyExistsException":
|
|
733
626
|
case "com.amazonaws.ecr#LayerAlreadyExistsException":
|
|
734
|
-
|
|
735
|
-
...(await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
736
|
-
name: errorCode,
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
};
|
|
739
|
-
break;
|
|
627
|
+
throw await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
740
628
|
case "LayerPartTooSmallException":
|
|
741
629
|
case "com.amazonaws.ecr#LayerPartTooSmallException":
|
|
742
|
-
|
|
743
|
-
...(await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)),
|
|
744
|
-
name: errorCode,
|
|
745
|
-
$metadata: deserializeMetadata(output),
|
|
746
|
-
};
|
|
747
|
-
break;
|
|
630
|
+
throw await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context);
|
|
748
631
|
case "RepositoryNotFoundException":
|
|
749
632
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
750
|
-
|
|
751
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
752
|
-
name: errorCode,
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
};
|
|
755
|
-
break;
|
|
633
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
756
634
|
case "ServerException":
|
|
757
635
|
case "com.amazonaws.ecr#ServerException":
|
|
758
|
-
|
|
759
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
760
|
-
name: errorCode,
|
|
761
|
-
$metadata: deserializeMetadata(output),
|
|
762
|
-
};
|
|
763
|
-
break;
|
|
636
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
764
637
|
case "UploadNotFoundException":
|
|
765
638
|
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
766
|
-
|
|
767
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
768
|
-
name: errorCode,
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
};
|
|
771
|
-
break;
|
|
639
|
+
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
772
640
|
default:
|
|
773
641
|
const parsedBody = parsedOutput.body;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
...parsedBody,
|
|
777
|
-
name: `${errorCode}`,
|
|
778
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
642
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
643
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
779
644
|
$fault: "client",
|
|
780
645
|
$metadata: deserializeMetadata(output),
|
|
781
|
-
};
|
|
646
|
+
});
|
|
647
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
782
648
|
}
|
|
783
|
-
const message = response.message || response.Message || errorCode;
|
|
784
|
-
response.message = message;
|
|
785
|
-
delete response.Message;
|
|
786
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
787
649
|
};
|
|
788
650
|
const deserializeAws_json1_1CreatePullThroughCacheRuleCommand = async (output, context) => {
|
|
789
651
|
if (output.statusCode >= 300) {
|
|
@@ -810,67 +672,31 @@ const deserializeAws_json1_1CreatePullThroughCacheRuleCommandError = async (outp
|
|
|
810
672
|
switch (errorCode) {
|
|
811
673
|
case "InvalidParameterException":
|
|
812
674
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
813
|
-
|
|
814
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
815
|
-
name: errorCode,
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
818
|
-
break;
|
|
675
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
819
676
|
case "LimitExceededException":
|
|
820
677
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
821
|
-
|
|
822
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
823
|
-
name: errorCode,
|
|
824
|
-
$metadata: deserializeMetadata(output),
|
|
825
|
-
};
|
|
826
|
-
break;
|
|
678
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
827
679
|
case "PullThroughCacheRuleAlreadyExistsException":
|
|
828
680
|
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException":
|
|
829
|
-
|
|
830
|
-
...(await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
831
|
-
name: errorCode,
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
};
|
|
834
|
-
break;
|
|
681
|
+
throw await deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
835
682
|
case "ServerException":
|
|
836
683
|
case "com.amazonaws.ecr#ServerException":
|
|
837
|
-
|
|
838
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
839
|
-
name: errorCode,
|
|
840
|
-
$metadata: deserializeMetadata(output),
|
|
841
|
-
};
|
|
842
|
-
break;
|
|
684
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
843
685
|
case "UnsupportedUpstreamRegistryException":
|
|
844
686
|
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException":
|
|
845
|
-
|
|
846
|
-
...(await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(parsedOutput, context)),
|
|
847
|
-
name: errorCode,
|
|
848
|
-
$metadata: deserializeMetadata(output),
|
|
849
|
-
};
|
|
850
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse(parsedOutput, context);
|
|
851
688
|
case "ValidationException":
|
|
852
689
|
case "com.amazonaws.ecr#ValidationException":
|
|
853
|
-
|
|
854
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
855
|
-
name: errorCode,
|
|
856
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
-
};
|
|
858
|
-
break;
|
|
690
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
859
691
|
default:
|
|
860
692
|
const parsedBody = parsedOutput.body;
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
...parsedBody,
|
|
864
|
-
name: `${errorCode}`,
|
|
865
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
693
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
694
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
866
695
|
$fault: "client",
|
|
867
696
|
$metadata: deserializeMetadata(output),
|
|
868
|
-
};
|
|
697
|
+
});
|
|
698
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
869
699
|
}
|
|
870
|
-
const message = response.message || response.Message || errorCode;
|
|
871
|
-
response.message = message;
|
|
872
|
-
delete response.Message;
|
|
873
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
874
700
|
};
|
|
875
701
|
const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => {
|
|
876
702
|
if (output.statusCode >= 300) {
|
|
@@ -897,75 +723,34 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
897
723
|
switch (errorCode) {
|
|
898
724
|
case "InvalidParameterException":
|
|
899
725
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
900
|
-
|
|
901
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
902
|
-
name: errorCode,
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
905
|
-
break;
|
|
726
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
906
727
|
case "InvalidTagParameterException":
|
|
907
728
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
908
|
-
|
|
909
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
910
|
-
name: errorCode,
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
};
|
|
913
|
-
break;
|
|
729
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
914
730
|
case "KmsException":
|
|
915
731
|
case "com.amazonaws.ecr#KmsException":
|
|
916
|
-
|
|
917
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
918
|
-
name: errorCode,
|
|
919
|
-
$metadata: deserializeMetadata(output),
|
|
920
|
-
};
|
|
921
|
-
break;
|
|
732
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
922
733
|
case "LimitExceededException":
|
|
923
734
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
924
|
-
|
|
925
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
926
|
-
name: errorCode,
|
|
927
|
-
$metadata: deserializeMetadata(output),
|
|
928
|
-
};
|
|
929
|
-
break;
|
|
735
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
930
736
|
case "RepositoryAlreadyExistsException":
|
|
931
737
|
case "com.amazonaws.ecr#RepositoryAlreadyExistsException":
|
|
932
|
-
|
|
933
|
-
...(await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
934
|
-
name: errorCode,
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
};
|
|
937
|
-
break;
|
|
738
|
+
throw await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
938
739
|
case "ServerException":
|
|
939
740
|
case "com.amazonaws.ecr#ServerException":
|
|
940
|
-
|
|
941
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
942
|
-
name: errorCode,
|
|
943
|
-
$metadata: deserializeMetadata(output),
|
|
944
|
-
};
|
|
945
|
-
break;
|
|
741
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
946
742
|
case "TooManyTagsException":
|
|
947
743
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
948
|
-
|
|
949
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
950
|
-
name: errorCode,
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
};
|
|
953
|
-
break;
|
|
744
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
954
745
|
default:
|
|
955
746
|
const parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
...parsedBody,
|
|
959
|
-
name: `${errorCode}`,
|
|
960
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
747
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
961
749
|
$fault: "client",
|
|
962
750
|
$metadata: deserializeMetadata(output),
|
|
963
|
-
};
|
|
751
|
+
});
|
|
752
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
964
753
|
}
|
|
965
|
-
const message = response.message || response.Message || errorCode;
|
|
966
|
-
response.message = message;
|
|
967
|
-
delete response.Message;
|
|
968
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
969
754
|
};
|
|
970
755
|
const deserializeAws_json1_1DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
971
756
|
if (output.statusCode >= 300) {
|
|
@@ -992,51 +777,25 @@ const deserializeAws_json1_1DeleteLifecyclePolicyCommandError = async (output, c
|
|
|
992
777
|
switch (errorCode) {
|
|
993
778
|
case "InvalidParameterException":
|
|
994
779
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
995
|
-
|
|
996
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
997
|
-
name: errorCode,
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
};
|
|
1000
|
-
break;
|
|
780
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1001
781
|
case "LifecyclePolicyNotFoundException":
|
|
1002
782
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1003
|
-
|
|
1004
|
-
...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1005
|
-
name: errorCode,
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
};
|
|
1008
|
-
break;
|
|
783
|
+
throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1009
784
|
case "RepositoryNotFoundException":
|
|
1010
785
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1011
|
-
|
|
1012
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1013
|
-
name: errorCode,
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
};
|
|
1016
|
-
break;
|
|
786
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1017
787
|
case "ServerException":
|
|
1018
788
|
case "com.amazonaws.ecr#ServerException":
|
|
1019
|
-
|
|
1020
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1021
|
-
name: errorCode,
|
|
1022
|
-
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
1024
|
-
break;
|
|
789
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1025
790
|
default:
|
|
1026
791
|
const parsedBody = parsedOutput.body;
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
...parsedBody,
|
|
1030
|
-
name: `${errorCode}`,
|
|
1031
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
792
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
793
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1032
794
|
$fault: "client",
|
|
1033
795
|
$metadata: deserializeMetadata(output),
|
|
1034
|
-
};
|
|
796
|
+
});
|
|
797
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1035
798
|
}
|
|
1036
|
-
const message = response.message || response.Message || errorCode;
|
|
1037
|
-
response.message = message;
|
|
1038
|
-
delete response.Message;
|
|
1039
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1040
799
|
};
|
|
1041
800
|
const deserializeAws_json1_1DeletePullThroughCacheRuleCommand = async (output, context) => {
|
|
1042
801
|
if (output.statusCode >= 300) {
|
|
@@ -1063,51 +822,25 @@ const deserializeAws_json1_1DeletePullThroughCacheRuleCommandError = async (outp
|
|
|
1063
822
|
switch (errorCode) {
|
|
1064
823
|
case "InvalidParameterException":
|
|
1065
824
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1066
|
-
|
|
1067
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1068
|
-
name: errorCode,
|
|
1069
|
-
$metadata: deserializeMetadata(output),
|
|
1070
|
-
};
|
|
1071
|
-
break;
|
|
825
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1072
826
|
case "PullThroughCacheRuleNotFoundException":
|
|
1073
827
|
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1074
|
-
|
|
1075
|
-
...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)),
|
|
1076
|
-
name: errorCode,
|
|
1077
|
-
$metadata: deserializeMetadata(output),
|
|
1078
|
-
};
|
|
1079
|
-
break;
|
|
828
|
+
throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context);
|
|
1080
829
|
case "ServerException":
|
|
1081
830
|
case "com.amazonaws.ecr#ServerException":
|
|
1082
|
-
|
|
1083
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1084
|
-
name: errorCode,
|
|
1085
|
-
$metadata: deserializeMetadata(output),
|
|
1086
|
-
};
|
|
1087
|
-
break;
|
|
831
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1088
832
|
case "ValidationException":
|
|
1089
833
|
case "com.amazonaws.ecr#ValidationException":
|
|
1090
|
-
|
|
1091
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1092
|
-
name: errorCode,
|
|
1093
|
-
$metadata: deserializeMetadata(output),
|
|
1094
|
-
};
|
|
1095
|
-
break;
|
|
834
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1096
835
|
default:
|
|
1097
836
|
const parsedBody = parsedOutput.body;
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
...parsedBody,
|
|
1101
|
-
name: `${errorCode}`,
|
|
1102
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
837
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
838
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1103
839
|
$fault: "client",
|
|
1104
840
|
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
841
|
+
});
|
|
842
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1106
843
|
}
|
|
1107
|
-
const message = response.message || response.Message || errorCode;
|
|
1108
|
-
response.message = message;
|
|
1109
|
-
delete response.Message;
|
|
1110
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1111
844
|
};
|
|
1112
845
|
const deserializeAws_json1_1DeleteRegistryPolicyCommand = async (output, context) => {
|
|
1113
846
|
if (output.statusCode >= 300) {
|
|
@@ -1134,51 +867,25 @@ const deserializeAws_json1_1DeleteRegistryPolicyCommandError = async (output, co
|
|
|
1134
867
|
switch (errorCode) {
|
|
1135
868
|
case "InvalidParameterException":
|
|
1136
869
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1137
|
-
|
|
1138
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1139
|
-
name: errorCode,
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
};
|
|
1142
|
-
break;
|
|
870
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1143
871
|
case "RegistryPolicyNotFoundException":
|
|
1144
872
|
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
1145
|
-
|
|
1146
|
-
...(await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1147
|
-
name: errorCode,
|
|
1148
|
-
$metadata: deserializeMetadata(output),
|
|
1149
|
-
};
|
|
1150
|
-
break;
|
|
873
|
+
throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1151
874
|
case "ServerException":
|
|
1152
875
|
case "com.amazonaws.ecr#ServerException":
|
|
1153
|
-
|
|
1154
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1155
|
-
name: errorCode,
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
};
|
|
1158
|
-
break;
|
|
876
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1159
877
|
case "ValidationException":
|
|
1160
878
|
case "com.amazonaws.ecr#ValidationException":
|
|
1161
|
-
|
|
1162
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1163
|
-
name: errorCode,
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
};
|
|
1166
|
-
break;
|
|
879
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1167
880
|
default:
|
|
1168
881
|
const parsedBody = parsedOutput.body;
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
...parsedBody,
|
|
1172
|
-
name: `${errorCode}`,
|
|
1173
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
882
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
883
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1174
884
|
$fault: "client",
|
|
1175
885
|
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
886
|
+
});
|
|
887
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1177
888
|
}
|
|
1178
|
-
const message = response.message || response.Message || errorCode;
|
|
1179
|
-
response.message = message;
|
|
1180
|
-
delete response.Message;
|
|
1181
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1182
889
|
};
|
|
1183
890
|
const deserializeAws_json1_1DeleteRepositoryCommand = async (output, context) => {
|
|
1184
891
|
if (output.statusCode >= 300) {
|
|
@@ -1205,59 +912,28 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
1205
912
|
switch (errorCode) {
|
|
1206
913
|
case "InvalidParameterException":
|
|
1207
914
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1208
|
-
|
|
1209
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1210
|
-
name: errorCode,
|
|
1211
|
-
$metadata: deserializeMetadata(output),
|
|
1212
|
-
};
|
|
1213
|
-
break;
|
|
915
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1214
916
|
case "KmsException":
|
|
1215
917
|
case "com.amazonaws.ecr#KmsException":
|
|
1216
|
-
|
|
1217
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
1218
|
-
name: errorCode,
|
|
1219
|
-
$metadata: deserializeMetadata(output),
|
|
1220
|
-
};
|
|
1221
|
-
break;
|
|
918
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
1222
919
|
case "RepositoryNotEmptyException":
|
|
1223
920
|
case "com.amazonaws.ecr#RepositoryNotEmptyException":
|
|
1224
|
-
|
|
1225
|
-
...(await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)),
|
|
1226
|
-
name: errorCode,
|
|
1227
|
-
$metadata: deserializeMetadata(output),
|
|
1228
|
-
};
|
|
1229
|
-
break;
|
|
921
|
+
throw await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context);
|
|
1230
922
|
case "RepositoryNotFoundException":
|
|
1231
923
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1232
|
-
|
|
1233
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1234
|
-
name: errorCode,
|
|
1235
|
-
$metadata: deserializeMetadata(output),
|
|
1236
|
-
};
|
|
1237
|
-
break;
|
|
924
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1238
925
|
case "ServerException":
|
|
1239
926
|
case "com.amazonaws.ecr#ServerException":
|
|
1240
|
-
|
|
1241
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1242
|
-
name: errorCode,
|
|
1243
|
-
$metadata: deserializeMetadata(output),
|
|
1244
|
-
};
|
|
1245
|
-
break;
|
|
927
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1246
928
|
default:
|
|
1247
929
|
const parsedBody = parsedOutput.body;
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
...parsedBody,
|
|
1251
|
-
name: `${errorCode}`,
|
|
1252
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
930
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1253
932
|
$fault: "client",
|
|
1254
933
|
$metadata: deserializeMetadata(output),
|
|
1255
|
-
};
|
|
934
|
+
});
|
|
935
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1256
936
|
}
|
|
1257
|
-
const message = response.message || response.Message || errorCode;
|
|
1258
|
-
response.message = message;
|
|
1259
|
-
delete response.Message;
|
|
1260
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1261
937
|
};
|
|
1262
938
|
const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
1263
939
|
if (output.statusCode >= 300) {
|
|
@@ -1284,51 +960,25 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
1284
960
|
switch (errorCode) {
|
|
1285
961
|
case "InvalidParameterException":
|
|
1286
962
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1287
|
-
|
|
1288
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1289
|
-
name: errorCode,
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
};
|
|
1292
|
-
break;
|
|
963
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1293
964
|
case "RepositoryNotFoundException":
|
|
1294
965
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1295
|
-
|
|
1296
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1297
|
-
name: errorCode,
|
|
1298
|
-
$metadata: deserializeMetadata(output),
|
|
1299
|
-
};
|
|
1300
|
-
break;
|
|
966
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1301
967
|
case "RepositoryPolicyNotFoundException":
|
|
1302
968
|
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
969
|
+
throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1309
970
|
case "ServerException":
|
|
1310
971
|
case "com.amazonaws.ecr#ServerException":
|
|
1311
|
-
|
|
1312
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
972
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1317
973
|
default:
|
|
1318
974
|
const parsedBody = parsedOutput.body;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
...parsedBody,
|
|
1322
|
-
name: `${errorCode}`,
|
|
1323
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
975
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
976
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1324
977
|
$fault: "client",
|
|
1325
978
|
$metadata: deserializeMetadata(output),
|
|
1326
|
-
};
|
|
979
|
+
});
|
|
980
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1327
981
|
}
|
|
1328
|
-
const message = response.message || response.Message || errorCode;
|
|
1329
|
-
response.message = message;
|
|
1330
|
-
delete response.Message;
|
|
1331
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1332
982
|
};
|
|
1333
983
|
const deserializeAws_json1_1DescribeImageReplicationStatusCommand = async (output, context) => {
|
|
1334
984
|
if (output.statusCode >= 300) {
|
|
@@ -1355,59 +1005,28 @@ const deserializeAws_json1_1DescribeImageReplicationStatusCommandError = async (
|
|
|
1355
1005
|
switch (errorCode) {
|
|
1356
1006
|
case "ImageNotFoundException":
|
|
1357
1007
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1358
|
-
|
|
1359
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1008
|
+
throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context);
|
|
1364
1009
|
case "InvalidParameterException":
|
|
1365
1010
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1366
|
-
|
|
1367
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1368
|
-
name: errorCode,
|
|
1369
|
-
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
1371
|
-
break;
|
|
1011
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1372
1012
|
case "RepositoryNotFoundException":
|
|
1373
1013
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1374
|
-
|
|
1375
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1376
|
-
name: errorCode,
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
};
|
|
1379
|
-
break;
|
|
1014
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1380
1015
|
case "ServerException":
|
|
1381
1016
|
case "com.amazonaws.ecr#ServerException":
|
|
1382
|
-
|
|
1383
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1384
|
-
name: errorCode,
|
|
1385
|
-
$metadata: deserializeMetadata(output),
|
|
1386
|
-
};
|
|
1387
|
-
break;
|
|
1017
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1388
1018
|
case "ValidationException":
|
|
1389
1019
|
case "com.amazonaws.ecr#ValidationException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
1020
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1396
1021
|
default:
|
|
1397
1022
|
const parsedBody = parsedOutput.body;
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
...parsedBody,
|
|
1401
|
-
name: `${errorCode}`,
|
|
1402
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1023
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1024
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1403
1025
|
$fault: "client",
|
|
1404
1026
|
$metadata: deserializeMetadata(output),
|
|
1405
|
-
};
|
|
1027
|
+
});
|
|
1028
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1406
1029
|
}
|
|
1407
|
-
const message = response.message || response.Message || errorCode;
|
|
1408
|
-
response.message = message;
|
|
1409
|
-
delete response.Message;
|
|
1410
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1411
1030
|
};
|
|
1412
1031
|
const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => {
|
|
1413
1032
|
if (output.statusCode >= 300) {
|
|
@@ -1434,51 +1053,25 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
1434
1053
|
switch (errorCode) {
|
|
1435
1054
|
case "ImageNotFoundException":
|
|
1436
1055
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1437
|
-
|
|
1438
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1439
|
-
name: errorCode,
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1442
|
-
break;
|
|
1056
|
+
throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context);
|
|
1443
1057
|
case "InvalidParameterException":
|
|
1444
1058
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1059
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1451
1060
|
case "RepositoryNotFoundException":
|
|
1452
1061
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1062
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1459
1063
|
case "ServerException":
|
|
1460
1064
|
case "com.amazonaws.ecr#ServerException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1065
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1467
1066
|
default:
|
|
1468
1067
|
const parsedBody = parsedOutput.body;
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
...parsedBody,
|
|
1472
|
-
name: `${errorCode}`,
|
|
1473
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1068
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1069
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1474
1070
|
$fault: "client",
|
|
1475
1071
|
$metadata: deserializeMetadata(output),
|
|
1476
|
-
};
|
|
1072
|
+
});
|
|
1073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1477
1074
|
}
|
|
1478
|
-
const message = response.message || response.Message || errorCode;
|
|
1479
|
-
response.message = message;
|
|
1480
|
-
delete response.Message;
|
|
1481
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1482
1075
|
};
|
|
1483
1076
|
const deserializeAws_json1_1DescribeImageScanFindingsCommand = async (output, context) => {
|
|
1484
1077
|
if (output.statusCode >= 300) {
|
|
@@ -1505,67 +1098,31 @@ const deserializeAws_json1_1DescribeImageScanFindingsCommandError = async (outpu
|
|
|
1505
1098
|
switch (errorCode) {
|
|
1506
1099
|
case "ImageNotFoundException":
|
|
1507
1100
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
1508
|
-
|
|
1509
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1510
|
-
name: errorCode,
|
|
1511
|
-
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1513
|
-
break;
|
|
1101
|
+
throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context);
|
|
1514
1102
|
case "InvalidParameterException":
|
|
1515
1103
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1516
|
-
|
|
1517
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1518
|
-
name: errorCode,
|
|
1519
|
-
$metadata: deserializeMetadata(output),
|
|
1520
|
-
};
|
|
1521
|
-
break;
|
|
1104
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1522
1105
|
case "RepositoryNotFoundException":
|
|
1523
1106
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1524
|
-
|
|
1525
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1526
|
-
name: errorCode,
|
|
1527
|
-
$metadata: deserializeMetadata(output),
|
|
1528
|
-
};
|
|
1529
|
-
break;
|
|
1107
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1530
1108
|
case "ScanNotFoundException":
|
|
1531
1109
|
case "com.amazonaws.ecr#ScanNotFoundException":
|
|
1532
|
-
|
|
1533
|
-
...(await deserializeAws_json1_1ScanNotFoundExceptionResponse(parsedOutput, context)),
|
|
1534
|
-
name: errorCode,
|
|
1535
|
-
$metadata: deserializeMetadata(output),
|
|
1536
|
-
};
|
|
1537
|
-
break;
|
|
1110
|
+
throw await deserializeAws_json1_1ScanNotFoundExceptionResponse(parsedOutput, context);
|
|
1538
1111
|
case "ServerException":
|
|
1539
1112
|
case "com.amazonaws.ecr#ServerException":
|
|
1540
|
-
|
|
1541
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1542
|
-
name: errorCode,
|
|
1543
|
-
$metadata: deserializeMetadata(output),
|
|
1544
|
-
};
|
|
1545
|
-
break;
|
|
1113
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1546
1114
|
case "ValidationException":
|
|
1547
1115
|
case "com.amazonaws.ecr#ValidationException":
|
|
1548
|
-
|
|
1549
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1550
|
-
name: errorCode,
|
|
1551
|
-
$metadata: deserializeMetadata(output),
|
|
1552
|
-
};
|
|
1553
|
-
break;
|
|
1116
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1554
1117
|
default:
|
|
1555
1118
|
const parsedBody = parsedOutput.body;
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
...parsedBody,
|
|
1559
|
-
name: `${errorCode}`,
|
|
1560
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1119
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1120
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1561
1121
|
$fault: "client",
|
|
1562
1122
|
$metadata: deserializeMetadata(output),
|
|
1563
|
-
};
|
|
1123
|
+
});
|
|
1124
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1564
1125
|
}
|
|
1565
|
-
const message = response.message || response.Message || errorCode;
|
|
1566
|
-
response.message = message;
|
|
1567
|
-
delete response.Message;
|
|
1568
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1569
1126
|
};
|
|
1570
1127
|
const deserializeAws_json1_1DescribePullThroughCacheRulesCommand = async (output, context) => {
|
|
1571
1128
|
if (output.statusCode >= 300) {
|
|
@@ -1592,51 +1149,25 @@ const deserializeAws_json1_1DescribePullThroughCacheRulesCommandError = async (o
|
|
|
1592
1149
|
switch (errorCode) {
|
|
1593
1150
|
case "InvalidParameterException":
|
|
1594
1151
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1595
|
-
|
|
1596
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1597
|
-
name: errorCode,
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
};
|
|
1600
|
-
break;
|
|
1152
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1601
1153
|
case "PullThroughCacheRuleNotFoundException":
|
|
1602
1154
|
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException":
|
|
1603
|
-
|
|
1604
|
-
...(await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context)),
|
|
1605
|
-
name: errorCode,
|
|
1606
|
-
$metadata: deserializeMetadata(output),
|
|
1607
|
-
};
|
|
1608
|
-
break;
|
|
1155
|
+
throw await deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse(parsedOutput, context);
|
|
1609
1156
|
case "ServerException":
|
|
1610
1157
|
case "com.amazonaws.ecr#ServerException":
|
|
1611
|
-
|
|
1612
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1613
|
-
name: errorCode,
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
};
|
|
1616
|
-
break;
|
|
1158
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1617
1159
|
case "ValidationException":
|
|
1618
1160
|
case "com.amazonaws.ecr#ValidationException":
|
|
1619
|
-
|
|
1620
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1621
|
-
name: errorCode,
|
|
1622
|
-
$metadata: deserializeMetadata(output),
|
|
1623
|
-
};
|
|
1624
|
-
break;
|
|
1161
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1625
1162
|
default:
|
|
1626
1163
|
const parsedBody = parsedOutput.body;
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
...parsedBody,
|
|
1630
|
-
name: `${errorCode}`,
|
|
1631
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1164
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1165
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1632
1166
|
$fault: "client",
|
|
1633
1167
|
$metadata: deserializeMetadata(output),
|
|
1634
|
-
};
|
|
1168
|
+
});
|
|
1169
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1635
1170
|
}
|
|
1636
|
-
const message = response.message || response.Message || errorCode;
|
|
1637
|
-
response.message = message;
|
|
1638
|
-
delete response.Message;
|
|
1639
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1640
1171
|
};
|
|
1641
1172
|
const deserializeAws_json1_1DescribeRegistryCommand = async (output, context) => {
|
|
1642
1173
|
if (output.statusCode >= 300) {
|
|
@@ -1663,43 +1194,22 @@ const deserializeAws_json1_1DescribeRegistryCommandError = async (output, contex
|
|
|
1663
1194
|
switch (errorCode) {
|
|
1664
1195
|
case "InvalidParameterException":
|
|
1665
1196
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1666
|
-
|
|
1667
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1668
|
-
name: errorCode,
|
|
1669
|
-
$metadata: deserializeMetadata(output),
|
|
1670
|
-
};
|
|
1671
|
-
break;
|
|
1197
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1672
1198
|
case "ServerException":
|
|
1673
1199
|
case "com.amazonaws.ecr#ServerException":
|
|
1674
|
-
|
|
1675
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1676
|
-
name: errorCode,
|
|
1677
|
-
$metadata: deserializeMetadata(output),
|
|
1678
|
-
};
|
|
1679
|
-
break;
|
|
1200
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1680
1201
|
case "ValidationException":
|
|
1681
1202
|
case "com.amazonaws.ecr#ValidationException":
|
|
1682
|
-
|
|
1683
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
1684
|
-
name: errorCode,
|
|
1685
|
-
$metadata: deserializeMetadata(output),
|
|
1686
|
-
};
|
|
1687
|
-
break;
|
|
1203
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1688
1204
|
default:
|
|
1689
1205
|
const parsedBody = parsedOutput.body;
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
...parsedBody,
|
|
1693
|
-
name: `${errorCode}`,
|
|
1694
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1206
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1207
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
1208
|
$fault: "client",
|
|
1696
1209
|
$metadata: deserializeMetadata(output),
|
|
1697
|
-
};
|
|
1210
|
+
});
|
|
1211
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1698
1212
|
}
|
|
1699
|
-
const message = response.message || response.Message || errorCode;
|
|
1700
|
-
response.message = message;
|
|
1701
|
-
delete response.Message;
|
|
1702
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1703
1213
|
};
|
|
1704
1214
|
const deserializeAws_json1_1DescribeRepositoriesCommand = async (output, context) => {
|
|
1705
1215
|
if (output.statusCode >= 300) {
|
|
@@ -1726,43 +1236,22 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
1726
1236
|
switch (errorCode) {
|
|
1727
1237
|
case "InvalidParameterException":
|
|
1728
1238
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1729
|
-
|
|
1730
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1731
|
-
name: errorCode,
|
|
1732
|
-
$metadata: deserializeMetadata(output),
|
|
1733
|
-
};
|
|
1734
|
-
break;
|
|
1239
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1735
1240
|
case "RepositoryNotFoundException":
|
|
1736
1241
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1737
|
-
|
|
1738
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1739
|
-
name: errorCode,
|
|
1740
|
-
$metadata: deserializeMetadata(output),
|
|
1741
|
-
};
|
|
1742
|
-
break;
|
|
1242
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1743
1243
|
case "ServerException":
|
|
1744
1244
|
case "com.amazonaws.ecr#ServerException":
|
|
1745
|
-
|
|
1746
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1747
|
-
name: errorCode,
|
|
1748
|
-
$metadata: deserializeMetadata(output),
|
|
1749
|
-
};
|
|
1750
|
-
break;
|
|
1245
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1751
1246
|
default:
|
|
1752
1247
|
const parsedBody = parsedOutput.body;
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
...parsedBody,
|
|
1756
|
-
name: `${errorCode}`,
|
|
1757
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1248
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
1250
|
$fault: "client",
|
|
1759
1251
|
$metadata: deserializeMetadata(output),
|
|
1760
|
-
};
|
|
1252
|
+
});
|
|
1253
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1761
1254
|
}
|
|
1762
|
-
const message = response.message || response.Message || errorCode;
|
|
1763
|
-
response.message = message;
|
|
1764
|
-
delete response.Message;
|
|
1765
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1766
1255
|
};
|
|
1767
1256
|
const deserializeAws_json1_1GetAuthorizationTokenCommand = async (output, context) => {
|
|
1768
1257
|
if (output.statusCode >= 300) {
|
|
@@ -1789,35 +1278,19 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
1789
1278
|
switch (errorCode) {
|
|
1790
1279
|
case "InvalidParameterException":
|
|
1791
1280
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1792
|
-
|
|
1793
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1794
|
-
name: errorCode,
|
|
1795
|
-
$metadata: deserializeMetadata(output),
|
|
1796
|
-
};
|
|
1797
|
-
break;
|
|
1281
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1798
1282
|
case "ServerException":
|
|
1799
1283
|
case "com.amazonaws.ecr#ServerException":
|
|
1800
|
-
|
|
1801
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1802
|
-
name: errorCode,
|
|
1803
|
-
$metadata: deserializeMetadata(output),
|
|
1804
|
-
};
|
|
1805
|
-
break;
|
|
1284
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1806
1285
|
default:
|
|
1807
1286
|
const parsedBody = parsedOutput.body;
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
...parsedBody,
|
|
1811
|
-
name: `${errorCode}`,
|
|
1812
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1287
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1288
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1813
1289
|
$fault: "client",
|
|
1814
1290
|
$metadata: deserializeMetadata(output),
|
|
1815
|
-
};
|
|
1291
|
+
});
|
|
1292
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1816
1293
|
}
|
|
1817
|
-
const message = response.message || response.Message || errorCode;
|
|
1818
|
-
response.message = message;
|
|
1819
|
-
delete response.Message;
|
|
1820
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1821
1294
|
};
|
|
1822
1295
|
const deserializeAws_json1_1GetDownloadUrlForLayerCommand = async (output, context) => {
|
|
1823
1296
|
if (output.statusCode >= 300) {
|
|
@@ -1844,59 +1317,28 @@ const deserializeAws_json1_1GetDownloadUrlForLayerCommandError = async (output,
|
|
|
1844
1317
|
switch (errorCode) {
|
|
1845
1318
|
case "InvalidParameterException":
|
|
1846
1319
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1847
|
-
|
|
1848
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1849
|
-
name: errorCode,
|
|
1850
|
-
$metadata: deserializeMetadata(output),
|
|
1851
|
-
};
|
|
1852
|
-
break;
|
|
1320
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1853
1321
|
case "LayerInaccessibleException":
|
|
1854
1322
|
case "com.amazonaws.ecr#LayerInaccessibleException":
|
|
1855
|
-
|
|
1856
|
-
...(await deserializeAws_json1_1LayerInaccessibleExceptionResponse(parsedOutput, context)),
|
|
1857
|
-
name: errorCode,
|
|
1858
|
-
$metadata: deserializeMetadata(output),
|
|
1859
|
-
};
|
|
1860
|
-
break;
|
|
1323
|
+
throw await deserializeAws_json1_1LayerInaccessibleExceptionResponse(parsedOutput, context);
|
|
1861
1324
|
case "LayersNotFoundException":
|
|
1862
1325
|
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
1863
|
-
|
|
1864
|
-
...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)),
|
|
1865
|
-
name: errorCode,
|
|
1866
|
-
$metadata: deserializeMetadata(output),
|
|
1867
|
-
};
|
|
1868
|
-
break;
|
|
1326
|
+
throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context);
|
|
1869
1327
|
case "RepositoryNotFoundException":
|
|
1870
1328
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1871
|
-
|
|
1872
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1873
|
-
name: errorCode,
|
|
1874
|
-
$metadata: deserializeMetadata(output),
|
|
1875
|
-
};
|
|
1876
|
-
break;
|
|
1329
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1877
1330
|
case "ServerException":
|
|
1878
1331
|
case "com.amazonaws.ecr#ServerException":
|
|
1879
|
-
|
|
1880
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1881
|
-
name: errorCode,
|
|
1882
|
-
$metadata: deserializeMetadata(output),
|
|
1883
|
-
};
|
|
1884
|
-
break;
|
|
1332
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1885
1333
|
default:
|
|
1886
1334
|
const parsedBody = parsedOutput.body;
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
...parsedBody,
|
|
1890
|
-
name: `${errorCode}`,
|
|
1891
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1335
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1336
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1892
1337
|
$fault: "client",
|
|
1893
1338
|
$metadata: deserializeMetadata(output),
|
|
1894
|
-
};
|
|
1339
|
+
});
|
|
1340
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1895
1341
|
}
|
|
1896
|
-
const message = response.message || response.Message || errorCode;
|
|
1897
|
-
response.message = message;
|
|
1898
|
-
delete response.Message;
|
|
1899
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1900
1342
|
};
|
|
1901
1343
|
const deserializeAws_json1_1GetLifecyclePolicyCommand = async (output, context) => {
|
|
1902
1344
|
if (output.statusCode >= 300) {
|
|
@@ -1923,51 +1365,25 @@ const deserializeAws_json1_1GetLifecyclePolicyCommandError = async (output, cont
|
|
|
1923
1365
|
switch (errorCode) {
|
|
1924
1366
|
case "InvalidParameterException":
|
|
1925
1367
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1926
|
-
|
|
1927
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1928
|
-
name: errorCode,
|
|
1929
|
-
$metadata: deserializeMetadata(output),
|
|
1930
|
-
};
|
|
1931
|
-
break;
|
|
1368
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1932
1369
|
case "LifecyclePolicyNotFoundException":
|
|
1933
1370
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
1934
|
-
|
|
1935
|
-
...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1936
|
-
name: errorCode,
|
|
1937
|
-
$metadata: deserializeMetadata(output),
|
|
1938
|
-
};
|
|
1939
|
-
break;
|
|
1371
|
+
throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
1940
1372
|
case "RepositoryNotFoundException":
|
|
1941
1373
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
1942
|
-
|
|
1943
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1944
|
-
name: errorCode,
|
|
1945
|
-
$metadata: deserializeMetadata(output),
|
|
1946
|
-
};
|
|
1947
|
-
break;
|
|
1374
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
1948
1375
|
case "ServerException":
|
|
1949
1376
|
case "com.amazonaws.ecr#ServerException":
|
|
1950
|
-
|
|
1951
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1952
|
-
name: errorCode,
|
|
1953
|
-
$metadata: deserializeMetadata(output),
|
|
1954
|
-
};
|
|
1955
|
-
break;
|
|
1377
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1956
1378
|
default:
|
|
1957
1379
|
const parsedBody = parsedOutput.body;
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
...parsedBody,
|
|
1961
|
-
name: `${errorCode}`,
|
|
1962
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1380
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1963
1382
|
$fault: "client",
|
|
1964
1383
|
$metadata: deserializeMetadata(output),
|
|
1965
|
-
};
|
|
1384
|
+
});
|
|
1385
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1966
1386
|
}
|
|
1967
|
-
const message = response.message || response.Message || errorCode;
|
|
1968
|
-
response.message = message;
|
|
1969
|
-
delete response.Message;
|
|
1970
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1971
1387
|
};
|
|
1972
1388
|
const deserializeAws_json1_1GetLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
1973
1389
|
if (output.statusCode >= 300) {
|
|
@@ -1994,51 +1410,25 @@ const deserializeAws_json1_1GetLifecyclePolicyPreviewCommandError = async (outpu
|
|
|
1994
1410
|
switch (errorCode) {
|
|
1995
1411
|
case "InvalidParameterException":
|
|
1996
1412
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
1997
|
-
|
|
1998
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1999
|
-
name: errorCode,
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
};
|
|
2002
|
-
break;
|
|
1413
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2003
1414
|
case "LifecyclePolicyPreviewNotFoundException":
|
|
2004
1415
|
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException":
|
|
2005
|
-
|
|
2006
|
-
...(await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(parsedOutput, context)),
|
|
2007
|
-
name: errorCode,
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
2010
|
-
break;
|
|
1416
|
+
throw await deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse(parsedOutput, context);
|
|
2011
1417
|
case "RepositoryNotFoundException":
|
|
2012
1418
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2013
|
-
|
|
2014
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
1419
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2019
1420
|
case "ServerException":
|
|
2020
1421
|
case "com.amazonaws.ecr#ServerException":
|
|
2021
|
-
|
|
2022
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2023
|
-
name: errorCode,
|
|
2024
|
-
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
2026
|
-
break;
|
|
1422
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2027
1423
|
default:
|
|
2028
1424
|
const parsedBody = parsedOutput.body;
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
...parsedBody,
|
|
2032
|
-
name: `${errorCode}`,
|
|
2033
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1425
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1426
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2034
1427
|
$fault: "client",
|
|
2035
1428
|
$metadata: deserializeMetadata(output),
|
|
2036
|
-
};
|
|
1429
|
+
});
|
|
1430
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2037
1431
|
}
|
|
2038
|
-
const message = response.message || response.Message || errorCode;
|
|
2039
|
-
response.message = message;
|
|
2040
|
-
delete response.Message;
|
|
2041
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2042
1432
|
};
|
|
2043
1433
|
const deserializeAws_json1_1GetRegistryPolicyCommand = async (output, context) => {
|
|
2044
1434
|
if (output.statusCode >= 300) {
|
|
@@ -2065,51 +1455,25 @@ const deserializeAws_json1_1GetRegistryPolicyCommandError = async (output, conte
|
|
|
2065
1455
|
switch (errorCode) {
|
|
2066
1456
|
case "InvalidParameterException":
|
|
2067
1457
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2068
|
-
|
|
2069
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2070
|
-
name: errorCode,
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
};
|
|
2073
|
-
break;
|
|
1458
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2074
1459
|
case "RegistryPolicyNotFoundException":
|
|
2075
1460
|
case "com.amazonaws.ecr#RegistryPolicyNotFoundException":
|
|
2076
|
-
|
|
2077
|
-
...(await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
2078
|
-
name: errorCode,
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
};
|
|
2081
|
-
break;
|
|
1461
|
+
throw await deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
2082
1462
|
case "ServerException":
|
|
2083
1463
|
case "com.amazonaws.ecr#ServerException":
|
|
2084
|
-
|
|
2085
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2086
|
-
name: errorCode,
|
|
2087
|
-
$metadata: deserializeMetadata(output),
|
|
2088
|
-
};
|
|
2089
|
-
break;
|
|
1464
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2090
1465
|
case "ValidationException":
|
|
2091
1466
|
case "com.amazonaws.ecr#ValidationException":
|
|
2092
|
-
|
|
2093
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2094
|
-
name: errorCode,
|
|
2095
|
-
$metadata: deserializeMetadata(output),
|
|
2096
|
-
};
|
|
2097
|
-
break;
|
|
1467
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2098
1468
|
default:
|
|
2099
1469
|
const parsedBody = parsedOutput.body;
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
...parsedBody,
|
|
2103
|
-
name: `${errorCode}`,
|
|
2104
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1470
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2105
1472
|
$fault: "client",
|
|
2106
1473
|
$metadata: deserializeMetadata(output),
|
|
2107
|
-
};
|
|
1474
|
+
});
|
|
1475
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2108
1476
|
}
|
|
2109
|
-
const message = response.message || response.Message || errorCode;
|
|
2110
|
-
response.message = message;
|
|
2111
|
-
delete response.Message;
|
|
2112
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2113
1477
|
};
|
|
2114
1478
|
const deserializeAws_json1_1GetRegistryScanningConfigurationCommand = async (output, context) => {
|
|
2115
1479
|
if (output.statusCode >= 300) {
|
|
@@ -2136,43 +1500,22 @@ const deserializeAws_json1_1GetRegistryScanningConfigurationCommandError = async
|
|
|
2136
1500
|
switch (errorCode) {
|
|
2137
1501
|
case "InvalidParameterException":
|
|
2138
1502
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2139
|
-
|
|
2140
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2141
|
-
name: errorCode,
|
|
2142
|
-
$metadata: deserializeMetadata(output),
|
|
2143
|
-
};
|
|
2144
|
-
break;
|
|
1503
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2145
1504
|
case "ServerException":
|
|
2146
1505
|
case "com.amazonaws.ecr#ServerException":
|
|
2147
|
-
|
|
2148
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2149
|
-
name: errorCode,
|
|
2150
|
-
$metadata: deserializeMetadata(output),
|
|
2151
|
-
};
|
|
2152
|
-
break;
|
|
1506
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2153
1507
|
case "ValidationException":
|
|
2154
1508
|
case "com.amazonaws.ecr#ValidationException":
|
|
2155
|
-
|
|
2156
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2157
|
-
name: errorCode,
|
|
2158
|
-
$metadata: deserializeMetadata(output),
|
|
2159
|
-
};
|
|
2160
|
-
break;
|
|
1509
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2161
1510
|
default:
|
|
2162
1511
|
const parsedBody = parsedOutput.body;
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
...parsedBody,
|
|
2166
|
-
name: `${errorCode}`,
|
|
2167
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1512
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1513
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2168
1514
|
$fault: "client",
|
|
2169
1515
|
$metadata: deserializeMetadata(output),
|
|
2170
|
-
};
|
|
1516
|
+
});
|
|
1517
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2171
1518
|
}
|
|
2172
|
-
const message = response.message || response.Message || errorCode;
|
|
2173
|
-
response.message = message;
|
|
2174
|
-
delete response.Message;
|
|
2175
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2176
1519
|
};
|
|
2177
1520
|
const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => {
|
|
2178
1521
|
if (output.statusCode >= 300) {
|
|
@@ -2199,51 +1542,25 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
2199
1542
|
switch (errorCode) {
|
|
2200
1543
|
case "InvalidParameterException":
|
|
2201
1544
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2202
|
-
|
|
2203
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2204
|
-
name: errorCode,
|
|
2205
|
-
$metadata: deserializeMetadata(output),
|
|
2206
|
-
};
|
|
2207
|
-
break;
|
|
1545
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2208
1546
|
case "RepositoryNotFoundException":
|
|
2209
1547
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2210
|
-
|
|
2211
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2212
|
-
name: errorCode,
|
|
2213
|
-
$metadata: deserializeMetadata(output),
|
|
2214
|
-
};
|
|
2215
|
-
break;
|
|
1548
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2216
1549
|
case "RepositoryPolicyNotFoundException":
|
|
2217
1550
|
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException":
|
|
2218
|
-
|
|
2219
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
2220
|
-
name: errorCode,
|
|
2221
|
-
$metadata: deserializeMetadata(output),
|
|
2222
|
-
};
|
|
2223
|
-
break;
|
|
1551
|
+
throw await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
2224
1552
|
case "ServerException":
|
|
2225
1553
|
case "com.amazonaws.ecr#ServerException":
|
|
2226
|
-
|
|
2227
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2228
|
-
name: errorCode,
|
|
2229
|
-
$metadata: deserializeMetadata(output),
|
|
2230
|
-
};
|
|
2231
|
-
break;
|
|
1554
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2232
1555
|
default:
|
|
2233
1556
|
const parsedBody = parsedOutput.body;
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
...parsedBody,
|
|
2237
|
-
name: `${errorCode}`,
|
|
2238
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1557
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1558
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2239
1559
|
$fault: "client",
|
|
2240
1560
|
$metadata: deserializeMetadata(output),
|
|
2241
|
-
};
|
|
1561
|
+
});
|
|
1562
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2242
1563
|
}
|
|
2243
|
-
const message = response.message || response.Message || errorCode;
|
|
2244
|
-
response.message = message;
|
|
2245
|
-
delete response.Message;
|
|
2246
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2247
1564
|
};
|
|
2248
1565
|
const deserializeAws_json1_1InitiateLayerUploadCommand = async (output, context) => {
|
|
2249
1566
|
if (output.statusCode >= 300) {
|
|
@@ -2270,51 +1587,25 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
2270
1587
|
switch (errorCode) {
|
|
2271
1588
|
case "InvalidParameterException":
|
|
2272
1589
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2273
|
-
|
|
2274
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
1590
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2279
1591
|
case "KmsException":
|
|
2280
1592
|
case "com.amazonaws.ecr#KmsException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
1593
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
2287
1594
|
case "RepositoryNotFoundException":
|
|
2288
1595
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2289
|
-
|
|
2290
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2291
|
-
name: errorCode,
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
2294
|
-
break;
|
|
1596
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2295
1597
|
case "ServerException":
|
|
2296
1598
|
case "com.amazonaws.ecr#ServerException":
|
|
2297
|
-
|
|
2298
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2299
|
-
name: errorCode,
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
};
|
|
2302
|
-
break;
|
|
1599
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2303
1600
|
default:
|
|
2304
1601
|
const parsedBody = parsedOutput.body;
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
...parsedBody,
|
|
2308
|
-
name: `${errorCode}`,
|
|
2309
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1602
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1603
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2310
1604
|
$fault: "client",
|
|
2311
1605
|
$metadata: deserializeMetadata(output),
|
|
2312
|
-
};
|
|
1606
|
+
});
|
|
1607
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2313
1608
|
}
|
|
2314
|
-
const message = response.message || response.Message || errorCode;
|
|
2315
|
-
response.message = message;
|
|
2316
|
-
delete response.Message;
|
|
2317
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2318
1609
|
};
|
|
2319
1610
|
const deserializeAws_json1_1ListImagesCommand = async (output, context) => {
|
|
2320
1611
|
if (output.statusCode >= 300) {
|
|
@@ -2341,43 +1632,22 @@ const deserializeAws_json1_1ListImagesCommandError = async (output, context) =>
|
|
|
2341
1632
|
switch (errorCode) {
|
|
2342
1633
|
case "InvalidParameterException":
|
|
2343
1634
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2344
|
-
|
|
2345
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2346
|
-
name: errorCode,
|
|
2347
|
-
$metadata: deserializeMetadata(output),
|
|
2348
|
-
};
|
|
2349
|
-
break;
|
|
1635
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2350
1636
|
case "RepositoryNotFoundException":
|
|
2351
1637
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2352
|
-
|
|
2353
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2354
|
-
name: errorCode,
|
|
2355
|
-
$metadata: deserializeMetadata(output),
|
|
2356
|
-
};
|
|
2357
|
-
break;
|
|
1638
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2358
1639
|
case "ServerException":
|
|
2359
1640
|
case "com.amazonaws.ecr#ServerException":
|
|
2360
|
-
|
|
2361
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2362
|
-
name: errorCode,
|
|
2363
|
-
$metadata: deserializeMetadata(output),
|
|
2364
|
-
};
|
|
2365
|
-
break;
|
|
1641
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2366
1642
|
default:
|
|
2367
1643
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
...parsedBody,
|
|
2371
|
-
name: `${errorCode}`,
|
|
2372
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1644
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2373
1646
|
$fault: "client",
|
|
2374
1647
|
$metadata: deserializeMetadata(output),
|
|
2375
|
-
};
|
|
1648
|
+
});
|
|
1649
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2376
1650
|
}
|
|
2377
|
-
const message = response.message || response.Message || errorCode;
|
|
2378
|
-
response.message = message;
|
|
2379
|
-
delete response.Message;
|
|
2380
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2381
1651
|
};
|
|
2382
1652
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
2383
1653
|
if (output.statusCode >= 300) {
|
|
@@ -2404,43 +1674,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
2404
1674
|
switch (errorCode) {
|
|
2405
1675
|
case "InvalidParameterException":
|
|
2406
1676
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2407
|
-
|
|
2408
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2409
|
-
name: errorCode,
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
};
|
|
2412
|
-
break;
|
|
1677
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2413
1678
|
case "RepositoryNotFoundException":
|
|
2414
1679
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2415
|
-
|
|
2416
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2417
|
-
name: errorCode,
|
|
2418
|
-
$metadata: deserializeMetadata(output),
|
|
2419
|
-
};
|
|
2420
|
-
break;
|
|
1680
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2421
1681
|
case "ServerException":
|
|
2422
1682
|
case "com.amazonaws.ecr#ServerException":
|
|
2423
|
-
|
|
2424
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2425
|
-
name: errorCode,
|
|
2426
|
-
$metadata: deserializeMetadata(output),
|
|
2427
|
-
};
|
|
2428
|
-
break;
|
|
1683
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2429
1684
|
default:
|
|
2430
1685
|
const parsedBody = parsedOutput.body;
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
...parsedBody,
|
|
2434
|
-
name: `${errorCode}`,
|
|
2435
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1686
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1687
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2436
1688
|
$fault: "client",
|
|
2437
1689
|
$metadata: deserializeMetadata(output),
|
|
2438
|
-
};
|
|
1690
|
+
});
|
|
1691
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2439
1692
|
}
|
|
2440
|
-
const message = response.message || response.Message || errorCode;
|
|
2441
|
-
response.message = message;
|
|
2442
|
-
delete response.Message;
|
|
2443
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2444
1693
|
};
|
|
2445
1694
|
const deserializeAws_json1_1PutImageCommand = async (output, context) => {
|
|
2446
1695
|
if (output.statusCode >= 300) {
|
|
@@ -2467,99 +1716,43 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
2467
1716
|
switch (errorCode) {
|
|
2468
1717
|
case "ImageAlreadyExistsException":
|
|
2469
1718
|
case "com.amazonaws.ecr#ImageAlreadyExistsException":
|
|
2470
|
-
|
|
2471
|
-
...(await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2472
|
-
name: errorCode,
|
|
2473
|
-
$metadata: deserializeMetadata(output),
|
|
2474
|
-
};
|
|
2475
|
-
break;
|
|
1719
|
+
throw await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2476
1720
|
case "ImageDigestDoesNotMatchException":
|
|
2477
1721
|
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException":
|
|
2478
|
-
|
|
2479
|
-
...(await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)),
|
|
2480
|
-
name: errorCode,
|
|
2481
|
-
$metadata: deserializeMetadata(output),
|
|
2482
|
-
};
|
|
2483
|
-
break;
|
|
1722
|
+
throw await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context);
|
|
2484
1723
|
case "ImageTagAlreadyExistsException":
|
|
2485
1724
|
case "com.amazonaws.ecr#ImageTagAlreadyExistsException":
|
|
2486
|
-
|
|
2487
|
-
...(await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2488
|
-
name: errorCode,
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
};
|
|
2491
|
-
break;
|
|
1725
|
+
throw await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2492
1726
|
case "InvalidParameterException":
|
|
2493
1727
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2494
|
-
|
|
2495
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2496
|
-
name: errorCode,
|
|
2497
|
-
$metadata: deserializeMetadata(output),
|
|
2498
|
-
};
|
|
2499
|
-
break;
|
|
1728
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2500
1729
|
case "KmsException":
|
|
2501
1730
|
case "com.amazonaws.ecr#KmsException":
|
|
2502
|
-
|
|
2503
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
2504
|
-
name: errorCode,
|
|
2505
|
-
$metadata: deserializeMetadata(output),
|
|
2506
|
-
};
|
|
2507
|
-
break;
|
|
1731
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
2508
1732
|
case "LayersNotFoundException":
|
|
2509
1733
|
case "com.amazonaws.ecr#LayersNotFoundException":
|
|
2510
|
-
|
|
2511
|
-
...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)),
|
|
2512
|
-
name: errorCode,
|
|
2513
|
-
$metadata: deserializeMetadata(output),
|
|
2514
|
-
};
|
|
2515
|
-
break;
|
|
1734
|
+
throw await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context);
|
|
2516
1735
|
case "LimitExceededException":
|
|
2517
1736
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
2518
|
-
|
|
2519
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2520
|
-
name: errorCode,
|
|
2521
|
-
$metadata: deserializeMetadata(output),
|
|
2522
|
-
};
|
|
2523
|
-
break;
|
|
1737
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2524
1738
|
case "ReferencedImagesNotFoundException":
|
|
2525
1739
|
case "com.amazonaws.ecr#ReferencedImagesNotFoundException":
|
|
2526
|
-
|
|
2527
|
-
...(await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)),
|
|
2528
|
-
name: errorCode,
|
|
2529
|
-
$metadata: deserializeMetadata(output),
|
|
2530
|
-
};
|
|
2531
|
-
break;
|
|
1740
|
+
throw await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context);
|
|
2532
1741
|
case "RepositoryNotFoundException":
|
|
2533
1742
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2534
|
-
|
|
2535
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2536
|
-
name: errorCode,
|
|
2537
|
-
$metadata: deserializeMetadata(output),
|
|
2538
|
-
};
|
|
2539
|
-
break;
|
|
1743
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2540
1744
|
case "ServerException":
|
|
2541
1745
|
case "com.amazonaws.ecr#ServerException":
|
|
2542
|
-
|
|
2543
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2544
|
-
name: errorCode,
|
|
2545
|
-
$metadata: deserializeMetadata(output),
|
|
2546
|
-
};
|
|
2547
|
-
break;
|
|
1746
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2548
1747
|
default:
|
|
2549
1748
|
const parsedBody = parsedOutput.body;
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
...parsedBody,
|
|
2553
|
-
name: `${errorCode}`,
|
|
2554
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1749
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1750
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2555
1751
|
$fault: "client",
|
|
2556
1752
|
$metadata: deserializeMetadata(output),
|
|
2557
|
-
};
|
|
1753
|
+
});
|
|
1754
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2558
1755
|
}
|
|
2559
|
-
const message = response.message || response.Message || errorCode;
|
|
2560
|
-
response.message = message;
|
|
2561
|
-
delete response.Message;
|
|
2562
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2563
1756
|
};
|
|
2564
1757
|
const deserializeAws_json1_1PutImageScanningConfigurationCommand = async (output, context) => {
|
|
2565
1758
|
if (output.statusCode >= 300) {
|
|
@@ -2586,51 +1779,25 @@ const deserializeAws_json1_1PutImageScanningConfigurationCommandError = async (o
|
|
|
2586
1779
|
switch (errorCode) {
|
|
2587
1780
|
case "InvalidParameterException":
|
|
2588
1781
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2589
|
-
|
|
2590
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2591
|
-
name: errorCode,
|
|
2592
|
-
$metadata: deserializeMetadata(output),
|
|
2593
|
-
};
|
|
2594
|
-
break;
|
|
1782
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2595
1783
|
case "RepositoryNotFoundException":
|
|
2596
1784
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2597
|
-
|
|
2598
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2599
|
-
name: errorCode,
|
|
2600
|
-
$metadata: deserializeMetadata(output),
|
|
2601
|
-
};
|
|
2602
|
-
break;
|
|
1785
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2603
1786
|
case "ServerException":
|
|
2604
1787
|
case "com.amazonaws.ecr#ServerException":
|
|
2605
|
-
|
|
2606
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2607
|
-
name: errorCode,
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
};
|
|
2610
|
-
break;
|
|
1788
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2611
1789
|
case "ValidationException":
|
|
2612
1790
|
case "com.amazonaws.ecr#ValidationException":
|
|
2613
|
-
|
|
2614
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2615
|
-
name: errorCode,
|
|
2616
|
-
$metadata: deserializeMetadata(output),
|
|
2617
|
-
};
|
|
2618
|
-
break;
|
|
1791
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2619
1792
|
default:
|
|
2620
1793
|
const parsedBody = parsedOutput.body;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
...parsedBody,
|
|
2624
|
-
name: `${errorCode}`,
|
|
2625
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1794
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2626
1796
|
$fault: "client",
|
|
2627
1797
|
$metadata: deserializeMetadata(output),
|
|
2628
|
-
};
|
|
1798
|
+
});
|
|
1799
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2629
1800
|
}
|
|
2630
|
-
const message = response.message || response.Message || errorCode;
|
|
2631
|
-
response.message = message;
|
|
2632
|
-
delete response.Message;
|
|
2633
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2634
1801
|
};
|
|
2635
1802
|
const deserializeAws_json1_1PutImageTagMutabilityCommand = async (output, context) => {
|
|
2636
1803
|
if (output.statusCode >= 300) {
|
|
@@ -2657,43 +1824,22 @@ const deserializeAws_json1_1PutImageTagMutabilityCommandError = async (output, c
|
|
|
2657
1824
|
switch (errorCode) {
|
|
2658
1825
|
case "InvalidParameterException":
|
|
2659
1826
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2660
|
-
|
|
2661
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2662
|
-
name: errorCode,
|
|
2663
|
-
$metadata: deserializeMetadata(output),
|
|
2664
|
-
};
|
|
2665
|
-
break;
|
|
1827
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2666
1828
|
case "RepositoryNotFoundException":
|
|
2667
1829
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2668
|
-
|
|
2669
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2670
|
-
name: errorCode,
|
|
2671
|
-
$metadata: deserializeMetadata(output),
|
|
2672
|
-
};
|
|
2673
|
-
break;
|
|
1830
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2674
1831
|
case "ServerException":
|
|
2675
1832
|
case "com.amazonaws.ecr#ServerException":
|
|
2676
|
-
|
|
2677
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2678
|
-
name: errorCode,
|
|
2679
|
-
$metadata: deserializeMetadata(output),
|
|
2680
|
-
};
|
|
2681
|
-
break;
|
|
1833
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2682
1834
|
default:
|
|
2683
1835
|
const parsedBody = parsedOutput.body;
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
...parsedBody,
|
|
2687
|
-
name: `${errorCode}`,
|
|
2688
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1836
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1837
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2689
1838
|
$fault: "client",
|
|
2690
1839
|
$metadata: deserializeMetadata(output),
|
|
2691
|
-
};
|
|
1840
|
+
});
|
|
1841
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2692
1842
|
}
|
|
2693
|
-
const message = response.message || response.Message || errorCode;
|
|
2694
|
-
response.message = message;
|
|
2695
|
-
delete response.Message;
|
|
2696
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2697
1843
|
};
|
|
2698
1844
|
const deserializeAws_json1_1PutLifecyclePolicyCommand = async (output, context) => {
|
|
2699
1845
|
if (output.statusCode >= 300) {
|
|
@@ -2720,43 +1866,22 @@ const deserializeAws_json1_1PutLifecyclePolicyCommandError = async (output, cont
|
|
|
2720
1866
|
switch (errorCode) {
|
|
2721
1867
|
case "InvalidParameterException":
|
|
2722
1868
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2723
|
-
|
|
2724
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2725
|
-
name: errorCode,
|
|
2726
|
-
$metadata: deserializeMetadata(output),
|
|
2727
|
-
};
|
|
2728
|
-
break;
|
|
1869
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2729
1870
|
case "RepositoryNotFoundException":
|
|
2730
1871
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2731
|
-
|
|
2732
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2733
|
-
name: errorCode,
|
|
2734
|
-
$metadata: deserializeMetadata(output),
|
|
2735
|
-
};
|
|
2736
|
-
break;
|
|
1872
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2737
1873
|
case "ServerException":
|
|
2738
1874
|
case "com.amazonaws.ecr#ServerException":
|
|
2739
|
-
|
|
2740
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2741
|
-
name: errorCode,
|
|
2742
|
-
$metadata: deserializeMetadata(output),
|
|
2743
|
-
};
|
|
2744
|
-
break;
|
|
1875
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2745
1876
|
default:
|
|
2746
1877
|
const parsedBody = parsedOutput.body;
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
...parsedBody,
|
|
2750
|
-
name: `${errorCode}`,
|
|
2751
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1878
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1879
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2752
1880
|
$fault: "client",
|
|
2753
1881
|
$metadata: deserializeMetadata(output),
|
|
2754
|
-
};
|
|
1882
|
+
});
|
|
1883
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2755
1884
|
}
|
|
2756
|
-
const message = response.message || response.Message || errorCode;
|
|
2757
|
-
response.message = message;
|
|
2758
|
-
delete response.Message;
|
|
2759
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2760
1885
|
};
|
|
2761
1886
|
const deserializeAws_json1_1PutRegistryPolicyCommand = async (output, context) => {
|
|
2762
1887
|
if (output.statusCode >= 300) {
|
|
@@ -2783,43 +1908,22 @@ const deserializeAws_json1_1PutRegistryPolicyCommandError = async (output, conte
|
|
|
2783
1908
|
switch (errorCode) {
|
|
2784
1909
|
case "InvalidParameterException":
|
|
2785
1910
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2786
|
-
|
|
2787
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2788
|
-
name: errorCode,
|
|
2789
|
-
$metadata: deserializeMetadata(output),
|
|
2790
|
-
};
|
|
2791
|
-
break;
|
|
1911
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2792
1912
|
case "ServerException":
|
|
2793
1913
|
case "com.amazonaws.ecr#ServerException":
|
|
2794
|
-
|
|
2795
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2796
|
-
name: errorCode,
|
|
2797
|
-
$metadata: deserializeMetadata(output),
|
|
2798
|
-
};
|
|
2799
|
-
break;
|
|
1914
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2800
1915
|
case "ValidationException":
|
|
2801
1916
|
case "com.amazonaws.ecr#ValidationException":
|
|
2802
|
-
|
|
2803
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2804
|
-
name: errorCode,
|
|
2805
|
-
$metadata: deserializeMetadata(output),
|
|
2806
|
-
};
|
|
2807
|
-
break;
|
|
1917
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2808
1918
|
default:
|
|
2809
1919
|
const parsedBody = parsedOutput.body;
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
...parsedBody,
|
|
2813
|
-
name: `${errorCode}`,
|
|
2814
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1920
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1921
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2815
1922
|
$fault: "client",
|
|
2816
1923
|
$metadata: deserializeMetadata(output),
|
|
2817
|
-
};
|
|
1924
|
+
});
|
|
1925
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2818
1926
|
}
|
|
2819
|
-
const message = response.message || response.Message || errorCode;
|
|
2820
|
-
response.message = message;
|
|
2821
|
-
delete response.Message;
|
|
2822
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2823
1927
|
};
|
|
2824
1928
|
const deserializeAws_json1_1PutRegistryScanningConfigurationCommand = async (output, context) => {
|
|
2825
1929
|
if (output.statusCode >= 300) {
|
|
@@ -2846,43 +1950,22 @@ const deserializeAws_json1_1PutRegistryScanningConfigurationCommandError = async
|
|
|
2846
1950
|
switch (errorCode) {
|
|
2847
1951
|
case "InvalidParameterException":
|
|
2848
1952
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2849
|
-
|
|
2850
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2851
|
-
name: errorCode,
|
|
2852
|
-
$metadata: deserializeMetadata(output),
|
|
2853
|
-
};
|
|
2854
|
-
break;
|
|
1953
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2855
1954
|
case "ServerException":
|
|
2856
1955
|
case "com.amazonaws.ecr#ServerException":
|
|
2857
|
-
|
|
2858
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2859
|
-
name: errorCode,
|
|
2860
|
-
$metadata: deserializeMetadata(output),
|
|
2861
|
-
};
|
|
2862
|
-
break;
|
|
1956
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2863
1957
|
case "ValidationException":
|
|
2864
1958
|
case "com.amazonaws.ecr#ValidationException":
|
|
2865
|
-
|
|
2866
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2867
|
-
name: errorCode,
|
|
2868
|
-
$metadata: deserializeMetadata(output),
|
|
2869
|
-
};
|
|
2870
|
-
break;
|
|
1959
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2871
1960
|
default:
|
|
2872
1961
|
const parsedBody = parsedOutput.body;
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
...parsedBody,
|
|
2876
|
-
name: `${errorCode}`,
|
|
2877
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1962
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
1963
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2878
1964
|
$fault: "client",
|
|
2879
1965
|
$metadata: deserializeMetadata(output),
|
|
2880
|
-
};
|
|
1966
|
+
});
|
|
1967
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2881
1968
|
}
|
|
2882
|
-
const message = response.message || response.Message || errorCode;
|
|
2883
|
-
response.message = message;
|
|
2884
|
-
delete response.Message;
|
|
2885
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2886
1969
|
};
|
|
2887
1970
|
const deserializeAws_json1_1PutReplicationConfigurationCommand = async (output, context) => {
|
|
2888
1971
|
if (output.statusCode >= 300) {
|
|
@@ -2909,43 +1992,22 @@ const deserializeAws_json1_1PutReplicationConfigurationCommandError = async (out
|
|
|
2909
1992
|
switch (errorCode) {
|
|
2910
1993
|
case "InvalidParameterException":
|
|
2911
1994
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2912
|
-
|
|
2913
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2914
|
-
name: errorCode,
|
|
2915
|
-
$metadata: deserializeMetadata(output),
|
|
2916
|
-
};
|
|
2917
|
-
break;
|
|
1995
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2918
1996
|
case "ServerException":
|
|
2919
1997
|
case "com.amazonaws.ecr#ServerException":
|
|
2920
|
-
|
|
2921
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2922
|
-
name: errorCode,
|
|
2923
|
-
$metadata: deserializeMetadata(output),
|
|
2924
|
-
};
|
|
2925
|
-
break;
|
|
1998
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2926
1999
|
case "ValidationException":
|
|
2927
2000
|
case "com.amazonaws.ecr#ValidationException":
|
|
2928
|
-
|
|
2929
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
2930
|
-
name: errorCode,
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
};
|
|
2933
|
-
break;
|
|
2001
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
2934
2002
|
default:
|
|
2935
2003
|
const parsedBody = parsedOutput.body;
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
...parsedBody,
|
|
2939
|
-
name: `${errorCode}`,
|
|
2940
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2004
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2005
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2941
2006
|
$fault: "client",
|
|
2942
2007
|
$metadata: deserializeMetadata(output),
|
|
2943
|
-
};
|
|
2008
|
+
});
|
|
2009
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2944
2010
|
}
|
|
2945
|
-
const message = response.message || response.Message || errorCode;
|
|
2946
|
-
response.message = message;
|
|
2947
|
-
delete response.Message;
|
|
2948
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2949
2011
|
};
|
|
2950
2012
|
const deserializeAws_json1_1SetRepositoryPolicyCommand = async (output, context) => {
|
|
2951
2013
|
if (output.statusCode >= 300) {
|
|
@@ -2972,43 +2034,22 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
2972
2034
|
switch (errorCode) {
|
|
2973
2035
|
case "InvalidParameterException":
|
|
2974
2036
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
2975
|
-
|
|
2976
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2977
|
-
name: errorCode,
|
|
2978
|
-
$metadata: deserializeMetadata(output),
|
|
2979
|
-
};
|
|
2980
|
-
break;
|
|
2037
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2981
2038
|
case "RepositoryNotFoundException":
|
|
2982
2039
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
2983
|
-
|
|
2984
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2985
|
-
name: errorCode,
|
|
2986
|
-
$metadata: deserializeMetadata(output),
|
|
2987
|
-
};
|
|
2988
|
-
break;
|
|
2040
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
2989
2041
|
case "ServerException":
|
|
2990
2042
|
case "com.amazonaws.ecr#ServerException":
|
|
2991
|
-
|
|
2992
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2993
|
-
name: errorCode,
|
|
2994
|
-
$metadata: deserializeMetadata(output),
|
|
2995
|
-
};
|
|
2996
|
-
break;
|
|
2043
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
2997
2044
|
default:
|
|
2998
2045
|
const parsedBody = parsedOutput.body;
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
...parsedBody,
|
|
3002
|
-
name: `${errorCode}`,
|
|
3003
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2046
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2047
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3004
2048
|
$fault: "client",
|
|
3005
2049
|
$metadata: deserializeMetadata(output),
|
|
3006
|
-
};
|
|
2050
|
+
});
|
|
2051
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3007
2052
|
}
|
|
3008
|
-
const message = response.message || response.Message || errorCode;
|
|
3009
|
-
response.message = message;
|
|
3010
|
-
delete response.Message;
|
|
3011
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3012
2053
|
};
|
|
3013
2054
|
const deserializeAws_json1_1StartImageScanCommand = async (output, context) => {
|
|
3014
2055
|
if (output.statusCode >= 300) {
|
|
@@ -3035,75 +2076,34 @@ const deserializeAws_json1_1StartImageScanCommandError = async (output, context)
|
|
|
3035
2076
|
switch (errorCode) {
|
|
3036
2077
|
case "ImageNotFoundException":
|
|
3037
2078
|
case "com.amazonaws.ecr#ImageNotFoundException":
|
|
3038
|
-
|
|
3039
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
3040
|
-
name: errorCode,
|
|
3041
|
-
$metadata: deserializeMetadata(output),
|
|
3042
|
-
};
|
|
3043
|
-
break;
|
|
2079
|
+
throw await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context);
|
|
3044
2080
|
case "InvalidParameterException":
|
|
3045
2081
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3046
|
-
|
|
3047
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3048
|
-
name: errorCode,
|
|
3049
|
-
$metadata: deserializeMetadata(output),
|
|
3050
|
-
};
|
|
3051
|
-
break;
|
|
2082
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3052
2083
|
case "LimitExceededException":
|
|
3053
2084
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
3054
|
-
|
|
3055
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3056
|
-
name: errorCode,
|
|
3057
|
-
$metadata: deserializeMetadata(output),
|
|
3058
|
-
};
|
|
3059
|
-
break;
|
|
2085
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3060
2086
|
case "RepositoryNotFoundException":
|
|
3061
2087
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3062
|
-
|
|
3063
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
3064
|
-
name: errorCode,
|
|
3065
|
-
$metadata: deserializeMetadata(output),
|
|
3066
|
-
};
|
|
3067
|
-
break;
|
|
2088
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
3068
2089
|
case "ServerException":
|
|
3069
2090
|
case "com.amazonaws.ecr#ServerException":
|
|
3070
|
-
|
|
3071
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
3072
|
-
name: errorCode,
|
|
3073
|
-
$metadata: deserializeMetadata(output),
|
|
3074
|
-
};
|
|
3075
|
-
break;
|
|
2091
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
3076
2092
|
case "UnsupportedImageTypeException":
|
|
3077
2093
|
case "com.amazonaws.ecr#UnsupportedImageTypeException":
|
|
3078
|
-
|
|
3079
|
-
...(await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(parsedOutput, context)),
|
|
3080
|
-
name: errorCode,
|
|
3081
|
-
$metadata: deserializeMetadata(output),
|
|
3082
|
-
};
|
|
3083
|
-
break;
|
|
2094
|
+
throw await deserializeAws_json1_1UnsupportedImageTypeExceptionResponse(parsedOutput, context);
|
|
3084
2095
|
case "ValidationException":
|
|
3085
2096
|
case "com.amazonaws.ecr#ValidationException":
|
|
3086
|
-
|
|
3087
|
-
...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
|
|
3088
|
-
name: errorCode,
|
|
3089
|
-
$metadata: deserializeMetadata(output),
|
|
3090
|
-
};
|
|
3091
|
-
break;
|
|
2097
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
3092
2098
|
default:
|
|
3093
2099
|
const parsedBody = parsedOutput.body;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
...parsedBody,
|
|
3097
|
-
name: `${errorCode}`,
|
|
3098
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2100
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2101
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3099
2102
|
$fault: "client",
|
|
3100
2103
|
$metadata: deserializeMetadata(output),
|
|
3101
|
-
};
|
|
2104
|
+
});
|
|
2105
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3102
2106
|
}
|
|
3103
|
-
const message = response.message || response.Message || errorCode;
|
|
3104
|
-
response.message = message;
|
|
3105
|
-
delete response.Message;
|
|
3106
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3107
2107
|
};
|
|
3108
2108
|
const deserializeAws_json1_1StartLifecyclePolicyPreviewCommand = async (output, context) => {
|
|
3109
2109
|
if (output.statusCode >= 300) {
|
|
@@ -3130,59 +2130,28 @@ const deserializeAws_json1_1StartLifecyclePolicyPreviewCommandError = async (out
|
|
|
3130
2130
|
switch (errorCode) {
|
|
3131
2131
|
case "InvalidParameterException":
|
|
3132
2132
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3133
|
-
|
|
3134
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3135
|
-
name: errorCode,
|
|
3136
|
-
$metadata: deserializeMetadata(output),
|
|
3137
|
-
};
|
|
3138
|
-
break;
|
|
2133
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3139
2134
|
case "LifecyclePolicyNotFoundException":
|
|
3140
2135
|
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException":
|
|
3141
|
-
|
|
3142
|
-
...(await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
3143
|
-
name: errorCode,
|
|
3144
|
-
$metadata: deserializeMetadata(output),
|
|
3145
|
-
};
|
|
3146
|
-
break;
|
|
2136
|
+
throw await deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse(parsedOutput, context);
|
|
3147
2137
|
case "LifecyclePolicyPreviewInProgressException":
|
|
3148
2138
|
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException":
|
|
3149
|
-
|
|
3150
|
-
...(await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(parsedOutput, context)),
|
|
3151
|
-
name: errorCode,
|
|
3152
|
-
$metadata: deserializeMetadata(output),
|
|
3153
|
-
};
|
|
3154
|
-
break;
|
|
2139
|
+
throw await deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse(parsedOutput, context);
|
|
3155
2140
|
case "RepositoryNotFoundException":
|
|
3156
2141
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3157
|
-
|
|
3158
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
3159
|
-
name: errorCode,
|
|
3160
|
-
$metadata: deserializeMetadata(output),
|
|
3161
|
-
};
|
|
3162
|
-
break;
|
|
2142
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
3163
2143
|
case "ServerException":
|
|
3164
2144
|
case "com.amazonaws.ecr#ServerException":
|
|
3165
|
-
|
|
3166
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
3167
|
-
name: errorCode,
|
|
3168
|
-
$metadata: deserializeMetadata(output),
|
|
3169
|
-
};
|
|
3170
|
-
break;
|
|
2145
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
3171
2146
|
default:
|
|
3172
2147
|
const parsedBody = parsedOutput.body;
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
...parsedBody,
|
|
3176
|
-
name: `${errorCode}`,
|
|
3177
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2148
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3178
2150
|
$fault: "client",
|
|
3179
2151
|
$metadata: deserializeMetadata(output),
|
|
3180
|
-
};
|
|
2152
|
+
});
|
|
2153
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3181
2154
|
}
|
|
3182
|
-
const message = response.message || response.Message || errorCode;
|
|
3183
|
-
response.message = message;
|
|
3184
|
-
delete response.Message;
|
|
3185
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3186
2155
|
};
|
|
3187
2156
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
3188
2157
|
if (output.statusCode >= 300) {
|
|
@@ -3209,59 +2178,28 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
3209
2178
|
switch (errorCode) {
|
|
3210
2179
|
case "InvalidParameterException":
|
|
3211
2180
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3212
|
-
|
|
3213
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3214
|
-
name: errorCode,
|
|
3215
|
-
$metadata: deserializeMetadata(output),
|
|
3216
|
-
};
|
|
3217
|
-
break;
|
|
2181
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3218
2182
|
case "InvalidTagParameterException":
|
|
3219
2183
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
3220
|
-
|
|
3221
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
3222
|
-
name: errorCode,
|
|
3223
|
-
$metadata: deserializeMetadata(output),
|
|
3224
|
-
};
|
|
3225
|
-
break;
|
|
2184
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
3226
2185
|
case "RepositoryNotFoundException":
|
|
3227
2186
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3228
|
-
|
|
3229
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
3230
|
-
name: errorCode,
|
|
3231
|
-
$metadata: deserializeMetadata(output),
|
|
3232
|
-
};
|
|
3233
|
-
break;
|
|
2187
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
3234
2188
|
case "ServerException":
|
|
3235
2189
|
case "com.amazonaws.ecr#ServerException":
|
|
3236
|
-
|
|
3237
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
3238
|
-
name: errorCode,
|
|
3239
|
-
$metadata: deserializeMetadata(output),
|
|
3240
|
-
};
|
|
3241
|
-
break;
|
|
2190
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
3242
2191
|
case "TooManyTagsException":
|
|
3243
2192
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
3244
|
-
|
|
3245
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
3246
|
-
name: errorCode,
|
|
3247
|
-
$metadata: deserializeMetadata(output),
|
|
3248
|
-
};
|
|
3249
|
-
break;
|
|
2193
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3250
2194
|
default:
|
|
3251
2195
|
const parsedBody = parsedOutput.body;
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
...parsedBody,
|
|
3255
|
-
name: `${errorCode}`,
|
|
3256
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2196
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2197
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3257
2198
|
$fault: "client",
|
|
3258
2199
|
$metadata: deserializeMetadata(output),
|
|
3259
|
-
};
|
|
2200
|
+
});
|
|
2201
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3260
2202
|
}
|
|
3261
|
-
const message = response.message || response.Message || errorCode;
|
|
3262
|
-
response.message = message;
|
|
3263
|
-
delete response.Message;
|
|
3264
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3265
2203
|
};
|
|
3266
2204
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
3267
2205
|
if (output.statusCode >= 300) {
|
|
@@ -3288,59 +2226,28 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
3288
2226
|
switch (errorCode) {
|
|
3289
2227
|
case "InvalidParameterException":
|
|
3290
2228
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3291
|
-
|
|
3292
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3293
|
-
name: errorCode,
|
|
3294
|
-
$metadata: deserializeMetadata(output),
|
|
3295
|
-
};
|
|
3296
|
-
break;
|
|
2229
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3297
2230
|
case "InvalidTagParameterException":
|
|
3298
2231
|
case "com.amazonaws.ecr#InvalidTagParameterException":
|
|
3299
|
-
|
|
3300
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
3301
|
-
name: errorCode,
|
|
3302
|
-
$metadata: deserializeMetadata(output),
|
|
3303
|
-
};
|
|
3304
|
-
break;
|
|
2232
|
+
throw await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context);
|
|
3305
2233
|
case "RepositoryNotFoundException":
|
|
3306
2234
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3307
|
-
|
|
3308
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
3309
|
-
name: errorCode,
|
|
3310
|
-
$metadata: deserializeMetadata(output),
|
|
3311
|
-
};
|
|
3312
|
-
break;
|
|
2235
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
3313
2236
|
case "ServerException":
|
|
3314
2237
|
case "com.amazonaws.ecr#ServerException":
|
|
3315
|
-
|
|
3316
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
3317
|
-
name: errorCode,
|
|
3318
|
-
$metadata: deserializeMetadata(output),
|
|
3319
|
-
};
|
|
3320
|
-
break;
|
|
2238
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
3321
2239
|
case "TooManyTagsException":
|
|
3322
2240
|
case "com.amazonaws.ecr#TooManyTagsException":
|
|
3323
|
-
|
|
3324
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
3325
|
-
name: errorCode,
|
|
3326
|
-
$metadata: deserializeMetadata(output),
|
|
3327
|
-
};
|
|
3328
|
-
break;
|
|
2241
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
3329
2242
|
default:
|
|
3330
2243
|
const parsedBody = parsedOutput.body;
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
...parsedBody,
|
|
3334
|
-
name: `${errorCode}`,
|
|
3335
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2244
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2245
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3336
2246
|
$fault: "client",
|
|
3337
2247
|
$metadata: deserializeMetadata(output),
|
|
3338
|
-
};
|
|
2248
|
+
});
|
|
2249
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3339
2250
|
}
|
|
3340
|
-
const message = response.message || response.Message || errorCode;
|
|
3341
|
-
response.message = message;
|
|
3342
|
-
delete response.Message;
|
|
3343
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3344
2251
|
};
|
|
3345
2252
|
const deserializeAws_json1_1UploadLayerPartCommand = async (output, context) => {
|
|
3346
2253
|
if (output.statusCode >= 300) {
|
|
@@ -3367,438 +2274,331 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
3367
2274
|
switch (errorCode) {
|
|
3368
2275
|
case "InvalidLayerPartException":
|
|
3369
2276
|
case "com.amazonaws.ecr#InvalidLayerPartException":
|
|
3370
|
-
|
|
3371
|
-
...(await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)),
|
|
3372
|
-
name: errorCode,
|
|
3373
|
-
$metadata: deserializeMetadata(output),
|
|
3374
|
-
};
|
|
3375
|
-
break;
|
|
2277
|
+
throw await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context);
|
|
3376
2278
|
case "InvalidParameterException":
|
|
3377
2279
|
case "com.amazonaws.ecr#InvalidParameterException":
|
|
3378
|
-
|
|
3379
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3380
|
-
name: errorCode,
|
|
3381
|
-
$metadata: deserializeMetadata(output),
|
|
3382
|
-
};
|
|
3383
|
-
break;
|
|
2280
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3384
2281
|
case "KmsException":
|
|
3385
2282
|
case "com.amazonaws.ecr#KmsException":
|
|
3386
|
-
|
|
3387
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
3388
|
-
name: errorCode,
|
|
3389
|
-
$metadata: deserializeMetadata(output),
|
|
3390
|
-
};
|
|
3391
|
-
break;
|
|
2283
|
+
throw await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context);
|
|
3392
2284
|
case "LimitExceededException":
|
|
3393
2285
|
case "com.amazonaws.ecr#LimitExceededException":
|
|
3394
|
-
|
|
3395
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
3396
|
-
name: errorCode,
|
|
3397
|
-
$metadata: deserializeMetadata(output),
|
|
3398
|
-
};
|
|
3399
|
-
break;
|
|
2286
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
3400
2287
|
case "RepositoryNotFoundException":
|
|
3401
2288
|
case "com.amazonaws.ecr#RepositoryNotFoundException":
|
|
3402
|
-
|
|
3403
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
3404
|
-
name: errorCode,
|
|
3405
|
-
$metadata: deserializeMetadata(output),
|
|
3406
|
-
};
|
|
3407
|
-
break;
|
|
2289
|
+
throw await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context);
|
|
3408
2290
|
case "ServerException":
|
|
3409
2291
|
case "com.amazonaws.ecr#ServerException":
|
|
3410
|
-
|
|
3411
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
3412
|
-
name: errorCode,
|
|
3413
|
-
$metadata: deserializeMetadata(output),
|
|
3414
|
-
};
|
|
3415
|
-
break;
|
|
2292
|
+
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
3416
2293
|
case "UploadNotFoundException":
|
|
3417
2294
|
case "com.amazonaws.ecr#UploadNotFoundException":
|
|
3418
|
-
|
|
3419
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
3420
|
-
name: errorCode,
|
|
3421
|
-
$metadata: deserializeMetadata(output),
|
|
3422
|
-
};
|
|
3423
|
-
break;
|
|
2295
|
+
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
3424
2296
|
default:
|
|
3425
2297
|
const parsedBody = parsedOutput.body;
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
...parsedBody,
|
|
3429
|
-
name: `${errorCode}`,
|
|
3430
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2298
|
+
response = new ECRServiceException_1.ECRServiceException({
|
|
2299
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3431
2300
|
$fault: "client",
|
|
3432
2301
|
$metadata: deserializeMetadata(output),
|
|
3433
|
-
};
|
|
2302
|
+
});
|
|
2303
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3434
2304
|
}
|
|
3435
|
-
const message = response.message || response.Message || errorCode;
|
|
3436
|
-
response.message = message;
|
|
3437
|
-
delete response.Message;
|
|
3438
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3439
2305
|
};
|
|
3440
2306
|
const deserializeAws_json1_1EmptyUploadExceptionResponse = async (parsedOutput, context) => {
|
|
3441
2307
|
const body = parsedOutput.body;
|
|
3442
2308
|
const deserialized = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
3443
|
-
const
|
|
3444
|
-
name: "EmptyUploadException",
|
|
3445
|
-
$fault: "client",
|
|
2309
|
+
const exception = new models_0_1.EmptyUploadException({
|
|
3446
2310
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3447
2311
|
...deserialized,
|
|
3448
|
-
};
|
|
3449
|
-
return
|
|
2312
|
+
});
|
|
2313
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3450
2314
|
};
|
|
3451
2315
|
const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3452
2316
|
const body = parsedOutput.body;
|
|
3453
2317
|
const deserialized = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
3454
|
-
const
|
|
3455
|
-
name: "ImageAlreadyExistsException",
|
|
3456
|
-
$fault: "client",
|
|
2318
|
+
const exception = new models_0_1.ImageAlreadyExistsException({
|
|
3457
2319
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3458
2320
|
...deserialized,
|
|
3459
|
-
};
|
|
3460
|
-
return
|
|
2321
|
+
});
|
|
2322
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3461
2323
|
};
|
|
3462
2324
|
const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = async (parsedOutput, context) => {
|
|
3463
2325
|
const body = parsedOutput.body;
|
|
3464
2326
|
const deserialized = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
3465
|
-
const
|
|
3466
|
-
name: "ImageDigestDoesNotMatchException",
|
|
3467
|
-
$fault: "client",
|
|
2327
|
+
const exception = new models_0_1.ImageDigestDoesNotMatchException({
|
|
3468
2328
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3469
2329
|
...deserialized,
|
|
3470
|
-
};
|
|
3471
|
-
return
|
|
2330
|
+
});
|
|
2331
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3472
2332
|
};
|
|
3473
2333
|
const deserializeAws_json1_1ImageNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3474
2334
|
const body = parsedOutput.body;
|
|
3475
2335
|
const deserialized = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
3476
|
-
const
|
|
3477
|
-
name: "ImageNotFoundException",
|
|
3478
|
-
$fault: "client",
|
|
2336
|
+
const exception = new models_0_1.ImageNotFoundException({
|
|
3479
2337
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3480
2338
|
...deserialized,
|
|
3481
|
-
};
|
|
3482
|
-
return
|
|
2339
|
+
});
|
|
2340
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3483
2341
|
};
|
|
3484
2342
|
const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3485
2343
|
const body = parsedOutput.body;
|
|
3486
2344
|
const deserialized = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
3487
|
-
const
|
|
3488
|
-
name: "ImageTagAlreadyExistsException",
|
|
3489
|
-
$fault: "client",
|
|
2345
|
+
const exception = new models_0_1.ImageTagAlreadyExistsException({
|
|
3490
2346
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3491
2347
|
...deserialized,
|
|
3492
|
-
};
|
|
3493
|
-
return
|
|
2348
|
+
});
|
|
2349
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3494
2350
|
};
|
|
3495
2351
|
const deserializeAws_json1_1InvalidLayerExceptionResponse = async (parsedOutput, context) => {
|
|
3496
2352
|
const body = parsedOutput.body;
|
|
3497
2353
|
const deserialized = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
3498
|
-
const
|
|
3499
|
-
name: "InvalidLayerException",
|
|
3500
|
-
$fault: "client",
|
|
2354
|
+
const exception = new models_0_1.InvalidLayerException({
|
|
3501
2355
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3502
2356
|
...deserialized,
|
|
3503
|
-
};
|
|
3504
|
-
return
|
|
2357
|
+
});
|
|
2358
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3505
2359
|
};
|
|
3506
2360
|
const deserializeAws_json1_1InvalidLayerPartExceptionResponse = async (parsedOutput, context) => {
|
|
3507
2361
|
const body = parsedOutput.body;
|
|
3508
2362
|
const deserialized = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
3509
|
-
const
|
|
3510
|
-
name: "InvalidLayerPartException",
|
|
3511
|
-
$fault: "client",
|
|
2363
|
+
const exception = new models_0_1.InvalidLayerPartException({
|
|
3512
2364
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3513
2365
|
...deserialized,
|
|
3514
|
-
};
|
|
3515
|
-
return
|
|
2366
|
+
});
|
|
2367
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3516
2368
|
};
|
|
3517
2369
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3518
2370
|
const body = parsedOutput.body;
|
|
3519
2371
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
3520
|
-
const
|
|
3521
|
-
name: "InvalidParameterException",
|
|
3522
|
-
$fault: "client",
|
|
2372
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
3523
2373
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3524
2374
|
...deserialized,
|
|
3525
|
-
};
|
|
3526
|
-
return
|
|
2375
|
+
});
|
|
2376
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3527
2377
|
};
|
|
3528
2378
|
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3529
2379
|
const body = parsedOutput.body;
|
|
3530
2380
|
const deserialized = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
3531
|
-
const
|
|
3532
|
-
name: "InvalidTagParameterException",
|
|
3533
|
-
$fault: "client",
|
|
2381
|
+
const exception = new models_0_1.InvalidTagParameterException({
|
|
3534
2382
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3535
2383
|
...deserialized,
|
|
3536
|
-
};
|
|
3537
|
-
return
|
|
2384
|
+
});
|
|
2385
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3538
2386
|
};
|
|
3539
2387
|
const deserializeAws_json1_1KmsExceptionResponse = async (parsedOutput, context) => {
|
|
3540
2388
|
const body = parsedOutput.body;
|
|
3541
2389
|
const deserialized = deserializeAws_json1_1KmsException(body, context);
|
|
3542
|
-
const
|
|
3543
|
-
name: "KmsException",
|
|
3544
|
-
$fault: "client",
|
|
2390
|
+
const exception = new models_0_1.KmsException({
|
|
3545
2391
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3546
2392
|
...deserialized,
|
|
3547
|
-
};
|
|
3548
|
-
return
|
|
2393
|
+
});
|
|
2394
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3549
2395
|
};
|
|
3550
2396
|
const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3551
2397
|
const body = parsedOutput.body;
|
|
3552
2398
|
const deserialized = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
3553
|
-
const
|
|
3554
|
-
name: "LayerAlreadyExistsException",
|
|
3555
|
-
$fault: "client",
|
|
2399
|
+
const exception = new models_0_1.LayerAlreadyExistsException({
|
|
3556
2400
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3557
2401
|
...deserialized,
|
|
3558
|
-
};
|
|
3559
|
-
return
|
|
2402
|
+
});
|
|
2403
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3560
2404
|
};
|
|
3561
2405
|
const deserializeAws_json1_1LayerInaccessibleExceptionResponse = async (parsedOutput, context) => {
|
|
3562
2406
|
const body = parsedOutput.body;
|
|
3563
2407
|
const deserialized = deserializeAws_json1_1LayerInaccessibleException(body, context);
|
|
3564
|
-
const
|
|
3565
|
-
name: "LayerInaccessibleException",
|
|
3566
|
-
$fault: "client",
|
|
2408
|
+
const exception = new models_0_1.LayerInaccessibleException({
|
|
3567
2409
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3568
2410
|
...deserialized,
|
|
3569
|
-
};
|
|
3570
|
-
return
|
|
2411
|
+
});
|
|
2412
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3571
2413
|
};
|
|
3572
2414
|
const deserializeAws_json1_1LayerPartTooSmallExceptionResponse = async (parsedOutput, context) => {
|
|
3573
2415
|
const body = parsedOutput.body;
|
|
3574
2416
|
const deserialized = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
3575
|
-
const
|
|
3576
|
-
name: "LayerPartTooSmallException",
|
|
3577
|
-
$fault: "client",
|
|
2417
|
+
const exception = new models_0_1.LayerPartTooSmallException({
|
|
3578
2418
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3579
2419
|
...deserialized,
|
|
3580
|
-
};
|
|
3581
|
-
return
|
|
2420
|
+
});
|
|
2421
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3582
2422
|
};
|
|
3583
2423
|
const deserializeAws_json1_1LayersNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3584
2424
|
const body = parsedOutput.body;
|
|
3585
2425
|
const deserialized = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
3586
|
-
const
|
|
3587
|
-
name: "LayersNotFoundException",
|
|
3588
|
-
$fault: "client",
|
|
2426
|
+
const exception = new models_0_1.LayersNotFoundException({
|
|
3589
2427
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3590
2428
|
...deserialized,
|
|
3591
|
-
};
|
|
3592
|
-
return
|
|
2429
|
+
});
|
|
2430
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3593
2431
|
};
|
|
3594
2432
|
const deserializeAws_json1_1LifecyclePolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3595
2433
|
const body = parsedOutput.body;
|
|
3596
2434
|
const deserialized = deserializeAws_json1_1LifecyclePolicyNotFoundException(body, context);
|
|
3597
|
-
const
|
|
3598
|
-
name: "LifecyclePolicyNotFoundException",
|
|
3599
|
-
$fault: "client",
|
|
2435
|
+
const exception = new models_0_1.LifecyclePolicyNotFoundException({
|
|
3600
2436
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3601
2437
|
...deserialized,
|
|
3602
|
-
};
|
|
3603
|
-
return
|
|
2438
|
+
});
|
|
2439
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3604
2440
|
};
|
|
3605
2441
|
const deserializeAws_json1_1LifecyclePolicyPreviewInProgressExceptionResponse = async (parsedOutput, context) => {
|
|
3606
2442
|
const body = parsedOutput.body;
|
|
3607
2443
|
const deserialized = deserializeAws_json1_1LifecyclePolicyPreviewInProgressException(body, context);
|
|
3608
|
-
const
|
|
3609
|
-
name: "LifecyclePolicyPreviewInProgressException",
|
|
3610
|
-
$fault: "client",
|
|
2444
|
+
const exception = new models_0_1.LifecyclePolicyPreviewInProgressException({
|
|
3611
2445
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3612
2446
|
...deserialized,
|
|
3613
|
-
};
|
|
3614
|
-
return
|
|
2447
|
+
});
|
|
2448
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3615
2449
|
};
|
|
3616
2450
|
const deserializeAws_json1_1LifecyclePolicyPreviewNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3617
2451
|
const body = parsedOutput.body;
|
|
3618
2452
|
const deserialized = deserializeAws_json1_1LifecyclePolicyPreviewNotFoundException(body, context);
|
|
3619
|
-
const
|
|
3620
|
-
name: "LifecyclePolicyPreviewNotFoundException",
|
|
3621
|
-
$fault: "client",
|
|
2453
|
+
const exception = new models_0_1.LifecyclePolicyPreviewNotFoundException({
|
|
3622
2454
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3623
2455
|
...deserialized,
|
|
3624
|
-
};
|
|
3625
|
-
return
|
|
2456
|
+
});
|
|
2457
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3626
2458
|
};
|
|
3627
2459
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3628
2460
|
const body = parsedOutput.body;
|
|
3629
2461
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3630
|
-
const
|
|
3631
|
-
name: "LimitExceededException",
|
|
3632
|
-
$fault: "client",
|
|
2462
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3633
2463
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3634
2464
|
...deserialized,
|
|
3635
|
-
};
|
|
3636
|
-
return
|
|
2465
|
+
});
|
|
2466
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3637
2467
|
};
|
|
3638
2468
|
const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3639
2469
|
const body = parsedOutput.body;
|
|
3640
2470
|
const deserialized = deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException(body, context);
|
|
3641
|
-
const
|
|
3642
|
-
name: "PullThroughCacheRuleAlreadyExistsException",
|
|
3643
|
-
$fault: "client",
|
|
2471
|
+
const exception = new models_0_1.PullThroughCacheRuleAlreadyExistsException({
|
|
3644
2472
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3645
2473
|
...deserialized,
|
|
3646
|
-
};
|
|
3647
|
-
return
|
|
2474
|
+
});
|
|
2475
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3648
2476
|
};
|
|
3649
2477
|
const deserializeAws_json1_1PullThroughCacheRuleNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3650
2478
|
const body = parsedOutput.body;
|
|
3651
2479
|
const deserialized = deserializeAws_json1_1PullThroughCacheRuleNotFoundException(body, context);
|
|
3652
|
-
const
|
|
3653
|
-
name: "PullThroughCacheRuleNotFoundException",
|
|
3654
|
-
$fault: "client",
|
|
2480
|
+
const exception = new models_0_1.PullThroughCacheRuleNotFoundException({
|
|
3655
2481
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3656
2482
|
...deserialized,
|
|
3657
|
-
};
|
|
3658
|
-
return
|
|
2483
|
+
});
|
|
2484
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3659
2485
|
};
|
|
3660
2486
|
const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3661
2487
|
const body = parsedOutput.body;
|
|
3662
2488
|
const deserialized = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
3663
|
-
const
|
|
3664
|
-
name: "ReferencedImagesNotFoundException",
|
|
3665
|
-
$fault: "client",
|
|
2489
|
+
const exception = new models_0_1.ReferencedImagesNotFoundException({
|
|
3666
2490
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3667
2491
|
...deserialized,
|
|
3668
|
-
};
|
|
3669
|
-
return
|
|
2492
|
+
});
|
|
2493
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3670
2494
|
};
|
|
3671
2495
|
const deserializeAws_json1_1RegistryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3672
2496
|
const body = parsedOutput.body;
|
|
3673
2497
|
const deserialized = deserializeAws_json1_1RegistryPolicyNotFoundException(body, context);
|
|
3674
|
-
const
|
|
3675
|
-
name: "RegistryPolicyNotFoundException",
|
|
3676
|
-
$fault: "client",
|
|
2498
|
+
const exception = new models_0_1.RegistryPolicyNotFoundException({
|
|
3677
2499
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3678
2500
|
...deserialized,
|
|
3679
|
-
};
|
|
3680
|
-
return
|
|
2501
|
+
});
|
|
2502
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3681
2503
|
};
|
|
3682
2504
|
const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3683
2505
|
const body = parsedOutput.body;
|
|
3684
2506
|
const deserialized = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
3685
|
-
const
|
|
3686
|
-
name: "RepositoryAlreadyExistsException",
|
|
3687
|
-
$fault: "client",
|
|
2507
|
+
const exception = new models_0_1.RepositoryAlreadyExistsException({
|
|
3688
2508
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3689
2509
|
...deserialized,
|
|
3690
|
-
};
|
|
3691
|
-
return
|
|
2510
|
+
});
|
|
2511
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3692
2512
|
};
|
|
3693
2513
|
const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (parsedOutput, context) => {
|
|
3694
2514
|
const body = parsedOutput.body;
|
|
3695
2515
|
const deserialized = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
3696
|
-
const
|
|
3697
|
-
name: "RepositoryNotEmptyException",
|
|
3698
|
-
$fault: "client",
|
|
2516
|
+
const exception = new models_0_1.RepositoryNotEmptyException({
|
|
3699
2517
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3700
2518
|
...deserialized,
|
|
3701
|
-
};
|
|
3702
|
-
return
|
|
2519
|
+
});
|
|
2520
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3703
2521
|
};
|
|
3704
2522
|
const deserializeAws_json1_1RepositoryNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3705
2523
|
const body = parsedOutput.body;
|
|
3706
2524
|
const deserialized = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
3707
|
-
const
|
|
3708
|
-
name: "RepositoryNotFoundException",
|
|
3709
|
-
$fault: "client",
|
|
2525
|
+
const exception = new models_0_1.RepositoryNotFoundException({
|
|
3710
2526
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3711
2527
|
...deserialized,
|
|
3712
|
-
};
|
|
3713
|
-
return
|
|
2528
|
+
});
|
|
2529
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3714
2530
|
};
|
|
3715
2531
|
const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3716
2532
|
const body = parsedOutput.body;
|
|
3717
2533
|
const deserialized = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
3718
|
-
const
|
|
3719
|
-
name: "RepositoryPolicyNotFoundException",
|
|
3720
|
-
$fault: "client",
|
|
2534
|
+
const exception = new models_0_1.RepositoryPolicyNotFoundException({
|
|
3721
2535
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3722
2536
|
...deserialized,
|
|
3723
|
-
};
|
|
3724
|
-
return
|
|
2537
|
+
});
|
|
2538
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3725
2539
|
};
|
|
3726
2540
|
const deserializeAws_json1_1ScanNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3727
2541
|
const body = parsedOutput.body;
|
|
3728
2542
|
const deserialized = deserializeAws_json1_1ScanNotFoundException(body, context);
|
|
3729
|
-
const
|
|
3730
|
-
name: "ScanNotFoundException",
|
|
3731
|
-
$fault: "client",
|
|
2543
|
+
const exception = new models_0_1.ScanNotFoundException({
|
|
3732
2544
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3733
2545
|
...deserialized,
|
|
3734
|
-
};
|
|
3735
|
-
return
|
|
2546
|
+
});
|
|
2547
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3736
2548
|
};
|
|
3737
2549
|
const deserializeAws_json1_1ServerExceptionResponse = async (parsedOutput, context) => {
|
|
3738
2550
|
const body = parsedOutput.body;
|
|
3739
2551
|
const deserialized = deserializeAws_json1_1ServerException(body, context);
|
|
3740
|
-
const
|
|
3741
|
-
name: "ServerException",
|
|
3742
|
-
$fault: "server",
|
|
2552
|
+
const exception = new models_0_1.ServerException({
|
|
3743
2553
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3744
2554
|
...deserialized,
|
|
3745
|
-
};
|
|
3746
|
-
return
|
|
2555
|
+
});
|
|
2556
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3747
2557
|
};
|
|
3748
2558
|
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
3749
2559
|
const body = parsedOutput.body;
|
|
3750
2560
|
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3751
|
-
const
|
|
3752
|
-
name: "TooManyTagsException",
|
|
3753
|
-
$fault: "client",
|
|
2561
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
3754
2562
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3755
2563
|
...deserialized,
|
|
3756
|
-
};
|
|
3757
|
-
return
|
|
2564
|
+
});
|
|
2565
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3758
2566
|
};
|
|
3759
2567
|
const deserializeAws_json1_1UnsupportedImageTypeExceptionResponse = async (parsedOutput, context) => {
|
|
3760
2568
|
const body = parsedOutput.body;
|
|
3761
2569
|
const deserialized = deserializeAws_json1_1UnsupportedImageTypeException(body, context);
|
|
3762
|
-
const
|
|
3763
|
-
name: "UnsupportedImageTypeException",
|
|
3764
|
-
$fault: "client",
|
|
2570
|
+
const exception = new models_0_1.UnsupportedImageTypeException({
|
|
3765
2571
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3766
2572
|
...deserialized,
|
|
3767
|
-
};
|
|
3768
|
-
return
|
|
2573
|
+
});
|
|
2574
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3769
2575
|
};
|
|
3770
2576
|
const deserializeAws_json1_1UnsupportedUpstreamRegistryExceptionResponse = async (parsedOutput, context) => {
|
|
3771
2577
|
const body = parsedOutput.body;
|
|
3772
2578
|
const deserialized = deserializeAws_json1_1UnsupportedUpstreamRegistryException(body, context);
|
|
3773
|
-
const
|
|
3774
|
-
name: "UnsupportedUpstreamRegistryException",
|
|
3775
|
-
$fault: "client",
|
|
2579
|
+
const exception = new models_0_1.UnsupportedUpstreamRegistryException({
|
|
3776
2580
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3777
2581
|
...deserialized,
|
|
3778
|
-
};
|
|
3779
|
-
return
|
|
2582
|
+
});
|
|
2583
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3780
2584
|
};
|
|
3781
2585
|
const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3782
2586
|
const body = parsedOutput.body;
|
|
3783
2587
|
const deserialized = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
3784
|
-
const
|
|
3785
|
-
name: "UploadNotFoundException",
|
|
3786
|
-
$fault: "client",
|
|
2588
|
+
const exception = new models_0_1.UploadNotFoundException({
|
|
3787
2589
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3788
2590
|
...deserialized,
|
|
3789
|
-
};
|
|
3790
|
-
return
|
|
2591
|
+
});
|
|
2592
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3791
2593
|
};
|
|
3792
2594
|
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3793
2595
|
const body = parsedOutput.body;
|
|
3794
2596
|
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
3795
|
-
const
|
|
3796
|
-
name: "ValidationException",
|
|
3797
|
-
$fault: "client",
|
|
2597
|
+
const exception = new models_0_1.ValidationException({
|
|
3798
2598
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3799
2599
|
...deserialized,
|
|
3800
|
-
};
|
|
3801
|
-
return
|
|
2600
|
+
});
|
|
2601
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3802
2602
|
};
|
|
3803
2603
|
const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (input, context) => {
|
|
3804
2604
|
return {
|
|
@@ -4396,7 +3196,7 @@ const deserializeAws_json1_1Attribute = (output, context) => {
|
|
|
4396
3196
|
};
|
|
4397
3197
|
};
|
|
4398
3198
|
const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
4399
|
-
|
|
3199
|
+
const retVal = (output || [])
|
|
4400
3200
|
.filter((e) => e != null)
|
|
4401
3201
|
.map((entry) => {
|
|
4402
3202
|
if (entry === null) {
|
|
@@ -4404,6 +3204,7 @@ const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
|
4404
3204
|
}
|
|
4405
3205
|
return deserializeAws_json1_1Attribute(entry, context);
|
|
4406
3206
|
});
|
|
3207
|
+
return retVal;
|
|
4407
3208
|
};
|
|
4408
3209
|
const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
4409
3210
|
return {
|
|
@@ -4415,7 +3216,7 @@ const deserializeAws_json1_1AuthorizationData = (output, context) => {
|
|
|
4415
3216
|
};
|
|
4416
3217
|
};
|
|
4417
3218
|
const deserializeAws_json1_1AuthorizationDataList = (output, context) => {
|
|
4418
|
-
|
|
3219
|
+
const retVal = (output || [])
|
|
4419
3220
|
.filter((e) => e != null)
|
|
4420
3221
|
.map((entry) => {
|
|
4421
3222
|
if (entry === null) {
|
|
@@ -4423,6 +3224,7 @@ const deserializeAws_json1_1AuthorizationDataList = (output, context) => {
|
|
|
4423
3224
|
}
|
|
4424
3225
|
return deserializeAws_json1_1AuthorizationData(entry, context);
|
|
4425
3226
|
});
|
|
3227
|
+
return retVal;
|
|
4426
3228
|
};
|
|
4427
3229
|
const deserializeAws_json1_1AwsEcrContainerImageDetails = (output, context) => {
|
|
4428
3230
|
return {
|
|
@@ -4520,7 +3322,7 @@ const deserializeAws_json1_1CvssScoreAdjustment = (output, context) => {
|
|
|
4520
3322
|
};
|
|
4521
3323
|
};
|
|
4522
3324
|
const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => {
|
|
4523
|
-
|
|
3325
|
+
const retVal = (output || [])
|
|
4524
3326
|
.filter((e) => e != null)
|
|
4525
3327
|
.map((entry) => {
|
|
4526
3328
|
if (entry === null) {
|
|
@@ -4528,6 +3330,7 @@ const deserializeAws_json1_1CvssScoreAdjustmentList = (output, context) => {
|
|
|
4528
3330
|
}
|
|
4529
3331
|
return deserializeAws_json1_1CvssScoreAdjustment(entry, context);
|
|
4530
3332
|
});
|
|
3333
|
+
return retVal;
|
|
4531
3334
|
};
|
|
4532
3335
|
const deserializeAws_json1_1CvssScoreDetails = (output, context) => {
|
|
4533
3336
|
return {
|
|
@@ -4541,7 +3344,7 @@ const deserializeAws_json1_1CvssScoreDetails = (output, context) => {
|
|
|
4541
3344
|
};
|
|
4542
3345
|
};
|
|
4543
3346
|
const deserializeAws_json1_1CvssScoreList = (output, context) => {
|
|
4544
|
-
|
|
3347
|
+
const retVal = (output || [])
|
|
4545
3348
|
.filter((e) => e != null)
|
|
4546
3349
|
.map((entry) => {
|
|
4547
3350
|
if (entry === null) {
|
|
@@ -4549,6 +3352,7 @@ const deserializeAws_json1_1CvssScoreList = (output, context) => {
|
|
|
4549
3352
|
}
|
|
4550
3353
|
return deserializeAws_json1_1CvssScore(entry, context);
|
|
4551
3354
|
});
|
|
3355
|
+
return retVal;
|
|
4552
3356
|
};
|
|
4553
3357
|
const deserializeAws_json1_1DeleteLifecyclePolicyResponse = (output, context) => {
|
|
4554
3358
|
return {
|
|
@@ -4694,7 +3498,7 @@ const deserializeAws_json1_1EnhancedImageScanFinding = (output, context) => {
|
|
|
4694
3498
|
};
|
|
4695
3499
|
};
|
|
4696
3500
|
const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) => {
|
|
4697
|
-
|
|
3501
|
+
const retVal = (output || [])
|
|
4698
3502
|
.filter((e) => e != null)
|
|
4699
3503
|
.map((entry) => {
|
|
4700
3504
|
if (entry === null) {
|
|
@@ -4702,6 +3506,7 @@ const deserializeAws_json1_1EnhancedImageScanFindingList = (output, context) =>
|
|
|
4702
3506
|
}
|
|
4703
3507
|
return deserializeAws_json1_1EnhancedImageScanFinding(entry, context);
|
|
4704
3508
|
});
|
|
3509
|
+
return retVal;
|
|
4705
3510
|
};
|
|
4706
3511
|
const deserializeAws_json1_1FindingSeverityCounts = (output, context) => {
|
|
4707
3512
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4812,7 +3617,7 @@ const deserializeAws_json1_1ImageDetail = (output, context) => {
|
|
|
4812
3617
|
};
|
|
4813
3618
|
};
|
|
4814
3619
|
const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
4815
|
-
|
|
3620
|
+
const retVal = (output || [])
|
|
4816
3621
|
.filter((e) => e != null)
|
|
4817
3622
|
.map((entry) => {
|
|
4818
3623
|
if (entry === null) {
|
|
@@ -4820,6 +3625,7 @@ const deserializeAws_json1_1ImageDetailList = (output, context) => {
|
|
|
4820
3625
|
}
|
|
4821
3626
|
return deserializeAws_json1_1ImageDetail(entry, context);
|
|
4822
3627
|
});
|
|
3628
|
+
return retVal;
|
|
4823
3629
|
};
|
|
4824
3630
|
const deserializeAws_json1_1ImageDigestDoesNotMatchException = (output, context) => {
|
|
4825
3631
|
return {
|
|
@@ -4836,7 +3642,7 @@ const deserializeAws_json1_1ImageFailure = (output, context) => {
|
|
|
4836
3642
|
};
|
|
4837
3643
|
};
|
|
4838
3644
|
const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
4839
|
-
|
|
3645
|
+
const retVal = (output || [])
|
|
4840
3646
|
.filter((e) => e != null)
|
|
4841
3647
|
.map((entry) => {
|
|
4842
3648
|
if (entry === null) {
|
|
@@ -4844,6 +3650,7 @@ const deserializeAws_json1_1ImageFailureList = (output, context) => {
|
|
|
4844
3650
|
}
|
|
4845
3651
|
return deserializeAws_json1_1ImageFailure(entry, context);
|
|
4846
3652
|
});
|
|
3653
|
+
return retVal;
|
|
4847
3654
|
};
|
|
4848
3655
|
const deserializeAws_json1_1ImageIdentifier = (output, context) => {
|
|
4849
3656
|
return {
|
|
@@ -4852,7 +3659,7 @@ const deserializeAws_json1_1ImageIdentifier = (output, context) => {
|
|
|
4852
3659
|
};
|
|
4853
3660
|
};
|
|
4854
3661
|
const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
4855
|
-
|
|
3662
|
+
const retVal = (output || [])
|
|
4856
3663
|
.filter((e) => e != null)
|
|
4857
3664
|
.map((entry) => {
|
|
4858
3665
|
if (entry === null) {
|
|
@@ -4860,9 +3667,10 @@ const deserializeAws_json1_1ImageIdentifierList = (output, context) => {
|
|
|
4860
3667
|
}
|
|
4861
3668
|
return deserializeAws_json1_1ImageIdentifier(entry, context);
|
|
4862
3669
|
});
|
|
3670
|
+
return retVal;
|
|
4863
3671
|
};
|
|
4864
3672
|
const deserializeAws_json1_1ImageList = (output, context) => {
|
|
4865
|
-
|
|
3673
|
+
const retVal = (output || [])
|
|
4866
3674
|
.filter((e) => e != null)
|
|
4867
3675
|
.map((entry) => {
|
|
4868
3676
|
if (entry === null) {
|
|
@@ -4870,6 +3678,7 @@ const deserializeAws_json1_1ImageList = (output, context) => {
|
|
|
4870
3678
|
}
|
|
4871
3679
|
return deserializeAws_json1_1Image(entry, context);
|
|
4872
3680
|
});
|
|
3681
|
+
return retVal;
|
|
4873
3682
|
};
|
|
4874
3683
|
const deserializeAws_json1_1ImageNotFoundException = (output, context) => {
|
|
4875
3684
|
return {
|
|
@@ -4885,7 +3694,7 @@ const deserializeAws_json1_1ImageReplicationStatus = (output, context) => {
|
|
|
4885
3694
|
};
|
|
4886
3695
|
};
|
|
4887
3696
|
const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => {
|
|
4888
|
-
|
|
3697
|
+
const retVal = (output || [])
|
|
4889
3698
|
.filter((e) => e != null)
|
|
4890
3699
|
.map((entry) => {
|
|
4891
3700
|
if (entry === null) {
|
|
@@ -4893,6 +3702,7 @@ const deserializeAws_json1_1ImageReplicationStatusList = (output, context) => {
|
|
|
4893
3702
|
}
|
|
4894
3703
|
return deserializeAws_json1_1ImageReplicationStatus(entry, context);
|
|
4895
3704
|
});
|
|
3705
|
+
return retVal;
|
|
4896
3706
|
};
|
|
4897
3707
|
const deserializeAws_json1_1ImageScanFinding = (output, context) => {
|
|
4898
3708
|
return {
|
|
@@ -4906,7 +3716,7 @@ const deserializeAws_json1_1ImageScanFinding = (output, context) => {
|
|
|
4906
3716
|
};
|
|
4907
3717
|
};
|
|
4908
3718
|
const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
|
|
4909
|
-
|
|
3719
|
+
const retVal = (output || [])
|
|
4910
3720
|
.filter((e) => e != null)
|
|
4911
3721
|
.map((entry) => {
|
|
4912
3722
|
if (entry === null) {
|
|
@@ -4914,6 +3724,7 @@ const deserializeAws_json1_1ImageScanFindingList = (output, context) => {
|
|
|
4914
3724
|
}
|
|
4915
3725
|
return deserializeAws_json1_1ImageScanFinding(entry, context);
|
|
4916
3726
|
});
|
|
3727
|
+
return retVal;
|
|
4917
3728
|
};
|
|
4918
3729
|
const deserializeAws_json1_1ImageScanFindings = (output, context) => {
|
|
4919
3730
|
return {
|
|
@@ -4964,7 +3775,7 @@ const deserializeAws_json1_1ImageTagAlreadyExistsException = (output, context) =
|
|
|
4964
3775
|
};
|
|
4965
3776
|
};
|
|
4966
3777
|
const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
4967
|
-
|
|
3778
|
+
const retVal = (output || [])
|
|
4968
3779
|
.filter((e) => e != null)
|
|
4969
3780
|
.map((entry) => {
|
|
4970
3781
|
if (entry === null) {
|
|
@@ -4972,9 +3783,10 @@ const deserializeAws_json1_1ImageTagList = (output, context) => {
|
|
|
4972
3783
|
}
|
|
4973
3784
|
return smithy_client_1.expectString(entry);
|
|
4974
3785
|
});
|
|
3786
|
+
return retVal;
|
|
4975
3787
|
};
|
|
4976
3788
|
const deserializeAws_json1_1ImageTagsList = (output, context) => {
|
|
4977
|
-
|
|
3789
|
+
const retVal = (output || [])
|
|
4978
3790
|
.filter((e) => e != null)
|
|
4979
3791
|
.map((entry) => {
|
|
4980
3792
|
if (entry === null) {
|
|
@@ -4982,6 +3794,7 @@ const deserializeAws_json1_1ImageTagsList = (output, context) => {
|
|
|
4982
3794
|
}
|
|
4983
3795
|
return smithy_client_1.expectString(entry);
|
|
4984
3796
|
});
|
|
3797
|
+
return retVal;
|
|
4985
3798
|
};
|
|
4986
3799
|
const deserializeAws_json1_1InitiateLayerUploadResponse = (output, context) => {
|
|
4987
3800
|
return {
|
|
@@ -5040,7 +3853,7 @@ const deserializeAws_json1_1LayerFailure = (output, context) => {
|
|
|
5040
3853
|
};
|
|
5041
3854
|
};
|
|
5042
3855
|
const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
5043
|
-
|
|
3856
|
+
const retVal = (output || [])
|
|
5044
3857
|
.filter((e) => e != null)
|
|
5045
3858
|
.map((entry) => {
|
|
5046
3859
|
if (entry === null) {
|
|
@@ -5048,6 +3861,7 @@ const deserializeAws_json1_1LayerFailureList = (output, context) => {
|
|
|
5048
3861
|
}
|
|
5049
3862
|
return deserializeAws_json1_1LayerFailure(entry, context);
|
|
5050
3863
|
});
|
|
3864
|
+
return retVal;
|
|
5051
3865
|
};
|
|
5052
3866
|
const deserializeAws_json1_1LayerInaccessibleException = (output, context) => {
|
|
5053
3867
|
return {
|
|
@@ -5055,7 +3869,7 @@ const deserializeAws_json1_1LayerInaccessibleException = (output, context) => {
|
|
|
5055
3869
|
};
|
|
5056
3870
|
};
|
|
5057
3871
|
const deserializeAws_json1_1LayerList = (output, context) => {
|
|
5058
|
-
|
|
3872
|
+
const retVal = (output || [])
|
|
5059
3873
|
.filter((e) => e != null)
|
|
5060
3874
|
.map((entry) => {
|
|
5061
3875
|
if (entry === null) {
|
|
@@ -5063,6 +3877,7 @@ const deserializeAws_json1_1LayerList = (output, context) => {
|
|
|
5063
3877
|
}
|
|
5064
3878
|
return deserializeAws_json1_1Layer(entry, context);
|
|
5065
3879
|
});
|
|
3880
|
+
return retVal;
|
|
5066
3881
|
};
|
|
5067
3882
|
const deserializeAws_json1_1LayerPartTooSmallException = (output, context) => {
|
|
5068
3883
|
return {
|
|
@@ -5105,7 +3920,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResult = (output, context) =>
|
|
|
5105
3920
|
};
|
|
5106
3921
|
};
|
|
5107
3922
|
const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context) => {
|
|
5108
|
-
|
|
3923
|
+
const retVal = (output || [])
|
|
5109
3924
|
.filter((e) => e != null)
|
|
5110
3925
|
.map((entry) => {
|
|
5111
3926
|
if (entry === null) {
|
|
@@ -5113,6 +3928,7 @@ const deserializeAws_json1_1LifecyclePolicyPreviewResultList = (output, context)
|
|
|
5113
3928
|
}
|
|
5114
3929
|
return deserializeAws_json1_1LifecyclePolicyPreviewResult(entry, context);
|
|
5115
3930
|
});
|
|
3931
|
+
return retVal;
|
|
5116
3932
|
};
|
|
5117
3933
|
const deserializeAws_json1_1LifecyclePolicyPreviewSummary = (output, context) => {
|
|
5118
3934
|
return {
|
|
@@ -5186,7 +4002,7 @@ const deserializeAws_json1_1PullThroughCacheRuleAlreadyExistsException = (output
|
|
|
5186
4002
|
};
|
|
5187
4003
|
};
|
|
5188
4004
|
const deserializeAws_json1_1PullThroughCacheRuleList = (output, context) => {
|
|
5189
|
-
|
|
4005
|
+
const retVal = (output || [])
|
|
5190
4006
|
.filter((e) => e != null)
|
|
5191
4007
|
.map((entry) => {
|
|
5192
4008
|
if (entry === null) {
|
|
@@ -5194,6 +4010,7 @@ const deserializeAws_json1_1PullThroughCacheRuleList = (output, context) => {
|
|
|
5194
4010
|
}
|
|
5195
4011
|
return deserializeAws_json1_1PullThroughCacheRule(entry, context);
|
|
5196
4012
|
});
|
|
4013
|
+
return retVal;
|
|
5197
4014
|
};
|
|
5198
4015
|
const deserializeAws_json1_1PullThroughCacheRuleNotFoundException = (output, context) => {
|
|
5199
4016
|
return {
|
|
@@ -5262,7 +4079,7 @@ const deserializeAws_json1_1ReferencedImagesNotFoundException = (output, context
|
|
|
5262
4079
|
};
|
|
5263
4080
|
};
|
|
5264
4081
|
const deserializeAws_json1_1ReferenceUrlsList = (output, context) => {
|
|
5265
|
-
|
|
4082
|
+
const retVal = (output || [])
|
|
5266
4083
|
.filter((e) => e != null)
|
|
5267
4084
|
.map((entry) => {
|
|
5268
4085
|
if (entry === null) {
|
|
@@ -5270,6 +4087,7 @@ const deserializeAws_json1_1ReferenceUrlsList = (output, context) => {
|
|
|
5270
4087
|
}
|
|
5271
4088
|
return smithy_client_1.expectString(entry);
|
|
5272
4089
|
});
|
|
4090
|
+
return retVal;
|
|
5273
4091
|
};
|
|
5274
4092
|
const deserializeAws_json1_1RegistryPolicyNotFoundException = (output, context) => {
|
|
5275
4093
|
return {
|
|
@@ -5293,7 +4111,7 @@ const deserializeAws_json1_1RegistryScanningRule = (output, context) => {
|
|
|
5293
4111
|
};
|
|
5294
4112
|
};
|
|
5295
4113
|
const deserializeAws_json1_1RegistryScanningRuleList = (output, context) => {
|
|
5296
|
-
|
|
4114
|
+
const retVal = (output || [])
|
|
5297
4115
|
.filter((e) => e != null)
|
|
5298
4116
|
.map((entry) => {
|
|
5299
4117
|
if (entry === null) {
|
|
@@ -5301,9 +4119,10 @@ const deserializeAws_json1_1RegistryScanningRuleList = (output, context) => {
|
|
|
5301
4119
|
}
|
|
5302
4120
|
return deserializeAws_json1_1RegistryScanningRule(entry, context);
|
|
5303
4121
|
});
|
|
4122
|
+
return retVal;
|
|
5304
4123
|
};
|
|
5305
4124
|
const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
|
|
5306
|
-
|
|
4125
|
+
const retVal = (output || [])
|
|
5307
4126
|
.filter((e) => e != null)
|
|
5308
4127
|
.map((entry) => {
|
|
5309
4128
|
if (entry === null) {
|
|
@@ -5311,6 +4130,7 @@ const deserializeAws_json1_1RelatedVulnerabilitiesList = (output, context) => {
|
|
|
5311
4130
|
}
|
|
5312
4131
|
return smithy_client_1.expectString(entry);
|
|
5313
4132
|
});
|
|
4133
|
+
return retVal;
|
|
5314
4134
|
};
|
|
5315
4135
|
const deserializeAws_json1_1Remediation = (output, context) => {
|
|
5316
4136
|
return {
|
|
@@ -5333,7 +4153,7 @@ const deserializeAws_json1_1ReplicationDestination = (output, context) => {
|
|
|
5333
4153
|
};
|
|
5334
4154
|
};
|
|
5335
4155
|
const deserializeAws_json1_1ReplicationDestinationList = (output, context) => {
|
|
5336
|
-
|
|
4156
|
+
const retVal = (output || [])
|
|
5337
4157
|
.filter((e) => e != null)
|
|
5338
4158
|
.map((entry) => {
|
|
5339
4159
|
if (entry === null) {
|
|
@@ -5341,6 +4161,7 @@ const deserializeAws_json1_1ReplicationDestinationList = (output, context) => {
|
|
|
5341
4161
|
}
|
|
5342
4162
|
return deserializeAws_json1_1ReplicationDestination(entry, context);
|
|
5343
4163
|
});
|
|
4164
|
+
return retVal;
|
|
5344
4165
|
};
|
|
5345
4166
|
const deserializeAws_json1_1ReplicationRule = (output, context) => {
|
|
5346
4167
|
return {
|
|
@@ -5353,7 +4174,7 @@ const deserializeAws_json1_1ReplicationRule = (output, context) => {
|
|
|
5353
4174
|
};
|
|
5354
4175
|
};
|
|
5355
4176
|
const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
|
|
5356
|
-
|
|
4177
|
+
const retVal = (output || [])
|
|
5357
4178
|
.filter((e) => e != null)
|
|
5358
4179
|
.map((entry) => {
|
|
5359
4180
|
if (entry === null) {
|
|
@@ -5361,6 +4182,7 @@ const deserializeAws_json1_1ReplicationRuleList = (output, context) => {
|
|
|
5361
4182
|
}
|
|
5362
4183
|
return deserializeAws_json1_1ReplicationRule(entry, context);
|
|
5363
4184
|
});
|
|
4185
|
+
return retVal;
|
|
5364
4186
|
};
|
|
5365
4187
|
const deserializeAws_json1_1Repository = (output, context) => {
|
|
5366
4188
|
return {
|
|
@@ -5392,7 +4214,7 @@ const deserializeAws_json1_1RepositoryFilter = (output, context) => {
|
|
|
5392
4214
|
};
|
|
5393
4215
|
};
|
|
5394
4216
|
const deserializeAws_json1_1RepositoryFilterList = (output, context) => {
|
|
5395
|
-
|
|
4217
|
+
const retVal = (output || [])
|
|
5396
4218
|
.filter((e) => e != null)
|
|
5397
4219
|
.map((entry) => {
|
|
5398
4220
|
if (entry === null) {
|
|
@@ -5400,9 +4222,10 @@ const deserializeAws_json1_1RepositoryFilterList = (output, context) => {
|
|
|
5400
4222
|
}
|
|
5401
4223
|
return deserializeAws_json1_1RepositoryFilter(entry, context);
|
|
5402
4224
|
});
|
|
4225
|
+
return retVal;
|
|
5403
4226
|
};
|
|
5404
4227
|
const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
5405
|
-
|
|
4228
|
+
const retVal = (output || [])
|
|
5406
4229
|
.filter((e) => e != null)
|
|
5407
4230
|
.map((entry) => {
|
|
5408
4231
|
if (entry === null) {
|
|
@@ -5410,6 +4233,7 @@ const deserializeAws_json1_1RepositoryList = (output, context) => {
|
|
|
5410
4233
|
}
|
|
5411
4234
|
return deserializeAws_json1_1Repository(entry, context);
|
|
5412
4235
|
});
|
|
4236
|
+
return retVal;
|
|
5413
4237
|
};
|
|
5414
4238
|
const deserializeAws_json1_1RepositoryNotEmptyException = (output, context) => {
|
|
5415
4239
|
return {
|
|
@@ -5445,7 +4269,7 @@ const deserializeAws_json1_1RepositoryScanningConfigurationFailure = (output, co
|
|
|
5445
4269
|
};
|
|
5446
4270
|
};
|
|
5447
4271
|
const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = (output, context) => {
|
|
5448
|
-
|
|
4272
|
+
const retVal = (output || [])
|
|
5449
4273
|
.filter((e) => e != null)
|
|
5450
4274
|
.map((entry) => {
|
|
5451
4275
|
if (entry === null) {
|
|
@@ -5453,9 +4277,10 @@ const deserializeAws_json1_1RepositoryScanningConfigurationFailureList = (output
|
|
|
5453
4277
|
}
|
|
5454
4278
|
return deserializeAws_json1_1RepositoryScanningConfigurationFailure(entry, context);
|
|
5455
4279
|
});
|
|
4280
|
+
return retVal;
|
|
5456
4281
|
};
|
|
5457
4282
|
const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, context) => {
|
|
5458
|
-
|
|
4283
|
+
const retVal = (output || [])
|
|
5459
4284
|
.filter((e) => e != null)
|
|
5460
4285
|
.map((entry) => {
|
|
5461
4286
|
if (entry === null) {
|
|
@@ -5463,6 +4288,7 @@ const deserializeAws_json1_1RepositoryScanningConfigurationList = (output, conte
|
|
|
5463
4288
|
}
|
|
5464
4289
|
return deserializeAws_json1_1RepositoryScanningConfiguration(entry, context);
|
|
5465
4290
|
});
|
|
4291
|
+
return retVal;
|
|
5466
4292
|
};
|
|
5467
4293
|
const deserializeAws_json1_1Resource = (output, context) => {
|
|
5468
4294
|
return {
|
|
@@ -5482,7 +4308,7 @@ const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
|
5482
4308
|
};
|
|
5483
4309
|
};
|
|
5484
4310
|
const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
5485
|
-
|
|
4311
|
+
const retVal = (output || [])
|
|
5486
4312
|
.filter((e) => e != null)
|
|
5487
4313
|
.map((entry) => {
|
|
5488
4314
|
if (entry === null) {
|
|
@@ -5490,6 +4316,7 @@ const deserializeAws_json1_1ResourceList = (output, context) => {
|
|
|
5490
4316
|
}
|
|
5491
4317
|
return deserializeAws_json1_1Resource(entry, context);
|
|
5492
4318
|
});
|
|
4319
|
+
return retVal;
|
|
5493
4320
|
};
|
|
5494
4321
|
const deserializeAws_json1_1ScanningRepositoryFilter = (output, context) => {
|
|
5495
4322
|
return {
|
|
@@ -5498,7 +4325,7 @@ const deserializeAws_json1_1ScanningRepositoryFilter = (output, context) => {
|
|
|
5498
4325
|
};
|
|
5499
4326
|
};
|
|
5500
4327
|
const deserializeAws_json1_1ScanningRepositoryFilterList = (output, context) => {
|
|
5501
|
-
|
|
4328
|
+
const retVal = (output || [])
|
|
5502
4329
|
.filter((e) => e != null)
|
|
5503
4330
|
.map((entry) => {
|
|
5504
4331
|
if (entry === null) {
|
|
@@ -5506,6 +4333,7 @@ const deserializeAws_json1_1ScanningRepositoryFilterList = (output, context) =>
|
|
|
5506
4333
|
}
|
|
5507
4334
|
return deserializeAws_json1_1ScanningRepositoryFilter(entry, context);
|
|
5508
4335
|
});
|
|
4336
|
+
return retVal;
|
|
5509
4337
|
};
|
|
5510
4338
|
const deserializeAws_json1_1ScanNotFoundException = (output, context) => {
|
|
5511
4339
|
return {
|
|
@@ -5558,7 +4386,7 @@ const deserializeAws_json1_1Tag = (output, context) => {
|
|
|
5558
4386
|
};
|
|
5559
4387
|
};
|
|
5560
4388
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
5561
|
-
|
|
4389
|
+
const retVal = (output || [])
|
|
5562
4390
|
.filter((e) => e != null)
|
|
5563
4391
|
.map((entry) => {
|
|
5564
4392
|
if (entry === null) {
|
|
@@ -5566,6 +4394,7 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
5566
4394
|
}
|
|
5567
4395
|
return deserializeAws_json1_1Tag(entry, context);
|
|
5568
4396
|
});
|
|
4397
|
+
return retVal;
|
|
5569
4398
|
};
|
|
5570
4399
|
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
5571
4400
|
return {};
|
|
@@ -5630,7 +4459,7 @@ const deserializeAws_json1_1VulnerablePackage = (output, context) => {
|
|
|
5630
4459
|
};
|
|
5631
4460
|
};
|
|
5632
4461
|
const deserializeAws_json1_1VulnerablePackagesList = (output, context) => {
|
|
5633
|
-
|
|
4462
|
+
const retVal = (output || [])
|
|
5634
4463
|
.filter((e) => e != null)
|
|
5635
4464
|
.map((entry) => {
|
|
5636
4465
|
if (entry === null) {
|
|
@@ -5638,6 +4467,7 @@ const deserializeAws_json1_1VulnerablePackagesList = (output, context) => {
|
|
|
5638
4467
|
}
|
|
5639
4468
|
return deserializeAws_json1_1VulnerablePackage(entry, context);
|
|
5640
4469
|
});
|
|
4470
|
+
return retVal;
|
|
5641
4471
|
};
|
|
5642
4472
|
const deserializeMetadata = (output) => {
|
|
5643
4473
|
var _a;
|