@aws-sdk/client-kms 3.32.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 (505) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +8 -7
  3. package/{dist/cjs → dist-cjs}/KMS.js +9 -9
  4. package/{dist/cjs → dist-cjs}/KMSClient.js +16 -16
  5. package/{dist/cjs → dist-cjs}/commands/CancelKeyDeletionCommand.js +8 -7
  6. package/{dist/cjs → dist-cjs}/commands/ConnectCustomKeyStoreCommand.js +5 -6
  7. package/{dist/cjs → dist-cjs}/commands/CreateAliasCommand.js +13 -10
  8. package/{dist/cjs → dist-cjs}/commands/CreateCustomKeyStoreCommand.js +2 -3
  9. package/{dist/cjs → dist-cjs}/commands/CreateGrantCommand.js +16 -14
  10. package/{dist/cjs → dist-cjs}/commands/CreateKeyCommand.js +18 -17
  11. package/{dist/cjs → dist-cjs}/commands/DecryptCommand.js +26 -24
  12. package/{dist/cjs → dist-cjs}/commands/DeleteAliasCommand.js +13 -10
  13. package/{dist/cjs → dist-cjs}/commands/DeleteCustomKeyStoreCommand.js +12 -14
  14. package/{dist/cjs → dist-cjs}/commands/DeleteImportedKeyMaterialCommand.js +7 -9
  15. package/{dist/cjs → dist-cjs}/commands/DescribeCustomKeyStoresCommand.js +6 -7
  16. package/{dist/cjs → dist-cjs}/commands/DescribeKeyCommand.js +14 -13
  17. package/{dist/cjs → dist-cjs}/commands/DisableKeyCommand.js +7 -7
  18. package/{dist/cjs → dist-cjs}/commands/DisableKeyRotationCommand.js +4 -4
  19. package/{dist/cjs → dist-cjs}/commands/DisconnectCustomKeyStoreCommand.js +8 -7
  20. package/{dist/cjs → dist-cjs}/commands/EnableKeyCommand.js +6 -5
  21. package/{dist/cjs → dist-cjs}/commands/EnableKeyRotationCommand.js +4 -4
  22. package/{dist/cjs → dist-cjs}/commands/EncryptCommand.js +16 -15
  23. package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyCommand.js +17 -15
  24. package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyPairCommand.js +17 -16
  25. package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +18 -16
  26. package/{dist/cjs → dist-cjs}/commands/GenerateDataKeyWithoutPlaintextCommand.js +13 -12
  27. package/{dist/cjs → dist-cjs}/commands/GenerateRandomCommand.js +4 -4
  28. package/{dist/cjs → dist-cjs}/commands/GetKeyPolicyCommand.js +2 -3
  29. package/{dist/cjs → dist-cjs}/commands/GetKeyRotationStatusCommand.js +4 -4
  30. package/{dist/cjs → dist-cjs}/commands/GetParametersForImportCommand.js +9 -11
  31. package/{dist/cjs → dist-cjs}/commands/GetPublicKeyCommand.js +9 -8
  32. package/{dist/cjs → dist-cjs}/commands/ImportKeyMaterialCommand.js +15 -16
  33. package/{dist/cjs → dist-cjs}/commands/ListAliasesCommand.js +15 -13
  34. package/{dist/cjs → dist-cjs}/commands/ListGrantsCommand.js +4 -5
  35. package/{dist/cjs → dist-cjs}/commands/ListKeyPoliciesCommand.js +5 -6
  36. package/{dist/cjs → dist-cjs}/commands/ListKeysCommand.js +3 -5
  37. package/{dist/cjs → dist-cjs}/commands/ListResourceTagsCommand.js +2 -3
  38. package/{dist/cjs → dist-cjs}/commands/ListRetirableGrantsCommand.js +9 -9
  39. package/{dist/cjs → dist-cjs}/commands/PutKeyPolicyCommand.js +2 -3
  40. package/{dist/cjs → dist-cjs}/commands/ReEncryptCommand.js +35 -30
  41. package/{dist/cjs → dist-cjs}/commands/ReplicateKeyCommand.js +7 -8
  42. package/{dist/cjs → dist-cjs}/commands/RetireGrantCommand.js +9 -8
  43. package/{dist/cjs → dist-cjs}/commands/RevokeGrantCommand.js +3 -5
  44. package/{dist/cjs → dist-cjs}/commands/ScheduleKeyDeletionCommand.js +21 -18
  45. package/{dist/cjs → dist-cjs}/commands/SignCommand.js +12 -12
  46. package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +8 -7
  47. package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -6
  48. package/{dist/cjs → dist-cjs}/commands/UpdateAliasCommand.js +17 -14
  49. package/{dist/cjs → dist-cjs}/commands/UpdateCustomKeyStoreCommand.js +19 -20
  50. package/{dist/cjs → dist-cjs}/commands/UpdateKeyDescriptionCommand.js +5 -6
  51. package/{dist/cjs → dist-cjs}/commands/UpdatePrimaryRegionCommand.js +3 -4
  52. package/{dist/cjs → dist-cjs}/commands/VerifyCommand.js +7 -8
  53. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  54. package/{dist/cjs → dist-cjs}/index.js +0 -1
  55. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  56. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  57. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  58. package/{dist/cjs → dist-cjs}/pagination/ListAliasesPaginator.js +1 -2
  59. package/{dist/cjs → dist-cjs}/pagination/ListGrantsPaginator.js +1 -2
  60. package/{dist/cjs → dist-cjs}/pagination/ListKeyPoliciesPaginator.js +1 -2
  61. package/{dist/cjs → dist-cjs}/pagination/ListKeysPaginator.js +1 -2
  62. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
  63. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  64. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  65. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  66. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  67. package/{dist/es → dist-es}/KMS.js +2 -94
  68. package/dist-es/KMSClient.js +37 -0
  69. package/dist-es/commands/CancelKeyDeletionCommand.js +39 -0
  70. package/dist-es/commands/ConnectCustomKeyStoreCommand.js +39 -0
  71. package/dist-es/commands/CreateAliasCommand.js +39 -0
  72. package/dist-es/commands/CreateCustomKeyStoreCommand.js +39 -0
  73. package/dist-es/commands/CreateGrantCommand.js +39 -0
  74. package/dist-es/commands/CreateKeyCommand.js +39 -0
  75. package/dist-es/commands/DecryptCommand.js +39 -0
  76. package/dist-es/commands/DeleteAliasCommand.js +39 -0
  77. package/dist-es/commands/DeleteCustomKeyStoreCommand.js +39 -0
  78. package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +39 -0
  79. package/dist-es/commands/DescribeCustomKeyStoresCommand.js +39 -0
  80. package/dist-es/commands/DescribeKeyCommand.js +39 -0
  81. package/dist-es/commands/DisableKeyCommand.js +39 -0
  82. package/dist-es/commands/DisableKeyRotationCommand.js +39 -0
  83. package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +39 -0
  84. package/dist-es/commands/EnableKeyCommand.js +39 -0
  85. package/dist-es/commands/EnableKeyRotationCommand.js +39 -0
  86. package/dist-es/commands/EncryptCommand.js +39 -0
  87. package/dist-es/commands/GenerateDataKeyCommand.js +39 -0
  88. package/dist-es/commands/GenerateDataKeyPairCommand.js +39 -0
  89. package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +39 -0
  90. package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +39 -0
  91. package/dist-es/commands/GenerateRandomCommand.js +39 -0
  92. package/{dist/es → dist-es}/commands/GetKeyPolicyCommand.js +4 -38
  93. package/dist-es/commands/GetKeyRotationStatusCommand.js +39 -0
  94. package/dist-es/commands/GetParametersForImportCommand.js +39 -0
  95. package/dist-es/commands/GetPublicKeyCommand.js +39 -0
  96. package/dist-es/commands/ImportKeyMaterialCommand.js +39 -0
  97. package/dist-es/commands/ListAliasesCommand.js +39 -0
  98. package/dist-es/commands/ListGrantsCommand.js +39 -0
  99. package/dist-es/commands/ListKeyPoliciesCommand.js +39 -0
  100. package/dist-es/commands/ListKeysCommand.js +39 -0
  101. package/dist-es/commands/ListResourceTagsCommand.js +39 -0
  102. package/dist-es/commands/ListRetirableGrantsCommand.js +39 -0
  103. package/dist-es/commands/PutKeyPolicyCommand.js +39 -0
  104. package/dist-es/commands/ReEncryptCommand.js +39 -0
  105. package/dist-es/commands/ReplicateKeyCommand.js +39 -0
  106. package/dist-es/commands/RetireGrantCommand.js +39 -0
  107. package/dist-es/commands/RevokeGrantCommand.js +39 -0
  108. package/dist-es/commands/ScheduleKeyDeletionCommand.js +39 -0
  109. package/dist-es/commands/SignCommand.js +39 -0
  110. package/dist-es/commands/TagResourceCommand.js +39 -0
  111. package/dist-es/commands/UntagResourceCommand.js +39 -0
  112. package/dist-es/commands/UpdateAliasCommand.js +39 -0
  113. package/dist-es/commands/UpdateCustomKeyStoreCommand.js +39 -0
  114. package/dist-es/commands/UpdateKeyDescriptionCommand.js +39 -0
  115. package/dist-es/commands/UpdatePrimaryRegionCommand.js +39 -0
  116. package/dist-es/commands/VerifyCommand.js +39 -0
  117. package/{dist/es → dist-es}/endpoints.js +1 -2
  118. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  119. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  120. package/{dist/es → dist-es}/models/models_0.js +0 -367
  121. package/dist-es/pagination/Interfaces.js +1 -0
  122. package/{dist/es → dist-es}/pagination/ListAliasesPaginator.js +17 -30
  123. package/{dist/es → dist-es}/pagination/ListGrantsPaginator.js +17 -30
  124. package/{dist/es → dist-es}/pagination/ListKeyPoliciesPaginator.js +17 -30
  125. package/{dist/es → dist-es}/pagination/ListKeysPaginator.js +17 -30
  126. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +1615 -1621
  127. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  128. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  129. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  130. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  131. package/{dist/types → dist-types}/KMS.d.ts +398 -336
  132. package/{dist/types → dist-types}/KMSClient.d.ts +16 -15
  133. package/{dist/types → dist-types}/commands/CancelKeyDeletionCommand.d.ts +8 -6
  134. package/{dist/types → dist-types}/commands/ConnectCustomKeyStoreCommand.d.ts +5 -5
  135. package/{dist/types → dist-types}/commands/CreateAliasCommand.d.ts +13 -9
  136. package/{dist/types → dist-types}/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
  137. package/{dist/types → dist-types}/commands/CreateGrantCommand.d.ts +16 -13
  138. package/{dist/types → dist-types}/commands/CreateKeyCommand.d.ts +18 -16
  139. package/{dist/types → dist-types}/commands/DecryptCommand.d.ts +26 -23
  140. package/{dist/types → dist-types}/commands/DeleteAliasCommand.d.ts +13 -9
  141. package/{dist/types → dist-types}/commands/DeleteCustomKeyStoreCommand.d.ts +12 -13
  142. package/{dist/types → dist-types}/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -8
  143. package/{dist/types → dist-types}/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
  144. package/{dist/types → dist-types}/commands/DescribeKeyCommand.d.ts +14 -12
  145. package/{dist/types → dist-types}/commands/DisableKeyCommand.d.ts +7 -6
  146. package/{dist/types → dist-types}/commands/DisableKeyRotationCommand.d.ts +4 -3
  147. package/{dist/types → dist-types}/commands/DisconnectCustomKeyStoreCommand.d.ts +8 -6
  148. package/{dist/types → dist-types}/commands/EnableKeyCommand.d.ts +6 -4
  149. package/{dist/types → dist-types}/commands/EnableKeyRotationCommand.d.ts +4 -3
  150. package/{dist/types → dist-types}/commands/EncryptCommand.d.ts +16 -14
  151. package/{dist/types → dist-types}/commands/GenerateDataKeyCommand.d.ts +17 -14
  152. package/{dist/types → dist-types}/commands/GenerateDataKeyPairCommand.d.ts +17 -15
  153. package/{dist/types → dist-types}/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +18 -15
  154. package/{dist/types → dist-types}/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +13 -11
  155. package/{dist/types → dist-types}/commands/GenerateRandomCommand.d.ts +4 -3
  156. package/{dist/types → dist-types}/commands/GetKeyPolicyCommand.d.ts +2 -2
  157. package/{dist/types → dist-types}/commands/GetKeyRotationStatusCommand.d.ts +4 -3
  158. package/{dist/types → dist-types}/commands/GetParametersForImportCommand.d.ts +9 -10
  159. package/{dist/types → dist-types}/commands/GetPublicKeyCommand.d.ts +9 -7
  160. package/{dist/types → dist-types}/commands/ImportKeyMaterialCommand.d.ts +15 -15
  161. package/{dist/types → dist-types}/commands/ListAliasesCommand.d.ts +15 -12
  162. package/{dist/types → dist-types}/commands/ListGrantsCommand.d.ts +4 -4
  163. package/{dist/types → dist-types}/commands/ListKeyPoliciesCommand.d.ts +5 -5
  164. package/{dist/types → dist-types}/commands/ListKeysCommand.d.ts +3 -4
  165. package/{dist/types → dist-types}/commands/ListResourceTagsCommand.d.ts +2 -2
  166. package/{dist/types → dist-types}/commands/ListRetirableGrantsCommand.d.ts +9 -8
  167. package/{dist/types → dist-types}/commands/PutKeyPolicyCommand.d.ts +2 -2
  168. package/{dist/types → dist-types}/commands/ReEncryptCommand.d.ts +35 -29
  169. package/{dist/types → dist-types}/commands/ReplicateKeyCommand.d.ts +7 -7
  170. package/{dist/types → dist-types}/commands/RetireGrantCommand.d.ts +9 -7
  171. package/{dist/types → dist-types}/commands/RevokeGrantCommand.d.ts +3 -4
  172. package/{dist/types → dist-types}/commands/ScheduleKeyDeletionCommand.d.ts +21 -17
  173. package/{dist/types → dist-types}/commands/SignCommand.d.ts +12 -11
  174. package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +8 -6
  175. package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +5 -5
  176. package/{dist/types → dist-types}/commands/UpdateAliasCommand.d.ts +17 -13
  177. package/{dist/types → dist-types}/commands/UpdateCustomKeyStoreCommand.d.ts +19 -19
  178. package/{dist/types → dist-types}/commands/UpdateKeyDescriptionCommand.d.ts +5 -5
  179. package/{dist/types → dist-types}/commands/UpdatePrimaryRegionCommand.d.ts +3 -3
  180. package/{dist/types → dist-types}/commands/VerifyCommand.d.ts +7 -7
  181. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  182. package/{index.ts → dist-types/index.d.ts} +0 -0
  183. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  184. package/{dist/types → dist-types}/models/models_0.d.ts +296 -249
  185. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  186. package/{dist/types → dist-types}/pagination/ListAliasesPaginator.d.ts +1 -1
  187. package/{dist/types → dist-types}/pagination/ListGrantsPaginator.d.ts +1 -1
  188. package/{dist/types → dist-types}/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
  189. package/{dist/types → dist-types}/pagination/ListKeysPaginator.d.ts +1 -1
  190. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  191. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  192. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
  193. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
  194. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  195. package/{dist/types → dist-types}/ts3.4/KMS.d.ts +398 -336
  196. package/{dist/types → dist-types}/ts3.4/KMSClient.d.ts +16 -15
  197. package/{dist/types → dist-types}/ts3.4/commands/CancelKeyDeletionCommand.d.ts +8 -6
  198. package/{dist/types → dist-types}/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +5 -5
  199. package/{dist/types → dist-types}/ts3.4/commands/CreateAliasCommand.d.ts +13 -9
  200. package/{dist/types → dist-types}/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
  201. package/{dist/types → dist-types}/ts3.4/commands/CreateGrantCommand.d.ts +16 -13
  202. package/{dist/types → dist-types}/ts3.4/commands/CreateKeyCommand.d.ts +18 -16
  203. package/{dist/types → dist-types}/ts3.4/commands/DecryptCommand.d.ts +26 -23
  204. package/{dist/types → dist-types}/ts3.4/commands/DeleteAliasCommand.d.ts +13 -9
  205. package/{dist/types → dist-types}/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +12 -13
  206. package/{dist/types → dist-types}/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +7 -8
  207. package/{dist/types → dist-types}/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +6 -6
  208. package/{dist/types → dist-types}/ts3.4/commands/DescribeKeyCommand.d.ts +14 -12
  209. package/{dist/types → dist-types}/ts3.4/commands/DisableKeyCommand.d.ts +7 -6
  210. package/{dist/types → dist-types}/ts3.4/commands/DisableKeyRotationCommand.d.ts +4 -3
  211. package/{dist/types → dist-types}/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +8 -6
  212. package/{dist/types → dist-types}/ts3.4/commands/EnableKeyCommand.d.ts +6 -4
  213. package/{dist/types → dist-types}/ts3.4/commands/EnableKeyRotationCommand.d.ts +4 -3
  214. package/{dist/types → dist-types}/ts3.4/commands/EncryptCommand.d.ts +16 -14
  215. package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyCommand.d.ts +17 -14
  216. package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +17 -15
  217. package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +18 -15
  218. package/{dist/types → dist-types}/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +13 -11
  219. package/{dist/types → dist-types}/ts3.4/commands/GenerateRandomCommand.d.ts +4 -3
  220. package/{dist/types → dist-types}/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -2
  221. package/{dist/types → dist-types}/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +4 -3
  222. package/{dist/types → dist-types}/ts3.4/commands/GetParametersForImportCommand.d.ts +9 -10
  223. package/{dist/types → dist-types}/ts3.4/commands/GetPublicKeyCommand.d.ts +9 -7
  224. package/{dist/types → dist-types}/ts3.4/commands/ImportKeyMaterialCommand.d.ts +15 -15
  225. package/{dist/types → dist-types}/ts3.4/commands/ListAliasesCommand.d.ts +15 -12
  226. package/{dist/types → dist-types}/ts3.4/commands/ListGrantsCommand.d.ts +4 -4
  227. package/{dist/types → dist-types}/ts3.4/commands/ListKeyPoliciesCommand.d.ts +5 -5
  228. package/{dist/types → dist-types}/ts3.4/commands/ListKeysCommand.d.ts +3 -4
  229. package/{dist/types → dist-types}/ts3.4/commands/ListResourceTagsCommand.d.ts +2 -2
  230. package/{dist/types → dist-types}/ts3.4/commands/ListRetirableGrantsCommand.d.ts +9 -8
  231. package/{dist/types → dist-types}/ts3.4/commands/PutKeyPolicyCommand.d.ts +2 -2
  232. package/{dist/types → dist-types}/ts3.4/commands/ReEncryptCommand.d.ts +35 -29
  233. package/{dist/types → dist-types}/ts3.4/commands/ReplicateKeyCommand.d.ts +7 -7
  234. package/{dist/types → dist-types}/ts3.4/commands/RetireGrantCommand.d.ts +9 -7
  235. package/{dist/types → dist-types}/ts3.4/commands/RevokeGrantCommand.d.ts +3 -4
  236. package/{dist/types → dist-types}/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +21 -17
  237. package/{dist/types → dist-types}/ts3.4/commands/SignCommand.d.ts +12 -11
  238. package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +8 -6
  239. package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +5 -5
  240. package/{dist/types → dist-types}/ts3.4/commands/UpdateAliasCommand.d.ts +17 -13
  241. package/{dist/types → dist-types}/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +19 -19
  242. package/{dist/types → dist-types}/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +5 -5
  243. package/{dist/types → dist-types}/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +3 -3
  244. package/{dist/types → dist-types}/ts3.4/commands/VerifyCommand.d.ts +7 -7
  245. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  246. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  247. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  248. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +296 -249
  249. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  250. package/{dist/types → dist-types}/ts3.4/pagination/ListAliasesPaginator.d.ts +1 -1
  251. package/{dist/types → dist-types}/ts3.4/pagination/ListGrantsPaginator.d.ts +1 -1
  252. package/{dist/types → dist-types}/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
  253. package/{dist/types → dist-types}/ts3.4/pagination/ListKeysPaginator.d.ts +1 -1
  254. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  255. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  256. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
  257. package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
  258. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  259. package/package.json +52 -49
  260. package/KMS.ts +0 -4018
  261. package/KMSClient.ts +0 -515
  262. package/commands/CancelKeyDeletionCommand.ts +0 -105
  263. package/commands/ConnectCustomKeyStoreCommand.ts +0 -155
  264. package/commands/CreateAliasCommand.ts +0 -147
  265. package/commands/CreateCustomKeyStoreCommand.ts +0 -143
  266. package/commands/CreateGrantCommand.ts +0 -153
  267. package/commands/CreateKeyCommand.ts +0 -209
  268. package/commands/DecryptCommand.ts +0 -172
  269. package/commands/DeleteAliasCommand.ts +0 -137
  270. package/commands/DeleteCustomKeyStoreCommand.ts +0 -149
  271. package/commands/DeleteImportedKeyMaterialCommand.ts +0 -127
  272. package/commands/DescribeCustomKeyStoresCommand.ts +0 -147
  273. package/commands/DescribeKeyCommand.ts +0 -171
  274. package/commands/DisableKeyCommand.ts +0 -108
  275. package/commands/DisableKeyRotationCommand.ts +0 -118
  276. package/commands/DisconnectCustomKeyStoreCommand.ts +0 -144
  277. package/commands/EnableKeyCommand.ts +0 -97
  278. package/commands/EnableKeyRotationCommand.ts +0 -118
  279. package/commands/EncryptCommand.ts +0 -209
  280. package/commands/GenerateDataKeyCommand.ts +0 -188
  281. package/commands/GenerateDataKeyPairCommand.ts +0 -168
  282. package/commands/GenerateDataKeyPairWithoutPlaintextCommand.ts +0 -168
  283. package/commands/GenerateDataKeyWithoutPlaintextCommand.ts +0 -171
  284. package/commands/GenerateRandomCommand.ts +0 -102
  285. package/commands/GetKeyPolicyCommand.ts +0 -102
  286. package/commands/GetKeyRotationStatusCommand.ts +0 -130
  287. package/commands/GetParametersForImportCommand.ts +0 -129
  288. package/commands/GetPublicKeyCommand.ts +0 -138
  289. package/commands/ImportKeyMaterialCommand.ts +0 -157
  290. package/commands/ListAliasesCommand.ts +0 -133
  291. package/commands/ListGrantsCommand.ts +0 -139
  292. package/commands/ListKeyPoliciesCommand.ts +0 -116
  293. package/commands/ListKeysCommand.ts +0 -118
  294. package/commands/ListResourceTagsCommand.ts +0 -128
  295. package/commands/ListRetirableGrantsCommand.ts +0 -136
  296. package/commands/PutKeyPolicyCommand.ts +0 -107
  297. package/commands/ReEncryptCommand.ts +0 -179
  298. package/commands/ReplicateKeyCommand.ts +0 -171
  299. package/commands/RetireGrantCommand.ts +0 -138
  300. package/commands/RevokeGrantCommand.ts +0 -138
  301. package/commands/ScheduleKeyDeletionCommand.ts +0 -144
  302. package/commands/SignCommand.ts +0 -131
  303. package/commands/TagResourceCommand.ts +0 -139
  304. package/commands/UntagResourceCommand.ts +0 -137
  305. package/commands/UpdateAliasCommand.ts +0 -152
  306. package/commands/UpdateCustomKeyStoreCommand.ts +0 -166
  307. package/commands/UpdateKeyDescriptionCommand.ts +0 -117
  308. package/commands/UpdatePrimaryRegionCommand.ts +0 -159
  309. package/commands/VerifyCommand.ts +0 -117
  310. package/dist/cjs/KMS.js.map +0 -1
  311. package/dist/cjs/KMSClient.js.map +0 -1
  312. package/dist/cjs/commands/CancelKeyDeletionCommand.js.map +0 -1
  313. package/dist/cjs/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
  314. package/dist/cjs/commands/CreateAliasCommand.js.map +0 -1
  315. package/dist/cjs/commands/CreateCustomKeyStoreCommand.js.map +0 -1
  316. package/dist/cjs/commands/CreateGrantCommand.js.map +0 -1
  317. package/dist/cjs/commands/CreateKeyCommand.js.map +0 -1
  318. package/dist/cjs/commands/DecryptCommand.js.map +0 -1
  319. package/dist/cjs/commands/DeleteAliasCommand.js.map +0 -1
  320. package/dist/cjs/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
  321. package/dist/cjs/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
  322. package/dist/cjs/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
  323. package/dist/cjs/commands/DescribeKeyCommand.js.map +0 -1
  324. package/dist/cjs/commands/DisableKeyCommand.js.map +0 -1
  325. package/dist/cjs/commands/DisableKeyRotationCommand.js.map +0 -1
  326. package/dist/cjs/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
  327. package/dist/cjs/commands/EnableKeyCommand.js.map +0 -1
  328. package/dist/cjs/commands/EnableKeyRotationCommand.js.map +0 -1
  329. package/dist/cjs/commands/EncryptCommand.js.map +0 -1
  330. package/dist/cjs/commands/GenerateDataKeyCommand.js.map +0 -1
  331. package/dist/cjs/commands/GenerateDataKeyPairCommand.js.map +0 -1
  332. package/dist/cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
  333. package/dist/cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
  334. package/dist/cjs/commands/GenerateRandomCommand.js.map +0 -1
  335. package/dist/cjs/commands/GetKeyPolicyCommand.js.map +0 -1
  336. package/dist/cjs/commands/GetKeyRotationStatusCommand.js.map +0 -1
  337. package/dist/cjs/commands/GetParametersForImportCommand.js.map +0 -1
  338. package/dist/cjs/commands/GetPublicKeyCommand.js.map +0 -1
  339. package/dist/cjs/commands/ImportKeyMaterialCommand.js.map +0 -1
  340. package/dist/cjs/commands/ListAliasesCommand.js.map +0 -1
  341. package/dist/cjs/commands/ListGrantsCommand.js.map +0 -1
  342. package/dist/cjs/commands/ListKeyPoliciesCommand.js.map +0 -1
  343. package/dist/cjs/commands/ListKeysCommand.js.map +0 -1
  344. package/dist/cjs/commands/ListResourceTagsCommand.js.map +0 -1
  345. package/dist/cjs/commands/ListRetirableGrantsCommand.js.map +0 -1
  346. package/dist/cjs/commands/PutKeyPolicyCommand.js.map +0 -1
  347. package/dist/cjs/commands/ReEncryptCommand.js.map +0 -1
  348. package/dist/cjs/commands/ReplicateKeyCommand.js.map +0 -1
  349. package/dist/cjs/commands/RetireGrantCommand.js.map +0 -1
  350. package/dist/cjs/commands/RevokeGrantCommand.js.map +0 -1
  351. package/dist/cjs/commands/ScheduleKeyDeletionCommand.js.map +0 -1
  352. package/dist/cjs/commands/SignCommand.js.map +0 -1
  353. package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
  354. package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
  355. package/dist/cjs/commands/UpdateAliasCommand.js.map +0 -1
  356. package/dist/cjs/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
  357. package/dist/cjs/commands/UpdateKeyDescriptionCommand.js.map +0 -1
  358. package/dist/cjs/commands/UpdatePrimaryRegionCommand.js.map +0 -1
  359. package/dist/cjs/commands/VerifyCommand.js.map +0 -1
  360. package/dist/cjs/endpoints.js.map +0 -1
  361. package/dist/cjs/index.js.map +0 -1
  362. package/dist/cjs/models/index.js.map +0 -1
  363. package/dist/cjs/models/models_0.js.map +0 -1
  364. package/dist/cjs/package.json +0 -91
  365. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  366. package/dist/cjs/pagination/ListAliasesPaginator.js.map +0 -1
  367. package/dist/cjs/pagination/ListGrantsPaginator.js.map +0 -1
  368. package/dist/cjs/pagination/ListKeyPoliciesPaginator.js.map +0 -1
  369. package/dist/cjs/pagination/ListKeysPaginator.js.map +0 -1
  370. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  371. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  372. package/dist/cjs/runtimeConfig.js.map +0 -1
  373. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  374. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  375. package/dist/es/KMS.js.map +0 -1
  376. package/dist/es/KMSClient.js +0 -134
  377. package/dist/es/KMSClient.js.map +0 -1
  378. package/dist/es/commands/CancelKeyDeletionCommand.js +0 -76
  379. package/dist/es/commands/CancelKeyDeletionCommand.js.map +0 -1
  380. package/dist/es/commands/ConnectCustomKeyStoreCommand.js +0 -126
  381. package/dist/es/commands/ConnectCustomKeyStoreCommand.js.map +0 -1
  382. package/dist/es/commands/CreateAliasCommand.js +0 -118
  383. package/dist/es/commands/CreateAliasCommand.js.map +0 -1
  384. package/dist/es/commands/CreateCustomKeyStoreCommand.js +0 -114
  385. package/dist/es/commands/CreateCustomKeyStoreCommand.js.map +0 -1
  386. package/dist/es/commands/CreateGrantCommand.js +0 -124
  387. package/dist/es/commands/CreateGrantCommand.js.map +0 -1
  388. package/dist/es/commands/CreateKeyCommand.js +0 -187
  389. package/dist/es/commands/CreateKeyCommand.js.map +0 -1
  390. package/dist/es/commands/DecryptCommand.js +0 -150
  391. package/dist/es/commands/DecryptCommand.js.map +0 -1
  392. package/dist/es/commands/DeleteAliasCommand.js +0 -108
  393. package/dist/es/commands/DeleteAliasCommand.js.map +0 -1
  394. package/dist/es/commands/DeleteCustomKeyStoreCommand.js +0 -120
  395. package/dist/es/commands/DeleteCustomKeyStoreCommand.js.map +0 -1
  396. package/dist/es/commands/DeleteImportedKeyMaterialCommand.js +0 -95
  397. package/dist/es/commands/DeleteImportedKeyMaterialCommand.js.map +0 -1
  398. package/dist/es/commands/DescribeCustomKeyStoresCommand.js +0 -118
  399. package/dist/es/commands/DescribeCustomKeyStoresCommand.js.map +0 -1
  400. package/dist/es/commands/DescribeKeyCommand.js +0 -142
  401. package/dist/es/commands/DescribeKeyCommand.js.map +0 -1
  402. package/dist/es/commands/DisableKeyCommand.js +0 -79
  403. package/dist/es/commands/DisableKeyCommand.js.map +0 -1
  404. package/dist/es/commands/DisableKeyRotationCommand.js +0 -89
  405. package/dist/es/commands/DisableKeyRotationCommand.js.map +0 -1
  406. package/dist/es/commands/DisconnectCustomKeyStoreCommand.js +0 -115
  407. package/dist/es/commands/DisconnectCustomKeyStoreCommand.js.map +0 -1
  408. package/dist/es/commands/EnableKeyCommand.js +0 -75
  409. package/dist/es/commands/EnableKeyCommand.js.map +0 -1
  410. package/dist/es/commands/EnableKeyRotationCommand.js +0 -89
  411. package/dist/es/commands/EnableKeyRotationCommand.js.map +0 -1
  412. package/dist/es/commands/EncryptCommand.js +0 -187
  413. package/dist/es/commands/EncryptCommand.js.map +0 -1
  414. package/dist/es/commands/GenerateDataKeyCommand.js +0 -159
  415. package/dist/es/commands/GenerateDataKeyCommand.js.map +0 -1
  416. package/dist/es/commands/GenerateDataKeyPairCommand.js +0 -139
  417. package/dist/es/commands/GenerateDataKeyPairCommand.js.map +0 -1
  418. package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -128
  419. package/dist/es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js.map +0 -1
  420. package/dist/es/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -134
  421. package/dist/es/commands/GenerateDataKeyWithoutPlaintextCommand.js.map +0 -1
  422. package/dist/es/commands/GenerateRandomCommand.js +0 -73
  423. package/dist/es/commands/GenerateRandomCommand.js.map +0 -1
  424. package/dist/es/commands/GetKeyPolicyCommand.js.map +0 -1
  425. package/dist/es/commands/GetKeyRotationStatusCommand.js +0 -101
  426. package/dist/es/commands/GetKeyRotationStatusCommand.js.map +0 -1
  427. package/dist/es/commands/GetParametersForImportCommand.js +0 -100
  428. package/dist/es/commands/GetParametersForImportCommand.js.map +0 -1
  429. package/dist/es/commands/GetPublicKeyCommand.js +0 -109
  430. package/dist/es/commands/GetPublicKeyCommand.js.map +0 -1
  431. package/dist/es/commands/ImportKeyMaterialCommand.js +0 -128
  432. package/dist/es/commands/ImportKeyMaterialCommand.js.map +0 -1
  433. package/dist/es/commands/ListAliasesCommand.js +0 -104
  434. package/dist/es/commands/ListAliasesCommand.js.map +0 -1
  435. package/dist/es/commands/ListGrantsCommand.js +0 -110
  436. package/dist/es/commands/ListGrantsCommand.js.map +0 -1
  437. package/dist/es/commands/ListKeyPoliciesCommand.js +0 -87
  438. package/dist/es/commands/ListKeyPoliciesCommand.js.map +0 -1
  439. package/dist/es/commands/ListKeysCommand.js +0 -96
  440. package/dist/es/commands/ListKeysCommand.js.map +0 -1
  441. package/dist/es/commands/ListResourceTagsCommand.js +0 -99
  442. package/dist/es/commands/ListResourceTagsCommand.js.map +0 -1
  443. package/dist/es/commands/ListRetirableGrantsCommand.js +0 -107
  444. package/dist/es/commands/ListRetirableGrantsCommand.js.map +0 -1
  445. package/dist/es/commands/PutKeyPolicyCommand.js +0 -78
  446. package/dist/es/commands/PutKeyPolicyCommand.js.map +0 -1
  447. package/dist/es/commands/ReEncryptCommand.js +0 -157
  448. package/dist/es/commands/ReEncryptCommand.js.map +0 -1
  449. package/dist/es/commands/ReplicateKeyCommand.js +0 -142
  450. package/dist/es/commands/ReplicateKeyCommand.js.map +0 -1
  451. package/dist/es/commands/RetireGrantCommand.js +0 -109
  452. package/dist/es/commands/RetireGrantCommand.js.map +0 -1
  453. package/dist/es/commands/RevokeGrantCommand.js +0 -109
  454. package/dist/es/commands/RevokeGrantCommand.js.map +0 -1
  455. package/dist/es/commands/ScheduleKeyDeletionCommand.js +0 -115
  456. package/dist/es/commands/ScheduleKeyDeletionCommand.js.map +0 -1
  457. package/dist/es/commands/SignCommand.js +0 -109
  458. package/dist/es/commands/SignCommand.js.map +0 -1
  459. package/dist/es/commands/TagResourceCommand.js +0 -110
  460. package/dist/es/commands/TagResourceCommand.js.map +0 -1
  461. package/dist/es/commands/UntagResourceCommand.js +0 -108
  462. package/dist/es/commands/UntagResourceCommand.js.map +0 -1
  463. package/dist/es/commands/UpdateAliasCommand.js +0 -123
  464. package/dist/es/commands/UpdateAliasCommand.js.map +0 -1
  465. package/dist/es/commands/UpdateCustomKeyStoreCommand.js +0 -137
  466. package/dist/es/commands/UpdateCustomKeyStoreCommand.js.map +0 -1
  467. package/dist/es/commands/UpdateKeyDescriptionCommand.js +0 -88
  468. package/dist/es/commands/UpdateKeyDescriptionCommand.js.map +0 -1
  469. package/dist/es/commands/UpdatePrimaryRegionCommand.js +0 -130
  470. package/dist/es/commands/UpdatePrimaryRegionCommand.js.map +0 -1
  471. package/dist/es/commands/VerifyCommand.js +0 -95
  472. package/dist/es/commands/VerifyCommand.js.map +0 -1
  473. package/dist/es/endpoints.js.map +0 -1
  474. package/dist/es/index.js +0 -57
  475. package/dist/es/index.js.map +0 -1
  476. package/dist/es/models/index.js +0 -2
  477. package/dist/es/models/index.js.map +0 -1
  478. package/dist/es/models/models_0.js.map +0 -1
  479. package/dist/es/package.json +0 -91
  480. package/dist/es/pagination/Interfaces.js +0 -2
  481. package/dist/es/pagination/Interfaces.js.map +0 -1
  482. package/dist/es/pagination/ListAliasesPaginator.js.map +0 -1
  483. package/dist/es/pagination/ListGrantsPaginator.js.map +0 -1
  484. package/dist/es/pagination/ListKeyPoliciesPaginator.js.map +0 -1
  485. package/dist/es/pagination/ListKeysPaginator.js.map +0 -1
  486. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  487. package/dist/es/runtimeConfig.browser.js.map +0 -1
  488. package/dist/es/runtimeConfig.js.map +0 -1
  489. package/dist/es/runtimeConfig.native.js.map +0 -1
  490. package/dist/es/runtimeConfig.shared.js.map +0 -1
  491. package/endpoints.ts +0 -62
  492. package/jest.config.js +0 -4
  493. package/models/models_0.ts +0 -4742
  494. package/pagination/Interfaces.ts +0 -7
  495. package/pagination/ListAliasesPaginator.ts +0 -54
  496. package/pagination/ListGrantsPaginator.ts +0 -54
  497. package/pagination/ListKeyPoliciesPaginator.ts +0 -58
  498. package/pagination/ListKeysPaginator.ts +0 -54
  499. package/protocols/Aws_json1_1.ts +0 -7631
  500. package/runtimeConfig.browser.ts +0 -40
  501. package/runtimeConfig.native.ts +0 -16
  502. package/runtimeConfig.shared.ts +0 -16
  503. package/runtimeConfig.ts +0 -45
  504. package/tsconfig.es.json +0 -12
  505. package/tsconfig.json +0 -32
