@aws-sdk/client-secrets-manager 3.934.0 → 3.935.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +72 -29
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +18 -0
- package/dist-es/models/errors.js +169 -0
- package/dist-es/models/models_0.js +1 -187
- package/dist-es/schemas/schemas_0.js +54 -12
- package/dist-types/commands/BatchGetSecretValueCommand.d.ts +17 -6
- package/dist-types/commands/CancelRotateSecretCommand.d.ts +11 -13
- package/dist-types/commands/CreateSecretCommand.d.ts +40 -30
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +5 -5
- package/dist-types/commands/DeleteSecretCommand.d.ts +25 -23
- package/dist-types/commands/DescribeSecretCommand.d.ts +13 -5
- package/dist-types/commands/GetRandomPasswordCommand.d.ts +10 -7
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +5 -7
- package/dist-types/commands/GetSecretValueCommand.d.ts +12 -12
- package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +6 -6
- package/dist-types/commands/ListSecretsCommand.d.ts +20 -7
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +5 -6
- package/dist-types/commands/PutSecretValueCommand.d.ts +29 -25
- package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +5 -3
- package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +8 -3
- package/dist-types/commands/RestoreSecretCommand.d.ts +5 -5
- package/dist-types/commands/RotateSecretCommand.d.ts +28 -13
- package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +7 -5
- package/dist-types/commands/TagResourceCommand.d.ts +12 -11
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -8
- package/dist-types/commands/UpdateSecretCommand.d.ts +35 -24
- package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +19 -16
- package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +8 -6
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +42 -0
- package/dist-types/models/errors.d.ts +175 -0
- package/dist-types/models/models_0.d.ts +582 -588
- package/dist-types/schemas/schemas_0.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +22 -0
- package/dist-types/ts3.4/models/errors.d.ts +97 -0
- package/dist-types/ts3.4/models/models_0.d.ts +21 -119
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { SecretsManagerServiceException as __BaseException } from "./SecretsManagerServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Secrets Manager can't decrypt the protected secret text using the provided KMS key. </p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class DecryptionFailure extends __BaseException {
|
|
8
|
+
readonly name: "DecryptionFailure";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
Message?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
constructor(opts: __ExceptionOptionType<DecryptionFailure, __BaseException>);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* <p>An error occurred on the server side.</p>
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare class InternalServiceError extends __BaseException {
|
|
21
|
+
readonly name: "InternalServiceError";
|
|
22
|
+
readonly $fault: "server";
|
|
23
|
+
Message?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
constructor(opts: __ExceptionOptionType<InternalServiceError, __BaseException>);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* <p>The <code>NextToken</code> value is invalid.</p>
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export declare class InvalidNextTokenException extends __BaseException {
|
|
34
|
+
readonly name: "InvalidNextTokenException";
|
|
35
|
+
readonly $fault: "client";
|
|
36
|
+
Message?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* <p>The parameter name or value is invalid.</p>
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
47
|
+
readonly name: "InvalidParameterException";
|
|
48
|
+
readonly $fault: "client";
|
|
49
|
+
Message?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* <p>A parameter value is not valid for the current state of the
|
|
57
|
+
* resource.</p>
|
|
58
|
+
* <p>Possible causes:</p>
|
|
59
|
+
* <ul>
|
|
60
|
+
* <li>
|
|
61
|
+
* <p>The secret is scheduled for deletion.</p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>You tried to enable rotation on a secret that doesn't already have a Lambda function
|
|
65
|
+
* ARN configured and you didn't include such an ARN as a parameter in this call. </p>
|
|
66
|
+
* </li>
|
|
67
|
+
* <li>
|
|
68
|
+
* <p>The secret is managed by another service, and you must use that service to update it.
|
|
69
|
+
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html">Secrets managed by other Amazon Web Services services</a>.</p>
|
|
70
|
+
* </li>
|
|
71
|
+
* </ul>
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class InvalidRequestException extends __BaseException {
|
|
75
|
+
readonly name: "InvalidRequestException";
|
|
76
|
+
readonly $fault: "client";
|
|
77
|
+
Message?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* <p>Secrets Manager can't find the resource that you asked for.</p>
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
88
|
+
readonly name: "ResourceNotFoundException";
|
|
89
|
+
readonly $fault: "client";
|
|
90
|
+
Message?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* <p>Secrets Manager can't encrypt the protected secret text using the provided KMS key. Check that the
|
|
98
|
+
* KMS key is available, enabled, and not in an invalid state. For more
|
|
99
|
+
* information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a>.</p>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class EncryptionFailure extends __BaseException {
|
|
103
|
+
readonly name: "EncryptionFailure";
|
|
104
|
+
readonly $fault: "client";
|
|
105
|
+
Message?: string | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<EncryptionFailure, __BaseException>);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* <p>The request failed because it would exceed one of the Secrets Manager quotas.</p>
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export declare class LimitExceededException extends __BaseException {
|
|
116
|
+
readonly name: "LimitExceededException";
|
|
117
|
+
readonly $fault: "client";
|
|
118
|
+
Message?: string | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* <p>The resource policy has syntax errors.</p>
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
129
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
130
|
+
readonly $fault: "client";
|
|
131
|
+
Message?: string | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
*/
|
|
135
|
+
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* <p>The request failed because you did not complete all the prerequisite steps.</p>
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export declare class PreconditionNotMetException extends __BaseException {
|
|
142
|
+
readonly name: "PreconditionNotMetException";
|
|
143
|
+
readonly $fault: "client";
|
|
144
|
+
Message?: string | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
constructor(opts: __ExceptionOptionType<PreconditionNotMetException, __BaseException>);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* <p>A resource with the ID you requested already exists.</p>
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
export declare class ResourceExistsException extends __BaseException {
|
|
155
|
+
readonly name: "ResourceExistsException";
|
|
156
|
+
readonly $fault: "client";
|
|
157
|
+
Message?: string | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
*/
|
|
161
|
+
constructor(opts: __ExceptionOptionType<ResourceExistsException, __BaseException>);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* <p>The <code>BlockPublicPolicy</code> parameter is set to true, and the resource policy did not prevent broad access to the secret.</p>
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
export declare class PublicPolicyException extends __BaseException {
|
|
168
|
+
readonly name: "PublicPolicyException";
|
|
169
|
+
readonly $fault: "client";
|
|
170
|
+
Message?: string | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(opts: __ExceptionOptionType<PublicPolicyException, __BaseException>);
|
|
175
|
+
}
|