@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
12
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
19
+
20
+
21
+ ### Features
22
+
23
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
24
+
25
+
26
+
27
+
28
+
29
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
35
+
36
+
37
+
38
+
39
+
40
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
41
+
42
+
43
+ ### Features
44
+
45
+ * publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
46
+ * **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
47
+ * **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
7
54
 
8
55
 
@@ -24,71 +24,6 @@ const UpdateSecretCommand_1 = require("./commands/UpdateSecretCommand");
24
24
  const UpdateSecretVersionStageCommand_1 = require("./commands/UpdateSecretVersionStageCommand");
25
25
  const ValidateResourcePolicyCommand_1 = require("./commands/ValidateResourcePolicyCommand");
26
26
  const SecretsManagerClient_1 = require("./SecretsManagerClient");
27
- /**
28
- * <fullname>Amazon Web Services Secrets Manager</fullname>
29
- * <p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>
30
- *
31
- * <p>This guide provides descriptions of the Secrets Manager API. For more information about using this
32
- * service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html">Amazon Web Services Secrets Manager User Guide</a>.</p>
33
- *
34
- * <p>
35
- * <b>API Version</b>
36
- * </p>
37
- *
38
- * <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
39
- * <note>
40
- * <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
41
- * libraries and sample code for various programming languages and platforms such as Java,
42
- * Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic
43
- * access to Amazon Web Services Secrets Manager. For example, the SDKs provide cryptographically signing requests,
44
- * managing errors, and retrying requests automatically. For more information about the Amazon Web Services
45
- * SDKs, including downloading and installing them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
46
- * </note>
47
- * <p>We recommend you use the Amazon Web Services SDKs to make programmatic API calls to Secrets Manager. However, you
48
- * also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn
49
- * more about the Secrets Manager HTTP Query API, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html">Making Query Requests</a> in the
50
- * <i>Amazon Web Services Secrets Manager User Guide</i>. </p>
51
- * <p>Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use
52
- * GET for some actions and POST for others. However, GET requests are subject to the limitation
53
- * size of a URL. Therefore, for operations that require larger sizes, use a POST request.</p>
54
- *
55
- *
56
- *
57
- *
58
- *
59
- *
60
- *
61
- * <p>
62
- * <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
63
- * </p>
64
- *
65
- * <p>We welcome your feedback. Send your comments to <a href="mailto:awssecretsmanager-feedback@amazon.com">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=296">Amazon Web Services Secrets Manager Discussion Forum</a>. For more
66
- * information about the Amazon Web Services Discussion Forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums
67
- * Help</a>.</p>
68
- *
69
- * <p>
70
- * <b>How examples are presented</b>
71
- * </p>
72
- *
73
- * <p>The JSON that Amazon Web Services Secrets Manager expects as your request parameters and the service returns as a
74
- * response to HTTP query requests contain single, long strings without line breaks or white
75
- * space formatting. The JSON shown in the examples displays the code formatted with both line
76
- * breaks and white space to improve readability. When example input parameters can also cause
77
- * long strings extending beyond the screen, you can insert line breaks to enhance readability.
78
- * You should always submit the input as a single JSON text string.</p>
79
- *
80
- *
81
- * <p>
82
- * <b>Logging API Requests</b>
83
- * </p>
84
- * <p>Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services
85
- * account and delivers log files to an Amazon S3 bucket. By using information that's collected
86
- * by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the
87
- * request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services
88
- * CloudTrail, see <a href="http://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail">Logging
89
- * Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>.
90
- * To learn more about CloudTrail, including enabling it and find your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">Amazon Web Services CloudTrail User Guide</a>.</p>
91
- */
92
27
  class SecretsManager extends SecretsManagerClient_1.SecretsManagerClient {
93
28
  cancelRotateSecret(args, optionsOrCb, cb) {
94
29
  const command = new CancelRotateSecretCommand_1.CancelRotateSecretCommand(args);
@@ -400,4 +335,3 @@ class SecretsManager extends SecretsManagerClient_1.SecretsManagerClient {
400
335
  }
401
336
  }
402
337
  exports.SecretsManager = SecretsManager;
403
- //# sourceMappingURL=SecretsManager.js.map
@@ -10,71 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>Amazon Web Services Secrets Manager</fullname>
15
- * <p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>
16
- *
17
- * <p>This guide provides descriptions of the Secrets Manager API. For more information about using this
18
- * service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html">Amazon Web Services Secrets Manager User Guide</a>.</p>
19
- *
20
- * <p>
21
- * <b>API Version</b>
22
- * </p>
23
- *
24
- * <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
25
- * <note>
26
- * <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
27
- * libraries and sample code for various programming languages and platforms such as Java,
28
- * Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic
29
- * access to Amazon Web Services Secrets Manager. For example, the SDKs provide cryptographically signing requests,
30
- * managing errors, and retrying requests automatically. For more information about the Amazon Web Services
31
- * SDKs, including downloading and installing them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
32
- * </note>
33
- * <p>We recommend you use the Amazon Web Services SDKs to make programmatic API calls to Secrets Manager. However, you
34
- * also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn
35
- * more about the Secrets Manager HTTP Query API, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html">Making Query Requests</a> in the
36
- * <i>Amazon Web Services Secrets Manager User Guide</i>. </p>
37
- * <p>Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use
38
- * GET for some actions and POST for others. However, GET requests are subject to the limitation
39
- * size of a URL. Therefore, for operations that require larger sizes, use a POST request.</p>
40
- *
41
- *
42
- *
43
- *
44
- *
45
- *
46
- *
47
- * <p>
48
- * <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
49
- * </p>
50
- *
51
- * <p>We welcome your feedback. Send your comments to <a href="mailto:awssecretsmanager-feedback@amazon.com">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=296">Amazon Web Services Secrets Manager Discussion Forum</a>. For more
52
- * information about the Amazon Web Services Discussion Forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums
53
- * Help</a>.</p>
54
- *
55
- * <p>
56
- * <b>How examples are presented</b>
57
- * </p>
58
- *
59
- * <p>The JSON that Amazon Web Services Secrets Manager expects as your request parameters and the service returns as a
60
- * response to HTTP query requests contain single, long strings without line breaks or white
61
- * space formatting. The JSON shown in the examples displays the code formatted with both line
62
- * breaks and white space to improve readability. When example input parameters can also cause
63
- * long strings extending beyond the screen, you can insert line breaks to enhance readability.
64
- * You should always submit the input as a single JSON text string.</p>
65
- *
66
- *
67
- * <p>
68
- * <b>Logging API Requests</b>
69
- * </p>
70
- * <p>Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services
71
- * account and delivers log files to an Amazon S3 bucket. By using information that's collected
72
- * by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the
73
- * request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services
74
- * CloudTrail, see <a href="http://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail">Logging
75
- * Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>.
76
- * To learn more about CloudTrail, including enabling it and find your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">Amazon Web Services CloudTrail User Guide</a>.</p>
77
- */
78
13
  class SecretsManagerClient extends smithy_client_1.Client {
79
14
  constructor(configuration) {
80
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -93,14 +28,8 @@ class SecretsManagerClient extends smithy_client_1.Client {
93
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
94
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
95
30
  }
96
- /**
97
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
98
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
99
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
100
- */
101
31
  destroy() {
102
32
  super.destroy();
103
33
  }
104
34
  }
105
35
  exports.SecretsManagerClient = SecretsManagerClient;
106
- //# sourceMappingURL=SecretsManagerClient.js.map
@@ -5,87 +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>Disables automatic scheduled rotation and cancels the rotation of a secret if currently in
10
- * progress.</p>
11
- * <p>To re-enable scheduled rotation, call <a>RotateSecret</a> with
12
- * <code>AutomaticallyRotateAfterDays</code> set to a value greater than 0. This immediately
13
- * rotates your secret and then enables the automatic schedule.</p>
14
- * <note>
15
- * <p>If you cancel a rotation while in progress, it can leave the <code>VersionStage</code>
16
- * labels in an unexpected state. Depending on the step of the rotation in progress, you might
17
- * need to remove the staging label <code>AWSPENDING</code> from the partially created version, specified
18
- * by the <code>VersionId</code> response value. You should also evaluate the partially rotated
19
- * new version to see if it should be deleted, which you can do by removing all staging labels
20
- * from the new version <code>VersionStage</code> field.</p>
21
- * </note>
22
- * <p>To successfully start a rotation, the staging label <code>AWSPENDING</code> must be in one of the
23
- * following states:</p>
24
- * <ul>
25
- * <li>
26
- * <p>Not attached to any version at all</p>
27
- * </li>
28
- * <li>
29
- * <p>Attached to the same version as the staging label <code>AWSCURRENT</code>
30
- * </p>
31
- * </li>
32
- * </ul>
33
- * <p>If the staging label <code>AWSPENDING</code> attached to a different version than the version with
34
- * <code>AWSCURRENT</code> then the attempt to rotate fails.</p>
35
- *
36
- * <p>
37
- * <b>Minimum permissions</b>
38
- * </p>
39
- * <p>To run this command, you must have the following permissions:</p>
40
- * <ul>
41
- * <li>
42
- * <p>secretsmanager:CancelRotateSecret</p>
43
- * </li>
44
- * </ul>
45
- * <p>
46
- * <b>Related operations</b>
47
- * </p>
48
- * <ul>
49
- * <li>
50
- * <p>To configure rotation for a secret or to manually trigger a rotation, use <a>RotateSecret</a>.</p>
51
- * </li>
52
- * <li>
53
- * <p>To get the rotation configuration details for a secret, use <a>DescribeSecret</a>.</p>
54
- * </li>
55
- * <li>
56
- * <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
57
- * </li>
58
- * <li>
59
- * <p>To list all of the versions currently associated with a secret, use <a>ListSecretVersionIds</a>.</p>
60
- * </li>
61
- * </ul>
62
- * @example
63
- * Use a bare-bones client and the command you need to make an API call.
64
- * ```javascript
65
- * import { SecretsManagerClient, CancelRotateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
66
- * // const { SecretsManagerClient, CancelRotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
67
- * const client = new SecretsManagerClient(config);
68
- * const command = new CancelRotateSecretCommand(input);
69
- * const response = await client.send(command);
70
- * ```
71
- *
72
- * @see {@link CancelRotateSecretCommandInput} for command's `input` shape.
73
- * @see {@link CancelRotateSecretCommandOutput} for command's `response` shape.
74
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
75
- *
76
- */
77
8
  class CancelRotateSecretCommand extends smithy_client_1.Command {
78
- // Start section: command_properties
79
- // End section: command_properties
80
9
  constructor(input) {
81
- // Start section: command_constructor
82
10
  super();
83
11
  this.input = input;
84
- // End section: command_constructor
85
12
  }
86
- /**
87
- * @internal
88
- */
89
13
  resolveMiddleware(clientStack, configuration, options) {
90
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
91
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -110,4 +34,3 @@ class CancelRotateSecretCommand extends smithy_client_1.Command {
110
34
  }
111
35
  }
112
36
  exports.CancelRotateSecretCommand = CancelRotateSecretCommand;
113
- //# sourceMappingURL=CancelRotateSecretCommand.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>Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the
10
- * important information needed to manage the secret.</p>
11
- * <p>Secrets Manager stores the encrypted secret data in one of a collection of "versions"
12
- * associated with the secret. Each version contains a copy of the encrypted secret data. Each
13
- * version is associated with one or more "staging labels" that identify where the version is in
14
- * the rotation cycle. The <code>SecretVersionsToStages</code> field of the secret contains the
15
- * mapping of staging labels to the active versions of the secret. Versions without a staging
16
- * label are considered deprecated and not included in the list.</p>
17
- * <p>You provide the secret data to be encrypted by putting text in either the
18
- * <code>SecretString</code> parameter or binary data in the <code>SecretBinary</code>
19
- * parameter, but not both. If you include <code>SecretString</code> or <code>SecretBinary</code>
20
- * then Secrets Manager also creates an initial secret version and automatically attaches the staging
21
- * label <code>AWSCURRENT</code> to the new version.</p>
22
- * <note>
23
- * <ul>
24
- * <li>
25
- * <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
26
- * or <code>SecretBinary</code> for a secret in the same account as the calling user and that
27
- * secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
28
- * Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
29
- * doesn't already exist in your account then Secrets Manager creates it for you automatically. All
30
- * users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
31
- * Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
32
- * Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
33
- * result.</p>
34
- * </li>
35
- * <li>
36
- * <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
37
- * requires encryption or decryption of the secret value then you must create and use a custom
38
- * Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
39
- * from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
40
- * secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
41
- * API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
42
- * using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
43
- * access to that other account's user or role for both the kms:GenerateDataKey and
44
- * kms:Decrypt operations.</p>
45
- * </li>
46
- * </ul>
47
- * </note>
48
- * <p> </p>
49
- * <p>
50
- * <b>Minimum permissions</b>
51
- * </p>
52
- * <p>To run this command, you must have the following permissions:</p>
53
- * <ul>
54
- * <li>
55
- * <p>secretsmanager:CreateSecret</p>
56
- * </li>
57
- * <li>
58
- * <p>kms:GenerateDataKey - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt
59
- * the secret. You do not need this permission to use the account default Amazon Web Services managed CMK
60
- * for Secrets Manager.</p>
61
- * </li>
62
- * <li>
63
- * <p>kms:Decrypt - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt the
64
- * secret. You do not need this permission to use the account default Amazon Web Services managed CMK for
65
- * Secrets Manager.</p>
66
- * </li>
67
- * <li>
68
- * <p>secretsmanager:TagResource - needed only if you include the <code>Tags</code>
69
- * parameter. </p>
70
- * </li>
71
- * </ul>
72
- * <p>
73
- * <b>Related operations</b>
74
- * </p>
75
- * <ul>
76
- * <li>
77
- * <p>To delete a secret, use <a>DeleteSecret</a>.</p>
78
- * </li>
79
- * <li>
80
- * <p>To modify an existing secret, use <a>UpdateSecret</a>.</p>
81
- * </li>
82
- * <li>
83
- * <p>To create a new version of a secret, use <a>PutSecretValue</a>.</p>
84
- * </li>
85
- * <li>
86
- * <p>To retrieve the encrypted secure string and secure binary values, use <a>GetSecretValue</a>.</p>
87
- * </li>
88
- * <li>
89
- * <p>To retrieve all other details for a secret, use <a>DescribeSecret</a>. This
90
- * does not include the encrypted secure string and secure binary values.</p>
91
- * </li>
92
- * <li>
93
- * <p>To retrieve the list of secret versions associated with the current secret, use <a>DescribeSecret</a> and examine the <code>SecretVersionsToStages</code> response
94
- * value.</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, CreateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
101
- * // const { SecretsManagerClient, CreateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
102
- * const client = new SecretsManagerClient(config);
103
- * const command = new CreateSecretCommand(input);
104
- * const response = await client.send(command);
105
- * ```
106
- *
107
- * @see {@link CreateSecretCommandInput} for command's `input` shape.
108
- * @see {@link CreateSecretCommandOutput} for command's `response` shape.
109
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
110
- *
111
- */
112
8
  class CreateSecretCommand 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 CreateSecretCommand extends smithy_client_1.Command {
145
34
  }
146
35
  }
147
36
  exports.CreateSecretCommand = CreateSecretCommand;
148
- //# sourceMappingURL=CreateSecretCommand.js.map
@@ -5,58 +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>Deletes the resource-based permission policy attached to the secret.</p>
10
- * <p>
11
- * <b>Minimum permissions</b>
12
- * </p>
13
- * <p>To run this command, you must have the following permissions:</p>
14
- * <ul>
15
- * <li>
16
- * <p>secretsmanager:DeleteResourcePolicy</p>
17
- * </li>
18
- * </ul>
19
- * <p>
20
- * <b>Related operations</b>
21
- * </p>
22
- * <ul>
23
- * <li>
24
- * <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>
25
- * </li>
26
- * <li>
27
- * <p>To retrieve the current resource-based policy attached to a secret, use <a>GetResourcePolicy</a>.</p>
28
- * </li>
29
- * <li>
30
- * <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
31
- * </li>
32
- * </ul>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { SecretsManagerClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
37
- * // const { SecretsManagerClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
38
- * const client = new SecretsManagerClient(config);
39
- * const command = new DeleteResourcePolicyCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
44
- * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
45
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
48
8
  class DeleteResourcePolicyCommand extends smithy_client_1.Command {
49
- // Start section: command_properties
50
- // End section: command_properties
51
9
  constructor(input) {
52
- // Start section: command_constructor
53
10
  super();
54
11
  this.input = input;
55
- // End section: command_constructor
56
12
  }
57
- /**
58
- * @internal
59
- */
60
13
  resolveMiddleware(clientStack, configuration, options) {
61
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
62
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -81,4 +34,3 @@ class DeleteResourcePolicyCommand extends smithy_client_1.Command {
81
34
  }
82
35
  }
83
36
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
84
- //# sourceMappingURL=DeleteResourcePolicyCommand.js.map
@@ -5,80 +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>Deletes an entire secret and all of the versions. You can optionally include a recovery
10
- * window during which you can restore the secret. If you don't specify a recovery window value,
11
- * the operation defaults to 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
12
- * the secret that specifies the end of the recovery window. At the end of the recovery window,
13
- * Secrets Manager deletes the secret permanently.</p>
14
- * <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
15
- * remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>
16
- * <p>You cannot access the encrypted secret information in any secret scheduled for deletion.
17
- * If you need to access that information, you must cancel the deletion with <a>RestoreSecret</a> and then retrieve the information.</p>
18
- * <note>
19
- * <ul>
20
- * <li>
21
- * <p>There is no explicit operation to delete a version of a secret. Instead, remove all
22
- * staging labels from the <code>VersionStage</code> field of a version. That marks the
23
- * version as deprecated and allows Secrets Manager to delete it as needed. Versions without any
24
- * staging labels do not show up in <a>ListSecretVersionIds</a> unless you
25
- * specify <code>IncludeDeprecated</code>.</p>
26
- * </li>
27
- * <li>
28
- * <p>The permanent secret deletion at the end of the waiting period is performed as a
29
- * background task with low priority. There is no guarantee of a specific time after the
30
- * recovery window for the actual delete operation to occur.</p>
31
- * </li>
32
- * </ul>
33
- * </note>
34
- * <p>
35
- * <b>Minimum permissions</b>
36
- * </p>
37
- * <p>To run this command, you must have the following permissions:</p>
38
- * <ul>
39
- * <li>
40
- * <p>secretsmanager:DeleteSecret</p>
41
- * </li>
42
- * </ul>
43
- * <p>
44
- * <b>Related operations</b>
45
- * </p>
46
- * <ul>
47
- * <li>
48
- * <p>To create a secret, use <a>CreateSecret</a>.</p>
49
- * </li>
50
- * <li>
51
- * <p>To cancel deletion of a version of a secret before the recovery window has expired,
52
- * use <a>RestoreSecret</a>.</p>
53
- * </li>
54
- * </ul>
55
- * @example
56
- * Use a bare-bones client and the command you need to make an API call.
57
- * ```javascript
58
- * import { SecretsManagerClient, DeleteSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
59
- * // const { SecretsManagerClient, DeleteSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
60
- * const client = new SecretsManagerClient(config);
61
- * const command = new DeleteSecretCommand(input);
62
- * const response = await client.send(command);
63
- * ```
64
- *
65
- * @see {@link DeleteSecretCommandInput} for command's `input` shape.
66
- * @see {@link DeleteSecretCommandOutput} for command's `response` shape.
67
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
68
- *
69
- */
70
8
  class DeleteSecretCommand extends smithy_client_1.Command {
71
- // Start section: command_properties
72
- // End section: command_properties
73
9
  constructor(input) {
74
- // Start section: command_constructor
75
10
  super();
76
11
  this.input = input;
77
- // End section: command_constructor
78
12
  }
79
- /**
80
- * @internal
81
- */
82
13
  resolveMiddleware(clientStack, configuration, options) {
83
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
84
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -103,4 +34,3 @@ class DeleteSecretCommand extends smithy_client_1.Command {
103
34
  }
104
35
  }
105
36
  exports.DeleteSecretCommand = DeleteSecretCommand;
106
- //# sourceMappingURL=DeleteSecretCommand.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 details of a secret. It does not include the encrypted fields. Secrets
10
- * Manager only returns fields populated with a value in the response. </p>
11
- * <p>
12
- * <b>Minimum permissions</b>
13
- * </p>
14
- * <p>To run this command, you must have the following permissions:</p>
15
- * <ul>
16
- * <li>
17
- * <p>secretsmanager:DescribeSecret</p>
18
- * </li>
19
- * </ul>
20
- * <p>
21
- * <b>Related operations</b>
22
- * </p>
23
- * <ul>
24
- * <li>
25
- * <p>To create a secret, use <a>CreateSecret</a>.</p>
26
- * </li>
27
- * <li>
28
- * <p>To modify a secret, use <a>UpdateSecret</a>.</p>
29
- * </li>
30
- * <li>
31
- * <p>To retrieve the encrypted secret information in a version of the secret, use <a>GetSecretValue</a>.</p>
32
- * </li>
33
- * <li>
34
- * <p>To list all of the secrets in the Amazon Web Services account, use <a>ListSecrets</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, DescribeSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
41
- * // const { SecretsManagerClient, DescribeSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
42
- * const client = new SecretsManagerClient(config);
43
- * const command = new DescribeSecretCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link DescribeSecretCommandInput} for command's `input` shape.
48
- * @see {@link DescribeSecretCommandOutput} for command's `response` shape.
49
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
8
  class DescribeSecretCommand 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 DescribeSecretCommand extends smithy_client_1.Command {
85
34
  }
86
35
  }
87
36
  exports.DescribeSecretCommand = DescribeSecretCommand;
88
- //# sourceMappingURL=DescribeSecretCommand.js.map