@@ -1,45 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReEncryptCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this
10
- * operation to change the KMS key under which data is encrypted, such as when
11
- * you <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also
12
- * use it to reencrypt ciphertext under the same KMS key, such as to change the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption
10
+ * operation to change the KMS key under which data is encrypted, such as when you <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#rotate-keys-manually">manually
11
+ * rotate</a> a KMS key or change the KMS key that protects a ciphertext. You can also use
12
+ * it to reencrypt ciphertext under the same KMS key, such as to change the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt_context">encryption
13
13
  * context</a> of a ciphertext.</p>
14
14
  * <p>The <code>ReEncrypt</code> operation can decrypt ciphertext that was encrypted by using an
15
15
  * KMS KMS key in an KMS operation, such as <a>Encrypt</a> or <a>GenerateDataKey</a>. It can also decrypt ciphertext that was encrypted by using the
16
- * public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS key</a> outside of KMS. However, it cannot decrypt ciphertext
17
- * produced by other libraries, such as the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a> or <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3 client-side encryption</a>.
18
- * These libraries return a ciphertext format that is incompatible with KMS.</p>
16
+ * public key of an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html#asymmetric-cmks">asymmetric KMS key</a>
17
+ * outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as
18
+ * the <a href="https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/">Amazon Web Services Encryption SDK</a> or
19
+ * <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html">Amazon S3
20
+ * client-side encryption</a>. These libraries return a ciphertext format that is
21
+ * incompatible with KMS.</p>
19
22
  * <p>When you use the <code>ReEncrypt</code> operation, you need to provide information for the
