@aws-sdk/client-secrets-manager 3.34.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 (326) hide show
  1. package/CHANGELOG.md +12 -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 +8 -8
  5. package/dist-cjs/SecretsManagerClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/CancelRotateSecretCommand.js +2 -2
  7. package/dist-cjs/commands/CancelRotateSecretCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CreateSecretCommand.js +2 -2
  9. package/dist-cjs/commands/CreateSecretCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/DeleteResourcePolicyCommand.js +2 -2
  11. package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/DeleteSecretCommand.js +2 -2
  13. package/dist-cjs/commands/DeleteSecretCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/DescribeSecretCommand.js +2 -2
  15. package/dist-cjs/commands/DescribeSecretCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/GetRandomPasswordCommand.js +2 -2
  17. package/dist-cjs/commands/GetRandomPasswordCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/GetResourcePolicyCommand.js +2 -2
  19. package/dist-cjs/commands/GetResourcePolicyCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/GetSecretValueCommand.js +2 -2
  21. package/dist-cjs/commands/GetSecretValueCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/ListSecretVersionIdsCommand.js +2 -2
  23. package/dist-cjs/commands/ListSecretVersionIdsCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/ListSecretsCommand.js +2 -2
  25. package/dist-cjs/commands/ListSecretsCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/commands/PutResourcePolicyCommand.js +2 -2
  27. package/dist-cjs/commands/PutResourcePolicyCommand.js.map +1 -0
  28. package/{dist/cjs → dist-cjs}/commands/PutSecretValueCommand.js +2 -2
  29. package/dist-cjs/commands/PutSecretValueCommand.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/commands/RemoveRegionsFromReplicationCommand.js +2 -2
  31. package/{dist/cjs → dist-cjs}/commands/RemoveRegionsFromReplicationCommand.js.map +1 -1
  32. package/{dist/cjs → dist-cjs}/commands/ReplicateSecretToRegionsCommand.js +2 -2
  33. package/dist-cjs/commands/ReplicateSecretToRegionsCommand.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/commands/RestoreSecretCommand.js +2 -2
  35. package/dist-cjs/commands/RestoreSecretCommand.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/commands/RotateSecretCommand.js +2 -2
  37. package/dist-cjs/commands/RotateSecretCommand.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/commands/StopReplicationToReplicaCommand.js +2 -2
  39. package/{dist/cjs/commands/ReplicateSecretToRegionsCommand.js.map → dist-cjs/commands/StopReplicationToReplicaCommand.js.map} +1 -1
  40. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -2
  41. package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -2
  43. package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/commands/UpdateSecretCommand.js +2 -2
  45. package/dist-cjs/commands/UpdateSecretCommand.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/commands/UpdateSecretVersionStageCommand.js +2 -2
  47. package/dist-cjs/commands/UpdateSecretVersionStageCommand.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/commands/ValidateResourcePolicyCommand.js +2 -2
  49. package/dist-cjs/commands/ValidateResourcePolicyCommand.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/endpoints.js +0 -0
  51. package/dist-cjs/endpoints.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/index.js +0 -0
  53. package/dist-cjs/index.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/models/index.js +0 -0
  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 +0 -0
  65. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  66. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -1
  67. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  68. package/{dist/cjs → dist-cjs}/runtimeConfig.js +3 -2
  69. package/dist-cjs/runtimeConfig.js.map +1 -0
  70. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -0
  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 +2 -2
  75. package/dist-es/SecretsManager.js.map +1 -0
  76. package/{dist/es → dist-es}/SecretsManagerClient.js +1 -1
  77. package/dist-es/SecretsManagerClient.js.map +1 -0
  78. package/{dist/es → dist-es}/commands/CancelRotateSecretCommand.js +2 -2
  79. package/dist-es/commands/CancelRotateSecretCommand.js.map +1 -0
  80. package/{dist/es → dist-es}/commands/CreateSecretCommand.js +2 -2
  81. package/dist-es/commands/CreateSecretCommand.js.map +1 -0
  82. package/{dist/es → dist-es}/commands/DeleteResourcePolicyCommand.js +2 -2
  83. package/dist-es/commands/DeleteResourcePolicyCommand.js.map +1 -0
  84. package/{dist/es → dist-es}/commands/DeleteSecretCommand.js +2 -2
  85. package/dist-es/commands/DeleteSecretCommand.js.map +1 -0
  86. package/{dist/es → dist-es}/commands/DescribeSecretCommand.js +2 -2
  87. package/dist-es/commands/DescribeSecretCommand.js.map +1 -0
  88. package/{dist/es → dist-es}/commands/GetRandomPasswordCommand.js +2 -2
  89. package/dist-es/commands/GetRandomPasswordCommand.js.map +1 -0
  90. package/{dist/es → dist-es}/commands/GetResourcePolicyCommand.js +2 -2
  91. package/dist-es/commands/GetResourcePolicyCommand.js.map +1 -0
  92. package/{dist/es → dist-es}/commands/GetSecretValueCommand.js +2 -2
  93. package/dist-es/commands/GetSecretValueCommand.js.map +1 -0
  94. package/{dist/es → dist-es}/commands/ListSecretVersionIdsCommand.js +2 -2
  95. package/dist-es/commands/ListSecretVersionIdsCommand.js.map +1 -0
  96. package/{dist/es → dist-es}/commands/ListSecretsCommand.js +2 -2
  97. package/dist-es/commands/ListSecretsCommand.js.map +1 -0
  98. package/{dist/es → dist-es}/commands/PutResourcePolicyCommand.js +2 -2
  99. package/dist-es/commands/PutResourcePolicyCommand.js.map +1 -0
  100. package/{dist/es → dist-es}/commands/PutSecretValueCommand.js +2 -2
  101. package/dist-es/commands/PutSecretValueCommand.js.map +1 -0
  102. package/{dist/es → dist-es}/commands/RemoveRegionsFromReplicationCommand.js +2 -2
  103. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js.map +1 -0
  104. package/{dist/es → dist-es}/commands/ReplicateSecretToRegionsCommand.js +2 -2
  105. package/dist-es/commands/ReplicateSecretToRegionsCommand.js.map +1 -0
  106. package/{dist/es → dist-es}/commands/RestoreSecretCommand.js +2 -2
  107. package/dist-es/commands/RestoreSecretCommand.js.map +1 -0
  108. package/{dist/es → dist-es}/commands/RotateSecretCommand.js +2 -2
  109. package/dist-es/commands/RotateSecretCommand.js.map +1 -0
  110. package/{dist/es → dist-es}/commands/StopReplicationToReplicaCommand.js +2 -2
  111. package/dist-es/commands/StopReplicationToReplicaCommand.js.map +1 -0
  112. package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -2
  113. package/dist-es/commands/TagResourceCommand.js.map +1 -0
  114. package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -2
  115. package/dist-es/commands/UntagResourceCommand.js.map +1 -0
  116. package/{dist/es → dist-es}/commands/UpdateSecretCommand.js +2 -2
  117. package/dist-es/commands/UpdateSecretCommand.js.map +1 -0
  118. package/{dist/es → dist-es}/commands/UpdateSecretVersionStageCommand.js +2 -2
  119. package/dist-es/commands/UpdateSecretVersionStageCommand.js.map +1 -0
  120. package/{dist/es → dist-es}/commands/ValidateResourcePolicyCommand.js +2 -2
  121. package/dist-es/commands/ValidateResourcePolicyCommand.js.map +1 -0
  122. package/{dist/es → dist-es}/endpoints.js +0 -0
  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 -0
  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 +1 -1
  133. package/dist-es/pagination/ListSecretVersionIdsPaginator.js.map +1 -0
  134. package/{dist/es → dist-es}/pagination/ListSecretsPaginator.js +1 -1
  135. package/dist-es/pagination/ListSecretsPaginator.js.map +1 -0
  136. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -0
  137. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  138. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -1
  139. package/dist-es/runtimeConfig.browser.js.map +1 -0
  140. package/{dist/es → dist-es}/runtimeConfig.js +2 -2
  141. package/dist-es/runtimeConfig.js.map +1 -0
  142. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -0
  143. package/dist-es/runtimeConfig.native.js.map +1 -0
  144. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -1
  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 → dist-types}/runtimeConfig.browser.d.ts +0 -0
  179. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  180. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  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 +0 -0
  215. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -1
  216. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
  217. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  218. package/package.json +42 -42
  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 -1
  256. package/tsconfig.json +4 -2
  257. package/tsconfig.types.json +3 -2
  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/RestoreSecretCommand.js.map +0 -1
  273. package/dist/cjs/commands/RotateSecretCommand.js.map +0 -1
  274. package/dist/cjs/commands/StopReplicationToReplicaCommand.js.map +0 -1
  275. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  276. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  277. package/dist/cjs/commands/UpdateSecretCommand.js.map +0 -1
  278. package/dist/cjs/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  279. package/dist/cjs/commands/ValidateResourcePolicyCommand.js.map +0 -1
  280. package/dist/cjs/endpoints.js.map +0 -1
  281. package/dist/cjs/index.js.map +0 -1
  282. package/dist/cjs/models/models_0.js.map +0 -1
  283. package/dist/cjs/package.json +0 -93
  284. package/dist/cjs/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  285. package/dist/cjs/pagination/ListSecretsPaginator.js.map +0 -1
  286. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  287. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  288. package/dist/cjs/runtimeConfig.js.map +0 -1
  289. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  290. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  291. package/dist/es/SecretsManager.js.map +0 -1
  292. package/dist/es/SecretsManagerClient.js.map +0 -1
  293. package/dist/es/commands/CancelRotateSecretCommand.js.map +0 -1
  294. package/dist/es/commands/CreateSecretCommand.js.map +0 -1
  295. package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
  296. package/dist/es/commands/DeleteSecretCommand.js.map +0 -1
  297. package/dist/es/commands/DescribeSecretCommand.js.map +0 -1
  298. package/dist/es/commands/GetRandomPasswordCommand.js.map +0 -1
  299. package/dist/es/commands/GetResourcePolicyCommand.js.map +0 -1
  300. package/dist/es/commands/GetSecretValueCommand.js.map +0 -1
  301. package/dist/es/commands/ListSecretVersionIdsCommand.js.map +0 -1
  302. package/dist/es/commands/ListSecretsCommand.js.map +0 -1
  303. package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
  304. package/dist/es/commands/PutSecretValueCommand.js.map +0 -1
  305. package/dist/es/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
  306. package/dist/es/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
  307. package/dist/es/commands/RestoreSecretCommand.js.map +0 -1
  308. package/dist/es/commands/RotateSecretCommand.js.map +0 -1
  309. package/dist/es/commands/StopReplicationToReplicaCommand.js.map +0 -1
  310. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  311. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  312. package/dist/es/commands/UpdateSecretCommand.js.map +0 -1
  313. package/dist/es/commands/UpdateSecretVersionStageCommand.js.map +0 -1
  314. package/dist/es/commands/ValidateResourcePolicyCommand.js.map +0 -1
  315. package/dist/es/endpoints.js.map +0 -1
  316. package/dist/es/index.js.map +0 -1
  317. package/dist/es/models/index.js.map +0 -1
  318. package/dist/es/models/models_0.js.map +0 -1
  319. package/dist/es/package.json +0 -93
  320. package/dist/es/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
  321. package/dist/es/pagination/ListSecretsPaginator.js.map +0 -1
  322. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  323. package/dist/es/runtimeConfig.browser.js.map +0 -1
  324. package/dist/es/runtimeConfig.js.map +0 -1
  325. package/dist/es/runtimeConfig.native.js.map +0 -1
  326. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { RotateSecretRequest, RotateSecretResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1RotateSecretCommand,
5
- serializeAws_json1_1RotateSecretCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { RotateSecretRequest, RotateSecretResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1RotateSecretCommand,
17
+ serializeAws_json1_1RotateSecretCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface RotateSecretCommandInput extends RotateSecretRequest {}
21
22
  export interface RotateSecretCommandOutput extends RotateSecretResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { StopReplicationToReplicaRequest, StopReplicationToReplicaResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1StopReplicationToReplicaCommand,
5
- serializeAws_json1_1StopReplicationToReplicaCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { StopReplicationToReplicaRequest, StopReplicationToReplicaResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1StopReplicationToReplicaCommand,
17
+ serializeAws_json1_1StopReplicationToReplicaCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface StopReplicationToReplicaCommandInput extends StopReplicationToReplicaRequest {}
21
22
  export interface StopReplicationToReplicaCommandOutput extends StopReplicationToReplicaResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { TagResourceRequest } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1TagResourceCommand,
5
- serializeAws_json1_1TagResourceCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { TagResourceRequest } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1TagResourceCommand,
17
+ serializeAws_json1_1TagResourceCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface TagResourceCommandInput extends TagResourceRequest {}
21
22
  export interface TagResourceCommandOutput extends __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UntagResourceRequest } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1UntagResourceCommand,
5
- serializeAws_json1_1UntagResourceCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { UntagResourceRequest } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1UntagResourceCommand,
17
+ serializeAws_json1_1UntagResourceCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface UntagResourceCommandInput extends UntagResourceRequest {}
21
22
  export interface UntagResourceCommandOutput extends __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UpdateSecretRequest, UpdateSecretResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1UpdateSecretCommand,
5
- serializeAws_json1_1UpdateSecretCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { UpdateSecretRequest, UpdateSecretResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1UpdateSecretCommand,
17
+ serializeAws_json1_1UpdateSecretCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface UpdateSecretCommandInput extends UpdateSecretRequest {}
21
22
  export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { UpdateSecretVersionStageRequest, UpdateSecretVersionStageResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1UpdateSecretVersionStageCommand,
5
- serializeAws_json1_1UpdateSecretVersionStageCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { UpdateSecretVersionStageRequest, UpdateSecretVersionStageResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1UpdateSecretVersionStageCommand,
17
+ serializeAws_json1_1UpdateSecretVersionStageCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface UpdateSecretVersionStageCommandInput extends UpdateSecretVersionStageRequest {}
21
22
  export interface UpdateSecretVersionStageCommandOutput extends UpdateSecretVersionStageResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
2
- import { ValidateResourcePolicyRequest, ValidateResourcePolicyResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ValidateResourcePolicyCommand,
5
- serializeAws_json1_1ValidateResourcePolicyCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ValidateResourcePolicyRequest, ValidateResourcePolicyResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ValidateResourcePolicyCommand,
17
+ serializeAws_json1_1ValidateResourcePolicyCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
20
+
20
21
  export interface ValidateResourcePolicyCommandInput extends ValidateResourcePolicyRequest {}
21
22
  export interface ValidateResourcePolicyCommandOutput extends ValidateResourcePolicyResponse, __MetadataBearer {}
22
23
 
@@ -1,4 +1,4 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
1
+ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
2
  import { RegionInfoProvider } from "@aws-sdk/types";
3
3
 
4
4
  const regionHash: RegionHash = {
File without changes
File without changes
File without changes
@@ -1,6 +1,7 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+
1
3
  import { SecretsManager } from "../SecretsManager";
2
4
  import { SecretsManagerClient } from "../SecretsManagerClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
5
 
5
6
  export interface SecretsManagerPaginationConfiguration extends PaginationConfiguration {
6
7
  client: SecretsManager | SecretsManagerClient;
@@ -1,12 +1,13 @@
1
- import { SecretsManager } from "../SecretsManager";
2
- import { SecretsManagerClient } from "../SecretsManagerClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListSecretVersionIdsCommand,
5
5
  ListSecretVersionIdsCommandInput,
6
6
  ListSecretVersionIdsCommandOutput,
7
7
  } from "../commands/ListSecretVersionIdsCommand";
8
+ import { SecretsManager } from "../SecretsManager";
9
+ import { SecretsManagerClient } from "../SecretsManagerClient";
8
10
  import { SecretsManagerPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,8 +1,9 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
+ import { ListSecretsCommand, ListSecretsCommandInput, ListSecretsCommandOutput } from "../commands/ListSecretsCommand";
1
4
  import { SecretsManager } from "../SecretsManager";
2
5
  import { SecretsManagerClient } from "../SecretsManagerClient";
3
- import { ListSecretsCommand, ListSecretsCommandInput, ListSecretsCommandOutput } from "../commands/ListSecretsCommand";
4
6
  import { SecretsManagerPaginationConfiguration } from "./Interfaces";
5
- import { Paginator } from "@aws-sdk/types";
6
7
 
7
8
  /**
8
9
  * @private
@@ -1,3 +1,22 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import {
3
+ expectBoolean as __expectBoolean,
4
+ expectLong as __expectLong,
5
+ expectNonNull as __expectNonNull,
6
+ expectNumber as __expectNumber,
7
+ expectString as __expectString,
8
+ parseEpochTimestamp as __parseEpochTimestamp,
9
+ } from "@aws-sdk/smithy-client";
10
+ import {
11
+ Endpoint as __Endpoint,
12
+ HeaderBag as __HeaderBag,
13
+ MetadataBearer as __MetadataBearer,
14
+ ResponseMetadata as __ResponseMetadata,
15
+ SerdeContext as __SerdeContext,
16
+ SmithyException as __SmithyException,
17
+ } from "@aws-sdk/types";
18
+ import { v4 as generateIdempotencyToken } from "uuid";
19
+
1
20
  import { CancelRotateSecretCommandInput, CancelRotateSecretCommandOutput } from "../commands/CancelRotateSecretCommand";
2
21
  import { CreateSecretCommandInput, CreateSecretCommandOutput } from "../commands/CreateSecretCommand";
3
22
  import {
@@ -9,11 +28,11 @@ import { DescribeSecretCommandInput, DescribeSecretCommandOutput } from "../comm
9
28
  import { GetRandomPasswordCommandInput, GetRandomPasswordCommandOutput } from "../commands/GetRandomPasswordCommand";
10
29
  import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "../commands/GetResourcePolicyCommand";
11
30
  import { GetSecretValueCommandInput, GetSecretValueCommandOutput } from "../commands/GetSecretValueCommand";
31
+ import { ListSecretsCommandInput, ListSecretsCommandOutput } from "../commands/ListSecretsCommand";
12
32
  import {
13
33
  ListSecretVersionIdsCommandInput,
14
34
  ListSecretVersionIdsCommandOutput,
15
35
  } from "../commands/ListSecretVersionIdsCommand";
16
- import { ListSecretsCommandInput, ListSecretsCommandOutput } from "../commands/ListSecretsCommand";
17
36
  import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand";
18
37
  import { PutSecretValueCommandInput, PutSecretValueCommandOutput } from "../commands/PutSecretValueCommand";
19
38
  import {
@@ -66,10 +85,10 @@ import {
66
85
  InvalidParameterException,
67
86
  InvalidRequestException,
68
87
  LimitExceededException,
69
- ListSecretVersionIdsRequest,
70
- ListSecretVersionIdsResponse,
71
88
  ListSecretsRequest,
72
89
  ListSecretsResponse,
90
+ ListSecretVersionIdsRequest,
91
+ ListSecretVersionIdsResponse,
73
92
  MalformedPolicyDocumentException,
74
93
  PreconditionNotMetException,
75
94
  PublicPolicyException,
@@ -105,24 +124,6 @@ import {
105
124
  ValidateResourcePolicyResponse,
106
125
  ValidationErrorsEntry,
107
126
  } from "../models/models_0";
108
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
109
- import {
110
- expectBoolean as __expectBoolean,
111
- expectLong as __expectLong,
112
- expectNonNull as __expectNonNull,
113
- expectNumber as __expectNumber,
114
- expectString as __expectString,
115
- parseEpochTimestamp as __parseEpochTimestamp,
116
- } from "@aws-sdk/smithy-client";
117
- import {
118
- Endpoint as __Endpoint,
119
- HeaderBag as __HeaderBag,
120
- MetadataBearer as __MetadataBearer,
121
- ResponseMetadata as __ResponseMetadata,
122
- SerdeContext as __SerdeContext,
123
- SmithyException as __SmithyException,
124
- } from "@aws-sdk/types";
125
- import { v4 as generateIdempotencyToken } from "uuid";
126
127
 
127
128
  export const serializeAws_json1_1CancelRotateSecretCommand = async (
128
129
  input: CancelRotateSecretCommandInput,
@@ -436,7 +437,7 @@ const deserializeAws_json1_1CancelRotateSecretCommandError = async (
436
437
  body: await parseBody(output.body, context),
437
438
  };
438
439
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
439
- let errorCode: string = "UnknownError";
440
+ let errorCode = "UnknownError";
440
441
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
442
  switch (errorCode) {
442
443
  case "InternalServiceError":
@@ -514,7 +515,7 @@ const deserializeAws_json1_1CreateSecretCommandError = async (
514
515
  body: await parseBody(output.body, context),
515
516
  };
516
517
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
517
- let errorCode: string = "UnknownError";
518
+ let errorCode = "UnknownError";
518
519
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
519
520
  switch (errorCode) {
520
521
  case "EncryptionFailure":
@@ -632,7 +633,7 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (
632
633
  body: await parseBody(output.body, context),
633
634
  };
634
635
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
635
- let errorCode: string = "UnknownError";
636
+ let errorCode = "UnknownError";
636
637
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
637
638
  switch (errorCode) {
638
639
  case "InternalServiceError":
@@ -710,7 +711,7 @@ const deserializeAws_json1_1DeleteSecretCommandError = async (
710
711
  body: await parseBody(output.body, context),
711
712
  };
712
713
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
713
- let errorCode: string = "UnknownError";
714
+ let errorCode = "UnknownError";
714
715
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
715
716
  switch (errorCode) {
716
717
  case "InternalServiceError":
@@ -788,7 +789,7 @@ const deserializeAws_json1_1DescribeSecretCommandError = async (
788
789
  body: await parseBody(output.body, context),
789
790
  };
790
791
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
791
- let errorCode: string = "UnknownError";
792
+ let errorCode = "UnknownError";
792
793
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
793
794
  switch (errorCode) {
794
795
  case "InternalServiceError":
@@ -858,7 +859,7 @@ const deserializeAws_json1_1GetRandomPasswordCommandError = async (
858
859
  body: await parseBody(output.body, context),
859
860
  };
860
861
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
861
- let errorCode: string = "UnknownError";
862
+ let errorCode = "UnknownError";
862
863
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
863
864
  switch (errorCode) {
864
865
  case "InternalServiceError":
@@ -928,7 +929,7 @@ const deserializeAws_json1_1GetResourcePolicyCommandError = async (
928
929
  body: await parseBody(output.body, context),
929
930
  };
930
931
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
931
- let errorCode: string = "UnknownError";
932
+ let errorCode = "UnknownError";
932
933
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
933
934
  switch (errorCode) {
934
935
  case "InternalServiceError":
@@ -1006,7 +1007,7 @@ const deserializeAws_json1_1GetSecretValueCommandError = async (
1006
1007
  body: await parseBody(output.body, context),
1007
1008
  };
1008
1009
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1009
- let errorCode: string = "UnknownError";
1010
+ let errorCode = "UnknownError";
1010
1011
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1011
1012
  switch (errorCode) {
1012
1013
  case "DecryptionFailure":
@@ -1092,7 +1093,7 @@ const deserializeAws_json1_1ListSecretsCommandError = async (
1092
1093
  body: await parseBody(output.body, context),
1093
1094
  };
1094
1095
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1095
- let errorCode: string = "UnknownError";
1096
+ let errorCode = "UnknownError";
1096
1097
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1097
1098
  switch (errorCode) {
1098
1099
  case "InternalServiceError":
@@ -1162,7 +1163,7 @@ const deserializeAws_json1_1ListSecretVersionIdsCommandError = async (
1162
1163
  body: await parseBody(output.body, context),
1163
1164
  };
1164
1165
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1165
- let errorCode: string = "UnknownError";
1166
+ let errorCode = "UnknownError";
1166
1167
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1167
1168
  switch (errorCode) {
1168
1169
  case "InternalServiceError":
@@ -1240,7 +1241,7 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (
1240
1241
  body: await parseBody(output.body, context),
1241
1242
  };
1242
1243
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1243
- let errorCode: string = "UnknownError";
1244
+ let errorCode = "UnknownError";
1244
1245
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1245
1246
  switch (errorCode) {
1246
1247
  case "InternalServiceError":
@@ -1334,7 +1335,7 @@ const deserializeAws_json1_1PutSecretValueCommandError = async (
1334
1335
  body: await parseBody(output.body, context),
1335
1336
  };
1336
1337
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1337
- let errorCode: string = "UnknownError";
1338
+ let errorCode = "UnknownError";
1338
1339
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1339
1340
  switch (errorCode) {
1340
1341
  case "EncryptionFailure":
@@ -1436,7 +1437,7 @@ const deserializeAws_json1_1RemoveRegionsFromReplicationCommandError = async (
1436
1437
  body: await parseBody(output.body, context),
1437
1438
  };
1438
1439
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1439
- let errorCode: string = "UnknownError";
1440
+ let errorCode = "UnknownError";
1440
1441
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1441
1442
  switch (errorCode) {
1442
1443
  case "InternalServiceError":
@@ -1514,7 +1515,7 @@ const deserializeAws_json1_1ReplicateSecretToRegionsCommandError = async (
1514
1515
  body: await parseBody(output.body, context),
1515
1516
  };
1516
1517
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1517
- let errorCode: string = "UnknownError";
1518
+ let errorCode = "UnknownError";
1518
1519
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1519
1520
  switch (errorCode) {
1520
1521
  case "InternalServiceError":
@@ -1592,7 +1593,7 @@ const deserializeAws_json1_1RestoreSecretCommandError = async (
1592
1593
  body: await parseBody(output.body, context),
1593
1594
  };
1594
1595
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1595
- let errorCode: string = "UnknownError";
1596
+ let errorCode = "UnknownError";
1596
1597
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
1598
  switch (errorCode) {
1598
1599
  case "InternalServiceError":
@@ -1670,7 +1671,7 @@ const deserializeAws_json1_1RotateSecretCommandError = async (
1670
1671
  body: await parseBody(output.body, context),
1671
1672
  };
1672
1673
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1673
- let errorCode: string = "UnknownError";
1674
+ let errorCode = "UnknownError";
1674
1675
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
1676
  switch (errorCode) {
1676
1677
  case "InternalServiceError":
@@ -1748,7 +1749,7 @@ const deserializeAws_json1_1StopReplicationToReplicaCommandError = async (
1748
1749
  body: await parseBody(output.body, context),
1749
1750
  };
1750
1751
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1751
- let errorCode: string = "UnknownError";
1752
+ let errorCode = "UnknownError";
1752
1753
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1753
1754
  switch (errorCode) {
1754
1755
  case "InternalServiceError":
@@ -1823,7 +1824,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (
1823
1824
  body: await parseBody(output.body, context),
1824
1825
  };
1825
1826
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1826
- let errorCode: string = "UnknownError";
1827
+ let errorCode = "UnknownError";
1827
1828
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1828
1829
  switch (errorCode) {
1829
1830
  case "InternalServiceError":
@@ -1898,7 +1899,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (
1898
1899
  body: await parseBody(output.body, context),
1899
1900
  };
1900
1901
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1901
- let errorCode: string = "UnknownError";
1902
+ let errorCode = "UnknownError";
1902
1903
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1903
1904
  switch (errorCode) {
1904
1905
  case "InternalServiceError":
@@ -1976,7 +1977,7 @@ const deserializeAws_json1_1UpdateSecretCommandError = async (
1976
1977
  body: await parseBody(output.body, context),
1977
1978
  };
1978
1979
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
1979
- let errorCode: string = "UnknownError";
1980
+ let errorCode = "UnknownError";
1980
1981
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1981
1982
  switch (errorCode) {
1982
1983
  case "EncryptionFailure":
@@ -2094,7 +2095,7 @@ const deserializeAws_json1_1UpdateSecretVersionStageCommandError = async (
2094
2095
  body: await parseBody(output.body, context),
2095
2096
  };
2096
2097
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2097
- let errorCode: string = "UnknownError";
2098
+ let errorCode = "UnknownError";
2098
2099
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2099
2100
  switch (errorCode) {
2100
2101
  case "InternalServiceError":
@@ -2180,7 +2181,7 @@ const deserializeAws_json1_1ValidateResourcePolicyCommandError = async (
2180
2181
  body: await parseBody(output.body, context),
2181
2182
  };
2182
2183
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
2183
- let errorCode: string = "UnknownError";
2184
+ let errorCode = "UnknownError";
2184
2185
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2185
2186
  switch (errorCode) {
2186
2187
  case "InternalServiceError":
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
2
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
3
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -8,8 +6,11 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
7
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
8
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
- import { SecretsManagerClientConfig } from "./SecretsManagerClient";
9
+
10
+ // @ts-ignore: package.json will be imported from dist folders
11
+ import packageInfo from "../package.json";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { SecretsManagerClientConfig } from "./SecretsManagerClient";
13
14
 
14
15
  /**
15
16
  * @internal
@@ -1,6 +1,7 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
- import { SecretsManagerClientConfig } from "./SecretsManagerClient";
2
+
3
3
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
+ import { SecretsManagerClientConfig } from "./SecretsManagerClient";
4
5
 
5
6
  /**
6
7
  * @internal
@@ -1,6 +1,7 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { Logger as __Logger } from "@aws-sdk/types";
3
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
+
4
+ import { defaultRegionInfoProvider } from "./endpoints";
4
5
  import { SecretsManagerClientConfig } from "./SecretsManagerClient";
5
6
 
6
7
  /**
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
2
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
7
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
7
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
10
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
- import { SecretsManagerClientConfig } from "./SecretsManagerClient";
13
+
14
+ // @ts-ignore: package.json will be imported from dist folders
15
+ import packageInfo from "../package.json";
15
16
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
+ import { SecretsManagerClientConfig } from "./SecretsManagerClient";
17
18
 
18
19
  /**
19
20
  * @internal
package/tsconfig.es.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
8
- "outDir": "dist/es"
8
+ "outDir": "dist-es"
9
9
  }
10
10
  }
package/tsconfig.json CHANGED
@@ -11,7 +11,8 @@
11
11
  "incremental": true,
12
12
  "resolveJsonModule": true,
13
13
  "esModuleInterop": true,
14
- "outDir": "dist/cjs",
14
+ "rootDir": "src",
15
+ "outDir": "dist-cjs",
15
16
  "removeComments": true
16
17
  },
17
18
  "typedocOptions": {
@@ -27,5 +28,6 @@
27
28
  "out": "docs",
28
29
  "theme": "minimal",
29
30
  "plugin": ["@aws-sdk/client-documentation-generator"]
30
- }
31
+ },
32
+ "exclude": ["test/**/*"]
31
33
  }
@@ -3,6 +3,7 @@
3
3
  "compilerOptions": {
4
4
  "removeComments": false,
5
5
  "declaration": true,
6
- "declarationDir": "dist/types"
7
- }
6
+ "declarationDir": "dist-types"
7
+ },
8
+ "exclude": ["test/**/*", "dist-types/**/*"]
8
9
  }