@aws-sdk/client-ecr-public 3.141.0 → 3.150.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +115 -208
- package/dist-es/protocols/Aws_json1_1.js +185 -209
- package/package.json +11 -6
|
@@ -254,7 +254,6 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
254
254
|
...output,
|
|
255
255
|
body: await parseBody(output.body, context),
|
|
256
256
|
};
|
|
257
|
-
let response;
|
|
258
257
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
258
|
switch (errorCode) {
|
|
260
259
|
case "InvalidParameterException":
|
|
@@ -271,14 +270,12 @@ const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (out
|
|
|
271
270
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
272
271
|
default:
|
|
273
272
|
const parsedBody = parsedOutput.body;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
$metadata,
|
|
273
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
274
|
+
output,
|
|
275
|
+
parsedBody,
|
|
276
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
277
|
+
errorCode,
|
|
280
278
|
});
|
|
281
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
282
279
|
}
|
|
283
280
|
};
|
|
284
281
|
const deserializeAws_json1_1BatchDeleteImageCommand = async (output, context) => {
|
|
@@ -300,7 +297,6 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
300
297
|
...output,
|
|
301
298
|
body: await parseBody(output.body, context),
|
|
302
299
|
};
|
|
303
|
-
let response;
|
|
304
300
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
305
301
|
switch (errorCode) {
|
|
306
302
|
case "InvalidParameterException":
|
|
@@ -314,14 +310,12 @@ const deserializeAws_json1_1BatchDeleteImageCommandError = async (output, contex
|
|
|
314
310
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
315
311
|
default:
|
|
316
312
|
const parsedBody = parsedOutput.body;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
$metadata,
|
|
313
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
314
|
+
output,
|
|
315
|
+
parsedBody,
|
|
316
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
317
|
+
errorCode,
|
|
323
318
|
});
|
|
324
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
325
319
|
}
|
|
326
320
|
};
|
|
327
321
|
const deserializeAws_json1_1CompleteLayerUploadCommand = async (output, context) => {
|
|
@@ -343,7 +337,6 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
343
337
|
...output,
|
|
344
338
|
body: await parseBody(output.body, context),
|
|
345
339
|
};
|
|
346
|
-
let response;
|
|
347
340
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
348
341
|
switch (errorCode) {
|
|
349
342
|
case "EmptyUploadException":
|
|
@@ -378,14 +371,12 @@ const deserializeAws_json1_1CompleteLayerUploadCommandError = async (output, con
|
|
|
378
371
|
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
379
372
|
default:
|
|
380
373
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
$metadata,
|
|
374
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
375
|
+
output,
|
|
376
|
+
parsedBody,
|
|
377
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
378
|
+
errorCode,
|
|
387
379
|
});
|
|
388
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
389
380
|
}
|
|
390
381
|
};
|
|
391
382
|
const deserializeAws_json1_1CreateRepositoryCommand = async (output, context) => {
|
|
@@ -407,7 +398,6 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
407
398
|
...output,
|
|
408
399
|
body: await parseBody(output.body, context),
|
|
409
400
|
};
|
|
410
|
-
let response;
|
|
411
401
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
402
|
switch (errorCode) {
|
|
413
403
|
case "InvalidParameterException":
|
|
@@ -430,14 +420,12 @@ const deserializeAws_json1_1CreateRepositoryCommandError = async (output, contex
|
|
|
430
420
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
431
421
|
default:
|
|
432
422
|
const parsedBody = parsedOutput.body;
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
$metadata,
|
|
423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
424
|
+
output,
|
|
425
|
+
parsedBody,
|
|
426
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
427
|
+
errorCode,
|
|
439
428
|
});
|
|
440
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
441
429
|
}
|
|
442
430
|
};
|
|
443
431
|
const deserializeAws_json1_1DeleteRepositoryCommand = async (output, context) => {
|
|
@@ -459,7 +447,6 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
459
447
|
...output,
|
|
460
448
|
body: await parseBody(output.body, context),
|
|
461
449
|
};
|
|
462
|
-
let response;
|
|
463
450
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
451
|
switch (errorCode) {
|
|
465
452
|
case "InvalidParameterException":
|
|
@@ -476,14 +463,12 @@ const deserializeAws_json1_1DeleteRepositoryCommandError = async (output, contex
|
|
|
476
463
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
477
464
|
default:
|
|
478
465
|
const parsedBody = parsedOutput.body;
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
$metadata,
|
|
466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
467
|
+
output,
|
|
468
|
+
parsedBody,
|
|
469
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
470
|
+
errorCode,
|
|
485
471
|
});
|
|
486
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
487
472
|
}
|
|
488
473
|
};
|
|
489
474
|
const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (output, context) => {
|
|
@@ -505,7 +490,6 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
505
490
|
...output,
|
|
506
491
|
body: await parseBody(output.body, context),
|
|
507
492
|
};
|
|
508
|
-
let response;
|
|
509
493
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
510
494
|
switch (errorCode) {
|
|
511
495
|
case "InvalidParameterException":
|
|
@@ -522,14 +506,12 @@ const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (output,
|
|
|
522
506
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
523
507
|
default:
|
|
524
508
|
const parsedBody = parsedOutput.body;
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
$metadata,
|
|
509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
510
|
+
output,
|
|
511
|
+
parsedBody,
|
|
512
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
513
|
+
errorCode,
|
|
531
514
|
});
|
|
532
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
533
515
|
}
|
|
534
516
|
};
|
|
535
517
|
const deserializeAws_json1_1DescribeImagesCommand = async (output, context) => {
|
|
@@ -551,7 +533,6 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
551
533
|
...output,
|
|
552
534
|
body: await parseBody(output.body, context),
|
|
553
535
|
};
|
|
554
|
-
let response;
|
|
555
536
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
537
|
switch (errorCode) {
|
|
557
538
|
case "ImageNotFoundException":
|
|
@@ -568,14 +549,12 @@ const deserializeAws_json1_1DescribeImagesCommandError = async (output, context)
|
|
|
568
549
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
569
550
|
default:
|
|
570
551
|
const parsedBody = parsedOutput.body;
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
$metadata,
|
|
552
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
553
|
+
output,
|
|
554
|
+
parsedBody,
|
|
555
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
556
|
+
errorCode,
|
|
577
557
|
});
|
|
578
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
579
558
|
}
|
|
580
559
|
};
|
|
581
560
|
const deserializeAws_json1_1DescribeImageTagsCommand = async (output, context) => {
|
|
@@ -597,7 +576,6 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
597
576
|
...output,
|
|
598
577
|
body: await parseBody(output.body, context),
|
|
599
578
|
};
|
|
600
|
-
let response;
|
|
601
579
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
602
580
|
switch (errorCode) {
|
|
603
581
|
case "InvalidParameterException":
|
|
@@ -611,14 +589,12 @@ const deserializeAws_json1_1DescribeImageTagsCommandError = async (output, conte
|
|
|
611
589
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
612
590
|
default:
|
|
613
591
|
const parsedBody = parsedOutput.body;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
$metadata,
|
|
592
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
593
|
+
output,
|
|
594
|
+
parsedBody,
|
|
595
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
596
|
+
errorCode,
|
|
620
597
|
});
|
|
621
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
622
598
|
}
|
|
623
599
|
};
|
|
624
600
|
const deserializeAws_json1_1DescribeRegistriesCommand = async (output, context) => {
|
|
@@ -640,7 +616,6 @@ const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, cont
|
|
|
640
616
|
...output,
|
|
641
617
|
body: await parseBody(output.body, context),
|
|
642
618
|
};
|
|
643
|
-
let response;
|
|
644
619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
645
620
|
switch (errorCode) {
|
|
646
621
|
case "InvalidParameterException":
|
|
@@ -654,14 +629,12 @@ const deserializeAws_json1_1DescribeRegistriesCommandError = async (output, cont
|
|
|
654
629
|
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
655
630
|
default:
|
|
656
631
|
const parsedBody = parsedOutput.body;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
$metadata,
|
|
632
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
633
|
+
output,
|
|
634
|
+
parsedBody,
|
|
635
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
636
|
+
errorCode,
|
|
663
637
|
});
|
|
664
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
665
638
|
}
|
|
666
639
|
};
|
|
667
640
|
const deserializeAws_json1_1DescribeRepositoriesCommand = async (output, context) => {
|
|
@@ -683,7 +656,6 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
683
656
|
...output,
|
|
684
657
|
body: await parseBody(output.body, context),
|
|
685
658
|
};
|
|
686
|
-
let response;
|
|
687
659
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
688
660
|
switch (errorCode) {
|
|
689
661
|
case "InvalidParameterException":
|
|
@@ -697,14 +669,12 @@ const deserializeAws_json1_1DescribeRepositoriesCommandError = async (output, co
|
|
|
697
669
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
698
670
|
default:
|
|
699
671
|
const parsedBody = parsedOutput.body;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$metadata,
|
|
672
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
673
|
+
output,
|
|
674
|
+
parsedBody,
|
|
675
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
676
|
+
errorCode,
|
|
706
677
|
});
|
|
707
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
708
678
|
}
|
|
709
679
|
};
|
|
710
680
|
const deserializeAws_json1_1GetAuthorizationTokenCommand = async (output, context) => {
|
|
@@ -726,7 +696,6 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
726
696
|
...output,
|
|
727
697
|
body: await parseBody(output.body, context),
|
|
728
698
|
};
|
|
729
|
-
let response;
|
|
730
699
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
700
|
switch (errorCode) {
|
|
732
701
|
case "InvalidParameterException":
|
|
@@ -737,14 +706,12 @@ const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (output, c
|
|
|
737
706
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
738
707
|
default:
|
|
739
708
|
const parsedBody = parsedOutput.body;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
$metadata,
|
|
709
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
710
|
+
output,
|
|
711
|
+
parsedBody,
|
|
712
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
713
|
+
errorCode,
|
|
746
714
|
});
|
|
747
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
748
715
|
}
|
|
749
716
|
};
|
|
750
717
|
const deserializeAws_json1_1GetRegistryCatalogDataCommand = async (output, context) => {
|
|
@@ -766,7 +733,6 @@ const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output,
|
|
|
766
733
|
...output,
|
|
767
734
|
body: await parseBody(output.body, context),
|
|
768
735
|
};
|
|
769
|
-
let response;
|
|
770
736
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
771
737
|
switch (errorCode) {
|
|
772
738
|
case "ServerException":
|
|
@@ -777,14 +743,12 @@ const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (output,
|
|
|
777
743
|
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
778
744
|
default:
|
|
779
745
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
$metadata,
|
|
746
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
747
|
+
output,
|
|
748
|
+
parsedBody,
|
|
749
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
750
|
+
errorCode,
|
|
786
751
|
});
|
|
787
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
788
752
|
}
|
|
789
753
|
};
|
|
790
754
|
const deserializeAws_json1_1GetRepositoryCatalogDataCommand = async (output, context) => {
|
|
@@ -806,7 +770,6 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
806
770
|
...output,
|
|
807
771
|
body: await parseBody(output.body, context),
|
|
808
772
|
};
|
|
809
|
-
let response;
|
|
810
773
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
774
|
switch (errorCode) {
|
|
812
775
|
case "InvalidParameterException":
|
|
@@ -820,14 +783,12 @@ const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (output
|
|
|
820
783
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
821
784
|
default:
|
|
822
785
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
$metadata,
|
|
786
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
787
|
+
output,
|
|
788
|
+
parsedBody,
|
|
789
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
790
|
+
errorCode,
|
|
829
791
|
});
|
|
830
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
831
792
|
}
|
|
832
793
|
};
|
|
833
794
|
const deserializeAws_json1_1GetRepositoryPolicyCommand = async (output, context) => {
|
|
@@ -849,7 +810,6 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
849
810
|
...output,
|
|
850
811
|
body: await parseBody(output.body, context),
|
|
851
812
|
};
|
|
852
|
-
let response;
|
|
853
813
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
814
|
switch (errorCode) {
|
|
855
815
|
case "InvalidParameterException":
|
|
@@ -866,14 +826,12 @@ const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (output, con
|
|
|
866
826
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
867
827
|
default:
|
|
868
828
|
const parsedBody = parsedOutput.body;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
$metadata,
|
|
829
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
830
|
+
output,
|
|
831
|
+
parsedBody,
|
|
832
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
833
|
+
errorCode,
|
|
875
834
|
});
|
|
876
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
877
835
|
}
|
|
878
836
|
};
|
|
879
837
|
const deserializeAws_json1_1InitiateLayerUploadCommand = async (output, context) => {
|
|
@@ -895,7 +853,6 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
895
853
|
...output,
|
|
896
854
|
body: await parseBody(output.body, context),
|
|
897
855
|
};
|
|
898
|
-
let response;
|
|
899
856
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
900
857
|
switch (errorCode) {
|
|
901
858
|
case "InvalidParameterException":
|
|
@@ -915,14 +872,12 @@ const deserializeAws_json1_1InitiateLayerUploadCommandError = async (output, con
|
|
|
915
872
|
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
916
873
|
default:
|
|
917
874
|
const parsedBody = parsedOutput.body;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
$metadata,
|
|
875
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
876
|
+
output,
|
|
877
|
+
parsedBody,
|
|
878
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
879
|
+
errorCode,
|
|
924
880
|
});
|
|
925
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
926
881
|
}
|
|
927
882
|
};
|
|
928
883
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -944,7 +899,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
944
899
|
...output,
|
|
945
900
|
body: await parseBody(output.body, context),
|
|
946
901
|
};
|
|
947
|
-
let response;
|
|
948
902
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
903
|
switch (errorCode) {
|
|
950
904
|
case "InvalidParameterException":
|
|
@@ -958,14 +912,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
958
912
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
959
913
|
default:
|
|
960
914
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
$metadata,
|
|
915
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
916
|
+
output,
|
|
917
|
+
parsedBody,
|
|
918
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
919
|
+
errorCode,
|
|
967
920
|
});
|
|
968
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
969
921
|
}
|
|
970
922
|
};
|
|
971
923
|
const deserializeAws_json1_1PutImageCommand = async (output, context) => {
|
|
@@ -987,7 +939,6 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
987
939
|
...output,
|
|
988
940
|
body: await parseBody(output.body, context),
|
|
989
941
|
};
|
|
990
|
-
let response;
|
|
991
942
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
992
943
|
switch (errorCode) {
|
|
993
944
|
case "ImageAlreadyExistsException":
|
|
@@ -1025,14 +976,12 @@ const deserializeAws_json1_1PutImageCommandError = async (output, context) => {
|
|
|
1025
976
|
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1026
977
|
default:
|
|
1027
978
|
const parsedBody = parsedOutput.body;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
$metadata,
|
|
979
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
980
|
+
output,
|
|
981
|
+
parsedBody,
|
|
982
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
983
|
+
errorCode,
|
|
1034
984
|
});
|
|
1035
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1036
985
|
}
|
|
1037
986
|
};
|
|
1038
987
|
const deserializeAws_json1_1PutRegistryCatalogDataCommand = async (output, context) => {
|
|
@@ -1054,7 +1003,6 @@ const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output,
|
|
|
1054
1003
|
...output,
|
|
1055
1004
|
body: await parseBody(output.body, context),
|
|
1056
1005
|
};
|
|
1057
|
-
let response;
|
|
1058
1006
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
1007
|
switch (errorCode) {
|
|
1060
1008
|
case "InvalidParameterException":
|
|
@@ -1068,14 +1016,12 @@ const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (output,
|
|
|
1068
1016
|
throw await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context);
|
|
1069
1017
|
default:
|
|
1070
1018
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
$metadata,
|
|
1019
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1020
|
+
output,
|
|
1021
|
+
parsedBody,
|
|
1022
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1023
|
+
errorCode,
|
|
1077
1024
|
});
|
|
1078
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1079
1025
|
}
|
|
1080
1026
|
};
|
|
1081
1027
|
const deserializeAws_json1_1PutRepositoryCatalogDataCommand = async (output, context) => {
|
|
@@ -1097,7 +1043,6 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1097
1043
|
...output,
|
|
1098
1044
|
body: await parseBody(output.body, context),
|
|
1099
1045
|
};
|
|
1100
|
-
let response;
|
|
1101
1046
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
1047
|
switch (errorCode) {
|
|
1103
1048
|
case "InvalidParameterException":
|
|
@@ -1111,14 +1056,12 @@ const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (output
|
|
|
1111
1056
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1112
1057
|
default:
|
|
1113
1058
|
const parsedBody = parsedOutput.body;
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
$metadata,
|
|
1059
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1060
|
+
output,
|
|
1061
|
+
parsedBody,
|
|
1062
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1063
|
+
errorCode,
|
|
1120
1064
|
});
|
|
1121
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1122
1065
|
}
|
|
1123
1066
|
};
|
|
1124
1067
|
const deserializeAws_json1_1SetRepositoryPolicyCommand = async (output, context) => {
|
|
@@ -1140,7 +1083,6 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1140
1083
|
...output,
|
|
1141
1084
|
body: await parseBody(output.body, context),
|
|
1142
1085
|
};
|
|
1143
|
-
let response;
|
|
1144
1086
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
1087
|
switch (errorCode) {
|
|
1146
1088
|
case "InvalidParameterException":
|
|
@@ -1154,14 +1096,12 @@ const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (output, con
|
|
|
1154
1096
|
throw await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context);
|
|
1155
1097
|
default:
|
|
1156
1098
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
$metadata,
|
|
1099
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1100
|
+
output,
|
|
1101
|
+
parsedBody,
|
|
1102
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1103
|
+
errorCode,
|
|
1163
1104
|
});
|
|
1164
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1165
1105
|
}
|
|
1166
1106
|
};
|
|
1167
1107
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1183,7 +1123,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1183
1123
|
...output,
|
|
1184
1124
|
body: await parseBody(output.body, context),
|
|
1185
1125
|
};
|
|
1186
|
-
let response;
|
|
1187
1126
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1127
|
switch (errorCode) {
|
|
1189
1128
|
case "InvalidParameterException":
|
|
@@ -1203,14 +1142,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1203
1142
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1204
1143
|
default:
|
|
1205
1144
|
const parsedBody = parsedOutput.body;
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
$metadata,
|
|
1145
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1146
|
+
output,
|
|
1147
|
+
parsedBody,
|
|
1148
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1149
|
+
errorCode,
|
|
1212
1150
|
});
|
|
1213
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1214
1151
|
}
|
|
1215
1152
|
};
|
|
1216
1153
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1232,7 +1169,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1232
1169
|
...output,
|
|
1233
1170
|
body: await parseBody(output.body, context),
|
|
1234
1171
|
};
|
|
1235
|
-
let response;
|
|
1236
1172
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
1173
|
switch (errorCode) {
|
|
1238
1174
|
case "InvalidParameterException":
|
|
@@ -1252,14 +1188,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1252
1188
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1253
1189
|
default:
|
|
1254
1190
|
const parsedBody = parsedOutput.body;
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
$metadata,
|
|
1191
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1192
|
+
output,
|
|
1193
|
+
parsedBody,
|
|
1194
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1195
|
+
errorCode,
|
|
1261
1196
|
});
|
|
1262
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1263
1197
|
}
|
|
1264
1198
|
};
|
|
1265
1199
|
const deserializeAws_json1_1UploadLayerPartCommand = async (output, context) => {
|
|
@@ -1281,7 +1215,6 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
1281
1215
|
...output,
|
|
1282
1216
|
body: await parseBody(output.body, context),
|
|
1283
1217
|
};
|
|
1284
|
-
let response;
|
|
1285
1218
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1286
1219
|
switch (errorCode) {
|
|
1287
1220
|
case "InvalidLayerPartException":
|
|
@@ -1310,14 +1243,12 @@ const deserializeAws_json1_1UploadLayerPartCommandError = async (output, context
|
|
|
1310
1243
|
throw await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context);
|
|
1311
1244
|
default:
|
|
1312
1245
|
const parsedBody = parsedOutput.body;
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
$metadata,
|
|
1246
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1247
|
+
output,
|
|
1248
|
+
parsedBody,
|
|
1249
|
+
exceptionCtor: ECRPUBLICServiceException_1.ECRPUBLICServiceException,
|
|
1250
|
+
errorCode,
|
|
1319
1251
|
});
|
|
1320
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1321
1252
|
}
|
|
1322
1253
|
};
|
|
1323
1254
|
const deserializeAws_json1_1EmptyUploadExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1531,9 +1462,6 @@ const serializeAws_json1_1ArchitectureList = (input, context) => {
|
|
|
1531
1462
|
return input
|
|
1532
1463
|
.filter((e) => e != null)
|
|
1533
1464
|
.map((entry) => {
|
|
1534
|
-
if (entry === null) {
|
|
1535
|
-
return null;
|
|
1536
|
-
}
|
|
1537
1465
|
return entry;
|
|
1538
1466
|
});
|
|
1539
1467
|
};
|
|
@@ -1557,9 +1485,6 @@ const serializeAws_json1_1BatchedOperationLayerDigestList = (input, context) =>
|
|
|
1557
1485
|
return input
|
|
1558
1486
|
.filter((e) => e != null)
|
|
1559
1487
|
.map((entry) => {
|
|
1560
|
-
if (entry === null) {
|
|
1561
|
-
return null;
|
|
1562
|
-
}
|
|
1563
1488
|
return entry;
|
|
1564
1489
|
});
|
|
1565
1490
|
};
|
|
@@ -1656,9 +1581,6 @@ const serializeAws_json1_1ImageIdentifierList = (input, context) => {
|
|
|
1656
1581
|
return input
|
|
1657
1582
|
.filter((e) => e != null)
|
|
1658
1583
|
.map((entry) => {
|
|
1659
|
-
if (entry === null) {
|
|
1660
|
-
return null;
|
|
1661
|
-
}
|
|
1662
1584
|
return serializeAws_json1_1ImageIdentifier(entry, context);
|
|
1663
1585
|
});
|
|
1664
1586
|
};
|
|
@@ -1672,9 +1594,6 @@ const serializeAws_json1_1LayerDigestList = (input, context) => {
|
|
|
1672
1594
|
return input
|
|
1673
1595
|
.filter((e) => e != null)
|
|
1674
1596
|
.map((entry) => {
|
|
1675
|
-
if (entry === null) {
|
|
1676
|
-
return null;
|
|
1677
|
-
}
|
|
1678
1597
|
return entry;
|
|
1679
1598
|
});
|
|
1680
1599
|
};
|
|
@@ -1687,9 +1606,6 @@ const serializeAws_json1_1OperatingSystemList = (input, context) => {
|
|
|
1687
1606
|
return input
|
|
1688
1607
|
.filter((e) => e != null)
|
|
1689
1608
|
.map((entry) => {
|
|
1690
|
-
if (entry === null) {
|
|
1691
|
-
return null;
|
|
1692
|
-
}
|
|
1693
1609
|
return entry;
|
|
1694
1610
|
});
|
|
1695
1611
|
};
|
|
@@ -1735,9 +1651,6 @@ const serializeAws_json1_1RepositoryNameList = (input, context) => {
|
|
|
1735
1651
|
return input
|
|
1736
1652
|
.filter((e) => e != null)
|
|
1737
1653
|
.map((entry) => {
|
|
1738
|
-
if (entry === null) {
|
|
1739
|
-
return null;
|
|
1740
|
-
}
|
|
1741
1654
|
return entry;
|
|
1742
1655
|
});
|
|
1743
1656
|
};
|
|
@@ -1759,9 +1672,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
1759
1672
|
return input
|
|
1760
1673
|
.filter((e) => e != null)
|
|
1761
1674
|
.map((entry) => {
|
|
1762
|
-
if (entry === null) {
|
|
1763
|
-
return null;
|
|
1764
|
-
}
|
|
1765
1675
|
return entry;
|
|
1766
1676
|
});
|
|
1767
1677
|
};
|
|
@@ -1769,9 +1679,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
1769
1679
|
return input
|
|
1770
1680
|
.filter((e) => e != null)
|
|
1771
1681
|
.map((entry) => {
|
|
1772
|
-
if (entry === null) {
|
|
1773
|
-
return null;
|
|
1774
|
-
}
|
|
1775
1682
|
return serializeAws_json1_1Tag(entry, context);
|
|
1776
1683
|
});
|
|
1777
1684
|
};
|