20
23
  * decrypt operation and the subsequent encrypt operation.</p>
21
24
  * <ul>
22
25
  * <li>
23
26
  * <p>If your ciphertext was encrypted under an asymmetric KMS key, you must use the
24
- * <code>SourceKeyId</code> parameter to identify the KMS key that encrypted the ciphertext.
25
- * You must also supply the encryption algorithm that was used. This information is required
26
- * to decrypt the data.</p>
27
+ * <code>SourceKeyId</code> parameter to identify the KMS key that encrypted the
28
+ * ciphertext. You must also supply the encryption algorithm that was used. This information
29
+ * is required to decrypt the data.</p>
27
30
  * </li>
28
31
  * <li>
29
- * <p>If your ciphertext was encrypted under a symmetric KMS key, the <code>SourceKeyId</code>
30
- * parameter is optional. KMS can get this information from metadata that it adds to the
31
- * symmetric ciphertext blob. This feature adds durability to your implementation by ensuring
32
- * that authorized users can decrypt ciphertext decades after it was encrypted, even if
33
- * they've lost track of the key ID. However, specifying the source KMS key is always recommended
34
- * as a best practice. When you use the <code>SourceKeyId</code> parameter to specify a KMS key,
35
- * KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key that you intend.</p>
32
+ * <p>If your ciphertext was encrypted under a symmetric KMS key, the
33
+ * <code>SourceKeyId</code> parameter is optional. KMS can get this information from
34
+ * metadata that it adds to the symmetric ciphertext blob. This feature adds durability to
35
+ * your implementation by ensuring that authorized users can decrypt ciphertext decades after
36
+ * it was encrypted, even if they've lost track of the key ID. However, specifying the source
37
+ * KMS key is always recommended as a best practice. When you use the
38
+ * <code>SourceKeyId</code> parameter to specify a KMS key, KMS uses only the KMS key you
39
+ * specify. If the ciphertext was encrypted under a different KMS key, the
40
+ * <code>ReEncrypt</code> operation fails. This practice ensures that you use the KMS key
41
+ * that you intend.</p>
36
42
  * </li>
