@aws-sdk/client-secrets-manager 3.35.0 → 3.38.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 (229) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/SecretsManager.js +0 -66
  3. package/dist-cjs/SecretsManagerClient.js +0 -71
  4. package/dist-cjs/commands/CancelRotateSecretCommand.js +0 -77
  5. package/dist-cjs/commands/CreateSecretCommand.js +0 -112
  6. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -48
  7. package/dist-cjs/commands/DeleteSecretCommand.js +0 -70
  8. package/dist-cjs/commands/DescribeSecretCommand.js +0 -52
  9. package/dist-cjs/commands/GetRandomPasswordCommand.js +0 -37
  10. package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -51
  11. package/dist-cjs/commands/GetSecretValueCommand.js +0 -52
  12. package/dist-cjs/commands/ListSecretVersionIdsCommand.js +0 -53
  13. package/dist-cjs/commands/ListSecretsCommand.js +0 -54
  14. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -56
  15. package/dist-cjs/commands/PutSecretValueCommand.js +0 -112
  16. package/dist-cjs/commands/RemoveRegionsFromReplicationCommand.js +0 -25
  17. package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js +0 -26
  18. package/dist-cjs/commands/RestoreSecretCommand.js +0 -43
  19. package/dist-cjs/commands/RotateSecretCommand.js +0 -86
  20. package/dist-cjs/commands/StopReplicationToReplicaCommand.js +0 -25
  21. package/dist-cjs/commands/TagResourceCommand.js +0 -80
  22. package/dist-cjs/commands/UntagResourceCommand.js +0 -53
  23. package/dist-cjs/commands/UpdateSecretCommand.js +0 -109
  24. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js +0 -61
  25. package/dist-cjs/commands/ValidateResourcePolicyCommand.js +0 -59
  26. package/dist-cjs/commands/index.js +25 -0
  27. package/dist-cjs/endpoints.js +1 -2
  28. package/dist-cjs/index.js +4 -28
  29. package/dist-cjs/models/index.js +0 -1
  30. package/dist-cjs/models/models_0.js +0 -187
  31. package/dist-cjs/pagination/Interfaces.js +0 -1
  32. package/dist-cjs/pagination/ListSecretVersionIdsPaginator.js +0 -11
  33. package/dist-cjs/pagination/ListSecretsPaginator.js +0 -11
  34. package/dist-cjs/pagination/index.js +6 -0
  35. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  36. package/dist-cjs/runtimeConfig.browser.js +1 -6
  37. package/dist-cjs/runtimeConfig.js +2 -7
  38. package/dist-cjs/runtimeConfig.native.js +0 -4
  39. package/dist-cjs/runtimeConfig.shared.js +0 -4
  40. package/dist-es/SecretsManager.js +0 -1
  41. package/dist-es/SecretsManagerClient.js +0 -1
  42. package/dist-es/commands/CancelRotateSecretCommand.js +0 -1
  43. package/dist-es/commands/CreateSecretCommand.js +0 -1
  44. package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
  45. package/dist-es/commands/DeleteSecretCommand.js +0 -1
  46. package/dist-es/commands/DescribeSecretCommand.js +0 -1
  47. package/dist-es/commands/GetRandomPasswordCommand.js +0 -1
  48. package/dist-es/commands/GetResourcePolicyCommand.js +0 -1
  49. package/dist-es/commands/GetSecretValueCommand.js +0 -1
  50. package/dist-es/commands/ListSecretVersionIdsCommand.js +0 -1
  51. package/dist-es/commands/ListSecretsCommand.js +0 -1
  52. package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
  53. package/dist-es/commands/PutSecretValueCommand.js +0 -1
  54. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +0 -1
  55. package/dist-es/commands/ReplicateSecretToRegionsCommand.js +0 -1
  56. package/dist-es/commands/RestoreSecretCommand.js +0 -1
  57. package/dist-es/commands/RotateSecretCommand.js +0 -1
  58. package/dist-es/commands/StopReplicationToReplicaCommand.js +0 -1
  59. package/dist-es/commands/TagResourceCommand.js +0 -1
  60. package/dist-es/commands/UntagResourceCommand.js +0 -1
  61. package/dist-es/commands/UpdateSecretCommand.js +0 -1
  62. package/dist-es/commands/UpdateSecretVersionStageCommand.js +0 -1
  63. package/dist-es/commands/ValidateResourcePolicyCommand.js +0 -1
  64. package/dist-es/commands/index.js +22 -0
  65. package/dist-es/endpoints.js +1 -2
  66. package/dist-es/index.js +4 -28
  67. package/dist-es/models/index.js +0 -1
  68. package/dist-es/models/models_0.js +0 -1
  69. package/dist-es/pagination/Interfaces.js +0 -1
  70. package/dist-es/pagination/ListSecretVersionIdsPaginator.js +0 -1
  71. package/dist-es/pagination/ListSecretsPaginator.js +0 -1
  72. package/dist-es/pagination/index.js +3 -0
  73. package/dist-es/protocols/Aws_json1_1.js +0 -1
  74. package/dist-es/runtimeConfig.browser.js +1 -2
  75. package/dist-es/runtimeConfig.js +2 -3
  76. package/dist-es/runtimeConfig.native.js +0 -1
  77. package/dist-es/runtimeConfig.shared.js +0 -1
  78. package/dist-types/SecretsManager.d.ts +16 -10
  79. package/dist-types/commands/PutSecretValueCommand.d.ts +6 -5
  80. package/dist-types/commands/UpdateSecretCommand.d.ts +10 -5
  81. package/dist-types/commands/index.d.ts +22 -0
  82. package/dist-types/index.d.ts +4 -27
  83. package/dist-types/models/models_0.d.ts +54 -268
  84. package/dist-types/pagination/index.d.ts +3 -0
  85. package/dist-types/ts3.4/SecretsManager.d.ts +23 -922
  86. package/dist-types/ts3.4/SecretsManagerClient.d.ts +24 -151
  87. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +2 -72
  88. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +2 -107
  89. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -43
  90. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +2 -65
  91. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +2 -47
  92. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +2 -32
  93. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +2 -46
  94. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +2 -47
  95. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +2 -48
  96. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +2 -49
  97. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -51
  98. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +2 -107
  99. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +2 -20
  100. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +2 -21
  101. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +2 -38
  102. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +2 -81
  103. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -75
  105. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -48
  106. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +2 -104
  107. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +2 -56
  108. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +2 -54
  109. package/dist-types/ts3.4/commands/index.d.ts +22 -0
  110. package/dist-types/ts3.4/index.d.ts +4 -27
  111. package/dist-types/ts3.4/models/models_0.d.ts +256 -1506
  112. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  113. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  114. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  115. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  116. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  117. package/package.json +33 -30
  118. package/dist-cjs/SecretsManager.js.map +0 -1
  119. package/dist-cjs/SecretsManagerClient.js.map +0 -1
  120. package/dist-cjs/commands/CancelRotateSecretCommand.js.map +0 -1
  121. package/dist-cjs/commands/CreateSecretCommand.js.map +0 -1
  122. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  123. package/dist-cjs/commands/DeleteSecretCommand.js.map +0 -1
  124. package/dist-cjs/commands/DescribeSecretCommand.js.map +0 -1
  125. package/dist-cjs/commands/GetRandomPasswordCommand.js.map +0 -1
  126. package/dist-cjs/commands/GetResourcePolicyCommand.js.map +0 -1
  127. package/dist-cjs/commands/GetSecretValueCommand.js.map +0 -1
  128. package/dist-cjs/commands/ListSecretVersionIdsCommand.js.map +0 -1
  129. package/dist-cjs/commands/ListSecretsCommand.js.map +0 -1
  130. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  131. package/dist-cjs/commands/PutSecretValueCommand.js.map +0 -1
  132. package/dist-cjs/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  133. package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  134. package/dist-cjs/commands/RestoreSecretCommand.js.map +0 -1
  135. package/dist-cjs/commands/RotateSecretCommand.js.map +0 -1
  136. package/dist-cjs/commands/StopReplicationToReplicaCommand.js.map +0 -1
  137. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  138. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  139. package/dist-cjs/commands/UpdateSecretCommand.js.map +0 -1
  140. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  141. package/dist-cjs/commands/ValidateResourcePolicyCommand.js.map +0 -1
  142. package/dist-cjs/endpoints.js.map +0 -1
  143. package/dist-cjs/index.js.map +0 -1
  144. package/dist-cjs/models/index.js.map +0 -1
  145. package/dist-cjs/models/models_0.js.map +0 -1
  146. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  147. package/dist-cjs/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  148. package/dist-cjs/pagination/ListSecretsPaginator.js.map +0 -1
  149. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  150. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  151. package/dist-cjs/runtimeConfig.js.map +0 -1
  152. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  153. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  154. package/dist-es/SecretsManager.js.map +0 -1
  155. package/dist-es/SecretsManagerClient.js.map +0 -1
  156. package/dist-es/commands/CancelRotateSecretCommand.js.map +0 -1
  157. package/dist-es/commands/CreateSecretCommand.js.map +0 -1
  158. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  159. package/dist-es/commands/DeleteSecretCommand.js.map +0 -1
  160. package/dist-es/commands/DescribeSecretCommand.js.map +0 -1
  161. package/dist-es/commands/GetRandomPasswordCommand.js.map +0 -1
  162. package/dist-es/commands/GetResourcePolicyCommand.js.map +0 -1
  163. package/dist-es/commands/GetSecretValueCommand.js.map +0 -1
  164. package/dist-es/commands/ListSecretVersionIdsCommand.js.map +0 -1
  165. package/dist-es/commands/ListSecretsCommand.js.map +0 -1
  166. package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
  167. package/dist-es/commands/PutSecretValueCommand.js.map +0 -1
  168. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  169. package/dist-es/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  170. package/dist-es/commands/RestoreSecretCommand.js.map +0 -1
  171. package/dist-es/commands/RotateSecretCommand.js.map +0 -1
  172. package/dist-es/commands/StopReplicationToReplicaCommand.js.map +0 -1
  173. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  174. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  175. package/dist-es/commands/UpdateSecretCommand.js.map +0 -1
  176. package/dist-es/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  177. package/dist-es/commands/ValidateResourcePolicyCommand.js.map +0 -1
  178. package/dist-es/endpoints.js.map +0 -1
  179. package/dist-es/index.js.map +0 -1
  180. package/dist-es/models/index.js.map +0 -1
  181. package/dist-es/models/models_0.js.map +0 -1
  182. package/dist-es/pagination/Interfaces.js.map +0 -1
  183. package/dist-es/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  184. package/dist-es/pagination/ListSecretsPaginator.js.map +0 -1
  185. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  186. package/dist-es/runtimeConfig.browser.js.map +0 -1
  187. package/dist-es/runtimeConfig.js.map +0 -1
  188. package/dist-es/runtimeConfig.native.js.map +0 -1
  189. package/dist-es/runtimeConfig.shared.js.map +0 -1
  190. package/jest.config.js +0 -4
  191. package/src/SecretsManager.ts +0 -1643
  192. package/src/SecretsManagerClient.ts +0 -385
  193. package/src/commands/CancelRotateSecretCommand.ts +0 -147
  194. package/src/commands/CreateSecretCommand.ts +0 -182
  195. package/src/commands/DeleteResourcePolicyCommand.ts +0 -118
  196. package/src/commands/DeleteSecretCommand.ts +0 -140
  197. package/src/commands/DescribeSecretCommand.ts +0 -122
  198. package/src/commands/GetRandomPasswordCommand.ts +0 -107
  199. package/src/commands/GetResourcePolicyCommand.ts +0 -121
  200. package/src/commands/GetSecretValueCommand.ts +0 -122
  201. package/src/commands/ListSecretVersionIdsCommand.ts +0 -123
  202. package/src/commands/ListSecretsCommand.ts +0 -124
  203. package/src/commands/PutResourcePolicyCommand.ts +0 -126
  204. package/src/commands/PutSecretValueCommand.ts +0 -182
  205. package/src/commands/RemoveRegionsFromReplicationCommand.ts +0 -100
  206. package/src/commands/ReplicateSecretToRegionsCommand.ts +0 -96
  207. package/src/commands/RestoreSecretCommand.ts +0 -113
  208. package/src/commands/RotateSecretCommand.ts +0 -156
  209. package/src/commands/StopReplicationToReplicaCommand.ts +0 -95
  210. package/src/commands/TagResourceCommand.ts +0 -150
  211. package/src/commands/UntagResourceCommand.ts +0 -123
  212. package/src/commands/UpdateSecretCommand.ts +0 -179
  213. package/src/commands/UpdateSecretVersionStageCommand.ts +0 -131
  214. package/src/commands/ValidateResourcePolicyCommand.ts +0 -129
  215. package/src/endpoints.ts +0 -86
  216. package/src/index.ts +0 -28
  217. package/src/models/index.ts +0 -1
  218. package/src/models/models_0.ts +0 -2422
  219. package/src/pagination/Interfaces.ts +0 -8
  220. package/src/pagination/ListSecretVersionIdsPaginator.ts +0 -59
  221. package/src/pagination/ListSecretsPaginator.ts +0 -55
  222. package/src/protocols/Aws_json1_1.ts +0 -3422
  223. package/src/runtimeConfig.browser.ts +0 -41
  224. package/src/runtimeConfig.native.ts +0 -17
  225. package/src/runtimeConfig.shared.ts +0 -17
  226. package/src/runtimeConfig.ts +0 -46
  227. package/tsconfig.es.json +0 -10
  228. package/tsconfig.json +0 -33
  229. package/tsconfig.types.json +0 -9
