@aws-sdk/client-secrets-manager 3.52.0 → 3.54.1
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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/SecretsManagerServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +171 -2
- package/dist-cjs/protocols/Aws_json1_1.js +246 -923
- package/dist-es/index.js +1 -0
- package/dist-es/models/SecretsManagerServiceException.js +12 -0
- package/dist-es/models/models_0.js +158 -1
- package/dist-es/protocols/Aws_json1_1.js +529 -988
- package/dist-types/SecretsManagerClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SecretsManagerServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +86 -37
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SecretsManagerClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SecretsManagerServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +62 -37
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecretsManagerServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./SecretsManager"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./SecretsManagerClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var SecretsManagerServiceException_1 = require("./models/SecretsManagerServiceException");
|
|
11
|
+
Object.defineProperty(exports, "SecretsManagerServiceException", { enumerable: true, get: function () { return SecretsManagerServiceException_1.SecretsManagerServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecretsManagerServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class SecretsManagerServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, SecretsManagerServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SecretsManagerServiceException = SecretsManagerServiceException;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ValidateResourcePolicyResponse = exports.ValidationErrorsEntry = void 0;
|
|
3
|
+
exports.RestoreSecretRequest = exports.ReplicateSecretToRegionsResponse = exports.ReplicateSecretToRegionsRequest = exports.RemoveRegionsFromReplicationResponse = exports.RemoveRegionsFromReplicationRequest = exports.PutSecretValueResponse = exports.PutSecretValueRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PublicPolicyException = exports.ListSecretVersionIdsResponse = exports.SecretVersionsListEntry = exports.ListSecretVersionIdsRequest = exports.ListSecretsResponse = exports.SecretListEntry = exports.ListSecretsRequest = exports.SortOrderType = exports.InvalidNextTokenException = exports.GetSecretValueResponse = exports.GetSecretValueRequest = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetRandomPasswordResponse = exports.GetRandomPasswordRequest = exports.Filter = exports.DescribeSecretResponse = exports.RotationRulesType = exports.DescribeSecretRequest = exports.DeleteSecretResponse = exports.DeleteSecretRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.ResourceExistsException = exports.PreconditionNotMetException = exports.MalformedPolicyDocumentException = exports.LimitExceededException = exports.EncryptionFailure = exports.DecryptionFailure = exports.CreateSecretResponse = exports.ReplicationStatusType = exports.StatusType = exports.CreateSecretRequest = exports.Tag = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InvalidParameterException = exports.InternalServiceError = exports.CancelRotateSecretResponse = exports.CancelRotateSecretRequest = exports.ReplicaRegionType = void 0;
|
|
4
|
+
exports.ValidateResourcePolicyResponse = exports.ValidationErrorsEntry = exports.ValidateResourcePolicyRequest = exports.UpdateSecretVersionStageResponse = exports.UpdateSecretVersionStageRequest = exports.UpdateSecretResponse = exports.UpdateSecretRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopReplicationToReplicaResponse = exports.StopReplicationToReplicaRequest = exports.RotateSecretResponse = exports.RotateSecretRequest = exports.RestoreSecretResponse = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const SecretsManagerServiceException_1 = require("./SecretsManagerServiceException");
|
|
6
7
|
var ReplicaRegionType;
|
|
7
8
|
(function (ReplicaRegionType) {
|
|
8
9
|
ReplicaRegionType.filterSensitiveLog = (obj) => ({
|
|
@@ -21,6 +22,62 @@ var CancelRotateSecretResponse;
|
|
|
21
22
|
...obj,
|
|
22
23
|
});
|
|
23
24
|
})(CancelRotateSecretResponse = exports.CancelRotateSecretResponse || (exports.CancelRotateSecretResponse = {}));
|
|
25
|
+
class InternalServiceError extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
26
|
+
constructor(opts) {
|
|
27
|
+
super({
|
|
28
|
+
name: "InternalServiceError",
|
|
29
|
+
$fault: "server",
|
|
30
|
+
...opts,
|
|
31
|
+
});
|
|
32
|
+
this.name = "InternalServiceError";
|
|
33
|
+
this.$fault = "server";
|
|
34
|
+
Object.setPrototypeOf(this, InternalServiceError.prototype);
|
|
35
|
+
this.Message = opts.Message;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.InternalServiceError = InternalServiceError;
|
|
39
|
+
class InvalidParameterException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "InvalidParameterException",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts,
|
|
45
|
+
});
|
|
46
|
+
this.name = "InvalidParameterException";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
49
|
+
this.Message = opts.Message;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
53
|
+
class InvalidRequestException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "InvalidRequestException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
this.name = "InvalidRequestException";
|
|
61
|
+
this.$fault = "client";
|
|
62
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
63
|
+
this.Message = opts.Message;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
67
|
+
class ResourceNotFoundException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
68
|
+
constructor(opts) {
|
|
69
|
+
super({
|
|
70
|
+
name: "ResourceNotFoundException",
|
|
71
|
+
$fault: "client",
|
|
72
|
+
...opts,
|
|
73
|
+
});
|
|
74
|
+
this.name = "ResourceNotFoundException";
|
|
75
|
+
this.$fault = "client";
|
|
76
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
77
|
+
this.Message = opts.Message;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
24
81
|
var Tag;
|
|
25
82
|
(function (Tag) {
|
|
26
83
|
Tag.filterSensitiveLog = (obj) => ({
|
|
@@ -53,6 +110,90 @@ var CreateSecretResponse;
|
|
|
53
110
|
...obj,
|
|
54
111
|
});
|
|
55
112
|
})(CreateSecretResponse = exports.CreateSecretResponse || (exports.CreateSecretResponse = {}));
|
|
113
|
+
class DecryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
114
|
+
constructor(opts) {
|
|
115
|
+
super({
|
|
116
|
+
name: "DecryptionFailure",
|
|
117
|
+
$fault: "client",
|
|
118
|
+
...opts,
|
|
119
|
+
});
|
|
120
|
+
this.name = "DecryptionFailure";
|
|
121
|
+
this.$fault = "client";
|
|
122
|
+
Object.setPrototypeOf(this, DecryptionFailure.prototype);
|
|
123
|
+
this.Message = opts.Message;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
exports.DecryptionFailure = DecryptionFailure;
|
|
127
|
+
class EncryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
128
|
+
constructor(opts) {
|
|
129
|
+
super({
|
|
130
|
+
name: "EncryptionFailure",
|
|
131
|
+
$fault: "client",
|
|
132
|
+
...opts,
|
|
133
|
+
});
|
|
134
|
+
this.name = "EncryptionFailure";
|
|
135
|
+
this.$fault = "client";
|
|
136
|
+
Object.setPrototypeOf(this, EncryptionFailure.prototype);
|
|
137
|
+
this.Message = opts.Message;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.EncryptionFailure = EncryptionFailure;
|
|
141
|
+
class LimitExceededException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "LimitExceededException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
this.name = "LimitExceededException";
|
|
149
|
+
this.$fault = "client";
|
|
150
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
151
|
+
this.Message = opts.Message;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.LimitExceededException = LimitExceededException;
|
|
155
|
+
class MalformedPolicyDocumentException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
156
|
+
constructor(opts) {
|
|
157
|
+
super({
|
|
158
|
+
name: "MalformedPolicyDocumentException",
|
|
159
|
+
$fault: "client",
|
|
160
|
+
...opts,
|
|
161
|
+
});
|
|
162
|
+
this.name = "MalformedPolicyDocumentException";
|
|
163
|
+
this.$fault = "client";
|
|
164
|
+
Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
|
|
165
|
+
this.Message = opts.Message;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
|
|
169
|
+
class PreconditionNotMetException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "PreconditionNotMetException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts,
|
|
175
|
+
});
|
|
176
|
+
this.name = "PreconditionNotMetException";
|
|
177
|
+
this.$fault = "client";
|
|
178
|
+
Object.setPrototypeOf(this, PreconditionNotMetException.prototype);
|
|
179
|
+
this.Message = opts.Message;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
exports.PreconditionNotMetException = PreconditionNotMetException;
|
|
183
|
+
class ResourceExistsException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ResourceExistsException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
this.name = "ResourceExistsException";
|
|
191
|
+
this.$fault = "client";
|
|
192
|
+
Object.setPrototypeOf(this, ResourceExistsException.prototype);
|
|
193
|
+
this.Message = opts.Message;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
exports.ResourceExistsException = ResourceExistsException;
|
|
56
197
|
var DeleteResourcePolicyRequest;
|
|
57
198
|
(function (DeleteResourcePolicyRequest) {
|
|
58
199
|
DeleteResourcePolicyRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -140,6 +281,20 @@ var GetSecretValueResponse;
|
|
|
140
281
|
...(obj.SecretString && { SecretString: smithy_client_1.SENSITIVE_STRING }),
|
|
141
282
|
});
|
|
142
283
|
})(GetSecretValueResponse = exports.GetSecretValueResponse || (exports.GetSecretValueResponse = {}));
|
|
284
|
+
class InvalidNextTokenException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
285
|
+
constructor(opts) {
|
|
286
|
+
super({
|
|
287
|
+
name: "InvalidNextTokenException",
|
|
288
|
+
$fault: "client",
|
|
289
|
+
...opts,
|
|
290
|
+
});
|
|
291
|
+
this.name = "InvalidNextTokenException";
|
|
292
|
+
this.$fault = "client";
|
|
293
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
294
|
+
this.Message = opts.Message;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
143
298
|
var SortOrderType;
|
|
144
299
|
(function (SortOrderType) {
|
|
145
300
|
SortOrderType["asc"] = "asc";
|
|
@@ -181,6 +336,20 @@ var ListSecretVersionIdsResponse;
|
|
|
181
336
|
...obj,
|
|
182
337
|
});
|
|
183
338
|
})(ListSecretVersionIdsResponse = exports.ListSecretVersionIdsResponse || (exports.ListSecretVersionIdsResponse = {}));
|
|
339
|
+
class PublicPolicyException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
|
|
340
|
+
constructor(opts) {
|
|
341
|
+
super({
|
|
342
|
+
name: "PublicPolicyException",
|
|
343
|
+
$fault: "client",
|
|
344
|
+
...opts,
|
|
345
|
+
});
|
|
346
|
+
this.name = "PublicPolicyException";
|
|
347
|
+
this.$fault = "client";
|
|
348
|
+
Object.setPrototypeOf(this, PublicPolicyException.prototype);
|
|
349
|
+
this.Message = opts.Message;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.PublicPolicyException = PublicPolicyException;
|
|
184
353
|
var PutResourcePolicyRequest;
|
|
185
354
|
(function (PutResourcePolicyRequest) {
|
|
186
355
|
PutResourcePolicyRequest.filterSensitiveLog = (obj) => ({
|