@aws-sdk/client-rolesanywhere 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +39 -654
- package/dist-es/protocols/Aws_restJson1.js +35 -650
- package/package.json +3 -3
|
@@ -338,7 +338,7 @@ export const se_UpdateTrustAnchorCommand = async (input, context) => {
|
|
|
338
338
|
};
|
|
339
339
|
export const de_CreateProfileCommand = async (output, context) => {
|
|
340
340
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
341
|
-
return
|
|
341
|
+
return de_CommandError(output, context);
|
|
342
342
|
}
|
|
343
343
|
const contents = map({
|
|
344
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -350,31 +350,9 @@ export const de_CreateProfileCommand = async (output, context) => {
|
|
|
350
350
|
Object.assign(contents, doc);
|
|
351
351
|
return contents;
|
|
352
352
|
};
|
|
353
|
-
const de_CreateProfileCommandError = async (output, context) => {
|
|
354
|
-
const parsedOutput = {
|
|
355
|
-
...output,
|
|
356
|
-
body: await parseErrorBody(output.body, context),
|
|
357
|
-
};
|
|
358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
|
-
switch (errorCode) {
|
|
360
|
-
case "AccessDeniedException":
|
|
361
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
362
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
363
|
-
case "ValidationException":
|
|
364
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
366
|
-
default:
|
|
367
|
-
const parsedBody = parsedOutput.body;
|
|
368
|
-
return throwDefaultError({
|
|
369
|
-
output,
|
|
370
|
-
parsedBody,
|
|
371
|
-
errorCode,
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
353
|
export const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
376
354
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
377
|
-
return
|
|
355
|
+
return de_CommandError(output, context);
|
|
378
356
|
}
|
|
379
357
|
const contents = map({
|
|
380
358
|
$metadata: deserializeMetadata(output),
|
|
@@ -386,31 +364,9 @@ export const de_CreateTrustAnchorCommand = async (output, context) => {
|
|
|
386
364
|
Object.assign(contents, doc);
|
|
387
365
|
return contents;
|
|
388
366
|
};
|
|
389
|
-
const de_CreateTrustAnchorCommandError = async (output, context) => {
|
|
390
|
-
const parsedOutput = {
|
|
391
|
-
...output,
|
|
392
|
-
body: await parseErrorBody(output.body, context),
|
|
393
|
-
};
|
|
394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
|
-
switch (errorCode) {
|
|
396
|
-
case "AccessDeniedException":
|
|
397
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
398
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
399
|
-
case "ValidationException":
|
|
400
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
401
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
402
|
-
default:
|
|
403
|
-
const parsedBody = parsedOutput.body;
|
|
404
|
-
return throwDefaultError({
|
|
405
|
-
output,
|
|
406
|
-
parsedBody,
|
|
407
|
-
errorCode,
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
367
|
export const de_DeleteCrlCommand = async (output, context) => {
|
|
412
368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
413
|
-
return
|
|
369
|
+
return de_CommandError(output, context);
|
|
414
370
|
}
|
|
415
371
|
const contents = map({
|
|
416
372
|
$metadata: deserializeMetadata(output),
|
|
@@ -422,31 +378,9 @@ export const de_DeleteCrlCommand = async (output, context) => {
|
|
|
422
378
|
Object.assign(contents, doc);
|
|
423
379
|
return contents;
|
|
424
380
|
};
|
|
425
|
-
const de_DeleteCrlCommandError = async (output, context) => {
|
|
426
|
-
const parsedOutput = {
|
|
427
|
-
...output,
|
|
428
|
-
body: await parseErrorBody(output.body, context),
|
|
429
|
-
};
|
|
430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
431
|
-
switch (errorCode) {
|
|
432
|
-
case "AccessDeniedException":
|
|
433
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
434
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
435
|
-
case "ResourceNotFoundException":
|
|
436
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
437
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
438
|
-
default:
|
|
439
|
-
const parsedBody = parsedOutput.body;
|
|
440
|
-
return throwDefaultError({
|
|
441
|
-
output,
|
|
442
|
-
parsedBody,
|
|
443
|
-
errorCode,
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
};
|
|
447
381
|
export const de_DeleteProfileCommand = async (output, context) => {
|
|
448
382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
449
|
-
return
|
|
383
|
+
return de_CommandError(output, context);
|
|
450
384
|
}
|
|
451
385
|
const contents = map({
|
|
452
386
|
$metadata: deserializeMetadata(output),
|
|
@@ -458,31 +392,9 @@ export const de_DeleteProfileCommand = async (output, context) => {
|
|
|
458
392
|
Object.assign(contents, doc);
|
|
459
393
|
return contents;
|
|
460
394
|
};
|
|
461
|
-
const de_DeleteProfileCommandError = async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await parseErrorBody(output.body, context),
|
|
465
|
-
};
|
|
466
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "AccessDeniedException":
|
|
469
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
470
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ResourceNotFoundException":
|
|
472
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
473
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
395
|
export const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
484
396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
-
return
|
|
397
|
+
return de_CommandError(output, context);
|
|
486
398
|
}
|
|
487
399
|
const contents = map({
|
|
488
400
|
$metadata: deserializeMetadata(output),
|
|
@@ -494,31 +406,9 @@ export const de_DeleteTrustAnchorCommand = async (output, context) => {
|
|
|
494
406
|
Object.assign(contents, doc);
|
|
495
407
|
return contents;
|
|
496
408
|
};
|
|
497
|
-
const de_DeleteTrustAnchorCommandError = async (output, context) => {
|
|
498
|
-
const parsedOutput = {
|
|
499
|
-
...output,
|
|
500
|
-
body: await parseErrorBody(output.body, context),
|
|
501
|
-
};
|
|
502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
503
|
-
switch (errorCode) {
|
|
504
|
-
case "AccessDeniedException":
|
|
505
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
506
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
|
-
case "ResourceNotFoundException":
|
|
508
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
509
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
510
|
-
default:
|
|
511
|
-
const parsedBody = parsedOutput.body;
|
|
512
|
-
return throwDefaultError({
|
|
513
|
-
output,
|
|
514
|
-
parsedBody,
|
|
515
|
-
errorCode,
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
409
|
export const de_DisableCrlCommand = async (output, context) => {
|
|
520
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
521
|
-
return
|
|
411
|
+
return de_CommandError(output, context);
|
|
522
412
|
}
|
|
523
413
|
const contents = map({
|
|
524
414
|
$metadata: deserializeMetadata(output),
|
|
@@ -530,31 +420,9 @@ export const de_DisableCrlCommand = async (output, context) => {
|
|
|
530
420
|
Object.assign(contents, doc);
|
|
531
421
|
return contents;
|
|
532
422
|
};
|
|
533
|
-
const de_DisableCrlCommandError = async (output, context) => {
|
|
534
|
-
const parsedOutput = {
|
|
535
|
-
...output,
|
|
536
|
-
body: await parseErrorBody(output.body, context),
|
|
537
|
-
};
|
|
538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
539
|
-
switch (errorCode) {
|
|
540
|
-
case "AccessDeniedException":
|
|
541
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
542
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
543
|
-
case "ResourceNotFoundException":
|
|
544
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
545
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
546
|
-
default:
|
|
547
|
-
const parsedBody = parsedOutput.body;
|
|
548
|
-
return throwDefaultError({
|
|
549
|
-
output,
|
|
550
|
-
parsedBody,
|
|
551
|
-
errorCode,
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
423
|
export const de_DisableProfileCommand = async (output, context) => {
|
|
556
424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
|
-
return
|
|
425
|
+
return de_CommandError(output, context);
|
|
558
426
|
}
|
|
559
427
|
const contents = map({
|
|
560
428
|
$metadata: deserializeMetadata(output),
|
|
@@ -566,31 +434,9 @@ export const de_DisableProfileCommand = async (output, context) => {
|
|
|
566
434
|
Object.assign(contents, doc);
|
|
567
435
|
return contents;
|
|
568
436
|
};
|
|
569
|
-
const de_DisableProfileCommandError = async (output, context) => {
|
|
570
|
-
const parsedOutput = {
|
|
571
|
-
...output,
|
|
572
|
-
body: await parseErrorBody(output.body, context),
|
|
573
|
-
};
|
|
574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
|
-
switch (errorCode) {
|
|
576
|
-
case "AccessDeniedException":
|
|
577
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
578
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
579
|
-
case "ResourceNotFoundException":
|
|
580
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
582
|
-
default:
|
|
583
|
-
const parsedBody = parsedOutput.body;
|
|
584
|
-
return throwDefaultError({
|
|
585
|
-
output,
|
|
586
|
-
parsedBody,
|
|
587
|
-
errorCode,
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
437
|
export const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
592
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
594
440
|
}
|
|
595
441
|
const contents = map({
|
|
596
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -602,31 +448,9 @@ export const de_DisableTrustAnchorCommand = async (output, context) => {
|
|
|
602
448
|
Object.assign(contents, doc);
|
|
603
449
|
return contents;
|
|
604
450
|
};
|
|
605
|
-
const de_DisableTrustAnchorCommandError = async (output, context) => {
|
|
606
|
-
const parsedOutput = {
|
|
607
|
-
...output,
|
|
608
|
-
body: await parseErrorBody(output.body, context),
|
|
609
|
-
};
|
|
610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
611
|
-
switch (errorCode) {
|
|
612
|
-
case "AccessDeniedException":
|
|
613
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
615
|
-
case "ResourceNotFoundException":
|
|
616
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
617
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
618
|
-
default:
|
|
619
|
-
const parsedBody = parsedOutput.body;
|
|
620
|
-
return throwDefaultError({
|
|
621
|
-
output,
|
|
622
|
-
parsedBody,
|
|
623
|
-
errorCode,
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
451
|
export const de_EnableCrlCommand = async (output, context) => {
|
|
628
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
629
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
630
454
|
}
|
|
631
455
|
const contents = map({
|
|
632
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -638,31 +462,9 @@ export const de_EnableCrlCommand = async (output, context) => {
|
|
|
638
462
|
Object.assign(contents, doc);
|
|
639
463
|
return contents;
|
|
640
464
|
};
|
|
641
|
-
const de_EnableCrlCommandError = async (output, context) => {
|
|
642
|
-
const parsedOutput = {
|
|
643
|
-
...output,
|
|
644
|
-
body: await parseErrorBody(output.body, context),
|
|
645
|
-
};
|
|
646
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
-
switch (errorCode) {
|
|
648
|
-
case "AccessDeniedException":
|
|
649
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
650
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ResourceNotFoundException":
|
|
652
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
653
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
465
|
export const de_EnableProfileCommand = async (output, context) => {
|
|
664
466
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return
|
|
467
|
+
return de_CommandError(output, context);
|
|
666
468
|
}
|
|
667
469
|
const contents = map({
|
|
668
470
|
$metadata: deserializeMetadata(output),
|
|
@@ -674,31 +476,9 @@ export const de_EnableProfileCommand = async (output, context) => {
|
|
|
674
476
|
Object.assign(contents, doc);
|
|
675
477
|
return contents;
|
|
676
478
|
};
|
|
677
|
-
const de_EnableProfileCommandError = async (output, context) => {
|
|
678
|
-
const parsedOutput = {
|
|
679
|
-
...output,
|
|
680
|
-
body: await parseErrorBody(output.body, context),
|
|
681
|
-
};
|
|
682
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
683
|
-
switch (errorCode) {
|
|
684
|
-
case "AccessDeniedException":
|
|
685
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
686
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ResourceNotFoundException":
|
|
688
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
689
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
690
|
-
default:
|
|
691
|
-
const parsedBody = parsedOutput.body;
|
|
692
|
-
return throwDefaultError({
|
|
693
|
-
output,
|
|
694
|
-
parsedBody,
|
|
695
|
-
errorCode,
|
|
696
|
-
});
|
|
697
|
-
}
|
|
698
|
-
};
|
|
699
479
|
export const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
700
480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
701
|
-
return
|
|
481
|
+
return de_CommandError(output, context);
|
|
702
482
|
}
|
|
703
483
|
const contents = map({
|
|
704
484
|
$metadata: deserializeMetadata(output),
|
|
@@ -710,31 +490,9 @@ export const de_EnableTrustAnchorCommand = async (output, context) => {
|
|
|
710
490
|
Object.assign(contents, doc);
|
|
711
491
|
return contents;
|
|
712
492
|
};
|
|
713
|
-
const de_EnableTrustAnchorCommandError = async (output, context) => {
|
|
714
|
-
const parsedOutput = {
|
|
715
|
-
...output,
|
|
716
|
-
body: await parseErrorBody(output.body, context),
|
|
717
|
-
};
|
|
718
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
719
|
-
switch (errorCode) {
|
|
720
|
-
case "AccessDeniedException":
|
|
721
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
722
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
723
|
-
case "ResourceNotFoundException":
|
|
724
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
726
|
-
default:
|
|
727
|
-
const parsedBody = parsedOutput.body;
|
|
728
|
-
return throwDefaultError({
|
|
729
|
-
output,
|
|
730
|
-
parsedBody,
|
|
731
|
-
errorCode,
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
493
|
export const de_GetCrlCommand = async (output, context) => {
|
|
736
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
738
496
|
}
|
|
739
497
|
const contents = map({
|
|
740
498
|
$metadata: deserializeMetadata(output),
|
|
@@ -746,28 +504,9 @@ export const de_GetCrlCommand = async (output, context) => {
|
|
|
746
504
|
Object.assign(contents, doc);
|
|
747
505
|
return contents;
|
|
748
506
|
};
|
|
749
|
-
const de_GetCrlCommandError = async (output, context) => {
|
|
750
|
-
const parsedOutput = {
|
|
751
|
-
...output,
|
|
752
|
-
body: await parseErrorBody(output.body, context),
|
|
753
|
-
};
|
|
754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
-
switch (errorCode) {
|
|
756
|
-
case "ResourceNotFoundException":
|
|
757
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
758
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
759
|
-
default:
|
|
760
|
-
const parsedBody = parsedOutput.body;
|
|
761
|
-
return throwDefaultError({
|
|
762
|
-
output,
|
|
763
|
-
parsedBody,
|
|
764
|
-
errorCode,
|
|
765
|
-
});
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
507
|
export const de_GetProfileCommand = async (output, context) => {
|
|
769
508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
771
510
|
}
|
|
772
511
|
const contents = map({
|
|
773
512
|
$metadata: deserializeMetadata(output),
|
|
@@ -779,31 +518,9 @@ export const de_GetProfileCommand = async (output, context) => {
|
|
|
779
518
|
Object.assign(contents, doc);
|
|
780
519
|
return contents;
|
|
781
520
|
};
|
|
782
|
-
const de_GetProfileCommandError = async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context),
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "AccessDeniedException":
|
|
790
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
792
|
-
case "ResourceNotFoundException":
|
|
793
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
794
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
|
-
default:
|
|
796
|
-
const parsedBody = parsedOutput.body;
|
|
797
|
-
return throwDefaultError({
|
|
798
|
-
output,
|
|
799
|
-
parsedBody,
|
|
800
|
-
errorCode,
|
|
801
|
-
});
|
|
802
|
-
}
|
|
803
|
-
};
|
|
804
521
|
export const de_GetSubjectCommand = async (output, context) => {
|
|
805
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
807
524
|
}
|
|
808
525
|
const contents = map({
|
|
809
526
|
$metadata: deserializeMetadata(output),
|
|
@@ -815,31 +532,9 @@ export const de_GetSubjectCommand = async (output, context) => {
|
|
|
815
532
|
Object.assign(contents, doc);
|
|
816
533
|
return contents;
|
|
817
534
|
};
|
|
818
|
-
const de_GetSubjectCommandError = async (output, context) => {
|
|
819
|
-
const parsedOutput = {
|
|
820
|
-
...output,
|
|
821
|
-
body: await parseErrorBody(output.body, context),
|
|
822
|
-
};
|
|
823
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
-
switch (errorCode) {
|
|
825
|
-
case "AccessDeniedException":
|
|
826
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
827
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
828
|
-
case "ResourceNotFoundException":
|
|
829
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
831
|
-
default:
|
|
832
|
-
const parsedBody = parsedOutput.body;
|
|
833
|
-
return throwDefaultError({
|
|
834
|
-
output,
|
|
835
|
-
parsedBody,
|
|
836
|
-
errorCode,
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
};
|
|
840
535
|
export const de_GetTrustAnchorCommand = async (output, context) => {
|
|
841
536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
842
|
-
return
|
|
537
|
+
return de_CommandError(output, context);
|
|
843
538
|
}
|
|
844
539
|
const contents = map({
|
|
845
540
|
$metadata: deserializeMetadata(output),
|
|
@@ -851,34 +546,9 @@ export const de_GetTrustAnchorCommand = async (output, context) => {
|
|
|
851
546
|
Object.assign(contents, doc);
|
|
852
547
|
return contents;
|
|
853
548
|
};
|
|
854
|
-
const de_GetTrustAnchorCommandError = async (output, context) => {
|
|
855
|
-
const parsedOutput = {
|
|
856
|
-
...output,
|
|
857
|
-
body: await parseErrorBody(output.body, context),
|
|
858
|
-
};
|
|
859
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
860
|
-
switch (errorCode) {
|
|
861
|
-
case "AccessDeniedException":
|
|
862
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
863
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
864
|
-
case "ResourceNotFoundException":
|
|
865
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
866
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
867
|
-
case "ValidationException":
|
|
868
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
869
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
870
|
-
default:
|
|
871
|
-
const parsedBody = parsedOutput.body;
|
|
872
|
-
return throwDefaultError({
|
|
873
|
-
output,
|
|
874
|
-
parsedBody,
|
|
875
|
-
errorCode,
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
549
|
export const de_ImportCrlCommand = async (output, context) => {
|
|
880
550
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
881
|
-
return
|
|
551
|
+
return de_CommandError(output, context);
|
|
882
552
|
}
|
|
883
553
|
const contents = map({
|
|
884
554
|
$metadata: deserializeMetadata(output),
|
|
@@ -890,31 +560,9 @@ export const de_ImportCrlCommand = async (output, context) => {
|
|
|
890
560
|
Object.assign(contents, doc);
|
|
891
561
|
return contents;
|
|
892
562
|
};
|
|
893
|
-
const de_ImportCrlCommandError = async (output, context) => {
|
|
894
|
-
const parsedOutput = {
|
|
895
|
-
...output,
|
|
896
|
-
body: await parseErrorBody(output.body, context),
|
|
897
|
-
};
|
|
898
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
899
|
-
switch (errorCode) {
|
|
900
|
-
case "AccessDeniedException":
|
|
901
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
902
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
903
|
-
case "ValidationException":
|
|
904
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
905
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
906
|
-
default:
|
|
907
|
-
const parsedBody = parsedOutput.body;
|
|
908
|
-
return throwDefaultError({
|
|
909
|
-
output,
|
|
910
|
-
parsedBody,
|
|
911
|
-
errorCode,
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
563
|
export const de_ListCrlsCommand = async (output, context) => {
|
|
916
564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
917
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
918
566
|
}
|
|
919
567
|
const contents = map({
|
|
920
568
|
$metadata: deserializeMetadata(output),
|
|
@@ -927,31 +575,9 @@ export const de_ListCrlsCommand = async (output, context) => {
|
|
|
927
575
|
Object.assign(contents, doc);
|
|
928
576
|
return contents;
|
|
929
577
|
};
|
|
930
|
-
const de_ListCrlsCommandError = async (output, context) => {
|
|
931
|
-
const parsedOutput = {
|
|
932
|
-
...output,
|
|
933
|
-
body: await parseErrorBody(output.body, context),
|
|
934
|
-
};
|
|
935
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
|
-
switch (errorCode) {
|
|
937
|
-
case "AccessDeniedException":
|
|
938
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
939
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
940
|
-
case "ValidationException":
|
|
941
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
943
|
-
default:
|
|
944
|
-
const parsedBody = parsedOutput.body;
|
|
945
|
-
return throwDefaultError({
|
|
946
|
-
output,
|
|
947
|
-
parsedBody,
|
|
948
|
-
errorCode,
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
578
|
export const de_ListProfilesCommand = async (output, context) => {
|
|
953
579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
955
581
|
}
|
|
956
582
|
const contents = map({
|
|
957
583
|
$metadata: deserializeMetadata(output),
|
|
@@ -964,31 +590,9 @@ export const de_ListProfilesCommand = async (output, context) => {
|
|
|
964
590
|
Object.assign(contents, doc);
|
|
965
591
|
return contents;
|
|
966
592
|
};
|
|
967
|
-
const de_ListProfilesCommandError = async (output, context) => {
|
|
968
|
-
const parsedOutput = {
|
|
969
|
-
...output,
|
|
970
|
-
body: await parseErrorBody(output.body, context),
|
|
971
|
-
};
|
|
972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
973
|
-
switch (errorCode) {
|
|
974
|
-
case "AccessDeniedException":
|
|
975
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ValidationException":
|
|
978
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
979
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
980
|
-
default:
|
|
981
|
-
const parsedBody = parsedOutput.body;
|
|
982
|
-
return throwDefaultError({
|
|
983
|
-
output,
|
|
984
|
-
parsedBody,
|
|
985
|
-
errorCode,
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
};
|
|
989
593
|
export const de_ListSubjectsCommand = async (output, context) => {
|
|
990
594
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
991
|
-
return
|
|
595
|
+
return de_CommandError(output, context);
|
|
992
596
|
}
|
|
993
597
|
const contents = map({
|
|
994
598
|
$metadata: deserializeMetadata(output),
|
|
@@ -1001,31 +605,9 @@ export const de_ListSubjectsCommand = async (output, context) => {
|
|
|
1001
605
|
Object.assign(contents, doc);
|
|
1002
606
|
return contents;
|
|
1003
607
|
};
|
|
1004
|
-
const de_ListSubjectsCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ValidationException":
|
|
1015
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1016
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1017
|
-
default:
|
|
1018
|
-
const parsedBody = parsedOutput.body;
|
|
1019
|
-
return throwDefaultError({
|
|
1020
|
-
output,
|
|
1021
|
-
parsedBody,
|
|
1022
|
-
errorCode,
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
608
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1027
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1028
|
-
return
|
|
610
|
+
return de_CommandError(output, context);
|
|
1029
611
|
}
|
|
1030
612
|
const contents = map({
|
|
1031
613
|
$metadata: deserializeMetadata(output),
|
|
@@ -1037,34 +619,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1037
619
|
Object.assign(contents, doc);
|
|
1038
620
|
return contents;
|
|
1039
621
|
};
|
|
1040
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1041
|
-
const parsedOutput = {
|
|
1042
|
-
...output,
|
|
1043
|
-
body: await parseErrorBody(output.body, context),
|
|
1044
|
-
};
|
|
1045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1046
|
-
switch (errorCode) {
|
|
1047
|
-
case "AccessDeniedException":
|
|
1048
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1049
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "ResourceNotFoundException":
|
|
1051
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "ValidationException":
|
|
1054
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1055
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1056
|
-
default:
|
|
1057
|
-
const parsedBody = parsedOutput.body;
|
|
1058
|
-
return throwDefaultError({
|
|
1059
|
-
output,
|
|
1060
|
-
parsedBody,
|
|
1061
|
-
errorCode,
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
622
|
export const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
1066
623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1067
|
-
return
|
|
624
|
+
return de_CommandError(output, context);
|
|
1068
625
|
}
|
|
1069
626
|
const contents = map({
|
|
1070
627
|
$metadata: deserializeMetadata(output),
|
|
@@ -1077,31 +634,9 @@ export const de_ListTrustAnchorsCommand = async (output, context) => {
|
|
|
1077
634
|
Object.assign(contents, doc);
|
|
1078
635
|
return contents;
|
|
1079
636
|
};
|
|
1080
|
-
const de_ListTrustAnchorsCommandError = async (output, context) => {
|
|
1081
|
-
const parsedOutput = {
|
|
1082
|
-
...output,
|
|
1083
|
-
body: await parseErrorBody(output.body, context),
|
|
1084
|
-
};
|
|
1085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
-
switch (errorCode) {
|
|
1087
|
-
case "AccessDeniedException":
|
|
1088
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1089
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ValidationException":
|
|
1091
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1092
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1093
|
-
default:
|
|
1094
|
-
const parsedBody = parsedOutput.body;
|
|
1095
|
-
return throwDefaultError({
|
|
1096
|
-
output,
|
|
1097
|
-
parsedBody,
|
|
1098
|
-
errorCode,
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
637
|
export const de_PutNotificationSettingsCommand = async (output, context) => {
|
|
1103
638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return
|
|
639
|
+
return de_CommandError(output, context);
|
|
1105
640
|
}
|
|
1106
641
|
const contents = map({
|
|
1107
642
|
$metadata: deserializeMetadata(output),
|
|
@@ -1113,34 +648,9 @@ export const de_PutNotificationSettingsCommand = async (output, context) => {
|
|
|
1113
648
|
Object.assign(contents, doc);
|
|
1114
649
|
return contents;
|
|
1115
650
|
};
|
|
1116
|
-
const de_PutNotificationSettingsCommandError = async (output, context) => {
|
|
1117
|
-
const parsedOutput = {
|
|
1118
|
-
...output,
|
|
1119
|
-
body: await parseErrorBody(output.body, context),
|
|
1120
|
-
};
|
|
1121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1122
|
-
switch (errorCode) {
|
|
1123
|
-
case "AccessDeniedException":
|
|
1124
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1125
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1126
|
-
case "ResourceNotFoundException":
|
|
1127
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1128
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1129
|
-
case "ValidationException":
|
|
1130
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1132
|
-
default:
|
|
1133
|
-
const parsedBody = parsedOutput.body;
|
|
1134
|
-
return throwDefaultError({
|
|
1135
|
-
output,
|
|
1136
|
-
parsedBody,
|
|
1137
|
-
errorCode,
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
651
|
export const de_ResetNotificationSettingsCommand = async (output, context) => {
|
|
1142
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1143
|
-
return
|
|
653
|
+
return de_CommandError(output, context);
|
|
1144
654
|
}
|
|
1145
655
|
const contents = map({
|
|
1146
656
|
$metadata: deserializeMetadata(output),
|
|
@@ -1152,34 +662,9 @@ export const de_ResetNotificationSettingsCommand = async (output, context) => {
|
|
|
1152
662
|
Object.assign(contents, doc);
|
|
1153
663
|
return contents;
|
|
1154
664
|
};
|
|
1155
|
-
const de_ResetNotificationSettingsCommandError = async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context),
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "AccessDeniedException":
|
|
1163
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ResourceNotFoundException":
|
|
1166
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ValidationException":
|
|
1169
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1170
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
665
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1181
666
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1182
|
-
return
|
|
667
|
+
return de_CommandError(output, context);
|
|
1183
668
|
}
|
|
1184
669
|
const contents = map({
|
|
1185
670
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,37 +672,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1187
672
|
await collectBody(output.body, context);
|
|
1188
673
|
return contents;
|
|
1189
674
|
};
|
|
1190
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1191
|
-
const parsedOutput = {
|
|
1192
|
-
...output,
|
|
1193
|
-
body: await parseErrorBody(output.body, context),
|
|
1194
|
-
};
|
|
1195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
-
switch (errorCode) {
|
|
1197
|
-
case "AccessDeniedException":
|
|
1198
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1199
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
|
-
case "ResourceNotFoundException":
|
|
1201
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "TooManyTagsException":
|
|
1204
|
-
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
1205
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "ValidationException":
|
|
1207
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1208
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1209
|
-
default:
|
|
1210
|
-
const parsedBody = parsedOutput.body;
|
|
1211
|
-
return throwDefaultError({
|
|
1212
|
-
output,
|
|
1213
|
-
parsedBody,
|
|
1214
|
-
errorCode,
|
|
1215
|
-
});
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
675
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1219
676
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
1221
678
|
}
|
|
1222
679
|
const contents = map({
|
|
1223
680
|
$metadata: deserializeMetadata(output),
|
|
@@ -1225,34 +682,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1225
682
|
await collectBody(output.body, context);
|
|
1226
683
|
return contents;
|
|
1227
684
|
};
|
|
1228
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1229
|
-
const parsedOutput = {
|
|
1230
|
-
...output,
|
|
1231
|
-
body: await parseErrorBody(output.body, context),
|
|
1232
|
-
};
|
|
1233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1234
|
-
switch (errorCode) {
|
|
1235
|
-
case "AccessDeniedException":
|
|
1236
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1237
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ResourceNotFoundException":
|
|
1239
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1240
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ValidationException":
|
|
1242
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
685
|
export const de_UpdateCrlCommand = async (output, context) => {
|
|
1254
686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1255
|
-
return
|
|
687
|
+
return de_CommandError(output, context);
|
|
1256
688
|
}
|
|
1257
689
|
const contents = map({
|
|
1258
690
|
$metadata: deserializeMetadata(output),
|
|
@@ -1264,34 +696,9 @@ export const de_UpdateCrlCommand = async (output, context) => {
|
|
|
1264
696
|
Object.assign(contents, doc);
|
|
1265
697
|
return contents;
|
|
1266
698
|
};
|
|
1267
|
-
const de_UpdateCrlCommandError = async (output, context) => {
|
|
1268
|
-
const parsedOutput = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseErrorBody(output.body, context),
|
|
1271
|
-
};
|
|
1272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
-
switch (errorCode) {
|
|
1274
|
-
case "AccessDeniedException":
|
|
1275
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1276
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ValidationException":
|
|
1281
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1282
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1283
|
-
default:
|
|
1284
|
-
const parsedBody = parsedOutput.body;
|
|
1285
|
-
return throwDefaultError({
|
|
1286
|
-
output,
|
|
1287
|
-
parsedBody,
|
|
1288
|
-
errorCode,
|
|
1289
|
-
});
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
699
|
export const de_UpdateProfileCommand = async (output, context) => {
|
|
1293
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1294
|
-
return
|
|
701
|
+
return de_CommandError(output, context);
|
|
1295
702
|
}
|
|
1296
703
|
const contents = map({
|
|
1297
704
|
$metadata: deserializeMetadata(output),
|
|
@@ -1303,34 +710,9 @@ export const de_UpdateProfileCommand = async (output, context) => {
|
|
|
1303
710
|
Object.assign(contents, doc);
|
|
1304
711
|
return contents;
|
|
1305
712
|
};
|
|
1306
|
-
const de_UpdateProfileCommandError = async (output, context) => {
|
|
1307
|
-
const parsedOutput = {
|
|
1308
|
-
...output,
|
|
1309
|
-
body: await parseErrorBody(output.body, context),
|
|
1310
|
-
};
|
|
1311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1312
|
-
switch (errorCode) {
|
|
1313
|
-
case "AccessDeniedException":
|
|
1314
|
-
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1316
|
-
case "ResourceNotFoundException":
|
|
1317
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1318
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1319
|
-
case "ValidationException":
|
|
1320
|
-
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1321
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
|
-
default:
|
|
1323
|
-
const parsedBody = parsedOutput.body;
|
|
1324
|
-
return throwDefaultError({
|
|
1325
|
-
output,
|
|
1326
|
-
parsedBody,
|
|
1327
|
-
errorCode,
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
713
|
export const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
1332
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
|
-
return
|
|
715
|
+
return de_CommandError(output, context);
|
|
1334
716
|
}
|
|
1335
717
|
const contents = map({
|
|
1336
718
|
$metadata: deserializeMetadata(output),
|
|
@@ -1342,7 +724,7 @@ export const de_UpdateTrustAnchorCommand = async (output, context) => {
|
|
|
1342
724
|
Object.assign(contents, doc);
|
|
1343
725
|
return contents;
|
|
1344
726
|
};
|
|
1345
|
-
const
|
|
727
|
+
const de_CommandError = async (output, context) => {
|
|
1346
728
|
const parsedOutput = {
|
|
1347
729
|
...output,
|
|
1348
730
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1352,12 +734,15 @@ const de_UpdateTrustAnchorCommandError = async (output, context) => {
|
|
|
1352
734
|
case "AccessDeniedException":
|
|
1353
735
|
case "com.amazonaws.rolesanywhere#AccessDeniedException":
|
|
1354
736
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1355
|
-
case "ResourceNotFoundException":
|
|
1356
|
-
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
1357
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1358
737
|
case "ValidationException":
|
|
1359
738
|
case "com.amazonaws.rolesanywhere#ValidationException":
|
|
1360
739
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
740
|
+
case "ResourceNotFoundException":
|
|
741
|
+
case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
|
|
742
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
743
|
+
case "TooManyTagsException":
|
|
744
|
+
case "com.amazonaws.rolesanywhere#TooManyTagsException":
|
|
745
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1361
746
|
default:
|
|
1362
747
|
const parsedBody = parsedOutput.body;
|
|
1363
748
|
return throwDefaultError({
|