@@ -5,47 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Generates a random password of the specified complexity. This operation is intended for
10
- * use in the Lambda rotation function. Per best practice, we recommend that you specify the
11
- * maximum length and include every character type that the system you are generating a password
12
- * for can support.</p>
13
- * <p>
14
- * <b>Minimum permissions</b>
15
- * </p>
16
- * <p>To run this command, you must have the following permissions:</p>
17
- * <ul>
18
- * <li>
19
- * <p>secretsmanager:GetRandomPassword</p>
20
- * </li>
21
- * </ul>
22
- * @example
23
- * Use a bare-bones client and the command you need to make an API call.
24
- * ```javascript
25
- * import { SecretsManagerClient, GetRandomPasswordCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
26
- * // const { SecretsManagerClient, GetRandomPasswordCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
27
- * const client = new SecretsManagerClient(config);
28
- * const command = new GetRandomPasswordCommand(input);
29
- * const response = await client.send(command);
30
- * ```
31
- *
32
- * @see {@link GetRandomPasswordCommandInput} for command's `input` shape.
33
- * @see {@link GetRandomPasswordCommandOutput} for command's `response` shape.
34
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
35
- *
36
- */
37
8
  class GetRandomPasswordCommand extends smithy_client_1.Command {
38
- // Start section: command_properties
39
- // End section: command_properties
40
9
  constructor(input) {
41
- // Start section: command_constructor
42
10
  super();
43
11
  this.input = input;
44
- // End section: command_constructor
45
12
  }
46
- /**
47
- * @internal
48
- */
49
13
  resolveMiddleware(clientStack, configuration, options) {
50
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
51
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -70,4 +34,3 @@ class GetRandomPasswordCommand extends smithy_client_1.Command {
70
34
  }
71
35
  }
72
36
  exports.GetRandomPasswordCommand = GetRandomPasswordCommand;
73
- //# sourceMappingURL=GetRandomPasswordCommand.js.map
@@ -5,61 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Retrieves the JSON text of the resource-based policy document attached to the specified
10
- * secret. The JSON request string input and response output displays formatted code
11
- * with white space and line breaks for better readability. Submit your input as a single line
12
- * JSON string.</p>
13
- * <p>
14
- * <b>Minimum permissions</b>
15
- * </p>
16
- * <p>To run this command, you must have the following permissions:</p>
17
- * <ul>
18
- * <li>
19
- * <p>secretsmanager:GetResourcePolicy</p>
20
- * </li>
21
- * </ul>
22
- * <p>
23
- * <b>Related operations</b>
24
- * </p>
25
- * <ul>
26
- * <li>
27
- * <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>
28
- * </li>
29
- * <li>
30
- * <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
31
- * </li>
32
- * <li>
33
- * <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
34
- * </li>
35
- * </ul>
36
- * @example
37
- * Use a bare-bones client and the command you need to make an API call.
38
- * ```javascript
39
- * import { SecretsManagerClient, GetResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
40
- * // const { SecretsManagerClient, GetResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
41
- * const client = new SecretsManagerClient(config);
42
- * const command = new GetResourcePolicyCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
47
- * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
48
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
8
  class GetResourcePolicyCommand extends smithy_client_1.Command {
52
- // Start section: command_properties
53
- // End section: command_properties
54
9
  constructor(input) {
55
- // Start section: command_constructor
56
10
  super();
57
11
  this.input = input;
58
- // End section: command_constructor
59
12
  }
60
- /**
61
- * @internal
62
- */
63
13
  resolveMiddleware(clientStack, configuration, options) {
64
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
65
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -84,4 +34,3 @@ class GetResourcePolicyCommand extends smithy_client_1.Command {
84
34
  }
85
35
  }
86
36
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
87
- //# sourceMappingURL=GetResourcePolicyCommand.js.map
@@ -5,62 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Retrieves the contents of the encrypted fields <code>SecretString</code> or
10
- * <code>SecretBinary</code> from the specified version of a secret, whichever contains
11
- * content.</p>
12
- * <p>
13
- * <b>Minimum permissions</b>
14
- * </p>
15
- * <p>To run this command, you must have the following permissions:</p>
16
- * <ul>
17
- * <li>
18
- * <p>secretsmanager:GetSecretValue</p>
19
- * </li>
20
- * <li>
21
- * <p>kms:Decrypt - required only if you use a customer-managed Amazon Web Services KMS key to encrypt the
22
- * secret. You do not need this permission to use the account's default Amazon Web Services managed CMK for
23
- * Secrets Manager.</p>
24
- * </li>
25
- * </ul>
26
- * <p>
27
- * <b>Related operations</b>
28
- * </p>
29
- * <ul>
30
- * <li>
31
- * <p>To create a new version of the secret with different encrypted information, use <a>PutSecretValue</a>.</p>
32
- * </li>
33
- * <li>
34
- * <p>To retrieve the non-encrypted details for the secret, use <a>DescribeSecret</a>.</p>
35
- * </li>
36
- * </ul>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { SecretsManagerClient, GetSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
41
- * // const { SecretsManagerClient, GetSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
42
- * const client = new SecretsManagerClient(config);
43
- * const command = new GetSecretValueCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link GetSecretValueCommandInput} for command's `input` shape.
48
- * @see {@link GetSecretValueCommandOutput} for command's `response` shape.
49
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
8
  class GetSecretValueCommand extends smithy_client_1.Command {
53
- // Start section: command_properties
54
- // End section: command_properties
55
9
  constructor(input) {
56
- // Start section: command_constructor
57
10
  super();
58
11
  this.input = input;
59
- // End section: command_constructor
60
12
  }
61
- /**
62
- * @internal
63
- */
64
13
  resolveMiddleware(clientStack, configuration, options) {
65
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
66
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -85,4 +34,3 @@ class GetSecretValueCommand extends smithy_client_1.Command {
85
34
  }
86
35
  }
87
36
  exports.GetSecretValueCommand = GetSecretValueCommand;
88
- //# sourceMappingURL=GetSecretValueCommand.js.map
@@ -5,63 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lists all of the versions attached to the specified secret. The output does not include
10
- * the <code>SecretString</code> or <code>SecretBinary</code> fields. By default, the list
11
- * includes only versions that have at least one staging label in <code>VersionStage</code>
12
- * attached.</p>
13
- * <note>
14
- * <p>Always check the <code>NextToken</code> response parameter
15
- * when calling any of the <code>List*</code> operations. These operations can occasionally return
16
- * an empty or shorter than expected list of results even when there more results become available.
17
- * When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
18
- * next call to the same API to request the next part of the list.</p>
19
- * </note>
20
- * <p>
21
- * <b>Minimum
22
- * permissions</b>
23
- * </p>
24
- * <p>To run this command, you must have the following permissions:</p>
25
- * <ul>
26
- * <li>
27
- * <p>secretsmanager:ListSecretVersionIds</p>
28
- * </li>
29
- * </ul>
30
- * <p>
31
- * <b>Related operations</b>
32
- * </p>
33
- * <ul>
34
- * <li>
35
- * <p>To list the secrets in an account, use <a>ListSecrets</a>.</p>
36
- * </li>
37
- * </ul>
38
- * @example
39
- * Use a bare-bones client and the command you need to make an API call.
40
- * ```javascript
41
- * import { SecretsManagerClient, ListSecretVersionIdsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
42
- * // const { SecretsManagerClient, ListSecretVersionIdsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
43
- * const client = new SecretsManagerClient(config);
44
- * const command = new ListSecretVersionIdsCommand(input);
45
- * const response = await client.send(command);
46
- * ```
47
- *
48
- * @see {@link ListSecretVersionIdsCommandInput} for command's `input` shape.
49
- * @see {@link ListSecretVersionIdsCommandOutput} for command's `response` shape.
50
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
51
- *
52
- */
53
8
  class ListSecretVersionIdsCommand extends smithy_client_1.Command {
54
- // Start section: command_properties
55
- // End section: command_properties
56
9
  constructor(input) {
57
- // Start section: command_constructor
58
10
  super();
59
11
  this.input = input;
60
- // End section: command_constructor
61
12
  }
62
- /**
63
- * @internal
64
- */
65
13
  resolveMiddleware(clientStack, configuration, options) {
66
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
67
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -86,4 +34,3 @@ class ListSecretVersionIdsCommand extends smithy_client_1.Command {
86
34
  }
87
35
  }
88
36
  exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
89
- //# sourceMappingURL=ListSecretVersionIdsCommand.js.map
@@ -5,64 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lists all of the secrets that are stored by Secrets Manager in the Amazon Web Services account. To list the
10
- * versions currently stored for a specific secret, use <a>ListSecretVersionIds</a>.
11
- * The encrypted fields <code>SecretString</code> and <code>SecretBinary</code> are not included
12
- * in the output. To get that information, call the <a>GetSecretValue</a>
13
- * operation.</p>
14
- * <note>
15
- * <p>Always check the <code>NextToken</code> response parameter
16
- * when calling any of the <code>List*</code> operations. These operations can occasionally return
17
- * an empty or shorter than expected list of results even when there more results become available.
18
- * When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
19
- * next call to the same API to request the next part of the list.</p>
20
- * </note>
21
- * <p>
22
- * <b>Minimum
23
- * permissions</b>
24
- * </p>
25
- * <p>To run this command, you must have the following permissions:</p>
26
- * <ul>
27
- * <li>
28
- * <p>secretsmanager:ListSecrets</p>
29
- * </li>
30
- * </ul>
31
- * <p>
32
- * <b>Related operations</b>
33
- * </p>
34
- * <ul>
35
- * <li>
36
- * <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>
37
- * </li>
38
- * </ul>
39
- * @example
40
- * Use a bare-bones client and the command you need to make an API call.
41
- * ```javascript
42
- * import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
43
- * // const { SecretsManagerClient, ListSecretsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
44
- * const client = new SecretsManagerClient(config);
45
- * const command = new ListSecretsCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link ListSecretsCommandInput} for command's `input` shape.
50
- * @see {@link ListSecretsCommandOutput} for command's `response` shape.
51
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
8
  class ListSecretsCommand extends smithy_client_1.Command {
55
- // Start section: command_properties
56
- // End section: command_properties
57
9
  constructor(input) {
58
- // Start section: command_constructor
59
10
  super();
60
11
  this.input = input;
61
- // End section: command_constructor
62
12
  }
63
- /**
64
- * @internal
65
- */
66
13
  resolveMiddleware(clientStack, configuration, options) {
67
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
68
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -87,4 +34,3 @@ class ListSecretsCommand extends smithy_client_1.Command {
87
34
  }
88
35
  }
89
36
  exports.ListSecretsCommand = ListSecretsCommand;
90
- //# sourceMappingURL=ListSecretsCommand.js.map
@@ -5,66 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Attaches the contents of the specified resource-based permission policy to a secret. A
10
- * resource-based policy is optional. Alternatively, you can use IAM identity-based policies
11
- * that specify the secret's Amazon Resource Name (ARN) in the policy statement's
12
- * <code>Resources</code> element. You can also use a combination of both identity-based and
13
- * resource-based policies. The affected users and roles receive the permissions that are
14
- * permitted by all of the relevant policies. For more information, see <a href="http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html">Using Resource-Based
15
- * Policies for Amazon Web Services Secrets Manager</a>. For the complete description of the Amazon Web Services policy syntax and
16
- * grammar, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON
17
- * Policy Reference</a> in the <i>IAM User Guide</i>.</p>
18
- * <p>
19
- * <b>Minimum permissions</b>
20
- * </p>
21
- * <p>To run this command, you must have the following permissions:</p>
22
- * <ul>
23
- * <li>
24
- * <p>secretsmanager:PutResourcePolicy</p>
25
- * </li>
26
- * </ul>
27
- * <p>
28
- * <b>Related operations</b>
29
- * </p>
30
- * <ul>
31
- * <li>
32
- * <p>To retrieve the resource policy attached to a secret, use <a>GetResourcePolicy</a>.</p>
33
- * </li>
34
- * <li>
35
- * <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
36
- * </li>
37
- * <li>
38
- * <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
39
- * </li>
40
- * </ul>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { SecretsManagerClient, PutResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
45
- * // const { SecretsManagerClient, PutResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
46
- * const client = new SecretsManagerClient(config);
47
- * const command = new PutResourcePolicyCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
52
- * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
53
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
8
  class PutResourcePolicyCommand extends smithy_client_1.Command {
57
- // Start section: command_properties
58
- // End section: command_properties
59
9
  constructor(input) {
60
- // Start section: command_constructor
61
10
  super();
62
11
  this.input = input;
63
- // End section: command_constructor
64
12
  }
65
- /**
66
- * @internal
67
- */
68
13
  resolveMiddleware(clientStack, configuration, options) {
69
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
70
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -89,4 +34,3 @@ class PutResourcePolicyCommand extends smithy_client_1.Command {
89
34
  }
90
35
  }
91
36
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
92
- //# sourceMappingURL=PutResourcePolicyCommand.js.map
@@ -5,122 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Stores a new encrypted secret value in the specified secret. To do this, the operation
10
- * creates a new version and attaches it to the secret. The version can contain a new
11
- * <code>SecretString</code> value or a new <code>SecretBinary</code> value. You can also
12
- * specify the staging labels that are initially attached to the new version.</p>
13
- * <note>
14
- * <p>The Secrets Manager console uses only the <code>SecretString</code> field. To add binary data to a
15
- * secret with the <code>SecretBinary</code> field you must use the Amazon Web Services CLI or one of the
16
- * Amazon Web Services SDKs.</p>
17
- * </note>
18
- * <ul>
19
- * <li>
20
- * <p>If this operation creates the first version for the secret then Secrets Manager
21
- * automatically attaches the staging label <code>AWSCURRENT</code> to the new version.</p>
22
- * </li>
23
- * <li>
24
- * <p>If you do not specify a value for VersionStages then Secrets Manager automatically
25
- * moves the staging label <code>AWSCURRENT</code> to this new version.</p>
26
- * </li>
27
- * <li>
28
- * <p>If this operation moves the staging label <code>AWSCURRENT</code> from another version to this
29
- * version, then Secrets Manager also automatically moves the staging label <code>AWSPREVIOUS</code> to
30
- * the version that <code>AWSCURRENT</code> was removed from.</p>
31
- * </li>
32
- * <li>
33
- * <p>This operation is idempotent. If a version with a <code>VersionId</code> with the same
34
- * value as the <code>ClientRequestToken</code> parameter already exists and you specify the
35
- * same secret data, the operation succeeds but does nothing. However, if the secret data is
36
- * different, then the operation fails because you cannot modify an existing version; you can
37
- * only create new ones.</p>
38
- * </li>
39
- * </ul>
40
- * <note>
41
- * <ul>
42
- * <li>
43
- * <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
44
- * or <code>SecretBinary</code> for a secret in the same account as the calling user and that
45
- * secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
46
- * Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
47
- * doesn't already exist in your account then Secrets Manager creates it for you automatically. All
48
- * users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
49
- * Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
50
- * Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
51
- * result.</p>
52
- * </li>
53
- * <li>
54
- * <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
55
- * requires encryption or decryption of the secret value then you must create and use a custom
56
- * Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
57
- * from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
58
- * secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
59
- * API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
60
- * using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
61
- * access to that other account's user or role for both the kms:GenerateDataKey and
62
- * kms:Decrypt operations.</p>
63
- * </li>
64
- * </ul>
65
- * </note>
66
- * <p>
67
- * <b>Minimum permissions</b>
68
- * </p>
69
- * <p>To run this command, you must have the following permissions:</p>
70
- * <ul>
71
- * <li>
72
- * <p>secretsmanager:PutSecretValue</p>
73
- * </li>
74
- * <li>
75
- * <p>kms:GenerateDataKey - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt
76
- * the secret. You do not need this permission to use the account's default Amazon Web Services managed CMK
77
- * for Secrets Manager.</p>
78
- * </li>
79
- * </ul>
80
- * <p>
81
- * <b>Related operations</b>
82
- * </p>
83
- * <ul>
84
- * <li>
85
- * <p>To retrieve the encrypted value you store in the version of a secret, use <a>GetSecretValue</a>.</p>
86
- * </li>
87
- * <li>
88
- * <p>To create a secret, use <a>CreateSecret</a>.</p>
89
- * </li>
90
- * <li>
91
- * <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>
92
- * </li>
93
- * <li>
94
- * <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>
95
- * </li>
96
- * </ul>
97
- * @example
98
- * Use a bare-bones client and the command you need to make an API call.
99
- * ```javascript
100
- * import { SecretsManagerClient, PutSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
101
- * // const { SecretsManagerClient, PutSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
102
- * const client = new SecretsManagerClient(config);
103
- * const command = new PutSecretValueCommand(input);
104
- * const response = await client.send(command);
105
- * ```
106
- *
107
- * @see {@link PutSecretValueCommandInput} for command's `input` shape.
108
- * @see {@link PutSecretValueCommandOutput} for command's `response` shape.
109
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
110
- *
111
- */
112
8
  class PutSecretValueCommand extends smithy_client_1.Command {
113
- // Start section: command_properties
114
- // End section: command_properties
115
9
  constructor(input) {
116
- // Start section: command_constructor
117
10
  super();
118
11
  this.input = input;
119
- // End section: command_constructor
120
12
  }
121
- /**
122
- * @internal
123
- */
124
13
  resolveMiddleware(clientStack, configuration, options) {
125
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
126
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -145,4 +34,3 @@ class PutSecretValueCommand extends smithy_client_1.Command {
145
34
  }
146
35
  }
147
36
  exports.PutSecretValueCommand = PutSecretValueCommand;
148
- //# sourceMappingURL=PutSecretValueCommand.js.map
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Remove regions from replication.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { SecretsManagerClient, RemoveRegionsFromReplicationCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
14
- * // const { SecretsManagerClient, RemoveRegionsFromReplicationCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
15
- * const client = new SecretsManagerClient(config);
16
- * const command = new RemoveRegionsFromReplicationCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RemoveRegionsFromReplicationCommandInput} for command's `input` shape.
21
- * @see {@link RemoveRegionsFromReplicationCommandOutput} for command's `response` shape.
22
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RemoveRegionsFromReplicationCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -58,4 +34,3 @@ class RemoveRegionsFromReplicationCommand extends smithy_client_1.Command {
58
34
  }
59
35
  }
60
36
  exports.RemoveRegionsFromReplicationCommand = RemoveRegionsFromReplicationCommand;
61
- //# sourceMappingURL=RemoveRegionsFromReplicationCommand.js.map
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Converts an existing secret to a multi-Region secret and begins replication the secret to a
10
- * list of new regions. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { SecretsManagerClient, ReplicateSecretToRegionsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
15
- * // const { SecretsManagerClient, ReplicateSecretToRegionsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
16
- * const client = new SecretsManagerClient(config);
17
- * const command = new ReplicateSecretToRegionsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ReplicateSecretToRegionsCommandInput} for command's `input` shape.
22
- * @see {@link ReplicateSecretToRegionsCommandOutput} for command's `response` shape.
23
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ReplicateSecretToRegionsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -59,4 +34,3 @@ class ReplicateSecretToRegionsCommand extends smithy_client_1.Command {
59
34
  }
60
35
  }
61
36
  exports.ReplicateSecretToRegionsCommand = ReplicateSecretToRegionsCommand;
62
- //# sourceMappingURL=ReplicateSecretToRegionsCommand.js.map