@aws-sdk/client-secrets-manager 3.454.0 → 3.460.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.
Files changed (34) hide show
  1. package/README.md +30 -22
  2. package/dist-cjs/SecretsManager.js +2 -0
  3. package/dist-cjs/commands/BatchGetSecretValueCommand.js +52 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +49 -38
  6. package/dist-cjs/pagination/BatchGetSecretValuePaginator.js +29 -0
  7. package/dist-cjs/pagination/index.js +1 -0
  8. package/dist-cjs/protocols/Aws_json1_1.js +82 -1
  9. package/dist-es/SecretsManager.js +2 -0
  10. package/dist-es/commands/BatchGetSecretValueCommand.js +48 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/models/models_0.js +44 -35
  13. package/dist-es/pagination/BatchGetSecretValuePaginator.js +25 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/protocols/Aws_json1_1.js +79 -0
  16. package/dist-types/SecretsManager.d.ts +7 -0
  17. package/dist-types/SecretsManagerClient.d.ts +3 -2
  18. package/dist-types/commands/BatchGetSecretValueCommand.d.ts +147 -0
  19. package/dist-types/commands/GetSecretValueCommand.d.ts +1 -0
  20. package/dist-types/commands/ListSecretsCommand.d.ts +1 -2
  21. package/dist-types/commands/index.d.ts +1 -0
  22. package/dist-types/models/models_0.d.ts +232 -106
  23. package/dist-types/pagination/BatchGetSecretValuePaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  26. package/dist-types/ts3.4/SecretsManager.d.ts +17 -0
  27. package/dist-types/ts3.4/SecretsManagerClient.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/BatchGetSecretValueCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +63 -32
  31. package/dist-types/ts3.4/pagination/BatchGetSecretValuePaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  33. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  34. package/package.json +12 -12
package/README.md CHANGED
@@ -229,12 +229,20 @@ see LICENSE for more information.
229
229
 
230
230
  ## Client Commands (Operations List)
231
231
 
232
+ <details>
233
+ <summary>
234
+ BatchGetSecretValue
235
+ </summary>
236
+
237
+ [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
+ </details>
232
240
  <details>
233
241
  <summary>
234
242
  CancelRotateSecret
235
243
  </summary>
236
244
 
237
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/cancelrotatesecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/cancelrotatesecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/cancelrotatesecretcommandoutput.html)
245
+ [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/)
238
246
 
239
247
  </details>
240
248
  <details>
@@ -242,7 +250,7 @@ CancelRotateSecret
242
250
  CreateSecret
243
251
  </summary>
244
252
 
245
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/createsecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/createsecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/createsecretcommandoutput.html)
253
+ [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/)
246
254
 
247
255
  </details>
248
256
  <details>
@@ -250,7 +258,7 @@ CreateSecret
250
258
  DeleteResourcePolicy
251
259
  </summary>
252
260
 
253
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/deleteresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/deleteresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/deleteresourcepolicycommandoutput.html)
261
+ [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/)
254
262
 
255
263
  </details>
256
264
  <details>
@@ -258,7 +266,7 @@ DeleteResourcePolicy
258
266
  DeleteSecret
259
267
  </summary>
260
268
 
261
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/deletesecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/deletesecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/deletesecretcommandoutput.html)
269
+ [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/)
262
270
 
263
271
  </details>
264
272
  <details>
@@ -266,7 +274,7 @@ DeleteSecret
266
274
  DescribeSecret
267
275
  </summary>
268
276
 
269
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/describesecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/describesecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/describesecretcommandoutput.html)
277
+ [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/)
270
278
 
271
279
  </details>
272
280
  <details>
@@ -274,7 +282,7 @@ DescribeSecret
274
282
  GetRandomPassword
275
283
  </summary>
276
284
 
277
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/getrandompasswordcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getrandompasswordcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getrandompasswordcommandoutput.html)
285
+ [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/)
278
286
 
279
287
  </details>
280
288
  <details>
@@ -282,7 +290,7 @@ GetRandomPassword
282
290
  GetResourcePolicy
283
291
  </summary>
284
292
 
