@aws-sdk/client-kms 3.35.0 → 3.36.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 (421) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +8 -7
  3. package/dist-cjs/KMS.js +8 -8
  4. package/dist-cjs/KMSClient.js +8 -8
  5. package/dist-cjs/commands/CancelKeyDeletionCommand.js +6 -5
  6. package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +3 -4
  7. package/dist-cjs/commands/CreateAliasCommand.js +11 -8
  8. package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +0 -1
  9. package/dist-cjs/commands/CreateGrantCommand.js +14 -12
  10. package/dist-cjs/commands/CreateKeyCommand.js +16 -15
  11. package/dist-cjs/commands/DecryptCommand.js +24 -22
  12. package/dist-cjs/commands/DeleteAliasCommand.js +11 -8
  13. package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +10 -12
  14. package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +5 -7
  15. package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +4 -5
  16. package/dist-cjs/commands/DescribeKeyCommand.js +12 -11
  17. package/dist-cjs/commands/DisableKeyCommand.js +5 -5
  18. package/dist-cjs/commands/DisableKeyRotationCommand.js +2 -2
  19. package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +6 -5
  20. package/dist-cjs/commands/EnableKeyCommand.js +4 -3
  21. package/dist-cjs/commands/EnableKeyRotationCommand.js +2 -2
  22. package/dist-cjs/commands/EncryptCommand.js +14 -13
  23. package/dist-cjs/commands/GenerateDataKeyCommand.js +15 -13
  24. package/dist-cjs/commands/GenerateDataKeyPairCommand.js +15 -14
  25. package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +16 -14
  26. package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +11 -10
  27. package/dist-cjs/commands/GenerateRandomCommand.js +2 -2
  28. package/dist-cjs/commands/GetKeyPolicyCommand.js +0 -1
  29. package/dist-cjs/commands/GetKeyRotationStatusCommand.js +2 -2
  30. package/dist-cjs/commands/GetParametersForImportCommand.js +7 -9
  31. package/dist-cjs/commands/GetPublicKeyCommand.js +7 -6
  32. package/dist-cjs/commands/ImportKeyMaterialCommand.js +13 -14
  33. package/dist-cjs/commands/ListAliasesCommand.js +13 -11
  34. package/dist-cjs/commands/ListGrantsCommand.js +2 -3
  35. package/dist-cjs/commands/ListKeyPoliciesCommand.js +3 -4
  36. package/dist-cjs/commands/ListKeysCommand.js +1 -3
  37. package/dist-cjs/commands/ListResourceTagsCommand.js +0 -1
  38. package/dist-cjs/commands/ListRetirableGrantsCommand.js +7 -7
  39. package/dist-cjs/commands/PutKeyPolicyCommand.js +0 -1
  40. package/dist-cjs/commands/ReEncryptCommand.js +33 -28
  41. package/dist-cjs/commands/ReplicateKeyCommand.js +5 -6
  42. package/dist-cjs/commands/RetireGrantCommand.js +7 -6
  43. package/dist-cjs/commands/RevokeGrantCommand.js +1 -3
  44. package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +19 -16
  45. package/dist-cjs/commands/SignCommand.js +10 -10
  46. package/dist-cjs/commands/TagResourceCommand.js +6 -5
  47. package/dist-cjs/commands/UntagResourceCommand.js +3 -4
  48. package/dist-cjs/commands/UpdateAliasCommand.js +15 -12
  49. package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +17 -18
  50. package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +3 -4
  51. package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +1 -2
  52. package/dist-cjs/commands/VerifyCommand.js +5 -6
  53. package/dist-cjs/endpoints.js +0 -1
  54. package/dist-cjs/index.js +0 -1
  55. package/dist-cjs/models/index.js +0 -1
  56. package/dist-cjs/models/models_0.js +0 -1
  57. package/dist-cjs/pagination/Interfaces.js +0 -1
  58. package/dist-cjs/pagination/ListAliasesPaginator.js +0 -1
  59. package/dist-cjs/pagination/ListGrantsPaginator.js +0 -1
  60. package/dist-cjs/pagination/ListKeyPoliciesPaginator.js +0 -1
  61. package/dist-cjs/pagination/ListKeysPaginator.js +0 -1
  62. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  63. package/dist-cjs/runtimeConfig.browser.js +2 -3
  64. package/dist-cjs/runtimeConfig.js +3 -4
  65. package/dist-cjs/runtimeConfig.native.js +0 -1
  66. package/dist-cjs/runtimeConfig.shared.js +0 -1
  67. package/dist-es/KMS.js +0 -1
  68. package/dist-es/KMSClient.js +0 -1
  69. package/dist-es/commands/CancelKeyDeletionCommand.js +0 -1
  70. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +0 -1
  71. package/dist-es/commands/CreateAliasCommand.js +0 -1
  72. package/dist-es/commands/CreateCustomKeyStoreCommand.js +0 -1
  73. package/dist-es/commands/CreateGrantCommand.js +0 -1
  74. package/dist-es/commands/CreateKeyCommand.js +0 -1
  75. package/dist-es/commands/DecryptCommand.js +0 -1
  76. package/dist-es/commands/DeleteAliasCommand.js +0 -1
  77. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +0 -1
  78. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +0 -1
  79. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +0 -1
  80. package/dist-es/commands/DescribeKeyCommand.js +0 -1
  81. package/dist-es/commands/DisableKeyCommand.js +0 -1
  82. package/dist-es/commands/DisableKeyRotationCommand.js +0 -1
  83. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +0 -1
  84. package/dist-es/commands/EnableKeyCommand.js +0 -1
  85. package/dist-es/commands/EnableKeyRotationCommand.js +0 -1
  86. package/dist-es/commands/EncryptCommand.js +0 -1
  87. package/dist-es/commands/GenerateDataKeyCommand.js +0 -1
  88. package/dist-es/commands/GenerateDataKeyPairCommand.js +0 -1
  89. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -1
  90. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -1
  91. package/dist-es/commands/GenerateRandomCommand.js +0 -1
  92. package/dist-es/commands/GetKeyPolicyCommand.js +0 -1
  93. package/dist-es/commands/GetKeyRotationStatusCommand.js +0 -1
  94. package/dist-es/commands/GetParametersForImportCommand.js +0 -1
  95. package/dist-es/commands/GetPublicKeyCommand.js +0 -1
  96. package/dist-es/commands/ImportKeyMaterialCommand.js +0 -1
  97. package/dist-es/commands/ListAliasesCommand.js +0 -1
  98. package/dist-es/commands/ListGrantsCommand.js +0 -1
  99. package/dist-es/commands/ListKeyPoliciesCommand.js +0 -1
  100. package/dist-es/commands/ListKeysCommand.js +0 -1
  101. package/dist-es/commands/ListResourceTagsCommand.js +0 -1
  102. package/dist-es/commands/ListRetirableGrantsCommand.js +0 -1
  103. package/dist-es/commands/PutKeyPolicyCommand.js +0 -1
  104. package/dist-es/commands/ReEncryptCommand.js +0 -1
  105. package/dist-es/commands/ReplicateKeyCommand.js +0 -1
  106. package/dist-es/commands/RetireGrantCommand.js +0 -1
  107. package/dist-es/commands/RevokeGrantCommand.js +0 -1
  108. package/dist-es/commands/ScheduleKeyDeletionCommand.js +0 -1
  109. package/dist-es/commands/SignCommand.js +0 -1
  110. package/dist-es/commands/TagResourceCommand.js +0 -1
  111. package/dist-es/commands/UntagResourceCommand.js +0 -1
  112. package/dist-es/commands/UpdateAliasCommand.js +0 -1
  113. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +0 -1
  114. package/dist-es/commands/UpdateKeyDescriptionCommand.js +0 -1
  115. package/dist-es/commands/UpdatePrimaryRegionCommand.js +0 -1
  116. package/dist-es/commands/VerifyCommand.js +0 -1
  117. package/dist-es/endpoints.js +0 -1
  118. package/dist-es/index.js +0 -1
  119. package/dist-es/models/index.js +0 -1
  120. package/dist-es/models/models_0.js +0 -1
  121. package/dist-es/pagination/Interfaces.js +0 -1
  122. package/dist-es/pagination/ListAliasesPaginator.js +0 -1
  123. package/dist-es/pagination/ListGrantsPaginator.js +0 -1
  124. package/dist-es/pagination/ListKeyPoliciesPaginator.js +0 -1
  125. package/dist-es/pagination/ListKeysPaginator.js +0 -1
  126. package/dist-es/protocols/Aws_json1_1.js +0 -1
  127. package/dist-es/runtimeConfig.browser.js +1 -2
  128. package/dist-es/runtimeConfig.js +2 -3
  129. package/dist-es/runtimeConfig.native.js +0 -1
  130. package/dist-es/runtimeConfig.shared.js +0 -1
  131. package/dist-types/KMS.d.ts +396 -334
  132. package/dist-types/KMSClient.d.ts +8 -7
  133. package/dist-types/commands/CancelKeyDeletionCommand.d.ts +6 -4
  134. package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
  135. package/dist-types/commands/CreateAliasCommand.d.ts +11 -7
  136. package/dist-types/commands/CreateGrantCommand.d.ts +14 -11
  137. package/dist-types/commands/CreateKeyCommand.d.ts +16 -14
  138. package/dist-types/commands/DecryptCommand.d.ts +24 -21
  139. package/dist-types/commands/DeleteAliasCommand.d.ts +11 -7
  140. package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +10 -11
  141. package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +5 -6
  142. package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +4 -4
  143. package/dist-types/commands/DescribeKeyCommand.d.ts +12 -10
  144. package/dist-types/commands/DisableKeyCommand.d.ts +5 -4
  145. package/dist-types/commands/DisableKeyRotationCommand.d.ts +2 -1
  146. package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -4
  147. package/dist-types/commands/EnableKeyCommand.d.ts +4 -2
  148. package/dist-types/commands/EnableKeyRotationCommand.d.ts +2 -1
  149. package/dist-types/commands/EncryptCommand.d.ts +14 -12
  150. package/dist-types/commands/GenerateDataKeyCommand.d.ts +15 -12
  151. package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +15 -13
  152. package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -13
  153. package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +11 -9
  154. package/dist-types/commands/GenerateRandomCommand.d.ts +2 -1
  155. package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +2 -1
  156. package/dist-types/commands/GetParametersForImportCommand.d.ts +7 -8
  157. package/dist-types/commands/GetPublicKeyCommand.d.ts +7 -5
  158. package/dist-types/commands/ImportKeyMaterialCommand.d.ts +13 -13
  159. package/dist-types/commands/ListAliasesCommand.d.ts +13 -10
  160. package/dist-types/commands/ListGrantsCommand.d.ts +2 -2
  161. package/dist-types/commands/ListKeyPoliciesCommand.d.ts +3 -3
  162. package/dist-types/commands/ListKeysCommand.d.ts +1 -2
  163. package/dist-types/commands/ListRetirableGrantsCommand.d.ts +7 -6
  164. package/dist-types/commands/ReEncryptCommand.d.ts +33 -27
  165. package/dist-types/commands/ReplicateKeyCommand.d.ts +5 -5
  166. package/dist-types/commands/RetireGrantCommand.d.ts +7 -5
  167. package/dist-types/commands/RevokeGrantCommand.d.ts +1 -2
  168. package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +19 -15
  169. package/dist-types/commands/SignCommand.d.ts +10 -9
  170. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  171. package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
  172. package/dist-types/commands/UpdateAliasCommand.d.ts +15 -11
  173. package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +17 -17
  174. package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +3 -3
  175. package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
  176. package/dist-types/commands/VerifyCommand.d.ts +5 -5
  177. package/dist-types/models/models_0.d.ts +296 -249
  178. package/dist-types/ts3.4/KMS.d.ts +396 -334
  179. package/dist-types/ts3.4/KMSClient.d.ts +8 -7
  180. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +6 -4
  181. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +3 -3
  182. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +11 -7
  183. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +14 -11
  184. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +16 -14
  185. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +24 -21
  186. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +11 -7
  187. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +10 -11
  188. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +5 -6
  189. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +4 -4
  190. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +12 -10
  191. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +5 -4
  192. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +2 -1
  193. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -4
  194. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +4 -2
  195. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +2 -1
  196. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +14 -12
  197. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +15 -12
  198. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +15 -13
  199. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +16 -13
  200. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +11 -9
  201. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +2 -1
  202. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +2 -1
  203. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +7 -8
  204. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +7 -5
  205. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +13 -13
  206. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +13 -10
  207. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +2 -2
  208. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +3 -3
  209. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +1 -2
  210. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +7 -6
  211. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +33 -27
  212. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +5 -5
  213. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +7 -5
  214. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +1 -2
  215. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +19 -15
  216. package/dist-types/ts3.4/commands/SignCommand.d.ts +10 -9
  217. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  218. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
  219. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +15 -11
  220. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +17 -17
  221. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +3 -3
  222. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +1 -1
  223. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +5 -5
  224. package/dist-types/ts3.4/models/models_0.d.ts +296 -249
  225. package/package.json +33 -30
  226. package/dist-cjs/KMS.js.map +0 -1
  227. package/dist-cjs/KMSClient.js.map +0 -1
  228. package/dist-cjs/commands/CancelKeyDeletionCommand.js.map +0 -1
  229. package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
  230. package/dist-cjs/commands/CreateAliasCommand.js.map +0 -1
  231. package/dist-cjs/commands/CreateCustomKeyStoreCommand.js.map +0 -1
  232. package/dist-cjs/commands/CreateGrantCommand.js.map +0 -1
  233. package/dist-cjs/commands/CreateKeyCommand.js.map +0 -1
  234. package/dist-cjs/commands/DecryptCommand.js.map +0 -1
  235. package/dist-cjs/commands/DeleteAliasCommand.js.map +0 -1
  236. package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
  237. package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
  238. package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
  239. package/dist-cjs/commands/DescribeKeyCommand.js.map +0 -1
  240. package/dist-cjs/commands/DisableKeyCommand.js.map +0 -1
  241. package/dist-cjs/commands/DisableKeyRotationCommand.js.map +0 -1
  242. package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
  243. package/dist-cjs/commands/EnableKeyCommand.js.map +0 -1
  244. package/dist-cjs/commands/EnableKeyRotationCommand.js.map +0 -1
  245. package/dist-cjs/commands/EncryptCommand.js.map +0 -1
  246. package/dist-cjs/commands/GenerateDataKeyCommand.js.map +0 -1
  247. package/dist-cjs/commands/GenerateDataKeyPairCommand.js.map +0 -1
  248. package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
  249. package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
  250. package/dist-cjs/commands/GenerateRandomCommand.js.map +0 -1
  251. package/dist-cjs/commands/GetKeyPolicyCommand.js.map +0 -1
  252. package/dist-cjs/commands/GetKeyRotationStatusCommand.js.map +0 -1
  253. package/dist-cjs/commands/GetParametersForImportCommand.js.map +0 -1
  254. package/dist-cjs/commands/GetPublicKeyCommand.js.map +0 -1
  255. package/dist-cjs/commands/ImportKeyMaterialCommand.js.map +0 -1
  256. package/dist-cjs/commands/ListAliasesCommand.js.map +0 -1
  257. package/dist-cjs/commands/ListGrantsCommand.js.map +0 -1
  258. package/dist-cjs/commands/ListKeyPoliciesCommand.js.map +0 -1
  259. package/dist-cjs/commands/ListKeysCommand.js.map +0 -1
  260. package/dist-cjs/commands/ListResourceTagsCommand.js.map +0 -1
  261. package/dist-cjs/commands/ListRetirableGrantsCommand.js.map +0 -1
  262. package/dist-cjs/commands/PutKeyPolicyCommand.js.map +0 -1
  263. package/dist-cjs/commands/ReEncryptCommand.js.map +0 -1
  264. package/dist-cjs/commands/ReplicateKeyCommand.js.map +0 -1
  265. package/dist-cjs/commands/RetireGrantCommand.js.map +0 -1
  266. package/dist-cjs/commands/RevokeGrantCommand.js.map +0 -1
  267. package/dist-cjs/commands/ScheduleKeyDeletionCommand.js.map +0 -1
  268. package/dist-cjs/commands/SignCommand.js.map +0 -1
  269. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  270. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  271. package/dist-cjs/commands/UpdateAliasCommand.js.map +0 -1
  272. package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
  273. package/dist-cjs/commands/UpdateKeyDescriptionCommand.js.map +0 -1
  274. package/dist-cjs/commands/UpdatePrimaryRegionCommand.js.map +0 -1
  275. package/dist-cjs/commands/VerifyCommand.js.map +0 -1
  276. package/dist-cjs/endpoints.js.map +0 -1
  277. package/dist-cjs/index.js.map +0 -1
  278. package/dist-cjs/models/index.js.map +0 -1
  279. package/dist-cjs/models/models_0.js.map +0 -1
  280. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  281. package/dist-cjs/pagination/ListAliasesPaginator.js.map +0 -1
  282. package/dist-cjs/pagination/ListGrantsPaginator.js.map +0 -1
  283. package/dist-cjs/pagination/ListKeyPoliciesPaginator.js.map +0 -1
  284. package/dist-cjs/pagination/ListKeysPaginator.js.map +0 -1
  285. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  286. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  287. package/dist-cjs/runtimeConfig.js.map +0 -1
  288. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  289. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  290. package/dist-es/KMS.js.map +0 -1
  291. package/dist-es/KMSClient.js.map +0 -1
  292. package/dist-es/commands/CancelKeyDeletionCommand.js.map +0 -1
  293. package/dist-es/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
  294. package/dist-es/commands/CreateAliasCommand.js.map +0 -1
  295. package/dist-es/commands/CreateCustomKeyStoreCommand.js.map +0 -1
  296. package/dist-es/commands/CreateGrantCommand.js.map +0 -1
  297. package/dist-es/commands/CreateKeyCommand.js.map +0 -1
  298. package/dist-es/commands/DecryptCommand.js.map +0 -1
  299. package/dist-es/commands/DeleteAliasCommand.js.map +0 -1
  300. package/dist-es/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
  301. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
  302. package/dist-es/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
  303. package/dist-es/commands/DescribeKeyCommand.js.map +0 -1
  304. package/dist-es/commands/DisableKeyCommand.js.map +0 -1
  305. package/dist-es/commands/DisableKeyRotationCommand.js.map +0 -1
  306. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
  307. package/dist-es/commands/EnableKeyCommand.js.map +0 -1
  308. package/dist-es/commands/EnableKeyRotationCommand.js.map +0 -1
  309. package/dist-es/commands/EncryptCommand.js.map +0 -1
  310. package/dist-es/commands/GenerateDataKeyCommand.js.map +0 -1
  311. package/dist-es/commands/GenerateDataKeyPairCommand.js.map +0 -1
  312. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
  313. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
  314. package/dist-es/commands/GenerateRandomCommand.js.map +0 -1
  315. package/dist-es/commands/GetKeyPolicyCommand.js.map +0 -1
  316. package/dist-es/commands/GetKeyRotationStatusCommand.js.map +0 -1
  317. package/dist-es/commands/GetParametersForImportCommand.js.map +0 -1
  318. package/dist-es/commands/GetPublicKeyCommand.js.map +0 -1
  319. package/dist-es/commands/ImportKeyMaterialCommand.js.map +0 -1
  320. package/dist-es/commands/ListAliasesCommand.js.map +0 -1
  321. package/dist-es/commands/ListGrantsCommand.js.map +0 -1
  322. package/dist-es/commands/ListKeyPoliciesCommand.js.map +0 -1
  323. package/dist-es/commands/ListKeysCommand.js.map +0 -1
  324. package/dist-es/commands/ListResourceTagsCommand.js.map +0 -1
  325. package/dist-es/commands/ListRetirableGrantsCommand.js.map +0 -1
  326. package/dist-es/commands/PutKeyPolicyCommand.js.map +0 -1
  327. package/dist-es/commands/ReEncryptCommand.js.map +0 -1
  328. package/dist-es/commands/ReplicateKeyCommand.js.map +0 -1
  329. package/dist-es/commands/RetireGrantCommand.js.map +0 -1
  330. package/dist-es/commands/RevokeGrantCommand.js.map +0 -1
  331. package/dist-es/commands/ScheduleKeyDeletionCommand.js.map +0 -1
  332. package/dist-es/commands/SignCommand.js.map +0 -1
  333. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  334. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  335. package/dist-es/commands/UpdateAliasCommand.js.map +0 -1
  336. package/dist-es/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
  337. package/dist-es/commands/UpdateKeyDescriptionCommand.js.map +0 -1
  338. package/dist-es/commands/UpdatePrimaryRegionCommand.js.map +0 -1
  339. package/dist-es/commands/VerifyCommand.js.map +0 -1
  340. package/dist-es/endpoints.js.map +0 -1
  341. package/dist-es/index.js.map +0 -1
  342. package/dist-es/models/index.js.map +0 -1
  343. package/dist-es/models/models_0.js.map +0 -1
  344. package/dist-es/pagination/Interfaces.js.map +0 -1
  345. package/dist-es/pagination/ListAliasesPaginator.js.map +0 -1
  346. package/dist-es/pagination/ListGrantsPaginator.js.map +0 -1
  347. package/dist-es/pagination/ListKeyPoliciesPaginator.js.map +0 -1
  348. package/dist-es/pagination/ListKeysPaginator.js.map +0 -1
  349. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  350. package/dist-es/runtimeConfig.browser.js.map +0 -1
  351. package/dist-es/runtimeConfig.js.map +0 -1
  352. package/dist-es/runtimeConfig.native.js.map +0 -1
  353. package/dist-es/runtimeConfig.shared.js.map +0 -1
  354. package/jest.config.js +0 -4
  355. package/src/KMS.ts +0 -4019
  356. package/src/KMSClient.ts +0 -516
  357. package/src/commands/CancelKeyDeletionCommand.ts +0 -106
  358. package/src/commands/ConnectCustomKeyStoreCommand.ts +0 -156
  359. package/src/commands/CreateAliasCommand.ts +0 -148
  360. package/src/commands/CreateCustomKeyStoreCommand.ts +0 -144
  361. package/src/commands/CreateGrantCommand.ts +0 -154
  362. package/src/commands/CreateKeyCommand.ts +0 -210
  363. package/src/commands/DecryptCommand.ts +0 -173
  364. package/src/commands/DeleteAliasCommand.ts +0 -138
  365. package/src/commands/DeleteCustomKeyStoreCommand.ts +0 -150
  366. package/src/commands/DeleteImportedKeyMaterialCommand.ts +0 -128
  367. package/src/commands/DescribeCustomKeyStoresCommand.ts +0 -148
  368. package/src/commands/DescribeKeyCommand.ts +0 -172
  369. package/src/commands/DisableKeyCommand.ts +0 -109
  370. package/src/commands/DisableKeyRotationCommand.ts +0 -119
  371. package/src/commands/DisconnectCustomKeyStoreCommand.ts +0 -145
  372. package/src/commands/EnableKeyCommand.ts +0 -98
  373. package/src/commands/EnableKeyRotationCommand.ts +0 -119
  374. package/src/commands/EncryptCommand.ts +0 -210
  375. package/src/commands/GenerateDataKeyCommand.ts +0 -189
  376. package/src/commands/GenerateDataKeyPairCommand.ts +0 -169
  377. package/src/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +0 -169
  378. package/src/commands/GenerateDataKeyWithoutPlaintextCommand.ts +0 -172
  379. package/src/commands/GenerateRandomCommand.ts +0 -103
  380. package/src/commands/GetKeyPolicyCommand.ts +0 -103
  381. package/src/commands/GetKeyRotationStatusCommand.ts +0 -131
  382. package/src/commands/GetParametersForImportCommand.ts +0 -130
  383. package/src/commands/GetPublicKeyCommand.ts +0 -139
  384. package/src/commands/ImportKeyMaterialCommand.ts +0 -158
  385. package/src/commands/ListAliasesCommand.ts +0 -134
  386. package/src/commands/ListGrantsCommand.ts +0 -140
  387. package/src/commands/ListKeyPoliciesCommand.ts +0 -117
  388. package/src/commands/ListKeysCommand.ts +0 -119
  389. package/src/commands/ListResourceTagsCommand.ts +0 -129
  390. package/src/commands/ListRetirableGrantsCommand.ts +0 -137
  391. package/src/commands/PutKeyPolicyCommand.ts +0 -108
  392. package/src/commands/ReEncryptCommand.ts +0 -180
  393. package/src/commands/ReplicateKeyCommand.ts +0 -172
  394. package/src/commands/RetireGrantCommand.ts +0 -139
  395. package/src/commands/RevokeGrantCommand.ts +0 -139
  396. package/src/commands/ScheduleKeyDeletionCommand.ts +0 -145
  397. package/src/commands/SignCommand.ts +0 -132
  398. package/src/commands/TagResourceCommand.ts +0 -140
  399. package/src/commands/UntagResourceCommand.ts +0 -138
  400. package/src/commands/UpdateAliasCommand.ts +0 -153
  401. package/src/commands/UpdateCustomKeyStoreCommand.ts +0 -167
  402. package/src/commands/UpdateKeyDescriptionCommand.ts +0 -118
  403. package/src/commands/UpdatePrimaryRegionCommand.ts +0 -160
  404. package/src/commands/VerifyCommand.ts +0 -118
  405. package/src/endpoints.ts +0 -62
  406. package/src/index.ts +0 -56
  407. package/src/models/index.ts +0 -1
  408. package/src/models/models_0.ts +0 -4742
  409. package/src/pagination/Interfaces.ts +0 -8
  410. package/src/pagination/ListAliasesPaginator.ts +0 -55
  411. package/src/pagination/ListGrantsPaginator.ts +0 -55
  412. package/src/pagination/ListKeyPoliciesPaginator.ts +0 -59
  413. package/src/pagination/ListKeysPaginator.ts +0 -55
  414. package/src/protocols/Aws_json1_1.ts +0 -7632
  415. package/src/runtimeConfig.browser.ts +0 -41
  416. package/src/runtimeConfig.native.ts +0 -17
  417. package/src/runtimeConfig.shared.ts +0 -17
  418. package/src/runtimeConfig.ts +0 -46
  419. package/tsconfig.es.json +0 -10
  420. package/tsconfig.json +0 -33
  421. package/tsconfig.types.json +0 -9