37
43
  * <li>
38
44
  * <p>To reencrypt the data, you must use the <code>DestinationKeyId</code> parameter
39
45
  * specify the KMS key that re-encrypts the data after it is decrypted. You can select a
40
- * symmetric or asymmetric KMS key. If the destination KMS key is an asymmetric KMS key, you must also
41
- * provide the encryption algorithm. The algorithm that you choose must be compatible with
42
- * the KMS key.</p>
46
+ * symmetric or asymmetric KMS key. If the destination KMS key is an asymmetric KMS key, you
47
+ * must also provide the encryption algorithm. The algorithm that you choose must be
48
+ * compatible with the KMS key.</p>
43
49
  *
44
50
  * <important>
45
51
  * <p>When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.</p>
@@ -47,26 +53,26 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
47
53
  * </important>
48
54
  * </li>
49
55
  * </ul>
50
- *
51
- *
52
- *
53
56
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
54
57
  * 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>
55
58
  * <p>
56
- * <b>Cross-account use</b>: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than
57
- * the caller. To specify a KMS key in a different account, you must use its key ARN or alias
58
- * ARN.</p>
59
+ * <b>Cross-account use</b>: Yes.
60
+ * The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both
61
+ * KMS keys can be in a different account than the caller. To specify a KMS key in a different
62
+ * account, you must use its key ARN or alias ARN.</p>
59
63
  *
