@aws-sdk/client-secrets-manager 3.36.0 → 3.39.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 (81) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/SecretsManager.js +0 -65
  3. package/dist-cjs/SecretsManagerClient.js +0 -70
  4. package/dist-cjs/commands/CancelRotateSecretCommand.js +0 -76
  5. package/dist-cjs/commands/CreateSecretCommand.js +0 -111
  6. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -47
  7. package/dist-cjs/commands/DeleteSecretCommand.js +0 -69
  8. package/dist-cjs/commands/DescribeSecretCommand.js +0 -51
  9. package/dist-cjs/commands/GetRandomPasswordCommand.js +0 -36
  10. package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -50
  11. package/dist-cjs/commands/GetSecretValueCommand.js +0 -51
  12. package/dist-cjs/commands/ListSecretVersionIdsCommand.js +0 -52
  13. package/dist-cjs/commands/ListSecretsCommand.js +0 -53
  14. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -55
  15. package/dist-cjs/commands/PutSecretValueCommand.js +0 -111
  16. package/dist-cjs/commands/RemoveRegionsFromReplicationCommand.js +0 -24
  17. package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js +0 -25
  18. package/dist-cjs/commands/RestoreSecretCommand.js +0 -42
  19. package/dist-cjs/commands/RotateSecretCommand.js +0 -85
  20. package/dist-cjs/commands/StopReplicationToReplicaCommand.js +0 -24
  21. package/dist-cjs/commands/TagResourceCommand.js +0 -79
  22. package/dist-cjs/commands/UntagResourceCommand.js +0 -52
  23. package/dist-cjs/commands/UpdateSecretCommand.js +0 -108
  24. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js +0 -60
  25. package/dist-cjs/commands/ValidateResourcePolicyCommand.js +0 -58
  26. package/dist-cjs/commands/index.js +25 -0
  27. package/dist-cjs/endpoints.js +6 -1
  28. package/dist-cjs/index.js +4 -27
  29. package/dist-cjs/models/models_0.js +0 -186
  30. package/dist-cjs/pagination/ListSecretVersionIdsPaginator.js +0 -10
  31. package/dist-cjs/pagination/ListSecretsPaginator.js +0 -10
  32. package/dist-cjs/pagination/index.js +6 -0
  33. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  34. package/dist-cjs/runtimeConfig.browser.js +1 -5
  35. package/dist-cjs/runtimeConfig.js +1 -5
  36. package/dist-cjs/runtimeConfig.native.js +0 -3
  37. package/dist-cjs/runtimeConfig.shared.js +0 -3
  38. package/dist-es/commands/index.js +22 -0
  39. package/dist-es/endpoints.js +6 -1
  40. package/dist-es/index.js +4 -27
  41. package/dist-es/pagination/index.js +3 -0
  42. package/dist-types/SecretsManager.d.ts +16 -10
  43. package/dist-types/commands/PutSecretValueCommand.d.ts +6 -5
  44. package/dist-types/commands/UpdateSecretCommand.d.ts +10 -5
  45. package/dist-types/commands/index.d.ts +22 -0
  46. package/dist-types/index.d.ts +4 -27
  47. package/dist-types/models/models_0.d.ts +54 -268
  48. package/dist-types/pagination/index.d.ts +3 -0
  49. package/dist-types/ts3.4/SecretsManager.d.ts +23 -922
  50. package/dist-types/ts3.4/SecretsManagerClient.d.ts +24 -151
  51. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +2 -72
  52. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +2 -107
  53. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -43
  54. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +2 -65
  55. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +2 -47
  56. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +2 -32
  57. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +2 -46
  58. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +2 -47
  59. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +2 -48
  60. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +2 -49
  61. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -51
  62. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +2 -107
  63. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -20
  64. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +2 -21
  65. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +2 -38
  66. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +2 -81
  67. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +2 -20
  68. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -75
  69. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -48
  70. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +2 -104
  71. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +2 -56
  72. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +2 -54
  73. package/dist-types/ts3.4/commands/index.d.ts +22 -0
  74. package/dist-types/ts3.4/index.d.ts +4 -27
  75. package/dist-types/ts3.4/models/models_0.d.ts +256 -1506
  76. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  77. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  78. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  79. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  80. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  81. package/package.json +32 -32
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -0,0 +1,22 @@
1
+ export * from "./CancelRotateSecretCommand";
2
+ export * from "./CreateSecretCommand";
3
+ export * from "./DeleteResourcePolicyCommand";
4
+ export * from "./DeleteSecretCommand";
5
+ export * from "./DescribeSecretCommand";
6
+ export * from "./GetRandomPasswordCommand";
7
+ export * from "./GetResourcePolicyCommand";
8
+ export * from "./GetSecretValueCommand";
9
+ export * from "./ListSecretVersionIdsCommand";
10
+ export * from "./ListSecretsCommand";
11
+ export * from "./PutResourcePolicyCommand";
12
+ export * from "./PutSecretValueCommand";
13
+ export * from "./RemoveRegionsFromReplicationCommand";
14
+ export * from "./ReplicateSecretToRegionsCommand";
15
+ export * from "./RestoreSecretCommand";
16
+ export * from "./RotateSecretCommand";
17
+ export * from "./StopReplicationToReplicaCommand";
18
+ export * from "./TagResourceCommand";
19
+ export * from "./UntagResourceCommand";
20
+ export * from "./UpdateSecretCommand";
21
+ export * from "./UpdateSecretVersionStageCommand";
22
+ export * from "./ValidateResourcePolicyCommand";
@@ -55,22 +55,27 @@ var partitionHash = {
55
55
  "us-west-2",
56
56
  "us-west-2-fips",
57
57
  ],