285
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/getresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getresourcepolicycommandoutput.html)
293
+ [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/)
286
294
 
287
295
  </details>
288
296
  <details>
@@ -290,7 +298,7 @@ GetResourcePolicy
290
298
  GetSecretValue
291
299
  </summary>
292
300
 
293
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/getsecretvaluecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getsecretvaluecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/getsecretvaluecommandoutput.html)
301
+ [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/)
294
302
 
295
303
  </details>
296
304
  <details>
@@ -298,7 +306,7 @@ GetSecretValue
298
306
  ListSecrets
299
307
  </summary>
300
308
 
301
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/listsecretscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/listsecretscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/listsecretscommandoutput.html)
309
+ [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/)
302
310
 
303
311
  </details>
304
312
  <details>
@@ -306,7 +314,7 @@ ListSecrets
306
314
  ListSecretVersionIds
307
315
  </summary>
308
316
 
309
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/listsecretversionidscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/listsecretversionidscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/listsecretversionidscommandoutput.html)
317
+ [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/)
310
318
 
311
319
  </details>
312
320
  <details>
@@ -314,7 +322,7 @@ ListSecretVersionIds
314
322
  PutResourcePolicy
315
323
  </summary>
316
324
 
317
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/putresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/putresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/putresourcepolicycommandoutput.html)
325
+ [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/)
318
326
 
319
327
  </details>
320
328
  <details>
@@ -322,7 +330,7 @@ PutResourcePolicy
322
330
  PutSecretValue
323
331
  </summary>
324
332
 
325
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/putsecretvaluecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/putsecretvaluecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/putsecretvaluecommandoutput.html)
333
+ [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/)
326
334
 
327
335
  </details>
328
336
  <details>
@@ -330,7 +338,7 @@ PutSecretValue
330
338
  RemoveRegionsFromReplication
331
339
  </summary>
332
340
 
333
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/removeregionsfromreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/removeregionsfromreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/removeregionsfromreplicationcommandoutput.html)
341
+ [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/)
334
342
 
335
343
  </details>
336
344
  <details>
@@ -338,7 +346,7 @@ RemoveRegionsFromReplication
338
346
  ReplicateSecretToRegions
339
347
  </summary>
340
348
 
341
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/replicatesecrettoregionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/replicatesecrettoregionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/replicatesecrettoregionscommandoutput.html)
349
+ [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/)
342
350
 
343
351
  </details>
344
352
  <details>
@@ -346,7 +354,7 @@ ReplicateSecretToRegions
346
354
  RestoreSecret
347
355
  </summary>
348
356
 
349
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/restoresecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/restoresecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/restoresecretcommandoutput.html)
357
+ [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/)
350
358
 
351
359
  </details>
352
360
  <details>
@@ -354,7 +362,7 @@ RestoreSecret
354
362
  RotateSecret
355
363
  </summary>
356
364
 
357
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/rotatesecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/rotatesecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/rotatesecretcommandoutput.html)
365
+ [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/)
358
366
 
359
367
  </details>
360
368
  <details>
@@ -362,7 +370,7 @@ RotateSecret
362
370
  StopReplicationToReplica
363
371
  </summary>
364
372
 
365
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/stopreplicationtoreplicacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/stopreplicationtoreplicacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/stopreplicationtoreplicacommandoutput.html)
373
+ [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/)
366
374
 
367
375
  </details>
368
376
  <details>
@@ -370,7 +378,7 @@ StopReplicationToReplica
370
378
  TagResource
371
379
  </summary>
372
380
 
373
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/tagresourcecommandoutput.html)
381
+ [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/)
374
382
 
375
383
  </details>
376
384
  <details>
@@ -378,7 +386,7 @@ TagResource
378
386
  UntagResource
379
387
  </summary>
380
388
 
381
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/untagresourcecommandoutput.html)
389
+ [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/)
382
390
 
383
391
  </details>
384
392
  <details>
@@ -386,7 +394,7 @@ UntagResource
386
394
  UpdateSecret
387
395
  </summary>
388
396
 