60
64
  * <p>
61
65
  * <b>Required permissions</b>:</p>
62
66
  * <ul>
63
67
  * <li>
64
68
  * <p>
65
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a> permission on the source KMS key (key policy)</p>
69
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptFrom</a>
70
+ * permission on the source KMS key (key policy)</p>
66
71
  * </li>
67
72
  * <li>
68
73
  * <p>
69
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a> permission on the destination KMS key (key policy)</p>
74
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ReEncryptTo</a>
75
+ * permission on the destination KMS key (key policy)</p>
70
76
  * </li>
71
77
  * </ul>
72
78
  * <p>To permit reencryption from or to a KMS key, include the <code>"kms:ReEncrypt*"</code>
@@ -150,4 +156,3 @@ class ReEncryptCommand extends smithy_client_1.Command {
150
156
  }
151
157
  }
152
158
  exports.ReEncryptCommand = ReEncryptCommand;
153
- //# sourceMappingURL=ReEncryptCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ReplicateKeyCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Replicates a multi-Region key into the specified Region. This operation creates a
10
10
  * multi-Region replica key based on a multi-Region primary key in a different Region of the same
@@ -37,7 +37,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
37
37
  * details about the <code>Creating</code> key state, see <a href="kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the
38
38
  * <i>Key Management Service Developer Guide</i>.</p>
