@aws-sdk/client-secrets-manager 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +223 -248
- package/dist-es/protocols/Aws_json1_1.js +177 -202
- package/package.json +26 -26
|
@@ -246,8 +246,7 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
246
246
|
body: await parseBody(output.body, context),
|
|
247
247
|
};
|
|
248
248
|
let response;
|
|
249
|
-
|
|
250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
249
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
251
250
|
switch (errorCode) {
|
|
252
251
|
case "InternalServiceError":
|
|
253
252
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -263,10 +262,12 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (output, cont
|
|
|
263
262
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
264
263
|
default:
|
|
265
264
|
const parsedBody = parsedOutput.body;
|
|
265
|
+
const $metadata = deserializeMetadata(output);
|
|
266
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
266
267
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
267
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
268
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
268
269
|
$fault: "client",
|
|
269
|
-
$metadata
|
|
270
|
+
$metadata,
|
|
270
271
|
});
|
|
271
272
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
272
273
|
}
|
|
@@ -291,8 +292,7 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
291
292
|
body: await parseBody(output.body, context),
|
|
292
293
|
};
|
|
293
294
|
let response;
|
|
294
|
-
|
|
295
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
295
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
296
296
|
switch (errorCode) {
|
|
297
297
|
case "DecryptionFailure":
|
|
298
298
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
@@ -326,10 +326,12 @@ const deserializeAws_json1_1CreateSecretCommandError = async (output, context) =
|
|
|
326
326
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
327
327
|
default:
|
|
328
328
|
const parsedBody = parsedOutput.body;
|
|
329
|
+
const $metadata = deserializeMetadata(output);
|
|
330
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
329
331
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
332
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
331
333
|
$fault: "client",
|
|
332
|
-
$metadata
|
|
334
|
+
$metadata,
|
|
333
335
|
});
|
|
334
336
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
335
337
|
}
|
|
@@ -354,8 +356,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
354
356
|
body: await parseBody(output.body, context),
|
|
355
357
|
};
|
|
356
358
|
let response;
|
|
357
|
-
|
|
358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
360
|
switch (errorCode) {
|
|
360
361
|
case "InternalServiceError":
|
|
361
362
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -371,10 +372,12 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
371
372
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
372
373
|
default:
|
|
373
374
|
const parsedBody = parsedOutput.body;
|
|
375
|
+
const $metadata = deserializeMetadata(output);
|
|
376
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
374
377
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
375
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
378
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
376
379
|
$fault: "client",
|
|
377
|
-
$metadata
|
|
380
|
+
$metadata,
|
|
378
381
|
});
|
|
379
382
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
380
383
|
}
|
|
@@ -399,8 +402,7 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
399
402
|
body: await parseBody(output.body, context),
|
|
400
403
|
};
|
|
401
404
|
let response;
|
|
402
|
-
|
|
403
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
404
406
|
switch (errorCode) {
|
|
405
407
|
case "InternalServiceError":
|
|
406
408
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -416,10 +418,12 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (output, context) =
|
|
|
416
418
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
417
419
|
default:
|
|
418
420
|
const parsedBody = parsedOutput.body;
|
|
421
|
+
const $metadata = deserializeMetadata(output);
|
|
422
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
419
423
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
420
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
424
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
421
425
|
$fault: "client",
|
|
422
|
-
$metadata
|
|
426
|
+
$metadata,
|
|
423
427
|
});
|
|
424
428
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
425
429
|
}
|
|
@@ -444,8 +448,7 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
444
448
|
body: await parseBody(output.body, context),
|
|
445
449
|
};
|
|
446
450
|
let response;
|
|
447
|
-
|
|
448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
451
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
452
|
switch (errorCode) {
|
|
450
453
|
case "InternalServiceError":
|
|
451
454
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -458,10 +461,12 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (output, context)
|
|
|
458
461
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
459
462
|
default:
|
|
460
463
|
const parsedBody = parsedOutput.body;
|
|
464
|
+
const $metadata = deserializeMetadata(output);
|
|
465
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
461
466
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
462
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
467
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
463
468
|
$fault: "client",
|
|
464
|
-
$metadata
|
|
469
|
+
$metadata,
|
|
465
470
|
});
|
|
466
471
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
467
472
|
}
|
|
@@ -486,8 +491,7 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
486
491
|
body: await parseBody(output.body, context),
|
|
487
492
|
};
|
|
488
493
|
let response;
|
|
489
|
-
|
|
490
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
491
495
|
switch (errorCode) {
|
|
492
496
|
case "InternalServiceError":
|
|
493
497
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -500,10 +504,12 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (output, conte
|
|
|
500
504
|
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
501
505
|
default:
|
|
502
506
|
const parsedBody = parsedOutput.body;
|
|
507
|
+
const $metadata = deserializeMetadata(output);
|
|
508
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
503
509
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
504
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
510
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
505
511
|
$fault: "client",
|
|
506
|
-
$metadata
|
|
512
|
+
$metadata,
|
|
507
513
|
});
|
|
508
514
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
509
515
|
}
|
|
@@ -528,8 +534,7 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
528
534
|
body: await parseBody(output.body, context),
|
|
529
535
|
};
|
|
530
536
|
let response;
|
|
531
|
-
|
|
532
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
533
538
|
switch (errorCode) {
|
|
534
539
|
case "InternalServiceError":
|
|
535
540
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -545,10 +550,12 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (output, conte
|
|
|
545
550
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
546
551
|
default:
|
|
547
552
|
const parsedBody = parsedOutput.body;
|
|
553
|
+
const $metadata = deserializeMetadata(output);
|
|
554
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
548
555
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
549
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
556
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
550
557
|
$fault: "client",
|
|
551
|
-
$metadata
|
|
558
|
+
$metadata,
|
|
552
559
|
});
|
|
553
560
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
554
561
|
}
|
|
@@ -573,8 +580,7 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
573
580
|
body: await parseBody(output.body, context),
|
|
574
581
|
};
|
|
575
582
|
let response;
|
|
576
|
-
|
|
577
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
584
|
switch (errorCode) {
|
|
579
585
|
case "DecryptionFailure":
|
|
580
586
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
@@ -593,10 +599,12 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (output, context)
|
|
|
593
599
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
594
600
|
default:
|
|
595
601
|
const parsedBody = parsedOutput.body;
|
|
602
|
+
const $metadata = deserializeMetadata(output);
|
|
603
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
596
604
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
597
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
605
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
598
606
|
$fault: "client",
|
|
599
|
-
$metadata
|
|
607
|
+
$metadata,
|
|
600
608
|
});
|
|
601
609
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
602
610
|
}
|
|
@@ -621,8 +629,7 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
621
629
|
body: await parseBody(output.body, context),
|
|
622
630
|
};
|
|
623
631
|
let response;
|
|
624
|
-
|
|
625
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
632
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
626
633
|
switch (errorCode) {
|
|
627
634
|
case "InternalServiceError":
|
|
628
635
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -635,10 +642,12 @@ const deserializeAws_json1_1ListSecretsCommandError = async (output, context) =>
|
|
|
635
642
|
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
636
643
|
default:
|
|
637
644
|
const parsedBody = parsedOutput.body;
|
|
645
|
+
const $metadata = deserializeMetadata(output);
|
|
646
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
638
647
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
648
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
640
649
|
$fault: "client",
|
|
641
|
-
$metadata
|
|
650
|
+
$metadata,
|
|
642
651
|
});
|
|
643
652
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
644
653
|
}
|
|
@@ -663,8 +672,7 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
663
672
|
body: await parseBody(output.body, context),
|
|
664
673
|
};
|
|
665
674
|
let response;
|
|
666
|
-
|
|
667
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
675
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
676
|
switch (errorCode) {
|
|
669
677
|
case "InternalServiceError":
|
|
670
678
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -680,10 +688,12 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (output, co
|
|
|
680
688
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
681
689
|
default:
|
|
682
690
|
const parsedBody = parsedOutput.body;
|
|
691
|
+
const $metadata = deserializeMetadata(output);
|
|
692
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
683
693
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
684
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
694
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
685
695
|
$fault: "client",
|
|
686
|
-
$metadata
|
|
696
|
+
$metadata,
|
|
687
697
|
});
|
|
688
698
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
689
699
|
}
|
|
@@ -708,8 +718,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
708
718
|
body: await parseBody(output.body, context),
|
|
709
719
|
};
|
|
710
720
|
let response;
|
|
711
|
-
|
|
712
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
722
|
switch (errorCode) {
|
|
714
723
|
case "InternalServiceError":
|
|
715
724
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -731,10 +740,12 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
731
740
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
732
741
|
default:
|
|
733
742
|
const parsedBody = parsedOutput.body;
|
|
743
|
+
const $metadata = deserializeMetadata(output);
|
|
744
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
734
745
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
735
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
746
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
736
747
|
$fault: "client",
|
|
737
|
-
$metadata
|
|
748
|
+
$metadata,
|
|
738
749
|
});
|
|
739
750
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
740
751
|
}
|
|
@@ -759,8 +770,7 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
759
770
|
body: await parseBody(output.body, context),
|
|
760
771
|
};
|
|
761
772
|
let response;
|
|
762
|
-
|
|
763
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
773
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
764
774
|
switch (errorCode) {
|
|
765
775
|
case "DecryptionFailure":
|
|
766
776
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
@@ -788,10 +798,12 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (output, context)
|
|
|
788
798
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
789
799
|
default:
|
|
790
800
|
const parsedBody = parsedOutput.body;
|
|
801
|
+
const $metadata = deserializeMetadata(output);
|
|
802
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
791
803
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
792
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
804
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
793
805
|
$fault: "client",
|
|
794
|
-
$metadata
|
|
806
|
+
$metadata,
|
|
795
807
|
});
|
|
796
808
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
797
809
|
}
|
|
@@ -816,8 +828,7 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
816
828
|
body: await parseBody(output.body, context),
|
|
817
829
|
};
|
|
818
830
|
let response;
|
|
819
|
-
|
|
820
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
821
832
|
switch (errorCode) {
|
|
822
833
|
case "InternalServiceError":
|
|
823
834
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -833,10 +844,12 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (ou
|
|
|
833
844
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
834
845
|
default:
|
|
835
846
|
const parsedBody = parsedOutput.body;
|
|
847
|
+
const $metadata = deserializeMetadata(output);
|
|
848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
836
849
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
837
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
838
851
|
$fault: "client",
|
|
839
|
-
$metadata
|
|
852
|
+
$metadata,
|
|
840
853
|
});
|
|
841
854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
842
855
|
}
|
|
@@ -861,8 +874,7 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
861
874
|
body: await parseBody(output.body, context),
|
|
862
875
|
};
|
|
863
876
|
let response;
|
|
864
|
-
|
|
865
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
866
878
|
switch (errorCode) {
|
|
867
879
|
case "InternalServiceError":
|
|
868
880
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -878,10 +890,12 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (output
|
|
|
878
890
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
879
891
|
default:
|
|
880
892
|
const parsedBody = parsedOutput.body;
|
|
893
|
+
const $metadata = deserializeMetadata(output);
|
|
894
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
881
895
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
882
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
896
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
883
897
|
$fault: "client",
|
|
884
|
-
$metadata
|
|
898
|
+
$metadata,
|
|
885
899
|
});
|
|
886
900
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
887
901
|
}
|
|
@@ -906,8 +920,7 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
906
920
|
body: await parseBody(output.body, context),
|
|
907
921
|
};
|
|
908
922
|
let response;
|
|
909
|
-
|
|
910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
924
|
switch (errorCode) {
|
|
912
925
|
case "InternalServiceError":
|
|
913
926
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -923,10 +936,12 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (output, context)
|
|
|
923
936
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
924
937
|
default:
|
|
925
938
|
const parsedBody = parsedOutput.body;
|
|
939
|
+
const $metadata = deserializeMetadata(output);
|
|
940
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
926
941
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
942
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
928
943
|
$fault: "client",
|
|
929
|
-
$metadata
|
|
944
|
+
$metadata,
|
|
930
945
|
});
|
|
931
946
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
932
947
|
}
|
|
@@ -951,8 +966,7 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
951
966
|
body: await parseBody(output.body, context),
|
|
952
967
|
};
|
|
953
968
|
let response;
|
|
954
|
-
|
|
955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
970
|
switch (errorCode) {
|
|
957
971
|
case "InternalServiceError":
|
|
958
972
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -968,10 +982,12 @@ const deserializeAws_json1_1RotateSecretCommandError = async (output, context) =
|
|
|
968
982
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
969
983
|
default:
|
|
970
984
|
const parsedBody = parsedOutput.body;
|
|
985
|
+
const $metadata = deserializeMetadata(output);
|
|
986
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
971
987
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
972
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
988
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
973
989
|
$fault: "client",
|
|
974
|
-
$metadata
|
|
990
|
+
$metadata,
|
|
975
991
|
});
|
|
976
992
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
977
993
|
}
|
|
@@ -996,8 +1012,7 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
996
1012
|
body: await parseBody(output.body, context),
|
|
997
1013
|
};
|
|
998
1014
|
let response;
|
|
999
|
-
|
|
1000
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
1016
|
switch (errorCode) {
|
|
1002
1017
|
case "InternalServiceError":
|
|
1003
1018
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -1013,10 +1028,12 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (output
|
|
|
1013
1028
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1014
1029
|
default:
|
|
1015
1030
|
const parsedBody = parsedOutput.body;
|
|
1031
|
+
const $metadata = deserializeMetadata(output);
|
|
1032
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1016
1033
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1017
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1034
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1018
1035
|
$fault: "client",
|
|
1019
|
-
$metadata
|
|
1036
|
+
$metadata,
|
|
1020
1037
|
});
|
|
1021
1038
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1022
1039
|
}
|
|
@@ -1038,8 +1055,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1038
1055
|
body: await parseBody(output.body, context),
|
|
1039
1056
|
};
|
|
1040
1057
|
let response;
|
|
1041
|
-
|
|
1042
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
1059
|
switch (errorCode) {
|
|
1044
1060
|
case "InternalServiceError":
|
|
1045
1061
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -1055,10 +1071,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1055
1071
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1056
1072
|
default:
|
|
1057
1073
|
const parsedBody = parsedOutput.body;
|
|
1074
|
+
const $metadata = deserializeMetadata(output);
|
|
1075
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1058
1076
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1059
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1077
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1060
1078
|
$fault: "client",
|
|
1061
|
-
$metadata
|
|
1079
|
+
$metadata,
|
|
1062
1080
|
});
|
|
1063
1081
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1064
1082
|
}
|
|
@@ -1080,8 +1098,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1080
1098
|
body: await parseBody(output.body, context),
|
|
1081
1099
|
};
|
|
1082
1100
|
let response;
|
|
1083
|
-
|
|
1084
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1085
1102
|
switch (errorCode) {
|
|
1086
1103
|
case "InternalServiceError":
|
|
1087
1104
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -1097,10 +1114,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1097
1114
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1098
1115
|
default:
|
|
1099
1116
|
const parsedBody = parsedOutput.body;
|
|
1117
|
+
const $metadata = deserializeMetadata(output);
|
|
1118
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1100
1119
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1102
1121
|
$fault: "client",
|
|
1103
|
-
$metadata
|
|
1122
|
+
$metadata,
|
|
1104
1123
|
});
|
|
1105
1124
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1106
1125
|
}
|
|
@@ -1125,8 +1144,7 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1125
1144
|
body: await parseBody(output.body, context),
|
|
1126
1145
|
};
|
|
1127
1146
|
let response;
|
|
1128
|
-
|
|
1129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1130
1148
|
switch (errorCode) {
|
|
1131
1149
|
case "DecryptionFailure":
|
|
1132
1150
|
case "com.amazonaws.secretsmanager#DecryptionFailure":
|
|
@@ -1160,10 +1178,12 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (output, context) =
|
|
|
1160
1178
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1161
1179
|
default:
|
|
1162
1180
|
const parsedBody = parsedOutput.body;
|
|
1181
|
+
const $metadata = deserializeMetadata(output);
|
|
1182
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1163
1183
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1184
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1165
1185
|
$fault: "client",
|
|
1166
|
-
$metadata
|
|
1186
|
+
$metadata,
|
|
1167
1187
|
});
|
|
1168
1188
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1169
1189
|
}
|
|
@@ -1188,8 +1208,7 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1188
1208
|
body: await parseBody(output.body, context),
|
|
1189
1209
|
};
|
|
1190
1210
|
let response;
|
|
1191
|
-
|
|
1192
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1193
1212
|
switch (errorCode) {
|
|
1194
1213
|
case "InternalServiceError":
|
|
1195
1214
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -1208,10 +1227,12 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (output
|
|
|
1208
1227
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1209
1228
|
default:
|
|
1210
1229
|
const parsedBody = parsedOutput.body;
|
|
1230
|
+
const $metadata = deserializeMetadata(output);
|
|
1231
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1211
1232
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1212
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1233
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1213
1234
|
$fault: "client",
|
|
1214
|
-
$metadata
|
|
1235
|
+
$metadata,
|
|
1215
1236
|
});
|
|
1216
1237
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1217
1238
|
}
|
|
@@ -1236,8 +1257,7 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1236
1257
|
body: await parseBody(output.body, context),
|
|
1237
1258
|
};
|
|
1238
1259
|
let response;
|
|
1239
|
-
|
|
1240
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1260
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1261
|
switch (errorCode) {
|
|
1242
1262
|
case "InternalServiceError":
|
|
1243
1263
|
case "com.amazonaws.secretsmanager#InternalServiceError":
|
|
@@ -1256,10 +1276,12 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (output,
|
|
|
1256
1276
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1257
1277
|
default:
|
|
1258
1278
|
const parsedBody = parsedOutput.body;
|
|
1279
|
+
const $metadata = deserializeMetadata(output);
|
|
1280
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1259
1281
|
response = new SecretsManagerServiceException_1.SecretsManagerServiceException({
|
|
1260
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1282
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1261
1283
|
$fault: "client",
|
|
1262
|
-
$metadata
|
|
1284
|
+
$metadata,
|
|
1263
1285
|
});
|
|
1264
1286
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1265
1287
|
}
|
|
@@ -1384,53 +1406,48 @@ const serializeAws_json1_1AddReplicaRegionListType = (input, context) => {
|
|
|
1384
1406
|
};
|
|
1385
1407
|
const serializeAws_json1_1CancelRotateSecretRequest = (input, context) => {
|
|
1386
1408
|
return {
|
|
1387
|
-
...(input.SecretId
|
|
1409
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1388
1410
|
};
|
|
1389
1411
|
};
|
|
1390
1412
|
const serializeAws_json1_1CreateSecretRequest = (input, context) => {
|
|
1391
1413
|
var _a;
|
|
1392
1414
|
return {
|
|
1393
|
-
...(input.AddReplicaRegions
|
|
1394
|
-
input.AddReplicaRegions !== null && {
|
|
1415
|
+
...(input.AddReplicaRegions != null && {
|
|
1395
1416
|
AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1396
1417
|
}),
|
|
1397
1418
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1398
|
-
...(input.Description
|
|
1399
|
-
...(input.ForceOverwriteReplicaSecret
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
...(input.
|
|
1403
|
-
...(input.
|
|
1404
|
-
|
|
1405
|
-
...(input.SecretString
|
|
1406
|
-
...(input.Tags
|
|
1407
|
-
input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1419
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1420
|
+
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1421
|
+
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1422
|
+
}),
|
|
1423
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1424
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1425
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1426
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1427
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1408
1428
|
};
|
|
1409
1429
|
};
|
|
1410
1430
|
const serializeAws_json1_1DeleteResourcePolicyRequest = (input, context) => {
|
|
1411
1431
|
return {
|
|
1412
|
-
...(input.SecretId
|
|
1432
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1413
1433
|
};
|
|
1414
1434
|
};
|
|
1415
1435
|
const serializeAws_json1_1DeleteSecretRequest = (input, context) => {
|
|
1416
1436
|
return {
|
|
1417
|
-
...(input.ForceDeleteWithoutRecovery
|
|
1418
|
-
|
|
1419
|
-
...(input.
|
|
1420
|
-
input.RecoveryWindowInDays !== null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1421
|
-
...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
|
|
1437
|
+
...(input.ForceDeleteWithoutRecovery != null && { ForceDeleteWithoutRecovery: input.ForceDeleteWithoutRecovery }),
|
|
1438
|
+
...(input.RecoveryWindowInDays != null && { RecoveryWindowInDays: input.RecoveryWindowInDays }),
|
|
1439
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1422
1440
|
};
|
|
1423
1441
|
};
|
|
1424
1442
|
const serializeAws_json1_1DescribeSecretRequest = (input, context) => {
|
|
1425
1443
|
return {
|
|
1426
|
-
...(input.SecretId
|
|
1444
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1427
1445
|
};
|
|
1428
1446
|
};
|
|
1429
1447
|
const serializeAws_json1_1Filter = (input, context) => {
|
|
1430
1448
|
return {
|
|
1431
|
-
...(input.Key
|
|
1432
|
-
...(input.Values
|
|
1433
|
-
input.Values !== null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }),
|
|
1449
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1450
|
+
...(input.Values != null && { Values: serializeAws_json1_1FilterValuesStringList(input.Values, context) }),
|
|
1434
1451
|
};
|
|
1435
1452
|
};
|
|
1436
1453
|
const serializeAws_json1_1FiltersListType = (input, context) => {
|
|
@@ -1455,83 +1472,69 @@ const serializeAws_json1_1FilterValuesStringList = (input, context) => {
|
|
|
1455
1472
|
};
|
|
1456
1473
|
const serializeAws_json1_1GetRandomPasswordRequest = (input, context) => {
|
|
1457
1474
|
return {
|
|
1458
|
-
...(input.ExcludeCharacters
|
|
1459
|
-
|
|
1460
|
-
...(input.
|
|
1461
|
-
|
|
1462
|
-
...(input.
|
|
1463
|
-
|
|
1464
|
-
...(input.
|
|
1465
|
-
|
|
1466
|
-
...(input.ExcludeUppercase !== undefined &&
|
|
1467
|
-
input.ExcludeUppercase !== null && { ExcludeUppercase: input.ExcludeUppercase }),
|
|
1468
|
-
...(input.IncludeSpace !== undefined && input.IncludeSpace !== null && { IncludeSpace: input.IncludeSpace }),
|
|
1469
|
-
...(input.PasswordLength !== undefined &&
|
|
1470
|
-
input.PasswordLength !== null && { PasswordLength: input.PasswordLength }),
|
|
1471
|
-
...(input.RequireEachIncludedType !== undefined &&
|
|
1472
|
-
input.RequireEachIncludedType !== null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1475
|
+
...(input.ExcludeCharacters != null && { ExcludeCharacters: input.ExcludeCharacters }),
|
|
1476
|
+
...(input.ExcludeLowercase != null && { ExcludeLowercase: input.ExcludeLowercase }),
|
|
1477
|
+
...(input.ExcludeNumbers != null && { ExcludeNumbers: input.ExcludeNumbers }),
|
|
1478
|
+
...(input.ExcludePunctuation != null && { ExcludePunctuation: input.ExcludePunctuation }),
|
|
1479
|
+
...(input.ExcludeUppercase != null && { ExcludeUppercase: input.ExcludeUppercase }),
|
|
1480
|
+
...(input.IncludeSpace != null && { IncludeSpace: input.IncludeSpace }),
|
|
1481
|
+
...(input.PasswordLength != null && { PasswordLength: input.PasswordLength }),
|
|
1482
|
+
...(input.RequireEachIncludedType != null && { RequireEachIncludedType: input.RequireEachIncludedType }),
|
|
1473
1483
|
};
|
|
1474
1484
|
};
|
|
1475
1485
|
const serializeAws_json1_1GetResourcePolicyRequest = (input, context) => {
|
|
1476
1486
|
return {
|
|
1477
|
-
...(input.SecretId
|
|
1487
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1478
1488
|
};
|
|
1479
1489
|
};
|
|
1480
1490
|
const serializeAws_json1_1GetSecretValueRequest = (input, context) => {
|
|
1481
1491
|
return {
|
|
1482
|
-
...(input.SecretId
|
|
1483
|
-
...(input.VersionId
|
|
1484
|
-
...(input.VersionStage
|
|
1492
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1493
|
+
...(input.VersionId != null && { VersionId: input.VersionId }),
|
|
1494
|
+
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1485
1495
|
};
|
|
1486
1496
|
};
|
|
1487
1497
|
const serializeAws_json1_1ListSecretsRequest = (input, context) => {
|
|
1488
1498
|
return {
|
|
1489
|
-
...(input.Filters
|
|
1490
|
-
|
|
1491
|
-
...(input.
|
|
1492
|
-
...(input.
|
|
1493
|
-
...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
|
|
1499
|
+
...(input.Filters != null && { Filters: serializeAws_json1_1FiltersListType(input.Filters, context) }),
|
|
1500
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1501
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1502
|
+
...(input.SortOrder != null && { SortOrder: input.SortOrder }),
|
|
1494
1503
|
};
|
|
1495
1504
|
};
|
|
1496
1505
|
const serializeAws_json1_1ListSecretVersionIdsRequest = (input, context) => {
|
|
1497
1506
|
return {
|
|
1498
|
-
...(input.IncludeDeprecated
|
|
1499
|
-
|
|
1500
|
-
...(input.
|
|
1501
|
-
...(input.
|
|
1502
|
-
...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
|
|
1507
|
+
...(input.IncludeDeprecated != null && { IncludeDeprecated: input.IncludeDeprecated }),
|
|
1508
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1509
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1510
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1503
1511
|
};
|
|
1504
1512
|
};
|
|
1505
1513
|
const serializeAws_json1_1PutResourcePolicyRequest = (input, context) => {
|
|
1506
1514
|
return {
|
|
1507
|
-
...(input.BlockPublicPolicy
|
|
1508
|
-
|
|
1509
|
-
...(input.
|
|
1510
|
-
input.ResourcePolicy !== null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1511
|
-
...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
|
|
1515
|
+
...(input.BlockPublicPolicy != null && { BlockPublicPolicy: input.BlockPublicPolicy }),
|
|
1516
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1517
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1512
1518
|
};
|
|
1513
1519
|
};
|
|
1514
1520
|
const serializeAws_json1_1PutSecretValueRequest = (input, context) => {
|
|
1515
1521
|
var _a;
|
|
1516
1522
|
return {
|
|
1517
1523
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1518
|
-
...(input.SecretBinary
|
|
1519
|
-
|
|
1520
|
-
...(input.
|
|
1521
|
-
...(input.
|
|
1522
|
-
...(input.VersionStages !== undefined &&
|
|
1523
|
-
input.VersionStages !== null && {
|
|
1524
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1525
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1526
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1527
|
+
...(input.VersionStages != null && {
|
|
1524
1528
|
VersionStages: serializeAws_json1_1SecretVersionStagesType(input.VersionStages, context),
|
|
1525
1529
|
}),
|
|
1526
1530
|
};
|
|
1527
1531
|
};
|
|
1528
1532
|
const serializeAws_json1_1RemoveRegionsFromReplicationRequest = (input, context) => {
|
|
1529
1533
|
return {
|
|
1530
|
-
...(input.RemoveReplicaRegions
|
|
1531
|
-
input.RemoveReplicaRegions !== null && {
|
|
1534
|
+
...(input.RemoveReplicaRegions != null && {
|
|
1532
1535
|
RemoveReplicaRegions: serializeAws_json1_1RemoveReplicaRegionListType(input.RemoveReplicaRegions, context),
|
|
1533
1536
|
}),
|
|
1534
|
-
...(input.SecretId
|
|
1537
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1535
1538
|
};
|
|
1536
1539
|
};
|
|
1537
1540
|
const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
|
|
@@ -1546,48 +1549,43 @@ const serializeAws_json1_1RemoveReplicaRegionListType = (input, context) => {
|
|
|
1546
1549
|
};
|
|
1547
1550
|
const serializeAws_json1_1ReplicaRegionType = (input, context) => {
|
|
1548
1551
|
return {
|
|
1549
|
-
...(input.KmsKeyId
|
|
1550
|
-
...(input.Region
|
|
1552
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1553
|
+
...(input.Region != null && { Region: input.Region }),
|
|
1551
1554
|
};
|
|
1552
1555
|
};
|
|
1553
1556
|
const serializeAws_json1_1ReplicateSecretToRegionsRequest = (input, context) => {
|
|
1554
1557
|
return {
|
|
1555
|
-
...(input.AddReplicaRegions
|
|
1556
|
-
input.AddReplicaRegions !== null && {
|
|
1558
|
+
...(input.AddReplicaRegions != null && {
|
|
1557
1559
|
AddReplicaRegions: serializeAws_json1_1AddReplicaRegionListType(input.AddReplicaRegions, context),
|
|
1558
1560
|
}),
|
|
1559
|
-
...(input.ForceOverwriteReplicaSecret
|
|
1560
|
-
|
|
1561
|
-
|
|
1561
|
+
...(input.ForceOverwriteReplicaSecret != null && {
|
|
1562
|
+
ForceOverwriteReplicaSecret: input.ForceOverwriteReplicaSecret,
|
|
1563
|
+
}),
|
|
1564
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1562
1565
|
};
|
|
1563
1566
|
};
|
|
1564
1567
|
const serializeAws_json1_1RestoreSecretRequest = (input, context) => {
|
|
1565
1568
|
return {
|
|
1566
|
-
...(input.SecretId
|
|
1569
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1567
1570
|
};
|
|
1568
1571
|
};
|
|
1569
1572
|
const serializeAws_json1_1RotateSecretRequest = (input, context) => {
|
|
1570
1573
|
var _a;
|
|
1571
1574
|
return {
|
|
1572
1575
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1573
|
-
...(input.RotateImmediately
|
|
1574
|
-
|
|
1575
|
-
...(input.
|
|
1576
|
-
input.RotationLambdaARN !== null && { RotationLambdaARN: input.RotationLambdaARN }),
|
|
1577
|
-
...(input.RotationRules !== undefined &&
|
|
1578
|
-
input.RotationRules !== null && {
|
|
1576
|
+
...(input.RotateImmediately != null && { RotateImmediately: input.RotateImmediately }),
|
|
1577
|
+
...(input.RotationLambdaARN != null && { RotationLambdaARN: input.RotationLambdaARN }),
|
|
1578
|
+
...(input.RotationRules != null && {
|
|
1579
1579
|
RotationRules: serializeAws_json1_1RotationRulesType(input.RotationRules, context),
|
|
1580
1580
|
}),
|
|
1581
|
-
...(input.SecretId
|
|
1581
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1582
1582
|
};
|
|
1583
1583
|
};
|
|
1584
1584
|
const serializeAws_json1_1RotationRulesType = (input, context) => {
|
|
1585
1585
|
return {
|
|
1586
|
-
...(input.AutomaticallyAfterDays
|
|
1587
|
-
|
|
1588
|
-
...(input.
|
|
1589
|
-
...(input.ScheduleExpression !== undefined &&
|
|
1590
|
-
input.ScheduleExpression !== null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1586
|
+
...(input.AutomaticallyAfterDays != null && { AutomaticallyAfterDays: input.AutomaticallyAfterDays }),
|
|
1587
|
+
...(input.Duration != null && { Duration: input.Duration }),
|
|
1588
|
+
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1591
1589
|
};
|
|
1592
1590
|
};
|
|
1593
1591
|
const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
|
|
@@ -1602,13 +1600,13 @@ const serializeAws_json1_1SecretVersionStagesType = (input, context) => {
|
|
|
1602
1600
|
};
|
|
1603
1601
|
const serializeAws_json1_1StopReplicationToReplicaRequest = (input, context) => {
|
|
1604
1602
|
return {
|
|
1605
|
-
...(input.SecretId
|
|
1603
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1606
1604
|
};
|
|
1607
1605
|
};
|
|
1608
1606
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
1609
1607
|
return {
|
|
1610
|
-
...(input.Key
|
|
1611
|
-
...(input.Value
|
|
1608
|
+
...(input.Key != null && { Key: input.Key }),
|
|
1609
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1612
1610
|
};
|
|
1613
1611
|
};
|
|
1614
1612
|
const serializeAws_json1_1TagKeyListType = (input, context) => {
|
|
@@ -1633,45 +1631,39 @@ const serializeAws_json1_1TagListType = (input, context) => {
|
|
|
1633
1631
|
};
|
|
1634
1632
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
1635
1633
|
return {
|
|
1636
|
-
...(input.SecretId
|
|
1637
|
-
...(input.Tags
|
|
1638
|
-
input.Tags !== null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1634
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1635
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagListType(input.Tags, context) }),
|
|
1639
1636
|
};
|
|
1640
1637
|
};
|
|
1641
1638
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
1642
1639
|
return {
|
|
1643
|
-
...(input.SecretId
|
|
1644
|
-
...(input.TagKeys
|
|
1645
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }),
|
|
1640
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1641
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1TagKeyListType(input.TagKeys, context) }),
|
|
1646
1642
|
};
|
|
1647
1643
|
};
|
|
1648
1644
|
const serializeAws_json1_1UpdateSecretRequest = (input, context) => {
|
|
1649
1645
|
var _a;
|
|
1650
1646
|
return {
|
|
1651
1647
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1652
|
-
...(input.Description
|
|
1653
|
-
...(input.KmsKeyId
|
|
1654
|
-
...(input.SecretBinary
|
|
1655
|
-
|
|
1656
|
-
...(input.
|
|
1657
|
-
...(input.SecretString !== undefined && input.SecretString !== null && { SecretString: input.SecretString }),
|
|
1648
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1649
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1650
|
+
...(input.SecretBinary != null && { SecretBinary: context.base64Encoder(input.SecretBinary) }),
|
|
1651
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1652
|
+
...(input.SecretString != null && { SecretString: input.SecretString }),
|
|
1658
1653
|
};
|
|
1659
1654
|
};
|
|
1660
1655
|
const serializeAws_json1_1UpdateSecretVersionStageRequest = (input, context) => {
|
|
1661
1656
|
return {
|
|
1662
|
-
...(input.MoveToVersionId
|
|
1663
|
-
|
|
1664
|
-
...(input.
|
|
1665
|
-
|
|
1666
|
-
...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
|
|
1667
|
-
...(input.VersionStage !== undefined && input.VersionStage !== null && { VersionStage: input.VersionStage }),
|
|
1657
|
+
...(input.MoveToVersionId != null && { MoveToVersionId: input.MoveToVersionId }),
|
|
1658
|
+
...(input.RemoveFromVersionId != null && { RemoveFromVersionId: input.RemoveFromVersionId }),
|
|
1659
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1660
|
+
...(input.VersionStage != null && { VersionStage: input.VersionStage }),
|
|
1668
1661
|
};
|
|
1669
1662
|
};
|
|
1670
1663
|
const serializeAws_json1_1ValidateResourcePolicyRequest = (input, context) => {
|
|
1671
1664
|
return {
|
|
1672
|
-
...(input.ResourcePolicy
|
|
1673
|
-
|
|
1674
|
-
...(input.SecretId !== undefined && input.SecretId !== null && { SecretId: input.SecretId }),
|
|
1665
|
+
...(input.ResourcePolicy != null && { ResourcePolicy: input.ResourcePolicy }),
|
|
1666
|
+
...(input.SecretId != null && { SecretId: input.SecretId }),
|
|
1675
1667
|
};
|
|
1676
1668
|
};
|
|
1677
1669
|
const deserializeAws_json1_1CancelRotateSecretResponse = (output, context) => {
|
|
@@ -1685,7 +1677,7 @@ const deserializeAws_json1_1CreateSecretResponse = (output, context) => {
|
|
|
1685
1677
|
return {
|
|
1686
1678
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1687
1679
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1688
|
-
ReplicationStatus: output.ReplicationStatus
|
|
1680
|
+
ReplicationStatus: output.ReplicationStatus != null
|
|
1689
1681
|
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1690
1682
|
: undefined,
|
|
1691
1683
|
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
@@ -1705,7 +1697,7 @@ const deserializeAws_json1_1DeleteResourcePolicyResponse = (output, context) =>
|
|
|
1705
1697
|
const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
|
|
1706
1698
|
return {
|
|
1707
1699
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1708
|
-
DeletionDate: output.DeletionDate
|
|
1700
|
+
DeletionDate: output.DeletionDate != null
|
|
1709
1701
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletionDate)))
|
|
1710
1702
|
: undefined,
|
|
1711
1703
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1714,38 +1706,34 @@ const deserializeAws_json1_1DeleteSecretResponse = (output, context) => {
|
|
|
1714
1706
|
const deserializeAws_json1_1DescribeSecretResponse = (output, context) => {
|
|
1715
1707
|
return {
|
|
1716
1708
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1717
|
-
CreatedDate: output.CreatedDate
|
|
1709
|
+
CreatedDate: output.CreatedDate != null
|
|
1718
1710
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
|
|
1719
1711
|
: undefined,
|
|
1720
|
-
DeletedDate: output.DeletedDate
|
|
1712
|
+
DeletedDate: output.DeletedDate != null
|
|
1721
1713
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletedDate)))
|
|
1722
1714
|
: undefined,
|
|
1723
1715
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1724
1716
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1725
|
-
LastAccessedDate: output.LastAccessedDate
|
|
1717
|
+
LastAccessedDate: output.LastAccessedDate != null
|
|
1726
1718
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
|
|
1727
1719
|
: undefined,
|
|
1728
|
-
LastChangedDate: output.LastChangedDate
|
|
1720
|
+
LastChangedDate: output.LastChangedDate != null
|
|
1729
1721
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastChangedDate)))
|
|
1730
1722
|
: undefined,
|
|
1731
|
-
LastRotatedDate: output.LastRotatedDate
|
|
1723
|
+
LastRotatedDate: output.LastRotatedDate != null
|
|
1732
1724
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
|
|
1733
1725
|
: undefined,
|
|
1734
1726
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1735
1727
|
OwningService: (0, smithy_client_1.expectString)(output.OwningService),
|
|
1736
1728
|
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1737
|
-
ReplicationStatus: output.ReplicationStatus
|
|
1729
|
+
ReplicationStatus: output.ReplicationStatus != null
|
|
1738
1730
|
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1739
1731
|
: undefined,
|
|
1740
1732
|
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1741
1733
|
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1742
|
-
RotationRules: output.RotationRules
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
Tags: output.Tags !== undefined && output.Tags !== null
|
|
1746
|
-
? deserializeAws_json1_1TagListType(output.Tags, context)
|
|
1747
|
-
: undefined,
|
|
1748
|
-
VersionIdsToStages: output.VersionIdsToStages !== undefined && output.VersionIdsToStages !== null
|
|
1734
|
+
RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
|
|
1735
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
|
|
1736
|
+
VersionIdsToStages: output.VersionIdsToStages != null
|
|
1749
1737
|
? deserializeAws_json1_1SecretVersionsToStagesMapType(output.VersionIdsToStages, context)
|
|
1750
1738
|
: undefined,
|
|
1751
1739
|
};
|
|
@@ -1770,16 +1758,14 @@ const deserializeAws_json1_1GetResourcePolicyResponse = (output, context) => {
|
|
|
1770
1758
|
const deserializeAws_json1_1GetSecretValueResponse = (output, context) => {
|
|
1771
1759
|
return {
|
|
1772
1760
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1773
|
-
CreatedDate: output.CreatedDate
|
|
1761
|
+
CreatedDate: output.CreatedDate != null
|
|
1774
1762
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
|
|
1775
1763
|
: undefined,
|
|
1776
1764
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1777
|
-
SecretBinary: output.SecretBinary
|
|
1778
|
-
? context.base64Decoder(output.SecretBinary)
|
|
1779
|
-
: undefined,
|
|
1765
|
+
SecretBinary: output.SecretBinary != null ? context.base64Decoder(output.SecretBinary) : undefined,
|
|
1780
1766
|
SecretString: (0, smithy_client_1.expectString)(output.SecretString),
|
|
1781
1767
|
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1782
|
-
VersionStages: output.VersionStages
|
|
1768
|
+
VersionStages: output.VersionStages != null
|
|
1783
1769
|
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
1784
1770
|
: undefined,
|
|
1785
1771
|
};
|
|
@@ -1823,9 +1809,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
1823
1809
|
const deserializeAws_json1_1ListSecretsResponse = (output, context) => {
|
|
1824
1810
|
return {
|
|
1825
1811
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1826
|
-
SecretList: output.SecretList
|
|
1827
|
-
? deserializeAws_json1_1SecretListType(output.SecretList, context)
|
|
1828
|
-
: undefined,
|
|
1812
|
+
SecretList: output.SecretList != null ? deserializeAws_json1_1SecretListType(output.SecretList, context) : undefined,
|
|
1829
1813
|
};
|
|
1830
1814
|
};
|
|
1831
1815
|
const deserializeAws_json1_1ListSecretVersionIdsResponse = (output, context) => {
|
|
@@ -1833,9 +1817,7 @@ const deserializeAws_json1_1ListSecretVersionIdsResponse = (output, context) =>
|
|
|
1833
1817
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1834
1818
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1835
1819
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1836
|
-
Versions: output.Versions
|
|
1837
|
-
? deserializeAws_json1_1SecretVersionsListType(output.Versions, context)
|
|
1838
|
-
: undefined,
|
|
1820
|
+
Versions: output.Versions != null ? deserializeAws_json1_1SecretVersionsListType(output.Versions, context) : undefined,
|
|
1839
1821
|
};
|
|
1840
1822
|
};
|
|
1841
1823
|
const deserializeAws_json1_1MalformedPolicyDocumentException = (output, context) => {
|
|
@@ -1864,7 +1846,7 @@ const deserializeAws_json1_1PutSecretValueResponse = (output, context) => {
|
|
|
1864
1846
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1865
1847
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1866
1848
|
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1867
|
-
VersionStages: output.VersionStages
|
|
1849
|
+
VersionStages: output.VersionStages != null
|
|
1868
1850
|
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
1869
1851
|
: undefined,
|
|
1870
1852
|
};
|
|
@@ -1872,7 +1854,7 @@ const deserializeAws_json1_1PutSecretValueResponse = (output, context) => {
|
|
|
1872
1854
|
const deserializeAws_json1_1RemoveRegionsFromReplicationResponse = (output, context) => {
|
|
1873
1855
|
return {
|
|
1874
1856
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1875
|
-
ReplicationStatus: output.ReplicationStatus
|
|
1857
|
+
ReplicationStatus: output.ReplicationStatus != null
|
|
1876
1858
|
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1877
1859
|
: undefined,
|
|
1878
1860
|
};
|
|
@@ -1880,7 +1862,7 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationResponse = (output, cont
|
|
|
1880
1862
|
const deserializeAws_json1_1ReplicateSecretToRegionsResponse = (output, context) => {
|
|
1881
1863
|
return {
|
|
1882
1864
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1883
|
-
ReplicationStatus: output.ReplicationStatus
|
|
1865
|
+
ReplicationStatus: output.ReplicationStatus != null
|
|
1884
1866
|
? deserializeAws_json1_1ReplicationStatusListType(output.ReplicationStatus, context)
|
|
1885
1867
|
: undefined,
|
|
1886
1868
|
};
|
|
@@ -1899,7 +1881,7 @@ const deserializeAws_json1_1ReplicationStatusListType = (output, context) => {
|
|
|
1899
1881
|
const deserializeAws_json1_1ReplicationStatusType = (output, context) => {
|
|
1900
1882
|
return {
|
|
1901
1883
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1902
|
-
LastAccessedDate: output.LastAccessedDate
|
|
1884
|
+
LastAccessedDate: output.LastAccessedDate != null
|
|
1903
1885
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
|
|
1904
1886
|
: undefined,
|
|
1905
1887
|
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
@@ -1940,21 +1922,21 @@ const deserializeAws_json1_1RotationRulesType = (output, context) => {
|
|
|
1940
1922
|
const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
1941
1923
|
return {
|
|
1942
1924
|
ARN: (0, smithy_client_1.expectString)(output.ARN),
|
|
1943
|
-
CreatedDate: output.CreatedDate
|
|
1925
|
+
CreatedDate: output.CreatedDate != null
|
|
1944
1926
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
|
|
1945
1927
|
: undefined,
|
|
1946
|
-
DeletedDate: output.DeletedDate
|
|
1928
|
+
DeletedDate: output.DeletedDate != null
|
|
1947
1929
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeletedDate)))
|
|
1948
1930
|
: undefined,
|
|
1949
1931
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1950
1932
|
KmsKeyId: (0, smithy_client_1.expectString)(output.KmsKeyId),
|
|
1951
|
-
LastAccessedDate: output.LastAccessedDate
|
|
1933
|
+
LastAccessedDate: output.LastAccessedDate != null
|
|
1952
1934
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
|
|
1953
1935
|
: undefined,
|
|
1954
|
-
LastChangedDate: output.LastChangedDate
|
|
1936
|
+
LastChangedDate: output.LastChangedDate != null
|
|
1955
1937
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastChangedDate)))
|
|
1956
1938
|
: undefined,
|
|
1957
|
-
LastRotatedDate: output.LastRotatedDate
|
|
1939
|
+
LastRotatedDate: output.LastRotatedDate != null
|
|
1958
1940
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRotatedDate)))
|
|
1959
1941
|
: undefined,
|
|
1960
1942
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -1962,15 +1944,11 @@ const deserializeAws_json1_1SecretListEntry = (output, context) => {
|
|
|
1962
1944
|
PrimaryRegion: (0, smithy_client_1.expectString)(output.PrimaryRegion),
|
|
1963
1945
|
RotationEnabled: (0, smithy_client_1.expectBoolean)(output.RotationEnabled),
|
|
1964
1946
|
RotationLambdaARN: (0, smithy_client_1.expectString)(output.RotationLambdaARN),
|
|
1965
|
-
RotationRules: output.RotationRules
|
|
1966
|
-
|
|
1967
|
-
: undefined,
|
|
1968
|
-
SecretVersionsToStages: output.SecretVersionsToStages !== undefined && output.SecretVersionsToStages !== null
|
|
1947
|
+
RotationRules: output.RotationRules != null ? deserializeAws_json1_1RotationRulesType(output.RotationRules, context) : undefined,
|
|
1948
|
+
SecretVersionsToStages: output.SecretVersionsToStages != null
|
|
1969
1949
|
? deserializeAws_json1_1SecretVersionsToStagesMapType(output.SecretVersionsToStages, context)
|
|
1970
1950
|
: undefined,
|
|
1971
|
-
Tags: output.Tags
|
|
1972
|
-
? deserializeAws_json1_1TagListType(output.Tags, context)
|
|
1973
|
-
: undefined,
|
|
1951
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagListType(output.Tags, context) : undefined,
|
|
1974
1952
|
};
|
|
1975
1953
|
};
|
|
1976
1954
|
const deserializeAws_json1_1SecretListType = (output, context) => {
|
|
@@ -1986,17 +1964,15 @@ const deserializeAws_json1_1SecretListType = (output, context) => {
|
|
|
1986
1964
|
};
|
|
1987
1965
|
const deserializeAws_json1_1SecretVersionsListEntry = (output, context) => {
|
|
1988
1966
|
return {
|
|
1989
|
-
CreatedDate: output.CreatedDate
|
|
1967
|
+
CreatedDate: output.CreatedDate != null
|
|
1990
1968
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedDate)))
|
|
1991
1969
|
: undefined,
|
|
1992
|
-
KmsKeyIds: output.KmsKeyIds
|
|
1993
|
-
|
|
1994
|
-
: undefined,
|
|
1995
|
-
LastAccessedDate: output.LastAccessedDate !== undefined && output.LastAccessedDate !== null
|
|
1970
|
+
KmsKeyIds: output.KmsKeyIds != null ? deserializeAws_json1_1KmsKeyIdListType(output.KmsKeyIds, context) : undefined,
|
|
1971
|
+
LastAccessedDate: output.LastAccessedDate != null
|
|
1996
1972
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastAccessedDate)))
|
|
1997
1973
|
: undefined,
|
|
1998
1974
|
VersionId: (0, smithy_client_1.expectString)(output.VersionId),
|
|
1999
|
-
VersionStages: output.VersionStages
|
|
1975
|
+
VersionStages: output.VersionStages != null
|
|
2000
1976
|
? deserializeAws_json1_1SecretVersionStagesType(output.VersionStages, context)
|
|
2001
1977
|
: undefined,
|
|
2002
1978
|
};
|
|
@@ -2072,7 +2048,7 @@ const deserializeAws_json1_1UpdateSecretVersionStageResponse = (output, context)
|
|
|
2072
2048
|
const deserializeAws_json1_1ValidateResourcePolicyResponse = (output, context) => {
|
|
2073
2049
|
return {
|
|
2074
2050
|
PolicyValidationPassed: (0, smithy_client_1.expectBoolean)(output.PolicyValidationPassed),
|
|
2075
|
-
ValidationErrors: output.ValidationErrors
|
|
2051
|
+
ValidationErrors: output.ValidationErrors != null
|
|
2076
2052
|
? deserializeAws_json1_1ValidationErrorsType(output.ValidationErrors, context)
|
|
2077
2053
|
: undefined,
|
|
2078
2054
|
};
|
|
@@ -2156,5 +2132,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
2156
2132
|
if (data["__type"] !== undefined) {
|
|
2157
2133
|
return sanitizeErrorCode(data["__type"]);
|
|
2158
2134
|
}
|
|
2159
|
-
return "";
|
|
2160
2135
|
};
|