package/src/KMSClient.ts DELETED
@@ -1,516 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput } from "./commands/CancelKeyDeletionCommand";
53
- import {
54
- ConnectCustomKeyStoreCommandInput,
55
- ConnectCustomKeyStoreCommandOutput,
56
- } from "./commands/ConnectCustomKeyStoreCommand";
57
- import { CreateAliasCommandInput, CreateAliasCommandOutput } from "./commands/CreateAliasCommand";
58
- import {
59
- CreateCustomKeyStoreCommandInput,
60
- CreateCustomKeyStoreCommandOutput,
61
- } from "./commands/CreateCustomKeyStoreCommand";
62
- import { CreateGrantCommandInput, CreateGrantCommandOutput } from "./commands/CreateGrantCommand";
63
- import { CreateKeyCommandInput, CreateKeyCommandOutput } from "./commands/CreateKeyCommand";
64
- import { DecryptCommandInput, DecryptCommandOutput } from "./commands/DecryptCommand";
65
- import { DeleteAliasCommandInput, DeleteAliasCommandOutput } from "./commands/DeleteAliasCommand";
66
- import {
67
- DeleteCustomKeyStoreCommandInput,
68
- DeleteCustomKeyStoreCommandOutput,
69
- } from "./commands/DeleteCustomKeyStoreCommand";
70
- import {
71
- DeleteImportedKeyMaterialCommandInput,
72
- DeleteImportedKeyMaterialCommandOutput,
73
- } from "./commands/DeleteImportedKeyMaterialCommand";
74
- import {
75
- DescribeCustomKeyStoresCommandInput,
76
- DescribeCustomKeyStoresCommandOutput,
77
- } from "./commands/DescribeCustomKeyStoresCommand";
78
- import { DescribeKeyCommandInput, DescribeKeyCommandOutput } from "./commands/DescribeKeyCommand";
79
- import { DisableKeyCommandInput, DisableKeyCommandOutput } from "./commands/DisableKeyCommand";
80
- import { DisableKeyRotationCommandInput, DisableKeyRotationCommandOutput } from "./commands/DisableKeyRotationCommand";
81
- import {
82
- DisconnectCustomKeyStoreCommandInput,
83
- DisconnectCustomKeyStoreCommandOutput,
84
- } from "./commands/DisconnectCustomKeyStoreCommand";
85
- import { EnableKeyCommandInput, EnableKeyCommandOutput } from "./commands/EnableKeyCommand";
86
- import { EnableKeyRotationCommandInput, EnableKeyRotationCommandOutput } from "./commands/EnableKeyRotationCommand";
87
- import { EncryptCommandInput, EncryptCommandOutput } from "./commands/EncryptCommand";
88
- import { GenerateDataKeyCommandInput, GenerateDataKeyCommandOutput } from "./commands/GenerateDataKeyCommand";
89
- import {
90
- GenerateDataKeyPairCommandInput,
91
- GenerateDataKeyPairCommandOutput,
92
- } from "./commands/GenerateDataKeyPairCommand";
93
- import {
94
- GenerateDataKeyPairWithoutPlaintextCommandInput,
95
- GenerateDataKeyPairWithoutPlaintextCommandOutput,
96
- } from "./commands/GenerateDataKeyPairWithoutPlaintextCommand";
97
- import {
98
- GenerateDataKeyWithoutPlaintextCommandInput,
99
- GenerateDataKeyWithoutPlaintextCommandOutput,
100
- } from "./commands/GenerateDataKeyWithoutPlaintextCommand";
101
- import { GenerateRandomCommandInput, GenerateRandomCommandOutput } from "./commands/GenerateRandomCommand";
102
- import { GetKeyPolicyCommandInput, GetKeyPolicyCommandOutput } from "./commands/GetKeyPolicyCommand";
103
- import {
104
- GetKeyRotationStatusCommandInput,
105
- GetKeyRotationStatusCommandOutput,
106
- } from "./commands/GetKeyRotationStatusCommand";
107
- import {
108
- GetParametersForImportCommandInput,
109
- GetParametersForImportCommandOutput,
110
- } from "./commands/GetParametersForImportCommand";
111
- import { GetPublicKeyCommandInput, GetPublicKeyCommandOutput } from "./commands/GetPublicKeyCommand";
112
- import { ImportKeyMaterialCommandInput, ImportKeyMaterialCommandOutput } from "./commands/ImportKeyMaterialCommand";
113
- import { ListAliasesCommandInput, ListAliasesCommandOutput } from "./commands/ListAliasesCommand";
114
- import { ListGrantsCommandInput, ListGrantsCommandOutput } from "./commands/ListGrantsCommand";
115
- import { ListKeyPoliciesCommandInput, ListKeyPoliciesCommandOutput } from "./commands/ListKeyPoliciesCommand";
116
- import { ListKeysCommandInput, ListKeysCommandOutput } from "./commands/ListKeysCommand";
117
- import { ListResourceTagsCommandInput, ListResourceTagsCommandOutput } from "./commands/ListResourceTagsCommand";
118
- import {
119
- ListRetirableGrantsCommandInput,
120
- ListRetirableGrantsCommandOutput,
121
- } from "./commands/ListRetirableGrantsCommand";
122
- import { PutKeyPolicyCommandInput, PutKeyPolicyCommandOutput } from "./commands/PutKeyPolicyCommand";
123
- import { ReEncryptCommandInput, ReEncryptCommandOutput } from "./commands/ReEncryptCommand";
124
- import { ReplicateKeyCommandInput, ReplicateKeyCommandOutput } from "./commands/ReplicateKeyCommand";
125
- import { RetireGrantCommandInput, RetireGrantCommandOutput } from "./commands/RetireGrantCommand";
126
- import { RevokeGrantCommandInput, RevokeGrantCommandOutput } from "./commands/RevokeGrantCommand";
127
- import {
128
- ScheduleKeyDeletionCommandInput,
129
- ScheduleKeyDeletionCommandOutput,
130
- } from "./commands/ScheduleKeyDeletionCommand";
131
- import { SignCommandInput, SignCommandOutput } from "./commands/SignCommand";
132
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
133
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
134
- import { UpdateAliasCommandInput, UpdateAliasCommandOutput } from "./commands/UpdateAliasCommand";
135
- import {
136
- UpdateCustomKeyStoreCommandInput,
137
- UpdateCustomKeyStoreCommandOutput,
138
- } from "./commands/UpdateCustomKeyStoreCommand";
139
- import {
140
- UpdateKeyDescriptionCommandInput,
141
- UpdateKeyDescriptionCommandOutput,
142
- } from "./commands/UpdateKeyDescriptionCommand";
143
- import {
144
- UpdatePrimaryRegionCommandInput,
145
- UpdatePrimaryRegionCommandOutput,
146
- } from "./commands/UpdatePrimaryRegionCommand";
147
- import { VerifyCommandInput, VerifyCommandOutput } from "./commands/VerifyCommand";
148
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
149
-
150
- export type ServiceInputTypes =
151
- | CancelKeyDeletionCommandInput
152
- | ConnectCustomKeyStoreCommandInput
153
- | CreateAliasCommandInput
154
- | CreateCustomKeyStoreCommandInput
155
- | CreateGrantCommandInput
156
- | CreateKeyCommandInput
157
- | DecryptCommandInput
158
- | DeleteAliasCommandInput
159
- | DeleteCustomKeyStoreCommandInput
160
- | DeleteImportedKeyMaterialCommandInput
161
- | DescribeCustomKeyStoresCommandInput
162
- | DescribeKeyCommandInput
163
- | DisableKeyCommandInput
164
- | DisableKeyRotationCommandInput
165
- | DisconnectCustomKeyStoreCommandInput
166
- | EnableKeyCommandInput
167
- | EnableKeyRotationCommandInput
168
- | EncryptCommandInput
169
- | GenerateDataKeyCommandInput
170
- | GenerateDataKeyPairCommandInput
171
- | GenerateDataKeyPairWithoutPlaintextCommandInput
172
- | GenerateDataKeyWithoutPlaintextCommandInput
173
- | GenerateRandomCommandInput
174
- | GetKeyPolicyCommandInput
175
- | GetKeyRotationStatusCommandInput
176
- | GetParametersForImportCommandInput
177
- | GetPublicKeyCommandInput
178
- | ImportKeyMaterialCommandInput
179
- | ListAliasesCommandInput
180
- | ListGrantsCommandInput
181
- | ListKeyPoliciesCommandInput
182
- | ListKeysCommandInput
183
- | ListResourceTagsCommandInput
184
- | ListRetirableGrantsCommandInput
185
- | PutKeyPolicyCommandInput
186
- | ReEncryptCommandInput
187
- | ReplicateKeyCommandInput
188
- | RetireGrantCommandInput
189
- | RevokeGrantCommandInput
190
- | ScheduleKeyDeletionCommandInput
191
- | SignCommandInput
192
- | TagResourceCommandInput
193
- | UntagResourceCommandInput
194
- | UpdateAliasCommandInput
195
- | UpdateCustomKeyStoreCommandInput
196
- | UpdateKeyDescriptionCommandInput
197
- | UpdatePrimaryRegionCommandInput
198
- | VerifyCommandInput;
199
-
200
- export type ServiceOutputTypes =
201
- | CancelKeyDeletionCommandOutput
202
- | ConnectCustomKeyStoreCommandOutput
203
- | CreateAliasCommandOutput
204
- | CreateCustomKeyStoreCommandOutput
205
- | CreateGrantCommandOutput
206
- | CreateKeyCommandOutput
207
- | DecryptCommandOutput
208
- | DeleteAliasCommandOutput
209
- | DeleteCustomKeyStoreCommandOutput
210
- | DeleteImportedKeyMaterialCommandOutput
211
- | DescribeCustomKeyStoresCommandOutput
212
- | DescribeKeyCommandOutput
213
- | DisableKeyCommandOutput
214
- | DisableKeyRotationCommandOutput
215
- | DisconnectCustomKeyStoreCommandOutput
216
- | EnableKeyCommandOutput
217
- | EnableKeyRotationCommandOutput
218
- | EncryptCommandOutput
219
- | GenerateDataKeyCommandOutput
220
- | GenerateDataKeyPairCommandOutput
221
- | GenerateDataKeyPairWithoutPlaintextCommandOutput
222
- | GenerateDataKeyWithoutPlaintextCommandOutput
223
- | GenerateRandomCommandOutput
224
- | GetKeyPolicyCommandOutput
225
- | GetKeyRotationStatusCommandOutput
226
- | GetParametersForImportCommandOutput
227
- | GetPublicKeyCommandOutput
228
- | ImportKeyMaterialCommandOutput
229
- | ListAliasesCommandOutput
230
- | ListGrantsCommandOutput
231
- | ListKeyPoliciesCommandOutput
232
- | ListKeysCommandOutput
233
- | ListResourceTagsCommandOutput
234
- | ListRetirableGrantsCommandOutput
235
- | PutKeyPolicyCommandOutput
236
- | ReEncryptCommandOutput
237
- | ReplicateKeyCommandOutput
238
- | RetireGrantCommandOutput
239
- | RevokeGrantCommandOutput
240
- | ScheduleKeyDeletionCommandOutput
241
- | SignCommandOutput
242
- | TagResourceCommandOutput
243
- | UntagResourceCommandOutput
244
- | UpdateAliasCommandOutput
245
- | UpdateCustomKeyStoreCommandOutput
246
- | UpdateKeyDescriptionCommandOutput
247
- | UpdatePrimaryRegionCommandOutput
248
- | VerifyCommandOutput;
249
-
250
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
251
- /**
252
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
253
- */
254
- requestHandler?: __HttpHandler;
255
-
256
- /**
257
- * A constructor for a class implementing the {@link __Hash} interface
258
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
259
- * @internal
260
- */
261
- sha256?: __HashConstructor;
262
-
263
- /**
264
- * The function that will be used to convert strings into HTTP endpoints.
265
- * @internal
266
- */
267
- urlParser?: __UrlParser;
268
-
269
- /**
270
- * A function that can calculate the length of a request body.
271
- * @internal
272
- */
273
- bodyLengthChecker?: (body: any) => number | undefined;
274
-
275
- /**
276
- * A function that converts a stream into an array of bytes.
277
- * @internal
278
- */
279
- streamCollector?: __StreamCollector;
280
-
281
- /**
282
- * The function that will be used to convert a base64-encoded string to a byte array.
283
- * @internal
284
- */
285
- base64Decoder?: __Decoder;
286
-
287
- /**
288
- * The function that will be used to convert binary data to a base64-encoded string.
289
- * @internal
290
- */
291
- base64Encoder?: __Encoder;
292
-
293
- /**
294
- * The function that will be used to convert a UTF8-encoded string to a byte array.
295
- * @internal
296
- */
297
- utf8Decoder?: __Decoder;
298
-
299
- /**
300
- * The function that will be used to convert binary data to a UTF-8 encoded string.
301
- * @internal
302
- */
303
- utf8Encoder?: __Encoder;
304
-
305
- /**
306
- * The runtime environment.
307
- * @internal
308
- */
309
- runtime?: string;
310
-
311
- /**
312
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
313
- * trait of an operation.
314
- */
315
- disableHostPrefix?: boolean;
316
-
317
- /**
318
- * Value for how many times a request will be made at most in case of retry.
319
- */
320
- maxAttempts?: number | __Provider<number>;
321
-
322
- /**
323
- * Specifies which retry algorithm to use.
324
- */
325
- retryMode?: string | __Provider<string>;
326
-
327
- /**
328
- * Optional logger for logging debug/info/warn/error.
329
- */
330
- logger?: __Logger;
331
-
332
- /**
333
- * Unique service identifier.
334
- * @internal
335
- */
336
- serviceId?: string;
337
-
338
- /**
339
- * The AWS region to which this client will send requests
340
- */
341
- region?: string | __Provider<string>;
342
-
343
- /**
344
- * Default credentials provider; Not available in browser runtime.
345
- * @internal
346
- */
347
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
348
-
349
- /**
350
- * Fetch related hostname, signing name or signing region with given region.
351
- * @internal
352
- */
353
- regionInfoProvider?: RegionInfoProvider;
354
-
355
- /**
356
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
357
- * @internal
358
- */
359
- defaultUserAgentProvider?: Provider<__UserAgent>;
360
- }
361
-
362
- type KMSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
363
- ClientDefaults &
364
- RegionInputConfig &
365
- EndpointsInputConfig &
366
- RetryInputConfig &
367
- HostHeaderInputConfig &
368
- AwsAuthInputConfig &
369
- UserAgentInputConfig;
370
- /**
371
- * The configuration interface of KMSClient class constructor that set the region, credentials and other options.
372
- */
373
- export interface KMSClientConfig extends KMSClientConfigType {}
374
-
375
- type KMSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
376
- Required<ClientDefaults> &
377
- RegionResolvedConfig &
378
- EndpointsResolvedConfig &
379
- RetryResolvedConfig &
380
- HostHeaderResolvedConfig &
381
- AwsAuthResolvedConfig &
382
- UserAgentResolvedConfig;
383
- /**
384
- * The resolved configuration interface of KMSClient class. This is resolved and normalized from the {@link KMSClientConfig | constructor configuration interface}.
385
- */
386
- export interface KMSClientResolvedConfig extends KMSClientResolvedConfigType {}
387
-
388
- /**
389
- * <fullname>Key Management Service</fullname>
390
- * <p>Key Management Service (KMS) is an encryption and key management web service. This guide describes
391
- * the KMS operations that you can call programmatically. For general information about KMS,
392
- * see the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/">
393
- * <i>Key Management Service Developer Guide</i>
394
- * </a>.</p>
395
- * <note>
396
- * <p>KMS is replacing the term <i>customer master key (CMK)</i> with <i>KMS key</i> and <i>KMS key</i>. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.</p>
397
- * <p>Amazon Web Services provides SDKs that consist of libraries and sample code for various programming
398
- * languages and platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs provide a
399
- * convenient way to create programmatic access to KMS and other Amazon Web Services services. For example,
400
- * the SDKs take care of tasks such as signing requests (see below), managing errors, and
401
- * retrying requests automatically. For more information about the Amazon Web Services SDKs, including how to
402
- * download and install them, see <a href="http://aws.amazon.com/tools/">Tools for Amazon Web
403
- * Services</a>.</p>
404
- * </note>
405
- * <p>We recommend that you use the Amazon Web Services SDKs to make programmatic API calls to KMS.</p>
406
- * <p>Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients
407
- * must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral
408
- * Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems
409
- * such as Java 7 and later support these modes.</p>
410
- * <p>
411
- * <b>Signing Requests</b>
412
- * </p>
413
- * <p>Requests must be signed by using an access key ID and a secret access key. We strongly
414
- * recommend that you <i>do not</i> use your Amazon Web Services account (root) access key ID and
415
- * secret key for everyday work with KMS. Instead, use the access key ID and secret access key
416
- * for an IAM user. You can also use the Amazon Web Services Security Token Service to generate temporary
417
- * security credentials that you can use to sign requests.</p>
418
- * <p>All KMS operations require <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4</a>.</p>
419
- * <p>
420
- * <b>Logging API Requests</b>
421
- * </p>
422
- * <p>KMS supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information
423
- * collected by CloudTrail, you can determine what requests were made to KMS, who made the request,
424
- * when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find
425
- * your log files, see the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/">CloudTrail User Guide</a>.</p>
426
- * <p>
427
- * <b>Additional Resources</b>
428
- * </p>
429
- * <p>For more information about credentials and request signing, see the following:</p>
430
- * <ul>
431
- * <li>
432
- * <p>
433
- * <a href="https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html">Amazon Web Services Security
434
- * Credentials</a> - This topic provides general information about the types of
435
- * credentials used to access Amazon Web Services.</p>
436
- * </li>
437
- * <li>
438
- * <p>
439
- * <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary
440
- * Security Credentials</a> - This section of the <i>IAM User Guide</i>
441
- * describes how to create and use temporary security credentials.</p>
442
- * </li>
443
- * <li>
444
- * <p>
445
- * <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version
446
- * 4 Signing Process</a> - This set of topics walks you through the process of signing
447
- * a request using an access key ID and a secret access key.</p>
448
- * </li>
449
- * </ul>
450
- * <p>
451
- * <b>Commonly Used API Operations</b>
452
- * </p>
453
- * <p>Of the API operations discussed in this guide, the following will prove the most useful
454
- * for most applications. You will likely perform operations other than these, such as creating
455
- * keys and assigning policies, by using the console.</p>
456
- * <ul>
457
- * <li>
458
- * <p>
459
- * <a>Encrypt</a>
460
- * </p>
461
- * </li>
462
- * <li>
463
- * <p>
464
- * <a>Decrypt</a>
465
- * </p>
466
- * </li>
467
- * <li>
468
- * <p>
469
- * <a>GenerateDataKey</a>
470
- * </p>
471
- * </li>
472
- * <li>
473
- * <p>
474
- * <a>GenerateDataKeyWithoutPlaintext</a>
475
- * </p>
476
- * </li>
477
- * </ul>
478
- */
479
- export class KMSClient extends __Client<
480
- __HttpHandlerOptions,
481
- ServiceInputTypes,
482
- ServiceOutputTypes,
483
- KMSClientResolvedConfig
484
- > {
485
- /**
486
- * The resolved configuration of KMSClient class. This is resolved and normalized from the {@link KMSClientConfig | constructor configuration interface}.
487
- */
488
- readonly config: KMSClientResolvedConfig;
489
-
490
- constructor(configuration: KMSClientConfig) {
491
- const _config_0 = __getRuntimeConfig(configuration);
492
- const _config_1 = resolveRegionConfig(_config_0);
493
- const _config_2 = resolveEndpointsConfig(_config_1);
494
- const _config_3 = resolveRetryConfig(_config_2);
495
- const _config_4 = resolveHostHeaderConfig(_config_3);
496
- const _config_5 = resolveAwsAuthConfig(_config_4);
497
- const _config_6 = resolveUserAgentConfig(_config_5);
498
- super(_config_6);
499
- this.config = _config_6;
500
- this.middlewareStack.use(getRetryPlugin(this.config));
501
- this.middlewareStack.use(getContentLengthPlugin(this.config));
502
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
503
- this.middlewareStack.use(getLoggerPlugin(this.config));
504
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
505
- this.middlewareStack.use(getUserAgentPlugin(this.config));
506
- }
507
-
508
- /**
509
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
510
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
511
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
512
- */
513
- destroy(): void {
514
- super.destroy();
515
- }
516
- }
@@ -1,106 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { KMSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KMSClient";
15
- import { CancelKeyDeletionRequest, CancelKeyDeletionResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CancelKeyDeletionCommand,
18
- serializeAws_json1_1CancelKeyDeletionCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CancelKeyDeletionCommandInput extends CancelKeyDeletionRequest {}
22
- export interface CancelKeyDeletionCommandOutput extends CancelKeyDeletionResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Cancels the deletion of a KMS key. When this operation succeeds, the key
26
- * state of the KMS key is <code>Disabled</code>. To enable the KMS key, use <a>EnableKey</a>. </p>
27
- * <p>For more information about scheduling and canceling deletion of a KMS key, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
28
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
29
- * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
30
- * <p>
31
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
32
- * <p>
33
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:CancelKeyDeletion</a> (key policy)</p>
34
- * <p>
35
- * <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
36
- * </p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { KMSClient, CancelKeyDeletionCommand } from "@aws-sdk/client-kms"; // ES Modules import
41
- * // const { KMSClient, CancelKeyDeletionCommand } = require("@aws-sdk/client-kms"); // CommonJS import
42
- * const client = new KMSClient(config);
43
- * const command = new CancelKeyDeletionCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link CancelKeyDeletionCommandInput} for command's `input` shape.
48
- * @see {@link CancelKeyDeletionCommandOutput} for command's `response` shape.
49
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class CancelKeyDeletionCommand extends $Command<
53
- CancelKeyDeletionCommandInput,
54
- CancelKeyDeletionCommandOutput,
55
- KMSClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: CancelKeyDeletionCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: KMSClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<CancelKeyDeletionCommandInput, CancelKeyDeletionCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "KMSClient";
80
- const commandName = "CancelKeyDeletionCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: CancelKeyDeletionRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: CancelKeyDeletionResponse.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: CancelKeyDeletionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_json1_1CancelKeyDeletionCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CancelKeyDeletionCommandOutput> {
101
- return deserializeAws_json1_1CancelKeyDeletionCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }