@aws-sdk/client-secrets-manager 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +110 -197
- package/dist-es/protocols/Aws_json1_1.js +177 -198
- package/package.json +11 -6
|
@@ -245,7 +245,6 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
245
245
|
...output,
|
|
246
246
|
body: await parseBody(output.body, context),
|
|
247
247
|
};
|
|
248
|
-
let response;
|
|
249
248
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
250
249
|
switch (errorCode) {
|
|
251
250
|
case "InternalServiceError":
|
|
@@ -262,14 +261,12 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
262
261
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
263
262
|
default:
|
|
264
263
|
const parsedBody = parsedOutput.body;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
$metadata,
|
|
264
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
265
|
+
output,
|
|
266
|
+
parsedBody,
|
|
267
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
268
|
+
errorCode,
|
|
271
269
|
});
|
|
272
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
273
270
|
}
|
|
274
271
|
};
|
|
275
272
|
const deserializeAws_json1_1CreateSecretCommand = async (output, context) => {
|
|
@@ -291,7 +288,6 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
291
288
|
...output,
|
|
292
289
|
body: await parseBody(output.body, context),
|
|
293
290
|
};
|
|
294
|
-
let response;
|
|
295
291
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
296
292
|
switch (errorCode) {
|
|
297
293
|
case "DecryptionFailure":
|
|
@@ -326,14 +322,12 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
326
322
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
327
323
|
default:
|
|
328
324
|
const parsedBody = parsedOutput.body;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
$metadata,
|
|
325
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
326
|
+
output,
|
|
327
|
+
parsedBody,
|
|
328
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
329
|
+
errorCode,
|
|
335
330
|
});
|
|
336
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
337
331
|
}
|
|
338
332
|
};
|
|
339
333
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
@@ -355,7 +349,6 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
355
349
|
...output,
|
|
356
350
|
body: await parseBody(output.body, context),
|
|
357
351
|
};
|
|
358
|
-
let response;
|
|
359
352
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
353
|
switch (errorCode) {
|
|
361
354
|
case "InternalServiceError":
|
|
@@ -372,14 +365,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
372
365
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
373
366
|
default:
|
|
374
367
|
const parsedBody = parsedOutput.body;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
$metadata,
|
|
368
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
369
|
+
output,
|
|
370
|
+
parsedBody,
|
|
371
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
372
|
+
errorCode,
|
|
381
373
|
});
|
|
382
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
383
374
|
}
|
|
384
375
|
};
|
|
385
376
|
const deserializeAws_json1_1DeleteSecretCommand = async (output, context) => {
|
|
@@ -401,7 +392,6 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
401
392
|
...output,
|
|
402
393
|
body: await parseBody(output.body, context),
|
|
403
394
|
};
|
|
404
|
-
let response;
|
|
405
395
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
406
396
|
switch (errorCode) {
|
|
407
397
|
case "InternalServiceError":
|
|
@@ -418,14 +408,12 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
418
408
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
419
409
|
default:
|
|
420
410
|
const parsedBody = parsedOutput.body;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
$metadata,
|
|
411
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
412
|
+
output,
|
|
413
|
+
parsedBody,
|
|
414
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
415
|
+
errorCode,
|
|
427
416
|
});
|
|
428
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
429
417
|
}
|
|
430
418
|
};
|
|
431
419
|
const deserializeAws_json1_1DescribeSecretCommand = async (output, context) => {
|
|
@@ -447,7 +435,6 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
447
435
|
...output,
|
|
448
436
|
body: await parseBody(output.body, context),
|
|
449
437
|
};
|
|
450
|
-
let response;
|
|
451
438
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
439
|
switch (errorCode) {
|
|
453
440
|
case "InternalServiceError":
|
|
@@ -461,14 +448,12 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
461
448
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
462
449
|
default:
|
|
463
450
|
const parsedBody = parsedOutput.body;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
$metadata,
|
|
451
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
452
|
+
output,
|
|
453
|
+
parsedBody,
|
|
454
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
455
|
+
errorCode,
|
|
470
456
|
});
|
|
471
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
472
457
|
}
|
|
473
458
|
};
|
|
474
459
|
const deserializeAws_json1_1GetRandomPasswordCommand = async (output, context) => {
|
|
@@ -490,7 +475,6 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
490
475
|
...output,
|
|
491
476
|
body: await parseBody(output.body, context),
|
|
492
477
|
};
|
|
493
|
-
let response;
|
|
494
478
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
495
479
|
switch (errorCode) {
|
|
496
480
|
case "InternalServiceError":
|
|
@@ -504,14 +488,12 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
504
488
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
505
489
|
default:
|
|
506
490
|
const parsedBody = parsedOutput.body;
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
$metadata,
|
|
491
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
492
|
+
output,
|
|
493
|
+
parsedBody,
|
|
494
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
495
|
+
errorCode,
|
|
513
496
|
});
|
|
514
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
515
497
|
}
|
|
516
498
|
};
|
|
517
499
|
const deserializeAws_json1_1GetResourcePolicyCommand = async (output, context) => {
|
|
@@ -533,7 +515,6 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
533
515
|
...output,
|
|
534
516
|
body: await parseBody(output.body, context),
|
|
535
517
|
};
|
|
536
|
-
let response;
|
|
537
518
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
538
519
|
switch (errorCode) {
|
|
539
520
|
case "InternalServiceError":
|
|
@@ -550,14 +531,12 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
550
531
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
551
532
|
default:
|
|
552
533
|
const parsedBody = parsedOutput.body;
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
$metadata,
|
|
534
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
535
|
+
output,
|
|
536
|
+
parsedBody,
|
|
537
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
538
|
+
errorCode,
|
|
559
539
|
});
|
|
560
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
561
540
|
}
|
|
562
541
|
};
|
|
563
542
|
const deserializeAws_json1_1GetSecretValueCommand = async (output, context) => {
|
|
@@ -579,7 +558,6 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
579
558
|
...output,
|
|
580
559
|
body: await parseBody(output.body, context),
|
|
581
560
|
};
|
|
582
|
-
let response;
|
|
583
561
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
584
562
|
switch (errorCode) {
|
|
585
563
|
case "DecryptionFailure":
|
|
@@ -599,14 +577,12 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
599
577
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
600
578
|
default:
|
|
601
579
|
const parsedBody = parsedOutput.body;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
$metadata,
|
|
580
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
581
|
+
output,
|
|
582
|
+
parsedBody,
|
|
583
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
584
|
+
errorCode,
|
|
608
585
|
});
|
|
609
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
610
586
|
}
|
|
611
587
|
};
|
|
612
588
|
const deserializeAws_json1_1ListSecretsCommand = async (output, context) => {
|
|
@@ -628,7 +604,6 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
628
604
|
...output,
|
|
629
605
|
body: await parseBody(output.body, context),
|
|
630
606
|
};
|
|
631
|
-
let response;
|
|
632
607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
608
|
switch (errorCode) {
|
|
634
609
|
case "InternalServiceError":
|
|
@@ -642,14 +617,12 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
642
617
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
643
618
|
default:
|
|
644
619
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
$metadata,
|
|
620
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
621
|
+
output,
|
|
622
|
+
parsedBody,
|
|
623
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
624
|
+
errorCode,
|
|
651
625
|
});
|
|
652
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
653
626
|
}
|
|
654
627
|
};
|
|
655
628
|
const deserializeAws_json1_1ListSecretVersionIdsCommand = async (output, context) => {
|
|
@@ -671,7 +644,6 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
671
644
|
...output,
|
|
672
645
|
body: await parseBody(output.body, context),
|
|
673
646
|
};
|
|
674
|
-
let response;
|
|
675
647
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
648
|
switch (errorCode) {
|
|
677
649
|
case "InternalServiceError":
|
|
@@ -688,14 +660,12 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
688
660
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
689
661
|
default:
|
|
690
662
|
const parsedBody = parsedOutput.body;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
$metadata,
|
|
663
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
664
|
+
output,
|
|
665
|
+
parsedBody,
|
|
666
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
667
|
+
errorCode,
|
|
697
668
|
});
|
|
698
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
699
669
|
}
|
|
700
670
|
};
|
|
701
671
|
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
@@ -717,7 +687,6 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
717
687
|
...output,
|
|
718
688
|
body: await parseBody(output.body, context),
|
|
719
689
|
};
|
|
720
|
-
let response;
|
|
721
690
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
722
691
|
switch (errorCode) {
|
|
723
692
|
case "InternalServiceError":
|
|
@@ -740,14 +709,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
740
709
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
741
710
|
default:
|
|
742
711
|
const parsedBody = parsedOutput.body;
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
$metadata,
|
|
712
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
713
|
+
output,
|
|
714
|
+
parsedBody,
|
|
715
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
716
|
+
errorCode,
|
|
749
717
|
});
|
|
750
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
751
718
|
}
|
|
752
719
|
};
|
|
753
720
|
const deserializeAws_json1_1PutSecretValueCommand = async (output, context) => {
|
|
@@ -769,7 +736,6 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
769
736
|
...output,
|
|
770
737
|
body: await parseBody(output.body, context),
|
|
771
738
|
};
|
|
772
|
-
let response;
|
|
773
739
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
740
|
switch (errorCode) {
|
|
775
741
|
case "DecryptionFailure":
|
|
@@ -798,14 +764,12 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
798
764
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
799
765
|
default:
|
|
800
766
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
$metadata,
|
|
767
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
768
|
+
output,
|
|
769
|
+
parsedBody,
|
|
770
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
771
|
+
errorCode,
|
|
807
772
|
});
|
|
808
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
809
773
|
}
|
|
810
774
|
};
|
|
811
775
|
const deserializeAws_json1_1RemoveRegionsFromReplicationCommand = async (output, context) => {
|
|
@@ -827,7 +791,6 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
827
791
|
...output,
|
|
828
792
|
body: await parseBody(output.body, context),
|
|
829
793
|
};
|
|
830
|
-
let response;
|
|
831
794
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
795
|
switch (errorCode) {
|
|
833
796
|
case "InternalServiceError":
|
|
@@ -844,14 +807,12 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
844
807
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
845
808
|
default:
|
|
846
809
|
const parsedBody = parsedOutput.body;
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
$metadata,
|
|
810
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
811
|
+
output,
|
|
812
|
+
parsedBody,
|
|
813
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
814
|
+
errorCode,
|
|
853
815
|
});
|
|
854
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
855
816
|
}
|
|
856
817
|
};
|
|
857
818
|
const deserializeAws_json1_1ReplicateSecretToRegionsCommand = async (output, context) => {
|
|
@@ -873,7 +834,6 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
873
834
|
...output,
|
|
874
835
|
body: await parseBody(output.body, context),
|
|
875
836
|
};
|
|
876
|
-
let response;
|
|
877
837
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
878
838
|
switch (errorCode) {
|
|
879
839
|
case "InternalServiceError":
|
|
@@ -890,14 +850,12 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
890
850
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
891
851
|
default:
|
|
892
852
|
const parsedBody = parsedOutput.body;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
$metadata,
|
|
853
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
854
|
+
output,
|
|
855
|
+
parsedBody,
|
|
856
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
857
|
+
errorCode,
|
|
899
858
|
});
|
|
900
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
901
859
|
}
|
|
902
860
|
};
|
|
903
861
|
const deserializeAws_json1_1RestoreSecretCommand = async (output, context) => {
|
|
@@ -919,7 +877,6 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
919
877
|
...output,
|
|
920
878
|
body: await parseBody(output.body, context),
|
|
921
879
|
};
|
|
922
|
-
let response;
|
|
923
880
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
881
|
switch (errorCode) {
|
|
925
882
|
case "InternalServiceError":
|
|
@@ -936,14 +893,12 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
936
893
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
937
894
|
default:
|
|
938
895
|
const parsedBody = parsedOutput.body;
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
$metadata,
|
|
896
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
897
|
+
output,
|
|
898
|
+
parsedBody,
|
|
899
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
900
|
+
errorCode,
|
|
945
901
|
});
|
|
946
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
947
902
|
}
|
|
948
903
|
};
|
|
949
904
|
const deserializeAws_json1_1RotateSecretCommand = async (output, context) => {
|
|
@@ -965,7 +920,6 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
965
920
|
...output,
|
|
966
921
|
body: await parseBody(output.body, context),
|
|
967
922
|
};
|
|
968
|
-
let response;
|
|
969
923
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
970
924
|
switch (errorCode) {
|
|
971
925
|
case "InternalServiceError":
|
|
@@ -982,14 +936,12 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
982
936
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
983
937
|
default:
|
|
984
938
|
const parsedBody = parsedOutput.body;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
$metadata,
|
|
939
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
940
|
+
output,
|
|
941
|
+
parsedBody,
|
|
942
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
943
|
+
errorCode,
|
|
991
944
|
});
|
|
992
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
993
945
|
}
|
|
994
946
|
};
|
|
995
947
|
const deserializeAws_json1_1StopReplicationToReplicaCommand = async (output, context) => {
|
|
@@ -1011,7 +963,6 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
1011
963
|
...output,
|
|
1012
964
|
body: await parseBody(output.body, context),
|
|
1013
965
|
};
|
|
1014
|
-
let response;
|
|
1015
966
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
967
|
switch (errorCode) {
|
|
1017
968
|
case "InternalServiceError":
|
|
@@ -1028,14 +979,12 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
1028
979
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1029
980
|
default:
|
|
1030
981
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
$metadata,
|
|
982
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
983
|
+
output,
|
|
984
|
+
parsedBody,
|
|
985
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
986
|
+
errorCode,
|
|
1037
987
|
});
|
|
1038
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1039
988
|
}
|
|
1040
989
|
};
|
|
1041
990
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -1054,7 +1003,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
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 "InternalServiceError":
|
|
@@ -1071,14 +1019,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1071
1019
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1072
1020
|
default:
|
|
1073
1021
|
const parsedBody = parsedOutput.body;
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
$metadata,
|
|
1022
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1023
|
+
output,
|
|
1024
|
+
parsedBody,
|
|
1025
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1026
|
+
errorCode,
|
|
1080
1027
|
});
|
|
1081
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1082
1028
|
}
|
|
1083
1029
|
};
|
|
1084
1030
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -1097,7 +1043,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
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 "InternalServiceError":
|
|
@@ -1114,14 +1059,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1114
1059
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1115
1060
|
default:
|
|
1116
1061
|
const parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata,
|
|
1062
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1063
|
+
output,
|
|
1064
|
+
parsedBody,
|
|
1065
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1066
|
+
errorCode,
|
|
1123
1067
|
});
|
|
1124
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1125
1068
|
}
|
|
1126
1069
|
};
|
|
1127
1070
|
const deserializeAws_json1_1UpdateSecretCommand = async (output, context) => {
|
|
@@ -1143,7 +1086,6 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1143
1086
|
...output,
|
|
1144
1087
|
body: await parseBody(output.body, context),
|
|
1145
1088
|
};
|
|
1146
|
-
let response;
|
|
1147
1089
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
1090
|
switch (errorCode) {
|
|
1149
1091
|
case "DecryptionFailure":
|
|
@@ -1178,14 +1120,12 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1178
1120
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1179
1121
|
default:
|
|
1180
1122
|
const parsedBody = parsedOutput.body;
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
$metadata,
|
|
1123
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1124
|
+
output,
|
|
1125
|
+
parsedBody,
|
|
1126
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1127
|
+
errorCode,
|
|
1187
1128
|
});
|
|
1188
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1189
1129
|
}
|
|
1190
1130
|
};
|
|
1191
1131
|
const deserializeAws_json1_1UpdateSecretVersionStageCommand = async (output, context) => {
|
|
@@ -1207,7 +1147,6 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1207
1147
|
...output,
|
|
1208
1148
|
body: await parseBody(output.body, context),
|
|
1209
1149
|
};
|
|
1210
|
-
let response;
|
|
1211
1150
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1151
|
switch (errorCode) {
|
|
1213
1152
|
case "InternalServiceError":
|
|
@@ -1227,14 +1166,12 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1227
1166
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1228
1167
|
default:
|
|
1229
1168
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
$metadata,
|
|
1169
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1170
|
+
output,
|
|
1171
|
+
parsedBody,
|
|
1172
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1173
|
+
errorCode,
|
|
1236
1174
|
});
|
|
1237
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1238
1175
|
}
|
|
1239
1176
|
};
|
|
1240
1177
|
const deserializeAws_json1_1ValidateResourcePolicyCommand = async (output, context) => {
|
|
@@ -1256,7 +1193,6 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1256
1193
|
...output,
|
|
1257
1194
|
body: await parseBody(output.body, context),
|
|
1258
1195
|
};
|
|
1259
|
-
let response;
|
|
1260
1196
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
1197
|
switch (errorCode) {
|
|
1262
1198
|
case "InternalServiceError":
|
|
@@ -1276,14 +1212,12 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1276
1212
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1277
1213
|
default:
|
|
1278
1214
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
$metadata,
|
|
1215
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1216
|
+
output,
|
|
1217
|
+
parsedBody,
|
|
1218
|
+
exceptionCtor: SecretsManagerServiceException_1.SecretsManagerServiceException,
|
|
1219
|
+
errorCode,
|
|
1285
1220
|
});
|
|
1286
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1287
1221
|
}
|
|
1288
1222
|
};
|
|
1289
1223
|
const deserializeAws_json1_1DecryptionFailureResponse = async (parsedOutput, context) => {
|
|
@@ -1398,9 +1332,6 @@ const serializeAws_json1_1AddReplicaRegionListType = (input, context) => {
|
|
|
1398
1332
|
return input
|
|
1399
1333
|
.filter((e) => e != null)
|
|
1400
1334
|
.map((entry) => {
|
|
1401
|
-
if (entry === null) {
|
|
1402
|
-
return null;
|
|
1403
|
-
}
|
|
1404
1335
|
return serializeAws_json1_1ReplicaRegionType(entry, context);
|
|
1405
1336
|
});
|
|
1406
1337
|
};
|
|
@@ -1454,9 +1385,6 @@ const serializeAws_json1_1FiltersListType = (input, context) => {
|
|
|
1454
1385
|
return input
|
|
1455
1386
|
.filter((e) => e != null)
|
|
1456
1387
|
.map((entry) => {
|
|
1457
|
-
if (entry === null) {
|
|
1458
|
-
return null;
|
|
1459
|
-
}
|
|
1460
1388
|
return serializeAws_json1_1Filter(entry, context);
|
|
1461
1389
|
});
|
|
1462
1390
|
};
|
|
@@ -1464,9 +1392,6 @@ const serializeAws_json1_1FilterValuesStringList = (input, context) => {
|
|
|
1464
1392
|
return input
|
|
1465
1393
|
.filter((e) => e != null)
|
|
1466
1394
|
.map((entry) => {
|
|
1467
|
-
if (entry === null) {
|
|
1468
|
-
return null;
|
|
1469
|
-
}
|
|
1470
1395
|
return entry;
|
|
1471
1396
|
});
|
|
1472
1397
|
};
|
|
@@ -1541,9 +1466,6 @@ const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
|
|
|
1541
1466
|
return input
|
|
1542
1467
|
.filter((e) => e != null)
|
|
1543
1468
|
.map((entry) => {
|
|
1544
|
-
if (entry === null) {
|
|
1545
|
-
return null;
|
|
1546
|
-
}
|
|
1547
1469
|
return entry;
|
|
1548
1470
|
});
|
|
1549
1471
|
};
|
|
@@ -1592,9 +1514,6 @@ const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
|
|
|
1592
1514
|
return input
|
|
1593
1515
|
.filter((e) => e != null)
|
|
1594
1516
|
.map((entry) => {
|
|
1595
|
-
if (entry === null) {
|
|
1596
|
-
return null;
|
|
1597
|
-
}
|
|
1598
1517
|
return entry;
|
|
1599
1518
|
});
|
|
1600
1519
|
};
|
|
@@ -1613,9 +1532,6 @@ const serializeAws_json1_1TagKeyListType = (input, context) => {
|
|
|
1613
1532
|
return input
|
|
1614
1533
|
.filter((e) => e != null)
|
|
1615
1534
|
.map((entry) => {
|
|
1616
|
-
if (entry === null) {
|
|
1617
|
-
return null;
|
|
1618
|
-
}
|
|
1619
1535
|
return entry;
|
|
1620
1536
|
});
|
|
1621
1537
|
};
|
|
@@ -1623,9 +1539,6 @@ const serializeAws_json1_1TagListType = (input, context) => {
|
|
|
1623
1539
|
return input
|
|
1624
1540
|
.filter((e) => e != null)
|
|
1625
1541
|
.map((entry) => {
|
|
1626
|
-
if (entry === null) {
|
|
1627
|
-
return null;
|
|
1628
|
-
}
|
|
1629
1542
|
return serializeAws_json1_1Tag(entry, context);
|
|
1630
1543
|
});
|
|
1631
1544
|
};
|