@aws-sdk/client-secrets-manager 3.1167.0 → 3.1169.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.
Files changed (48) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +187 -65
  3. package/dist-es/SecretsManager.js +8 -0
  4. package/dist-es/commands/AssociateCrossAccountReplicaCommand.js +4 -0
  5. package/dist-es/commands/DisassociateCrossAccountReplicaCommand.js +4 -0
  6. package/dist-es/commands/ListResourcePoliciesCommand.js +4 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/enums.js +11 -5
  9. package/dist-es/models/errors.js +40 -40
  10. package/dist-es/pagination/ListResourcePoliciesPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +103 -19
  13. package/dist-types/SecretsManager.d.ts +28 -0
  14. package/dist-types/SecretsManagerClient.d.ts +5 -2
  15. package/dist-types/commands/AssociateCrossAccountReplicaCommand.d.ts +148 -0
  16. package/dist-types/commands/CancelRotateSecretCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateSecretCommand.d.ts +33 -9
  18. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +4 -1
  19. package/dist-types/commands/DeleteSecretCommand.d.ts +6 -0
  20. package/dist-types/commands/DescribeSecretCommand.d.ts +21 -1
  21. package/dist-types/commands/DisassociateCrossAccountReplicaCommand.d.ts +135 -0
  22. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -0
  23. package/dist-types/commands/ListResourcePoliciesCommand.d.ts +138 -0
  24. package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +7 -0
  25. package/dist-types/commands/PutResourcePolicyCommand.d.ts +4 -1
  26. package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +1 -1
  27. package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +1 -1
  28. package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +36 -5
  29. package/dist-types/commands/index.d.ts +3 -0
  30. package/dist-types/models/enums.d.ts +23 -9
  31. package/dist-types/models/errors.d.ts +38 -38
  32. package/dist-types/models/models_0.d.ts +351 -5
  33. package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/schemas/schemas_0.d.ts +12 -0
  36. package/dist-types/ts3.4/SecretsManager.d.ts +58 -0
  37. package/dist-types/ts3.4/SecretsManagerClient.d.ts +18 -0
  38. package/dist-types/ts3.4/commands/AssociateCrossAccountReplicaCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/DisassociateCrossAccountReplicaCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/ListResourcePoliciesCommand.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  42. package/dist-types/ts3.4/models/enums.d.ts +14 -6
  43. package/dist-types/ts3.4/models/errors.d.ts +20 -20
  44. package/dist-types/ts3.4/models/models_0.d.ts +58 -1
  45. package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
  48. package/package.json +1 -1
package/README.md CHANGED
@@ -204,6 +204,13 @@ see LICENSE for more information.
204
204
 
205
205
  ## Client Commands (Operations List)
206
206
 
207
+ <details>
208
+ <summary>
209
+ AssociateCrossAccountReplica
210
+ </summary>
211
+
212
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/AssociateCrossAccountReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/AssociateCrossAccountReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/AssociateCrossAccountReplicaCommandOutput/)
213
+ </details>
207
214
  <details>
208
215
  <summary>
209
216
  BatchGetSecretValue
@@ -248,6 +255,13 @@ DescribeSecret
248
255
  </details>
249
256
  <details>
250
257
  <summary>
258
+ DisassociateCrossAccountReplica
259
+ </summary>
260
+
261
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/DisassociateCrossAccountReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DisassociateCrossAccountReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DisassociateCrossAccountReplicaCommandOutput/)
262
+ </details>
263
+ <details>
264
+ <summary>
251
265
  GetRandomPassword
252
266
  </summary>
253
267
 
@@ -269,6 +283,13 @@ GetSecretValue
269
283
  </details>
270
284
  <details>
271
285
  <summary>
286
+ ListResourcePolicies
287
+ </summary>
288
+
289
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/ListResourcePoliciesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListResourcePoliciesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListResourcePoliciesCommandOutput/)
290
+ </details>
291
+ <details>
292
+ <summary>
272
293
  ListSecrets
273
294
  </summary>
274
295
 
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1166.0";
72
+ var version = "3.1168.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -150,21 +150,6 @@ class SecretsManagerServiceException extends ServiceException {
150
150
  }
151
151
  }
152
152
 
153
- class DecryptionFailure extends SecretsManagerServiceException {
154
- static shapeId = "com.amazonaws.secretsmanager#DecryptionFailure";
155
- name = "DecryptionFailure";
156
- $fault = "client";
157
- Message;
158
- constructor(opts) {
159
- super({
160
- name: "DecryptionFailure",
161
- $fault: "client",
162
- ...opts,
163
- });
164
- Object.setPrototypeOf(this, DecryptionFailure.prototype);
165
- this.Message = opts.Message;
166
- }
167
- }
168
153
  class InternalServiceError extends SecretsManagerServiceException {
169
154
  static shapeId = "com.amazonaws.secretsmanager#InternalServiceError";
170
155
  name = "InternalServiceError";
@@ -180,21 +165,6 @@ class InternalServiceError extends SecretsManagerServiceException {
180
165
  this.Message = opts.Message;
181
166
  }
182
167
  }
