@aws-sdk/client-secrets-manager 3.168.0 → 3.170.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 (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-types/ts3.4/SecretsManager.d.ts +400 -115
  3. package/dist-types/ts3.4/SecretsManagerClient.d.ts +262 -95
  4. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +38 -17
  5. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +34 -17
  6. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +41 -17
  7. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +34 -17
  8. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +37 -17
  9. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +38 -17
  10. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +38 -17
  11. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +37 -17
  12. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +41 -17
  13. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +34 -17
  14. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +38 -17
  15. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +37 -17
  16. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +41 -17
  17. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +41 -17
  18. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +37 -17
  19. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +34 -17
  20. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +41 -17
  21. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -17
  22. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +32 -17
  23. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +34 -17
  24. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +41 -17
  25. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +41 -17
  26. package/dist-types/ts3.4/commands/index.d.ts +22 -22
  27. package/dist-types/ts3.4/endpoints.d.ts +2 -2
  28. package/dist-types/ts3.4/index.d.ts +6 -6
  29. package/dist-types/ts3.4/models/SecretsManagerServiceException.d.ts +8 -6
  30. package/dist-types/ts3.4/models/index.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +745 -670
  32. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -6
  33. package/dist-types/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +11 -4
  34. package/dist-types/ts3.4/pagination/ListSecretsPaginator.d.ts +11 -4
  35. package/dist-types/ts3.4/pagination/index.d.ts +3 -3
  36. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +269 -68
  37. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +66 -38
  38. package/dist-types/ts3.4/runtimeConfig.d.ts +66 -38
  39. package/dist-types/ts3.4/runtimeConfig.native.d.ts +67 -37
  40. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -11
  41. package/package.json +34 -34
@@ -1,670 +1,745 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
- import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
3
-
4
- export interface ReplicaRegionType {
5
-
6
- Region?: string;
7
-
8
- KmsKeyId?: string;
9
- }
10
- export interface CancelRotateSecretRequest {
11
-
12
- SecretId: string | undefined;
13
- }
14
- export interface CancelRotateSecretResponse {
15
-
16
- ARN?: string;
17
-
18
- Name?: string;
19
-
20
- VersionId?: string;
21
- }
22
-
23
- export declare class InternalServiceError extends __BaseException {
24
- readonly name: "InternalServiceError";
25
- readonly $fault: "server";
26
- Message?: string;
27
-
28
- constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
29
- }
30
-
31
- export declare class InvalidParameterException extends __BaseException {
32
- readonly name: "InvalidParameterException";
33
- readonly $fault: "client";
34
- Message?: string;
35
-
36
- constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
37
- }
38
-
39
- export declare class InvalidRequestException extends __BaseException {
40
- readonly name: "InvalidRequestException";
41
- readonly $fault: "client";
42
- Message?: string;
43
-
44
- constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
45
- }
46
-
47
- export declare class ResourceNotFoundException extends __BaseException {
48
- readonly name: "ResourceNotFoundException";
49
- readonly $fault: "client";
50
- Message?: string;
51
-
52
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
53
- }
54
-
55
- export interface Tag {
56
-
57
- Key?: string;
58
-
59
- Value?: string;
60
- }
61
- export interface CreateSecretRequest {
62
-
63
- Name: string | undefined;
64
-
65
- ClientRequestToken?: string;
66
-
67
- Description?: string;
68
-
69
- KmsKeyId?: string;
70
-
71
- SecretBinary?: Uint8Array;
72
-
73
- SecretString?: string;
74
-
75
- Tags?: Tag[];
76
-
77
- AddReplicaRegions?: ReplicaRegionType[];
78
-
79
- ForceOverwriteReplicaSecret?: boolean;
80
- }
81
- export declare enum StatusType {
82
- Failed = "Failed",
83
- InProgress = "InProgress",
84
- InSync = "InSync"
85
- }
86
-
87
- export interface ReplicationStatusType {
88
-
89
- Region?: string;
90
-
91
- KmsKeyId?: string;
92
-
93
- Status?: StatusType | string;
94
-
95
- StatusMessage?: string;
96
-
97
- LastAccessedDate?: Date;
98
- }
99
- export interface CreateSecretResponse {
100
-
101
- ARN?: string;
102
-
103
- Name?: string;
104
-
105
- VersionId?: string;
106
-
107
- ReplicationStatus?: ReplicationStatusType[];
108
- }
109
-
110
- export declare class DecryptionFailure extends __BaseException {
111
- readonly name: "DecryptionFailure";
112
- readonly $fault: "client";
113
- Message?: string;
114
-
115
- constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
116
- }
117
-
118
- export declare class EncryptionFailure extends __BaseException {
119
- readonly name: "EncryptionFailure";
120
- readonly $fault: "client";
121
- Message?: string;
122
-
123
- constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
124
- }
125
-
126
- export declare class LimitExceededException extends __BaseException {
127
- readonly name: "LimitExceededException";
128
- readonly $fault: "client";
129
- Message?: string;
130
-
131
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
132
- }
133
-
134
- export declare class MalformedPolicyDocumentException extends __BaseException {
135
- readonly name: "MalformedPolicyDocumentException";
136
- readonly $fault: "client";
137
- Message?: string;
138
-
139
- constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
140
- }
141
-
142
- export declare class PreconditionNotMetException extends __BaseException {
143
- readonly name: "PreconditionNotMetException";
144
- readonly $fault: "client";
145
- Message?: string;
146
-
147
- constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
148
- }
149
-
150
- export declare class ResourceExistsException extends __BaseException {
151
- readonly name: "ResourceExistsException";
152
- readonly $fault: "client";
153
- Message?: string;
154
-
155
- constructor(opts: __ExceptionOptionType<ResourceExistsException, __BaseException>);
156
- }
157
- export interface DeleteResourcePolicyRequest {
158
-
159
- SecretId: string | undefined;
160
- }
161
- export interface DeleteResourcePolicyResponse {
162
-
163
- ARN?: string;
164
-
165
- Name?: string;
166
- }
167
- export interface DeleteSecretRequest {
168
-
169
- SecretId: string | undefined;
170
-
171
- RecoveryWindowInDays?: number;
172
-
173
- ForceDeleteWithoutRecovery?: boolean;
174
- }
175
- export interface DeleteSecretResponse {
176
-
177
- ARN?: string;
178
-
179
- Name?: string;
180
-
181
- DeletionDate?: Date;
182
- }
183
- export interface DescribeSecretRequest {
184
-
185
- SecretId: string | undefined;
186
- }
187
-
188
- export interface RotationRulesType {
189
-
190
- AutomaticallyAfterDays?: number;
191
-
192
- Duration?: string;
193
-
194
- ScheduleExpression?: string;
195
- }
196
- export interface DescribeSecretResponse {
197
-
198
- ARN?: string;
199
-
200
- Name?: string;
201
-
202
- Description?: string;
203
-
204
- KmsKeyId?: string;
205
-
206
- RotationEnabled?: boolean;
207
-
208
- RotationLambdaARN?: string;
209
-
210
- RotationRules?: RotationRulesType;
211
-
212
- LastRotatedDate?: Date;
213
-
214
- LastChangedDate?: Date;
215
-
216
- LastAccessedDate?: Date;
217
-
218
- DeletedDate?: Date;
219
-
220
- Tags?: Tag[];
221
-
222
- VersionIdsToStages?: Record<string, string[]>;
223
-
224
- OwningService?: string;
225
-
226
- CreatedDate?: Date;
227
-
228
- PrimaryRegion?: string;
229
-
230
- ReplicationStatus?: ReplicationStatusType[];
231
- }
232
- export declare type FilterNameStringType = "all" | "description" | "name" | "primary-region" | "tag-key" | "tag-value";
233
-
234
- export interface Filter {
235
-
236
- Key?: FilterNameStringType | string;
237
-
238
- Values?: string[];
239
- }
240
- export interface GetRandomPasswordRequest {
241
-
242
- PasswordLength?: number;
243
-
244
- ExcludeCharacters?: string;
245
-
246
- ExcludeNumbers?: boolean;
247
-
248
- ExcludePunctuation?: boolean;
249
-
250
- ExcludeUppercase?: boolean;
251
-
252
- ExcludeLowercase?: boolean;
253
-
254
- IncludeSpace?: boolean;
255
-
256
- RequireEachIncludedType?: boolean;
257
- }
258
- export interface GetRandomPasswordResponse {
259
-
260
- RandomPassword?: string;
261
- }
262
- export interface GetResourcePolicyRequest {
263
-
264
- SecretId: string | undefined;
265
- }
266
- export interface GetResourcePolicyResponse {
267
-
268
- ARN?: string;
269
-
270
- Name?: string;
271
-
272
- ResourcePolicy?: string;
273
- }
274
- export interface GetSecretValueRequest {
275
-
276
- SecretId: string | undefined;
277
-
278
- VersionId?: string;
279
-
280
- VersionStage?: string;
281
- }
282
- export interface GetSecretValueResponse {
283
-
284
- ARN?: string;
285
-
286
- Name?: string;
287
-
288
- VersionId?: string;
289
-
290
- SecretBinary?: Uint8Array;
291
-
292
- SecretString?: string;
293
-
294
- VersionStages?: string[];
295
-
296
- CreatedDate?: Date;
297
- }
298
-
299
- export declare class InvalidNextTokenException extends __BaseException {
300
- readonly name: "InvalidNextTokenException";
301
- readonly $fault: "client";
302
- Message?: string;
303
-
304
- constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
305
- }
306
- export declare enum SortOrderType {
307
- asc = "asc",
308
- desc = "desc"
309
- }
310
- export interface ListSecretsRequest {
311
-
312
- MaxResults?: number;
313
-
314
- NextToken?: string;
315
-
316
- Filters?: Filter[];
317
-
318
- SortOrder?: SortOrderType | string;
319
- }
320
-
321
- export interface SecretListEntry {
322
-
323
- ARN?: string;
324
-
325
- Name?: string;
326
-
327
- Description?: string;
328
-
329
- KmsKeyId?: string;
330
-
331
- RotationEnabled?: boolean;
332
-
333
- RotationLambdaARN?: string;
334
-
335
- RotationRules?: RotationRulesType;
336
-
337
- LastRotatedDate?: Date;
338
-
339
- LastChangedDate?: Date;
340
-
341
- LastAccessedDate?: Date;
342
-
343
- DeletedDate?: Date;
344
-
345
- Tags?: Tag[];
346
-
347
- SecretVersionsToStages?: Record<string, string[]>;
348
-
349
- OwningService?: string;
350
-
351
- CreatedDate?: Date;
352
-
353
- PrimaryRegion?: string;
354
- }
355
- export interface ListSecretsResponse {
356
-
357
- SecretList?: SecretListEntry[];
358
-
359
- NextToken?: string;
360
- }
361
- export interface ListSecretVersionIdsRequest {
362
-
363
- SecretId: string | undefined;
364
-
365
- MaxResults?: number;
366
-
367
- NextToken?: string;
368
-
369
- IncludeDeprecated?: boolean;
370
- }
371
-
372
- export interface SecretVersionsListEntry {
373
-
374
- VersionId?: string;
375
-
376
- VersionStages?: string[];
377
-
378
- LastAccessedDate?: Date;
379
-
380
- CreatedDate?: Date;
381
-
382
- KmsKeyIds?: string[];
383
- }
384
- export interface ListSecretVersionIdsResponse {
385
-
386
- Versions?: SecretVersionsListEntry[];
387
-
388
- NextToken?: string;
389
-
390
- ARN?: string;
391
-
392
- Name?: string;
393
- }
394
-
395
- export declare class PublicPolicyException extends __BaseException {
396
- readonly name: "PublicPolicyException";
397
- readonly $fault: "client";
398
- Message?: string;
399
-
400
- constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
401
- }
402
- export interface PutResourcePolicyRequest {
403
-
404
- SecretId: string | undefined;
405
-
406
- ResourcePolicy: string | undefined;
407
-
408
- BlockPublicPolicy?: boolean;
409
- }
410
- export interface PutResourcePolicyResponse {
411
-
412
- ARN?: string;
413
-
414
- Name?: string;
415
- }
416
- export interface PutSecretValueRequest {
417
-
418
- SecretId: string | undefined;
419
-
420
- ClientRequestToken?: string;
421
-
422
- SecretBinary?: Uint8Array;
423
-
424
- SecretString?: string;
425
-
426
- VersionStages?: string[];
427
- }
428
- export interface PutSecretValueResponse {
429
-
430
- ARN?: string;
431
-
432
- Name?: string;
433
-
434
- VersionId?: string;
435
-
436
- VersionStages?: string[];
437
- }
438
- export interface RemoveRegionsFromReplicationRequest {
439
-
440
- SecretId: string | undefined;
441
-
442
- RemoveReplicaRegions: string[] | undefined;
443
- }
444
- export interface RemoveRegionsFromReplicationResponse {
445
-
446
- ARN?: string;
447
-
448
- ReplicationStatus?: ReplicationStatusType[];
449
- }
450
- export interface ReplicateSecretToRegionsRequest {
451
-
452
- SecretId: string | undefined;
453
-
454
- AddReplicaRegions: ReplicaRegionType[] | undefined;
455
-
456
- ForceOverwriteReplicaSecret?: boolean;
457
- }
458
- export interface ReplicateSecretToRegionsResponse {
459
-
460
- ARN?: string;
461
-
462
- ReplicationStatus?: ReplicationStatusType[];
463
- }
464
- export interface RestoreSecretRequest {
465
-
466
- SecretId: string | undefined;
467
- }
468
- export interface RestoreSecretResponse {
469
-
470
- ARN?: string;
471
-
472
- Name?: string;
473
- }
474
- export interface RotateSecretRequest {
475
-
476
- SecretId: string | undefined;
477
-
478
- ClientRequestToken?: string;
479
-
480
- RotationLambdaARN?: string;
481
-
482
- RotationRules?: RotationRulesType;
483
-
484
- RotateImmediately?: boolean;
485
- }
486
- export interface RotateSecretResponse {
487
-
488
- ARN?: string;
489
-
490
- Name?: string;
491
-
492
- VersionId?: string;
493
- }
494
- export interface StopReplicationToReplicaRequest {
495
-
496
- SecretId: string | undefined;
497
- }
498
- export interface StopReplicationToReplicaResponse {
499
-
500
- ARN?: string;
501
- }
502
- export interface TagResourceRequest {
503
-
504
- SecretId: string | undefined;
505
-
506
- Tags: Tag[] | undefined;
507
- }
508
- export interface UntagResourceRequest {
509
-
510
- SecretId: string | undefined;
511
-
512
- TagKeys: string[] | undefined;
513
- }
514
- export interface UpdateSecretRequest {
515
-
516
- SecretId: string | undefined;
517
-
518
- ClientRequestToken?: string;
519
-
520
- Description?: string;
521
-
522
- KmsKeyId?: string;
523
-
524
- SecretBinary?: Uint8Array;
525
-
526
- SecretString?: string;
527
- }
528
- export interface UpdateSecretResponse {
529
-
530
- ARN?: string;
531
-
532
- Name?: string;
533
-
534
- VersionId?: string;
535
- }
536
- export interface UpdateSecretVersionStageRequest {
537
-
538
- SecretId: string | undefined;
539
-
540
- VersionStage: string | undefined;
541
-
542
- RemoveFromVersionId?: string;
543
-
544
- MoveToVersionId?: string;
545
- }
546
- export interface UpdateSecretVersionStageResponse {
547
-
548
- ARN?: string;
549
-
550
- Name?: string;
551
- }
552
- export interface ValidateResourcePolicyRequest {
553
-
554
- SecretId?: string;
555
-
556
- ResourcePolicy: string | undefined;
557
- }
558
-
559
- export interface ValidationErrorsEntry {
560
-
561
- CheckName?: string;
562
-
563
- ErrorMessage?: string;
564
- }
565
- export interface ValidateResourcePolicyResponse {
566
-
567
- PolicyValidationPassed?: boolean;
568
-
569
- ValidationErrors?: ValidationErrorsEntry[];
570
- }
571
-
572
- export declare const ReplicaRegionTypeFilterSensitiveLog: (obj: ReplicaRegionType) => any;
573
-
574
- export declare const CancelRotateSecretRequestFilterSensitiveLog: (obj: CancelRotateSecretRequest) => any;
575
-
576
- export declare const CancelRotateSecretResponseFilterSensitiveLog: (obj: CancelRotateSecretResponse) => any;
577
-
578
- export declare const TagFilterSensitiveLog: (obj: Tag) => any;
579
-
580
- export declare const CreateSecretRequestFilterSensitiveLog: (obj: CreateSecretRequest) => any;
581
-
582
- export declare const ReplicationStatusTypeFilterSensitiveLog: (obj: ReplicationStatusType) => any;
583
-
584
- export declare const CreateSecretResponseFilterSensitiveLog: (obj: CreateSecretResponse) => any;
585
-
586
- export declare const DeleteResourcePolicyRequestFilterSensitiveLog: (obj: DeleteResourcePolicyRequest) => any;
587
-
588
- export declare const DeleteResourcePolicyResponseFilterSensitiveLog: (obj: DeleteResourcePolicyResponse) => any;
589
-
590
- export declare const DeleteSecretRequestFilterSensitiveLog: (obj: DeleteSecretRequest) => any;
591
-
592
- export declare const DeleteSecretResponseFilterSensitiveLog: (obj: DeleteSecretResponse) => any;
593
-
594
- export declare const DescribeSecretRequestFilterSensitiveLog: (obj: DescribeSecretRequest) => any;
595
-
596
- export declare const RotationRulesTypeFilterSensitiveLog: (obj: RotationRulesType) => any;
597
-
598
- export declare const DescribeSecretResponseFilterSensitiveLog: (obj: DescribeSecretResponse) => any;
599
-
600
- export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
601
-
602
- export declare const GetRandomPasswordRequestFilterSensitiveLog: (obj: GetRandomPasswordRequest) => any;
603
-
604
- export declare const GetRandomPasswordResponseFilterSensitiveLog: (obj: GetRandomPasswordResponse) => any;
605
-
606
- export declare const GetResourcePolicyRequestFilterSensitiveLog: (obj: GetResourcePolicyRequest) => any;
607
-
608
- export declare const GetResourcePolicyResponseFilterSensitiveLog: (obj: GetResourcePolicyResponse) => any;
609
-
610
- export declare const GetSecretValueRequestFilterSensitiveLog: (obj: GetSecretValueRequest) => any;
611
-
612
- export declare const GetSecretValueResponseFilterSensitiveLog: (obj: GetSecretValueResponse) => any;
613
-
614
- export declare const ListSecretsRequestFilterSensitiveLog: (obj: ListSecretsRequest) => any;
615
-
616
- export declare const SecretListEntryFilterSensitiveLog: (obj: SecretListEntry) => any;
617
-
618
- export declare const ListSecretsResponseFilterSensitiveLog: (obj: ListSecretsResponse) => any;
619
-
620
- export declare const ListSecretVersionIdsRequestFilterSensitiveLog: (obj: ListSecretVersionIdsRequest) => any;
621
-
622
- export declare const SecretVersionsListEntryFilterSensitiveLog: (obj: SecretVersionsListEntry) => any;
623
-
624
- export declare const ListSecretVersionIdsResponseFilterSensitiveLog: (obj: ListSecretVersionIdsResponse) => any;
625
-
626
- export declare const PutResourcePolicyRequestFilterSensitiveLog: (obj: PutResourcePolicyRequest) => any;
627
-
628
- export declare const PutResourcePolicyResponseFilterSensitiveLog: (obj: PutResourcePolicyResponse) => any;
629
-
630
- export declare const PutSecretValueRequestFilterSensitiveLog: (obj: PutSecretValueRequest) => any;
631
-
632
- export declare const PutSecretValueResponseFilterSensitiveLog: (obj: PutSecretValueResponse) => any;
633
-
634
- export declare const RemoveRegionsFromReplicationRequestFilterSensitiveLog: (obj: RemoveRegionsFromReplicationRequest) => any;
635
-
636
- export declare const RemoveRegionsFromReplicationResponseFilterSensitiveLog: (obj: RemoveRegionsFromReplicationResponse) => any;
637
-
638
- export declare const ReplicateSecretToRegionsRequestFilterSensitiveLog: (obj: ReplicateSecretToRegionsRequest) => any;
639
-
640
- export declare const ReplicateSecretToRegionsResponseFilterSensitiveLog: (obj: ReplicateSecretToRegionsResponse) => any;
641
-
642
- export declare const RestoreSecretRequestFilterSensitiveLog: (obj: RestoreSecretRequest) => any;
643
-
644
- export declare const RestoreSecretResponseFilterSensitiveLog: (obj: RestoreSecretResponse) => any;
645
-
646
- export declare const RotateSecretRequestFilterSensitiveLog: (obj: RotateSecretRequest) => any;
647
-
648
- export declare const RotateSecretResponseFilterSensitiveLog: (obj: RotateSecretResponse) => any;
649
-
650
- export declare const StopReplicationToReplicaRequestFilterSensitiveLog: (obj: StopReplicationToReplicaRequest) => any;
651
-
652
- export declare const StopReplicationToReplicaResponseFilterSensitiveLog: (obj: StopReplicationToReplicaResponse) => any;
653
-
654
- export declare const TagResourceRequestFilterSensitiveLog: (obj: TagResourceRequest) => any;
655
-
656
- export declare const UntagResourceRequestFilterSensitiveLog: (obj: UntagResourceRequest) => any;
657
-
658
- export declare const UpdateSecretRequestFilterSensitiveLog: (obj: UpdateSecretRequest) => any;
659
-
660
- export declare const UpdateSecretResponseFilterSensitiveLog: (obj: UpdateSecretResponse) => any;
661
-
662
- export declare const UpdateSecretVersionStageRequestFilterSensitiveLog: (obj: UpdateSecretVersionStageRequest) => any;
663
-
664
- export declare const UpdateSecretVersionStageResponseFilterSensitiveLog: (obj: UpdateSecretVersionStageResponse) => any;
665
-
666
- export declare const ValidateResourcePolicyRequestFilterSensitiveLog: (obj: ValidateResourcePolicyRequest) => any;
667
-
668
- export declare const ValidationErrorsEntryFilterSensitiveLog: (obj: ValidationErrorsEntry) => any;
669
-
670
- export declare const ValidateResourcePolicyResponseFilterSensitiveLog: (obj: ValidateResourcePolicyResponse) => any;
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
3
+
4
+ export interface ReplicaRegionType {
5
+ Region?: string;
6
+
7
+ KmsKeyId?: string;
8
+ }
9
+ export interface CancelRotateSecretRequest {
10
+ SecretId: string | undefined;
11
+ }
12
+ export interface CancelRotateSecretResponse {
13
+ ARN?: string;
14
+
15
+ Name?: string;
16
+
17
+ VersionId?: string;
18
+ }
19
+
20
+ export declare class InternalServiceError extends __BaseException {
21
+ readonly name: "InternalServiceError";
22
+ readonly $fault: "server";
23
+ Message?: string;
24
+
25
+ constructor(
26
+ opts: __ExceptionOptionType<InternalServiceError, __BaseException>
27
+ );
28
+ }
29
+
30
+ export declare class InvalidParameterException extends __BaseException {
31
+ readonly name: "InvalidParameterException";
32
+ readonly $fault: "client";
33
+ Message?: string;
34
+
35
+ constructor(
36
+ opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
37
+ );
38
+ }
39
+
40
+ export declare class InvalidRequestException extends __BaseException {
41
+ readonly name: "InvalidRequestException";
42
+ readonly $fault: "client";
43
+ Message?: string;
44
+
45
+ constructor(
46
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
47
+ );
48
+ }
49
+
50
+ export declare class ResourceNotFoundException extends __BaseException {
51
+ readonly name: "ResourceNotFoundException";
52
+ readonly $fault: "client";
53
+ Message?: string;
54
+
55
+ constructor(
56
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
57
+ );
58
+ }
59
+
60
+ export interface Tag {
61
+ Key?: string;
62
+
63
+ Value?: string;
64
+ }
65
+ export interface CreateSecretRequest {
66
+ Name: string | undefined;
67
+
68
+ ClientRequestToken?: string;
69
+
70
+ Description?: string;
71
+
72
+ KmsKeyId?: string;
73
+
74
+ SecretBinary?: Uint8Array;
75
+
76
+ SecretString?: string;
77
+
78
+ Tags?: Tag[];
79
+
80
+ AddReplicaRegions?: ReplicaRegionType[];
81
+
82
+ ForceOverwriteReplicaSecret?: boolean;
83
+ }
84
+ export declare enum StatusType {
85
+ Failed = "Failed",
86
+ InProgress = "InProgress",
87
+ InSync = "InSync",
88
+ }
89
+
90
+ export interface ReplicationStatusType {
91
+ Region?: string;
92
+
93
+ KmsKeyId?: string;
94
+
95
+ Status?: StatusType | string;
96
+
97
+ StatusMessage?: string;
98
+
99
+ LastAccessedDate?: Date;
100
+ }
101
+ export interface CreateSecretResponse {
102
+ ARN?: string;
103
+
104
+ Name?: string;
105
+
106
+ VersionId?: string;
107
+
108
+ ReplicationStatus?: ReplicationStatusType[];
109
+ }
110
+
111
+ export declare class DecryptionFailure extends __BaseException {
112
+ readonly name: "DecryptionFailure";
113
+ readonly $fault: "client";
114
+ Message?: string;
115
+
116
+ constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
117
+ }
118
+
119
+ export declare class EncryptionFailure extends __BaseException {
120
+ readonly name: "EncryptionFailure";
121
+ readonly $fault: "client";
122
+ Message?: string;
123
+
124
+ constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
125
+ }
126
+
127
+ export declare class LimitExceededException extends __BaseException {
128
+ readonly name: "LimitExceededException";
129
+ readonly $fault: "client";
130
+ Message?: string;
131
+
132
+ constructor(
133
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
134
+ );
135
+ }
136
+
137
+ export declare class MalformedPolicyDocumentException extends __BaseException {
138
+ readonly name: "MalformedPolicyDocumentException";
139
+ readonly $fault: "client";
140
+ Message?: string;
141
+
142
+ constructor(
143
+ opts: __ExceptionOptionType<
144
+ MalformedPolicyDocumentException,
145
+ __BaseException
146
+ >
147
+ );
148
+ }
149
+
150
+ export declare class PreconditionNotMetException extends __BaseException {
151
+ readonly name: "PreconditionNotMetException";
152
+ readonly $fault: "client";
153
+ Message?: string;
154
+
155
+ constructor(
156
+ opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>
157
+ );
158
+ }
159
+
160
+ export declare class ResourceExistsException extends __BaseException {
161
+ readonly name: "ResourceExistsException";
162
+ readonly $fault: "client";
163
+ Message?: string;
164
+
165
+ constructor(
166
+ opts: __ExceptionOptionType<ResourceExistsException, __BaseException>
167
+ );
168
+ }
169
+ export interface DeleteResourcePolicyRequest {
170
+ SecretId: string | undefined;
171
+ }
172
+ export interface DeleteResourcePolicyResponse {
173
+ ARN?: string;
174
+
175
+ Name?: string;
176
+ }
177
+ export interface DeleteSecretRequest {
178
+ SecretId: string | undefined;
179
+
180
+ RecoveryWindowInDays?: number;
181
+
182
+ ForceDeleteWithoutRecovery?: boolean;
183
+ }
184
+ export interface DeleteSecretResponse {
185
+ ARN?: string;
186
+
187
+ Name?: string;
188
+
189
+ DeletionDate?: Date;
190
+ }
191
+ export interface DescribeSecretRequest {
192
+ SecretId: string | undefined;
193
+ }
194
+
195
+ export interface RotationRulesType {
196
+ AutomaticallyAfterDays?: number;
197
+
198
+ Duration?: string;
199
+
200
+ ScheduleExpression?: string;
201
+ }
202
+ export interface DescribeSecretResponse {
203
+ ARN?: string;
204
+
205
+ Name?: string;
206
+
207
+ Description?: string;
208
+
209
+ KmsKeyId?: string;
210
+
211
+ RotationEnabled?: boolean;
212
+
213
+ RotationLambdaARN?: string;
214
+
215
+ RotationRules?: RotationRulesType;
216
+
217
+ LastRotatedDate?: Date;
218
+
219
+ LastChangedDate?: Date;
220
+
221
+ LastAccessedDate?: Date;
222
+
223
+ DeletedDate?: Date;
224
+
225
+ Tags?: Tag[];
226
+
227
+ VersionIdsToStages?: Record<string, string[]>;
228
+
229
+ OwningService?: string;
230
+
231
+ CreatedDate?: Date;
232
+
233
+ PrimaryRegion?: string;
234
+
235
+ ReplicationStatus?: ReplicationStatusType[];
236
+ }
237
+ export declare type FilterNameStringType =
238
+ | "all"
239
+ | "description"
240
+ | "name"
241
+ | "primary-region"
242
+ | "tag-key"
243
+ | "tag-value";
244
+
245
+ export interface Filter {
246
+ Key?: FilterNameStringType | string;
247
+
248
+ Values?: string[];
249
+ }
250
+ export interface GetRandomPasswordRequest {
251
+ PasswordLength?: number;
252
+
253
+ ExcludeCharacters?: string;
254
+
255
+ ExcludeNumbers?: boolean;
256
+
257
+ ExcludePunctuation?: boolean;
258
+
259
+ ExcludeUppercase?: boolean;
260
+
261
+ ExcludeLowercase?: boolean;
262
+
263
+ IncludeSpace?: boolean;
264
+
265
+ RequireEachIncludedType?: boolean;
266
+ }
267
+ export interface GetRandomPasswordResponse {
268
+ RandomPassword?: string;
269
+ }
270
+ export interface GetResourcePolicyRequest {
271
+ SecretId: string | undefined;
272
+ }
273
+ export interface GetResourcePolicyResponse {
274
+ ARN?: string;
275
+
276
+ Name?: string;
277
+
278
+ ResourcePolicy?: string;
279
+ }
280
+ export interface GetSecretValueRequest {
281
+ SecretId: string | undefined;
282
+
283
+ VersionId?: string;
284
+
285
+ VersionStage?: string;
286
+ }
287
+ export interface GetSecretValueResponse {
288
+ ARN?: string;
289
+
290
+ Name?: string;
291
+
292
+ VersionId?: string;
293
+
294
+ SecretBinary?: Uint8Array;
295
+
296
+ SecretString?: string;
297
+
298
+ VersionStages?: string[];
299
+
300
+ CreatedDate?: Date;
301
+ }
302
+
303
+ export declare class InvalidNextTokenException extends __BaseException {
304
+ readonly name: "InvalidNextTokenException";
305
+ readonly $fault: "client";
306
+ Message?: string;
307
+
308
+ constructor(
309
+ opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>
310
+ );
311
+ }
312
+ export declare enum SortOrderType {
313
+ asc = "asc",
314
+ desc = "desc",
315
+ }
316
+ export interface ListSecretsRequest {
317
+ MaxResults?: number;
318
+
319
+ NextToken?: string;
320
+
321
+ Filters?: Filter[];
322
+
323
+ SortOrder?: SortOrderType | string;
324
+ }
325
+
326
+ export interface SecretListEntry {
327
+ ARN?: string;
328
+
329
+ Name?: string;
330
+
331
+ Description?: string;
332
+
333
+ KmsKeyId?: string;
334
+
335
+ RotationEnabled?: boolean;
336
+
337
+ RotationLambdaARN?: string;
338
+
339
+ RotationRules?: RotationRulesType;
340
+
341
+ LastRotatedDate?: Date;
342
+
343
+ LastChangedDate?: Date;
344
+
345
+ LastAccessedDate?: Date;
346
+
347
+ DeletedDate?: Date;
348
+
349
+ Tags?: Tag[];
350
+
351
+ SecretVersionsToStages?: Record<string, string[]>;
352
+
353
+ OwningService?: string;
354
+
355
+ CreatedDate?: Date;
356
+
357
+ PrimaryRegion?: string;
358
+ }
359
+ export interface ListSecretsResponse {
360
+ SecretList?: SecretListEntry[];
361
+
362
+ NextToken?: string;
363
+ }
364
+ export interface ListSecretVersionIdsRequest {
365
+ SecretId: string | undefined;
366
+
367
+ MaxResults?: number;
368
+
369
+ NextToken?: string;
370
+
371
+ IncludeDeprecated?: boolean;
372
+ }
373
+
374
+ export interface SecretVersionsListEntry {
375
+ VersionId?: string;
376
+
377
+ VersionStages?: string[];
378
+
379
+ LastAccessedDate?: Date;
380
+
381
+ CreatedDate?: Date;
382
+
383
+ KmsKeyIds?: string[];
384
+ }
385
+ export interface ListSecretVersionIdsResponse {
386
+ Versions?: SecretVersionsListEntry[];
387
+
388
+ NextToken?: string;
389
+
390
+ ARN?: string;
391
+
392
+ Name?: string;
393
+ }
394
+
395
+ export declare class PublicPolicyException extends __BaseException {
396
+ readonly name: "PublicPolicyException";
397
+ readonly $fault: "client";
398
+ Message?: string;
399
+
400
+ constructor(
401
+ opts: __ExceptionOptionType<PublicPolicyException, __BaseException>
402
+ );
403
+ }
404
+ export interface PutResourcePolicyRequest {
405
+ SecretId: string | undefined;
406
+
407
+ ResourcePolicy: string | undefined;
408
+
409
+ BlockPublicPolicy?: boolean;
410
+ }
411
+ export interface PutResourcePolicyResponse {
412
+ ARN?: string;
413
+
414
+ Name?: string;
415
+ }
416
+ export interface PutSecretValueRequest {
417
+ SecretId: string | undefined;
418
+
419
+ ClientRequestToken?: string;
420
+
421
+ SecretBinary?: Uint8Array;
422
+
423
+ SecretString?: string;
424
+
425
+ VersionStages?: string[];
426
+ }
427
+ export interface PutSecretValueResponse {
428
+ ARN?: string;
429
+
430
+ Name?: string;
431
+
432
+ VersionId?: string;
433
+
434
+ VersionStages?: string[];
435
+ }
436
+ export interface RemoveRegionsFromReplicationRequest {
437
+ SecretId: string | undefined;
438
+
439
+ RemoveReplicaRegions: string[] | undefined;
440
+ }
441
+ export interface RemoveRegionsFromReplicationResponse {
442
+ ARN?: string;
443
+
444
+ ReplicationStatus?: ReplicationStatusType[];
445
+ }
446
+ export interface ReplicateSecretToRegionsRequest {
447
+ SecretId: string | undefined;
448
+
449
+ AddReplicaRegions: ReplicaRegionType[] | undefined;
450
+
451
+ ForceOverwriteReplicaSecret?: boolean;
452
+ }
453
+ export interface ReplicateSecretToRegionsResponse {
454
+ ARN?: string;
455
+
456
+ ReplicationStatus?: ReplicationStatusType[];
457
+ }
458
+ export interface RestoreSecretRequest {
459
+ SecretId: string | undefined;
460
+ }
461
+ export interface RestoreSecretResponse {
462
+ ARN?: string;
463
+
464
+ Name?: string;
465
+ }
466
+ export interface RotateSecretRequest {
467
+ SecretId: string | undefined;
468
+
469
+ ClientRequestToken?: string;
470
+
471
+ RotationLambdaARN?: string;
472
+
473
+ RotationRules?: RotationRulesType;
474
+
475
+ RotateImmediately?: boolean;
476
+ }
477
+ export interface RotateSecretResponse {
478
+ ARN?: string;
479
+
480
+ Name?: string;
481
+
482
+ VersionId?: string;
483
+ }
484
+ export interface StopReplicationToReplicaRequest {
485
+ SecretId: string | undefined;
486
+ }
487
+ export interface StopReplicationToReplicaResponse {
488
+ ARN?: string;
489
+ }
490
+ export interface TagResourceRequest {
491
+ SecretId: string | undefined;
492
+
493
+ Tags: Tag[] | undefined;
494
+ }
495
+ export interface UntagResourceRequest {
496
+ SecretId: string | undefined;
497
+
498
+ TagKeys: string[] | undefined;
499
+ }
500
+ export interface UpdateSecretRequest {
501
+ SecretId: string | undefined;
502
+
503
+ ClientRequestToken?: string;
504
+
505
+ Description?: string;
506
+
507
+ KmsKeyId?: string;
508
+
509
+ SecretBinary?: Uint8Array;
510
+
511
+ SecretString?: string;
512
+ }
513
+ export interface UpdateSecretResponse {
514
+ ARN?: string;
515
+
516
+ Name?: string;
517
+
518
+ VersionId?: string;
519
+ }
520
+ export interface UpdateSecretVersionStageRequest {
521
+ SecretId: string | undefined;
522
+
523
+ VersionStage: string | undefined;
524
+
525
+ RemoveFromVersionId?: string;
526
+
527
+ MoveToVersionId?: string;
528
+ }
529
+ export interface UpdateSecretVersionStageResponse {
530
+ ARN?: string;
531
+
532
+ Name?: string;
533
+ }
534
+ export interface ValidateResourcePolicyRequest {
535
+ SecretId?: string;
536
+
537
+ ResourcePolicy: string | undefined;
538
+ }
539
+
540
+ export interface ValidationErrorsEntry {
541
+ CheckName?: string;
542
+
543
+ ErrorMessage?: string;
544
+ }
545
+ export interface ValidateResourcePolicyResponse {
546
+ PolicyValidationPassed?: boolean;
547
+
548
+ ValidationErrors?: ValidationErrorsEntry[];
549
+ }
550
+
551
+ export declare const ReplicaRegionTypeFilterSensitiveLog: (
552
+ obj: ReplicaRegionType
553
+ ) => any;
554
+
555
+ export declare const CancelRotateSecretRequestFilterSensitiveLog: (
556
+ obj: CancelRotateSecretRequest
557
+ ) => any;
558
+
559
+ export declare const CancelRotateSecretResponseFilterSensitiveLog: (
560
+ obj: CancelRotateSecretResponse
561
+ ) => any;
562
+
563
+ export declare const TagFilterSensitiveLog: (obj: Tag) => any;
564
+
565
+ export declare const CreateSecretRequestFilterSensitiveLog: (
566
+ obj: CreateSecretRequest
567
+ ) => any;
568
+
569
+ export declare const ReplicationStatusTypeFilterSensitiveLog: (
570
+ obj: ReplicationStatusType
571
+ ) => any;
572
+
573
+ export declare const CreateSecretResponseFilterSensitiveLog: (
574
+ obj: CreateSecretResponse
575
+ ) => any;
576
+
577
+ export declare const DeleteResourcePolicyRequestFilterSensitiveLog: (
578
+ obj: DeleteResourcePolicyRequest
579
+ ) => any;
580
+
581
+ export declare const DeleteResourcePolicyResponseFilterSensitiveLog: (
582
+ obj: DeleteResourcePolicyResponse
583
+ ) => any;
584
+
585
+ export declare const DeleteSecretRequestFilterSensitiveLog: (
586
+ obj: DeleteSecretRequest
587
+ ) => any;
588
+
589
+ export declare const DeleteSecretResponseFilterSensitiveLog: (
590
+ obj: DeleteSecretResponse
591
+ ) => any;
592
+
593
+ export declare const DescribeSecretRequestFilterSensitiveLog: (
594
+ obj: DescribeSecretRequest
595
+ ) => any;
596
+
597
+ export declare const RotationRulesTypeFilterSensitiveLog: (
598
+ obj: RotationRulesType
599
+ ) => any;
600
+
601
+ export declare const DescribeSecretResponseFilterSensitiveLog: (
602
+ obj: DescribeSecretResponse
603
+ ) => any;
604
+
605
+ export declare const FilterFilterSensitiveLog: (obj: Filter) => any;
606
+
607
+ export declare const GetRandomPasswordRequestFilterSensitiveLog: (
608
+ obj: GetRandomPasswordRequest
609
+ ) => any;
610
+
611
+ export declare const GetRandomPasswordResponseFilterSensitiveLog: (
612
+ obj: GetRandomPasswordResponse
613
+ ) => any;
614
+
615
+ export declare const GetResourcePolicyRequestFilterSensitiveLog: (
616
+ obj: GetResourcePolicyRequest
617
+ ) => any;
618
+
619
+ export declare const GetResourcePolicyResponseFilterSensitiveLog: (
620
+ obj: GetResourcePolicyResponse
621
+ ) => any;
622
+
623
+ export declare const GetSecretValueRequestFilterSensitiveLog: (
624
+ obj: GetSecretValueRequest
625
+ ) => any;
626
+
627
+ export declare const GetSecretValueResponseFilterSensitiveLog: (
628
+ obj: GetSecretValueResponse
629
+ ) => any;
630
+
631
+ export declare const ListSecretsRequestFilterSensitiveLog: (
632
+ obj: ListSecretsRequest
633
+ ) => any;
634
+
635
+ export declare const SecretListEntryFilterSensitiveLog: (
636
+ obj: SecretListEntry
637
+ ) => any;
638
+
639
+ export declare const ListSecretsResponseFilterSensitiveLog: (
640
+ obj: ListSecretsResponse
641
+ ) => any;
642
+
643
+ export declare const ListSecretVersionIdsRequestFilterSensitiveLog: (
644
+ obj: ListSecretVersionIdsRequest
645
+ ) => any;
646
+
647
+ export declare const SecretVersionsListEntryFilterSensitiveLog: (
648
+ obj: SecretVersionsListEntry
649
+ ) => any;
650
+
651
+ export declare const ListSecretVersionIdsResponseFilterSensitiveLog: (
652
+ obj: ListSecretVersionIdsResponse
653
+ ) => any;
654
+
655
+ export declare const PutResourcePolicyRequestFilterSensitiveLog: (
656
+ obj: PutResourcePolicyRequest
657
+ ) => any;
658
+
659
+ export declare const PutResourcePolicyResponseFilterSensitiveLog: (
660
+ obj: PutResourcePolicyResponse
661
+ ) => any;
662
+
663
+ export declare const PutSecretValueRequestFilterSensitiveLog: (
664
+ obj: PutSecretValueRequest
665
+ ) => any;
666
+
667
+ export declare const PutSecretValueResponseFilterSensitiveLog: (
668
+ obj: PutSecretValueResponse
669
+ ) => any;
670
+
671
+ export declare const RemoveRegionsFromReplicationRequestFilterSensitiveLog: (
672
+ obj: RemoveRegionsFromReplicationRequest
673
+ ) => any;
674
+
675
+ export declare const RemoveRegionsFromReplicationResponseFilterSensitiveLog: (
676
+ obj: RemoveRegionsFromReplicationResponse
677
+ ) => any;
678
+
679
+ export declare const ReplicateSecretToRegionsRequestFilterSensitiveLog: (
680
+ obj: ReplicateSecretToRegionsRequest
681
+ ) => any;
682
+
683
+ export declare const ReplicateSecretToRegionsResponseFilterSensitiveLog: (
684
+ obj: ReplicateSecretToRegionsResponse
685
+ ) => any;
686
+
687
+ export declare const RestoreSecretRequestFilterSensitiveLog: (
688
+ obj: RestoreSecretRequest
689
+ ) => any;
690
+
691
+ export declare const RestoreSecretResponseFilterSensitiveLog: (
692
+ obj: RestoreSecretResponse
693
+ ) => any;
694
+
695
+ export declare const RotateSecretRequestFilterSensitiveLog: (
696
+ obj: RotateSecretRequest
697
+ ) => any;
698
+
699
+ export declare const RotateSecretResponseFilterSensitiveLog: (
700
+ obj: RotateSecretResponse
701
+ ) => any;
702
+
703
+ export declare const StopReplicationToReplicaRequestFilterSensitiveLog: (
704
+ obj: StopReplicationToReplicaRequest
705
+ ) => any;
706
+
707
+ export declare const StopReplicationToReplicaResponseFilterSensitiveLog: (
708
+ obj: StopReplicationToReplicaResponse
709
+ ) => any;
710
+
711
+ export declare const TagResourceRequestFilterSensitiveLog: (
712
+ obj: TagResourceRequest
713
+ ) => any;
714
+
715
+ export declare const UntagResourceRequestFilterSensitiveLog: (
716
+ obj: UntagResourceRequest
717
+ ) => any;
718
+
719
+ export declare const UpdateSecretRequestFilterSensitiveLog: (
720
+ obj: UpdateSecretRequest
721
+ ) => any;
722
+
723
+ export declare const UpdateSecretResponseFilterSensitiveLog: (
724
+ obj: UpdateSecretResponse
725
+ ) => any;
726
+
727
+ export declare const UpdateSecretVersionStageRequestFilterSensitiveLog: (
728
+ obj: UpdateSecretVersionStageRequest
729
+ ) => any;
730
+
731
+ export declare const UpdateSecretVersionStageResponseFilterSensitiveLog: (
732
+ obj: UpdateSecretVersionStageResponse
733
+ ) => any;
734
+
735
+ export declare const ValidateResourcePolicyRequestFilterSensitiveLog: (
736
+ obj: ValidateResourcePolicyRequest
737
+ ) => any;
738
+
739
+ export declare const ValidationErrorsEntryFilterSensitiveLog: (
740
+ obj: ValidationErrorsEntry
741
+ ) => any;
742
+
743
+ export declare const ValidateResourcePolicyResponseFilterSensitiveLog: (
744
+ obj: ValidateResourcePolicyResponse
745
+ ) => any;