@aws-sdk/client-secrets-manager 3.590.0 → 3.596.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 (55) hide show
  1. package/dist-cjs/index.js +3 -24
  2. package/dist-es/models/models_0.js +1 -0
  3. package/dist-es/protocols/Aws_json1_1.js +1 -0
  4. package/dist-types/commands/BatchGetSecretValueCommand.d.ts +2 -1
  5. package/dist-types/commands/CancelRotateSecretCommand.d.ts +2 -1
  6. package/dist-types/commands/CreateSecretCommand.d.ts +2 -1
  7. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -1
  8. package/dist-types/commands/DeleteSecretCommand.d.ts +2 -1
  9. package/dist-types/commands/DescribeSecretCommand.d.ts +2 -1
  10. package/dist-types/commands/GetRandomPasswordCommand.d.ts +2 -1
  11. package/dist-types/commands/GetResourcePolicyCommand.d.ts +2 -1
  12. package/dist-types/commands/GetSecretValueCommand.d.ts +2 -1
  13. package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +2 -1
  14. package/dist-types/commands/ListSecretsCommand.d.ts +2 -1
  15. package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -1
  16. package/dist-types/commands/PutSecretValueCommand.d.ts +4 -2
  17. package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -1
  18. package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +2 -1
  19. package/dist-types/commands/RestoreSecretCommand.d.ts +2 -1
  20. package/dist-types/commands/RotateSecretCommand.d.ts +2 -1
  21. package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +2 -1
  22. package/dist-types/commands/TagResourceCommand.d.ts +2 -1
  23. package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
  24. package/dist-types/commands/UpdateSecretCommand.d.ts +2 -1
  25. package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +2 -1
  26. package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +2 -1
  27. package/dist-types/index.d.ts +2 -2
  28. package/dist-types/models/SecretsManagerServiceException.d.ts +2 -1
  29. package/dist-types/models/models_0.d.ts +17 -3
  30. package/dist-types/ts3.4/commands/BatchGetSecretValueCommand.d.ts +2 -1
  31. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +2 -1
  32. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +2 -1
  33. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -1
  34. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +2 -1
  35. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +2 -1
  36. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +2 -1
  37. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +2 -1
  38. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +2 -1
  39. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +2 -1
  40. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +2 -1
  41. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -1
  42. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +2 -1
  43. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -1
  44. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +2 -1
  45. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +2 -1
  46. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +2 -1
  47. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +2 -1
  48. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -1
  49. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -1
  50. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +2 -1
  51. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +2 -1
  52. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +2 -1
  53. package/dist-types/ts3.4/models/SecretsManagerServiceException.d.ts +2 -1
  54. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  55. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -226,7 +226,6 @@ var SecretsManagerClient = _SecretsManagerClient;
226
226
 
227
227
  var import_middleware_serde = require("@smithy/middleware-serde");
228
228
 
229
- var import_types = require("@smithy/types");
230
229
 
231
230
  // src/models/models_0.ts
232
231
 
@@ -506,7 +505,8 @@ var GetSecretValueResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
506
505
  var PutSecretValueRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
507
506
  ...obj,
508
507
  ...obj.SecretBinary && { SecretBinary: import_smithy_client.SENSITIVE_STRING },
509
- ...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING }
508
+ ...obj.SecretString && { SecretString: import_smithy_client.SENSITIVE_STRING },
509
+ ...obj.RotationToken && { RotationToken: import_smithy_client.SENSITIVE_STRING }
510
510
  }), "PutSecretValueRequestFilterSensitiveLog");
511
511
  var UpdateSecretRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
512
512
  ...obj,
