@aws-sdk/client-secrets-manager 3.183.0 → 3.186.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/SecretsManager.js +97 -90
- package/dist-es/SecretsManagerClient.js +28 -22
- package/dist-es/commands/CancelRotateSecretCommand.js +28 -21
- package/dist-es/commands/CreateSecretCommand.js +28 -21
- package/dist-es/commands/DeleteResourcePolicyCommand.js +28 -21
- package/dist-es/commands/DeleteSecretCommand.js +28 -21
- package/dist-es/commands/DescribeSecretCommand.js +28 -21
- package/dist-es/commands/GetRandomPasswordCommand.js +28 -21
- package/dist-es/commands/GetResourcePolicyCommand.js +28 -21
- package/dist-es/commands/GetSecretValueCommand.js +28 -21
- package/dist-es/commands/ListSecretVersionIdsCommand.js +28 -21
- package/dist-es/commands/ListSecretsCommand.js +28 -21
- package/dist-es/commands/PutResourcePolicyCommand.js +28 -21
- package/dist-es/commands/PutSecretValueCommand.js +28 -21
- package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +28 -21
- package/dist-es/commands/ReplicateSecretToRegionsCommand.js +28 -21
- package/dist-es/commands/RestoreSecretCommand.js +28 -21
- package/dist-es/commands/RotateSecretCommand.js +28 -21
- package/dist-es/commands/StopReplicationToReplicaCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +29 -22
- package/dist-es/commands/UntagResourceCommand.js +29 -22
- package/dist-es/commands/UpdateSecretCommand.js +28 -21
- package/dist-es/commands/UpdateSecretVersionStageCommand.js +28 -21
- package/dist-es/commands/ValidateResourcePolicyCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SecretsManagerServiceException.js +10 -5
- package/dist-es/models/models_0.js +195 -303
- package/dist-es/pagination/ListSecretVersionIdsPaginator.js +68 -25
- package/dist-es/pagination/ListSecretsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2035 -1584
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-secrets-manager
|
|
@@ -1984,10 +1984,10 @@ const deserializeAws_json1_1ValidationErrorsType = (output, context) => {
|
|
|
1984
1984
|
return retVal;
|
|
1985
1985
|
};
|
|
1986
1986
|
const deserializeMetadata = (output) => {
|
|
1987
|
-
var _a;
|
|
1987
|
+
var _a, _b;
|
|
1988
1988
|
return ({
|
|
1989
1989
|
httpStatusCode: output.statusCode,
|
|
1990
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
1990
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1991
1991
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1992
1992
|
cfId: output.headers["x-amz-cf-id"],
|
|
1993
1993
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CancelRotateSecretCommand, } from "./commands/CancelRotateSecretCommand";
|
|
2
3
|
import { CreateSecretCommand, } from "./commands/CreateSecretCommand";
|
|
3
4
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
@@ -21,313 +22,319 @@ import { UpdateSecretCommand, } from "./commands/UpdateSecretCommand";
|
|
|
21
22
|
import { UpdateSecretVersionStageCommand, } from "./commands/UpdateSecretVersionStageCommand";
|
|
22
23
|
import { ValidateResourcePolicyCommand, } from "./commands/ValidateResourcePolicyCommand";
|
|
23
24
|
import { SecretsManagerClient } from "./SecretsManagerClient";
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
var SecretsManager = (function (_super) {
|
|
26
|
+
__extends(SecretsManager, _super);
|
|
27
|
+
function SecretsManager() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
SecretsManager.prototype.cancelRotateSecret = function (args, optionsOrCb, cb) {
|
|
31
|
+
var command = new CancelRotateSecretCommand(args);
|
|
27
32
|
if (typeof optionsOrCb === "function") {
|
|
28
33
|
this.send(command, optionsOrCb);
|
|
29
34
|
}
|
|
30
35
|
else if (typeof cb === "function") {
|
|
31
36
|
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(
|
|
37
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
33
38
|
this.send(command, optionsOrCb || {}, cb);
|
|
34
39
|
}
|
|
35
40
|
else {
|
|
36
41
|
return this.send(command, optionsOrCb);
|
|
37
42
|
}
|
|
38
|
-
}
|
|
39
|
-
createSecret(args, optionsOrCb, cb) {
|
|
40
|
-
|
|
43
|
+
};
|
|
44
|
+
SecretsManager.prototype.createSecret = function (args, optionsOrCb, cb) {
|
|
45
|
+
var command = new CreateSecretCommand(args);
|
|
41
46
|
if (typeof optionsOrCb === "function") {
|
|
42
47
|
this.send(command, optionsOrCb);
|
|
43
48
|
}
|
|
44
49
|
else if (typeof cb === "function") {
|
|
45
50
|
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(
|
|
51
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
47
52
|
this.send(command, optionsOrCb || {}, cb);
|
|
48
53
|
}
|
|
49
54
|
else {
|
|
50
55
|
return this.send(command, optionsOrCb);
|
|
51
56
|
}
|
|
52
|
-
}
|
|
53
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
54
|
-
|
|
57
|
+
};
|
|
58
|
+
SecretsManager.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
|
|
59
|
+
var command = new DeleteResourcePolicyCommand(args);
|
|
55
60
|
if (typeof optionsOrCb === "function") {
|
|
56
61
|
this.send(command, optionsOrCb);
|
|
57
62
|
}
|
|
58
63
|
else if (typeof cb === "function") {
|
|
59
64
|
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(
|
|
65
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
61
66
|
this.send(command, optionsOrCb || {}, cb);
|
|
62
67
|
}
|
|
63
68
|
else {
|
|
64
69
|
return this.send(command, optionsOrCb);
|
|
65
70
|
}
|
|
66
|
-
}
|
|
67
|
-
deleteSecret(args, optionsOrCb, cb) {
|
|
68
|
-
|
|
71
|
+
};
|
|
72
|
+
SecretsManager.prototype.deleteSecret = function (args, optionsOrCb, cb) {
|
|
73
|
+
var command = new DeleteSecretCommand(args);
|
|
69
74
|
if (typeof optionsOrCb === "function") {
|
|
70
75
|
this.send(command, optionsOrCb);
|
|
71
76
|
}
|
|
72
77
|
else if (typeof cb === "function") {
|
|
73
78
|
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(
|
|
79
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
75
80
|
this.send(command, optionsOrCb || {}, cb);
|
|
76
81
|
}
|
|
77
82
|
else {
|
|
78
83
|
return this.send(command, optionsOrCb);
|
|
79
84
|
}
|
|
80
|
-
}
|
|
81
|
-
describeSecret(args, optionsOrCb, cb) {
|
|
82
|
-
|
|
85
|
+
};
|
|
86
|
+
SecretsManager.prototype.describeSecret = function (args, optionsOrCb, cb) {
|
|
87
|
+
var command = new DescribeSecretCommand(args);
|
|
83
88
|
if (typeof optionsOrCb === "function") {
|
|
84
89
|
this.send(command, optionsOrCb);
|
|
85
90
|
}
|
|
86
91
|
else if (typeof cb === "function") {
|
|
87
92
|
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(
|
|
93
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
89
94
|
this.send(command, optionsOrCb || {}, cb);
|
|
90
95
|
}
|
|
91
96
|
else {
|
|
92
97
|
return this.send(command, optionsOrCb);
|
|
93
98
|
}
|
|
94
|
-
}
|
|
95
|
-
getRandomPassword(args, optionsOrCb, cb) {
|
|
96
|
-
|
|
99
|
+
};
|
|
100
|
+
SecretsManager.prototype.getRandomPassword = function (args, optionsOrCb, cb) {
|
|
101
|
+
var command = new GetRandomPasswordCommand(args);
|
|
97
102
|
if (typeof optionsOrCb === "function") {
|
|
98
103
|
this.send(command, optionsOrCb);
|
|
99
104
|
}
|
|
100
105
|
else if (typeof cb === "function") {
|
|
101
106
|
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(
|
|
107
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
103
108
|
this.send(command, optionsOrCb || {}, cb);
|
|
104
109
|
}
|
|
105
110
|
else {
|
|
106
111
|
return this.send(command, optionsOrCb);
|
|
107
112
|
}
|
|
108
|
-
}
|
|
109
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
110
|
-
|
|
113
|
+
};
|
|
114
|
+
SecretsManager.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
|
|
115
|
+
var command = new GetResourcePolicyCommand(args);
|
|
111
116
|
if (typeof optionsOrCb === "function") {
|
|
112
117
|
this.send(command, optionsOrCb);
|
|
113
118
|
}
|
|
114
119
|
else if (typeof cb === "function") {
|
|
115
120
|
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(
|
|
121
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
117
122
|
this.send(command, optionsOrCb || {}, cb);
|
|
118
123
|
}
|
|
119
124
|
else {
|
|
120
125
|
return this.send(command, optionsOrCb);
|
|
121
126
|
}
|
|
122
|
-
}
|
|
123
|
-
getSecretValue(args, optionsOrCb, cb) {
|
|
124
|
-
|
|
127
|
+
};
|
|
128
|
+
SecretsManager.prototype.getSecretValue = function (args, optionsOrCb, cb) {
|
|
129
|
+
var command = new GetSecretValueCommand(args);
|
|
125
130
|
if (typeof optionsOrCb === "function") {
|
|
126
131
|
this.send(command, optionsOrCb);
|
|
127
132
|
}
|
|
128
133
|
else if (typeof cb === "function") {
|
|
129
134
|
if (typeof optionsOrCb !== "object")
|
|
130
|
-
throw new Error(
|
|
135
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
131
136
|
this.send(command, optionsOrCb || {}, cb);
|
|
132
137
|
}
|
|
133
138
|
else {
|
|
134
139
|
return this.send(command, optionsOrCb);
|
|
135
140
|
}
|
|
136
|
-
}
|
|
137
|
-
listSecrets(args, optionsOrCb, cb) {
|
|
138
|
-
|
|
141
|
+
};
|
|
142
|
+
SecretsManager.prototype.listSecrets = function (args, optionsOrCb, cb) {
|
|
143
|
+
var command = new ListSecretsCommand(args);
|
|
139
144
|
if (typeof optionsOrCb === "function") {
|
|
140
145
|
this.send(command, optionsOrCb);
|
|
141
146
|
}
|
|
142
147
|
else if (typeof cb === "function") {
|
|
143
148
|
if (typeof optionsOrCb !== "object")
|
|
144
|
-
throw new Error(
|
|
149
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
145
150
|
this.send(command, optionsOrCb || {}, cb);
|
|
146
151
|
}
|
|
147
152
|
else {
|
|
148
153
|
return this.send(command, optionsOrCb);
|
|
149
154
|
}
|
|
150
|
-
}
|
|
151
|
-
listSecretVersionIds(args, optionsOrCb, cb) {
|
|
152
|
-
|
|
155
|
+
};
|
|
156
|
+
SecretsManager.prototype.listSecretVersionIds = function (args, optionsOrCb, cb) {
|
|
157
|
+
var command = new ListSecretVersionIdsCommand(args);
|
|
153
158
|
if (typeof optionsOrCb === "function") {
|
|
154
159
|
this.send(command, optionsOrCb);
|
|
155
160
|
}
|
|
156
161
|
else if (typeof cb === "function") {
|
|
157
162
|
if (typeof optionsOrCb !== "object")
|
|
158
|
-
throw new Error(
|
|
163
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
159
164
|
this.send(command, optionsOrCb || {}, cb);
|
|
160
165
|
}
|
|
161
166
|
else {
|
|
162
167
|
return this.send(command, optionsOrCb);
|
|
163
168
|
}
|
|
164
|
-
}
|
|
165
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
166
|
-
|
|
169
|
+
};
|
|
170
|
+
SecretsManager.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
|
|
171
|
+
var command = new PutResourcePolicyCommand(args);
|
|
167
172
|
if (typeof optionsOrCb === "function") {
|
|
168
173
|
this.send(command, optionsOrCb);
|
|
169
174
|
}
|
|
170
175
|
else if (typeof cb === "function") {
|
|
171
176
|
if (typeof optionsOrCb !== "object")
|
|
172
|
-
throw new Error(
|
|
177
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
173
178
|
this.send(command, optionsOrCb || {}, cb);
|
|
174
179
|
}
|
|
175
180
|
else {
|
|
176
181
|
return this.send(command, optionsOrCb);
|
|
177
182
|
}
|
|
178
|
-
}
|
|
179
|
-
putSecretValue(args, optionsOrCb, cb) {
|
|
180
|
-
|
|
183
|
+
};
|
|
184
|
+
SecretsManager.prototype.putSecretValue = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new PutSecretValueCommand(args);
|
|
181
186
|
if (typeof optionsOrCb === "function") {
|
|
182
187
|
this.send(command, optionsOrCb);
|
|
183
188
|
}
|
|
184
189
|
else if (typeof cb === "function") {
|
|
185
190
|
if (typeof optionsOrCb !== "object")
|
|
186
|
-
throw new Error(
|
|
191
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
187
192
|
this.send(command, optionsOrCb || {}, cb);
|
|
188
193
|
}
|
|
189
194
|
else {
|
|
190
195
|
return this.send(command, optionsOrCb);
|
|
191
196
|
}
|
|
192
|
-
}
|
|
193
|
-
removeRegionsFromReplication(args, optionsOrCb, cb) {
|
|
194
|
-
|
|
197
|
+
};
|
|
198
|
+
SecretsManager.prototype.removeRegionsFromReplication = function (args, optionsOrCb, cb) {
|
|
199
|
+
var command = new RemoveRegionsFromReplicationCommand(args);
|
|
195
200
|
if (typeof optionsOrCb === "function") {
|
|
196
201
|
this.send(command, optionsOrCb);
|
|
197
202
|
}
|
|
198
203
|
else if (typeof cb === "function") {
|
|
199
204
|
if (typeof optionsOrCb !== "object")
|
|
200
|
-
throw new Error(
|
|
205
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
201
206
|
this.send(command, optionsOrCb || {}, cb);
|
|
202
207
|
}
|
|
203
208
|
else {
|
|
204
209
|
return this.send(command, optionsOrCb);
|
|
205
210
|
}
|
|
206
|
-
}
|
|
207
|
-
replicateSecretToRegions(args, optionsOrCb, cb) {
|
|
208
|
-
|
|
211
|
+
};
|
|
212
|
+
SecretsManager.prototype.replicateSecretToRegions = function (args, optionsOrCb, cb) {
|
|
213
|
+
var command = new ReplicateSecretToRegionsCommand(args);
|
|
209
214
|
if (typeof optionsOrCb === "function") {
|
|
210
215
|
this.send(command, optionsOrCb);
|
|
211
216
|
}
|
|
212
217
|
else if (typeof cb === "function") {
|
|
213
218
|
if (typeof optionsOrCb !== "object")
|
|
214
|
-
throw new Error(
|
|
219
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
215
220
|
this.send(command, optionsOrCb || {}, cb);
|
|
216
221
|
}
|
|
217
222
|
else {
|
|
218
223
|
return this.send(command, optionsOrCb);
|
|
219
224
|
}
|
|
220
|
-
}
|
|
221
|
-
restoreSecret(args, optionsOrCb, cb) {
|
|
222
|
-
|
|
225
|
+
};
|
|
226
|
+
SecretsManager.prototype.restoreSecret = function (args, optionsOrCb, cb) {
|
|
227
|
+
var command = new RestoreSecretCommand(args);
|
|
223
228
|
if (typeof optionsOrCb === "function") {
|
|
224
229
|
this.send(command, optionsOrCb);
|
|
225
230
|
}
|
|
226
231
|
else if (typeof cb === "function") {
|
|
227
232
|
if (typeof optionsOrCb !== "object")
|
|
228
|
-
throw new Error(
|
|
233
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
229
234
|
this.send(command, optionsOrCb || {}, cb);
|
|
230
235
|
}
|
|
231
236
|
else {
|
|
232
237
|
return this.send(command, optionsOrCb);
|
|
233
238
|
}
|
|
234
|
-
}
|
|
235
|
-
rotateSecret(args, optionsOrCb, cb) {
|
|
236
|
-
|
|
239
|
+
};
|
|
240
|
+
SecretsManager.prototype.rotateSecret = function (args, optionsOrCb, cb) {
|
|
241
|
+
var command = new RotateSecretCommand(args);
|
|
237
242
|
if (typeof optionsOrCb === "function") {
|
|
238
243
|
this.send(command, optionsOrCb);
|
|
239
244
|
}
|
|
240
245
|
else if (typeof cb === "function") {
|
|
241
246
|
if (typeof optionsOrCb !== "object")
|
|
242
|
-
throw new Error(
|
|
247
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
243
248
|
this.send(command, optionsOrCb || {}, cb);
|
|
244
249
|
}
|
|
245
250
|
else {
|
|
246
251
|
return this.send(command, optionsOrCb);
|
|
247
252
|
}
|
|
248
|
-
}
|
|
249
|
-
stopReplicationToReplica(args, optionsOrCb, cb) {
|
|
250
|
-
|
|
253
|
+
};
|
|
254
|
+
SecretsManager.prototype.stopReplicationToReplica = function (args, optionsOrCb, cb) {
|
|
255
|
+
var command = new StopReplicationToReplicaCommand(args);
|
|
251
256
|
if (typeof optionsOrCb === "function") {
|
|
252
257
|
this.send(command, optionsOrCb);
|
|
253
258
|
}
|
|
254
259
|
else if (typeof cb === "function") {
|
|
255
260
|
if (typeof optionsOrCb !== "object")
|
|
256
|
-
throw new Error(
|
|
261
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
257
262
|
this.send(command, optionsOrCb || {}, cb);
|
|
258
263
|
}
|
|
259
264
|
else {
|
|
260
265
|
return this.send(command, optionsOrCb);
|
|
261
266
|
}
|
|
262
|
-
}
|
|
263
|
-
tagResource(args, optionsOrCb, cb) {
|
|
264
|
-
|
|
267
|
+
};
|
|
268
|
+
SecretsManager.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
269
|
+
var command = new TagResourceCommand(args);
|
|
265
270
|
if (typeof optionsOrCb === "function") {
|
|
266
271
|
this.send(command, optionsOrCb);
|
|
267
272
|
}
|
|
268
273
|
else if (typeof cb === "function") {
|
|
269
274
|
if (typeof optionsOrCb !== "object")
|
|
270
|
-
throw new Error(
|
|
275
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
271
276
|
this.send(command, optionsOrCb || {}, cb);
|
|
272
277
|
}
|
|
273
278
|
else {
|
|
274
279
|
return this.send(command, optionsOrCb);
|
|
275
280
|
}
|
|
276
|
-
}
|
|
277
|
-
untagResource(args, optionsOrCb, cb) {
|
|
278
|
-
|
|
281
|
+
};
|
|
282
|
+
SecretsManager.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
283
|
+
var command = new UntagResourceCommand(args);
|
|
279
284
|
if (typeof optionsOrCb === "function") {
|
|
280
285
|
this.send(command, optionsOrCb);
|
|
281
286
|
}
|
|
282
287
|
else if (typeof cb === "function") {
|
|
283
288
|
if (typeof optionsOrCb !== "object")
|
|
284
|
-
throw new Error(
|
|
289
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
285
290
|
this.send(command, optionsOrCb || {}, cb);
|
|
286
291
|
}
|
|
287
292
|
else {
|
|
288
293
|
return this.send(command, optionsOrCb);
|
|
289
294
|
}
|
|
290
|
-
}
|
|
291
|
-
updateSecret(args, optionsOrCb, cb) {
|
|
292
|
-
|
|
295
|
+
};
|
|
296
|
+
SecretsManager.prototype.updateSecret = function (args, optionsOrCb, cb) {
|
|
297
|
+
var command = new UpdateSecretCommand(args);
|
|
293
298
|
if (typeof optionsOrCb === "function") {
|
|
294
299
|
this.send(command, optionsOrCb);
|
|
295
300
|
}
|
|
296
301
|
else if (typeof cb === "function") {
|
|
297
302
|
if (typeof optionsOrCb !== "object")
|
|
298
|
-
throw new Error(
|
|
303
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
299
304
|
this.send(command, optionsOrCb || {}, cb);
|
|
300
305
|
}
|
|
301
306
|
else {
|
|
302
307
|
return this.send(command, optionsOrCb);
|
|
303
308
|
}
|
|
304
|
-
}
|
|
305
|
-
updateSecretVersionStage(args, optionsOrCb, cb) {
|
|
306
|
-
|
|
309
|
+
};
|
|
310
|
+
SecretsManager.prototype.updateSecretVersionStage = function (args, optionsOrCb, cb) {
|
|
311
|
+
var command = new UpdateSecretVersionStageCommand(args);
|
|
307
312
|
if (typeof optionsOrCb === "function") {
|
|
308
313
|
this.send(command, optionsOrCb);
|
|
309
314
|
}
|
|
310
315
|
else if (typeof cb === "function") {
|
|
311
316
|
if (typeof optionsOrCb !== "object")
|
|
312
|
-
throw new Error(
|
|
317
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
313
318
|
this.send(command, optionsOrCb || {}, cb);
|
|
314
319
|
}
|
|
315
320
|
else {
|
|
316
321
|
return this.send(command, optionsOrCb);
|
|
317
322
|
}
|
|
318
|
-
}
|
|
319
|
-
validateResourcePolicy(args, optionsOrCb, cb) {
|
|
320
|
-
|
|
323
|
+
};
|
|
324
|
+
SecretsManager.prototype.validateResourcePolicy = function (args, optionsOrCb, cb) {
|
|
325
|
+
var command = new ValidateResourcePolicyCommand(args);
|
|
321
326
|
if (typeof optionsOrCb === "function") {
|
|
322
327
|
this.send(command, optionsOrCb);
|
|
323
328
|
}
|
|
324
329
|
else if (typeof cb === "function") {
|
|
325
330
|
if (typeof optionsOrCb !== "object")
|
|
326
|
-
throw new Error(
|
|
331
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
327
332
|
this.send(command, optionsOrCb || {}, cb);
|
|
328
333
|
}
|
|
329
334
|
else {
|
|
330
335
|
return this.send(command, optionsOrCb);
|
|
331
336
|
}
|
|
332
|
-
}
|
|
333
|
-
|
|
337
|
+
};
|
|
338
|
+
return SecretsManager;
|
|
339
|
+
}(SecretsManagerClient));
|
|
340
|
+
export { SecretsManager };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var SecretsManagerClient = (function (_super) {
|
|
13
|
+
__extends(SecretsManagerClient, _super);
|
|
14
|
+
function SecretsManagerClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
SecretsManagerClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return SecretsManagerClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { SecretsManagerClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CancelRotateSecretRequestFilterSensitiveLog, CancelRotateSecretResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CancelRotateSecretCommand, serializeAws_json1_1CancelRotateSecretCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CancelRotateSecretCommand = (function (_super) {
|
|
7
|
+
__extends(CancelRotateSecretCommand, _super);
|
|
8
|
+
function CancelRotateSecretCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CancelRotateSecretCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SecretsManagerClient";
|
|
18
|
+
var commandName = "CancelRotateSecretCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CancelRotateSecretRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CancelRotateSecretResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CancelRotateSecretCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CancelRotateSecretCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CancelRotateSecretCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CancelRotateSecretCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CancelRotateSecretCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CancelRotateSecretCommand };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateSecretRequestFilterSensitiveLog, CreateSecretResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateSecretCommand, serializeAws_json1_1CreateSecretCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateSecretCommand = (function (_super) {
|
|
7
|
+
__extends(CreateSecretCommand, _super);
|
|
8
|
+
function CreateSecretCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateSecretCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "SecretsManagerClient";
|
|
18
|
+
var commandName = "CreateSecretCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateSecretRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateSecretResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateSecretCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateSecretCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateSecretCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateSecretCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateSecretCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateSecretCommand };
|