39
39
  * <p>The CloudTrail log of a <code>ReplicateKey</code> operation records a
40
- * <code>ReplicateKey</code> operation in the primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.</p>
40
+ * <code>ReplicateKey</code> operation in the primary key's Region and a <a>CreateKey</a> operation in the replica key's Region.</p>
41
41
  * <p>If you replicate a multi-Region primary key with imported key material, the replica key is
42
42
  * created with no key material. You must import the same key material that you imported into the
43
43
  * primary key. For details, see <a href="kms/latest/developerguide/multi-region-keys-import.html">Importing key material into multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
@@ -45,8 +45,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
45
45
  * operation.</p>
46
46
  * <note>
47
47
  * <p>
48
- * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code> and
49
- * <code>Tags</code> parameters than those used in the KMS console. For details, see the
48
+ * <code>ReplicateKey</code> uses different default values for the <code>KeyPolicy</code>
49
+ * and <code>Tags</code> parameters than those used in the KMS console. For details, see the
50
50
  * parameter descriptions.</p>
51
51
  * </note>
52
52
  * <p>
@@ -57,8 +57,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
57
57
  * <ul>
58
58
  * <li>
59
59
  * <p>
60
- * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region). Include this
61
- * permission in the primary key's key policy.</p>
60
+ * <code>kms:ReplicateKey</code> on the primary key (in the primary key's Region).
61
+ * Include this permission in the primary key's key policy.</p>
62
62
  * </li>
63
63
  * <li>
64
64
  * <p>
@@ -135,4 +135,3 @@ class ReplicateKeyCommand extends smithy_client_1.Command {
135
135
  }
136
136
  }
137
137
  exports.ReplicateKeyCommand = ReplicateKeyCommand;
138
- //# sourceMappingURL=ReplicateKeyCommand.js.map
@@ -1,19 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RetireGrantCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To
10
10
  * identify the grant to retire, use a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html#grant_token">grant token</a>, or both the grant ID and a
11
- * key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a> operation returns both values.</p>
11
+ * key identifier (key ID or key ARN) of the KMS key. The <a>CreateGrant</a> operation
12
+ * returns both values.</p>
12
13
  * <p>This operation can be called by the <i>retiring principal</i> for a grant,
13
14
  * by the <i>grantee principal</i> if the grant allows the <code>RetireGrant</code>
14
15
  * operation, and by the Amazon Web Services account (root user) in which the grant is created. It can also be
15
16
  * called by principals to whom permission for retiring a grant is delegated. For details, see
16
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
17
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and
17
18
  * revoking grants</a> in the <i>Key Management Service Developer Guide</i>.</p>
18
19
  * <p>For detailed information about grants, including grant terminology, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Using grants</a> in the
19
20
  * <i>
@@ -21,11 +22,12 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
22
  * </i>. For examples of working with grants in several
22
23
  * programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
23
24
  * <p>
24
- * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS key
25
- * in a different Amazon Web Services account.</p>
25
+ * <b>Cross-account use</b>: Yes. You can retire a grant on a KMS
26
+ * key in a different Amazon Web Services account.</p>
26
27
  * <p>
27
28
  * <b>Required permissions:</b>:Permission to retire a grant is
28
- * determined primarily by the grant. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking grants</a> in the <i>Key Management Service Developer Guide</i>.</p>
29
+ * determined primarily by the grant. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grant-manage.html#grant-delete">Retiring and revoking grants</a> in
30
+ * the <i>Key Management Service Developer Guide</i>.</p>
29
31
  * <p>
30
32
  * <b>Related operations:</b>
31
33
  * </p>
@@ -102,4 +104,3 @@ class RetireGrantCommand extends smithy_client_1.Command {
102
104
  }
103
105
  }
104
106
  exports.RetireGrantCommand = RetireGrantCommand;
