@aws-sdk/client-secrets-manager 3.957.0 → 3.958.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/README.md +1 -29
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +360 -401
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/pagination/index.js +2 -2
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +371 -410
- package/dist-types/pagination/index.d.ts +2 -2
- package/dist-types/ts3.4/pagination/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
AWS SDK for JavaScript SecretsManager Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
9
|
<fullname>Amazon Web Services Secrets Manager</fullname>
|
|
10
|
-
|
|
11
10
|
<p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>
|
|
12
11
|
<p>This guide provides descriptions of the Secrets Manager API. For more information about using this
|
|
13
12
|
service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html">Amazon Web Services Secrets Manager User Guide</a>.</p>
|
|
@@ -35,10 +34,8 @@ Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</
|
|
|
35
34
|
To learn more about CloudTrail, including enabling it and find your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">Amazon Web Services CloudTrail User Guide</a>.</p>
|
|
36
35
|
|
|
37
36
|
## Installing
|
|
38
|
-
|
|
39
37
|
To install this package, simply type add or install @aws-sdk/client-secrets-manager
|
|
40
38
|
using your favorite package manager:
|
|
41
|
-
|
|
42
39
|
- `npm install @aws-sdk/client-secrets-manager`
|
|
43
40
|
- `yarn add @aws-sdk/client-secrets-manager`
|
|
44
41
|
- `pnpm add @aws-sdk/client-secrets-manager`
|
|
@@ -74,9 +71,7 @@ To send a request, you:
|
|
|
74
71
|
// a client can be shared by different commands.
|
|
75
72
|
const client = new SecretsManagerClient({ region: "REGION" });
|
|
76
73
|
|
|
77
|
-
const params = {
|
|
78
|
-
/** input parameters */
|
|
79
|
-
};
|
|
74
|
+
const params = { /** input parameters */ };
|
|
80
75
|
const command = new ListSecretsCommand(params);
|
|
81
76
|
```
|
|
82
77
|
|
|
@@ -235,7 +230,6 @@ BatchGetSecretValue
|
|
|
235
230
|
</summary>
|
|
236
231
|
|
|
237
232
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/BatchGetSecretValueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/BatchGetSecretValueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/BatchGetSecretValueCommandOutput/)
|
|
238
|
-
|
|
239
233
|
</details>
|
|
240
234
|
<details>
|
|
241
235
|
<summary>
|
|
@@ -243,7 +237,6 @@ CancelRotateSecret
|
|
|
243
237
|
</summary>
|
|
244
238
|
|
|
245
239
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/CancelRotateSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/CancelRotateSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/CancelRotateSecretCommandOutput/)
|
|
246
|
-
|
|
247
240
|
</details>
|
|
248
241
|
<details>
|
|
249
242
|
<summary>
|
|
@@ -251,7 +244,6 @@ CreateSecret
|
|
|
251
244
|
</summary>
|
|
252
245
|
|
|
253
246
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/CreateSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/CreateSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/CreateSecretCommandOutput/)
|
|
254
|
-
|
|
255
247
|
</details>
|
|
256
248
|
<details>
|
|
257
249
|
<summary>
|
|
@@ -259,7 +251,6 @@ DeleteResourcePolicy
|
|
|
259
251
|
</summary>
|
|
260
252
|
|
|
261
253
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/DeleteResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DeleteResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DeleteResourcePolicyCommandOutput/)
|
|
262
|
-
|
|
263
254
|
</details>
|
|
264
255
|
<details>
|
|
265
256
|
<summary>
|
|
@@ -267,7 +258,6 @@ DeleteSecret
|
|
|
267
258
|
</summary>
|
|
268
259
|
|
|
269
260
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/DeleteSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DeleteSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DeleteSecretCommandOutput/)
|
|
270
|
-
|
|
271
261
|
</details>
|
|
272
262
|
<details>
|
|
273
263
|
<summary>
|
|
@@ -275,7 +265,6 @@ DescribeSecret
|
|
|
275
265
|
</summary>
|
|
276
266
|
|
|
277
267
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/DescribeSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DescribeSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/DescribeSecretCommandOutput/)
|
|
278
|
-
|
|
279
268
|
</details>
|
|
280
269
|
<details>
|
|
281
270
|
<summary>
|
|
@@ -283,7 +272,6 @@ GetRandomPassword
|
|
|
283
272
|
</summary>
|
|
284
273
|
|
|
285
274
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/GetRandomPasswordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetRandomPasswordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetRandomPasswordCommandOutput/)
|
|
286
|
-
|
|
287
275
|
</details>
|
|
288
276
|
<details>
|
|
289
277
|
<summary>
|
|
@@ -291,7 +279,6 @@ GetResourcePolicy
|
|
|
291
279
|
</summary>
|
|
292
280
|
|
|
293
281
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetResourcePolicyCommandOutput/)
|
|
294
|
-
|
|
295
282
|
</details>
|
|
296
283
|
<details>
|
|
297
284
|
<summary>
|
|
@@ -299,7 +286,6 @@ GetSecretValue
|
|
|
299
286
|
</summary>
|
|
300
287
|
|
|
301
288
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/GetSecretValueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetSecretValueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/GetSecretValueCommandOutput/)
|
|
302
|
-
|
|
303
289
|
</details>
|
|
304
290
|
<details>
|
|
305
291
|
<summary>
|
|
@@ -307,7 +293,6 @@ ListSecrets
|
|
|
307
293
|
</summary>
|
|
308
294
|
|
|
309
295
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/ListSecretsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListSecretsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListSecretsCommandOutput/)
|
|
310
|
-
|
|
311
296
|
</details>
|
|
312
297
|
<details>
|
|
313
298
|
<summary>
|
|
@@ -315,7 +300,6 @@ ListSecretVersionIds
|
|
|
315
300
|
</summary>
|
|
316
301
|
|
|
317
302
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/ListSecretVersionIdsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListSecretVersionIdsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ListSecretVersionIdsCommandOutput/)
|
|
318
|
-
|
|
319
303
|
</details>
|
|
320
304
|
<details>
|
|
321
305
|
<summary>
|
|
@@ -323,7 +307,6 @@ PutResourcePolicy
|
|
|
323
307
|
</summary>
|
|
324
308
|
|
|
325
309
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/PutResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/PutResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/PutResourcePolicyCommandOutput/)
|
|
326
|
-
|
|
327
310
|
</details>
|
|
328
311
|
<details>
|
|
329
312
|
<summary>
|
|
@@ -331,7 +314,6 @@ PutSecretValue
|
|
|
331
314
|
</summary>
|
|
332
315
|
|
|
333
316
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/PutSecretValueCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/PutSecretValueCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/PutSecretValueCommandOutput/)
|
|
334
|
-
|
|
335
317
|
</details>
|
|
336
318
|
<details>
|
|
337
319
|
<summary>
|
|
@@ -339,7 +321,6 @@ RemoveRegionsFromReplication
|
|
|
339
321
|
</summary>
|
|
340
322
|
|
|
341
323
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/RemoveRegionsFromReplicationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RemoveRegionsFromReplicationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RemoveRegionsFromReplicationCommandOutput/)
|
|
342
|
-
|
|
343
324
|
</details>
|
|
344
325
|
<details>
|
|
345
326
|
<summary>
|
|
@@ -347,7 +328,6 @@ ReplicateSecretToRegions
|
|
|
347
328
|
</summary>
|
|
348
329
|
|
|
349
330
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/ReplicateSecretToRegionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ReplicateSecretToRegionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ReplicateSecretToRegionsCommandOutput/)
|
|
350
|
-
|
|
351
331
|
</details>
|
|
352
332
|
<details>
|
|
353
333
|
<summary>
|
|
@@ -355,7 +335,6 @@ RestoreSecret
|
|
|
355
335
|
</summary>
|
|
356
336
|
|
|
357
337
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/RestoreSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RestoreSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RestoreSecretCommandOutput/)
|
|
358
|
-
|
|
359
338
|
</details>
|
|
360
339
|
<details>
|
|
361
340
|
<summary>
|
|
@@ -363,7 +342,6 @@ RotateSecret
|
|
|
363
342
|
</summary>
|
|
364
343
|
|
|
365
344
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/RotateSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RotateSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/RotateSecretCommandOutput/)
|
|
366
|
-
|
|
367
345
|
</details>
|
|
368
346
|
<details>
|
|
369
347
|
<summary>
|
|
@@ -371,7 +349,6 @@ StopReplicationToReplica
|
|
|
371
349
|
</summary>
|
|
372
350
|
|
|
373
351
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/StopReplicationToReplicaCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/StopReplicationToReplicaCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/StopReplicationToReplicaCommandOutput/)
|
|
374
|
-
|
|
375
352
|
</details>
|
|
376
353
|
<details>
|
|
377
354
|
<summary>
|
|
@@ -379,7 +356,6 @@ TagResource
|
|
|
379
356
|
</summary>
|
|
380
357
|
|
|
381
358
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/TagResourceCommandOutput/)
|
|
382
|
-
|
|
383
359
|
</details>
|
|
384
360
|
<details>
|
|
385
361
|
<summary>
|
|
@@ -387,7 +363,6 @@ UntagResource
|
|
|
387
363
|
</summary>
|
|
388
364
|
|
|
389
365
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UntagResourceCommandOutput/)
|
|
390
|
-
|
|
391
366
|
</details>
|
|
392
367
|
<details>
|
|
393
368
|
<summary>
|
|
@@ -395,7 +370,6 @@ UpdateSecret
|
|
|
395
370
|
</summary>
|
|
396
371
|
|
|
397
372
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/UpdateSecretCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UpdateSecretCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UpdateSecretCommandOutput/)
|
|
398
|
-
|
|
399
373
|
</details>
|
|
400
374
|
<details>
|
|
401
375
|
<summary>
|
|
@@ -403,7 +377,6 @@ UpdateSecretVersionStage
|
|
|
403
377
|
</summary>
|
|
404
378
|
|
|
405
379
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/UpdateSecretVersionStageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UpdateSecretVersionStageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/UpdateSecretVersionStageCommandOutput/)
|
|
406
|
-
|
|
407
380
|
</details>
|
|
408
381
|
<details>
|
|
409
382
|
<summary>
|
|
@@ -411,5 +384,4 @@ ValidateResourcePolicy
|
|
|
411
384
|
</summary>
|
|
412
385
|
|
|
413
386
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/secrets-manager/command/ValidateResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ValidateResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-secrets-manager/Interface/ValidateResourcePolicyCommandOutput/)
|
|
414
|
-
|
|
415
387
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultSecretsManagerHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultSecretsManagerHttpAuthSchemeParametersProvider = defaultSecretsManagerHttpAuthSchemeParametersProvider;
|