183
- class InvalidNextTokenException extends SecretsManagerServiceException {
184
- static shapeId = "com.amazonaws.secretsmanager#InvalidNextTokenException";
185
- name = "InvalidNextTokenException";
186
- $fault = "client";
187
- Message;
188
- constructor(opts) {
189
- super({
190
- name: "InvalidNextTokenException",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
195
- this.Message = opts.Message;
196
- }
197
- }
198
168
  class InvalidParameterException extends SecretsManagerServiceException {
199
169
  static shapeId = "com.amazonaws.secretsmanager#InvalidParameterException";
200
170
  name = "InvalidParameterException";
@@ -225,6 +195,21 @@ class InvalidRequestException extends SecretsManagerServiceException {
225
195
  this.Message = opts.Message;
226
196
  }
227
197
  }
198
+ class LimitExceededException extends SecretsManagerServiceException {
199
+ static shapeId = "com.amazonaws.secretsmanager#LimitExceededException";
200
+ name = "LimitExceededException";
201
+ $fault = "client";
202
+ Message;
203
+ constructor(opts) {
204
+ super({
205
+ name: "LimitExceededException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ }
228
213
  class ResourceNotFoundException extends SecretsManagerServiceException {
229
214
  static shapeId = "com.amazonaws.secretsmanager#ResourceNotFoundException";
230
215
  name = "ResourceNotFoundException";
@@ -240,33 +225,48 @@ class ResourceNotFoundException extends SecretsManagerServiceException {
240
225
  this.Message = opts.Message;
241
226
  }
242
227
  }
243
- class EncryptionFailure extends SecretsManagerServiceException {
244
- static shapeId = "com.amazonaws.secretsmanager#EncryptionFailure";
245
- name = "EncryptionFailure";
228
+ class DecryptionFailure extends SecretsManagerServiceException {
229
+ static shapeId = "com.amazonaws.secretsmanager#DecryptionFailure";
230
+ name = "DecryptionFailure";
246
231
  $fault = "client";
247
232
  Message;
248
233
  constructor(opts) {
249
234
  super({
250
- name: "EncryptionFailure",
235
+ name: "DecryptionFailure",
251
236
  $fault: "client",
252
237
  ...opts,
253
238
  });
254
- Object.setPrototypeOf(this, EncryptionFailure.prototype);
239
+ Object.setPrototypeOf(this, DecryptionFailure.prototype);
255
240
  this.Message = opts.Message;
256
241
  }
257
242
  }
258
- class LimitExceededException extends SecretsManagerServiceException {
259
- static shapeId = "com.amazonaws.secretsmanager#LimitExceededException";
260
- name = "LimitExceededException";
243
+ class InvalidNextTokenException extends SecretsManagerServiceException {
244
+ static shapeId = "com.amazonaws.secretsmanager#InvalidNextTokenException";
245
+ name = "InvalidNextTokenException";
261
246
  $fault = "client";
262
247
  Message;
263
248
  constructor(opts) {
264
249
  super({
265
- name: "LimitExceededException",
250
+ name: "InvalidNextTokenException",
266
251
  $fault: "client",
267
252
  ...opts,
268
253
  });
269
- Object.setPrototypeOf(this, LimitExceededException.prototype);
254
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
255
+ this.Message = opts.Message;
256
+ }
257
+ }
258
+ class EncryptionFailure extends SecretsManagerServiceException {
259
+ static shapeId = "com.amazonaws.secretsmanager#EncryptionFailure";
260
+ name = "EncryptionFailure";
261
+ $fault = "client";
262
+ Message;
263
+ constructor(opts) {
264
+ super({
265
+ name: "EncryptionFailure",
266
+ $fault: "client",
267
+ ...opts,
268
+ });
269
+ Object.setPrototypeOf(this, EncryptionFailure.prototype);
270
270
  this.Message = opts.Message;
271
271
  }
272
272
  }
@@ -332,6 +332,9 @@ class PublicPolicyException extends SecretsManagerServiceException {
332
332
  }
333
333
 
334
334
  const _AAD = "AutomaticallyAfterDays";
335
+ const _ACAR = "AssociateCrossAccountReplica";
336
+ const _ACARR = "AssociateCrossAccountReplicaRequest";
337
+ const _ACARRs = "AssociateCrossAccountReplicaResponse";
335
338
  const _APIELT = "APIErrorListType";
336
339
  const _APIET = "APIErrorType";
337
340
  const _ARN = "ARN";
@@ -341,6 +344,13 @@ const _BGSV = "BatchGetSecretValue";
341
344
  const _BGSVR = "BatchGetSecretValueRequest";
342
345
  const _BGSVRa = "BatchGetSecretValueResponse";
343
346
  const _BPP = "BlockPublicPolicy";
347
+ const _CAP = "CrossAccountPrimary";
348
+ const _CAPARN = "CrossAccountPrimaryARN";
349
+ const _CAPT = "CrossAccountPrimaryType";
350
+ const _CAR = "CrossAccountReplicas";
351
+ const _CARARN = "CrossAccountReplicaARN";
352
+ const _CARE = "CrossAccountReplicaEntry";
353
+ const _CARLT = "CrossAccountReplicaListType";
344
354
  const _CD = "CreatedDate";
345
355
  const _CN = "CheckName";
346
356
  const _CRS = "CancelRotateSecret";
@@ -351,6 +361,9 @@ const _CS = "CreateSecret";
351
361
  const _CSR = "CreateSecretRequest";
352
362
  const _CSRr = "CreateSecretResponse";
353
363
  const _D = "Description";
364
+ const _DCAR = "DisassociateCrossAccountReplica";
365
+ const _DCARR = "DisassociateCrossAccountReplicaRequest";
366
+ const _DCARRi = "DisassociateCrossAccountReplicaResponse";
354
367
  const _DD = "DeletionDate";
355
368
  const _DDe = "DeletedDate";
356
369
  const _DF = "DecryptionFailure";
@@ -405,6 +418,9 @@ const _LAD = "LastAccessedDate";
405
418
  const _LCD = "LastChangedDate";
406
419
  const _LEE = "LimitExceededException";
407
420
  const _LRD = "LastRotatedDate";
421
+ const _LRP = "ListResourcePolicies";
422
+ const _LRPR = "ListResourcePoliciesRequest";
423
+ const _LRPRi = "ListResourcePoliciesResponse";
408
424
  const _LS = "ListSecrets";
409
425
  const _LSR = "ListSecretsRequest";
410
426
  const _LSRi = "ListSecretsResponse";
@@ -420,12 +436,14 @@ const _NRD = "NextRotationDate";
420
436
  const _NT = "NextToken";
421
437
  const _OS = "OwningService";
422
438
  const _PL = "PasswordLength";
439
+ const _PN = "PolicyName";
423
440
  const _PNME = "PreconditionNotMetException";
424
441
  const _PPE = "PublicPolicyException";
425
442
  const _PR = "PrimaryRegion";
426
443
  const _PRP = "PutResourcePolicy";
427
444
  const _PRPR = "PutResourcePolicyRequest";
428
445
  const _PRPRu = "PutResourcePolicyResponse";
446
+ const _PSARN = "PrimarySecretARN";
429
447
  const _PSV = "PutSecretValue";
430
448
  const _PSVR = "PutSecretValueRequest";
431
449
  const _PSVRu = "PutSecretValueResponse";
@@ -439,16 +457,22 @@ const _RI = "RotateImmediately";
439
457
  const _RLARN = "RotationLambdaARN";
440
458
  const _RNFE = "ResourceNotFoundException";
441
459
  const _RP = "RandomPassword";
460
+ const _RPS = "ResourcePolicySummary";
461
+ const _RPSLT = "ResourcePolicySummaryListType";
442
462
  const _RPT = "RandomPasswordType";
443
463
  const _RPe = "ResourcePolicy";
444
- const _RR = "RotationRules";
464
+ const _RPes = "ResourcePolicies";
465
+ const _RR = "ReplicaRestriction";
466
+ const _RRARN = "ReplicationRoleARN";
445
467
  const _RRFR = "RemoveRegionsFromReplication";
446
468
  const _RRFRR = "RemoveRegionsFromReplicationRequest";
447
469
  const _RRFRRe = "RemoveRegionsFromReplicationResponse";
448
470
  const _RRR = "RemoveReplicaRegions";
449
471
  const _RRT = "ReplicaRegionType";
450
472
  const _RRTo = "RotationRulesType";
473
+ const _RRo = "RotationRules";
451
474
  const _RS = "ReplicationStatus";
475
+ const _RSARN = "ReplicaSecretARN";
452
476
  const _RSLT = "ReplicationStatusListType";
453
477
  const _RSR = "RestoreSecretRequest";
454
478
  const _RSRe = "RestoreSecretResponse";
@@ -609,6 +633,16 @@ var APIErrorType$ = [3, n0, _APIET,
609
633
  [_SI, _EC, _M],
610
634
  [0, 0, 0]
611
635
  ];
636
+ var AssociateCrossAccountReplicaRequest$ = [3, n0, _ACARR,
637
+ 0,
638
+ [_SI, _CARARN, _RR, _RRARN],
639
+ [0, 0, 0, 0], 2
640
+ ];
641
+ var AssociateCrossAccountReplicaResponse$ = [3, n0, _ACARRs,
642
+ 0,
643
+ [_ARN, _CARARN, _RS],
644
+ [0, 0, 0]
645
+ ];
612
646
  var BatchGetSecretValueRequest$ = [3, n0, _BGSVR,
613
647
  0,
614
648
  [_SIL, _F, _MR, _NT],
@@ -631,23 +665,33 @@ var CancelRotateSecretResponse$ = [3, n0, _CRSRa,
631
665
  ];
632
666
  var CreateSecretRequest$ = [3, n0, _CSR,
633
667
  0,
634
- [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS, _Ty],
635
- [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], () => TagListType, () => AddReplicaRegionListType, 2, 0], 1
668
+ [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS, _Ty, _CAPARN],
669
+ [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], () => TagListType, () => AddReplicaRegionListType, 2, 0, 0], 1
636
670
  ];
637
671
  var CreateSecretResponse$ = [3, n0, _CSRr,
638
672
  0,
639
673
  [_ARN, _N, _VI, _RS],
640
674
  [0, 0, 0, () => ReplicationStatusListType]
641
675
  ];
676
+ var CrossAccountPrimaryType$ = [3, n0, _CAPT,
677
+ 0,
678
+ [_PSARN, _RS, _SM],
679
+ [0, 0, 0]
680
+ ];
681
+ var CrossAccountReplicaEntry$ = [3, n0, _CARE,
682
+ 0,
683
+ [_RSARN, _RRARN, _RS, _SM],
684
+ [0, 0, 0, 0]
685
+ ];
642
686
  var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
643
687
  0,
644
- [_SI],
645
- [0], 1
688
+ [_SI, _PN],
689
+ [0, 0], 1
646
690
  ];
647
691
  var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
648
692
  0,
649
- [_ARN, _N],
650
- [0, 0]
693
+ [_ARN, _N, _PN],
694
+ [0, 0, 0]
651
695
  ];
652
696
  var DeleteSecretRequest$ = [3, n0, _DSR,
653
697
  0,
@@ -666,8 +710,18 @@ var DescribeSecretRequest$ = [3, n0, _DSRes,
666
710
  ];
667
711
  var DescribeSecretResponse$ = [3, n0, _DSResc,
668
712
  0,
669
- [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS],
670
- [0, 0, 0, 0, 0, 2, 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 4, 4, 4, 4, 4, () => TagListType, [2, n0, _SVTSMT, 0, 0, 64 | 0], 0, 4, 0, () => ReplicationStatusListType]
713
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RRo, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS, _CAP, _CAR],
714
+ [0, 0, 0, 0, 0, 2, 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 4, 4, 4, 4, 4, () => TagListType, [2, n0, _SVTSMT, 0, 0, 64 | 0], 0, 4, 0, () => ReplicationStatusListType, () => CrossAccountPrimaryType$, () => CrossAccountReplicaListType]
715
+ ];
716
+ var DisassociateCrossAccountReplicaRequest$ = [3, n0, _DCARR,
717
+ 0,
718
+ [_SI, _CARARN],
719
+ [0, 0], 2
720
+ ];
721
+ var DisassociateCrossAccountReplicaResponse$ = [3, n0, _DCARRi,
722
+ 0,
723
+ [_ARN, _CARARN],
724
+ [0, 0]
671
725
  ];
672
726
  var ExternalSecretRotationMetadataItem$ = [3, n0, _ESRMI,
673
727
  0,
@@ -691,13 +745,13 @@ var GetRandomPasswordResponse$ = [3, n0, _GRPRe,
691
745
  ];
692
746
  var GetResourcePolicyRequest$ = [3, n0, _GRPRet,
693
747
  0,
694
- [_SI],
695
- [0], 1
748
+ [_SI, _PN],
749
+ [0, 0], 1
696
750
  ];
697
751
  var GetResourcePolicyResponse$ = [3, n0, _GRPRete,
698
752
  0,
699
- [_ARN, _N, _RPe],
700
- [0, 0, 0]
753
+ [_ARN, _N, _RPe, _PN],
754
+ [0, 0, 0, 0]
701
755
  ];
702
756
  var GetSecretValueRequest$ = [3, n0, _GSVR,
703
757
  0,
@@ -709,6 +763,16 @@ var GetSecretValueResponse$ = [3, n0, _GSVRe,
709
763
  [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
710
764
  [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4]
711
765
  ];
766
+ var ListResourcePoliciesRequest$ = [3, n0, _LRPR,
767
+ 0,
768
+ [_SI, _MR, _NT],
769
+ [0, 1, 0], 1
770
+ ];
771
+ var ListResourcePoliciesResponse$ = [3, n0, _LRPRi,
772
+ 0,
773
+ [_RPes, _NT],
774
+ [() => ResourcePolicySummaryListType, 0], 1
775
+ ];
712
776
  var ListSecretsRequest$ = [3, n0, _LSR,
713
777
  0,
714
778
  [_IPD, _MR, _NT, _F, _SO, _SBo],
@@ -731,13 +795,13 @@ var ListSecretVersionIdsResponse$ = [3, n0, _LSVIRi,
731
795
  ];
732
796
  var PutResourcePolicyRequest$ = [3, n0, _PRPR,
733
797
  0,
734
- [_SI, _RPe, _BPP],
735
- [0, 0, 2], 2
798
+ [_SI, _RPe, _PN, _BPP],
799
+ [0, 0, 0, 2], 2
736
800
  ];
737
801
  var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
738
802
  0,
739
- [_ARN, _N],
740
- [0, 0]
803
+ [_ARN, _N, _PN],
804
+ [0, 0, 0]
741
805
  ];
742
806
  var PutSecretValueRequest$ = [3, n0, _PSVR,
743
807
  0,
@@ -779,6 +843,11 @@ var ReplicationStatusType$ = [3, n0, _RST,
779
843
  [_R, _KKI, _S, _SM, _LAD],
780
844
  [0, 0, 0, 0, 4]
781
845
  ];
846
+ var ResourcePolicySummary$ = [3, n0, _RPS,
847
+ 0,
848
+ [_PN],
849
+ [0]
850
+ ];
782
851
  var RestoreSecretRequest$ = [3, n0, _RSR,
783
852
  0,
784
853
  [_SI],
@@ -791,7 +860,7 @@ var RestoreSecretResponse$ = [3, n0, _RSRe,
791
860
  ];
792
861
  var RotateSecretRequest$ = [3, n0, _RSRo,
793
862
  0,
794
- [_SI, _CRT, _RLARN, _RR, _ESRM, _ESRRA, _RI],
863
+ [_SI, _CRT, _RLARN, _RRo, _ESRM, _ESRRA, _RI],
795
864
  [0, [0, 4], 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 2], 1
796
865
  ];
797
866
  var RotateSecretResponse$ = [3, n0, _RSRot,
@@ -806,7 +875,7 @@ var RotationRulesType$ = [3, n0, _RRTo,
806
875
  ];
807
876
  var SecretListEntry$ = [3, n0, _SLE,
808
877
  0,
809
- [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
878
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RRo, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
810
879
  [0, 0, 0, 0, 0, 2, 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 4, 4, 4, 4, 4, () => TagListType, [2, n0, _SVTSMT, 0, 0, 64 | 0], 0, 4, 0]
811
880
  ];
812
881
  var SecretValueEntry$ = [3, n0, _SVE,
@@ -886,6 +955,9 @@ var AddReplicaRegionListType = [1, n0, _ARRLT,
886
955
  var APIErrorListType = [1, n0, _APIELT,
887
956
  0, () => APIErrorType$
888
957
  ];
958
+ var CrossAccountReplicaListType = [1, n0, _CARLT,
959
+ 0, () => CrossAccountReplicaEntry$
960
+ ];
889
961
  var ExternalSecretRotationMetadataType = [1, n0, _ESRMT,
890
962
  0, () => ExternalSecretRotationMetadataItem$
891
963
  ];
@@ -895,6 +967,9 @@ var FiltersListType = [1, n0, _FLT,
895
967
  var ReplicationStatusListType = [1, n0, _RSLT,
896
968
  0, () => ReplicationStatusType$
897
969
  ];
970
+ var ResourcePolicySummaryListType = [1, n0, _RPSLT,
971
+ 0, () => ResourcePolicySummary$
972
+ ];
898
973
  var SecretListType = [1, n0, _SLT,
899
974
  0, () => SecretListEntry$
900
975
  ];
@@ -911,6 +986,9 @@ var TagListType = [1, n0, _TLT,
911
986
  var ValidationErrorsType = [1, n0, _VET,
912
987
  0, () => ValidationErrorsEntry$
913
988
  ];
989
+ var AssociateCrossAccountReplica$ = [9, n0, _ACAR,
990
+ 0, () => AssociateCrossAccountReplicaRequest$, () => AssociateCrossAccountReplicaResponse$
991
+ ];
914
992
  var BatchGetSecretValue$ = [9, n0, _BGSV,
915
993
  0, () => BatchGetSecretValueRequest$, () => BatchGetSecretValueResponse$
916
994
  ];
@@ -929,6 +1007,9 @@ var DeleteSecret$ = [9, n0, _DS,
929
1007
  var DescribeSecret$ = [9, n0, _DSe,
930
1008
  0, () => DescribeSecretRequest$, () => DescribeSecretResponse$
931
1009
  ];
1010
+ var DisassociateCrossAccountReplica$ = [9, n0, _DCAR,
1011
+ 0, () => DisassociateCrossAccountReplicaRequest$, () => DisassociateCrossAccountReplicaResponse$
1012
+ ];
932
1013
  var GetRandomPassword$ = [9, n0, _GRP,
933
1014
  0, () => GetRandomPasswordRequest$, () => GetRandomPasswordResponse$
934
1015
  ];
@@ -938,6 +1019,9 @@ var GetResourcePolicy$ = [9, n0, _GRPe,
938
1019
  var GetSecretValue$ = [9, n0, _GSV,
939
1020
  0, () => GetSecretValueRequest$, () => GetSecretValueResponse$
940
1021
  ];
1022
+ var ListResourcePolicies$ = [9, n0, _LRP,
1023
+ 0, () => ListResourcePoliciesRequest$, () => ListResourcePoliciesResponse$
1024
+ ];
941
1025
  var ListSecrets$ = [9, n0, _LS,
942
1026
  0, () => ListSecretsRequest$, () => ListSecretsResponse$
943
1027
  ];
@@ -1132,6 +1216,9 @@ const command = makeBuilder(commonParams, "secretsmanager", "SecretsManagerClien
1132
1216
  const _ep0 = {};
1133
1217
  const _mw0 = (Command, cs, config, o) => [];
1134
1218
 
1219
+ class AssociateCrossAccountReplicaCommand extends command(_ep0, _mw0, "AssociateCrossAccountReplica", AssociateCrossAccountReplica$) {
1220
+ }
1221
+
1135
1222
  class BatchGetSecretValueCommand extends command(_ep0, _mw0, "BatchGetSecretValue", BatchGetSecretValue$) {
1136
1223
  }
1137
1224
 
@@ -1150,6 +1237,9 @@ class DeleteSecretCommand extends command(_ep0, _mw0, "DeleteSecret", DeleteSecr
1150
1237
  class DescribeSecretCommand extends command(_ep0, _mw0, "DescribeSecret", DescribeSecret$) {
1151
1238
  }
1152
1239
 
1240
+ class DisassociateCrossAccountReplicaCommand extends command(_ep0, _mw0, "DisassociateCrossAccountReplica", DisassociateCrossAccountReplica$) {
1241
+ }
1242
+
1153
1243
  class GetRandomPasswordCommand extends command(_ep0, _mw0, "GetRandomPassword", GetRandomPassword$) {
1154
1244
  }
1155
1245
 
@@ -1159,6 +1249,9 @@ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy",
1159
1249
  class GetSecretValueCommand extends command(_ep0, _mw0, "GetSecretValue", GetSecretValue$) {
1160
1250
  }
1161
1251
 
1252
+ class ListResourcePoliciesCommand extends command(_ep0, _mw0, "ListResourcePolicies", ListResourcePolicies$) {
1253
+ }
1254
+
1162
1255
  class ListSecretsCommand extends command(_ep0, _mw0, "ListSecrets", ListSecrets$) {
1163
1256
  }
1164
1257
 
@@ -1203,20 +1296,25 @@ class ValidateResourcePolicyCommand extends command(_ep0, _mw0, "ValidateResourc
1203
1296
 
1204
1297
  const paginateBatchGetSecretValue = createPaginator(SecretsManagerClient, BatchGetSecretValueCommand, "NextToken", "NextToken", "MaxResults");
1205
1298
 
1299
+ const paginateListResourcePolicies = createPaginator(SecretsManagerClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
1300
+
1206
1301
  const paginateListSecrets = createPaginator(SecretsManagerClient, ListSecretsCommand, "NextToken", "NextToken", "MaxResults");
1207
1302
 
1208
1303
  const paginateListSecretVersionIds = createPaginator(SecretsManagerClient, ListSecretVersionIdsCommand, "NextToken", "NextToken", "MaxResults");
1209
1304
 
1210
1305
  const commands = {
1306
+ AssociateCrossAccountReplicaCommand,
1211
1307
  BatchGetSecretValueCommand,
1212
1308
  CancelRotateSecretCommand,
1213
1309
  CreateSecretCommand,
1214
1310
  DeleteResourcePolicyCommand,
1215
1311
  DeleteSecretCommand,
1216
1312
  DescribeSecretCommand,
1313
+ DisassociateCrossAccountReplicaCommand,
1217
1314
  GetRandomPasswordCommand,
1218
1315
  GetResourcePolicyCommand,
1219
1316
  GetSecretValueCommand,
1317
+ ListResourcePoliciesCommand,
1220
1318
  ListSecretsCommand,
1221
1319
  ListSecretVersionIdsCommand,
1222
1320
  PutResourcePolicyCommand,
@@ -1234,6 +1332,7 @@ const commands = {
1234
1332
  };
1235
1333
  const paginators = {
1236
1334
  paginateBatchGetSecretValue,
1335
+ paginateListResourcePolicies,
1237
1336
  paginateListSecrets,
1238
1337
  paginateListSecretVersionIds,
1239
1338
  };
@@ -1241,6 +1340,17 @@ class SecretsManager extends SecretsManagerClient {
1241
1340
  }
1242
1341
  createAggregatedClient(commands, SecretsManager, { paginators });
1243
1342
 
1343
+ const ReplicaRestrictionType = {
1344
+ NoRestriction: "NoRestriction",
1345
+ SameOrg: "SameOrg",
1346
+ };
1347
+ const StatusType = {
1348
+ Detached: "Detached",
1349
+ Failed: "Failed",
1350
+ InProgress: "InProgress",
1351
+ InSync: "InSync",
1352
+ Pending: "Pending",
1353
+ };
1244
1354
  const FilterNameStringType = {
1245
1355
  all: "all",
1246
1356
  description: "description",
@@ -1250,11 +1360,6 @@ const FilterNameStringType = {
1250
1360
  tag_key: "tag-key",
1251
1361
  tag_value: "tag-value",
1252
1362
  };
1253
- const StatusType = {
1254
- Failed: "Failed",
1255
- InProgress: "InProgress",
1256
- InSync: "InSync",
1257
- };
1258
1363
  const SortByType = {
1259
1364
  created_date: "created-date",
1260
1365
  last_accessed_date: "last-accessed-date",
@@ -1267,6 +1372,10 @@ const SortOrderType = {
1267
1372
  };
1268
1373
 
1269
1374
  exports.APIErrorType$ = APIErrorType$;
1375
+ exports.AssociateCrossAccountReplica$ = AssociateCrossAccountReplica$;
1376
+ exports.AssociateCrossAccountReplicaCommand = AssociateCrossAccountReplicaCommand;
1377
+ exports.AssociateCrossAccountReplicaRequest$ = AssociateCrossAccountReplicaRequest$;
1378
+ exports.AssociateCrossAccountReplicaResponse$ = AssociateCrossAccountReplicaResponse$;
1270
1379
  exports.BatchGetSecretValue$ = BatchGetSecretValue$;
1271
1380
  exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
1272
1381
  exports.BatchGetSecretValueRequest$ = BatchGetSecretValueRequest$;
@@ -1279,6 +1388,8 @@ exports.CreateSecret$ = CreateSecret$;
1279
1388
  exports.CreateSecretCommand = CreateSecretCommand;
1280
1389
  exports.CreateSecretRequest$ = CreateSecretRequest$;
1281
1390
  exports.CreateSecretResponse$ = CreateSecretResponse$;
1391
+ exports.CrossAccountPrimaryType$ = CrossAccountPrimaryType$;
1392
+ exports.CrossAccountReplicaEntry$ = CrossAccountReplicaEntry$;
1282
1393
  exports.DecryptionFailure = DecryptionFailure;
1283
1394
  exports.DecryptionFailure$ = DecryptionFailure$;
1284
1395
  exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
@@ -1293,6 +1404,10 @@ exports.DescribeSecret$ = DescribeSecret$;
1293
1404
  exports.DescribeSecretCommand = DescribeSecretCommand;
1294
1405
  exports.DescribeSecretRequest$ = DescribeSecretRequest$;
1295
1406
  exports.DescribeSecretResponse$ = DescribeSecretResponse$;
1407
+ exports.DisassociateCrossAccountReplica$ = DisassociateCrossAccountReplica$;
1408
+ exports.DisassociateCrossAccountReplicaCommand = DisassociateCrossAccountReplicaCommand;
1409
+ exports.DisassociateCrossAccountReplicaRequest$ = DisassociateCrossAccountReplicaRequest$;
1410
+ exports.DisassociateCrossAccountReplicaResponse$ = DisassociateCrossAccountReplicaResponse$;
1296
1411
  exports.EncryptionFailure = EncryptionFailure;
1297
1412
  exports.EncryptionFailure$ = EncryptionFailure$;
1298
1413
  exports.ExternalSecretRotationMetadataItem$ = ExternalSecretRotationMetadataItem$;
@@ -1320,6 +1435,10 @@ exports.InvalidRequestException = InvalidRequestException;
1320
1435
  exports.InvalidRequestException$ = InvalidRequestException$;
1321
1436
  exports.LimitExceededException = LimitExceededException;
1322
1437
  exports.LimitExceededException$ = LimitExceededException$;
1438
+ exports.ListResourcePolicies$ = ListResourcePolicies$;
1439
+ exports.ListResourcePoliciesCommand = ListResourcePoliciesCommand;
1440
+ exports.ListResourcePoliciesRequest$ = ListResourcePoliciesRequest$;
1441
+ exports.ListResourcePoliciesResponse$ = ListResourcePoliciesResponse$;
1323
1442
  exports.ListSecretVersionIds$ = ListSecretVersionIds$;
1324
1443
  exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
1325
1444
  exports.ListSecretVersionIdsRequest$ = ListSecretVersionIdsRequest$;
@@ -1347,6 +1466,7 @@ exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationComman
1347
1466
  exports.RemoveRegionsFromReplicationRequest$ = RemoveRegionsFromReplicationRequest$;
1348
1467
  exports.RemoveRegionsFromReplicationResponse$ = RemoveRegionsFromReplicationResponse$;
1349
1468
  exports.ReplicaRegionType$ = ReplicaRegionType$;
1469
+ exports.ReplicaRestrictionType = ReplicaRestrictionType;
1350
1470
  exports.ReplicateSecretToRegions$ = ReplicateSecretToRegions$;
1351
1471
  exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
1352
1472
  exports.ReplicateSecretToRegionsRequest$ = ReplicateSecretToRegionsRequest$;
@@ -1356,6 +1476,7 @@ exports.ResourceExistsException = ResourceExistsException;
1356
1476
  exports.ResourceExistsException$ = ResourceExistsException$;
1357
1477
  exports.ResourceNotFoundException = ResourceNotFoundException;
1358
1478
  exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1479
+ exports.ResourcePolicySummary$ = ResourcePolicySummary$;
1359
1480
  exports.RestoreSecret$ = RestoreSecret$;
1360
1481
  exports.RestoreSecretCommand = RestoreSecretCommand;
1361
1482
  exports.RestoreSecretRequest$ = RestoreSecretRequest$;
@@ -1401,5 +1522,6 @@ exports.ValidateResourcePolicyResponse$ = ValidateResourcePolicyResponse$;
1401
1522
  exports.ValidationErrorsEntry$ = ValidationErrorsEntry$;
1402
1523
  exports.errorTypeRegistries = errorTypeRegistries;
1403
1524
  exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;
1525
+ exports.paginateListResourcePolicies = paginateListResourcePolicies;
1404
1526
  exports.paginateListSecretVersionIds = paginateListSecretVersionIds;
1405
1527
  exports.paginateListSecrets = paginateListSecrets;
@@ -1,13 +1,16 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
+ import { AssociateCrossAccountReplicaCommand, } from "./commands/AssociateCrossAccountReplicaCommand";
2
3
  import { BatchGetSecretValueCommand, } from "./commands/BatchGetSecretValueCommand";
3
4
  import { CancelRotateSecretCommand, } from "./commands/CancelRotateSecretCommand";
4
5
  import { CreateSecretCommand, } from "./commands/CreateSecretCommand";
5
6
  import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
6
7
  import { DeleteSecretCommand, } from "./commands/DeleteSecretCommand";
7
8
  import { DescribeSecretCommand, } from "./commands/DescribeSecretCommand";
9
+ import { DisassociateCrossAccountReplicaCommand, } from "./commands/DisassociateCrossAccountReplicaCommand";
8
10
  import { GetRandomPasswordCommand, } from "./commands/GetRandomPasswordCommand";
9
11
  import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
10
12
  import { GetSecretValueCommand, } from "./commands/GetSecretValueCommand";
13
+ import { ListResourcePoliciesCommand, } from "./commands/ListResourcePoliciesCommand";
11
14
  import { ListSecretsCommand, } from "./commands/ListSecretsCommand";
12
15
  import { ListSecretVersionIdsCommand, } from "./commands/ListSecretVersionIdsCommand";
13
16
  import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
@@ -23,19 +26,23 @@ import { UpdateSecretCommand, } from "./commands/UpdateSecretCommand";
23
26
  import { UpdateSecretVersionStageCommand, } from "./commands/UpdateSecretVersionStageCommand";
24
27
  import { ValidateResourcePolicyCommand, } from "./commands/ValidateResourcePolicyCommand";
25
28
  import { paginateBatchGetSecretValue } from "./pagination/BatchGetSecretValuePaginator";
29
+ import { paginateListResourcePolicies } from "./pagination/ListResourcePoliciesPaginator";
26
30
  import { paginateListSecrets } from "./pagination/ListSecretsPaginator";
27
31
  import { paginateListSecretVersionIds } from "./pagination/ListSecretVersionIdsPaginator";
28
32
  import { SecretsManagerClient } from "./SecretsManagerClient";
29
33
  const commands = {
34
+ AssociateCrossAccountReplicaCommand,
30
35
  BatchGetSecretValueCommand,
31
36
  CancelRotateSecretCommand,
32
37
  CreateSecretCommand,
33
38
  DeleteResourcePolicyCommand,
34
39
  DeleteSecretCommand,
35
40
  DescribeSecretCommand,
41
+ DisassociateCrossAccountReplicaCommand,
36
42
  GetRandomPasswordCommand,
37
43
  GetResourcePolicyCommand,
38
44
  GetSecretValueCommand,
45
+ ListResourcePoliciesCommand,
39
46
  ListSecretsCommand,
40
47
  ListSecretVersionIdsCommand,
41
48
  PutResourcePolicyCommand,
@@ -53,6 +60,7 @@ const commands = {
53
60
  };
54
61
  const paginators = {
55
62
  paginateBatchGetSecretValue,
63
+ paginateListResourcePolicies,
56
64
  paginateListSecrets,
57
65
  paginateListSecretVersionIds,
58
66
  };
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { AssociateCrossAccountReplica$ } from "../schemas/schemas_0";
3
+ export class AssociateCrossAccountReplicaCommand extends command(_ep0, _mw0, "AssociateCrossAccountReplica", AssociateCrossAccountReplica$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DisassociateCrossAccountReplica$ } from "../schemas/schemas_0";
3
+ export class DisassociateCrossAccountReplicaCommand extends command(_ep0, _mw0, "DisassociateCrossAccountReplica", DisassociateCrossAccountReplica$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListResourcePolicies$ } from "../schemas/schemas_0";
3
+ export class ListResourcePoliciesCommand extends command(_ep0, _mw0, "ListResourcePolicies", ListResourcePolicies$) {
4
+ }