105
- //# sourceMappingURL=RetireGrantCommand.js.map
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RevokeGrantCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Deletes the specified grant. You revoke a grant to terminate the permissions that the
10
- * grant allows. For more
11
- * information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
10
+ * grant allows. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/managing-grants.html#grant-delete">Retiring and revoking grants</a> in
12
11
  * the <i>
13
12
  * <i>Key Management Service Developer Guide</i>
14
13
  * </i>.</p>
@@ -102,4 +101,3 @@ class RevokeGrantCommand extends smithy_client_1.Command {
102
101
  }
103
102
  }
104
103
  exports.RevokeGrantCommand = RevokeGrantCommand;
105
- //# sourceMappingURL=RevokeGrantCommand.js.map
@@ -1,27 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ScheduleKeyDeletionCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
- * <p>Schedules the deletion of a KMS key. By default, KMS applies a waiting
10
- * period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is
11
- * successful, the key state of the KMS key changes to <code>PendingDeletion</code> and the key can't
12
- * be used in any cryptographic operations. It remains in this state for the duration of the
13
- * waiting period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key,
9
+ * <p>Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30
10
+ * days, but you can specify a waiting period of 7-30 days. When this operation is successful,
11
+ * the key state of the KMS key changes to <code>PendingDeletion</code> and the key can't be used
12
+ * in any cryptographic operations. It remains in this state for the duration of the waiting
13
+ * period. Before the waiting period ends, you can use <a>CancelKeyDeletion</a> to
14
+ * cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key,
14
15
  * its key material, and all KMS data associated with it, including all aliases that refer to
15
16
  * it.</p>
16
17
  * <important>
17
- * <p>Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is
18
- * deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is
19
- * a multi-Region replica key.) To prevent the use of a KMS key without deleting it, use <a>DisableKey</a>. </p>
18
+ * <p>Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key
19
+ * is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only
20
+ * exception is a multi-Region replica key.) To prevent the use of a KMS key without deleting
21
+ * it, use <a>DisableKey</a>. </p>
20
22
  * </important>
21
23
  * <p>If you schedule deletion of a KMS key from a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">custom key store</a>, when the waiting period
22
- * expires, <code>ScheduleKeyDeletion</code> deletes the KMS key from KMS. Then KMS makes a best
23
- * effort to delete the key material from the associated CloudHSM cluster. However, you might need
24
- * to manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
24
+ * expires, <code>ScheduleKeyDeletion</code> deletes the KMS key from KMS. Then KMS makes a
25
+ * best effort to delete the key material from the associated CloudHSM cluster. However, you might
26
+ * need to manually <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-orphaned-key">delete the orphaned key
25
27
  * material</a> from the cluster and its backups.</p>
26
28
  * <p>You can schedule the deletion of a multi-Region primary key and its replica keys at any
27
29
  * time. However, KMS will not delete a multi-Region primary key with existing replica keys. If
@@ -30,18 +32,20 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
30
32
  * operations. This status can continue indefinitely. When the last of its replicas keys is
31
33
  * deleted (not just scheduled), the key state of the primary key changes to
32
34
  * <code>PendingDeletion</code> and its waiting period (<code>PendingWindowInDays</code>)
33
- * begins. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>. </p>
35
+ * begins. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-delete.html">Deleting multi-Region keys</a> in the
36
+ * <i>Key Management Service Developer Guide</i>. </p>
34
37
  * <p>For more information about scheduling a KMS key for deletion, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html">Deleting KMS keys</a> in the
35
38
  * <i>Key Management Service Developer Guide</i>.</p>
36
39
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
37
40
  * 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>
38
- *
39
41
  * <p>
40
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
42
+ * <b>Cross-account
43
+ * use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
41
44
  *
42
45
  *
43
46
  * <p>
44
- * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key policy)</p>
47
+ * <b>Required permissions</b>: kms:ScheduleKeyDeletion (key
48
+ * policy)</p>
45
49
  * <p>
46
50
  * <b>Related operations</b>
47
51
  * </p>
@@ -108,4 +112,3 @@ class ScheduleKeyDeletionCommand extends smithy_client_1.Command {
108
112
  }
109
113
  }
110
114
  exports.ScheduleKeyDeletionCommand = ScheduleKeyDeletionCommand;
111
- //# sourceMappingURL=ScheduleKeyDeletionCommand.js.map
@@ -1,26 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SignCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Creates a <a href="https://en.wikipedia.org/wiki/Digital_signature">digital
10
- * signature</a> for a message or message digest by using the private key in an asymmetric KMS key. To verify the signature, use the <a>Verify</a> operation, or use the public
11
- * key in the same asymmetric KMS key outside of KMS. For information about symmetric and asymmetric KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
10
+ * signature</a> for a message or message digest by using the private key in an asymmetric
11
+ * KMS key. To verify the signature, use the <a>Verify</a> operation, or use the
12
+ * public key in the same asymmetric KMS key outside of KMS. For information about symmetric and asymmetric KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
12
13
  * <p>Digital signatures are generated and verified by using asymmetric key pair, such as an RSA
13
- * or ECC pair that is represented by an asymmetric KMS key. The key owner (or
14
- * an authorized user) uses their private key to sign a message. Anyone with the public key can
15
- * verify that the message was signed with that particular private key and that the message
16
- * hasn't changed since it was signed. </p>
14
+ * or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized
15
+ * user) uses their private key to sign a message. Anyone with the public key can verify that the
16
+ * message was signed with that particular private key and that the message hasn't changed since
17
+ * it was signed. </p>
17
18
  * <p>To use the <code>Sign</code> operation, provide the following information:</p>
18
19
  * <ul>
19
20
  * <li>
20
21
  * <p>Use the <code>KeyId</code> parameter to identify an asymmetric KMS key with a
21
22
  * <code>KeyUsage</code> value of <code>SIGN_VERIFY</code>. To get the
22
- * <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a> operation.
23
- * The caller must have <code>kms:Sign</code> permission on the KMS key.</p>
23
+ * <code>KeyUsage</code> value of a KMS key, use the <a>DescribeKey</a>
24
+ * operation. The caller must have <code>kms:Sign</code> permission on the KMS key.</p>
24
25
  * </li>
25
26
  * <li>
26
27
  * <p>Use the <code>Message</code> parameter to specify the message or message digest to
@@ -42,7 +43,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
42
43
  * then use the public key to verify the signature outside of KMS. </p>
43
44
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
44
45
  * 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>
45
- * <p>
46
+ * <p>
46
47
  * <b>Cross-account use</b>: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
47
48
  * the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
48
49
  *
@@ -102,4 +103,3 @@ class SignCommand extends smithy_client_1.Command {
102
103
  }
103
104
  }
104
105
  exports.SignCommand = SignCommand;
105
- //# sourceMappingURL=SignCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TagResourceCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Adds or edits tags on a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>.</p>
10
10
  * <note>
@@ -14,16 +14,18 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
14
14
  * The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag
15
15
  * value. To edit a tag, specify an existing tag key and a new tag value.</p>
16
16
  * <p>You can use this operation to tag a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>, but you cannot
17
- * tag an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services managed key</a>, an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>, a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key store</a>, or
18
- * an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.</p>
19
- * <p>You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or replicating it (<a>ReplicateKey</a>).</p>
17
+ * tag an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
18
+ * managed key</a>, an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-cmk">Amazon Web Services owned key</a>, a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#keystore-concept">custom key
19
+ * store</a>, or an <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#alias-concept">alias</a>.</p>
20
+ * <p>You can also add tags to a KMS key while creating it (<a>CreateKey</a>) or
21
+ * replicating it (<a>ReplicateKey</a>).</p>
20
22
  * <p>For information about using tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general information about
21
23
  * tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon
22
24
  * Web Services General Reference</i>. </p>
23
25
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
24
26
  * 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>
25
27
  * <p>
26
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
28
+ * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
27
29
  *
28
30
  * <p>
29
31
  * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:TagResource</a> (key policy)</p>
@@ -103,4 +105,3 @@ class TagResourceCommand extends smithy_client_1.Command {
103
105
  }
104
106
  }
