@aws-sdk/client-secrets-manager 3.34.0 → 3.37.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 (303) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SecretsManager.js +2 -68
  3. package/dist-cjs/SecretsManagerClient.js +35 -0
  4. package/dist-cjs/commands/CancelRotateSecretCommand.js +36 -0
  5. package/dist-cjs/commands/CreateSecretCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteSecretCommand.js +36 -0
  8. package/dist-cjs/commands/DescribeSecretCommand.js +36 -0
  9. package/{dist/cjs → dist-cjs}/commands/GetRandomPasswordCommand.js +2 -39
  10. package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
  11. package/dist-cjs/commands/GetSecretValueCommand.js +36 -0
  12. package/dist-cjs/commands/ListSecretVersionIdsCommand.js +36 -0
  13. package/dist-cjs/commands/ListSecretsCommand.js +36 -0
  14. package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
  15. package/dist-cjs/commands/PutSecretValueCommand.js +36 -0
  16. package/{dist/cjs → dist-cjs}/commands/RemoveRegionsFromReplicationCommand.js +2 -27
  17. package/{dist/cjs → dist-cjs}/commands/ReplicateSecretToRegionsCommand.js +2 -28
  18. package/dist-cjs/commands/RestoreSecretCommand.js +36 -0
  19. package/dist-cjs/commands/RotateSecretCommand.js +36 -0
  20. package/{dist/cjs → dist-cjs}/commands/StopReplicationToReplicaCommand.js +2 -27
  21. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  22. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  23. package/dist-cjs/commands/UpdateSecretCommand.js +36 -0
  24. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js +36 -0
  25. package/dist-cjs/commands/ValidateResourcePolicyCommand.js +36 -0
  26. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  27. package/{dist/cjs → dist-cjs}/index.js +0 -1
  28. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  29. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -187
  30. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  31. package/{dist/cjs → dist-cjs}/pagination/ListSecretVersionIdsPaginator.js +1 -12
  32. package/{dist/cjs → dist-cjs}/pagination/ListSecretsPaginator.js +1 -12
  33. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  34. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  35. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  36. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  37. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  38. package/{dist/es → dist-es}/SecretsManager.js +2 -3
  39. package/{dist/es → dist-es}/SecretsManagerClient.js +1 -2
  40. package/{dist/es → dist-es}/commands/CancelRotateSecretCommand.js +2 -3
  41. package/{dist/es → dist-es}/commands/CreateSecretCommand.js +2 -3
  42. package/{dist/es → dist-es}/commands/DeleteResourcePolicyCommand.js +2 -3
  43. package/{dist/es → dist-es}/commands/DeleteSecretCommand.js +2 -3
  44. package/{dist/es → dist-es}/commands/DescribeSecretCommand.js +2 -3
  45. package/{dist/es → dist-es}/commands/GetRandomPasswordCommand.js +2 -3
  46. package/{dist/es → dist-es}/commands/GetResourcePolicyCommand.js +2 -3
  47. package/{dist/es → dist-es}/commands/GetSecretValueCommand.js +2 -3
  48. package/{dist/es → dist-es}/commands/ListSecretVersionIdsCommand.js +2 -3
  49. package/{dist/es → dist-es}/commands/ListSecretsCommand.js +2 -3
  50. package/{dist/es → dist-es}/commands/PutResourcePolicyCommand.js +2 -3
  51. package/{dist/es → dist-es}/commands/PutSecretValueCommand.js +2 -3
  52. package/{dist/es → dist-es}/commands/RemoveRegionsFromReplicationCommand.js +2 -3
  53. package/{dist/es → dist-es}/commands/ReplicateSecretToRegionsCommand.js +2 -3
  54. package/{dist/es → dist-es}/commands/RestoreSecretCommand.js +2 -3
  55. package/{dist/es → dist-es}/commands/RotateSecretCommand.js +2 -3
  56. package/{dist/es → dist-es}/commands/StopReplicationToReplicaCommand.js +2 -3
  57. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
  58. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
  59. package/{dist/es → dist-es}/commands/UpdateSecretCommand.js +2 -3
  60. package/{dist/es → dist-es}/commands/UpdateSecretVersionStageCommand.js +2 -3
  61. package/{dist/es → dist-es}/commands/ValidateResourcePolicyCommand.js +2 -3
  62. package/{dist/es → dist-es}/endpoints.js +1 -2
  63. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  64. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  65. package/{dist/es → dist-es}/models/models_0.js +0 -1
  66. package/dist-es/pagination/Interfaces.js +1 -0
  67. package/{dist/es → dist-es}/pagination/ListSecretVersionIdsPaginator.js +1 -2
  68. package/{dist/es → dist-es}/pagination/ListSecretsPaginator.js +1 -2
  69. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  70. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  71. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  72. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  73. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  74. package/{dist/types → dist-types}/SecretsManager.d.ts +19 -13
  75. package/{dist/types → dist-types}/SecretsManagerClient.d.ts +9 -9
  76. package/{dist/types → dist-types}/commands/CancelRotateSecretCommand.d.ts +3 -3
  77. package/{dist/types → dist-types}/commands/CreateSecretCommand.d.ts +3 -3
  78. package/{dist/types → dist-types}/commands/DeleteResourcePolicyCommand.d.ts +3 -3
  79. package/{dist/types → dist-types}/commands/DeleteSecretCommand.d.ts +3 -3
  80. package/{dist/types → dist-types}/commands/DescribeSecretCommand.d.ts +3 -3
  81. package/{dist/types → dist-types}/commands/GetRandomPasswordCommand.d.ts +3 -3
  82. package/{dist/types → dist-types}/commands/GetResourcePolicyCommand.d.ts +3 -3
  83. package/{dist/types → dist-types}/commands/GetSecretValueCommand.d.ts +3 -3
  84. package/{dist/types → dist-types}/commands/ListSecretVersionIdsCommand.d.ts +3 -3
  85. package/{dist/types → dist-types}/commands/ListSecretsCommand.d.ts +3 -3
  86. package/{dist/types → dist-types}/commands/PutResourcePolicyCommand.d.ts +3 -3
  87. package/{dist/types/ts3.4 → dist-types}/commands/PutSecretValueCommand.d.ts +123 -122
  88. package/{dist/types → dist-types}/commands/RemoveRegionsFromReplicationCommand.d.ts +3 -3
  89. package/{dist/types → dist-types}/commands/ReplicateSecretToRegionsCommand.d.ts +3 -3
  90. package/{dist/types → dist-types}/commands/RestoreSecretCommand.d.ts +3 -3
  91. package/{dist/types → dist-types}/commands/RotateSecretCommand.d.ts +3 -3
  92. package/{dist/types → dist-types}/commands/StopReplicationToReplicaCommand.d.ts +3 -3
  93. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
  94. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
  95. package/{dist/types/ts3.4 → dist-types}/commands/UpdateSecretCommand.d.ts +124 -119
  96. package/{dist/types → dist-types}/commands/UpdateSecretVersionStageCommand.d.ts +3 -3
  97. package/{dist/types → dist-types}/commands/ValidateResourcePolicyCommand.d.ts +3 -3
  98. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  99. package/{index.ts → dist-types/index.d.ts} +0 -0
  100. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  101. package/{dist/types → dist-types}/models/models_0.d.ts +54 -268
  102. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  103. package/{dist/types → dist-types}/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
  104. package/{dist/types → dist-types}/pagination/ListSecretsPaginator.d.ts +1 -1
  105. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
  106. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  107. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  108. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  109. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  110. package/dist-types/ts3.4/SecretsManager.d.ts +115 -0
  111. package/dist-types/ts3.4/SecretsManagerClient.d.ts +89 -0
  112. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +17 -0
  113. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +17 -0
  114. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
  115. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +17 -0
  117. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +17 -0
  118. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
  119. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +17 -0
  122. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
  123. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +17 -0
  124. package/{dist/types → dist-types}/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +5 -23
  125. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +17 -0
  126. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +17 -0
  127. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +17 -0
  128. package/{dist/types → dist-types}/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +5 -23
  129. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  130. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  131. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +17 -0
  132. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +17 -0
  133. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +17 -0
  134. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  135. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  136. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +791 -0
  138. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  139. package/{dist/types → dist-types}/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
  140. package/{dist/types → dist-types}/ts3.4/pagination/ListSecretsPaginator.d.ts +1 -1
  141. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
  142. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  143. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  144. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  145. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  146. package/package.json +45 -42
  147. package/SecretsManager.ts +0 -1642
  148. package/SecretsManagerClient.ts +0 -384
  149. package/commands/CancelRotateSecretCommand.ts +0 -146
  150. package/commands/CreateSecretCommand.ts +0 -181
  151. package/commands/DeleteResourcePolicyCommand.ts +0 -117
  152. package/commands/DeleteSecretCommand.ts +0 -139
  153. package/commands/DescribeSecretCommand.ts +0 -121
  154. package/commands/GetRandomPasswordCommand.ts +0 -106
  155. package/commands/GetResourcePolicyCommand.ts +0 -120
  156. package/commands/GetSecretValueCommand.ts +0 -121
  157. package/commands/ListSecretVersionIdsCommand.ts +0 -122
  158. package/commands/ListSecretsCommand.ts +0 -123
  159. package/commands/PutResourcePolicyCommand.ts +0 -125
  160. package/commands/PutSecretValueCommand.ts +0 -181
  161. package/commands/RemoveRegionsFromReplicationCommand.ts +0 -99
  162. package/commands/ReplicateSecretToRegionsCommand.ts +0 -95
  163. package/commands/RestoreSecretCommand.ts +0 -112
  164. package/commands/RotateSecretCommand.ts +0 -155
  165. package/commands/StopReplicationToReplicaCommand.ts +0 -94
  166. package/commands/TagResourceCommand.ts +0 -149
  167. package/commands/UntagResourceCommand.ts +0 -122
  168. package/commands/UpdateSecretCommand.ts +0 -178
  169. package/commands/UpdateSecretVersionStageCommand.ts +0 -130
  170. package/commands/ValidateResourcePolicyCommand.ts +0 -128
  171. package/dist/cjs/SecretsManager.js.map +0 -1
  172. package/dist/cjs/SecretsManagerClient.js +0 -106
  173. package/dist/cjs/SecretsManagerClient.js.map +0 -1
  174. package/dist/cjs/commands/CancelRotateSecretCommand.js +0 -113
  175. package/dist/cjs/commands/CancelRotateSecretCommand.js.map +0 -1
  176. package/dist/cjs/commands/CreateSecretCommand.js +0 -148
  177. package/dist/cjs/commands/CreateSecretCommand.js.map +0 -1
  178. package/dist/cjs/commands/DeleteResourcePolicyCommand.js +0 -84
  179. package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  180. package/dist/cjs/commands/DeleteSecretCommand.js +0 -106
  181. package/dist/cjs/commands/DeleteSecretCommand.js.map +0 -1
  182. package/dist/cjs/commands/DescribeSecretCommand.js +0 -88
  183. package/dist/cjs/commands/DescribeSecretCommand.js.map +0 -1
  184. package/dist/cjs/commands/GetRandomPasswordCommand.js.map +0 -1
  185. package/dist/cjs/commands/GetResourcePolicyCommand.js +0 -87
  186. package/dist/cjs/commands/GetResourcePolicyCommand.js.map +0 -1
  187. package/dist/cjs/commands/GetSecretValueCommand.js +0 -88
  188. package/dist/cjs/commands/GetSecretValueCommand.js.map +0 -1
  189. package/dist/cjs/commands/ListSecretVersionIdsCommand.js +0 -89
  190. package/dist/cjs/commands/ListSecretVersionIdsCommand.js.map +0 -1
  191. package/dist/cjs/commands/ListSecretsCommand.js +0 -90
  192. package/dist/cjs/commands/ListSecretsCommand.js.map +0 -1
  193. package/dist/cjs/commands/PutResourcePolicyCommand.js +0 -92
  194. package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  195. package/dist/cjs/commands/PutSecretValueCommand.js +0 -148
  196. package/dist/cjs/commands/PutSecretValueCommand.js.map +0 -1
  197. package/dist/cjs/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  198. package/dist/cjs/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  199. package/dist/cjs/commands/RestoreSecretCommand.js +0 -79
  200. package/dist/cjs/commands/RestoreSecretCommand.js.map +0 -1
  201. package/dist/cjs/commands/RotateSecretCommand.js +0 -122
  202. package/dist/cjs/commands/RotateSecretCommand.js.map +0 -1
  203. package/dist/cjs/commands/StopReplicationToReplicaCommand.js.map +0 -1
  204. package/dist/cjs/commands/TagResourceCommand.js +0 -116
  205. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  206. package/dist/cjs/commands/UntagResourceCommand.js +0 -89
  207. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  208. package/dist/cjs/commands/UpdateSecretCommand.js +0 -145
  209. package/dist/cjs/commands/UpdateSecretCommand.js.map +0 -1
  210. package/dist/cjs/commands/UpdateSecretVersionStageCommand.js +0 -97
  211. package/dist/cjs/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  212. package/dist/cjs/commands/ValidateResourcePolicyCommand.js +0 -95
  213. package/dist/cjs/commands/ValidateResourcePolicyCommand.js.map +0 -1
  214. package/dist/cjs/endpoints.js.map +0 -1
  215. package/dist/cjs/index.js.map +0 -1
  216. package/dist/cjs/models/index.js.map +0 -1
  217. package/dist/cjs/models/models_0.js.map +0 -1
  218. package/dist/cjs/package.json +0 -93
  219. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  220. package/dist/cjs/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  221. package/dist/cjs/pagination/ListSecretsPaginator.js.map +0 -1
  222. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  223. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  224. package/dist/cjs/runtimeConfig.js.map +0 -1
  225. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  226. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  227. package/dist/es/SecretsManager.js.map +0 -1
  228. package/dist/es/SecretsManagerClient.js.map +0 -1
  229. package/dist/es/commands/CancelRotateSecretCommand.js.map +0 -1
  230. package/dist/es/commands/CreateSecretCommand.js.map +0 -1
  231. package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  232. package/dist/es/commands/DeleteSecretCommand.js.map +0 -1
  233. package/dist/es/commands/DescribeSecretCommand.js.map +0 -1
  234. package/dist/es/commands/GetRandomPasswordCommand.js.map +0 -1
  235. package/dist/es/commands/GetResourcePolicyCommand.js.map +0 -1
  236. package/dist/es/commands/GetSecretValueCommand.js.map +0 -1
  237. package/dist/es/commands/ListSecretVersionIdsCommand.js.map +0 -1
  238. package/dist/es/commands/ListSecretsCommand.js.map +0 -1
  239. package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
  240. package/dist/es/commands/PutSecretValueCommand.js.map +0 -1
  241. package/dist/es/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  242. package/dist/es/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  243. package/dist/es/commands/RestoreSecretCommand.js.map +0 -1
  244. package/dist/es/commands/RotateSecretCommand.js.map +0 -1
  245. package/dist/es/commands/StopReplicationToReplicaCommand.js.map +0 -1
  246. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  247. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  248. package/dist/es/commands/UpdateSecretCommand.js.map +0 -1
  249. package/dist/es/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  250. package/dist/es/commands/ValidateResourcePolicyCommand.js.map +0 -1
  251. package/dist/es/endpoints.js.map +0 -1
  252. package/dist/es/index.js +0 -29
  253. package/dist/es/index.js.map +0 -1
  254. package/dist/es/models/index.js +0 -2
  255. package/dist/es/models/index.js.map +0 -1
  256. package/dist/es/models/models_0.js.map +0 -1
  257. package/dist/es/package.json +0 -93
  258. package/dist/es/pagination/Interfaces.js +0 -2
  259. package/dist/es/pagination/Interfaces.js.map +0 -1
  260. package/dist/es/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  261. package/dist/es/pagination/ListSecretsPaginator.js.map +0 -1
  262. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  263. package/dist/es/runtimeConfig.browser.js.map +0 -1
  264. package/dist/es/runtimeConfig.js.map +0 -1
  265. package/dist/es/runtimeConfig.native.js.map +0 -1
  266. package/dist/es/runtimeConfig.shared.js.map +0 -1
  267. package/dist/types/commands/PutSecretValueCommand.d.ts +0 -122
  268. package/dist/types/commands/UpdateSecretCommand.d.ts +0 -119
  269. package/dist/types/ts3.4/SecretsManager.d.ts +0 -1014
  270. package/dist/types/ts3.4/SecretsManagerClient.d.ts +0 -216
  271. package/dist/types/ts3.4/commands/CancelRotateSecretCommand.d.ts +0 -87
  272. package/dist/types/ts3.4/commands/CreateSecretCommand.d.ts +0 -122
  273. package/dist/types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -58
  274. package/dist/types/ts3.4/commands/DeleteSecretCommand.d.ts +0 -80
  275. package/dist/types/ts3.4/commands/DescribeSecretCommand.d.ts +0 -62
  276. package/dist/types/ts3.4/commands/GetRandomPasswordCommand.d.ts +0 -47
  277. package/dist/types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -61
  278. package/dist/types/ts3.4/commands/GetSecretValueCommand.d.ts +0 -62
  279. package/dist/types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +0 -63
  280. package/dist/types/ts3.4/commands/ListSecretsCommand.d.ts +0 -64
  281. package/dist/types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -66
  282. package/dist/types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +0 -36
  283. package/dist/types/ts3.4/commands/RestoreSecretCommand.d.ts +0 -53
  284. package/dist/types/ts3.4/commands/RotateSecretCommand.d.ts +0 -96
  285. package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -90
  286. package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -63
  287. package/dist/types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +0 -71
  288. package/dist/types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +0 -69
  289. package/dist/types/ts3.4/models/models_0.d.ts +0 -2041
  290. package/endpoints.ts +0 -86
  291. package/jest.config.js +0 -4
  292. package/models/models_0.ts +0 -2422
  293. package/pagination/Interfaces.ts +0 -7
  294. package/pagination/ListSecretVersionIdsPaginator.ts +0 -58
  295. package/pagination/ListSecretsPaginator.ts +0 -54
  296. package/protocols/Aws_json1_1.ts +0 -3421
  297. package/runtimeConfig.browser.ts +0 -40
  298. package/runtimeConfig.native.ts +0 -16
  299. package/runtimeConfig.shared.ts +0 -16
  300. package/runtimeConfig.ts +0 -45
  301. package/tsconfig.es.json +0 -10
  302. package/tsconfig.json +0 -31
  303. package/tsconfig.types.json +0 -8
