@aws-sdk/client-secrets-manager 3.31.0 → 3.35.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 (347) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/SecretsManager.js +2 -2
  3. package/dist-cjs/SecretsManager.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/SecretsManagerClient.js +14 -14
  5. package/dist-cjs/SecretsManagerClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/CancelRotateSecretCommand.js +5 -5
  7. package/dist-cjs/commands/CancelRotateSecretCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateSecretCommand.js +5 -5
  9. package/dist-cjs/commands/CreateSecretCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/DeleteResourcePolicyCommand.js +5 -5
  11. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/DeleteSecretCommand.js +5 -5
  13. package/dist-cjs/commands/DeleteSecretCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/DescribeSecretCommand.js +5 -5
  15. package/dist-cjs/commands/DescribeSecretCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/GetRandomPasswordCommand.js +5 -5
  17. package/dist-cjs/commands/GetRandomPasswordCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/GetResourcePolicyCommand.js +5 -5
  19. package/dist-cjs/commands/GetResourcePolicyCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/GetSecretValueCommand.js +5 -5
  21. package/dist-cjs/commands/GetSecretValueCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/ListSecretVersionIdsCommand.js +5 -5
  23. package/dist-cjs/commands/ListSecretVersionIdsCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/ListSecretsCommand.js +5 -5
  25. package/dist-cjs/commands/ListSecretsCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/PutResourcePolicyCommand.js +5 -5
  27. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/PutSecretValueCommand.js +5 -5
  29. package/dist-cjs/commands/PutSecretValueCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/RemoveRegionsFromReplicationCommand.js +5 -5
  31. package/dist-cjs/commands/RemoveRegionsFromReplicationCommand.js.map +1 -0
  32. package/{dist/cjs → dist-cjs}/commands/ReplicateSecretToRegionsCommand.js +5 -5
  33. package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/RestoreSecretCommand.js +5 -5
  35. package/dist-cjs/commands/RestoreSecretCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/RotateSecretCommand.js +5 -5
  37. package/dist-cjs/commands/RotateSecretCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/StopReplicationToReplicaCommand.js +5 -5
  39. package/dist-cjs/commands/StopReplicationToReplicaCommand.js.map +1 -0
  40. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
  41. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
  43. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/UpdateSecretCommand.js +5 -5
  45. package/dist-cjs/commands/UpdateSecretCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/commands/UpdateSecretVersionStageCommand.js +5 -5
  47. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/commands/ValidateResourcePolicyCommand.js +5 -5
  49. package/dist-cjs/commands/ValidateResourcePolicyCommand.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  51. package/dist-cjs/endpoints.js.map +1 -0
  52. package/dist-cjs/index.js +32 -0
  53. package/dist-cjs/index.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  55. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  56. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  57. package/dist-cjs/models/models_0.js.map +1 -0
  58. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  59. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  60. package/{dist/cjs → dist-cjs}/pagination/ListSecretVersionIdsPaginator.js +1 -1
  61. package/dist-cjs/pagination/ListSecretVersionIdsPaginator.js.map +1 -0
  62. package/{dist/cjs → dist-cjs}/pagination/ListSecretsPaginator.js +1 -1
  63. package/dist-cjs/pagination/ListSecretsPaginator.js.map +1 -0
  64. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +100 -100
  65. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  66. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  67. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  68. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  69. package/dist-cjs/runtimeConfig.js.map +1 -0
  70. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  71. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  72. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  73. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  74. package/{dist/es → dist-es}/SecretsManager.js +3 -68
  75. package/dist-es/SecretsManager.js.map +1 -0
  76. package/dist-es/SecretsManagerClient.js +38 -0
  77. package/dist-es/SecretsManagerClient.js.map +1 -0
  78. package/dist-es/commands/CancelRotateSecretCommand.js +40 -0
  79. package/dist-es/commands/CancelRotateSecretCommand.js.map +1 -0
  80. package/dist-es/commands/CreateSecretCommand.js +40 -0
  81. package/dist-es/commands/CreateSecretCommand.js.map +1 -0
  82. package/dist-es/commands/DeleteResourcePolicyCommand.js +40 -0
  83. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +1 -0
  84. package/dist-es/commands/DeleteSecretCommand.js +40 -0
  85. package/dist-es/commands/DeleteSecretCommand.js.map +1 -0
  86. package/dist-es/commands/DescribeSecretCommand.js +40 -0
  87. package/dist-es/commands/DescribeSecretCommand.js.map +1 -0
  88. package/{dist/es → dist-es}/commands/GetRandomPasswordCommand.js +4 -41
  89. package/dist-es/commands/GetRandomPasswordCommand.js.map +1 -0
  90. package/dist-es/commands/GetResourcePolicyCommand.js +40 -0
  91. package/dist-es/commands/GetResourcePolicyCommand.js.map +1 -0
  92. package/dist-es/commands/GetSecretValueCommand.js +40 -0
  93. package/dist-es/commands/GetSecretValueCommand.js.map +1 -0
  94. package/dist-es/commands/ListSecretVersionIdsCommand.js +40 -0
  95. package/dist-es/commands/ListSecretVersionIdsCommand.js.map +1 -0
  96. package/dist-es/commands/ListSecretsCommand.js +40 -0
  97. package/dist-es/commands/ListSecretsCommand.js.map +1 -0
  98. package/dist-es/commands/PutResourcePolicyCommand.js +40 -0
  99. package/dist-es/commands/PutResourcePolicyCommand.js.map +1 -0
  100. package/dist-es/commands/PutSecretValueCommand.js +40 -0
  101. package/dist-es/commands/PutSecretValueCommand.js.map +1 -0
  102. package/{dist/es → dist-es}/commands/RemoveRegionsFromReplicationCommand.js +4 -29
  103. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js.map +1 -0
  104. package/{dist/es → dist-es}/commands/ReplicateSecretToRegionsCommand.js +4 -30
  105. package/dist-es/commands/ReplicateSecretToRegionsCommand.js.map +1 -0
  106. package/{dist/es → dist-es}/commands/RestoreSecretCommand.js +4 -47
  107. package/dist-es/commands/RestoreSecretCommand.js.map +1 -0
  108. package/dist-es/commands/RotateSecretCommand.js +40 -0
  109. package/dist-es/commands/RotateSecretCommand.js.map +1 -0
  110. package/{dist/es → dist-es}/commands/StopReplicationToReplicaCommand.js +4 -29
  111. package/dist-es/commands/StopReplicationToReplicaCommand.js.map +1 -0
  112. package/dist-es/commands/TagResourceCommand.js +40 -0
  113. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  114. package/dist-es/commands/UntagResourceCommand.js +40 -0
  115. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  116. package/dist-es/commands/UpdateSecretCommand.js +40 -0
  117. package/dist-es/commands/UpdateSecretCommand.js.map +1 -0
  118. package/dist-es/commands/UpdateSecretVersionStageCommand.js +40 -0
  119. package/dist-es/commands/UpdateSecretVersionStageCommand.js.map +1 -0
  120. package/dist-es/commands/ValidateResourcePolicyCommand.js +40 -0
  121. package/dist-es/commands/ValidateResourcePolicyCommand.js.map +1 -0
  122. package/{dist/es → dist-es}/endpoints.js +1 -1
  123. package/dist-es/endpoints.js.map +1 -0
  124. package/{dist/es → dist-es}/index.js +0 -0
  125. package/dist-es/index.js.map +1 -0
  126. package/{dist/es → dist-es}/models/index.js +0 -0
  127. package/dist-es/models/index.js.map +1 -0
  128. package/{dist/es → dist-es}/models/models_0.js +0 -186
  129. package/dist-es/models/models_0.js.map +1 -0
  130. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  131. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  132. package/{dist/es → dist-es}/pagination/ListSecretVersionIdsPaginator.js +17 -29
  133. package/dist-es/pagination/ListSecretVersionIdsPaginator.js.map +1 -0
  134. package/{dist/es → dist-es}/pagination/ListSecretsPaginator.js +17 -29
  135. package/dist-es/pagination/ListSecretsPaginator.js.map +1 -0
  136. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +580 -585
  137. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  138. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  139. package/dist-es/runtimeConfig.browser.js.map +1 -0
  140. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  141. package/dist-es/runtimeConfig.js.map +1 -0
  142. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  143. package/dist-es/runtimeConfig.native.js.map +1 -0
  144. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  145. package/dist-es/runtimeConfig.shared.js.map +1 -0
  146. package/{dist/types → dist-types}/SecretsManager.d.ts +3 -3
  147. package/{dist/types → dist-types}/SecretsManagerClient.d.ts +9 -9
  148. package/{dist/types → dist-types}/commands/CancelRotateSecretCommand.d.ts +3 -3
  149. package/{dist/types → dist-types}/commands/CreateSecretCommand.d.ts +3 -3
  150. package/{dist/types → dist-types}/commands/DeleteResourcePolicyCommand.d.ts +3 -3
  151. package/{dist/types → dist-types}/commands/DeleteSecretCommand.d.ts +3 -3
  152. package/{dist/types → dist-types}/commands/DescribeSecretCommand.d.ts +3 -3
  153. package/{dist/types → dist-types}/commands/GetRandomPasswordCommand.d.ts +3 -3
  154. package/{dist/types → dist-types}/commands/GetResourcePolicyCommand.d.ts +3 -3
  155. package/{dist/types → dist-types}/commands/GetSecretValueCommand.d.ts +3 -3
  156. package/{dist/types → dist-types}/commands/ListSecretVersionIdsCommand.d.ts +3 -3
  157. package/{dist/types → dist-types}/commands/ListSecretsCommand.d.ts +3 -3
  158. package/{dist/types → dist-types}/commands/PutResourcePolicyCommand.d.ts +3 -3
  159. package/{dist/types → dist-types}/commands/PutSecretValueCommand.d.ts +3 -3
  160. package/{dist/types → dist-types}/commands/RemoveRegionsFromReplicationCommand.d.ts +3 -3
  161. package/{dist/types → dist-types}/commands/ReplicateSecretToRegionsCommand.d.ts +3 -3
  162. package/{dist/types → dist-types}/commands/RestoreSecretCommand.d.ts +3 -3
  163. package/{dist/types → dist-types}/commands/RotateSecretCommand.d.ts +3 -3
  164. package/{dist/types → dist-types}/commands/StopReplicationToReplicaCommand.d.ts +3 -3
  165. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
  166. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
  167. package/{dist/types → dist-types}/commands/UpdateSecretCommand.d.ts +3 -3
  168. package/{dist/types → dist-types}/commands/UpdateSecretVersionStageCommand.d.ts +3 -3
  169. package/{dist/types → dist-types}/commands/ValidateResourcePolicyCommand.d.ts +3 -3
  170. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  171. package/{dist/types → dist-types}/index.d.ts +0 -0
  172. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  173. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  174. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  175. package/{dist/types → dist-types}/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
  176. package/{dist/types → dist-types}/pagination/ListSecretsPaginator.d.ts +1 -1
  177. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
  178. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  179. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  180. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  181. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  182. package/{dist/types → dist-types}/ts3.4/SecretsManager.d.ts +3 -3
  183. package/{dist/types → dist-types}/ts3.4/SecretsManagerClient.d.ts +9 -9
  184. package/{dist/types → dist-types}/ts3.4/commands/CancelRotateSecretCommand.d.ts +3 -3
  185. package/{dist/types → dist-types}/ts3.4/commands/CreateSecretCommand.d.ts +3 -3
  186. package/{dist/types → dist-types}/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +3 -3
  187. package/{dist/types → dist-types}/ts3.4/commands/DeleteSecretCommand.d.ts +3 -3
  188. package/{dist/types → dist-types}/ts3.4/commands/DescribeSecretCommand.d.ts +3 -3
  189. package/{dist/types → dist-types}/ts3.4/commands/GetRandomPasswordCommand.d.ts +3 -3
  190. package/{dist/types → dist-types}/ts3.4/commands/GetResourcePolicyCommand.d.ts +3 -3
  191. package/{dist/types → dist-types}/ts3.4/commands/GetSecretValueCommand.d.ts +3 -3
  192. package/{dist/types → dist-types}/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +3 -3
  193. package/{dist/types → dist-types}/ts3.4/commands/ListSecretsCommand.d.ts +3 -3
  194. package/{dist/types → dist-types}/ts3.4/commands/PutResourcePolicyCommand.d.ts +3 -3
  195. package/{dist/types → dist-types}/ts3.4/commands/PutSecretValueCommand.d.ts +3 -3
  196. package/{dist/types → dist-types}/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +3 -3
  197. package/{dist/types → dist-types}/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +3 -3
  198. package/{dist/types → dist-types}/ts3.4/commands/RestoreSecretCommand.d.ts +3 -3
  199. package/{dist/types → dist-types}/ts3.4/commands/RotateSecretCommand.d.ts +3 -3
  200. package/{dist/types → dist-types}/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +3 -3
  201. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
  202. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
  203. package/{dist/types → dist-types}/ts3.4/commands/UpdateSecretCommand.d.ts +3 -3
  204. package/{dist/types → dist-types}/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +3 -3
  205. package/{dist/types → dist-types}/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +3 -3
  206. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  207. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  208. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  209. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  210. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  211. package/{dist/types → dist-types}/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
  212. package/{dist/types → dist-types}/ts3.4/pagination/ListSecretsPaginator.d.ts +1 -1
  213. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
  214. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  215. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  216. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  217. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  218. package/package.json +50 -50
  219. package/{SecretsManager.ts → src/SecretsManager.ts} +4 -3
  220. package/{SecretsManagerClient.ts → src/SecretsManagerClient.ts} +58 -57
  221. package/{commands → src/commands}/CancelRotateSecretCommand.ts +8 -7
  222. package/{commands → src/commands}/CreateSecretCommand.ts +8 -7
  223. package/{commands → src/commands}/DeleteResourcePolicyCommand.ts +8 -7
  224. package/{commands → src/commands}/DeleteSecretCommand.ts +8 -7
  225. package/{commands → src/commands}/DescribeSecretCommand.ts +8 -7
  226. package/{commands → src/commands}/GetRandomPasswordCommand.ts +8 -7
  227. package/{commands → src/commands}/GetResourcePolicyCommand.ts +8 -7
  228. package/{commands → src/commands}/GetSecretValueCommand.ts +8 -7
  229. package/{commands → src/commands}/ListSecretVersionIdsCommand.ts +8 -7
  230. package/{commands → src/commands}/ListSecretsCommand.ts +8 -7
  231. package/{commands → src/commands}/PutResourcePolicyCommand.ts +8 -7
  232. package/{commands → src/commands}/PutSecretValueCommand.ts +8 -7
  233. package/{commands → src/commands}/RemoveRegionsFromReplicationCommand.ts +8 -7
  234. package/{commands → src/commands}/ReplicateSecretToRegionsCommand.ts +8 -7
  235. package/{commands → src/commands}/RestoreSecretCommand.ts +8 -7
  236. package/{commands → src/commands}/RotateSecretCommand.ts +8 -7
  237. package/{commands → src/commands}/StopReplicationToReplicaCommand.ts +8 -7
  238. package/{commands → src/commands}/TagResourceCommand.ts +8 -7
  239. package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
  240. package/{commands → src/commands}/UpdateSecretCommand.ts +8 -7
  241. package/{commands → src/commands}/UpdateSecretVersionStageCommand.ts +8 -7
  242. package/{commands → src/commands}/ValidateResourcePolicyCommand.ts +8 -7
  243. package/{endpoints.ts → src/endpoints.ts} +1 -1
  244. package/{index.ts → src/index.ts} +0 -0
  245. package/{models → src/models}/index.ts +0 -0
  246. package/{models → src/models}/models_0.ts +0 -0
  247. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  248. package/{pagination → src/pagination}/ListSecretVersionIdsPaginator.ts +4 -3
  249. package/{pagination → src/pagination}/ListSecretsPaginator.ts +3 -2
  250. package/{protocols → src/protocols}/Aws_json1_1.ts +44 -43
  251. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +4 -3
  252. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +2 -1
  253. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  254. package/{runtimeConfig.ts → src/runtimeConfig.ts} +5 -4
  255. package/tsconfig.es.json +1 -3
  256. package/tsconfig.json +7 -7
  257. package/tsconfig.types.json +9 -0
  258. package/dist/cjs/SecretsManager.js.map +0 -1
  259. package/dist/cjs/SecretsManagerClient.js.map +0 -1
  260. package/dist/cjs/commands/CancelRotateSecretCommand.js.map +0 -1
  261. package/dist/cjs/commands/CreateSecretCommand.js.map +0 -1
  262. package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
  263. package/dist/cjs/commands/DeleteSecretCommand.js.map +0 -1
  264. package/dist/cjs/commands/DescribeSecretCommand.js.map +0 -1
  265. package/dist/cjs/commands/GetRandomPasswordCommand.js.map +0 -1
  266. package/dist/cjs/commands/GetResourcePolicyCommand.js.map +0 -1
  267. package/dist/cjs/commands/GetSecretValueCommand.js.map +0 -1
  268. package/dist/cjs/commands/ListSecretVersionIdsCommand.js.map +0 -1
  269. package/dist/cjs/commands/ListSecretsCommand.js.map +0 -1
  270. package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
  271. package/dist/cjs/commands/PutSecretValueCommand.js.map +0 -1
  272. package/dist/cjs/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  273. package/dist/cjs/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  274. package/dist/cjs/commands/RestoreSecretCommand.js.map +0 -1
  275. package/dist/cjs/commands/RotateSecretCommand.js.map +0 -1
  276. package/dist/cjs/commands/StopReplicationToReplicaCommand.js.map +0 -1
  277. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  278. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  279. package/dist/cjs/commands/UpdateSecretCommand.js.map +0 -1
  280. package/dist/cjs/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  281. package/dist/cjs/commands/ValidateResourcePolicyCommand.js.map +0 -1
  282. package/dist/cjs/endpoints.js.map +0 -1
  283. package/dist/cjs/index.js +0 -32
  284. package/dist/cjs/index.js.map +0 -1
  285. package/dist/cjs/models/models_0.js.map +0 -1
  286. package/dist/cjs/package.json +0 -93
  287. package/dist/cjs/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  288. package/dist/cjs/pagination/ListSecretsPaginator.js.map +0 -1
  289. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  290. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  291. package/dist/cjs/runtimeConfig.js.map +0 -1
  292. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  293. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  294. package/dist/es/SecretsManager.js.map +0 -1
  295. package/dist/es/SecretsManagerClient.js +0 -108
  296. package/dist/es/SecretsManagerClient.js.map +0 -1
  297. package/dist/es/commands/CancelRotateSecretCommand.js +0 -117
  298. package/dist/es/commands/CancelRotateSecretCommand.js.map +0 -1
  299. package/dist/es/commands/CreateSecretCommand.js +0 -152
  300. package/dist/es/commands/CreateSecretCommand.js.map +0 -1
  301. package/dist/es/commands/DeleteResourcePolicyCommand.js +0 -88
  302. package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  303. package/dist/es/commands/DeleteSecretCommand.js +0 -110
  304. package/dist/es/commands/DeleteSecretCommand.js.map +0 -1
  305. package/dist/es/commands/DescribeSecretCommand.js +0 -92
  306. package/dist/es/commands/DescribeSecretCommand.js.map +0 -1
  307. package/dist/es/commands/GetRandomPasswordCommand.js.map +0 -1
  308. package/dist/es/commands/GetResourcePolicyCommand.js +0 -91
  309. package/dist/es/commands/GetResourcePolicyCommand.js.map +0 -1
  310. package/dist/es/commands/GetSecretValueCommand.js +0 -92
  311. package/dist/es/commands/GetSecretValueCommand.js.map +0 -1
  312. package/dist/es/commands/ListSecretVersionIdsCommand.js +0 -93
  313. package/dist/es/commands/ListSecretVersionIdsCommand.js.map +0 -1
  314. package/dist/es/commands/ListSecretsCommand.js +0 -94
  315. package/dist/es/commands/ListSecretsCommand.js.map +0 -1
  316. package/dist/es/commands/PutResourcePolicyCommand.js +0 -96
  317. package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
  318. package/dist/es/commands/PutSecretValueCommand.js +0 -152
  319. package/dist/es/commands/PutSecretValueCommand.js.map +0 -1
  320. package/dist/es/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  321. package/dist/es/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  322. package/dist/es/commands/RestoreSecretCommand.js.map +0 -1
  323. package/dist/es/commands/RotateSecretCommand.js +0 -126
  324. package/dist/es/commands/RotateSecretCommand.js.map +0 -1
  325. package/dist/es/commands/StopReplicationToReplicaCommand.js.map +0 -1
  326. package/dist/es/commands/TagResourceCommand.js +0 -120
  327. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  328. package/dist/es/commands/UntagResourceCommand.js +0 -93
  329. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  330. package/dist/es/commands/UpdateSecretCommand.js +0 -149
  331. package/dist/es/commands/UpdateSecretCommand.js.map +0 -1
  332. package/dist/es/commands/UpdateSecretVersionStageCommand.js +0 -101
  333. package/dist/es/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  334. package/dist/es/commands/ValidateResourcePolicyCommand.js +0 -99
  335. package/dist/es/commands/ValidateResourcePolicyCommand.js.map +0 -1
  336. package/dist/es/endpoints.js.map +0 -1
  337. package/dist/es/index.js.map +0 -1
  338. package/dist/es/models/index.js.map +0 -1
  339. package/dist/es/models/models_0.js.map +0 -1
  340. package/dist/es/package.json +0 -93
  341. package/dist/es/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  342. package/dist/es/pagination/ListSecretsPaginator.js.map +0 -1
  343. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  344. package/dist/es/runtimeConfig.browser.js.map +0 -1
  345. package/dist/es/runtimeConfig.js.map +0 -1
  346. package/dist/es/runtimeConfig.native.js.map +0 -1
  347. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,96 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1PutResourcePolicyCommand, serializeAws_json1_1PutResourcePolicyCommand, } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Attaches the contents of the specified resource-based permission policy to a secret. A