105
107
  exports.TagResourceCommand = TagResourceCommand;
106
- //# sourceMappingURL=TagResourceCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UntagResourceCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Deletes tags from a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>. To delete a tag,
10
10
  * specify the tag key and the KMS key.</p>
@@ -12,8 +12,8 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  * <p>Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">Using ABAC in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
13
13
  * </note>
14
14
  * <p>When it succeeds, the <code>UntagResource</code> operation doesn't return any output.
15
- * Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return
16
- * a response. To confirm that the operation worked, use the <a>ListResourceTags</a> operation.</p>
15
+ * Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or
16
+ * return a response. To confirm that the operation worked, use the <a>ListResourceTags</a> operation.</p>
17
17
  *
18
18
  * <p>For information about using tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging keys</a>. For general information about
19
19
  * tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon
@@ -21,7 +21,7 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
21
21
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
22
22
  * 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>
23
23
  * <p>
24
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
24
+ * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
25
25
  *
26
26
  * <p>
27
27
  * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UntagResource</a> (key policy)</p>
@@ -101,4 +101,3 @@ class UntagResourceCommand extends smithy_client_1.Command {
101
101
  }
102
102
  }
103
103
  exports.UntagResourceCommand = UntagResourceCommand;
104
- //# sourceMappingURL=UntagResourceCommand.js.map
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateAliasCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
- * <p>Associates an existing KMS alias with a different KMS key. Each alias
10
- * is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias
11
- * and the KMS key must be in the same Amazon Web Services account and Region.</p>
9
+ * <p>Associates an existing KMS alias with a different KMS key. Each alias is associated with
10
+ * only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the
11
+ * KMS key must be in the same Amazon Web Services account and Region.</p>
12
12
  * <note>
13
13
  * <p>Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/abac.html">Using ABAC in KMS</a> in the <i>Key Management Service Developer Guide</i>.</p>
14
14
  * </note>
@@ -20,12 +20,12 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
20
20
  * use <a>DeleteAlias</a> to delete the old alias and <a>CreateAlias</a> to
21
21
  * create a new alias.</p>
22
22
  * <p>Because an alias is not a property of a KMS key, you can create, update, and delete the
23
- * aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from
24
- * the <a>DescribeKey</a> operation. To get the aliases of all KMS keys in the account,
25
- * use the <a>ListAliases</a> operation. </p>
23
+ * aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the
24
+ * response from the <a>DescribeKey</a> operation. To get the aliases of all KMS keys
25
+ * in the account, use the <a>ListAliases</a> operation. </p>
26
26
  * <p>The KMS key that you use for this operation must be in a compatible key state. For
27
27
  * 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>
28
- * <p>
28
+ * <p>
29
29
  * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. </p>
30
30
  * <p>
31
31
  * <b>Required permissions</b>
@@ -33,18 +33,22 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
33
33
  * <ul>
34
34
  * <li>
35
35
  * <p>
36
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on the alias (IAM policy).</p>
36
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
37
+ * the alias (IAM policy).</p>
37
38
  * </li>
38
39
  * <li>
39
40
  * <p>
40
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on the current KMS key (key policy).</p>
41
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
42
+ * the current KMS key (key policy).</p>
41
43
  * </li>
42
44
  * <li>
43
45
  * <p>
44
- * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on the new KMS key (key policy).</p>
46
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateAlias</a> on
47
+ * the new KMS key (key policy).</p>
45
48
  * </li>
46
49
  * </ul>
47
- * <p>For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to aliases</a> in the <i>Key Management Service Developer Guide</i>.</p>
50
+ * <p>For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to aliases</a> in the
51
+ * <i>Key Management Service Developer Guide</i>.</p>
48
52
  * <p>
49
53
  * <b>Related operations:</b>
50
54
  * </p>
@@ -116,4 +120,3 @@ class UpdateAliasCommand extends smithy_client_1.Command {
116
120
  }
117
121
  }
118
122
  exports.UpdateAliasCommand = UpdateAliasCommand;
119
- //# sourceMappingURL=UpdateAliasCommand.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateCustomKeyStoreCommand = void 0;
4
- const models_0_1 = require("../models/models_0");
5
- const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
6
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
7
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
8
  /**
9
9
  * <p>Changes the properties of a custom key store. Use the <code>CustomKeyStoreId</code>
10
10
  * parameter to identify the custom key store you want to edit. Use the remaining parameters to
@@ -14,29 +14,29 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
14
14
  * the update completes, use <a>ConnectCustomKeyStore</a>. To find the connection
15
15
  * state of a custom key store, use the <a>DescribeCustomKeyStores</a>
16
16
  * operation.</p>
17
- * <p>Use the parameters of <code>UpdateCustomKeyStore</code> to edit your keystore
18
- * settings.</p>
17
+ * <p>The <code>CustomKeyStoreId</code> parameter is required in all commands. Use the other
18
+ * parameters of <code>UpdateCustomKeyStore</code> to edit your key store settings.</p>
19
19
  * <ul>
20
20
  * <li>
21
- * <p>Use the <b>NewCustomKeyStoreName</b> parameter to change the
22
- * friendly name of the custom key store to the value that you specify.</p>
21
+ * <p>Use the <code>NewCustomKeyStoreName</code> parameter to change the friendly name of
22
+ * the custom key store to the value that you specify.</p>
23
23
  * <p> </p>
24
24
  * </li>
25
25
  * <li>
26
- * <p>Use the <b>KeyStorePassword</b> parameter tell KMS the
27
- * current password of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
28
- * <code>kmsuser</code> crypto
29
- * user (CU)</a> in the associated CloudHSM cluster. You can use this parameter to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-password">fix
30
- * connection failures</a> that occur when KMS cannot log into the associated cluster
31
- * because the <code>kmsuser</code> password has changed. This value does not change the
32
- * password in the CloudHSM cluster.</p>
26
+ * <p>Use the <code>KeyStorePassword</code> parameter tell KMS the current password of the
27
+ * <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-concepts.html#concept-kmsuser">
28
+ * <code>kmsuser</code> crypto user (CU)</a> in the associated CloudHSM cluster. You
29
+ * can use this parameter to <a href="https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html#fix-keystore-password">fix connection
30
+ * failures</a> that occur when KMS cannot log into the associated cluster because
31
+ * the <code>kmsuser</code> password has changed. This value does not change the password in
32
+ * the CloudHSM cluster.</p>
33
33
  * <p> </p>
34
34
  * </li>
35
35
  * <li>
36
- * <p>Use the <b>CloudHsmClusterId</b> parameter to associate the
37
- * custom key store with a different, but related, CloudHSM cluster. You can use this parameter
38
- * to repair a custom key store if its CloudHSM cluster becomes corrupted or is deleted, or when
39
- * you need to create or restore a cluster from a backup. </p>
36
+ * <p>Use the <code>CloudHsmClusterId</code> parameter to associate the custom key store
37
+ * with a different, but related, CloudHSM cluster. You can use this parameter to repair a
38
+ * custom key store if its CloudHSM cluster becomes corrupted or is deleted, or when you need to
39
+ * create or restore a cluster from a backup. </p>
40
40
  * </li>
41
41
  * </ul>
42
42
  * <p>If the operation succeeds, it returns a JSON object with no
@@ -44,9 +44,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
44
44
  * <p>This operation is part of the <a href="https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-overview.html">Custom Key Store feature</a> feature in KMS, which
45
45
  * combines the convenience and extensive integration of KMS with the isolation and control of a
46
46
  * single-tenant key store.</p>
47
- *
48
47
  * <p>
49
- * <b>Cross-account use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account. </p>
48
+ * <b>Cross-account
49
+ * use</b>: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account. </p>
50
50
  * <p>
51
51
  * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:UpdateCustomKeyStore</a> (IAM policy)</p>
52
52
  * <p>
@@ -130,4 +130,3 @@ class UpdateCustomKeyStoreCommand extends smithy_client_1.Command {
130
130
  }
131
131
  }
132
132
  exports.UpdateCustomKeyStoreCommand = UpdateCustomKeyStoreCommand;
133
- //# sourceMappingURL=UpdateCustomKeyStoreCommand.js.map