@@ -1126,6 +1126,7 @@ var se_CreateSecretRequest = /* @__PURE__ */ __name((input, context) => {
1126
1126
  var se_PutSecretValueRequest = /* @__PURE__ */ __name((input, context) => {
1127
1127
  return (0, import_smithy_client.take)(input, {
1128
1128
  ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1129
+ RotationToken: [],
1129
1130
  SecretBinary: context.base64Encoder,
1130
1131
  SecretId: [],
1131
1132
  SecretString: [],
@@ -1356,7 +1357,6 @@ var BatchGetSecretValueCommand = _BatchGetSecretValueCommand;
1356
1357
 
1357
1358
 
1358
1359
 
1359
-
1360
1360
  var _CancelRotateSecretCommand = class _CancelRotateSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1361
1361
  ...commonParams
1362
1362
  }).m(function(Command, cs, config, o) {
@@ -1373,7 +1373,6 @@ var CancelRotateSecretCommand = _CancelRotateSecretCommand;
1373
1373
 
1374
1374
 
1375
1375
 
1376
-
1377
1376
  var _CreateSecretCommand = class _CreateSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1378
1377
  ...commonParams
1379
1378
  }).m(function(Command, cs, config, o) {
@@ -1390,7 +1389,6 @@ var CreateSecretCommand = _CreateSecretCommand;
1390
1389
 
1391
1390
 
1392
1391
 
1393
-
1394
1392
  var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1395
1393
  ...commonParams
1396
1394
  }).m(function(Command, cs, config, o) {
@@ -1407,7 +1405,6 @@ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
1407
1405
 
1408
1406
 
1409
1407
 
1410
-
1411
1408
  var _DeleteSecretCommand = class _DeleteSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1412
1409
  ...commonParams
1413
1410
  }).m(function(Command, cs, config, o) {
@@ -1424,7 +1421,6 @@ var DeleteSecretCommand = _DeleteSecretCommand;
1424
1421
 
1425
1422
 
1426
1423
 
1427
-
1428
1424
  var _DescribeSecretCommand = class _DescribeSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1429
1425
  ...commonParams
1430
1426
  }).m(function(Command, cs, config, o) {
@@ -1441,7 +1437,6 @@ var DescribeSecretCommand = _DescribeSecretCommand;
1441
1437
 
1442
1438
 
1443
1439
 
1444
-
1445
1440
  var _GetRandomPasswordCommand = class _GetRandomPasswordCommand extends import_smithy_client.Command.classBuilder().ep({
1446
1441
  ...commonParams
1447
1442
  }).m(function(Command, cs, config, o) {
@@ -1458,7 +1453,6 @@ var GetRandomPasswordCommand = _GetRandomPasswordCommand;
1458
1453
 
1459
1454
 
1460
1455
 
1461
-
1462
1456
  var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1463
1457
  ...commonParams
1464
1458
  }).m(function(Command, cs, config, o) {
@@ -1475,7 +1469,6 @@ var GetResourcePolicyCommand = _GetResourcePolicyCommand;
1475
1469
 
1476
1470
 
1477
1471
 
1478
-
1479
1472
  var _GetSecretValueCommand = class _GetSecretValueCommand extends import_smithy_client.Command.classBuilder().ep({
1480
1473
  ...commonParams
1481
1474
  }).m(function(Command, cs, config, o) {
@@ -1492,7 +1485,6 @@ var GetSecretValueCommand = _GetSecretValueCommand;
1492
1485
 
1493
1486
 
1494
1487
 
1495
-
1496
1488
  var _ListSecretsCommand = class _ListSecretsCommand extends import_smithy_client.Command.classBuilder().ep({
1497
1489
  ...commonParams
1498
1490
  }).m(function(Command, cs, config, o) {
@@ -1509,7 +1501,6 @@ var ListSecretsCommand = _ListSecretsCommand;
1509
1501
 
1510
1502
 
1511
1503
 
1512
-
1513
1504
  var _ListSecretVersionIdsCommand = class _ListSecretVersionIdsCommand extends import_smithy_client.Command.classBuilder().ep({
1514
1505
  ...commonParams
1515
1506
  }).m(function(Command, cs, config, o) {
@@ -1526,7 +1517,6 @@ var ListSecretVersionIdsCommand = _ListSecretVersionIdsCommand;
1526
1517
 
1527
1518
 
1528
1519
 
1529
-
1530
1520
  var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1531
1521
  ...commonParams
1532
1522
  }).m(function(Command, cs, config, o) {
@@ -1543,7 +1533,6 @@ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
1543
1533
 
1544
1534
 
1545
1535
 
1546
-
1547
1536
  var _PutSecretValueCommand = class _PutSecretValueCommand extends import_smithy_client.Command.classBuilder().ep({
1548
1537
  ...commonParams
1549
1538
  }).m(function(Command, cs, config, o) {
@@ -1560,7 +1549,6 @@ var PutSecretValueCommand = _PutSecretValueCommand;
1560
1549
 
1561
1550
 
1562
1551
 
1563
-
1564
1552
  var _RemoveRegionsFromReplicationCommand = class _RemoveRegionsFromReplicationCommand extends import_smithy_client.Command.classBuilder().ep({
1565
1553
  ...commonParams
1566
1554
  }).m(function(Command, cs, config, o) {
@@ -1577,7 +1565,6 @@ var RemoveRegionsFromReplicationCommand = _RemoveRegionsFromReplicationCommand;
1577
1565
 
1578
1566
 
1579
1567
 
1580
-
1581
1568
  var _ReplicateSecretToRegionsCommand = class _ReplicateSecretToRegionsCommand extends import_smithy_client.Command.classBuilder().ep({
1582
1569
  ...commonParams
1583
1570
  }).m(function(Command, cs, config, o) {
@@ -1594,7 +1581,6 @@ var ReplicateSecretToRegionsCommand = _ReplicateSecretToRegionsCommand;
1594
1581
 
1595
1582
 
1596
1583
 
1597
-
1598
1584
  var _RestoreSecretCommand = class _RestoreSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1599
1585
  ...commonParams
1600
1586
  }).m(function(Command, cs, config, o) {
@@ -1611,7 +1597,6 @@ var RestoreSecretCommand = _RestoreSecretCommand;
1611
1597
 
1612
1598
 
1613
1599
 
1614
-
1615
1600
  var _RotateSecretCommand = class _RotateSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1616
1601
  ...commonParams
1617
1602
  }).m(function(Command, cs, config, o) {
@@ -1628,7 +1613,6 @@ var RotateSecretCommand = _RotateSecretCommand;
1628
1613
 
1629
1614
 
1630
1615
 
1631
-
1632
1616
  var _StopReplicationToReplicaCommand = class _StopReplicationToReplicaCommand extends import_smithy_client.Command.classBuilder().ep({
1633
1617
  ...commonParams
1634
1618
  }).m(function(Command, cs, config, o) {
@@ -1645,7 +1629,6 @@ var StopReplicationToReplicaCommand = _StopReplicationToReplicaCommand;
1645
1629
 
1646
1630
 
1647
1631
 
1648
-
1649
1632
  var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1650
1633
  ...commonParams
1651
1634
  }).m(function(Command, cs, config, o) {
@@ -1662,7 +1645,6 @@ var TagResourceCommand = _TagResourceCommand;
1662
1645
 
1663
1646
 
1664
1647
 
1665
-
1666
1648
  var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1667
1649
  ...commonParams
1668
1650
  }).m(function(Command, cs, config, o) {
@@ -1679,7 +1661,6 @@ var UntagResourceCommand = _UntagResourceCommand;
1679
1661
 
1680
1662
 
1681
1663
 
1682
-
1683
1664
  var _UpdateSecretCommand = class _UpdateSecretCommand extends import_smithy_client.Command.classBuilder().ep({
1684
1665
  ...commonParams
1685
1666
  }).m(function(Command, cs, config, o) {
@@ -1696,7 +1677,6 @@ var UpdateSecretCommand = _UpdateSecretCommand;
1696
1677
 
1697
1678
 
1698
1679
 
1699
-
1700
1680
  var _UpdateSecretVersionStageCommand = class _UpdateSecretVersionStageCommand extends import_smithy_client.Command.classBuilder().ep({
1701
1681
  ...commonParams
1702
1682
  }).m(function(Command, cs, config, o) {
@@ -1713,7 +1693,6 @@ var UpdateSecretVersionStageCommand = _UpdateSecretVersionStageCommand;
1713
1693
 
1714
1694
 
1715
1695
 
1716
-
1717
1696
  var _ValidateResourcePolicyCommand = class _ValidateResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
1718
1697
  ...commonParams
1719
1698
  }).m(function(Command, cs, config, o) {
@@ -201,6 +201,7 @@ export const PutSecretValueRequestFilterSensitiveLog = (obj) => ({
201
201
  ...obj,
202
202
  ...(obj.SecretBinary && { SecretBinary: SENSITIVE_STRING }),
203
203
  ...(obj.SecretString && { SecretString: SENSITIVE_STRING }),
204
+ ...(obj.RotationToken && { RotationToken: SENSITIVE_STRING }),
204
205
  });
205
206
  export const UpdateSecretRequestFilterSensitiveLog = (obj) => ({
206
207
  ...obj,
@@ -611,6 +611,7 @@ const se_CreateSecretRequest = (input, context) => {
611
611
  const se_PutSecretValueRequest = (input, context) => {
612
612
  return take(input, {
613
613
  ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
614
+ RotationToken: [],
614
615
  SecretBinary: context.base64Encoder,
615
616
  SecretId: [],
616
617
  SecretString: [],
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -47,7 +48,7 @@ declare const PutSecretValueCommand_base: {
47
48
  * same secret data, the operation succeeds but does nothing. However, if the secret data is
48
49
  * different, then the operation fails because you can't modify an existing version; you can
49
50
  * only create new ones.</p>
50
- * <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code> or <code>SecretString</code> because it might be logged. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html">Logging Secrets Manager events with CloudTrail</a>.</p>
51
+ * <p>Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters except <code>SecretBinary</code>, <code>SecretString</code>, or <code>RotationToken</code> because it might be logged. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieve-ct-entries.html">Logging Secrets Manager events with CloudTrail</a>.</p>
51
52
  * <p>
52
53
  * <b>Required permissions: </b>
53
54
  * <code>secretsmanager:PutSecretValue</code>.
@@ -68,6 +69,7 @@ declare const PutSecretValueCommand_base: {
68
69
  * VersionStages: [ // SecretVersionStagesType
69
70
  * "STRING_VALUE",
70
71
  * ],
72
+ * RotationToken: "STRING_VALUE",
71
73
  * };
72
74
  * const command = new PutSecretValueCommand(input);
73
75
  * const response = await client.send(command);
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -5,7 +5,8 @@ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTyp
5
5
  /**
6
6
  * @public
7
7
  */
8
- export { __MetadataBearer, $Command };
8
+ export type { __MetadataBearer };
9
+ export { $Command };
9
10
  /**
10
11
  * @public
11
12
  *
@@ -31,8 +31,8 @@
31
31
  export * from "./SecretsManagerClient";
32
32
  export * from "./SecretsManager";
33
33
  export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
34
- export { RuntimeExtension } from "./runtimeExtensions";
35
- export { SecretsManagerExtensionConfiguration } from "./extensionConfiguration";
34
+ export type { RuntimeExtension } from "./runtimeExtensions";
35
+ export type { SecretsManagerExtensionConfiguration } from "./extensionConfiguration";
36
36
  export * from "./commands";
37
37
  export * from "./pagination";
38
38
  export * from "./models";
@@ -1,5 +1,6 @@
1
1
  import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
- export { __ServiceException, __ServiceExceptionOptions };
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
3
4
  /**
4
5
  * @public
5
6
  *
@@ -416,6 +416,7 @@ export interface CreateSecretRequest {
416
416
  * <p>Either <code>SecretString</code> or <code>SecretBinary</code> must have a value, but not
417
417
  * both.</p>
418
418
  * <p>This parameter is not available in the Secrets Manager console.</p>
419
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
419
420
  * @public
420
421
  */
421
422
  SecretBinary?: Uint8Array;
@@ -427,6 +428,7 @@ export interface CreateSecretRequest {
427
428
  * <p>If you create a secret by using the Secrets Manager console then Secrets Manager puts the protected
428
429
  * secret text in only the <code>SecretString</code> parameter. The Secrets Manager console stores the
429
430
  * information as a JSON structure of key/value pairs that a Lambda rotation function can parse.</p>
431
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
430
432
  * @public
431
433
  */
432
434
  SecretString?: string;
@@ -798,7 +800,7 @@ export interface DescribeSecretResponse {
798
800
  */
799
801
  KmsKeyId?: string;
800
802
  /**
801
- * <p>Specifies whether automatic rotation is turned on for this secret.</p>
803
+ * <p>Specifies whether automatic rotation is turned on for this secret. If the secret has never been configured for rotation, Secrets Manager returns null.</p>
802
804
  * <p>To turn on rotation, use <a>RotateSecret</a>. To turn off
803
805
  * rotation, use <a>CancelRotateSecret</a>.</p>
804
806
  * @public
@@ -1021,7 +1023,7 @@ export interface GetResourcePolicyResponse {
1021
1023
  */
1022
1024
  export interface GetSecretValueRequest {
1023
1025
  /**
1024
- * <p>The ARN or name of the secret to retrieve.</p>
1026
+ * <p>The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN.</p>
1025
1027
  * <p>For an ARN, we recommend that you specify a complete ARN rather
1026
1028
  * than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>
1027
1029
  * @public
@@ -1072,6 +1074,7 @@ export interface GetSecretValueResponse {
1072
1074
  * <p>If the secret was created by using the Secrets Manager console, or if the secret value was
1073
1075
  * originally provided as a string, then this field is omitted. The secret value appears in
1074
1076
  * <code>SecretString</code> instead.</p>
1077
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1075
1078
  * @public
1076
1079
  */
1077
1080
  SecretBinary?: Uint8Array;
@@ -1080,6 +1083,7 @@ export interface GetSecretValueResponse {
1080
1083
  * through the Secrets Manager console.</p>
1081
1084
  * <p>If this secret was created by using the console, then Secrets Manager stores the information as a
1082
1085
  * JSON structure of key/value pairs. </p>
1086
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1083
1087
  * @public
1084
1088
  */
1085
1089
  SecretString?: string;
@@ -1482,6 +1486,7 @@ export interface PutSecretValueRequest {
1482
1486
  * contents of the file as a parameter. </p>
1483
1487
  * <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p>
1484
1488
  * <p>You can't access this value from the Secrets Manager console.</p>
1489
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1485
1490
  * @public
1486
1491
  */
1487
1492
  SecretBinary?: Uint8Array;
@@ -1489,6 +1494,7 @@ export interface PutSecretValueRequest {
1489
1494
  * <p>The text to encrypt and store in the new version of the secret. </p>
1490
1495
  * <p>You must include <code>SecretBinary</code> or <code>SecretString</code>, but not both.</p>
1491
1496
  * <p>We recommend you create the secret string as JSON key/value pairs, as shown in the example.</p>
1497
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1492
1498
  * @public
1493
1499
  */
1494
1500
  SecretString?: string;
@@ -1506,6 +1512,12 @@ export interface PutSecretValueRequest {
1506
1512
  * @public
1507
1513
  */
1508
1514
  VersionStages?: string[];
1515
+ /**
1516
+ * <p>A unique identifier that indicates the source of the request. For cross-account rotation (when you rotate a secret in one account by using a Lambda rotation function in another account) and the Lambda rotation function assumes an IAM role to call Secrets Manager, Secrets Manager validates the identity with the rotation token. For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">How rotation works</a>.</p>
1517
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1518
+ * @public
1519
+ */
1520
+ RotationToken?: string;
1509
1521
  }
1510
1522
  /**
1511
1523
  * @public
@@ -1812,6 +1824,7 @@ export interface UpdateSecretRequest {
1812
1824
  * <p>Either <code>SecretBinary</code> or
1813
1825
  * <code>SecretString</code> must have a value, but not both.</p>
1814
1826
  * <p>You can't access this parameter in the Secrets Manager console.</p>
1827
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1815
1828
  * @public
1816
1829
  */
1817
1830
  SecretBinary?: Uint8Array;
@@ -1820,6 +1833,7 @@ export interface UpdateSecretRequest {
1820
1833
  * version of the secret. We recommend you use a JSON structure of key/value pairs for your secret value. </p>
1821
1834
  * <p>Either <code>SecretBinary</code> or <code>SecretString</code> must have
1822
1835
  * a value, but not both. </p>
1836
+ * <p>Sensitive: This field contains sensitive information, so the service does not include it in CloudTrail log entries. If you create your own log entries, you must also avoid logging the information in this field.</p>
1823
1837
  * @public
1824
1838
  */
1825
1839
  SecretString?: string;
@@ -1899,7 +1913,7 @@ export interface UpdateSecretVersionStageResponse {
1899
1913
  */
1900
1914
  export interface ValidateResourcePolicyRequest {
1901
1915
  /**
1902
- * <p>This field is reserved for internal use.</p>
1916
+ * <p>The ARN or name of the secret with the resource-based policy you want to validate.</p>
1903
1917
  * @public
1904
1918
  */
1905
1919
  SecretId?: string;
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface BatchGetSecretValueCommandInput
14
15
  extends BatchGetSecretValueRequest {}
15
16
  export interface BatchGetSecretValueCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface CancelRotateSecretCommandInput
14
15
  extends CancelRotateSecretRequest {}
15
16
  export interface CancelRotateSecretCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface CreateSecretCommandInput extends CreateSecretRequest {}
11
12
  export interface CreateSecretCommandOutput
12
13
  extends CreateSecretResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface DeleteResourcePolicyCommandInput
14
15
  extends DeleteResourcePolicyRequest {}
15
16
  export interface DeleteResourcePolicyCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface DeleteSecretCommandInput extends DeleteSecretRequest {}
11
12
  export interface DeleteSecretCommandOutput
12
13
  extends DeleteSecretResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface DescribeSecretCommandInput extends DescribeSecretRequest {}
14
15
  export interface DescribeSecretCommandOutput
15
16
  extends DescribeSecretResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetRandomPasswordCommandInput
14
15
  extends GetRandomPasswordRequest {}
15
16
  export interface GetRandomPasswordCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetResourcePolicyCommandInput
14
15
  extends GetResourcePolicyRequest {}
15
16
  export interface GetResourcePolicyCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface GetSecretValueCommandInput extends GetSecretValueRequest {}
14
15
  export interface GetSecretValueCommandOutput
15
16
  extends GetSecretValueResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface ListSecretVersionIdsCommandInput
14
15
  extends ListSecretVersionIdsRequest {}
15
16
  export interface ListSecretVersionIdsCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface ListSecretsCommandInput extends ListSecretsRequest {}
11
12
  export interface ListSecretsCommandOutput
12
13
  extends ListSecretsResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface PutResourcePolicyCommandInput
14
15
  extends PutResourcePolicyRequest {}
15
16
  export interface PutResourcePolicyCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface PutSecretValueCommandInput extends PutSecretValueRequest {}
14
15
  export interface PutSecretValueCommandOutput
15
16
  extends PutSecretValueResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface RemoveRegionsFromReplicationCommandInput
14
15
  extends RemoveRegionsFromReplicationRequest {}
15
16
  export interface RemoveRegionsFromReplicationCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface ReplicateSecretToRegionsCommandInput
14
15
  extends ReplicateSecretToRegionsRequest {}
15
16
  export interface ReplicateSecretToRegionsCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface RestoreSecretCommandInput extends RestoreSecretRequest {}
14
15
  export interface RestoreSecretCommandOutput
15
16
  extends RestoreSecretResponse,
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface RotateSecretCommandInput extends RotateSecretRequest {}
11
12
  export interface RotateSecretCommandOutput
12
13
  extends RotateSecretResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface StopReplicationToReplicaCommandInput
14
15
  extends StopReplicationToReplicaRequest {}
15
16
  export interface StopReplicationToReplicaCommandOutput
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface TagResourceCommandInput extends TagResourceRequest {}
11
12
  export interface TagResourceCommandOutput extends __MetadataBearer {}
12
13
  declare const TagResourceCommand_base: {
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface UntagResourceCommandInput extends UntagResourceRequest {}
11
12
  export interface UntagResourceCommandOutput extends __MetadataBearer {}
12
13
  declare const UntagResourceCommand_base: {
@@ -6,7 +6,8 @@ import {
6
6
  ServiceInputTypes,
7
7
  ServiceOutputTypes,
8
8
  } from "../SecretsManagerClient";
9
- export { __MetadataBearer, $Command };
9
+ export { __MetadataBearer };
10
+ export { $Command };
10
11
  export interface UpdateSecretCommandInput extends UpdateSecretRequest {}
11
12
  export interface UpdateSecretCommandOutput
12
13
  extends UpdateSecretResponse,
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface UpdateSecretVersionStageCommandInput
14
15
  extends UpdateSecretVersionStageRequest {}
15
16
  export interface UpdateSecretVersionStageCommandOutput
@@ -9,7 +9,8 @@ import {
9
9
  ServiceInputTypes,
10
10
  ServiceOutputTypes,
11
11
  } from "../SecretsManagerClient";
12
- export { __MetadataBearer, $Command };
12
+ export { __MetadataBearer };
13
+ export { $Command };
13
14
  export interface ValidateResourcePolicyCommandInput
14
15
  extends ValidateResourcePolicyRequest {}
15
16
  export interface ValidateResourcePolicyCommandOutput
@@ -2,7 +2,8 @@ import {
2
2
  ServiceException as __ServiceException,
3
3
  ServiceExceptionOptions as __ServiceExceptionOptions,
4
4
  } from "@smithy/smithy-client";
5
- export { __ServiceException, __ServiceExceptionOptions };
5
+ export { __ServiceExceptionOptions };
6
+ export { __ServiceException };
6
7
  export declare class SecretsManagerServiceException extends __ServiceException {
7
8
  constructor(options: __ServiceExceptionOptions);
8
9
  }
@@ -330,6 +330,7 @@ export interface PutSecretValueRequest {
330
330
  SecretBinary?: Uint8Array;
331
331
  SecretString?: string;
332
332
  VersionStages?: string[];
333
+ RotationToken?: string;
333
334
  }
334
335
  export interface PutSecretValueResponse {
335
336
  ARN?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-secrets-manager",
3
3
  "description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
4
- "version": "3.590.0",
4
+ "version": "3.596.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.590.0",
24
- "@aws-sdk/client-sts": "3.590.0",
25
- "@aws-sdk/core": "3.588.0",
26
- "@aws-sdk/credential-provider-node": "3.590.0",
23
+ "@aws-sdk/client-sso-oidc": "3.596.0",
24
+ "@aws-sdk/client-sts": "3.596.0",
25
+ "@aws-sdk/core": "3.592.0",
26
+ "@aws-sdk/credential-provider-node": "3.596.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",
@@ -34,7 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.577.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.587.0",
36
36
  "@smithy/config-resolver": "^3.0.1",
37
- "@smithy/core": "^2.1.1",
37
+ "@smithy/core": "^2.2.0",
38
38
  "@smithy/fetch-http-handler": "^3.0.1",
39
39
  "@smithy/hash-node": "^3.0.0",
40
40
  "@smithy/invalid-dependency": "^3.0.0",