8
- * resource-based policy is optional. Alternatively, you can use IAM identity-based policies
9
- * that specify the secret's Amazon Resource Name (ARN) in the policy statement's
10
- * <code>Resources</code> element. You can also use a combination of both identity-based and
11
- * resource-based policies. The affected users and roles receive the permissions that are
12
- * 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
13
- * Policies for Amazon Web Services Secrets Manager</a>. For the complete description of the Amazon Web Services policy syntax and
14
- * grammar, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON
15
- * Policy Reference</a> in the <i>IAM User Guide</i>.</p>
16
- * <p>
17
- * <b>Minimum permissions</b>
18
- * </p>
19
- * <p>To run this command, you must have the following permissions:</p>
20
- * <ul>
21
- * <li>
22
- * <p>secretsmanager:PutResourcePolicy</p>
23
- * </li>
24
- * </ul>
25
- * <p>
26
- * <b>Related operations</b>
27
- * </p>
28
- * <ul>
29
- * <li>
30
- * <p>To retrieve the resource policy attached to a secret, use <a>GetResourcePolicy</a>.</p>
31
- * </li>
32
- * <li>
33
- * <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
34
- * </li>
35
- * <li>
36
- * <p>To list all of the currently available secrets, use <a>ListSecrets</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, PutResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
43
- * // const { SecretsManagerClient, PutResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
44
- * const client = new SecretsManagerClient(config);
45
- * const command = new PutResourcePolicyCommand(input);
46
- * const response = await client.send(command);
47
- * ```
48
- *
49
- * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
50
- * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
51
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
52
- *
53
- */
54
- var PutResourcePolicyCommand = /** @class */ (function (_super) {
55
- __extends(PutResourcePolicyCommand, _super);
56
- // Start section: command_properties
57
- // End section: command_properties
58
- function PutResourcePolicyCommand(input) {
59
- var _this =
60
- // Start section: command_constructor
61
- _super.call(this) || this;
62
- _this.input = input;
63
- return _this;
64
- // End section: command_constructor
65
- }
66
- /**
67
- * @internal
68
- */
69
- PutResourcePolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
70
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
71
- var stack = clientStack.concat(this.middlewareStack);
72
- var logger = configuration.logger;
73
- var clientName = "SecretsManagerClient";
74
- var commandName = "PutResourcePolicyCommand";
75
- var handlerExecutionContext = {
76
- logger: logger,
77
- clientName: clientName,
78
- commandName: commandName,
79
- inputFilterSensitiveLog: PutResourcePolicyRequest.filterSensitiveLog,
80
- outputFilterSensitiveLog: PutResourcePolicyResponse.filterSensitiveLog,
81
- };
82
- var requestHandler = configuration.requestHandler;
83
- return stack.resolve(function (request) {
84
- return requestHandler.handle(request.request, options || {});
85
- }, handlerExecutionContext);
86
- };
87
- PutResourcePolicyCommand.prototype.serialize = function (input, context) {
88
- return serializeAws_json1_1PutResourcePolicyCommand(input, context);
89
- };
90
- PutResourcePolicyCommand.prototype.deserialize = function (output, context) {
91
- return deserializeAws_json1_1PutResourcePolicyCommand(output, context);
92
- };
93
- return PutResourcePolicyCommand;
94
- }($Command));
95
- export { PutResourcePolicyCommand };
96
- //# sourceMappingURL=PutResourcePolicyCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PutResourcePolicyCommand.js","sourceRoot":"","sources":["../../../commands/PutResourcePolicyCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EACL,8CAA8C,EAC9C,4CAA4C,GAC7C,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH;IAA8C,4CAI7C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,kCAAqB,KAAoC;QAAzD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA+B;;QAGvD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,oDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,IAAM,WAAW,GAAG,0BAA0B,CAAC;QAC/C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,wBAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,yBAAyB,CAAC,kBAAkB;SACvE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,4CAAS,GAAjB,UAAkB,KAAoC,EAAE,OAAuB;QAC7E,OAAO,4CAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,8CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,8CAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAIH,+BAAC;AAAD,CAAC,AAtDD,CAA8C,QAAQ,GAsDrD"}
@@ -1,152 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { PutSecretValueRequest, PutSecretValueResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1PutSecretValueCommand, serializeAws_json1_1PutSecretValueCommand, } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Stores a new encrypted secret value in the specified secret. To do this, the operation
8
- * creates a new version and attaches it to the secret. The version can contain a new
9
- * <code>SecretString</code> value or a new <code>SecretBinary</code> value. You can also
10
- * specify the staging labels that are initially attached to the new version.</p>
11
- * <note>
12
- * <p>The Secrets Manager console uses only the <code>SecretString</code> field. To add binary data to a
13
- * secret with the <code>SecretBinary</code> field you must use the Amazon Web Services CLI or one of the
14
- * Amazon Web Services SDKs.</p>
15
- * </note>
16
- * <ul>
17
- * <li>
18
- * <p>If this operation creates the first version for the secret then Secrets Manager
19
- * automatically attaches the staging label <code>AWSCURRENT</code> to the new version.</p>
20
- * </li>
21
- * <li>
22
- * <p>If you do not specify a value for VersionStages then Secrets Manager automatically
23
- * moves the staging label <code>AWSCURRENT</code> to this new version.</p>
24
- * </li>
25
- * <li>
26
- * <p>If this operation moves the staging label <code>AWSCURRENT</code> from another version to this
27
- * version, then Secrets Manager also automatically moves the staging label <code>AWSPREVIOUS</code> to
28
- * the version that <code>AWSCURRENT</code> was removed from.</p>
29
- * </li>
30
- * <li>
31
- * <p>This operation is idempotent. If a version with a <code>VersionId</code> with the same
32
- * value as the <code>ClientRequestToken</code> parameter already exists and you specify the
33
- * same secret data, the operation succeeds but does nothing. However, if the secret data is
34
- * different, then the operation fails because you cannot modify an existing version; you can
35
- * only create new ones.</p>
36
- * </li>
37
- * </ul>
38
- * <note>
39
- * <ul>
40
- * <li>
41
- * <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
42
- * or <code>SecretBinary</code> for a secret in the same account as the calling user and that
43
- * secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
44
- * Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
45
- * doesn't already exist in your account then Secrets Manager creates it for you automatically. All
46
- * users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
47
- * Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
48
- * Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
49
- * result.</p>
50
- * </li>
51
- * <li>
52
- * <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
53
- * requires encryption or decryption of the secret value then you must create and use a custom
54
- * Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
55
- * from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
56
- * secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
57
- * API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
58
- * using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
59
- * access to that other account's user or role for both the kms:GenerateDataKey and
60
- * kms:Decrypt operations.</p>
61
- * </li>
62
- * </ul>
63
- * </note>
64
- * <p>
65
- * <b>Minimum permissions</b>
66
- * </p>
67
- * <p>To run this command, you must have the following permissions:</p>
68
- * <ul>
69
- * <li>
70
- * <p>secretsmanager:PutSecretValue</p>
71
- * </li>
72
- * <li>
73
- * <p>kms:GenerateDataKey - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt
74
- * the secret. You do not need this permission to use the account's default Amazon Web Services managed CMK
75
- * for Secrets Manager.</p>
76
- * </li>
77
- * </ul>
78
- * <p>
79
- * <b>Related operations</b>
80
- * </p>
81
- * <ul>
82
- * <li>
83
- * <p>To retrieve the encrypted value you store in the version of a secret, use <a>GetSecretValue</a>.</p>
84
- * </li>
85
- * <li>
86
- * <p>To create a secret, use <a>CreateSecret</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 attached to 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, PutSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
99
- * // const { SecretsManagerClient, PutSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
100
- * const client = new SecretsManagerClient(config);
101
- * const command = new PutSecretValueCommand(input);
102
- * const response = await client.send(command);
103
- * ```
104
- *
105
- * @see {@link PutSecretValueCommandInput} for command's `input` shape.
106
- * @see {@link PutSecretValueCommandOutput} for command's `response` shape.
107
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
108
- *
109
- */
110
- var PutSecretValueCommand = /** @class */ (function (_super) {
111
- __extends(PutSecretValueCommand, _super);
112
- // Start section: command_properties
113
- // End section: command_properties
114
- function PutSecretValueCommand(input) {
115
- var _this =
116
- // Start section: command_constructor
117
- _super.call(this) || this;
118
- _this.input = input;
119
- return _this;
120
- // End section: command_constructor
121
- }
122
- /**
123
- * @internal
124
- */
125
- PutSecretValueCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
126
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
127
- var stack = clientStack.concat(this.middlewareStack);
128
- var logger = configuration.logger;
129
- var clientName = "SecretsManagerClient";
130
- var commandName = "PutSecretValueCommand";
131
- var handlerExecutionContext = {
132
- logger: logger,
133
- clientName: clientName,
134
- commandName: commandName,
135
- inputFilterSensitiveLog: PutSecretValueRequest.filterSensitiveLog,
136
- outputFilterSensitiveLog: PutSecretValueResponse.filterSensitiveLog,
137
- };
138
- var requestHandler = configuration.requestHandler;
139
- return stack.resolve(function (request) {
140
- return requestHandler.handle(request.request, options || {});
141
- }, handlerExecutionContext);
142
- };
143
- PutSecretValueCommand.prototype.serialize = function (input, context) {
144
- return serializeAws_json1_1PutSecretValueCommand(input, context);
145
- };
146
- PutSecretValueCommand.prototype.deserialize = function (output, context) {
147
- return deserializeAws_json1_1PutSecretValueCommand(output, context);
148
- };
149
- return PutSecretValueCommand;
150
- }($Command));
151
- export { PutSecretValueCommand };
152
- //# sourceMappingURL=PutSecretValueCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PutSecretValueCommand.js","sourceRoot":"","sources":["../../../commands/PutSecretValueCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAC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C;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,yCAAS,GAAjB,UAAkB,KAAiC,EAAE,OAAuB;QAC1E,OAAO,yCAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,2CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,2CAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAIH,4BAAC;AAAD,CAAC,AAtDD,CAA2C,QAAQ,GAsDlD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoveRegionsFromReplicationCommand.js","sourceRoot":"","sources":["../../../commands/RemoveRegionsFromReplicationCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,mCAAmC,EAAE,oCAAoC,EAAE,MAAM,oBAAoB,CAAC;AAC/G,OAAO,EACL,yDAAyD,EACzD,uDAAuD,GACxD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgB7D;;;;;;;;;;;;;;;;GAgBG;AACH;IAAyD,uDAIxD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,6CAAqB,KAA+C;QAApE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA0C;;QAGlE,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,+DAAiB,GAAjB,UACE,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,IAAM,WAAW,GAAG,qCAAqC,CAAC;QAC1D,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,mCAAmC,CAAC,kBAAkB;YAC/E,wBAAwB,EAAE,oCAAoC,CAAC,kBAAkB;SAClF,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,uDAAS,GAAjB,UAAkB,KAA+C,EAAE,OAAuB;QACxF,OAAO,uDAAuD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAEO,yDAAW,GAAnB,UACE,MAAsB,EACtB,OAAuB;QAEvB,OAAO,yDAAyD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAIH,0CAAC;AAAD,CAAC,AAzDD,CAAyD,QAAQ,GAyDhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReplicateSecretToRegionsCommand.js","sourceRoot":"","sources":["../../../commands/ReplicateSecretToRegionsCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EACL,qDAAqD,EACrD,mDAAmD,GACpD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;GAiBG;AACH;IAAqD,mDAIpD;IACC,oCAAoC;IACpC,kCAAk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-1 +0,0 @@
1
- {"version":3,"file":"RestoreSecretCommand.js","sourceRoot":"","sources":["../../../commands/RestoreSecretCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EACL,0CAA0C,EAC1C,wCAAwC,GACzC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH;IAA0C,wCAIzC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,8BAAqB,KAAgC;QAArD;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAA2B;;QAGnD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,gDAAiB,GAAjB,UACE,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,IAAM,WAAW,GAAG,sBAAsB,CAAC;QAC3C,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,oBAAoB,CAAC,kBAAkB;YAChE,wBAAwB,EAAE,qBAAqB,CAAC,kBAAkB;SACnE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,wCAAS,GAAjB,UAAkB,KAAgC,EAAE,OAAuB;QACzE,OAAO,wCAAwC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAEO,0CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,0CAA0C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAIH,2BAAC;AAAD,CAAC,AAtDD,CAA0C,QAAQ,GAsDjD"}
@@ -1,126 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { RotateSecretRequest, RotateSecretResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1RotateSecretCommand, serializeAws_json1_1RotateSecretCommand, } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Configures and starts the asynchronous process of rotating this secret. If you include the
8
- * configuration parameters, the operation sets those values for the secret and then immediately
9
- * starts a rotation. If you do not include the configuration parameters, the operation starts a
10
- * rotation with the values already stored in the secret. After the rotation completes, the
11
- * protected service and its clients all use the new version of the secret. </p>
12
- * <p>This required configuration information includes the ARN of an Amazon Web Services Lambda function and
13
- * optionally, the time between scheduled rotations. The Lambda rotation function creates a new
14
- * version of the secret and creates or updates the credentials on the protected service to
15
- * match. After testing the new credentials, the function marks the new secret with the staging
16
- * label <code>AWSCURRENT</code> so that your clients all immediately begin to use the new version. For more
17
- * information about rotating secrets and how to configure a Lambda function to rotate the
18
- * secrets for your protected service, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets.html">Rotating Secrets in Amazon Web Services Secrets Manager</a> in the
19
- * <i>Amazon Web Services Secrets Manager User Guide</i>.</p>
20
- * <p>Secrets Manager schedules the next rotation when the previous
21
- * one completes. Secrets Manager schedules the date by adding the rotation interval (number of days) to the
22
- * actual date of the last rotation. The service chooses the hour within that 24-hour date window
23
- * randomly. The minute is also chosen somewhat randomly, but weighted towards the top of the hour
24
- * and influenced by a variety of factors that help distribute load.</p>
25
- * <p>The
26
- * rotation function must end with the versions of the secret in one of two states:</p>
27
- * <ul>
28
- * <li>
29
- * <p>The <code>AWSPENDING</code> and <code>AWSCURRENT</code> staging labels are attached to the same version of
30
- * the secret, or</p>
31
- * </li>
32
- * <li>
33
- * <p>The <code>AWSPENDING</code> staging label is not attached to any version of the secret.</p>
34
- * </li>
35
- * </ul>
36
- * <p>If the <code>AWSPENDING</code> staging label is present but not attached to the same version as
37
- * <code>AWSCURRENT</code> then any later invocation of <code>RotateSecret</code> assumes that a previous
38
- * rotation request is still in progress and returns an error.</p>
39
- * <p>
40
- * <b>Minimum permissions</b>
41
- * </p>
42
- * <p>To run this command, you must have the following permissions:</p>
43
- * <ul>
44
- * <li>
45
- * <p>secretsmanager:RotateSecret</p>
46
- * </li>
47
- * <li>
48
- * <p>lambda:InvokeFunction (on the function specified in the secret's metadata)</p>
49
- * </li>
50
- * </ul>
51
- * <p>
52
- * <b>Related operations</b>
53
- * </p>
54
- * <ul>
55
- * <li>
56
- * <p>To list the secrets in your account, use <a>ListSecrets</a>.</p>
57
- * </li>
58
- * <li>
59
- * <p>To get the details for a version of a secret, use <a>DescribeSecret</a>.</p>
60
- * </li>
61
- * <li>
62
- * <p>To create a new version of a secret, use <a>CreateSecret</a>.</p>
63
- * </li>
64
- * <li>
65
- * <p>To attach staging labels to or remove staging labels from a version of a secret, use
66
- * <a>UpdateSecretVersionStage</a>.</p>
67
- * </li>
68
- * </ul>
69
- * @example
70
- * Use a bare-bones client and the command you need to make an API call.
71
- * ```javascript
72
- * import { SecretsManagerClient, RotateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
73
- * // const { SecretsManagerClient, RotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
74
- * const client = new SecretsManagerClient(config);
75
- * const command = new RotateSecretCommand(input);
76
- * const response = await client.send(command);
77
- * ```
78
- *
79
- * @see {@link RotateSecretCommandInput} for command's `input` shape.
80
- * @see {@link RotateSecretCommandOutput} for command's `response` shape.
81
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
82
- *
83
- */
84
- var RotateSecretCommand = /** @class */ (function (_super) {
85
- __extends(RotateSecretCommand, _super);
86
- // Start section: command_properties
87
- // End section: command_properties
88
- function RotateSecretCommand(input) {
89
- var _this =
90
- // Start section: command_constructor
91
- _super.call(this) || this;
92
- _this.input = input;
93
- return _this;
94
- // End section: command_constructor
95
- }
96
- /**
97
- * @internal
98
- */
99
- RotateSecretCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
100
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
101
- var stack = clientStack.concat(this.middlewareStack);
102
- var logger = configuration.logger;
103
- var clientName = "SecretsManagerClient";
104
- var commandName = "RotateSecretCommand";
105
- var handlerExecutionContext = {
106
- logger: logger,
107
- clientName: clientName,
108
- commandName: commandName,
109
- inputFilterSensitiveLog: RotateSecretRequest.filterSensitiveLog,
110
- outputFilterSensitiveLog: RotateSecretResponse.filterSensitiveLog,
111
- };
112
- var requestHandler = configuration.requestHandler;
113
- return stack.resolve(function (request) {
114
- return requestHandler.handle(request.request, options || {});
115
- }, handlerExecutionContext);
116
- };
117
- RotateSecretCommand.prototype.serialize = function (input, context) {
118
- return serializeAws_json1_1RotateSecretCommand(input, context);
119
- };
120
- RotateSecretCommand.prototype.deserialize = function (output, context) {
121
- return deserializeAws_json1_1RotateSecretCommand(output, context);
122
- };
123
- return RotateSecretCommand;
124
- }($Command));
125
- export { RotateSecretCommand };
126
- //# sourceMappingURL=RotateSecretCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RotateSecretCommand.js","sourceRoot":"","sources":["../../../commands/RotateSecretC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AAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,uCAAS,GAAjB,UAAkB,KAA+B,EAAE,OAAuB;QACxE,OAAO,uCAAuC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAEO,yCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,yCAAyC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAIH,0BAAC;AAAD,CAAC,AAtDD,CAAyC,QAAQ,GAsDhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StopReplicationToReplicaCommand.js","sourceRoot":"","sources":["../../../commands/StopReplicationToReplicaCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,gCAAgC,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EACL,qDAAqD,EACrD,mDAAmD,GACpD,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAc7D;;;;;;;;;;;;;;;;GAgBG;AACH;IAAqD,mDAIpD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,yCAAqB,KAA2C;QAAhE;QACE,qCAAqC;QACrC,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAsC;;QAG9D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,2DAAiB,GAAjB,UACE,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,IAAM,WAAW,GAAG,iCAAiC,CAAC;QACtD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,+BAA+B,CAAC,kBAAkB;YAC3E,wBAAwB,EAAE,gCAAgC,CAAC,kBAAkB;SAC9E,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,mDAAS,GAAjB,UAAkB,KAA2C,EAAE,OAAuB;QACpF,OAAO,mDAAmD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEO,qDAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,qDAAqD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAIH,sCAAC;AAAD,CAAC,AAtDD,CAAqD,QAAQ,GAsD5D"}
@@ -1,120 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { TagResourceRequest } from "../models/models_0";
3
- import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Attaches one or more tags, each consisting of a key name and a value, to the specified
8
- * secret. Tags are part of the secret's overall metadata, and are not associated with any
9
- * specific version of the secret. This operation only appends tags to the existing list of tags.
10
- * To remove tags, you must use <a>UntagResource</a>.</p>
11
- * <p>The following basic restrictions apply to tags:</p>
12
- * <ul>
13
- * <li>
14
- * <p>Maximum number of tags per secret—50</p>
15
- * </li>
16
- * <li>
17
- * <p>Maximum key length—127 Unicode characters in UTF-8</p>
18
- * </li>
19
- * <li>
20
- * <p>Maximum value length—255 Unicode characters in UTF-8</p>
21
- * </li>
22
- * <li>
23
- * <p>Tag keys and values are case sensitive.</p>
24
- * </li>
25
- * <li>
26
- * <p>Do not use the <code>aws:</code> prefix in your tag names or values because Amazon Web Services reserves it
27
- * for Amazon Web Services use. You can't edit or delete tag names or values with this
28
- * prefix. Tags with this prefix do not count against your tags per secret limit.</p>
29
- * </li>
30
- * <li>
31
- * <p>If you use your tagging schema across multiple services and resources,
32
- * remember other services might have restrictions on allowed characters. Generally
33
- * allowed characters: letters, spaces, and numbers representable in UTF-8, plus the
34
- * following special characters: + - = . _ : / @.</p>
35
- * </li>
36
- * </ul>
37
- * <important>
38
- * <p>If you use tags as part of your security strategy, then adding or removing a tag can
39
- * change permissions. If successfully completing this operation would result in you losing
40
- * your permissions for this secret, then the operation is blocked and returns an Access Denied
41
- * error.</p>
42
- * </important>
43
- * <p>
44
- * <b>Minimum permissions</b>
45
- * </p>
46
- * <p>To run this command, you must have the following permissions:</p>
47
- * <ul>
48
- * <li>
49
- * <p>secretsmanager:TagResource</p>
50
- * </li>
51
- * </ul>
52
- * <p>
53
- * <b>Related operations</b>
54
- * </p>
55
- * <ul>
56
- * <li>
57
- * <p>To remove one or more tags from the collection attached to a secret, use <a>UntagResource</a>.</p>
58
- * </li>
59
- * <li>
60
- * <p>To view the list of tags attached to a secret, use <a>DescribeSecret</a>.</p>
61
- * </li>
62
- * </ul>
63
- * @example
64
- * Use a bare-bones client and the command you need to make an API call.
65
- * ```javascript
66
- * import { SecretsManagerClient, TagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
67
- * // const { SecretsManagerClient, TagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
68
- * const client = new SecretsManagerClient(config);
69
- * const command = new TagResourceCommand(input);
70
- * const response = await client.send(command);
71
- * ```
72
- *
73
- * @see {@link TagResourceCommandInput} for command's `input` shape.
74
- * @see {@link TagResourceCommandOutput} for command's `response` shape.
75
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
76
- *
77
- */
78
- var TagResourceCommand = /** @class */ (function (_super) {
79
- __extends(TagResourceCommand, _super);
80
- // Start section: command_properties
81
- // End section: command_properties
82
- function TagResourceCommand(input) {
83
- var _this =
84
- // Start section: command_constructor
85
- _super.call(this) || this;
86
- _this.input = input;
87
- return _this;
88
- // End section: command_constructor
89
- }
90
- /**
91
- * @internal
92
- */
93
- TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
94
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
95
- var stack = clientStack.concat(this.middlewareStack);
96
- var logger = configuration.logger;
97
- var clientName = "SecretsManagerClient";
98
- var commandName = "TagResourceCommand";
99
- var handlerExecutionContext = {
100
- logger: logger,
101
- clientName: clientName,
102
- commandName: commandName,
103
- inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
104
- outputFilterSensitiveLog: function (output) { return output; },
105
- };
106
- var requestHandler = configuration.requestHandler;
107
- return stack.resolve(function (request) {
108
- return requestHandler.handle(request.request, options || {});
109
- }, handlerExecutionContext);
110
- };
111
- TagResourceCommand.prototype.serialize = function (input, context) {
112
- return serializeAws_json1_1TagResourceCommand(input, context);
113
- };
114
- TagResourceCommand.prototype.deserialize = function (output, context) {
115
- return deserializeAws_json1_1TagResourceCommand(output, context);
116
- };
117
- return TagResourceCommand;
118
- }($Command));
119
- export { TagResourceCommand };
120
- //# sourceMappingURL=TagResourceCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TagResourceCommand.js","sourceRoot":"","sources":["../../../commands/TagResourceCommand.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EACL,w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AAuB,CACxB,CAAC;IACJ,CAAC;IAEO,sCAAS,GAAjB,UAAkB,KAA8B,EAAE,OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
@@ -1,93 +0,0 @@
1
- import { __extends } from "tslib";
2
- import { UntagResourceRequest } from "../models/models_0";
3
- import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
4
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
- import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Removes one or more tags from the specified secret.</p>
8
- * <p>This operation is idempotent. If a requested tag is not attached to the secret, no error
9
- * is returned and the secret metadata is unchanged.</p>
10
- * <important>
11
- * <p>If you use tags as part of your security strategy, then removing a tag can change
12
- * permissions. If successfully completing this operation would result in you losing your
13
- * permissions for this secret, then the operation is blocked and returns an Access Denied
14
- * error.</p>
15
- * </important>
16
- * <p>
17
- * <b>Minimum permissions</b>
18
- * </p>
19
- * <p>To run this command, you must have the following permissions:</p>
20
- * <ul>
21
- * <li>
22
- * <p>secretsmanager:UntagResource</p>
23
- * </li>
24
- * </ul>
25
- * <p>
26
- * <b>Related operations</b>
27
- * </p>
28
- * <ul>
29
- * <li>
30
- * <p>To add one or more tags to the collection attached to a secret, use <a>TagResource</a>.</p>
31
- * </li>
32
- * <li>
33
- * <p>To view the list of tags attached to a secret, use <a>DescribeSecret</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, UntagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
40
- * // const { SecretsManagerClient, UntagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
41
- * const client = new SecretsManagerClient(config);
42
- * const command = new UntagResourceCommand(input);
43
- * const response = await client.send(command);
44
- * ```
45
- *
46
- * @see {@link UntagResourceCommandInput} for command's `input` shape.
47
- * @see {@link UntagResourceCommandOutput} for command's `response` shape.
48
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
49
- *
50
- */
51
- var UntagResourceCommand = /** @class */ (function (_super) {
52
- __extends(UntagResourceCommand, _super);
53
- // Start section: command_properties
54
- // End section: command_properties
55
- function UntagResourceCommand(input) {
56
- var _this =
57
- // Start section: command_constructor
58
- _super.call(this) || this;
59
- _this.input = input;
60
- return _this;
61
- // End section: command_constructor
62
- }
63
- /**
64
- * @internal
65
- */
66
- UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
67
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
68
- var stack = clientStack.concat(this.middlewareStack);
69
- var logger = configuration.logger;
70
- var clientName = "SecretsManagerClient";
71
- var commandName = "UntagResourceCommand";
72
- var handlerExecutionContext = {
73
- logger: logger,
74
- clientName: clientName,
75
- commandName: commandName,
76
- inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
77
- outputFilterSensitiveLog: function (output) { return output; },
78
- };
79
- var requestHandler = configuration.requestHandler;
80
- return stack.resolve(function (request) {
81
- return requestHandler.handle(request.request, options || {});
82
- }, handlerExecutionContext);
83
- };
84
- UntagResourceCommand.prototype.serialize = function (input, context) {
85
- return serializeAws_json1_1UntagResourceCommand(input, context);
86
- };
87
- UntagResourceCommand.prototype.deserialize = function (output, context) {
88
- return deserializeAws_json1_1UntagResourceCommand(output, context);
89
- };
90
- return UntagResourceCommand;
91
- }($Command));
92
- export { UntagResourceCommand };
93
- //# sourceMappingURL=UntagResourceCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UntagResourceCommand.js","sourceRoot":"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