389
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/updatesecretcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/updatesecretcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/updatesecretcommandoutput.html)
397
+ [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/)
390
398
 
391
399
  </details>
392
400
  <details>
@@ -394,7 +402,7 @@ UpdateSecret
394
402
  UpdateSecretVersionStage
395
403
  </summary>
396
404
 
397
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/updatesecretversionstagecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/updatesecretversionstagecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/updatesecretversionstagecommandoutput.html)
405
+ [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/)
398
406
 
399
407
  </details>
400
408
  <details>
@@ -402,6 +410,6 @@ UpdateSecretVersionStage
402
410
  ValidateResourcePolicy
403
411
  </summary>
404
412
 
405
- [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/classes/validateresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/validateresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-secrets-manager/interfaces/validateresourcepolicycommandoutput.html)
413
+ [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/)
406
414
 
407
415
  </details>
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SecretsManager = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
+ const BatchGetSecretValueCommand_1 = require("./commands/BatchGetSecretValueCommand");
5
6
  const CancelRotateSecretCommand_1 = require("./commands/CancelRotateSecretCommand");
6
7
  const CreateSecretCommand_1 = require("./commands/CreateSecretCommand");
7
8
  const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
@@ -26,6 +27,7 @@ const UpdateSecretVersionStageCommand_1 = require("./commands/UpdateSecretVersio
26
27
  const ValidateResourcePolicyCommand_1 = require("./commands/ValidateResourcePolicyCommand");
27
28
  const SecretsManagerClient_1 = require("./SecretsManagerClient");
28
29
  const commands = {
30
+ BatchGetSecretValueCommand: BatchGetSecretValueCommand_1.BatchGetSecretValueCommand,
29
31
  CancelRotateSecretCommand: CancelRotateSecretCommand_1.CancelRotateSecretCommand,
30
32
  CreateSecretCommand: CreateSecretCommand_1.CreateSecretCommand,
31
33
  DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetSecretValueCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const models_0_1 = require("../models/models_0");
10
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
+ class BatchGetSecretValueCommand extends smithy_client_1.Command {
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
20
+ constructor(input) {
21
+ super();
22
+ this.input = input;
23
+ }
24
+ resolveMiddleware(clientStack, configuration, options) {
25
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, BatchGetSecretValueCommand.getEndpointParameterInstructions()));
27
+ const stack = clientStack.concat(this.middlewareStack);
28
+ const { logger } = configuration;
29
+ const clientName = "SecretsManagerClient";
30
+ const commandName = "BatchGetSecretValueCommand";
31
+ const handlerExecutionContext = {
32
+ logger,
33
+ clientName,
34
+ commandName,
35
+ inputFilterSensitiveLog: (_) => _,
36
+ outputFilterSensitiveLog: models_0_1.BatchGetSecretValueResponseFilterSensitiveLog,
37
+ [types_1.SMITHY_CONTEXT_KEY]: {
38
+ service: "secretsmanager",
39
+ operation: "BatchGetSecretValue",
40
+ },
41
+ };
42
+ const { requestHandler } = configuration;
43
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
+ }
45
+ serialize(input, context) {
46
+ return (0, Aws_json1_1_1.se_BatchGetSecretValueCommand)(input, context);
47
+ }
48
+ deserialize(output, context) {
49
+ return (0, Aws_json1_1_1.de_BatchGetSecretValueCommand)(output, context);
50
+ }
51
+ }
52
+ exports.BatchGetSecretValueCommand = BatchGetSecretValueCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchGetSecretValueCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CancelRotateSecretCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateSecretCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
@@ -1,8 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateSecretRequestFilterSensitiveLog = exports.PutSecretValueRequestFilterSensitiveLog = exports.GetSecretValueResponseFilterSensitiveLog = exports.GetRandomPasswordResponseFilterSensitiveLog = exports.CreateSecretRequestFilterSensitiveLog = exports.PublicPolicyException = exports.SortOrderType = exports.InvalidNextTokenException = exports.FilterNameStringType = exports.ResourceExistsException = exports.PreconditionNotMetException = exports.MalformedPolicyDocumentException = exports.LimitExceededException = exports.EncryptionFailure = exports.DecryptionFailure = exports.StatusType = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InvalidParameterException = exports.InternalServiceError = void 0;
3
+ exports.UpdateSecretRequestFilterSensitiveLog = exports.PutSecretValueRequestFilterSensitiveLog = exports.GetSecretValueResponseFilterSensitiveLog = exports.GetRandomPasswordResponseFilterSensitiveLog = exports.CreateSecretRequestFilterSensitiveLog = exports.BatchGetSecretValueResponseFilterSensitiveLog = exports.SecretValueEntryFilterSensitiveLog = exports.PublicPolicyException = exports.SortOrderType = exports.ResourceExistsException = exports.PreconditionNotMetException = exports.MalformedPolicyDocumentException = exports.LimitExceededException = exports.EncryptionFailure = exports.StatusType = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InvalidParameterException = exports.InvalidNextTokenException = exports.InternalServiceError = exports.DecryptionFailure = exports.FilterNameStringType = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const SecretsManagerServiceException_1 = require("./SecretsManagerServiceException");
6
+ exports.FilterNameStringType = {
7
+ all: "all",
8
+ description: "description",
9
+ name: "name",
10
+ owning_service: "owning-service",
11
+ primary_region: "primary-region",
12
+ tag_key: "tag-key",
13
+ tag_value: "tag-value",
14
+ };
15
+ class DecryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
16
+ constructor(opts) {
17
+ super({
18
+ name: "DecryptionFailure",
19
+ $fault: "client",
20
+ ...opts,
21
+ });
22
+ this.name = "DecryptionFailure";
23
+ this.$fault = "client";
24
+ Object.setPrototypeOf(this, DecryptionFailure.prototype);
25
+ this.Message = opts.Message;
26
+ }
27
+ }
28
+ exports.DecryptionFailure = DecryptionFailure;
6
29
  class InternalServiceError extends SecretsManagerServiceException_1.SecretsManagerServiceException {
7
30
  constructor(opts) {
8
31
  super({
@@ -17,6 +40,20 @@ class InternalServiceError extends SecretsManagerServiceException_1.SecretsManag
17
40
  }
18
41
  }
19
42
  exports.InternalServiceError = InternalServiceError;
43
+ class InvalidNextTokenException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
44
+ constructor(opts) {
45
+ super({
46
+ name: "InvalidNextTokenException",
47
+ $fault: "client",
48
+ ...opts,
49
+ });
50
+ this.name = "InvalidNextTokenException";
51
+ this.$fault = "client";
52
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
53
+ this.Message = opts.Message;
54
+ }
55
+ }
56
+ exports.InvalidNextTokenException = InvalidNextTokenException;
20
57
  class InvalidParameterException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
21
58
  constructor(opts) {
22
59
  super({
@@ -64,20 +101,6 @@ exports.StatusType = {
64
101
  InProgress: "InProgress",
65
102
  InSync: "InSync",
66
103
  };
67
- class DecryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
68
- constructor(opts) {
69
- super({
70
- name: "DecryptionFailure",
71
- $fault: "client",
72
- ...opts,
73
- });
74
- this.name = "DecryptionFailure";
75
- this.$fault = "client";
76
- Object.setPrototypeOf(this, DecryptionFailure.prototype);
77
- this.Message = opts.Message;
78
- }
79
- }
80
- exports.DecryptionFailure = DecryptionFailure;
81
104
  class EncryptionFailure extends SecretsManagerServiceException_1.SecretsManagerServiceException {
82
105
  constructor(opts) {
83
106
  super({
@@ -148,29 +171,6 @@ class ResourceExistsException extends SecretsManagerServiceException_1.SecretsMa
148
171
  }
149
172
  }
150
173
  exports.ResourceExistsException = ResourceExistsException;
151
- exports.FilterNameStringType = {
152
- all: "all",
153
- description: "description",
154
- name: "name",
155
- owning_service: "owning-service",
156
- primary_region: "primary-region",
157
- tag_key: "tag-key",
158
- tag_value: "tag-value",
159
- };
160
- class InvalidNextTokenException extends SecretsManagerServiceException_1.SecretsManagerServiceException {
161
- constructor(opts) {
162
- super({
163
- name: "InvalidNextTokenException",
164
- $fault: "client",
165
- ...opts,
166
- });
167
- this.name = "InvalidNextTokenException";
168
- this.$fault = "client";
169
- Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
170
- this.Message = opts.Message;
171
- }
172
- }
173
- exports.InvalidNextTokenException = InvalidNextTokenException;
174
174
  exports.SortOrderType = {
175
175
  asc: "asc",
176
176
  desc: "desc",
@@ -189,6 +189,17 @@ class PublicPolicyException extends SecretsManagerServiceException_1.SecretsMana
189
189
  }
190
190
  }
191
191
  exports.PublicPolicyException = PublicPolicyException;
192
+ const SecretValueEntryFilterSensitiveLog = (obj) => ({
193
+ ...obj,
194
+ ...(obj.SecretBinary && { SecretBinary: smithy_client_1.SENSITIVE_STRING }),
195
+ ...(obj.SecretString && { SecretString: smithy_client_1.SENSITIVE_STRING }),
196
+ });
197
+ exports.SecretValueEntryFilterSensitiveLog = SecretValueEntryFilterSensitiveLog;
198
+ const BatchGetSecretValueResponseFilterSensitiveLog = (obj) => ({
199
+ ...obj,
200
+ ...(obj.SecretValues && { SecretValues: obj.SecretValues.map((item) => (0, exports.SecretValueEntryFilterSensitiveLog)(item)) }),
201
+ });
202
+ exports.BatchGetSecretValueResponseFilterSensitiveLog = BatchGetSecretValueResponseFilterSensitiveLog;
192
203
  const CreateSecretRequestFilterSensitiveLog = (obj) => ({
193
204
  ...obj,
194
205
  ...(obj.SecretBinary && { SecretBinary: smithy_client_1.SENSITIVE_STRING }),
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateBatchGetSecretValue = void 0;
4
+ const BatchGetSecretValueCommand_1 = require("../commands/BatchGetSecretValueCommand");
5
+ const SecretsManagerClient_1 = require("../SecretsManagerClient");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new BatchGetSecretValueCommand_1.BatchGetSecretValueCommand(input), ...args);
8
+ };
9
+ async function* paginateBatchGetSecretValue(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof SecretsManagerClient_1.SecretsManagerClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected SecretsManager | SecretsManagerClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateBatchGetSecretValue = paginateBatchGetSecretValue;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchGetSecretValuePaginator"), exports);
4
5
  tslib_1.__exportStar(require("./Interfaces"), exports);
5
6
  tslib_1.__exportStar(require("./ListSecretVersionIdsPaginator"), exports);
6
7
  tslib_1.__exportStar(require("./ListSecretsPaginator"), exports);
@@ -1,11 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ValidateResourcePolicyCommand = exports.de_UpdateSecretVersionStageCommand = exports.de_UpdateSecretCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopReplicationToReplicaCommand = exports.de_RotateSecretCommand = exports.de_RestoreSecretCommand = exports.de_ReplicateSecretToRegionsCommand = exports.de_RemoveRegionsFromReplicationCommand = exports.de_PutSecretValueCommand = exports.de_PutResourcePolicyCommand = exports.de_ListSecretVersionIdsCommand = exports.de_ListSecretsCommand = exports.de_GetSecretValueCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRandomPasswordCommand = exports.de_DescribeSecretCommand = exports.de_DeleteSecretCommand = exports.de_DeleteResourcePolicyCommand = exports.de_CreateSecretCommand = exports.de_CancelRotateSecretCommand = exports.se_ValidateResourcePolicyCommand = exports.se_UpdateSecretVersionStageCommand = exports.se_UpdateSecretCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopReplicationToReplicaCommand = exports.se_RotateSecretCommand = exports.se_RestoreSecretCommand = exports.se_ReplicateSecretToRegionsCommand = exports.se_RemoveRegionsFromReplicationCommand = exports.se_PutSecretValueCommand = exports.se_PutResourcePolicyCommand = exports.se_ListSecretVersionIdsCommand = exports.se_ListSecretsCommand = exports.se_GetSecretValueCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRandomPasswordCommand = exports.se_DescribeSecretCommand = exports.se_DeleteSecretCommand = exports.se_DeleteResourcePolicyCommand = exports.se_CreateSecretCommand = exports.se_CancelRotateSecretCommand = void 0;
3
+ exports.de_ValidateResourcePolicyCommand = exports.de_UpdateSecretVersionStageCommand = exports.de_UpdateSecretCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopReplicationToReplicaCommand = exports.de_RotateSecretCommand = exports.de_RestoreSecretCommand = exports.de_ReplicateSecretToRegionsCommand = exports.de_RemoveRegionsFromReplicationCommand = exports.de_PutSecretValueCommand = exports.de_PutResourcePolicyCommand = exports.de_ListSecretVersionIdsCommand = exports.de_ListSecretsCommand = exports.de_GetSecretValueCommand = exports.de_GetResourcePolicyCommand = exports.de_GetRandomPasswordCommand = exports.de_DescribeSecretCommand = exports.de_DeleteSecretCommand = exports.de_DeleteResourcePolicyCommand = exports.de_CreateSecretCommand = exports.de_CancelRotateSecretCommand = exports.de_BatchGetSecretValueCommand = exports.se_ValidateResourcePolicyCommand = exports.se_UpdateSecretVersionStageCommand = exports.se_UpdateSecretCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopReplicationToReplicaCommand = exports.se_RotateSecretCommand = exports.se_RestoreSecretCommand = exports.se_ReplicateSecretToRegionsCommand = exports.se_RemoveRegionsFromReplicationCommand = exports.se_PutSecretValueCommand = exports.se_PutResourcePolicyCommand = exports.se_ListSecretVersionIdsCommand = exports.se_ListSecretsCommand = exports.se_GetSecretValueCommand = exports.se_GetResourcePolicyCommand = exports.se_GetRandomPasswordCommand = exports.se_DescribeSecretCommand = exports.se_DeleteSecretCommand = exports.se_DeleteResourcePolicyCommand = exports.se_CreateSecretCommand = exports.se_CancelRotateSecretCommand = exports.se_BatchGetSecretValueCommand = void 0;
4
4
  const protocol_http_1 = require("@smithy/protocol-http");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const uuid_1 = require("uuid");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const SecretsManagerServiceException_1 = require("../models/SecretsManagerServiceException");
9
+ const se_BatchGetSecretValueCommand = async (input, context) => {
10
+ const headers = sharedHeaders("BatchGetSecretValue");
11
+ let body;
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
+ };
15
+ exports.se_BatchGetSecretValueCommand = se_BatchGetSecretValueCommand;
9
16
  const se_CancelRotateSecretCommand = async (input, context) => {
10
17
  const headers = sharedHeaders("CancelRotateSecret");
11
18
  let body;
@@ -160,6 +167,54 @@ const se_ValidateResourcePolicyCommand = async (input, context) => {
160
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
168
  };
162
169
  exports.se_ValidateResourcePolicyCommand = se_ValidateResourcePolicyCommand;
170
+ const de_BatchGetSecretValueCommand = async (output, context) => {
171
+ if (output.statusCode >= 300) {
172
+ return de_BatchGetSecretValueCommandError(output, context);
173
+ }
174
+ const data = await parseBody(output.body, context);
175
+ let contents = {};
176
+ contents = de_BatchGetSecretValueResponse(data, context);
177
+ const response = {
178
+ $metadata: deserializeMetadata(output),
179
+ ...contents,
180
+ };
181
+ return response;
182
+ };
183
+ exports.de_BatchGetSecretValueCommand = de_BatchGetSecretValueCommand;
184
+ const de_BatchGetSecretValueCommandError = async (output, context) => {
185
+ const parsedOutput = {
186
+ ...output,
187
+ body: await parseErrorBody(output.body, context),
188
+ };
189
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
190
+ switch (errorCode) {
191
+ case "DecryptionFailure":
192
+ case "com.amazonaws.secretsmanager#DecryptionFailure":
193
+ throw await de_DecryptionFailureRes(parsedOutput, context);
194
+ case "InternalServiceError":
195
+ case "com.amazonaws.secretsmanager#InternalServiceError":
196
+ throw await de_InternalServiceErrorRes(parsedOutput, context);
197
+ case "InvalidNextTokenException":
198
+ case "com.amazonaws.secretsmanager#InvalidNextTokenException":
199
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
200
+ case "InvalidParameterException":
201
+ case "com.amazonaws.secretsmanager#InvalidParameterException":
202
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
203
+ case "InvalidRequestException":
204
+ case "com.amazonaws.secretsmanager#InvalidRequestException":
205
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
206
+ case "ResourceNotFoundException":
207
+ case "com.amazonaws.secretsmanager#ResourceNotFoundException":
208
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
209
+ default:
210
+ const parsedBody = parsedOutput.body;
211
+ return throwDefaultError({
212
+ output,
213
+ parsedBody,
214
+ errorCode,
215
+ });
216
+ }
217
+ };
163
218
  const de_CancelRotateSecretCommand = async (output, context) => {
164
219
  if (output.statusCode >= 300) {
165
220
  return de_CancelRotateSecretCommandError(output, context);
@@ -1284,6 +1339,13 @@ const se_UpdateSecretRequest = (input, context) => {
1284
1339
  SecretString: [],
1285
1340
  });
1286
1341
  };
1342
+ const de_BatchGetSecretValueResponse = (output, context) => {
1343
+ return (0, smithy_client_1.take)(output, {
1344
+ Errors: smithy_client_1._json,
1345
+ NextToken: smithy_client_1.expectString,
1346
+ SecretValues: (_) => de_SecretValuesType(_, context),
1347
+ });
1348
+ };
1287
1349
  const de_CreateSecretResponse = (output, context) => {
1288
1350
  return (0, smithy_client_1.take)(output, {
1289
1351
  ARN: smithy_client_1.expectString,
@@ -1404,6 +1466,25 @@ const de_SecretListType = (output, context) => {
1404
1466
  });
1405
1467
  return retVal;
1406
1468
  };
1469
+ const de_SecretValueEntry = (output, context) => {
1470
+ return (0, smithy_client_1.take)(output, {
1471
+ ARN: smithy_client_1.expectString,
1472
+ CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1473
+ Name: smithy_client_1.expectString,
1474
+ SecretBinary: context.base64Decoder,
1475
+ SecretString: smithy_client_1.expectString,
1476
+ VersionId: smithy_client_1.expectString,
1477
+ VersionStages: smithy_client_1._json,
1478
+ });
1479
+ };
1480
+ const de_SecretValuesType = (output, context) => {
1481
+ const retVal = (output || [])
1482
+ .filter((e) => e != null)
1483
+ .map((entry) => {
1484
+ return de_SecretValueEntry(entry, context);
1485
+ });
1486
+ return retVal;
1487
+ };
1407
1488
  const de_SecretVersionsListEntry = (output, context) => {
1408
1489
  return (0, smithy_client_1.take)(output, {
1409
1490
  CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
@@ -1,4 +1,5 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { BatchGetSecretValueCommand, } from "./commands/BatchGetSecretValueCommand";
2
3
  import { CancelRotateSecretCommand, } from "./commands/CancelRotateSecretCommand";
3
4
  import { CreateSecretCommand, } from "./commands/CreateSecretCommand";
4
5
  import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
@@ -23,6 +24,7 @@ import { UpdateSecretVersionStageCommand, } from "./commands/UpdateSecretVersion
23
24
  import { ValidateResourcePolicyCommand, } from "./commands/ValidateResourcePolicyCommand";
24
25
  import { SecretsManagerClient } from "./SecretsManagerClient";
25
26
  const commands = {
27
+ BatchGetSecretValueCommand,
26
28
  CancelRotateSecretCommand,
27
29
  CreateSecretCommand,
28
30
  DeleteResourcePolicyCommand,