@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
@@ -1,12 +1,15 @@
1
+ export * from "./AssociateCrossAccountReplicaCommand";
1
2
  export * from "./BatchGetSecretValueCommand";
2
3
  export * from "./CancelRotateSecretCommand";
3
4
  export * from "./CreateSecretCommand";
4
5
  export * from "./DeleteResourcePolicyCommand";
5
6
  export * from "./DeleteSecretCommand";
6
7
  export * from "./DescribeSecretCommand";
8
+ export * from "./DisassociateCrossAccountReplicaCommand";
7
9
  export * from "./GetRandomPasswordCommand";
8
10
  export * from "./GetResourcePolicyCommand";
9
11
  export * from "./GetSecretValueCommand";
12
+ export * from "./ListResourcePoliciesCommand";
10
13
  export * from "./ListSecretVersionIdsCommand";
11
14
  export * from "./ListSecretsCommand";
12
15
  export * from "./PutResourcePolicyCommand";
@@ -1,3 +1,14 @@
1
+ export const ReplicaRestrictionType = {
2
+ NoRestriction: "NoRestriction",
3
+ SameOrg: "SameOrg",
4
+ };
5
+ export const StatusType = {
6
+ Detached: "Detached",
7
+ Failed: "Failed",
8
+ InProgress: "InProgress",
9
+ InSync: "InSync",
10
+ Pending: "Pending",
11
+ };
1
12
  export const FilterNameStringType = {
2
13
  all: "all",
3
14
  description: "description",
@@ -7,11 +18,6 @@ export const FilterNameStringType = {
7
18
  tag_key: "tag-key",
8
19
  tag_value: "tag-value",
9
20
  };
10
- export const StatusType = {
11
- Failed: "Failed",
12
- InProgress: "InProgress",
13
- InSync: "InSync",
14
- };
15
21
  export const SortByType = {
16
22
  created_date: "created-date",
17
23
  last_accessed_date: "last-accessed-date",
@@ -1,19 +1,4 @@
1
1
  import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
2
- export class DecryptionFailure extends __BaseException {
3
- static shapeId = "com.amazonaws.secretsmanager#DecryptionFailure";
4
- name = "DecryptionFailure";
5
- $fault = "client";
6
- Message;
7
- constructor(opts) {
8
- super({
9
- name: "DecryptionFailure",
10
- $fault: "client",
11
- ...opts,
12
- });
13
- Object.setPrototypeOf(this, DecryptionFailure.prototype);
14
- this.Message = opts.Message;
15
- }
16
- }
17
2
  export class InternalServiceError extends __BaseException {
18
3
  static shapeId = "com.amazonaws.secretsmanager#InternalServiceError";
19
4
  name = "InternalServiceError";
@@ -29,21 +14,6 @@ export class InternalServiceError extends __BaseException {
29
14
  this.Message = opts.Message;
30
15
  }
31
16
  }
32
- export class InvalidNextTokenException extends __BaseException {
33
- static shapeId = "com.amazonaws.secretsmanager#InvalidNextTokenException";
34
- name = "InvalidNextTokenException";
35
- $fault = "client";
36
- Message;
37
- constructor(opts) {
38
- super({
39
- name: "InvalidNextTokenException",
40
- $fault: "client",
41
- ...opts,
42
- });
43
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
44
- this.Message = opts.Message;
45
- }
46
- }
47
17
  export class InvalidParameterException extends __BaseException {
48
18
  static shapeId = "com.amazonaws.secretsmanager#InvalidParameterException";
49
19
  name = "InvalidParameterException";
@@ -74,6 +44,21 @@ export class InvalidRequestException extends __BaseException {
74
44
  this.Message = opts.Message;
75
45
  }
76
46
  }
47
+ export class LimitExceededException extends __BaseException {
48
+ static shapeId = "com.amazonaws.secretsmanager#LimitExceededException";
49
+ name = "LimitExceededException";
50
+ $fault = "client";
51
+ Message;
52
+ constructor(opts) {
53
+ super({
54
+ name: "LimitExceededException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
59
+ this.Message = opts.Message;
60
+ }
61
+ }
77
62
  export class ResourceNotFoundException extends __BaseException {
78
63
  static shapeId = "com.amazonaws.secretsmanager#ResourceNotFoundException";
79
64
  name = "ResourceNotFoundException";
@@ -89,33 +74,48 @@ export class ResourceNotFoundException extends __BaseException {
89
74
  this.Message = opts.Message;
90
75
  }
91
76
  }
92
- export class EncryptionFailure extends __BaseException {
93
- static shapeId = "com.amazonaws.secretsmanager#EncryptionFailure";
94
- name = "EncryptionFailure";
77
+ export class DecryptionFailure extends __BaseException {
78
+ static shapeId = "com.amazonaws.secretsmanager#DecryptionFailure";
79
+ name = "DecryptionFailure";
95
80
  $fault = "client";
96
81
  Message;
97
82
  constructor(opts) {
98
83
  super({
99
- name: "EncryptionFailure",
84
+ name: "DecryptionFailure",
100
85
  $fault: "client",
101
86
  ...opts,
102
87
  });
103
- Object.setPrototypeOf(this, EncryptionFailure.prototype);
88
+ Object.setPrototypeOf(this, DecryptionFailure.prototype);
104
89
  this.Message = opts.Message;
105
90
  }
106
91
  }
107
- export class LimitExceededException extends __BaseException {
108
- static shapeId = "com.amazonaws.secretsmanager#LimitExceededException";
109
- name = "LimitExceededException";
92
+ export class InvalidNextTokenException extends __BaseException {
93
+ static shapeId = "com.amazonaws.secretsmanager#InvalidNextTokenException";
94
+ name = "InvalidNextTokenException";
110
95
  $fault = "client";
111
96
  Message;
112
97
  constructor(opts) {
113
98
  super({
114
- name: "LimitExceededException",
99
+ name: "InvalidNextTokenException",
115
100
  $fault: "client",
116
101
  ...opts,
117
102
  });
118
- Object.setPrototypeOf(this, LimitExceededException.prototype);
103
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
104
+ this.Message = opts.Message;
105
+ }
106
+ }
107
+ export class EncryptionFailure extends __BaseException {
108
+ static shapeId = "com.amazonaws.secretsmanager#EncryptionFailure";
109
+ name = "EncryptionFailure";
110
+ $fault = "client";
111
+ Message;
112
+ constructor(opts) {
113
+ super({
114
+ name: "EncryptionFailure",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, EncryptionFailure.prototype);
119
119
  this.Message = opts.Message;
120
120
  }
121
121
  }
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListResourcePoliciesCommand, } from "../commands/ListResourcePoliciesCommand";
3
+ import { SecretsManagerClient } from "../SecretsManagerClient";
4
+ export const paginateListResourcePolicies = createPaginator(SecretsManagerClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./BatchGetSecretValuePaginator";
3
+ export * from "./ListResourcePoliciesPaginator";
3
4
  export * from "./ListSecretsPaginator";
4
5
  export * from "./ListSecretVersionIdsPaginator";
@@ -1,4 +1,7 @@
1
1
  const _AAD = "AutomaticallyAfterDays";
2
+ const _ACAR = "AssociateCrossAccountReplica";
3
+ const _ACARR = "AssociateCrossAccountReplicaRequest";
4
+ const _ACARRs = "AssociateCrossAccountReplicaResponse";
2
5
  const _APIELT = "APIErrorListType";
3
6
  const _APIET = "APIErrorType";
4
7
  const _ARN = "ARN";
@@ -8,6 +11,13 @@ const _BGSV = "BatchGetSecretValue";
8
11
  const _BGSVR = "BatchGetSecretValueRequest";
9
12
  const _BGSVRa = "BatchGetSecretValueResponse";
10
13
  const _BPP = "BlockPublicPolicy";
14
+ const _CAP = "CrossAccountPrimary";
15
+ const _CAPARN = "CrossAccountPrimaryARN";
16
+ const _CAPT = "CrossAccountPrimaryType";
17
+ const _CAR = "CrossAccountReplicas";
18
+ const _CARARN = "CrossAccountReplicaARN";
19
+ const _CARE = "CrossAccountReplicaEntry";
20
+ const _CARLT = "CrossAccountReplicaListType";
11
21
  const _CD = "CreatedDate";
12
22
  const _CN = "CheckName";
13
23
  const _CRS = "CancelRotateSecret";
@@ -18,6 +28,9 @@ const _CS = "CreateSecret";
18
28
  const _CSR = "CreateSecretRequest";
19
29
  const _CSRr = "CreateSecretResponse";
20
30
  const _D = "Description";
31
+ const _DCAR = "DisassociateCrossAccountReplica";
32
+ const _DCARR = "DisassociateCrossAccountReplicaRequest";
33
+ const _DCARRi = "DisassociateCrossAccountReplicaResponse";
21
34
  const _DD = "DeletionDate";
22
35
  const _DDe = "DeletedDate";
23
36
  const _DF = "DecryptionFailure";
@@ -72,6 +85,9 @@ const _LAD = "LastAccessedDate";
72
85
  const _LCD = "LastChangedDate";
73
86
  const _LEE = "LimitExceededException";
74
87
  const _LRD = "LastRotatedDate";
88
+ const _LRP = "ListResourcePolicies";
89
+ const _LRPR = "ListResourcePoliciesRequest";
90
+ const _LRPRi = "ListResourcePoliciesResponse";
75
91
  const _LS = "ListSecrets";
76
92
  const _LSR = "ListSecretsRequest";
77
93
  const _LSRi = "ListSecretsResponse";
@@ -87,12 +103,14 @@ const _NRD = "NextRotationDate";
87
103
  const _NT = "NextToken";
88
104
  const _OS = "OwningService";
89
105
  const _PL = "PasswordLength";
106
+ const _PN = "PolicyName";
90
107
  const _PNME = "PreconditionNotMetException";
91
108
  const _PPE = "PublicPolicyException";
92
109
  const _PR = "PrimaryRegion";
93
110
  const _PRP = "PutResourcePolicy";
94
111
  const _PRPR = "PutResourcePolicyRequest";
95
112
  const _PRPRu = "PutResourcePolicyResponse";
113
+ const _PSARN = "PrimarySecretARN";
96
114
  const _PSV = "PutSecretValue";
97
115
  const _PSVR = "PutSecretValueRequest";
98
116
  const _PSVRu = "PutSecretValueResponse";
@@ -106,16 +124,22 @@ const _RI = "RotateImmediately";
106
124
  const _RLARN = "RotationLambdaARN";
107
125
  const _RNFE = "ResourceNotFoundException";
108
126
  const _RP = "RandomPassword";
127
+ const _RPS = "ResourcePolicySummary";
128
+ const _RPSLT = "ResourcePolicySummaryListType";
109
129
  const _RPT = "RandomPasswordType";
110
130
  const _RPe = "ResourcePolicy";
111
- const _RR = "RotationRules";
131
+ const _RPes = "ResourcePolicies";
132
+ const _RR = "ReplicaRestriction";
133
+ const _RRARN = "ReplicationRoleARN";
112
134
  const _RRFR = "RemoveRegionsFromReplication";
113
135
  const _RRFRR = "RemoveRegionsFromReplicationRequest";
114
136
  const _RRFRRe = "RemoveRegionsFromReplicationResponse";
115
137
  const _RRR = "RemoveReplicaRegions";
116
138
  const _RRT = "ReplicaRegionType";
117
139
  const _RRTo = "RotationRulesType";
140
+ const _RRo = "RotationRules";
118
141
  const _RS = "ReplicationStatus";
142
+ const _RSARN = "ReplicaSecretARN";
119
143
  const _RSLT = "ReplicationStatusListType";
120
144
  const _RSR = "RestoreSecretRequest";
121
145
  const _RSRe = "RestoreSecretResponse";
@@ -279,6 +303,16 @@ export var APIErrorType$ = [3, n0, _APIET,
279
303
  [_SI, _EC, _M],
280
304
  [0, 0, 0]
281
305
  ];
306
+ export var AssociateCrossAccountReplicaRequest$ = [3, n0, _ACARR,
307
+ 0,
308
+ [_SI, _CARARN, _RR, _RRARN],
309
+ [0, 0, 0, 0], 2
310
+ ];
311
+ export var AssociateCrossAccountReplicaResponse$ = [3, n0, _ACARRs,
312
+ 0,
313
+ [_ARN, _CARARN, _RS],
314
+ [0, 0, 0]
315
+ ];
282
316
  export var BatchGetSecretValueRequest$ = [3, n0, _BGSVR,
283
317
  0,
284
318
  [_SIL, _F, _MR, _NT],
@@ -301,23 +335,33 @@ export var CancelRotateSecretResponse$ = [3, n0, _CRSRa,
301
335
  ];
302
336
  export var CreateSecretRequest$ = [3, n0, _CSR,
303
337
  0,
304
- [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS, _Ty],
305
- [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], () => TagListType, () => AddReplicaRegionListType, 2, 0], 1
338
+ [_N, _CRT, _D, _KKI, _SB, _SS, _T, _ARR, _FORS, _Ty, _CAPARN],
339
+ [0, [0, 4], 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], () => TagListType, () => AddReplicaRegionListType, 2, 0, 0], 1
306
340
  ];
307
341
  export var CreateSecretResponse$ = [3, n0, _CSRr,
308
342
  0,
309
343
  [_ARN, _N, _VI, _RS],
310
344
  [0, 0, 0, () => ReplicationStatusListType]
311
345
  ];
346
+ export var CrossAccountPrimaryType$ = [3, n0, _CAPT,
347
+ 0,
348
+ [_PSARN, _RS, _SM],
349
+ [0, 0, 0]
350
+ ];
351
+ export var CrossAccountReplicaEntry$ = [3, n0, _CARE,
352
+ 0,
353
+ [_RSARN, _RRARN, _RS, _SM],
354
+ [0, 0, 0, 0]
355
+ ];
312
356
  export var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
313
357
  0,
314
- [_SI],
315
- [0], 1
358
+ [_SI, _PN],
359
+ [0, 0], 1
316
360
  ];
317
361
  export var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
318
362
  0,
319
- [_ARN, _N],
320
- [0, 0]
363
+ [_ARN, _N, _PN],
364
+ [0, 0, 0]
321
365
  ];
322
366
  export var DeleteSecretRequest$ = [3, n0, _DSR,
323
367
  0,
@@ -336,8 +380,18 @@ export var DescribeSecretRequest$ = [3, n0, _DSRes,
336
380
  ];
337
381
  export var DescribeSecretResponse$ = [3, n0, _DSResc,
338
382
  0,
339
- [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS],
340
- [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]
383
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RRo, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _VITS, _OS, _CD, _PR, _RS, _CAP, _CAR],
384
+ [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]
385
+ ];
386
+ export var DisassociateCrossAccountReplicaRequest$ = [3, n0, _DCARR,
387
+ 0,
388
+ [_SI, _CARARN],
389
+ [0, 0], 2
390
+ ];
391
+ export var DisassociateCrossAccountReplicaResponse$ = [3, n0, _DCARRi,
392
+ 0,
393
+ [_ARN, _CARARN],
394
+ [0, 0]
341
395
  ];
342
396
  export var ExternalSecretRotationMetadataItem$ = [3, n0, _ESRMI,
343
397
  0,
@@ -361,13 +415,13 @@ export var GetRandomPasswordResponse$ = [3, n0, _GRPRe,
361
415
  ];
362
416
  export var GetResourcePolicyRequest$ = [3, n0, _GRPRet,
363
417
  0,
364
- [_SI],
365
- [0], 1
418
+ [_SI, _PN],
419
+ [0, 0], 1
366
420
  ];
367
421
  export var GetResourcePolicyResponse$ = [3, n0, _GRPRete,
368
422
  0,
369
- [_ARN, _N, _RPe],
370
- [0, 0, 0]
423
+ [_ARN, _N, _RPe, _PN],
424
+ [0, 0, 0, 0]
371
425
  ];
372
426
  export var GetSecretValueRequest$ = [3, n0, _GSVR,
373
427
  0,
@@ -379,6 +433,16 @@ export var GetSecretValueResponse$ = [3, n0, _GSVRe,
379
433
  [_ARN, _N, _VI, _SB, _SS, _VSe, _CD],
380
434
  [0, 0, 0, [() => SecretBinaryType, 0], [() => SecretStringType, 0], 64 | 0, 4]
381
435
  ];
436
+ export var ListResourcePoliciesRequest$ = [3, n0, _LRPR,
437
+ 0,
438
+ [_SI, _MR, _NT],
439
+ [0, 1, 0], 1
440
+ ];
441
+ export var ListResourcePoliciesResponse$ = [3, n0, _LRPRi,
442
+ 0,
443
+ [_RPes, _NT],
444
+ [() => ResourcePolicySummaryListType, 0], 1
445
+ ];
382
446
  export var ListSecretsRequest$ = [3, n0, _LSR,
383
447
  0,
384
448
  [_IPD, _MR, _NT, _F, _SO, _SBo],
@@ -401,13 +465,13 @@ export var ListSecretVersionIdsResponse$ = [3, n0, _LSVIRi,
401
465
  ];
402
466
  export var PutResourcePolicyRequest$ = [3, n0, _PRPR,
403
467
  0,
404
- [_SI, _RPe, _BPP],
405
- [0, 0, 2], 2
468
+ [_SI, _RPe, _PN, _BPP],
469
+ [0, 0, 0, 2], 2
406
470
  ];
407
471
  export var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
408
472
  0,
409
- [_ARN, _N],
410
- [0, 0]
473
+ [_ARN, _N, _PN],
474
+ [0, 0, 0]
411
475
  ];
412
476
  export var PutSecretValueRequest$ = [3, n0, _PSVR,
413
477
  0,
@@ -449,6 +513,11 @@ export var ReplicationStatusType$ = [3, n0, _RST,
449
513
  [_R, _KKI, _S, _SM, _LAD],
450
514
  [0, 0, 0, 0, 4]
451
515
  ];
516
+ export var ResourcePolicySummary$ = [3, n0, _RPS,
517
+ 0,
518
+ [_PN],
519
+ [0]
520
+ ];
452
521
  export var RestoreSecretRequest$ = [3, n0, _RSR,
453
522
  0,
454
523
  [_SI],
@@ -461,7 +530,7 @@ export var RestoreSecretResponse$ = [3, n0, _RSRe,
461
530
  ];
462
531
  export var RotateSecretRequest$ = [3, n0, _RSRo,
463
532
  0,
464
- [_SI, _CRT, _RLARN, _RR, _ESRM, _ESRRA, _RI],
533
+ [_SI, _CRT, _RLARN, _RRo, _ESRM, _ESRRA, _RI],
465
534
  [0, [0, 4], 0, () => RotationRulesType$, () => ExternalSecretRotationMetadataType, 0, 2], 1
466
535
  ];
467
536
  export var RotateSecretResponse$ = [3, n0, _RSRot,
@@ -476,7 +545,7 @@ export var RotationRulesType$ = [3, n0, _RRTo,
476
545
  ];
477
546
  export var SecretListEntry$ = [3, n0, _SLE,
478
547
  0,
479
- [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RR, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
548
+ [_ARN, _N, _Ty, _D, _KKI, _RE, _RLARN, _RRo, _ESRM, _ESRRA, _LRD, _LCD, _LAD, _DDe, _NRD, _T, _SVTS, _OS, _CD, _PR],
480
549
  [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]
481
550
  ];
482
551
  export var SecretValueEntry$ = [3, n0, _SVE,
@@ -556,6 +625,9 @@ var AddReplicaRegionListType = [1, n0, _ARRLT,
556
625
  var APIErrorListType = [1, n0, _APIELT,
557
626
  0, () => APIErrorType$
558
627
  ];
628
+ var CrossAccountReplicaListType = [1, n0, _CARLT,
629
+ 0, () => CrossAccountReplicaEntry$
630
+ ];
559
631
  var ExternalSecretRotationMetadataType = [1, n0, _ESRMT,
560
632
  0, () => ExternalSecretRotationMetadataItem$
561
633
  ];
@@ -568,6 +640,9 @@ var RemoveReplicaRegionListType = 64 | 0;
568
640
  var ReplicationStatusListType = [1, n0, _RSLT,
569
641
  0, () => ReplicationStatusType$
570
642
  ];
643
+ var ResourcePolicySummaryListType = [1, n0, _RPSLT,
644
+ 0, () => ResourcePolicySummary$
645
+ ];
571
646
  var SecretIdListType = 64 | 0;
572
647
  var SecretListType = [1, n0, _SLT,
573
648
  0, () => SecretListEntry$
@@ -590,6 +665,9 @@ var ValidationErrorsType = [1, n0, _VET,
590
665
  var SecretVersionsToStagesMapType = [2, n0, _SVTSMT,
591
666
  0, 0, 64 | 0
592
667
  ];
668
+ export var AssociateCrossAccountReplica$ = [9, n0, _ACAR,
669
+ 0, () => AssociateCrossAccountReplicaRequest$, () => AssociateCrossAccountReplicaResponse$
670
+ ];
593
671
  export var BatchGetSecretValue$ = [9, n0, _BGSV,
594
672
  0, () => BatchGetSecretValueRequest$, () => BatchGetSecretValueResponse$
595
673
  ];
@@ -608,6 +686,9 @@ export var DeleteSecret$ = [9, n0, _DS,
608
686
  export var DescribeSecret$ = [9, n0, _DSe,
609
687
  0, () => DescribeSecretRequest$, () => DescribeSecretResponse$
610
688
  ];
689
+ export var DisassociateCrossAccountReplica$ = [9, n0, _DCAR,
690
+ 0, () => DisassociateCrossAccountReplicaRequest$, () => DisassociateCrossAccountReplicaResponse$
691
+ ];
611
692
  export var GetRandomPassword$ = [9, n0, _GRP,
612
693
  0, () => GetRandomPasswordRequest$, () => GetRandomPasswordResponse$
613
694
  ];
@@ -617,6 +698,9 @@ export var GetResourcePolicy$ = [9, n0, _GRPe,
617
698
  export var GetSecretValue$ = [9, n0, _GSV,
618
699
  0, () => GetSecretValueRequest$, () => GetSecretValueResponse$
619
700
  ];
701
+ export var ListResourcePolicies$ = [9, n0, _LRP,
702
+ 0, () => ListResourcePoliciesRequest$, () => ListResourcePoliciesResponse$
703
+ ];
620
704
  export var ListSecrets$ = [9, n0, _LS,
621
705
  0, () => ListSecretsRequest$, () => ListSecretsResponse$
622
706
  ];
@@ -1,13 +1,16 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
+ import { type AssociateCrossAccountReplicaCommandInput, type AssociateCrossAccountReplicaCommandOutput } from "./commands/AssociateCrossAccountReplicaCommand";
2
3
  import { type BatchGetSecretValueCommandInput, type BatchGetSecretValueCommandOutput } from "./commands/BatchGetSecretValueCommand";
3
4
  import { type CancelRotateSecretCommandInput, type CancelRotateSecretCommandOutput } from "./commands/CancelRotateSecretCommand";
4
5
  import { type CreateSecretCommandInput, type CreateSecretCommandOutput } from "./commands/CreateSecretCommand";
5
6
  import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
6
7
  import { type DeleteSecretCommandInput, type DeleteSecretCommandOutput } from "./commands/DeleteSecretCommand";
7
8
  import { type DescribeSecretCommandInput, type DescribeSecretCommandOutput } from "./commands/DescribeSecretCommand";
9
+ import { type DisassociateCrossAccountReplicaCommandInput, type DisassociateCrossAccountReplicaCommandOutput } from "./commands/DisassociateCrossAccountReplicaCommand";
8
10
  import { type GetRandomPasswordCommandInput, type GetRandomPasswordCommandOutput } from "./commands/GetRandomPasswordCommand";
9
11
  import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
10
12
  import { type GetSecretValueCommandInput, type GetSecretValueCommandOutput } from "./commands/GetSecretValueCommand";
13
+ import { type ListResourcePoliciesCommandInput, type ListResourcePoliciesCommandOutput } from "./commands/ListResourcePoliciesCommand";
11
14
  import { type ListSecretsCommandInput, type ListSecretsCommandOutput } from "./commands/ListSecretsCommand";
12
15
  import { type ListSecretVersionIdsCommandInput, type ListSecretVersionIdsCommandOutput } from "./commands/ListSecretVersionIdsCommand";
13
16
  import { type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -30,6 +33,12 @@ export interface SecretsManagerRequestOptions extends __HttpHandlerOptions {
30
33
  metricsRecorder?: __MetricsRecorder<unknown>;
31
34
  }
32
35
  export interface SecretsManager {
36
+ /**
37
+ * @see {@link AssociateCrossAccountReplicaCommand}
38
+ */
39
+ associateCrossAccountReplica(args: AssociateCrossAccountReplicaCommandInput, options?: SecretsManagerRequestOptions): Promise<AssociateCrossAccountReplicaCommandOutput>;
40
+ associateCrossAccountReplica(args: AssociateCrossAccountReplicaCommandInput, cb: (err: any, data?: AssociateCrossAccountReplicaCommandOutput) => void): void;
41
+ associateCrossAccountReplica(args: AssociateCrossAccountReplicaCommandInput, options: SecretsManagerRequestOptions, cb: (err: any, data?: AssociateCrossAccountReplicaCommandOutput) => void): void;
33
42
  /**
34
43
  * @see {@link BatchGetSecretValueCommand}
35
44
  */
@@ -67,6 +76,12 @@ export interface SecretsManager {
67
76
  describeSecret(args: DescribeSecretCommandInput, options?: SecretsManagerRequestOptions): Promise<DescribeSecretCommandOutput>;
68
77
  describeSecret(args: DescribeSecretCommandInput, cb: (err: any, data?: DescribeSecretCommandOutput) => void): void;
69
78
  describeSecret(args: DescribeSecretCommandInput, options: SecretsManagerRequestOptions, cb: (err: any, data?: DescribeSecretCommandOutput) => void): void;
79
+ /**
80
+ * @see {@link DisassociateCrossAccountReplicaCommand}
81
+ */
82
+ disassociateCrossAccountReplica(args: DisassociateCrossAccountReplicaCommandInput, options?: SecretsManagerRequestOptions): Promise<DisassociateCrossAccountReplicaCommandOutput>;
83
+ disassociateCrossAccountReplica(args: DisassociateCrossAccountReplicaCommandInput, cb: (err: any, data?: DisassociateCrossAccountReplicaCommandOutput) => void): void;
84
+ disassociateCrossAccountReplica(args: DisassociateCrossAccountReplicaCommandInput, options: SecretsManagerRequestOptions, cb: (err: any, data?: DisassociateCrossAccountReplicaCommandOutput) => void): void;
70
85
  /**
71
86
  * @see {@link GetRandomPasswordCommand}
72
87
  */
@@ -86,6 +101,12 @@ export interface SecretsManager {
86
101
  getSecretValue(args: GetSecretValueCommandInput, options?: SecretsManagerRequestOptions): Promise<GetSecretValueCommandOutput>;
87
102
  getSecretValue(args: GetSecretValueCommandInput, cb: (err: any, data?: GetSecretValueCommandOutput) => void): void;
88
103
  getSecretValue(args: GetSecretValueCommandInput, options: SecretsManagerRequestOptions, cb: (err: any, data?: GetSecretValueCommandOutput) => void): void;
104
+ /**
105
+ * @see {@link ListResourcePoliciesCommand}
106
+ */
107
+ listResourcePolicies(args: ListResourcePoliciesCommandInput, options?: SecretsManagerRequestOptions): Promise<ListResourcePoliciesCommandOutput>;
108
+ listResourcePolicies(args: ListResourcePoliciesCommandInput, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
109
+ listResourcePolicies(args: ListResourcePoliciesCommandInput, options: SecretsManagerRequestOptions, cb: (err: any, data?: ListResourcePoliciesCommandOutput) => void): void;
89
110
  /**
90
111
  * @see {@link ListSecretsCommand}
91
112
  */
@@ -178,6 +199,13 @@ export interface SecretsManager {
178
199
  * @returns AsyncIterable of {@link BatchGetSecretValueCommandOutput}.
179
200
  */
180
201
  paginateBatchGetSecretValue(args?: BatchGetSecretValueCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<BatchGetSecretValueCommandOutput>;
202
+ /**
203
+ * @see {@link ListResourcePoliciesCommand}
204
+ * @param args - command input.
205
+ * @param paginationConfig - optional pagination config.
206
+ * @returns AsyncIterable of {@link ListResourcePoliciesCommandOutput}.
207
+ */
208
+ paginateListResourcePolicies(args: ListResourcePoliciesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListResourcePoliciesCommandOutput>;
181
209
  /**
182
210
  * @see {@link ListSecretsCommand}
183
211
  * @param args - command input.
@@ -6,15 +6,18 @@ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/cor
6
6
  import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
7
7
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
8
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
9
+ import type { AssociateCrossAccountReplicaCommandInput, AssociateCrossAccountReplicaCommandOutput } from "./commands/AssociateCrossAccountReplicaCommand";
9
10
  import type { BatchGetSecretValueCommandInput, BatchGetSecretValueCommandOutput } from "./commands/BatchGetSecretValueCommand";
10
11
  import type { CancelRotateSecretCommandInput, CancelRotateSecretCommandOutput } from "./commands/CancelRotateSecretCommand";
11
12
  import type { CreateSecretCommandInput, CreateSecretCommandOutput } from "./commands/CreateSecretCommand";
12
13
  import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
13
14
  import type { DeleteSecretCommandInput, DeleteSecretCommandOutput } from "./commands/DeleteSecretCommand";
14
15
  import type { DescribeSecretCommandInput, DescribeSecretCommandOutput } from "./commands/DescribeSecretCommand";
16
+ import type { DisassociateCrossAccountReplicaCommandInput, DisassociateCrossAccountReplicaCommandOutput } from "./commands/DisassociateCrossAccountReplicaCommand";
15
17
  import type { GetRandomPasswordCommandInput, GetRandomPasswordCommandOutput } from "./commands/GetRandomPasswordCommand";
16
18
  import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
17
19
  import type { GetSecretValueCommandInput, GetSecretValueCommandOutput } from "./commands/GetSecretValueCommand";
20
+ import type { ListResourcePoliciesCommandInput, ListResourcePoliciesCommandOutput } from "./commands/ListResourcePoliciesCommand";
18
21
  import type { ListSecretsCommandInput, ListSecretsCommandOutput } from "./commands/ListSecretsCommand";
19
22
  import type { ListSecretVersionIdsCommandInput, ListSecretVersionIdsCommandOutput } from "./commands/ListSecretVersionIdsCommand";
20
23
  import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
@@ -35,11 +38,11 @@ export { __Client };
35
38
  /**
36
39
  * @public
37
40
  */
38
- export type ServiceInputTypes = BatchGetSecretValueCommandInput | CancelRotateSecretCommandInput | CreateSecretCommandInput | DeleteResourcePolicyCommandInput | DeleteSecretCommandInput | DescribeSecretCommandInput | GetRandomPasswordCommandInput | GetResourcePolicyCommandInput | GetSecretValueCommandInput | ListSecretVersionIdsCommandInput | ListSecretsCommandInput | PutResourcePolicyCommandInput | PutSecretValueCommandInput | RemoveRegionsFromReplicationCommandInput | ReplicateSecretToRegionsCommandInput | RestoreSecretCommandInput | RotateSecretCommandInput | StopReplicationToReplicaCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSecretCommandInput | UpdateSecretVersionStageCommandInput | ValidateResourcePolicyCommandInput;
41
+ export type ServiceInputTypes = AssociateCrossAccountReplicaCommandInput | BatchGetSecretValueCommandInput | CancelRotateSecretCommandInput | CreateSecretCommandInput | DeleteResourcePolicyCommandInput | DeleteSecretCommandInput | DescribeSecretCommandInput | DisassociateCrossAccountReplicaCommandInput | GetRandomPasswordCommandInput | GetResourcePolicyCommandInput | GetSecretValueCommandInput | ListResourcePoliciesCommandInput | ListSecretVersionIdsCommandInput | ListSecretsCommandInput | PutResourcePolicyCommandInput | PutSecretValueCommandInput | RemoveRegionsFromReplicationCommandInput | ReplicateSecretToRegionsCommandInput | RestoreSecretCommandInput | RotateSecretCommandInput | StopReplicationToReplicaCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSecretCommandInput | UpdateSecretVersionStageCommandInput | ValidateResourcePolicyCommandInput;
39
42
  /**
40
43
  * @public
41
44
  */
42
- export type ServiceOutputTypes = BatchGetSecretValueCommandOutput | CancelRotateSecretCommandOutput | CreateSecretCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSecretCommandOutput | DescribeSecretCommandOutput | GetRandomPasswordCommandOutput | GetResourcePolicyCommandOutput | GetSecretValueCommandOutput | ListSecretVersionIdsCommandOutput | ListSecretsCommandOutput | PutResourcePolicyCommandOutput | PutSecretValueCommandOutput | RemoveRegionsFromReplicationCommandOutput | ReplicateSecretToRegionsCommandOutput | RestoreSecretCommandOutput | RotateSecretCommandOutput | StopReplicationToReplicaCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSecretCommandOutput | UpdateSecretVersionStageCommandOutput | ValidateResourcePolicyCommandOutput;
45
+ export type ServiceOutputTypes = AssociateCrossAccountReplicaCommandOutput | BatchGetSecretValueCommandOutput | CancelRotateSecretCommandOutput | CreateSecretCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSecretCommandOutput | DescribeSecretCommandOutput | DisassociateCrossAccountReplicaCommandOutput | GetRandomPasswordCommandOutput | GetResourcePolicyCommandOutput | GetSecretValueCommandOutput | ListResourcePoliciesCommandOutput | ListSecretVersionIdsCommandOutput | ListSecretsCommandOutput | PutResourcePolicyCommandOutput | PutSecretValueCommandOutput | RemoveRegionsFromReplicationCommandOutput | ReplicateSecretToRegionsCommandOutput | RestoreSecretCommandOutput | RotateSecretCommandOutput | StopReplicationToReplicaCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSecretCommandOutput | UpdateSecretVersionStageCommandOutput | ValidateResourcePolicyCommandOutput;
43
46
  /**
44
47
  * @public
45
48
  */