@@ -1,7 +1,7 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UntagResourceRequest } from "../models/models_0";
3
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UntagResourceRequest } from "../models/models_0";
4
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
5
5
  export interface UntagResourceCommandInput extends UntagResourceRequest {
6
6
  }
7
7
  export interface UntagResourceCommandOutput extends __MetadataBearer {
@@ -1,119 +1,124 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UpdateSecretRequest, UpdateSecretResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface UpdateSecretCommandInput extends UpdateSecretRequest {
6
- }
7
- export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __MetadataBearer {
8
- }
9
- /**
10
- * <p>Modifies many of the details of the specified secret. If you include a
11
- * <code>ClientRequestToken</code> and <i>either</i>
12
- * <code>SecretString</code> or <code>SecretBinary</code> then it also creates a new version
13
- * attached to the secret.</p>
14
- * <p>To modify the rotation configuration of a secret, use <a>RotateSecret</a>
15
- * instead.</p>
16
- * <note>
17
- * <p>The Secrets Manager console uses only the <code>SecretString</code> parameter and therefore limits
18
- * you to encrypting and storing only a text string. To encrypt and store binary data as part
19
- * of the version of a secret, you must use either the Amazon Web Services CLI or one of the Amazon Web Services
20
- * SDKs.</p>
21
- * </note>
22
- * <ul>
23
- * <li>
24
- * <p>If a version with a <code>VersionId</code> with the same value as the
25
- * <code>ClientRequestToken</code> parameter already exists, the operation results in an
26
- * error. You cannot modify an existing version, you can only create a new version.</p>
27
- * </li>
28
- * <li>
29
- * <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new
30
- * secret version, Secrets Manager automatically attaches the staging label <code>AWSCURRENT</code> to the new
31
- * version. </p>
32
- * </li>
33
- * </ul>
34
- * <note>
35
- * <ul>
36
- * <li>
37
- * <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
38
- * or <code>SecretBinary</code> for a secret in the same account as the calling user and that
39
- * secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
40
- * Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
41
- * doesn't already exist in your account then Secrets Manager creates it for you automatically. All
42
- * users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
43
- * Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
44
- * Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
45
- * result.</p>
46
- * </li>
47
- * <li>
48
- * <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
49
- * requires encryption or decryption of the secret value then you must create and use a custom
50
- * Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
51
- * from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
52
- * secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
53
- * API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
54
- * using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
55
- * access to that other account's user or role for both the kms:GenerateDataKey and
56
- * kms:Decrypt operations.</p>
57
- * </li>
58
- * </ul>
59
- * </note>
60
- * <p>
61
- * <b>Minimum permissions</b>
62
- * </p>
63
- * <p>To run this command, you must have the following permissions:</p>
64
- * <ul>
65
- * <li>
66
- * <p>secretsmanager:UpdateSecret</p>
67
- * </li>
68
- * <li>
69
- * <p>kms:GenerateDataKey - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret.
70
- * You do not need this permission to use the account's Amazon Web Services managed CMK for
71
- * Secrets Manager.</p>
72
- * </li>
73
- * <li>
74
- * <p>kms:Decrypt - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret. You do
75
- * not need this permission to use the account's Amazon Web Services managed CMK for Secrets Manager.</p>
76
- * </li>
77
- * </ul>
78
- * <p>
79
- * <b>Related operations</b>
80
- * </p>
81
- * <ul>
82
- * <li>
83
- * <p>To create a new secret, use <a>CreateSecret</a>.</p>
84
- * </li>
85
- * <li>
86
- * <p>To add only a new version to an existing secret, use <a>PutSecretValue</a>.</p>
87
- * </li>
88
- * <li>
89
- * <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>
90
- * </li>
91
- * <li>
92
- * <p>To list the versions contained in a secret, use <a>ListSecretVersionIds</a>.</p>
93
- * </li>
94
- * </ul>
95
- * @example
96
- * Use a bare-bones client and the command you need to make an API call.
97
- * ```javascript
98
- * import { SecretsManagerClient, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
99
- * // const { SecretsManagerClient, UpdateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
100
- * const client = new SecretsManagerClient(config);
101
- * const command = new UpdateSecretCommand(input);
102
- * const response = await client.send(command);
103
- * ```
104
- *
105
- * @see {@link UpdateSecretCommandInput} for command's `input` shape.
106
- * @see {@link UpdateSecretCommandOutput} for command's `response` shape.
107
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
108
- *
109
- */
110
- export declare class UpdateSecretCommand extends $Command<UpdateSecretCommandInput, UpdateSecretCommandOutput, SecretsManagerClientResolvedConfig> {
111
- readonly input: UpdateSecretCommandInput;
112
- constructor(input: UpdateSecretCommandInput);
113
- /**
114
- * @internal
115
- */
116
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateSecretCommandInput, UpdateSecretCommandOutput>;
117
- private serialize;
118
- private deserialize;
119
- }
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UpdateSecretRequest, UpdateSecretResponse } from "../models/models_0";
4
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
5
+ export interface UpdateSecretCommandInput extends UpdateSecretRequest {
6
+ }
7
+ export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Modifies many of the details of the specified secret. </p>
11
+ * <p>To change the secret value, you can also use <a>PutSecretValue</a>.</p>
12
+ * <p>To change the rotation configuration of a secret, use <a>RotateSecret</a>
13
+ * instead.</p>
14
+ *
15
+ * <p>We recommend you avoid calling <code>UpdateSecret</code> at a sustained rate of more than
16
+ * once every 10 minutes. When you call <code>UpdateSecret</code> to update the secret value, Secrets Manager creates a new version
17
+ * of the secret. Secrets Manager removes outdated versions when there are more than 100, but it does not
18
+ * remove versions created less than 24 hours ago. If you update the secret value more
19
+ * than once every 10 minutes, you create more versions than Secrets Manager removes, and you will reach
20
+ * the quota for secret versions.</p>
21
+ * <note>
22
+ * <p>The Secrets Manager console uses only the <code>SecretString</code> parameter and therefore limits
23
+ * you to encrypting and storing only a text string. To encrypt and store binary data as part
24
+ * of the version of a secret, you must use either the Amazon Web Services CLI or one of the Amazon Web Services
25
+ * SDKs.</p>
26
+ * </note>
27
+ * <ul>
28
+ * <li>
29
+ * <p>If a version with a <code>VersionId</code> with the same value as the
30
+ * <code>ClientRequestToken</code> parameter already exists, the operation results in an
31
+ * error. You cannot modify an existing version, you can only create a new version.</p>
32
+ * </li>
33
+ * <li>
34
+ * <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new
35
+ * secret version, Secrets Manager automatically attaches the staging label <code>AWSCURRENT</code> to the new
36
+ * version. </p>
37
+ * </li>
38
+ * </ul>
39
+ * <note>
40
+ * <ul>
41
+ * <li>
42
+ * <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
43
+ * or <code>SecretBinary</code> for a secret in the same account as the calling user and that
44
+ * secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
45
+ * Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
46
+ * doesn't already exist in your account then Secrets Manager creates it for you automatically. All
47
+ * users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
48
+ * Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
49
+ * Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
50
+ * result.</p>
51
+ * </li>
52
+ * <li>
53
+ * <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
54
+ * requires encryption or decryption of the secret value then you must create and use a custom
55
+ * Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
56
+ * from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
57
+ * secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
58
+ * API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
59
+ * using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
60
+ * access to that other account's user or role for both the kms:GenerateDataKey and
61
+ * kms:Decrypt operations.</p>
62
+ * </li>
63
+ * </ul>
64
+ * </note>
65
+ * <p>
66
+ * <b>Minimum permissions</b>
67
+ * </p>
68
+ * <p>To run this command, you must have the following permissions:</p>
69
+ * <ul>
70
+ * <li>
71
+ * <p>secretsmanager:UpdateSecret</p>
72
+ * </li>
73
+ * <li>
74
+ * <p>kms:GenerateDataKey - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret.
75
+ * You do not need this permission to use the account's Amazon Web Services managed CMK for
76
+ * Secrets Manager.</p>
77
+ * </li>
78
+ * <li>
79
+ * <p>kms:Decrypt - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret. You do
80
+ * not need this permission to use the account's Amazon Web Services managed CMK for Secrets Manager.</p>
81
+ * </li>
82
+ * </ul>
83
+ * <p>
84
+ * <b>Related operations</b>
85
+ * </p>
86
+ * <ul>
87
+ * <li>
88
+ * <p>To create a new secret, use <a>CreateSecret</a>.</p>
89
+ * </li>
90
+ * <li>
91
+ * <p>To add only a new version to an existing secret, use <a>PutSecretValue</a>.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>
95
+ * </li>
96
+ * <li>
97
+ * <p>To list the versions contained in a secret, use <a>ListSecretVersionIds</a>.</p>
98
+ * </li>
99
+ * </ul>
100
+ * @example
101
+ * Use a bare-bones client and the command you need to make an API call.
102
+ * ```javascript
103
+ * import { SecretsManagerClient, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
104
+ * // const { SecretsManagerClient, UpdateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
105
+ * const client = new SecretsManagerClient(config);
106
+ * const command = new UpdateSecretCommand(input);
107
+ * const response = await client.send(command);
108
+ * ```
109
+ *
110
+ * @see {@link UpdateSecretCommandInput} for command's `input` shape.
111
+ * @see {@link UpdateSecretCommandOutput} for command's `response` shape.
112
+ * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
113
+ *
114
+ */
115
+ export declare class UpdateSecretCommand extends $Command<UpdateSecretCommandInput, UpdateSecretCommandOutput, SecretsManagerClientResolvedConfig> {
116
+ readonly input: UpdateSecretCommandInput;
117
+ constructor(input: UpdateSecretCommandInput);
118
+ /**
119
+ * @internal
120
+ */
121
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecretsManagerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateSecretCommandInput, UpdateSecretCommandOutput>;
122
+ private serialize;
123
+ private deserialize;
124
+ }
@@ -1,7 +1,7 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UpdateSecretVersionStageRequest, UpdateSecretVersionStageResponse } from "../models/models_0";
3
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { UpdateSecretVersionStageRequest, UpdateSecretVersionStageResponse } from "../models/models_0";
4
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
5
5
  export interface UpdateSecretVersionStageCommandInput extends UpdateSecretVersionStageRequest {
6
6
  }
7
7
  export interface UpdateSecretVersionStageCommandOutput extends UpdateSecretVersionStageResponse, __MetadataBearer {
@@ -1,7 +1,7 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { ValidateResourcePolicyRequest, ValidateResourcePolicyResponse } from "../models/models_0";
3
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ValidateResourcePolicyRequest, ValidateResourcePolicyResponse } from "../models/models_0";
4
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
5
5
  export interface ValidateResourcePolicyCommandInput extends ValidateResourcePolicyRequest {
6
6
  }
7
7
  export interface ValidateResourcePolicyCommandOutput extends ValidateResourcePolicyResponse, __MetadataBearer {
File without changes
File without changes