@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,384 +0,0 @@
1
- import { CancelRotateSecretCommandInput, CancelRotateSecretCommandOutput } from "./commands/CancelRotateSecretCommand";
2
- import { CreateSecretCommandInput, CreateSecretCommandOutput } from "./commands/CreateSecretCommand";
3
- import {
4
- DeleteResourcePolicyCommandInput,
5
- DeleteResourcePolicyCommandOutput,
6
- } from "./commands/DeleteResourcePolicyCommand";
7
- import { DeleteSecretCommandInput, DeleteSecretCommandOutput } from "./commands/DeleteSecretCommand";
8
- import { DescribeSecretCommandInput, DescribeSecretCommandOutput } from "./commands/DescribeSecretCommand";
9
- import { GetRandomPasswordCommandInput, GetRandomPasswordCommandOutput } from "./commands/GetRandomPasswordCommand";
10
- import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
11
- import { GetSecretValueCommandInput, GetSecretValueCommandOutput } from "./commands/GetSecretValueCommand";
12
- import {
13
- ListSecretVersionIdsCommandInput,
14
- ListSecretVersionIdsCommandOutput,
15
- } from "./commands/ListSecretVersionIdsCommand";
16
- import { ListSecretsCommandInput, ListSecretsCommandOutput } from "./commands/ListSecretsCommand";
17
- import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
18
- import { PutSecretValueCommandInput, PutSecretValueCommandOutput } from "./commands/PutSecretValueCommand";
19
- import {
20
- RemoveRegionsFromReplicationCommandInput,
21
- RemoveRegionsFromReplicationCommandOutput,
22
- } from "./commands/RemoveRegionsFromReplicationCommand";
23
- import {
24
- ReplicateSecretToRegionsCommandInput,
25
- ReplicateSecretToRegionsCommandOutput,
26
- } from "./commands/ReplicateSecretToRegionsCommand";
27
- import { RestoreSecretCommandInput, RestoreSecretCommandOutput } from "./commands/RestoreSecretCommand";
28
- import { RotateSecretCommandInput, RotateSecretCommandOutput } from "./commands/RotateSecretCommand";
29
- import {
30
- StopReplicationToReplicaCommandInput,
31
- StopReplicationToReplicaCommandOutput,
32
- } from "./commands/StopReplicationToReplicaCommand";
33
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
- import { UpdateSecretCommandInput, UpdateSecretCommandOutput } from "./commands/UpdateSecretCommand";
36
- import {
37
- UpdateSecretVersionStageCommandInput,
38
- UpdateSecretVersionStageCommandOutput,
39
- } from "./commands/UpdateSecretVersionStageCommand";
40
- import {
41
- ValidateResourcePolicyCommandInput,
42
- ValidateResourcePolicyCommandOutput,
43
- } from "./commands/ValidateResourcePolicyCommand";
44
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
45
- import {
46
- EndpointsInputConfig,
47
- EndpointsResolvedConfig,
48
- RegionInputConfig,
49
- RegionResolvedConfig,
50
- resolveEndpointsConfig,
51
- resolveRegionConfig,
52
- } from "@aws-sdk/config-resolver";
53
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
54
- import {
55
- HostHeaderInputConfig,
56
- HostHeaderResolvedConfig,
57
- getHostHeaderPlugin,
58
- resolveHostHeaderConfig,
59
- } from "@aws-sdk/middleware-host-header";
60
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
61
- import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
62
- import {
63
- AwsAuthInputConfig,
64
- AwsAuthResolvedConfig,
65
- getAwsAuthPlugin,
66
- resolveAwsAuthConfig,
67
- } from "@aws-sdk/middleware-signing";
68
- import {
69
- UserAgentInputConfig,
70
- UserAgentResolvedConfig,
71
- getUserAgentPlugin,
72
- resolveUserAgentConfig,
73
- } from "@aws-sdk/middleware-user-agent";
74
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
75
- import {
76
- Client as __Client,
77
- SmithyConfiguration as __SmithyConfiguration,
78
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
79
- } from "@aws-sdk/smithy-client";
80
- import {
81
- Provider,
82
- RegionInfoProvider,
83
- Credentials as __Credentials,
84
- Decoder as __Decoder,
85
- Encoder as __Encoder,
86
- Hash as __Hash,
87
- HashConstructor as __HashConstructor,
88
- HttpHandlerOptions as __HttpHandlerOptions,
89
- Logger as __Logger,
90
- Provider as __Provider,
91
- StreamCollector as __StreamCollector,
92
- UrlParser as __UrlParser,
93
- UserAgent as __UserAgent,
94
- } from "@aws-sdk/types";
95
-
96
- export type ServiceInputTypes =
97
- | CancelRotateSecretCommandInput
98
- | CreateSecretCommandInput
99
- | DeleteResourcePolicyCommandInput
100
- | DeleteSecretCommandInput
101
- | DescribeSecretCommandInput
102
- | GetRandomPasswordCommandInput
103
- | GetResourcePolicyCommandInput
104
- | GetSecretValueCommandInput
105
- | ListSecretVersionIdsCommandInput
106
- | ListSecretsCommandInput
107
- | PutResourcePolicyCommandInput
108
- | PutSecretValueCommandInput
109
- | RemoveRegionsFromReplicationCommandInput
110
- | ReplicateSecretToRegionsCommandInput
111
- | RestoreSecretCommandInput
112
- | RotateSecretCommandInput
113
- | StopReplicationToReplicaCommandInput
114
- | TagResourceCommandInput
115
- | UntagResourceCommandInput
116
- | UpdateSecretCommandInput
117
- | UpdateSecretVersionStageCommandInput
118
- | ValidateResourcePolicyCommandInput;
119
-
120
- export type ServiceOutputTypes =
121
- | CancelRotateSecretCommandOutput
122
- | CreateSecretCommandOutput
123
- | DeleteResourcePolicyCommandOutput
124
- | DeleteSecretCommandOutput
125
- | DescribeSecretCommandOutput
126
- | GetRandomPasswordCommandOutput
127
- | GetResourcePolicyCommandOutput
128
- | GetSecretValueCommandOutput
129
- | ListSecretVersionIdsCommandOutput
130
- | ListSecretsCommandOutput
131
- | PutResourcePolicyCommandOutput
132
- | PutSecretValueCommandOutput
133
- | RemoveRegionsFromReplicationCommandOutput
134
- | ReplicateSecretToRegionsCommandOutput
135
- | RestoreSecretCommandOutput
136
- | RotateSecretCommandOutput
137
- | StopReplicationToReplicaCommandOutput
138
- | TagResourceCommandOutput
139
- | UntagResourceCommandOutput
140
- | UpdateSecretCommandOutput
141
- | UpdateSecretVersionStageCommandOutput
142
- | ValidateResourcePolicyCommandOutput;
143
-
144
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
145
- /**
146
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
147
- */
148
- requestHandler?: __HttpHandler;
149
-
150
- /**
151
- * A constructor for a class implementing the {@link __Hash} interface
152
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
153
- * @internal
154
- */
155
- sha256?: __HashConstructor;
156
-
157
- /**
158
- * The function that will be used to convert strings into HTTP endpoints.
159
- * @internal
160
- */
161
- urlParser?: __UrlParser;
162
-
163
- /**
164
- * A function that can calculate the length of a request body.
165
- * @internal
166
- */
167
- bodyLengthChecker?: (body: any) => number | undefined;
168
-
169
- /**
170
- * A function that converts a stream into an array of bytes.
171
- * @internal
172
- */
173
- streamCollector?: __StreamCollector;
174
-
175
- /**
176
- * The function that will be used to convert a base64-encoded string to a byte array.
177
- * @internal
178
- */
179
- base64Decoder?: __Decoder;
180
-
181
- /**
182
- * The function that will be used to convert binary data to a base64-encoded string.
183
- * @internal
184
- */
185
- base64Encoder?: __Encoder;
186
-
187
- /**
188
- * The function that will be used to convert a UTF8-encoded string to a byte array.
189
- * @internal
190
- */
191
- utf8Decoder?: __Decoder;
192
-
193
- /**
194
- * The function that will be used to convert binary data to a UTF-8 encoded string.
195
- * @internal
196
- */
197
- utf8Encoder?: __Encoder;
198
-
199
- /**
200
- * The runtime environment.
201
- * @internal
202
- */
203
- runtime?: string;
204
-
205
- /**
206
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
207
- * trait of an operation.
208
- */
209
- disableHostPrefix?: boolean;
210
-
211
- /**
212
- * Value for how many times a request will be made at most in case of retry.
213
- */
214
- maxAttempts?: number | __Provider<number>;
215
-
216
- /**
217
- * Specifies which retry algorithm to use.
218
- */
219
- retryMode?: string | __Provider<string>;
220
-
221
- /**
222
- * Optional logger for logging debug/info/warn/error.
223
- */
224
- logger?: __Logger;
225
-
226
- /**
227
- * Unique service identifier.
228
- * @internal
229
- */
230
- serviceId?: string;
231
-
232
- /**
233
- * The AWS region to which this client will send requests
234
- */
235
- region?: string | __Provider<string>;
236
-
237
- /**
238
- * Default credentials provider; Not available in browser runtime.
239
- * @internal
240
- */
241
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
242
-
243
- /**
244
- * Fetch related hostname, signing name or signing region with given region.
245
- * @internal
246
- */
247
- regionInfoProvider?: RegionInfoProvider;
248
-
249
- /**
250
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
251
- * @internal
252
- */
253
- defaultUserAgentProvider?: Provider<__UserAgent>;
254
- }
255
-
256
- type SecretsManagerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
257
- ClientDefaults &
258
- RegionInputConfig &
259
- EndpointsInputConfig &
260
- RetryInputConfig &
261
- HostHeaderInputConfig &
262
- AwsAuthInputConfig &
263
- UserAgentInputConfig;
264
- /**
265
- * The configuration interface of SecretsManagerClient class constructor that set the region, credentials and other options.
266
- */
267
- export interface SecretsManagerClientConfig extends SecretsManagerClientConfigType {}
268
-
269
- type SecretsManagerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
270
- Required<ClientDefaults> &
271
- RegionResolvedConfig &
272
- EndpointsResolvedConfig &
273
- RetryResolvedConfig &
274
- HostHeaderResolvedConfig &
275
- AwsAuthResolvedConfig &
276
- UserAgentResolvedConfig;
277
- /**
278
- * The resolved configuration interface of SecretsManagerClient class. This is resolved and normalized from the {@link SecretsManagerClientConfig | constructor configuration interface}.
279
- */
280
- export interface SecretsManagerClientResolvedConfig extends SecretsManagerClientResolvedConfigType {}
281
-
282
- /**
283
- * <fullname>Amazon Web Services Secrets Manager</fullname>
284
- * <p>Amazon Web Services Secrets Manager provides a service to enable you to store, manage, and retrieve, secrets.</p>
285
- *
286
- * <p>This guide provides descriptions of the Secrets Manager API. For more information about using this
287
- * service, see the <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/introduction.html">Amazon Web Services Secrets Manager User Guide</a>.</p>
288
- *
289
- * <p>
290
- * <b>API Version</b>
291
- * </p>
292
- *
293
- * <p>This version of the Secrets Manager API Reference documents the Secrets Manager API version 2017-10-17.</p>
294
- * <note>
295
- * <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
296
- * libraries and sample code for various programming languages and platforms such as Java,
297
- * Ruby, .NET, iOS, and Android. The SDKs provide a convenient way to create programmatic
298
- * access to Amazon Web Services Secrets Manager. For example, the SDKs provide cryptographically signing requests,
299
- * managing errors, and retrying requests automatically. For more information about the Amazon Web Services
300
- * SDKs, including downloading and installing them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web Services</a>.</p>
301
- * </note>
302
- * <p>We recommend you use the Amazon Web Services SDKs to make programmatic API calls to Secrets Manager. However, you
303
- * also can use the Secrets Manager HTTP Query API to make direct calls to the Secrets Manager web service. To learn
304
- * more about the Secrets Manager HTTP Query API, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/query-requests.html">Making Query Requests</a> in the
305
- * <i>Amazon Web Services Secrets Manager User Guide</i>. </p>
306
- * <p>Secrets Manager API supports GET and POST requests for all actions, and doesn't require you to use
307
- * GET for some actions and POST for others. However, GET requests are subject to the limitation
308
- * size of a URL. Therefore, for operations that require larger sizes, use a POST request.</p>
309
- *
310
- *
311
- *
312
- *
313
- *
314
- *
315
- *
316
- * <p>
317
- * <b>Support and Feedback for Amazon Web Services Secrets Manager</b>
318
- * </p>
319
- *
320
- * <p>We welcome your feedback. Send your comments to <a href="mailto:awssecretsmanager-feedback@amazon.com">awssecretsmanager-feedback@amazon.com</a>, or post your feedback and questions in the <a href="http://forums.aws.amazon.com/forum.jspa?forumID=296">Amazon Web Services Secrets Manager Discussion Forum</a>. For more
321
- * information about the Amazon Web Services Discussion Forums, see <a href="http://forums.aws.amazon.com/help.jspa">Forums
322
- * Help</a>.</p>
323
- *
324
- * <p>
325
- * <b>How examples are presented</b>
326
- * </p>
327
- *
328
- * <p>The JSON that Amazon Web Services Secrets Manager expects as your request parameters and the service returns as a
329
- * response to HTTP query requests contain single, long strings without line breaks or white
330
- * space formatting. The JSON shown in the examples displays the code formatted with both line
331
- * breaks and white space to improve readability. When example input parameters can also cause
332
- * long strings extending beyond the screen, you can insert line breaks to enhance readability.
333
- * You should always submit the input as a single JSON text string.</p>
334
- *
335
- *
336
- * <p>
337
- * <b>Logging API Requests</b>
338
- * </p>
339
- * <p>Amazon Web Services Secrets Manager supports Amazon Web Services CloudTrail, a service that records Amazon Web Services API calls for your Amazon Web Services
340
- * account and delivers log files to an Amazon S3 bucket. By using information that's collected
341
- * by Amazon Web Services CloudTrail, you can determine the requests successfully made to Secrets Manager, who made the
342
- * request, when it was made, and so on. For more about Amazon Web Services Secrets Manager and support for Amazon Web Services
343
- * CloudTrail, see <a href="http://docs.aws.amazon.com/secretsmanager/latest/userguide/monitoring.html#monitoring_cloudtrail">Logging
344
- * Amazon Web Services Secrets Manager Events with Amazon Web Services CloudTrail</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>.
345
- * To learn more about CloudTrail, including enabling it and find your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/what_is_cloud_trail_top_level.html">Amazon Web Services CloudTrail User Guide</a>.</p>
346
- */
347
- export class SecretsManagerClient extends __Client<
348
- __HttpHandlerOptions,
349
- ServiceInputTypes,
350
- ServiceOutputTypes,
351
- SecretsManagerClientResolvedConfig
352
- > {
353
- /**
354
- * The resolved configuration of SecretsManagerClient class. This is resolved and normalized from the {@link SecretsManagerClientConfig | constructor configuration interface}.
355
- */
356
- readonly config: SecretsManagerClientResolvedConfig;
357
-
358
- constructor(configuration: SecretsManagerClientConfig) {
359
- let _config_0 = __getRuntimeConfig(configuration);
360
- let _config_1 = resolveRegionConfig(_config_0);
361
- let _config_2 = resolveEndpointsConfig(_config_1);
362
- let _config_3 = resolveRetryConfig(_config_2);
363
- let _config_4 = resolveHostHeaderConfig(_config_3);
364
- let _config_5 = resolveAwsAuthConfig(_config_4);
365
- let _config_6 = resolveUserAgentConfig(_config_5);
366
- super(_config_6);
367
- this.config = _config_6;
368
- this.middlewareStack.use(getRetryPlugin(this.config));
369
- this.middlewareStack.use(getContentLengthPlugin(this.config));
370
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
371
- this.middlewareStack.use(getLoggerPlugin(this.config));
372
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
373
- this.middlewareStack.use(getUserAgentPlugin(this.config));
374
- }
375
-
376
- /**
377
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
378
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
379
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
380
- */
381
- destroy(): void {
382
- super.destroy();
383
- }
384
- }
@@ -1,146 +0,0 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { CancelRotateSecretRequest, CancelRotateSecretResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1CancelRotateSecretCommand,
5
- serializeAws_json1_1CancelRotateSecretCommand,
6
- } from "../protocols/Aws_json1_1";
7
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
- import { Command as $Command } from "@aws-sdk/smithy-client";
10
- import {
11
- FinalizeHandlerArguments,
12
- Handler,
13
- HandlerExecutionContext,
14
- MiddlewareStack,
15
- HttpHandlerOptions as __HttpHandlerOptions,
16
- MetadataBearer as __MetadataBearer,
17
- SerdeContext as __SerdeContext,
18
- } from "@aws-sdk/types";
19
-
20
- export interface CancelRotateSecretCommandInput extends CancelRotateSecretRequest {}
21
- export interface CancelRotateSecretCommandOutput extends CancelRotateSecretResponse, __MetadataBearer {}
22
-
23
- /**
24
- * <p>Disables automatic scheduled rotation and cancels the rotation of a secret if currently in
25
- * progress.</p>
26
- * <p>To re-enable scheduled rotation, call <a>RotateSecret</a> with
27
- * <code>AutomaticallyRotateAfterDays</code> set to a value greater than 0. This immediately
28
- * rotates your secret and then enables the automatic schedule.</p>
29
- * <note>
30
- * <p>If you cancel a rotation while in progress, it can leave the <code>VersionStage</code>
31
- * labels in an unexpected state. Depending on the step of the rotation in progress, you might
32
- * need to remove the staging label <code>AWSPENDING</code> from the partially created version, specified
33
- * by the <code>VersionId</code> response value. You should also evaluate the partially rotated
34
- * new version to see if it should be deleted, which you can do by removing all staging labels
35
- * from the new version <code>VersionStage</code> field.</p>
36
- * </note>
37
- * <p>To successfully start a rotation, the staging label <code>AWSPENDING</code> must be in one of the
38
- * following states:</p>
39
- * <ul>
40
- * <li>
41
- * <p>Not attached to any version at all</p>
42
- * </li>
43
- * <li>
44
- * <p>Attached to the same version as the staging label <code>AWSCURRENT</code>
45
- * </p>
46
- * </li>
47
- * </ul>
48
- * <p>If the staging label <code>AWSPENDING</code> attached to a different version than the version with
49
- * <code>AWSCURRENT</code> then the attempt to rotate fails.</p>
50
- *
51
- * <p>
52
- * <b>Minimum permissions</b>
53
- * </p>
54
- * <p>To run this command, you must have the following permissions:</p>
55
- * <ul>
56
- * <li>
57
- * <p>secretsmanager:CancelRotateSecret</p>
58
- * </li>
59
- * </ul>
60
- * <p>
61
- * <b>Related operations</b>
62
- * </p>
63
- * <ul>
64
- * <li>
65
- * <p>To configure rotation for a secret or to manually trigger a rotation, use <a>RotateSecret</a>.</p>
66
- * </li>
67
- * <li>
68
- * <p>To get the rotation configuration details for a secret, use <a>DescribeSecret</a>.</p>
69
- * </li>
70
- * <li>
71
- * <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
72
- * </li>
73
- * <li>
74
- * <p>To list all of the versions currently associated with a secret, use <a>ListSecretVersionIds</a>.</p>
75
- * </li>
76
- * </ul>
77
- * @example
78
- * Use a bare-bones client and the command you need to make an API call.
79
- * ```javascript
80
- * import { SecretsManagerClient, CancelRotateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
81
- * // const { SecretsManagerClient, CancelRotateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
82
- * const client = new SecretsManagerClient(config);
83
- * const command = new CancelRotateSecretCommand(input);
84
- * const response = await client.send(command);
85
- * ```
86
- *
87
- * @see {@link CancelRotateSecretCommandInput} for command's `input` shape.
88
- * @see {@link CancelRotateSecretCommandOutput} for command's `response` shape.
89
- * @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
90
- *
91
- */
92
- export class CancelRotateSecretCommand extends $Command<
93
- CancelRotateSecretCommandInput,
94
- CancelRotateSecretCommandOutput,
95
- SecretsManagerClientResolvedConfig
96
- > {
97
- // Start section: command_properties
98
- // End section: command_properties
99
-
100
- constructor(readonly input: CancelRotateSecretCommandInput) {
101
- // Start section: command_constructor
102
- super();
103
- // End section: command_constructor
104
- }
105
-
106
- /**
107
- * @internal
108
- */
109
- resolveMiddleware(
110
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
111
- configuration: SecretsManagerClientResolvedConfig,
112
- options?: __HttpHandlerOptions
113
- ): Handler<CancelRotateSecretCommandInput, CancelRotateSecretCommandOutput> {
114
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
115
-
116
- const stack = clientStack.concat(this.middlewareStack);
117
-
118
- const { logger } = configuration;
119
- const clientName = "SecretsManagerClient";
120
- const commandName = "CancelRotateSecretCommand";
121
- const handlerExecutionContext: HandlerExecutionContext = {
122
- logger,
123
- clientName,
124
- commandName,
125
- inputFilterSensitiveLog: CancelRotateSecretRequest.filterSensitiveLog,
126
- outputFilterSensitiveLog: CancelRotateSecretResponse.filterSensitiveLog,
127
- };
128
- const { requestHandler } = configuration;
129
- return stack.resolve(
130
- (request: FinalizeHandlerArguments<any>) =>
131
- requestHandler.handle(request.request as __HttpRequest, options || {}),
132
- handlerExecutionContext
133
- );
134
- }
135
-
136
- private serialize(input: CancelRotateSecretCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
137
- return serializeAws_json1_1CancelRotateSecretCommand(input, context);
138
- }
139
-
140
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CancelRotateSecretCommandOutput> {
141
- return deserializeAws_json1_1CancelRotateSecretCommand(output, context);
142
- }
143
-
144
- // Start section: command_body_extra
145
- // End section: command_body_extra
146
- }