58
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
58
59
  hostname: "secretsmanager.{region}.amazonaws.com",
59
60
  },
60
61
  "aws-cn": {
61
62
  regions: ["cn-north-1", "cn-northwest-1"],
63
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
62
64
  hostname: "secretsmanager.{region}.amazonaws.com.cn",
63
65
  },
64
66
  "aws-iso": {
65
- regions: ["us-iso-east-1"],
67
+ regions: ["us-iso-east-1", "us-iso-west-1"],
68
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
66
69
  hostname: "secretsmanager.{region}.c2s.ic.gov",
67
70
  },
68
71
  "aws-iso-b": {
69
72
  regions: ["us-isob-east-1"],
73
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
70
74
  hostname: "secretsmanager.{region}.sc2s.sgov.gov",
71
75
  },
72
76
  "aws-us-gov": {
73
77
  regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
78
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
74
79
  hostname: "secretsmanager.{region}.amazonaws.com",
75
80
  },
76
81
  };
package/dist-es/index.js CHANGED
@@ -1,28 +1,5 @@
1
- export * from "./SecretsManagerClient";
2
1
  export * from "./SecretsManager";
3
- export * from "./commands/CancelRotateSecretCommand";
4
- export * from "./commands/CreateSecretCommand";
5
- export * from "./commands/DeleteResourcePolicyCommand";
6
- export * from "./commands/DeleteSecretCommand";
7
- export * from "./commands/DescribeSecretCommand";
8
- export * from "./commands/GetRandomPasswordCommand";
9
- export * from "./commands/GetResourcePolicyCommand";
10
- export * from "./commands/GetSecretValueCommand";
11
- export * from "./commands/ListSecretsCommand";
12
- export * from "./pagination/ListSecretsPaginator";
13
- export * from "./commands/ListSecretVersionIdsCommand";
14
- export * from "./pagination/ListSecretVersionIdsPaginator";
15
- export * from "./commands/PutResourcePolicyCommand";
16
- export * from "./commands/PutSecretValueCommand";
17
- export * from "./commands/RemoveRegionsFromReplicationCommand";
18
- export * from "./commands/ReplicateSecretToRegionsCommand";
19
- export * from "./commands/RestoreSecretCommand";
20
- export * from "./commands/RotateSecretCommand";
21
- export * from "./commands/StopReplicationToReplicaCommand";
22
- export * from "./commands/TagResourceCommand";
23
- export * from "./commands/UntagResourceCommand";
24
- export * from "./commands/UpdateSecretCommand";
25
- export * from "./commands/UpdateSecretVersionStageCommand";
26
- export * from "./commands/ValidateResourcePolicyCommand";
27
- export * from "./pagination/Interfaces";
28
- export * from "./models/index";
2
+ export * from "./SecretsManagerClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,3 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListSecretVersionIdsPaginator";
3
+ export * from "./ListSecretsPaginator";
@@ -546,11 +546,12 @@ export declare class SecretsManager extends SecretsManagerClient {
546
546
  * creates a new version and attaches it to the secret. The version can contain a new
547
547
  * <code>SecretString</code> value or a new <code>SecretBinary</code> value. You can also
548
548
  * specify the staging labels that are initially attached to the new version.</p>
549
- * <note>
550
- * <p>The Secrets Manager console uses only the <code>SecretString</code> field. To add binary data to a
551
- * secret with the <code>SecretBinary</code> field you must use the Amazon Web Services CLI or one of the
552
- * Amazon Web Services SDKs.</p>
553
- * </note>
549
+ * <p>We recommend you avoid calling <code>PutSecretValue</code> at a sustained rate of more than
550
+ * once every 10 minutes. When you update the secret value, Secrets Manager creates a new version
551
+ * of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
552
+ * remove versions created less than 24 hours ago. If you call <code>PutSecretValue</code> more
553
+ * than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach
554
+ * the quota for secret versions.</p>
554
555
  * <ul>
555
556
  * <li>
556
557
  * <p>If this operation creates the first version for the secret then Secrets Manager
@@ -840,12 +841,17 @@ export declare class SecretsManager extends SecretsManagerClient {
840
841
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
841
842
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
842
843
  /**
843
- * <p>Modifies many of the details of the specified secret. If you include a
844
- * <code>ClientRequestToken</code> and <i>either</i>
845
- * <code>SecretString</code> or <code>SecretBinary</code> then it also creates a new version
846
- * attached to the secret.</p>
847
- * <p>To modify the rotation configuration of a secret, use <a>RotateSecret</a>
844
+ * <p>Modifies many of the details of the specified secret. </p>
845
+ * <p>To change the secret value, you can also use <a>PutSecretValue</a>.</p>
846
+ * <p>To change the rotation configuration of a secret, use <a>RotateSecret</a>
848
847
  * instead.</p>
848
+ *
849
+ * <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than
850
+ * once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version
851
+ * of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
852
+ * remove versions created less than 24 hours ago. If you update the secret value more
853
+ * than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach
854
+ * the quota for secret versions.</p>
849
855
  * <note>
850
856
  * <p>The Secrets Manager console uses only the <code>SecretString</code> parameter and therefore limits
851
857
  * you to encrypting and storing only a text string. To encrypt and store binary data as part
@@ -11,11 +11,12 @@ export interface PutSecretValueCommandOutput extends PutSecretValueResponse, __M
11
11
  * creates a new version and attaches it to the secret. The version can contain a new
12
12
  * <code>SecretString</code> value or a new <code>SecretBinary</code> value. You can also
13
13
  * specify the staging labels that are initially attached to the new version.</p>
14
- * <note>
15
- * <p>The Secrets Manager console uses only the <code>SecretString</code> field. To add binary data to a
16
- * secret with the <code>SecretBinary</code> field you must use the Amazon Web Services CLI or one of the
17
- * Amazon Web Services SDKs.</p>
18
- * </note>
14
+ * <p>We recommend you avoid calling <code>PutSecretValue</code> at a sustained rate of more than
15
+ * once every 10 minutes. When you update the secret value, Secrets Manager creates a new version
16
+ * of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
17
+ * remove versions created less than 24 hours ago. If you call <code>PutSecretValue</code> more
18
+ * than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach
19
+ * the quota for secret versions.</p>
19
20
  * <ul>
20
21
  * <li>
21
22
  * <p>If this operation creates the first version for the secret then Secrets Manager
@@ -7,12 +7,17 @@ export interface UpdateSecretCommandInput extends UpdateSecretRequest {
7
7
  export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Modifies many of the details of the specified secret. If you include a
11
- * <code>ClientRequestToken</code> and <i>either</i>
12
- * <code>SecretString</code> or <code>SecretBinary</code> then it also creates a new version
13
- * attached to the secret.</p>
14
- * <p>To modify the rotation configuration of a secret, use <a>RotateSecret</a>
10
+ * <p>Modifies many of the details of the specified secret. </p>
11
+ * <p>To change the secret value, you can also use <a>PutSecretValue</a>.</p>
12
+ * <p>To change the rotation configuration of a secret, use <a>RotateSecret</a>
15
13
  * instead.</p>
14
+ *
15
+ * <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than
16
+ * once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version
17
+ * of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
18
+ * remove versions created less than 24 hours ago. If you update the secret value more
19
+ * than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach
20
+ * the quota for secret versions.</p>
16
21
  * <note>
17
22
  * <p>The Secrets Manager console uses only the <code>SecretString</code> parameter and therefore limits
18
23
  * you to encrypting and storing only a text string. To encrypt and store binary data as part
@@ -0,0 +1,22 @@
1
+ export * from "./CancelRotateSecretCommand";
2
+ export * from "./CreateSecretCommand";
3
+ export * from "./DeleteResourcePolicyCommand";
4
+ export * from "./DeleteSecretCommand";
5
+ export * from "./DescribeSecretCommand";
6
+ export * from "./GetRandomPasswordCommand";
7
+ export * from "./GetResourcePolicyCommand";
8
+ export * from "./GetSecretValueCommand";
9
+ export * from "./ListSecretVersionIdsCommand";
10
+ export * from "./ListSecretsCommand";
11
+ export * from "./PutResourcePolicyCommand";
12
+ export * from "./PutSecretValueCommand";
13
+ export * from "./RemoveRegionsFromReplicationCommand";
14
+ export * from "./ReplicateSecretToRegionsCommand";
15
+ export * from "./RestoreSecretCommand";
16
+ export * from "./RotateSecretCommand";
17
+ export * from "./StopReplicationToReplicaCommand";
18
+ export * from "./TagResourceCommand";
19
+ export * from "./UntagResourceCommand";
20
+ export * from "./UpdateSecretCommand";
21
+ export * from "./UpdateSecretVersionStageCommand";
22
+ export * from "./ValidateResourcePolicyCommand";
@@ -1,28 +1,5 @@
1
- export * from "./SecretsManagerClient";
2
1
  export * from "./SecretsManager";
3
- export * from "./commands/CancelRotateSecretCommand";
4
- export * from "./commands/CreateSecretCommand";
5
- export * from "./commands/DeleteResourcePolicyCommand";
6
- export * from "./commands/DeleteSecretCommand";
7
- export * from "./commands/DescribeSecretCommand";
8
- export * from "./commands/GetRandomPasswordCommand";
9
- export * from "./commands/GetResourcePolicyCommand";
10
- export * from "./commands/GetSecretValueCommand";
11
- export * from "./commands/ListSecretsCommand";
12
- export * from "./pagination/ListSecretsPaginator";
13
- export * from "./commands/ListSecretVersionIdsCommand";
14
- export * from "./pagination/ListSecretVersionIdsPaginator";
15
- export * from "./commands/PutResourcePolicyCommand";
16
- export * from "./commands/PutSecretValueCommand";
17
- export * from "./commands/RemoveRegionsFromReplicationCommand";
18
- export * from "./commands/ReplicateSecretToRegionsCommand";
19
- export * from "./commands/RestoreSecretCommand";
20
- export * from "./commands/RotateSecretCommand";
21
- export * from "./commands/StopReplicationToReplicaCommand";
22
- export * from "./commands/TagResourceCommand";
23
- export * from "./commands/UntagResourceCommand";
24
- export * from "./commands/UpdateSecretCommand";
25
- export * from "./commands/UpdateSecretVersionStageCommand";
26
- export * from "./commands/ValidateResourcePolicyCommand";
27
- export * from "./pagination/Interfaces";
28
- export * from "./models/index";
2
+ export * from "./SecretsManagerClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";