@aws-sdk/client-secrets-manager 3.52.0 → 3.53.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.
@@ -3,3 +3,4 @@ export * from "./SecretsManagerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { SecretsManagerServiceException } from "./models/SecretsManagerServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from SecretsManager service.
4
+ */
5
+ export declare class SecretsManagerServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
2
3
  /**
3
4
  * <p>A custom type that specifies a <code>Region</code> and the <code>KmsKeyId</code> for a replica secret.</p>
4
5
  */
@@ -59,18 +60,26 @@ export declare namespace CancelRotateSecretResponse {
59
60
  /**
60
61
  * <p>An error occurred on the server side.</p>
61
62
  */
62
- export interface InternalServiceError extends __SmithyException, $MetadataBearer {
63
- name: "InternalServiceError";
64
- $fault: "server";
63
+ export declare class InternalServiceError extends __BaseException {
64
+ readonly name: "InternalServiceError";
65
+ readonly $fault: "server";
65
66
  Message?: string;
67
+ /**
68
+ * @internal
69
+ */
70
+ constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
66
71
  }
67
72
  /**
68
73
  * <p>The parameter name or value is invalid.</p>
69
74
  */
70
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
71
- name: "InvalidParameterException";
72
- $fault: "client";
75
+ export declare class InvalidParameterException extends __BaseException {
76
+ readonly name: "InvalidParameterException";
77
+ readonly $fault: "client";
73
78
  Message?: string;
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
74
83
  }
75
84
  /**
76
85
  * <p>A parameter value is not valid for the current state of the
@@ -86,18 +95,26 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
86
95
  * </li>
87
96
  * </ul>
88
97
  */
89
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
90
- name: "InvalidRequestException";
91
- $fault: "client";
98
+ export declare class InvalidRequestException extends __BaseException {
99
+ readonly name: "InvalidRequestException";
100
+ readonly $fault: "client";
92
101
  Message?: string;
102
+ /**
103
+ * @internal
104
+ */
105
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
93
106
  }
94
107
  /**
95
108
  * <p>Secrets Manager can't find the resource that you asked for.</p>
96
109
  */
97
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
98
- name: "ResourceNotFoundException";
99
- $fault: "client";
110
+ export declare class ResourceNotFoundException extends __BaseException {
111
+ readonly name: "ResourceNotFoundException";
112
+ readonly $fault: "client";
100
113
  Message?: string;
114
+ /**
115
+ * @internal
116
+ */
117
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
101
118
  }
102
119
  /**
103
120
  * <p>A structure that contains information about a tag.</p>
@@ -343,52 +360,76 @@ export declare namespace CreateSecretResponse {
343
360
  /**
344
361
  * <p>Secrets Manager can't decrypt the protected secret text using the provided KMS key. </p>
345
362
  */
346
- export interface DecryptionFailure extends __SmithyException, $MetadataBearer {
347
- name: "DecryptionFailure";
348
- $fault: "client";
363
+ export declare class DecryptionFailure extends __BaseException {
364
+ readonly name: "DecryptionFailure";
365
+ readonly $fault: "client";
349
366
  Message?: string;
367
+ /**
368
+ * @internal
369
+ */
370
+ constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
350
371
  }
351
372
  /**
352
373
  * <p>Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the
353
374
  * KMS key is available, enabled, and not in an invalid state. For more
354
375
  * information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a>.</p>
355
376
  */
356
- export interface EncryptionFailure extends __SmithyException, $MetadataBearer {
357
- name: "EncryptionFailure";
358
- $fault: "client";
377
+ export declare class EncryptionFailure extends __BaseException {
378
+ readonly name: "EncryptionFailure";
379
+ readonly $fault: "client";
359
380
  Message?: string;
381
+ /**
382
+ * @internal
383
+ */
384
+ constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
360
385
  }
361
386
  /**
362
387
  * <p>The request failed because it would exceed one of the Secrets Manager quotas.</p>
363
388
  */
364
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
365
- name: "LimitExceededException";
366
- $fault: "client";
389
+ export declare class LimitExceededException extends __BaseException {
390
+ readonly name: "LimitExceededException";
391
+ readonly $fault: "client";
367
392
  Message?: string;
393
+ /**
394
+ * @internal
395
+ */
396
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
368
397
  }
369
398
  /**
370
399
  * <p>The resource policy has syntax errors.</p>
371
400
  */
372
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
373
- name: "MalformedPolicyDocumentException";
374
- $fault: "client";
401
+ export declare class MalformedPolicyDocumentException extends __BaseException {
402
+ readonly name: "MalformedPolicyDocumentException";
403
+ readonly $fault: "client";
375
404
  Message?: string;
405
+ /**
406
+ * @internal
407
+ */
408
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
376
409
  }
377
410
  /**
378
411
  * <p>The request failed because you did not complete all the prerequisite steps.</p>
379
412
  */
380
- export interface PreconditionNotMetException extends __SmithyException, $MetadataBearer {
381
- name: "PreconditionNotMetException";
382
- $fault: "client";
413
+ export declare class PreconditionNotMetException extends __BaseException {
414
+ readonly name: "PreconditionNotMetException";
415
+ readonly $fault: "client";
383
416
  Message?: string;
417
+ /**
418
+ * @internal
419
+ */
420
+ constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
384
421
  }
385
422
  /**
386
423
  * <p>A resource with the ID you requested already exists.</p>
387
424
  */
388
- export interface ResourceExistsException extends __SmithyException, $MetadataBearer {
389
- name: "ResourceExistsException";
390
- $fault: "client";
425
+ export declare class ResourceExistsException extends __BaseException {
426
+ readonly name: "ResourceExistsException";
427
+ readonly $fault: "client";
391
428
  Message?: string;
429
+ /**
430
+ * @internal
431
+ */
432
+ constructor(opts: __ExceptionOptionType<ResourceExistsException, __BaseException>);
392
433
  }
393
434
  export interface DeleteResourcePolicyRequest {
394
435
  /**
@@ -895,10 +936,14 @@ export declare namespace GetSecretValueResponse {
895
936
  /**
896
937
  * <p>The <code>NextToken</code> value is invalid.</p>
897
938
  */
898
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
899
- name: "InvalidNextTokenException";
900
- $fault: "client";
939
+ export declare class InvalidNextTokenException extends __BaseException {
940
+ readonly name: "InvalidNextTokenException";
941
+ readonly $fault: "client";
901
942
  Message?: string;
943
+ /**
944
+ * @internal
945
+ */
946
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
902
947
  }
903
948
  export declare enum SortOrderType {
904
949
  asc = "asc",
@@ -1152,10 +1197,14 @@ export declare namespace ListSecretVersionIdsResponse {
1152
1197
  /**
1153
1198
  * <p>The <code>BlockPublicPolicy</code> parameter is set to true, and the resource policy did not prevent broad access to the secret.</p>
1154
1199
  */
1155
- export interface PublicPolicyException extends __SmithyException, $MetadataBearer {
1156
- name: "PublicPolicyException";
1157
- $fault: "client";
1200
+ export declare class PublicPolicyException extends __BaseException {
1201
+ readonly name: "PublicPolicyException";
1202
+ readonly $fault: "client";
1158
1203
  Message?: string;
1204
+ /**
1205
+ * @internal
1206
+ */
1207
+ constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
1159
1208
  }
1160
1209
  export interface PutResourcePolicyRequest {
1161
1210
  /**
@@ -3,3 +3,4 @@ export * from "./SecretsManagerClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { SecretsManagerServiceException } from "./models/SecretsManagerServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class SecretsManagerServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
2
3
 
3
4
  export interface ReplicaRegionType {
4
5
 
@@ -31,28 +32,36 @@ export declare namespace CancelRotateSecretResponse {
31
32
  const filterSensitiveLog: (obj: CancelRotateSecretResponse) => any;
32
33
  }
33
34
 
34
- export interface InternalServiceError extends __SmithyException, $MetadataBearer {
35
- name: "InternalServiceError";
36
- $fault: "server";
35
+ export declare class InternalServiceError extends __BaseException {
36
+ readonly name: "InternalServiceError";
37
+ readonly $fault: "server";
37
38
  Message?: string;
39
+
40
+ constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
38
41
  }
39
42
 
40
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
41
- name: "InvalidParameterException";
42
- $fault: "client";
43
+ export declare class InvalidParameterException extends __BaseException {
44
+ readonly name: "InvalidParameterException";
45
+ readonly $fault: "client";
43
46
  Message?: string;
47
+
48
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
44
49
  }
45
50
 
46
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
47
- name: "InvalidRequestException";
48
- $fault: "client";
51
+ export declare class InvalidRequestException extends __BaseException {
52
+ readonly name: "InvalidRequestException";
53
+ readonly $fault: "client";
49
54
  Message?: string;
55
+
56
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
50
57
  }
51
58
 
52
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
53
- name: "ResourceNotFoundException";
54
- $fault: "client";
59
+ export declare class ResourceNotFoundException extends __BaseException {
60
+ readonly name: "ResourceNotFoundException";
61
+ readonly $fault: "client";
55
62
  Message?: string;
63
+
64
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
56
65
  }
57
66
 
58
67
  export interface Tag {
@@ -126,40 +135,52 @@ export declare namespace CreateSecretResponse {
126
135
  const filterSensitiveLog: (obj: CreateSecretResponse) => any;
127
136
  }
128
137
 
129
- export interface DecryptionFailure extends __SmithyException, $MetadataBearer {
130
- name: "DecryptionFailure";
131
- $fault: "client";
138
+ export declare class DecryptionFailure extends __BaseException {
139
+ readonly name: "DecryptionFailure";
140
+ readonly $fault: "client";
132
141
  Message?: string;
142
+
143
+ constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
133
144
  }
134
145
 
135
- export interface EncryptionFailure extends __SmithyException, $MetadataBearer {
136
- name: "EncryptionFailure";
137
- $fault: "client";
146
+ export declare class EncryptionFailure extends __BaseException {
147
+ readonly name: "EncryptionFailure";
148
+ readonly $fault: "client";
138
149
  Message?: string;
150
+
151
+ constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
139
152
  }
140
153
 
141
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
142
- name: "LimitExceededException";
143
- $fault: "client";
154
+ export declare class LimitExceededException extends __BaseException {
155
+ readonly name: "LimitExceededException";
156
+ readonly $fault: "client";
144
157
  Message?: string;
158
+
159
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
145
160
  }
146
161
 
147
- export interface MalformedPolicyDocumentException extends __SmithyException, $MetadataBearer {
148
- name: "MalformedPolicyDocumentException";
149
- $fault: "client";
162
+ export declare class MalformedPolicyDocumentException extends __BaseException {
163
+ readonly name: "MalformedPolicyDocumentException";
164
+ readonly $fault: "client";
150
165
  Message?: string;
166
+
167
+ constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
151
168
  }
152
169
 
153
- export interface PreconditionNotMetException extends __SmithyException, $MetadataBearer {
154
- name: "PreconditionNotMetException";
155
- $fault: "client";
170
+ export declare class PreconditionNotMetException extends __BaseException {
171
+ readonly name: "PreconditionNotMetException";
172
+ readonly $fault: "client";
156
173
  Message?: string;
174
+
175
+ constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
157
176
  }
158
177
 
159
- export interface ResourceExistsException extends __SmithyException, $MetadataBearer {
160
- name: "ResourceExistsException";
161
- $fault: "client";
178
+ export declare class ResourceExistsException extends __BaseException {
179
+ readonly name: "ResourceExistsException";
180
+ readonly $fault: "client";
162
181
  Message?: string;
182
+
183
+ constructor(opts: __ExceptionOptionType<ResourceExistsException, __BaseException>);
163
184
  }
164
185
  export interface DeleteResourcePolicyRequest {
165
186
 
@@ -361,10 +382,12 @@ export declare namespace GetSecretValueResponse {
361
382
  const filterSensitiveLog: (obj: GetSecretValueResponse) => any;
362
383
  }
363
384
 
364
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
365
- name: "InvalidNextTokenException";
366
- $fault: "client";
385
+ export declare class InvalidNextTokenException extends __BaseException {
386
+ readonly name: "InvalidNextTokenException";
387
+ readonly $fault: "client";
367
388
  Message?: string;
389
+
390
+ constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
368
391
  }
369
392
  export declare enum SortOrderType {
370
393
  asc = "asc",
@@ -481,10 +504,12 @@ export declare namespace ListSecretVersionIdsResponse {
481
504
  const filterSensitiveLog: (obj: ListSecretVersionIdsResponse) => any;
482
505
  }
483
506
 
484
- export interface PublicPolicyException extends __SmithyException, $MetadataBearer {
485
- name: "PublicPolicyException";
486
- $fault: "client";
507
+ export declare class PublicPolicyException extends __BaseException {
508
+ readonly name: "PublicPolicyException";
509
+ readonly $fault: "client";
487
510
  Message?: string;
511
+
512
+ constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
488
513
  }
489
514
  export interface PutResourcePolicyRequest {
490
515
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-secrets-manager",
3
3
  "description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",