@aws-sdk/client-signer 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +45 -564
- package/dist-es/protocols/Aws_restJson1.js +44 -563
- package/package.json +3 -3
|
@@ -293,7 +293,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
293
293
|
};
|
|
294
294
|
export const de_AddProfilePermissionCommand = async (output, context) => {
|
|
295
295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
296
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
297
297
|
}
|
|
298
298
|
const contents = map({
|
|
299
299
|
$metadata: deserializeMetadata(output),
|
|
@@ -305,46 +305,9 @@ export const de_AddProfilePermissionCommand = async (output, context) => {
|
|
|
305
305
|
Object.assign(contents, doc);
|
|
306
306
|
return contents;
|
|
307
307
|
};
|
|
308
|
-
const de_AddProfilePermissionCommandError = async (output, context) => {
|
|
309
|
-
const parsedOutput = {
|
|
310
|
-
...output,
|
|
311
|
-
body: await parseErrorBody(output.body, context),
|
|
312
|
-
};
|
|
313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
314
|
-
switch (errorCode) {
|
|
315
|
-
case "AccessDeniedException":
|
|
316
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
318
|
-
case "ConflictException":
|
|
319
|
-
case "com.amazonaws.signer#ConflictException":
|
|
320
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
321
|
-
case "InternalServiceErrorException":
|
|
322
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
323
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
324
|
-
case "ResourceNotFoundException":
|
|
325
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
326
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
327
|
-
case "ServiceLimitExceededException":
|
|
328
|
-
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
329
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
330
|
-
case "TooManyRequestsException":
|
|
331
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
332
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
333
|
-
case "ValidationException":
|
|
334
|
-
case "com.amazonaws.signer#ValidationException":
|
|
335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
336
|
-
default:
|
|
337
|
-
const parsedBody = parsedOutput.body;
|
|
338
|
-
return throwDefaultError({
|
|
339
|
-
output,
|
|
340
|
-
parsedBody,
|
|
341
|
-
errorCode,
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
308
|
export const de_CancelSigningProfileCommand = async (output, context) => {
|
|
346
309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
-
return
|
|
310
|
+
return de_CommandError(output, context);
|
|
348
311
|
}
|
|
349
312
|
const contents = map({
|
|
350
313
|
$metadata: deserializeMetadata(output),
|
|
@@ -352,37 +315,9 @@ export const de_CancelSigningProfileCommand = async (output, context) => {
|
|
|
352
315
|
await collectBody(output.body, context);
|
|
353
316
|
return contents;
|
|
354
317
|
};
|
|
355
|
-
const de_CancelSigningProfileCommandError = async (output, context) => {
|
|
356
|
-
const parsedOutput = {
|
|
357
|
-
...output,
|
|
358
|
-
body: await parseErrorBody(output.body, context),
|
|
359
|
-
};
|
|
360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
|
-
switch (errorCode) {
|
|
362
|
-
case "AccessDeniedException":
|
|
363
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
364
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
365
|
-
case "InternalServiceErrorException":
|
|
366
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
367
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
368
|
-
case "ResourceNotFoundException":
|
|
369
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
370
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
371
|
-
case "TooManyRequestsException":
|
|
372
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
373
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
374
|
-
default:
|
|
375
|
-
const parsedBody = parsedOutput.body;
|
|
376
|
-
return throwDefaultError({
|
|
377
|
-
output,
|
|
378
|
-
parsedBody,
|
|
379
|
-
errorCode,
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
318
|
export const de_DescribeSigningJobCommand = async (output, context) => {
|
|
384
319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
385
|
-
return
|
|
320
|
+
return de_CommandError(output, context);
|
|
386
321
|
}
|
|
387
322
|
const contents = map({
|
|
388
323
|
$metadata: deserializeMetadata(output),
|
|
@@ -412,37 +347,9 @@ export const de_DescribeSigningJobCommand = async (output, context) => {
|
|
|
412
347
|
Object.assign(contents, doc);
|
|
413
348
|
return contents;
|
|
414
349
|
};
|
|
415
|
-
const de_DescribeSigningJobCommandError = async (output, context) => {
|
|
416
|
-
const parsedOutput = {
|
|
417
|
-
...output,
|
|
418
|
-
body: await parseErrorBody(output.body, context),
|
|
419
|
-
};
|
|
420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
421
|
-
switch (errorCode) {
|
|
422
|
-
case "AccessDeniedException":
|
|
423
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
425
|
-
case "InternalServiceErrorException":
|
|
426
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
427
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
428
|
-
case "ResourceNotFoundException":
|
|
429
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
431
|
-
case "TooManyRequestsException":
|
|
432
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
433
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
434
|
-
default:
|
|
435
|
-
const parsedBody = parsedOutput.body;
|
|
436
|
-
return throwDefaultError({
|
|
437
|
-
output,
|
|
438
|
-
parsedBody,
|
|
439
|
-
errorCode,
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
350
|
export const de_GetRevocationStatusCommand = async (output, context) => {
|
|
444
351
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
445
|
-
return
|
|
352
|
+
return de_CommandError(output, context);
|
|
446
353
|
}
|
|
447
354
|
const contents = map({
|
|
448
355
|
$metadata: deserializeMetadata(output),
|
|
@@ -454,37 +361,9 @@ export const de_GetRevocationStatusCommand = async (output, context) => {
|
|
|
454
361
|
Object.assign(contents, doc);
|
|
455
362
|
return contents;
|
|
456
363
|
};
|
|
457
|
-
const de_GetRevocationStatusCommandError = async (output, context) => {
|
|
458
|
-
const parsedOutput = {
|
|
459
|
-
...output,
|
|
460
|
-
body: await parseErrorBody(output.body, context),
|
|
461
|
-
};
|
|
462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
463
|
-
switch (errorCode) {
|
|
464
|
-
case "AccessDeniedException":
|
|
465
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
467
|
-
case "InternalServiceErrorException":
|
|
468
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
469
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
470
|
-
case "TooManyRequestsException":
|
|
471
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
472
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
473
|
-
case "ValidationException":
|
|
474
|
-
case "com.amazonaws.signer#ValidationException":
|
|
475
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
476
|
-
default:
|
|
477
|
-
const parsedBody = parsedOutput.body;
|
|
478
|
-
return throwDefaultError({
|
|
479
|
-
output,
|
|
480
|
-
parsedBody,
|
|
481
|
-
errorCode,
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
364
|
export const de_GetSigningPlatformCommand = async (output, context) => {
|
|
486
365
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
-
return
|
|
366
|
+
return de_CommandError(output, context);
|
|
488
367
|
}
|
|
489
368
|
const contents = map({
|
|
490
369
|
$metadata: deserializeMetadata(output),
|
|
@@ -504,37 +383,9 @@ export const de_GetSigningPlatformCommand = async (output, context) => {
|
|
|
504
383
|
Object.assign(contents, doc);
|
|
505
384
|
return contents;
|
|
506
385
|
};
|
|
507
|
-
const de_GetSigningPlatformCommandError = async (output, context) => {
|
|
508
|
-
const parsedOutput = {
|
|
509
|
-
...output,
|
|
510
|
-
body: await parseErrorBody(output.body, context),
|
|
511
|
-
};
|
|
512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
-
switch (errorCode) {
|
|
514
|
-
case "AccessDeniedException":
|
|
515
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
517
|
-
case "InternalServiceErrorException":
|
|
518
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
519
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
520
|
-
case "ResourceNotFoundException":
|
|
521
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
522
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
523
|
-
case "TooManyRequestsException":
|
|
524
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
525
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
526
|
-
default:
|
|
527
|
-
const parsedBody = parsedOutput.body;
|
|
528
|
-
return throwDefaultError({
|
|
529
|
-
output,
|
|
530
|
-
parsedBody,
|
|
531
|
-
errorCode,
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
386
|
export const de_GetSigningProfileCommand = async (output, context) => {
|
|
536
387
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
|
-
return
|
|
388
|
+
return de_CommandError(output, context);
|
|
538
389
|
}
|
|
539
390
|
const contents = map({
|
|
540
391
|
$metadata: deserializeMetadata(output),
|
|
@@ -559,37 +410,9 @@ export const de_GetSigningProfileCommand = async (output, context) => {
|
|
|
559
410
|
Object.assign(contents, doc);
|
|
560
411
|
return contents;
|
|
561
412
|
};
|
|
562
|
-
const de_GetSigningProfileCommandError = async (output, context) => {
|
|
563
|
-
const parsedOutput = {
|
|
564
|
-
...output,
|
|
565
|
-
body: await parseErrorBody(output.body, context),
|
|
566
|
-
};
|
|
567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
-
switch (errorCode) {
|
|
569
|
-
case "AccessDeniedException":
|
|
570
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
571
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InternalServiceErrorException":
|
|
573
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
574
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ResourceNotFoundException":
|
|
576
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
578
|
-
case "TooManyRequestsException":
|
|
579
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
580
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
581
|
-
default:
|
|
582
|
-
const parsedBody = parsedOutput.body;
|
|
583
|
-
return throwDefaultError({
|
|
584
|
-
output,
|
|
585
|
-
parsedBody,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
413
|
export const de_ListProfilePermissionsCommand = async (output, context) => {
|
|
591
414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
-
return
|
|
415
|
+
return de_CommandError(output, context);
|
|
593
416
|
}
|
|
594
417
|
const contents = map({
|
|
595
418
|
$metadata: deserializeMetadata(output),
|
|
@@ -604,40 +427,9 @@ export const de_ListProfilePermissionsCommand = async (output, context) => {
|
|
|
604
427
|
Object.assign(contents, doc);
|
|
605
428
|
return contents;
|
|
606
429
|
};
|
|
607
|
-
const de_ListProfilePermissionsCommandError = async (output, context) => {
|
|
608
|
-
const parsedOutput = {
|
|
609
|
-
...output,
|
|
610
|
-
body: await parseErrorBody(output.body, context),
|
|
611
|
-
};
|
|
612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
-
switch (errorCode) {
|
|
614
|
-
case "AccessDeniedException":
|
|
615
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
616
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
617
|
-
case "InternalServiceErrorException":
|
|
618
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
619
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ResourceNotFoundException":
|
|
621
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
623
|
-
case "TooManyRequestsException":
|
|
624
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
625
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ValidationException":
|
|
627
|
-
case "com.amazonaws.signer#ValidationException":
|
|
628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
430
|
export const de_ListSigningJobsCommand = async (output, context) => {
|
|
639
431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
-
return
|
|
432
|
+
return de_CommandError(output, context);
|
|
641
433
|
}
|
|
642
434
|
const contents = map({
|
|
643
435
|
$metadata: deserializeMetadata(output),
|
|
@@ -650,37 +442,9 @@ export const de_ListSigningJobsCommand = async (output, context) => {
|
|
|
650
442
|
Object.assign(contents, doc);
|
|
651
443
|
return contents;
|
|
652
444
|
};
|
|
653
|
-
const de_ListSigningJobsCommandError = async (output, context) => {
|
|
654
|
-
const parsedOutput = {
|
|
655
|
-
...output,
|
|
656
|
-
body: await parseErrorBody(output.body, context),
|
|
657
|
-
};
|
|
658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
-
switch (errorCode) {
|
|
660
|
-
case "AccessDeniedException":
|
|
661
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
662
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
663
|
-
case "InternalServiceErrorException":
|
|
664
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
665
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
666
|
-
case "TooManyRequestsException":
|
|
667
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
668
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
669
|
-
case "ValidationException":
|
|
670
|
-
case "com.amazonaws.signer#ValidationException":
|
|
671
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
672
|
-
default:
|
|
673
|
-
const parsedBody = parsedOutput.body;
|
|
674
|
-
return throwDefaultError({
|
|
675
|
-
output,
|
|
676
|
-
parsedBody,
|
|
677
|
-
errorCode,
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
445
|
export const de_ListSigningPlatformsCommand = async (output, context) => {
|
|
682
446
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
683
|
-
return
|
|
447
|
+
return de_CommandError(output, context);
|
|
684
448
|
}
|
|
685
449
|
const contents = map({
|
|
686
450
|
$metadata: deserializeMetadata(output),
|
|
@@ -693,37 +457,9 @@ export const de_ListSigningPlatformsCommand = async (output, context) => {
|
|
|
693
457
|
Object.assign(contents, doc);
|
|
694
458
|
return contents;
|
|
695
459
|
};
|
|
696
|
-
const de_ListSigningPlatformsCommandError = async (output, context) => {
|
|
697
|
-
const parsedOutput = {
|
|
698
|
-
...output,
|
|
699
|
-
body: await parseErrorBody(output.body, context),
|
|
700
|
-
};
|
|
701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
702
|
-
switch (errorCode) {
|
|
703
|
-
case "AccessDeniedException":
|
|
704
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
705
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
706
|
-
case "InternalServiceErrorException":
|
|
707
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
708
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
709
|
-
case "TooManyRequestsException":
|
|
710
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
711
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
712
|
-
case "ValidationException":
|
|
713
|
-
case "com.amazonaws.signer#ValidationException":
|
|
714
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
715
|
-
default:
|
|
716
|
-
const parsedBody = parsedOutput.body;
|
|
717
|
-
return throwDefaultError({
|
|
718
|
-
output,
|
|
719
|
-
parsedBody,
|
|
720
|
-
errorCode,
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
};
|
|
724
460
|
export const de_ListSigningProfilesCommand = async (output, context) => {
|
|
725
461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
726
|
-
return
|
|
462
|
+
return de_CommandError(output, context);
|
|
727
463
|
}
|
|
728
464
|
const contents = map({
|
|
729
465
|
$metadata: deserializeMetadata(output),
|
|
@@ -736,34 +472,9 @@ export const de_ListSigningProfilesCommand = async (output, context) => {
|
|
|
736
472
|
Object.assign(contents, doc);
|
|
737
473
|
return contents;
|
|
738
474
|
};
|
|
739
|
-
const de_ListSigningProfilesCommandError = async (output, context) => {
|
|
740
|
-
const parsedOutput = {
|
|
741
|
-
...output,
|
|
742
|
-
body: await parseErrorBody(output.body, context),
|
|
743
|
-
};
|
|
744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
745
|
-
switch (errorCode) {
|
|
746
|
-
case "AccessDeniedException":
|
|
747
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
748
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
749
|
-
case "InternalServiceErrorException":
|
|
750
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
751
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
752
|
-
case "TooManyRequestsException":
|
|
753
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
754
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode,
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
475
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
765
476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
477
|
+
return de_CommandError(output, context);
|
|
767
478
|
}
|
|
768
479
|
const contents = map({
|
|
769
480
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,37 +486,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
775
486
|
Object.assign(contents, doc);
|
|
776
487
|
return contents;
|
|
777
488
|
};
|
|
778
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
779
|
-
const parsedOutput = {
|
|
780
|
-
...output,
|
|
781
|
-
body: await parseErrorBody(output.body, context),
|
|
782
|
-
};
|
|
783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
-
switch (errorCode) {
|
|
785
|
-
case "BadRequestException":
|
|
786
|
-
case "com.amazonaws.signer#BadRequestException":
|
|
787
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
788
|
-
case "InternalServiceErrorException":
|
|
789
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
790
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
791
|
-
case "NotFoundException":
|
|
792
|
-
case "com.amazonaws.signer#NotFoundException":
|
|
793
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
794
|
-
case "TooManyRequestsException":
|
|
795
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
796
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
797
|
-
default:
|
|
798
|
-
const parsedBody = parsedOutput.body;
|
|
799
|
-
return throwDefaultError({
|
|
800
|
-
output,
|
|
801
|
-
parsedBody,
|
|
802
|
-
errorCode,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
489
|
export const de_PutSigningProfileCommand = async (output, context) => {
|
|
807
490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
808
|
-
return
|
|
491
|
+
return de_CommandError(output, context);
|
|
809
492
|
}
|
|
810
493
|
const contents = map({
|
|
811
494
|
$metadata: deserializeMetadata(output),
|
|
@@ -819,40 +502,9 @@ export const de_PutSigningProfileCommand = async (output, context) => {
|
|
|
819
502
|
Object.assign(contents, doc);
|
|
820
503
|
return contents;
|
|
821
504
|
};
|
|
822
|
-
const de_PutSigningProfileCommandError = async (output, context) => {
|
|
823
|
-
const parsedOutput = {
|
|
824
|
-
...output,
|
|
825
|
-
body: await parseErrorBody(output.body, context),
|
|
826
|
-
};
|
|
827
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
828
|
-
switch (errorCode) {
|
|
829
|
-
case "AccessDeniedException":
|
|
830
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
831
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
832
|
-
case "InternalServiceErrorException":
|
|
833
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
834
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
835
|
-
case "ResourceNotFoundException":
|
|
836
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
838
|
-
case "TooManyRequestsException":
|
|
839
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
840
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
841
|
-
case "ValidationException":
|
|
842
|
-
case "com.amazonaws.signer#ValidationException":
|
|
843
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
844
|
-
default:
|
|
845
|
-
const parsedBody = parsedOutput.body;
|
|
846
|
-
return throwDefaultError({
|
|
847
|
-
output,
|
|
848
|
-
parsedBody,
|
|
849
|
-
errorCode,
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
};
|
|
853
505
|
export const de_RemoveProfilePermissionCommand = async (output, context) => {
|
|
854
506
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
855
|
-
return
|
|
507
|
+
return de_CommandError(output, context);
|
|
856
508
|
}
|
|
857
509
|
const contents = map({
|
|
858
510
|
$metadata: deserializeMetadata(output),
|
|
@@ -864,43 +516,9 @@ export const de_RemoveProfilePermissionCommand = async (output, context) => {
|
|
|
864
516
|
Object.assign(contents, doc);
|
|
865
517
|
return contents;
|
|
866
518
|
};
|
|
867
|
-
const de_RemoveProfilePermissionCommandError = async (output, context) => {
|
|
868
|
-
const parsedOutput = {
|
|
869
|
-
...output,
|
|
870
|
-
body: await parseErrorBody(output.body, context),
|
|
871
|
-
};
|
|
872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
-
switch (errorCode) {
|
|
874
|
-
case "AccessDeniedException":
|
|
875
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
877
|
-
case "ConflictException":
|
|
878
|
-
case "com.amazonaws.signer#ConflictException":
|
|
879
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
880
|
-
case "InternalServiceErrorException":
|
|
881
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
882
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ResourceNotFoundException":
|
|
884
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
885
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
886
|
-
case "TooManyRequestsException":
|
|
887
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
888
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ValidationException":
|
|
890
|
-
case "com.amazonaws.signer#ValidationException":
|
|
891
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
892
|
-
default:
|
|
893
|
-
const parsedBody = parsedOutput.body;
|
|
894
|
-
return throwDefaultError({
|
|
895
|
-
output,
|
|
896
|
-
parsedBody,
|
|
897
|
-
errorCode,
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
519
|
export const de_RevokeSignatureCommand = async (output, context) => {
|
|
902
520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
903
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
904
522
|
}
|
|
905
523
|
const contents = map({
|
|
906
524
|
$metadata: deserializeMetadata(output),
|
|
@@ -908,40 +526,9 @@ export const de_RevokeSignatureCommand = async (output, context) => {
|
|
|
908
526
|
await collectBody(output.body, context);
|
|
909
527
|
return contents;
|
|
910
528
|
};
|
|
911
|
-
const de_RevokeSignatureCommandError = async (output, context) => {
|
|
912
|
-
const parsedOutput = {
|
|
913
|
-
...output,
|
|
914
|
-
body: await parseErrorBody(output.body, context),
|
|
915
|
-
};
|
|
916
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
|
-
switch (errorCode) {
|
|
918
|
-
case "AccessDeniedException":
|
|
919
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
920
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
921
|
-
case "InternalServiceErrorException":
|
|
922
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
923
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
924
|
-
case "ResourceNotFoundException":
|
|
925
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
926
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
927
|
-
case "TooManyRequestsException":
|
|
928
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
929
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ValidationException":
|
|
931
|
-
case "com.amazonaws.signer#ValidationException":
|
|
932
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody,
|
|
938
|
-
errorCode,
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
529
|
export const de_RevokeSigningProfileCommand = async (output, context) => {
|
|
943
530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
-
return
|
|
531
|
+
return de_CommandError(output, context);
|
|
945
532
|
}
|
|
946
533
|
const contents = map({
|
|
947
534
|
$metadata: deserializeMetadata(output),
|
|
@@ -949,40 +536,9 @@ export const de_RevokeSigningProfileCommand = async (output, context) => {
|
|
|
949
536
|
await collectBody(output.body, context);
|
|
950
537
|
return contents;
|
|
951
538
|
};
|
|
952
|
-
const de_RevokeSigningProfileCommandError = async (output, context) => {
|
|
953
|
-
const parsedOutput = {
|
|
954
|
-
...output,
|
|
955
|
-
body: await parseErrorBody(output.body, context),
|
|
956
|
-
};
|
|
957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
-
switch (errorCode) {
|
|
959
|
-
case "AccessDeniedException":
|
|
960
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
961
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
962
|
-
case "InternalServiceErrorException":
|
|
963
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
964
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
965
|
-
case "ResourceNotFoundException":
|
|
966
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
967
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
968
|
-
case "TooManyRequestsException":
|
|
969
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
970
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
971
|
-
case "ValidationException":
|
|
972
|
-
case "com.amazonaws.signer#ValidationException":
|
|
973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
974
|
-
default:
|
|
975
|
-
const parsedBody = parsedOutput.body;
|
|
976
|
-
return throwDefaultError({
|
|
977
|
-
output,
|
|
978
|
-
parsedBody,
|
|
979
|
-
errorCode,
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
539
|
export const de_SignPayloadCommand = async (output, context) => {
|
|
984
540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
986
542
|
}
|
|
987
543
|
const contents = map({
|
|
988
544
|
$metadata: deserializeMetadata(output),
|
|
@@ -997,40 +553,9 @@ export const de_SignPayloadCommand = async (output, context) => {
|
|
|
997
553
|
Object.assign(contents, doc);
|
|
998
554
|
return contents;
|
|
999
555
|
};
|
|
1000
|
-
const de_SignPayloadCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "AccessDeniedException":
|
|
1008
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1009
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "InternalServiceErrorException":
|
|
1011
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1012
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "ResourceNotFoundException":
|
|
1014
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1015
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "TooManyRequestsException":
|
|
1017
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1018
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ValidationException":
|
|
1020
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1021
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1022
|
-
default:
|
|
1023
|
-
const parsedBody = parsedOutput.body;
|
|
1024
|
-
return throwDefaultError({
|
|
1025
|
-
output,
|
|
1026
|
-
parsedBody,
|
|
1027
|
-
errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
}
|
|
1030
|
-
};
|
|
1031
556
|
export const de_StartSigningJobCommand = async (output, context) => {
|
|
1032
557
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
558
|
+
return de_CommandError(output, context);
|
|
1034
559
|
}
|
|
1035
560
|
const contents = map({
|
|
1036
561
|
$metadata: deserializeMetadata(output),
|
|
@@ -1043,43 +568,9 @@ export const de_StartSigningJobCommand = async (output, context) => {
|
|
|
1043
568
|
Object.assign(contents, doc);
|
|
1044
569
|
return contents;
|
|
1045
570
|
};
|
|
1046
|
-
const de_StartSigningJobCommandError = async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context),
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "AccessDeniedException":
|
|
1054
|
-
case "com.amazonaws.signer#AccessDeniedException":
|
|
1055
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InternalServiceErrorException":
|
|
1057
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1058
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ResourceNotFoundException":
|
|
1060
|
-
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
1061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ThrottlingException":
|
|
1063
|
-
case "com.amazonaws.signer#ThrottlingException":
|
|
1064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "TooManyRequestsException":
|
|
1066
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1067
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ValidationException":
|
|
1069
|
-
case "com.amazonaws.signer#ValidationException":
|
|
1070
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1071
|
-
default:
|
|
1072
|
-
const parsedBody = parsedOutput.body;
|
|
1073
|
-
return throwDefaultError({
|
|
1074
|
-
output,
|
|
1075
|
-
parsedBody,
|
|
1076
|
-
errorCode,
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
571
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1081
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1082
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
1083
574
|
}
|
|
1084
575
|
const contents = map({
|
|
1085
576
|
$metadata: deserializeMetadata(output),
|
|
@@ -1087,37 +578,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1087
578
|
await collectBody(output.body, context);
|
|
1088
579
|
return contents;
|
|
1089
580
|
};
|
|
1090
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1091
|
-
const parsedOutput = {
|
|
1092
|
-
...output,
|
|
1093
|
-
body: await parseErrorBody(output.body, context),
|
|
1094
|
-
};
|
|
1095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
-
switch (errorCode) {
|
|
1097
|
-
case "BadRequestException":
|
|
1098
|
-
case "com.amazonaws.signer#BadRequestException":
|
|
1099
|
-
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "InternalServiceErrorException":
|
|
1101
|
-
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1102
|
-
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1103
|
-
case "NotFoundException":
|
|
1104
|
-
case "com.amazonaws.signer#NotFoundException":
|
|
1105
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "TooManyRequestsException":
|
|
1107
|
-
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1108
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1109
|
-
default:
|
|
1110
|
-
const parsedBody = parsedOutput.body;
|
|
1111
|
-
return throwDefaultError({
|
|
1112
|
-
output,
|
|
1113
|
-
parsedBody,
|
|
1114
|
-
errorCode,
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
581
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1119
582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
-
return
|
|
583
|
+
return de_CommandError(output, context);
|
|
1121
584
|
}
|
|
1122
585
|
const contents = map({
|
|
1123
586
|
$metadata: deserializeMetadata(output),
|
|
@@ -1125,25 +588,43 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1125
588
|
await collectBody(output.body, context);
|
|
1126
589
|
return contents;
|
|
1127
590
|
};
|
|
1128
|
-
const
|
|
591
|
+
const de_CommandError = async (output, context) => {
|
|
1129
592
|
const parsedOutput = {
|
|
1130
593
|
...output,
|
|
1131
594
|
body: await parseErrorBody(output.body, context),
|
|
1132
595
|
};
|
|
1133
596
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1134
597
|
switch (errorCode) {
|
|
1135
|
-
case "
|
|
1136
|
-
case "com.amazonaws.signer#
|
|
1137
|
-
throw await
|
|
598
|
+
case "AccessDeniedException":
|
|
599
|
+
case "com.amazonaws.signer#AccessDeniedException":
|
|
600
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
601
|
+
case "ConflictException":
|
|
602
|
+
case "com.amazonaws.signer#ConflictException":
|
|
603
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1138
604
|
case "InternalServiceErrorException":
|
|
1139
605
|
case "com.amazonaws.signer#InternalServiceErrorException":
|
|
1140
606
|
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "
|
|
1142
|
-
case "com.amazonaws.signer#
|
|
1143
|
-
throw await
|
|
607
|
+
case "ResourceNotFoundException":
|
|
608
|
+
case "com.amazonaws.signer#ResourceNotFoundException":
|
|
609
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
610
|
+
case "ServiceLimitExceededException":
|
|
611
|
+
case "com.amazonaws.signer#ServiceLimitExceededException":
|
|
612
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1144
613
|
case "TooManyRequestsException":
|
|
1145
614
|
case "com.amazonaws.signer#TooManyRequestsException":
|
|
1146
615
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ValidationException":
|
|
617
|
+
case "com.amazonaws.signer#ValidationException":
|
|
618
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
+
case "BadRequestException":
|
|
620
|
+
case "com.amazonaws.signer#BadRequestException":
|
|
621
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
622
|
+
case "NotFoundException":
|
|
623
|
+
case "com.amazonaws.signer#NotFoundException":
|
|
624
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
625
|
+
case "ThrottlingException":
|
|
626
|
+
case "com.amazonaws.signer#ThrottlingException":
|
|
627
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1147
628
|
default:
|
|
1148
629
|
const parsedBody = parsedOutput.body;
|
|
1149
630
|
return throwDefaultError({
|