cdk-lambda-subminute 2.0.441 → 2.0.443

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 (404) hide show
  1. package/.jsii +96 -7
  2. package/README.md +4 -4
  3. package/lib/cdk-lambda-subminute.js +5 -5
  4. package/lib/demo/typescript/typescript-stack.js +2 -2
  5. package/lib/index.js +7 -3
  6. package/lib/resources/iterator/iterator_agent.js +3 -2
  7. package/node_modules/aws-sdk/README.md +1 -1
  8. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.examples.json +196 -0
  9. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.min.json +254 -111
  10. package/node_modules/aws-sdk/apis/accessanalyzer-2019-11-01.paginators.json +6 -0
  11. package/node_modules/aws-sdk/apis/account-2021-02-01.min.json +101 -19
  12. package/node_modules/aws-sdk/apis/acm-2015-12-08.min.json +7 -1
  13. package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.min.json +20 -13
  14. package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.paginators.json +4 -4
  15. package/node_modules/aws-sdk/apis/acm-pca-2017-08-22.waiters2.json +62 -59
  16. package/node_modules/aws-sdk/apis/amplify-2017-07-25.min.json +3 -0
  17. package/node_modules/aws-sdk/apis/apigateway-2015-07-09.min.json +7 -1
  18. package/node_modules/aws-sdk/apis/application-autoscaling-2016-02-06.min.json +7 -1
  19. package/node_modules/aws-sdk/apis/application-signals-2024-04-15.min.json +975 -0
  20. package/node_modules/aws-sdk/apis/application-signals-2024-04-15.paginators.json +34 -0
  21. package/node_modules/aws-sdk/apis/apptest-2022-12-06.min.json +1917 -0
  22. package/node_modules/aws-sdk/apis/apptest-2022-12-06.paginators.json +40 -0
  23. package/node_modules/aws-sdk/apis/apptest-2022-12-06.waiters2.json +5 -0
  24. package/node_modules/aws-sdk/apis/arc-zonal-shift-2022-10-30.min.json +62 -10
  25. package/node_modules/aws-sdk/apis/artifact-2018-05-10.examples.json +113 -0
  26. package/node_modules/aws-sdk/apis/artifact-2018-05-10.min.json +47 -41
  27. package/node_modules/aws-sdk/apis/artifact-2018-05-10.waiters2.json +5 -0
  28. package/node_modules/aws-sdk/apis/athena-2017-05-18.min.json +7 -1
  29. package/node_modules/aws-sdk/apis/auditmanager-2017-07-25.min.json +57 -38
  30. package/node_modules/aws-sdk/apis/autoscaling-2011-01-01.min.json +7 -1
  31. package/node_modules/aws-sdk/apis/b2bi-2022-06-23.min.json +8 -1
  32. package/node_modules/aws-sdk/apis/batch-2016-08-10.min.json +115 -60
  33. package/node_modules/aws-sdk/apis/bedrock-2023-04-20.min.json +140 -86
  34. package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.min.json +2122 -231
  35. package/node_modules/aws-sdk/apis/bedrock-agent-2023-06-05.paginators.json +24 -0
  36. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.min.json +809 -190
  37. package/node_modules/aws-sdk/apis/bedrock-agent-runtime-2023-07-26.paginators.json +6 -0
  38. package/node_modules/aws-sdk/apis/bedrock-runtime-2023-09-30.min.json +898 -44
  39. package/node_modules/aws-sdk/apis/budgets-2016-10-20.min.json +102 -21
  40. package/node_modules/aws-sdk/apis/chatbot-2017-10-11.min.json +138 -24
  41. package/node_modules/aws-sdk/apis/chime-sdk-media-pipelines-2021-07-15.min.json +10 -1
  42. package/node_modules/aws-sdk/apis/chime-sdk-voice-2022-08-03.min.json +6 -2
  43. package/node_modules/aws-sdk/apis/cloudformation-2010-05-15.min.json +48 -43
  44. package/node_modules/aws-sdk/apis/cloudfront-2020-05-31.min.json +7 -1
  45. package/node_modules/aws-sdk/apis/cloudhsmv2-2017-04-28.min.json +79 -20
  46. package/node_modules/aws-sdk/apis/cloudtrail-2013-11-01.min.json +44 -24
  47. package/node_modules/aws-sdk/apis/codeartifact-2018-09-22.min.json +7 -1
  48. package/node_modules/aws-sdk/apis/codebuild-2016-10-06.min.json +80 -38
  49. package/node_modules/aws-sdk/apis/codedeploy-2014-10-06.min.json +7 -1
  50. package/node_modules/aws-sdk/apis/codeguru-security-2018-05-10.min.json +6 -0
  51. package/node_modules/aws-sdk/apis/codepipeline-2015-07-09.min.json +4 -1
  52. package/node_modules/aws-sdk/apis/cognito-identity-2014-06-30.min.json +23 -5
  53. package/node_modules/aws-sdk/apis/cognito-idp-2016-04-18.min.json +111 -27
  54. package/node_modules/aws-sdk/apis/compute-optimizer-2019-11-01.min.json +447 -134
  55. package/node_modules/aws-sdk/apis/config-2014-11-12.min.json +7 -1
  56. package/node_modules/aws-sdk/apis/connect-2017-08-08.min.json +1266 -499
  57. package/node_modules/aws-sdk/apis/connect-2017-08-08.paginators.json +24 -0
  58. package/node_modules/aws-sdk/apis/connectcases-2022-10-03.min.json +205 -63
  59. package/node_modules/aws-sdk/apis/controltower-2018-05-10.min.json +150 -5
  60. package/node_modules/aws-sdk/apis/controltower-2018-05-10.paginators.json +12 -0
  61. package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.min.json +310 -262
  62. package/node_modules/aws-sdk/apis/cost-optimization-hub-2022-07-26.waiters2.json +5 -0
  63. package/node_modules/aws-sdk/apis/cur-2017-01-06.min.json +7 -1
  64. package/node_modules/aws-sdk/apis/customer-profiles-2020-08-15.min.json +52 -25
  65. package/node_modules/aws-sdk/apis/datasync-2018-11-09.min.json +3 -0
  66. package/node_modules/aws-sdk/apis/datazone-2018-05-10.min.json +1064 -444
  67. package/node_modules/aws-sdk/apis/datazone-2018-05-10.paginators.json +12 -0
  68. package/node_modules/aws-sdk/apis/devicefarm-2015-06-23.min.json +7 -1
  69. package/node_modules/aws-sdk/apis/directconnect-2012-10-25.min.json +7 -1
  70. package/node_modules/aws-sdk/apis/discovery-2015-11-01.min.json +3 -0
  71. package/node_modules/aws-sdk/apis/dms-2016-01-01.min.json +7 -1
  72. package/node_modules/aws-sdk/apis/docdb-2014-10-31.min.json +7 -1
  73. package/node_modules/aws-sdk/apis/ds-2015-04-16.min.json +7 -1
  74. package/node_modules/aws-sdk/apis/dynamodb-2011-12-05.min.json +7 -1
  75. package/node_modules/aws-sdk/apis/dynamodb-2012-08-10.min.json +256 -181
  76. package/node_modules/aws-sdk/apis/ec2-2016-11-15.min.json +397 -283
  77. package/node_modules/aws-sdk/apis/ecr-2015-09-21.min.json +7 -1
  78. package/node_modules/aws-sdk/apis/ecs-2014-11-13.min.json +290 -256
  79. package/node_modules/aws-sdk/apis/eks-2017-11-01.min.json +151 -84
  80. package/node_modules/aws-sdk/apis/elasticache-2015-02-02.min.json +7 -1
  81. package/node_modules/aws-sdk/apis/elasticbeanstalk-2010-12-01.min.json +7 -1
  82. package/node_modules/aws-sdk/apis/elasticfilesystem-2015-02-01.min.json +7 -1
  83. package/node_modules/aws-sdk/apis/elasticloadbalancingv2-2015-12-01.min.json +3 -0
  84. package/node_modules/aws-sdk/apis/elasticmapreduce-2009-03-31.min.json +15 -3
  85. package/node_modules/aws-sdk/apis/elastictranscoder-2012-09-25.min.json +7 -1
  86. package/node_modules/aws-sdk/apis/email-2010-12-01.min.json +7 -1
  87. package/node_modules/aws-sdk/apis/emr-serverless-2021-07-13.min.json +172 -14
  88. package/node_modules/aws-sdk/apis/emr-serverless-2021-07-13.paginators.json +6 -0
  89. package/node_modules/aws-sdk/apis/es-2015-01-01.min.json +7 -1
  90. package/node_modules/aws-sdk/apis/eventbridge-2015-10-07.min.json +87 -28
  91. package/node_modules/aws-sdk/apis/firehose-2015-08-04.min.json +209 -160
  92. package/node_modules/aws-sdk/apis/fms-2018-01-01.min.json +63 -59
  93. package/node_modules/aws-sdk/apis/fsx-2018-03-01.min.json +206 -164
  94. package/node_modules/aws-sdk/apis/gamelift-2015-10-01.min.json +7 -1
  95. package/node_modules/aws-sdk/apis/globalaccelerator-2018-08-08.min.json +13 -1
  96. package/node_modules/aws-sdk/apis/glue-2017-03-31.min.json +886 -574
  97. package/node_modules/aws-sdk/apis/glue-2017-03-31.paginators.json +22 -8
  98. package/node_modules/aws-sdk/apis/grafana-2020-08-18.min.json +317 -15
  99. package/node_modules/aws-sdk/apis/grafana-2020-08-18.paginators.json +12 -0
  100. package/node_modules/aws-sdk/apis/greengrassv2-2020-11-30.min.json +17 -3
  101. package/node_modules/aws-sdk/apis/groundstation-2019-05-23.min.json +7 -1
  102. package/node_modules/aws-sdk/apis/guardduty-2017-11-28.min.json +429 -124
  103. package/node_modules/aws-sdk/apis/imagebuilder-2019-12-02.min.json +3 -0
  104. package/node_modules/aws-sdk/apis/inspector2-2020-06-08.min.json +122 -96
  105. package/node_modules/aws-sdk/apis/iotfleetwise-2021-06-17.min.json +18 -10
  106. package/node_modules/aws-sdk/apis/iottwinmaker-2021-11-29.min.json +3 -1
  107. package/node_modules/aws-sdk/apis/iotwireless-2020-11-22.min.json +7 -1
  108. package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.min.json +396 -242
  109. package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.paginators.json +6 -0
  110. package/node_modules/aws-sdk/apis/ivs-realtime-2020-07-14.waiters2.json +5 -0
  111. package/node_modules/aws-sdk/apis/kafka-2018-11-14.min.json +36 -6
  112. package/node_modules/aws-sdk/apis/kinesisanalyticsv2-2018-05-23.min.json +266 -110
  113. package/node_modules/aws-sdk/apis/kinesisanalyticsv2-2018-05-23.paginators.json +24 -0
  114. package/node_modules/aws-sdk/apis/kms-2014-11-01.examples.json +31 -0
  115. package/node_modules/aws-sdk/apis/kms-2014-11-01.min.json +79 -23
  116. package/node_modules/aws-sdk/apis/lakeformation-2017-03-31.min.json +43 -25
  117. package/node_modules/aws-sdk/apis/launch-wizard-2018-05-10.min.json +159 -0
  118. package/node_modules/aws-sdk/apis/license-manager-linux-subscriptions-2018-05-10.min.json +236 -16
  119. package/node_modules/aws-sdk/apis/license-manager-linux-subscriptions-2018-05-10.paginators.json +6 -0
  120. package/node_modules/aws-sdk/apis/lightsail-2016-11-28.min.json +11 -2
  121. package/node_modules/aws-sdk/apis/location-2020-11-19.min.json +1036 -754
  122. package/node_modules/aws-sdk/apis/location-2020-11-19.paginators.json +6 -0
  123. package/node_modules/aws-sdk/apis/macie2-2020-01-01.min.json +254 -143
  124. package/node_modules/aws-sdk/apis/macie2-2020-01-01.paginators.json +6 -0
  125. package/node_modules/aws-sdk/apis/mailmanager-2023-10-17.min.json +1836 -0
  126. package/node_modules/aws-sdk/apis/mailmanager-2023-10-17.paginators.json +58 -0
  127. package/node_modules/aws-sdk/apis/managedblockchain-2018-09-24.min.json +3 -0
  128. package/node_modules/aws-sdk/apis/mediaconnect-2018-11-14.min.json +106 -94
  129. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.min.json +208 -131
  130. package/node_modules/aws-sdk/apis/mediaconvert-2017-08-29.paginators.json +6 -0
  131. package/node_modules/aws-sdk/apis/medialive-2017-10-14.min.json +367 -364
  132. package/node_modules/aws-sdk/apis/mediapackagev2-2022-12-25.examples.json +1271 -0
  133. package/node_modules/aws-sdk/apis/mediapackagev2-2022-12-25.min.json +108 -71
  134. package/node_modules/aws-sdk/apis/medical-imaging-2023-07-19.min.json +8 -5
  135. package/node_modules/aws-sdk/apis/metadata.json +20 -9
  136. package/node_modules/aws-sdk/apis/mq-2017-11-27.min.json +4 -4
  137. package/node_modules/aws-sdk/apis/mwaa-2020-07-01.min.json +178 -158
  138. package/node_modules/aws-sdk/apis/networkmanager-2019-07-05.min.json +320 -176
  139. package/node_modules/aws-sdk/apis/omics-2022-11-28.min.json +36 -22
  140. package/node_modules/aws-sdk/apis/opensearch-2021-01-01.min.json +190 -115
  141. package/node_modules/aws-sdk/apis/opsworks-2013-02-18.min.json +3 -0
  142. package/node_modules/aws-sdk/apis/organizations-2016-11-28.min.json +7 -1
  143. package/node_modules/aws-sdk/apis/osis-2022-01-01.min.json +77 -28
  144. package/node_modules/aws-sdk/apis/payment-cryptography-2021-09-14.min.json +10 -1
  145. package/node_modules/aws-sdk/apis/payment-cryptography-data-2022-02-03.min.json +544 -383
  146. package/node_modules/aws-sdk/apis/payment-cryptography-data-2022-02-03.waiters2.json +5 -0
  147. package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.examples.json +5 -0
  148. package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.min.json +456 -0
  149. package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.paginators.json +16 -0
  150. package/node_modules/aws-sdk/apis/pca-connector-scep-2018-05-10.waiters2.json +5 -0
  151. package/node_modules/aws-sdk/apis/personalize-2018-05-22.min.json +153 -44
  152. package/node_modules/aws-sdk/apis/personalize-runtime-2018-05-22.min.json +9 -1
  153. package/node_modules/aws-sdk/apis/pi-2018-02-27.min.json +28 -18
  154. package/node_modules/aws-sdk/apis/pinpoint-2016-12-01.min.json +403 -378
  155. package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.min.json +521 -99
  156. package/node_modules/aws-sdk/apis/pinpoint-sms-voice-v2-2022-03-31.paginators.json +6 -0
  157. package/node_modules/aws-sdk/apis/pipes-2015-10-07.min.json +632 -555
  158. package/node_modules/aws-sdk/apis/pipes-2015-10-07.waiters2.json +5 -0
  159. package/node_modules/aws-sdk/apis/polly-2016-06-10.min.json +7 -1
  160. package/node_modules/aws-sdk/apis/qapps-2023-11-27.examples.json +583 -0
  161. package/node_modules/aws-sdk/apis/qapps-2023-11-27.min.json +1312 -0
  162. package/node_modules/aws-sdk/apis/qapps-2023-11-27.paginators.json +16 -0
  163. package/node_modules/aws-sdk/apis/qapps-2023-11-27.waiters2.json +5 -0
  164. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.examples.json +2 -3
  165. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.min.json +813 -689
  166. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.paginators.json +1 -1
  167. package/node_modules/aws-sdk/apis/qbusiness-2023-11-27.waiters2.json +5 -0
  168. package/node_modules/aws-sdk/apis/qconnect-2020-10-19.min.json +335 -108
  169. package/node_modules/aws-sdk/apis/qconnect-2020-10-19.paginators.json +6 -0
  170. package/node_modules/aws-sdk/apis/quicksight-2018-04-01.min.json +2113 -1354
  171. package/node_modules/aws-sdk/apis/rds-2013-01-10.min.json +4 -1
  172. package/node_modules/aws-sdk/apis/rds-2013-02-12.min.json +4 -1
  173. package/node_modules/aws-sdk/apis/rds-2013-09-09.min.json +4 -1
  174. package/node_modules/aws-sdk/apis/rds-2014-09-01.min.json +4 -1
  175. package/node_modules/aws-sdk/apis/rds-2014-10-31.min.json +25 -10
  176. package/node_modules/aws-sdk/apis/redshift-2012-12-01.min.json +7 -1
  177. package/node_modules/aws-sdk/apis/redshift-serverless-2021-04-21.min.json +7 -1
  178. package/node_modules/aws-sdk/apis/rekognition-2016-06-27.min.json +15 -3
  179. package/node_modules/aws-sdk/apis/resiliencehub-2020-04-30.min.json +63 -14
  180. package/node_modules/aws-sdk/apis/resiliencehub-2020-04-30.paginators.json +6 -0
  181. package/node_modules/aws-sdk/apis/route53domains-2014-05-15.min.json +7 -1
  182. package/node_modules/aws-sdk/apis/route53profiles-2018-05-10.min.json +3 -0
  183. package/node_modules/aws-sdk/apis/route53resolver-2018-04-01.min.json +62 -53
  184. package/node_modules/aws-sdk/apis/s3-2006-03-01.examples.json +76 -76
  185. package/node_modules/aws-sdk/apis/s3-2006-03-01.min.json +46 -5
  186. package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.min.json +1958 -1211
  187. package/node_modules/aws-sdk/apis/sagemaker-2017-07-24.paginators.json +12 -0
  188. package/node_modules/aws-sdk/apis/secretsmanager-2017-10-17.min.json +11 -1
  189. package/node_modules/aws-sdk/apis/securityhub-2018-10-26.min.json +7 -1
  190. package/node_modules/aws-sdk/apis/securitylake-2018-05-10.min.json +7 -1
  191. package/node_modules/aws-sdk/apis/sesv2-2019-09-27.min.json +148 -136
  192. package/node_modules/aws-sdk/apis/shield-2016-06-02.min.json +7 -1
  193. package/node_modules/aws-sdk/apis/signer-2017-08-25.min.json +3 -0
  194. package/node_modules/aws-sdk/apis/snowball-2016-06-30.min.json +7 -1
  195. package/node_modules/aws-sdk/apis/sns-2010-03-31.min.json +7 -1
  196. package/node_modules/aws-sdk/apis/sqs-2012-11-05.min.json +24 -14
  197. package/node_modules/aws-sdk/apis/ssm-2014-11-06.min.json +14 -3
  198. package/node_modules/aws-sdk/apis/ssm-sap-2018-05-10.min.json +95 -0
  199. package/node_modules/aws-sdk/apis/ssm-sap-2018-05-10.paginators.json +6 -0
  200. package/node_modules/aws-sdk/apis/sso-oidc-2019-06-10.examples.json +9 -0
  201. package/node_modules/aws-sdk/apis/sso-oidc-2019-06-10.min.json +32 -9
  202. package/node_modules/aws-sdk/apis/states-2016-11-23.min.json +4 -1
  203. package/node_modules/aws-sdk/apis/storagegateway-2013-06-30.min.json +30 -14
  204. package/node_modules/aws-sdk/apis/swf-2012-01-25.min.json +104 -68
  205. package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.examples.json +5 -0
  206. package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.min.json +658 -0
  207. package/node_modules/aws-sdk/apis/taxsettings-2018-05-10.paginators.json +10 -0
  208. package/node_modules/aws-sdk/apis/timestream-query-2018-11-01.min.json +71 -23
  209. package/node_modules/aws-sdk/apis/transcribe-2017-10-26.min.json +101 -76
  210. package/node_modules/aws-sdk/apis/transfer-2018-11-05.min.json +19 -8
  211. package/node_modules/aws-sdk/apis/trustedadvisor-2022-09-15.min.json +107 -46
  212. package/node_modules/aws-sdk/apis/verifiedpermissions-2021-12-01.min.json +345 -83
  213. package/node_modules/aws-sdk/apis/waf-2015-08-24.min.json +7 -1
  214. package/node_modules/aws-sdk/apis/wafv2-2019-07-29.min.json +46 -33
  215. package/node_modules/aws-sdk/apis/workspaces-2015-04-08.min.json +513 -76
  216. package/node_modules/aws-sdk/apis/workspaces-thin-client-2023-08-22.min.json +30 -13
  217. package/node_modules/aws-sdk/apis/workspaces-web-2020-07-08.min.json +8 -1
  218. package/node_modules/aws-sdk/clients/accessanalyzer.d.ts +162 -3
  219. package/node_modules/aws-sdk/clients/account.d.ts +84 -9
  220. package/node_modules/aws-sdk/clients/acm.d.ts +8 -8
  221. package/node_modules/aws-sdk/clients/acmpca.d.ts +40 -40
  222. package/node_modules/aws-sdk/clients/all.d.ts +6 -3
  223. package/node_modules/aws-sdk/clients/all.js +7 -4
  224. package/node_modules/aws-sdk/clients/amplify.d.ts +15 -14
  225. package/node_modules/aws-sdk/clients/applicationautoscaling.d.ts +43 -43
  226. package/node_modules/aws-sdk/clients/applicationsignals.d.ts +955 -0
  227. package/node_modules/aws-sdk/clients/applicationsignals.js +18 -0
  228. package/node_modules/aws-sdk/clients/apptest.d.ts +2019 -0
  229. package/node_modules/aws-sdk/clients/apptest.js +19 -0
  230. package/node_modules/aws-sdk/clients/arczonalshift.d.ts +66 -29
  231. package/node_modules/aws-sdk/clients/artifact.d.ts +68 -64
  232. package/node_modules/aws-sdk/clients/artifact.js +1 -0
  233. package/node_modules/aws-sdk/clients/athena.d.ts +5 -5
  234. package/node_modules/aws-sdk/clients/auditmanager.d.ts +45 -33
  235. package/node_modules/aws-sdk/clients/autoscaling.d.ts +67 -67
  236. package/node_modules/aws-sdk/clients/b2bi.d.ts +8 -8
  237. package/node_modules/aws-sdk/clients/batch.d.ts +54 -1
  238. package/node_modules/aws-sdk/clients/bedrock.d.ts +63 -14
  239. package/node_modules/aws-sdk/clients/bedrockagent.d.ts +2327 -211
  240. package/node_modules/aws-sdk/clients/bedrockagentruntime.d.ts +666 -28
  241. package/node_modules/aws-sdk/clients/bedrockruntime.d.ts +849 -4
  242. package/node_modules/aws-sdk/clients/budgets.d.ts +84 -1
  243. package/node_modules/aws-sdk/clients/chatbot.d.ts +100 -0
  244. package/node_modules/aws-sdk/clients/chimesdkmediapipelines.d.ts +19 -15
  245. package/node_modules/aws-sdk/clients/chimesdkvoice.d.ts +9 -9
  246. package/node_modules/aws-sdk/clients/cloudformation.d.ts +11 -2
  247. package/node_modules/aws-sdk/clients/cloudfront.d.ts +7 -7
  248. package/node_modules/aws-sdk/clients/cloudhsmv2.d.ts +134 -34
  249. package/node_modules/aws-sdk/clients/cloudtrail.d.ts +29 -12
  250. package/node_modules/aws-sdk/clients/codeartifact.d.ts +28 -28
  251. package/node_modules/aws-sdk/clients/codebuild.d.ts +71 -24
  252. package/node_modules/aws-sdk/clients/codegurusecurity.d.ts +60 -55
  253. package/node_modules/aws-sdk/clients/codepipeline.d.ts +4 -4
  254. package/node_modules/aws-sdk/clients/cognitoidentityserviceprovider.d.ts +1 -1
  255. package/node_modules/aws-sdk/clients/computeoptimizer.d.ts +449 -47
  256. package/node_modules/aws-sdk/clients/connect.d.ts +935 -35
  257. package/node_modules/aws-sdk/clients/connectcases.d.ts +124 -1
  258. package/node_modules/aws-sdk/clients/controltower.d.ts +244 -44
  259. package/node_modules/aws-sdk/clients/costoptimizationhub.d.ts +380 -328
  260. package/node_modules/aws-sdk/clients/costoptimizationhub.js +1 -0
  261. package/node_modules/aws-sdk/clients/customerprofiles.d.ts +35 -5
  262. package/node_modules/aws-sdk/clients/datasync.d.ts +7 -7
  263. package/node_modules/aws-sdk/clients/datazone.d.ts +667 -5
  264. package/node_modules/aws-sdk/clients/directconnect.d.ts +40 -25
  265. package/node_modules/aws-sdk/clients/dynamodb.d.ts +114 -45
  266. package/node_modules/aws-sdk/clients/ec2.d.ts +423 -284
  267. package/node_modules/aws-sdk/clients/ecr.d.ts +2 -2
  268. package/node_modules/aws-sdk/clients/ecs.d.ts +47 -5
  269. package/node_modules/aws-sdk/clients/eks.d.ts +100 -20
  270. package/node_modules/aws-sdk/clients/elasticache.d.ts +6 -6
  271. package/node_modules/aws-sdk/clients/elbv2.d.ts +6 -6
  272. package/node_modules/aws-sdk/clients/emr.d.ts +12 -4
  273. package/node_modules/aws-sdk/clients/emrserverless.d.ts +191 -0
  274. package/node_modules/aws-sdk/clients/eventbridge.d.ts +111 -20
  275. package/node_modules/aws-sdk/clients/firehose.d.ts +73 -10
  276. package/node_modules/aws-sdk/clients/fms.d.ts +12 -7
  277. package/node_modules/aws-sdk/clients/fsx.d.ts +84 -36
  278. package/node_modules/aws-sdk/clients/globalaccelerator.d.ts +8 -0
  279. package/node_modules/aws-sdk/clients/glue.d.ts +504 -23
  280. package/node_modules/aws-sdk/clients/grafana.d.ts +297 -11
  281. package/node_modules/aws-sdk/clients/greengrassv2.d.ts +15 -5
  282. package/node_modules/aws-sdk/clients/guardduty.d.ts +277 -5
  283. package/node_modules/aws-sdk/clients/inspector2.d.ts +49 -3
  284. package/node_modules/aws-sdk/clients/iotfleetwise.d.ts +11 -1
  285. package/node_modules/aws-sdk/clients/iottwinmaker.d.ts +1 -1
  286. package/node_modules/aws-sdk/clients/iotwireless.d.ts +2 -2
  287. package/node_modules/aws-sdk/clients/ivsrealtime.d.ts +433 -235
  288. package/node_modules/aws-sdk/clients/ivsrealtime.js +1 -0
  289. package/node_modules/aws-sdk/clients/kafka.d.ts +35 -0
  290. package/node_modules/aws-sdk/clients/kinesisanalyticsv2.d.ts +147 -3
  291. package/node_modules/aws-sdk/clients/kms.d.ts +78 -12
  292. package/node_modules/aws-sdk/clients/lakeformation.d.ts +17 -0
  293. package/node_modules/aws-sdk/clients/launchwizard.d.ts +181 -8
  294. package/node_modules/aws-sdk/clients/licensemanagerlinuxsubscriptions.d.ts +249 -10
  295. package/node_modules/aws-sdk/clients/lightsail.d.ts +29 -25
  296. package/node_modules/aws-sdk/clients/location.d.ts +981 -677
  297. package/node_modules/aws-sdk/clients/macie2.d.ts +149 -44
  298. package/node_modules/aws-sdk/clients/mailmanager.d.ts +2320 -0
  299. package/node_modules/aws-sdk/clients/mailmanager.js +18 -0
  300. package/node_modules/aws-sdk/clients/managedblockchain.d.ts +4 -4
  301. package/node_modules/aws-sdk/clients/mediaconnect.d.ts +13 -0
  302. package/node_modules/aws-sdk/clients/mediaconvert.d.ts +77 -6
  303. package/node_modules/aws-sdk/clients/medialive.d.ts +8 -0
  304. package/node_modules/aws-sdk/clients/mediapackagev2.d.ts +57 -4
  305. package/node_modules/aws-sdk/clients/medicalimaging.d.ts +7 -2
  306. package/node_modules/aws-sdk/clients/mq.d.ts +15 -15
  307. package/node_modules/aws-sdk/clients/mwaa.d.ts +215 -189
  308. package/node_modules/aws-sdk/clients/networkmanager.d.ts +237 -11
  309. package/node_modules/aws-sdk/clients/omics.d.ts +89 -53
  310. package/node_modules/aws-sdk/clients/opensearch.d.ts +120 -3
  311. package/node_modules/aws-sdk/clients/opsworks.d.ts +117 -117
  312. package/node_modules/aws-sdk/clients/organizations.d.ts +2 -2
  313. package/node_modules/aws-sdk/clients/osis.d.ts +89 -5
  314. package/node_modules/aws-sdk/clients/paymentcryptography.d.ts +3 -3
  315. package/node_modules/aws-sdk/clients/paymentcryptographydata.d.ts +358 -311
  316. package/node_modules/aws-sdk/clients/paymentcryptographydata.js +1 -0
  317. package/node_modules/aws-sdk/clients/pcaconnectorscep.d.ts +486 -0
  318. package/node_modules/aws-sdk/clients/pcaconnectorscep.js +19 -0
  319. package/node_modules/aws-sdk/clients/personalize.d.ts +160 -1
  320. package/node_modules/aws-sdk/clients/personalizeruntime.d.ts +6 -0
  321. package/node_modules/aws-sdk/clients/pi.d.ts +17 -10
  322. package/node_modules/aws-sdk/clients/pinpoint.d.ts +27 -0
  323. package/node_modules/aws-sdk/clients/pinpointsmsvoicev2.d.ts +514 -8
  324. package/node_modules/aws-sdk/clients/pipes.d.ts +455 -348
  325. package/node_modules/aws-sdk/clients/pipes.js +1 -0
  326. package/node_modules/aws-sdk/clients/polly.d.ts +9 -9
  327. package/node_modules/aws-sdk/clients/qapps.d.ts +1442 -0
  328. package/node_modules/aws-sdk/clients/qapps.js +19 -0
  329. package/node_modules/aws-sdk/clients/qbusiness.d.ts +855 -699
  330. package/node_modules/aws-sdk/clients/qbusiness.js +1 -0
  331. package/node_modules/aws-sdk/clients/qconnect.d.ts +219 -1
  332. package/node_modules/aws-sdk/clients/quicksight.d.ts +901 -14
  333. package/node_modules/aws-sdk/clients/rds.d.ts +67 -19
  334. package/node_modules/aws-sdk/clients/redshift.d.ts +16 -16
  335. package/node_modules/aws-sdk/clients/redshiftserverless.d.ts +17 -7
  336. package/node_modules/aws-sdk/clients/rekognition.d.ts +11 -3
  337. package/node_modules/aws-sdk/clients/resiliencehub.d.ts +80 -15
  338. package/node_modules/aws-sdk/clients/route53profiles.d.ts +4 -4
  339. package/node_modules/aws-sdk/clients/route53resolver.d.ts +18 -5
  340. package/node_modules/aws-sdk/clients/s3.d.ts +34 -10
  341. package/node_modules/aws-sdk/clients/sagemaker.d.ts +1065 -59
  342. package/node_modules/aws-sdk/clients/secretsmanager.d.ts +20 -15
  343. package/node_modules/aws-sdk/clients/securityhub.d.ts +71 -71
  344. package/node_modules/aws-sdk/clients/securitylake.d.ts +3 -3
  345. package/node_modules/aws-sdk/clients/sesv2.d.ts +28 -10
  346. package/node_modules/aws-sdk/clients/signer.d.ts +3 -3
  347. package/node_modules/aws-sdk/clients/sns.d.ts +7 -7
  348. package/node_modules/aws-sdk/clients/sqs.d.ts +24 -19
  349. package/node_modules/aws-sdk/clients/ssmsap.d.ts +121 -1
  350. package/node_modules/aws-sdk/clients/ssooidc.d.ts +32 -4
  351. package/node_modules/aws-sdk/clients/storagegateway.d.ts +37 -22
  352. package/node_modules/aws-sdk/clients/swf.d.ts +38 -2
  353. package/node_modules/aws-sdk/clients/taxsettings.d.ts +809 -0
  354. package/node_modules/aws-sdk/clients/taxsettings.js +18 -0
  355. package/node_modules/aws-sdk/clients/timestreamquery.d.ts +54 -0
  356. package/node_modules/aws-sdk/clients/transcribeservice.d.ts +32 -0
  357. package/node_modules/aws-sdk/clients/transfer.d.ts +5 -5
  358. package/node_modules/aws-sdk/clients/trustedadvisor.d.ts +66 -2
  359. package/node_modules/aws-sdk/clients/verifiedpermissions.d.ts +300 -14
  360. package/node_modules/aws-sdk/clients/vpclattice.d.ts +81 -81
  361. package/node_modules/aws-sdk/clients/wafv2.d.ts +35 -5
  362. package/node_modules/aws-sdk/clients/workspaces.d.ts +598 -6
  363. package/node_modules/aws-sdk/clients/workspacesthinclient.d.ts +15 -0
  364. package/node_modules/aws-sdk/clients/workspacesweb.d.ts +21 -1
  365. package/node_modules/aws-sdk/dist/aws-sdk-core-react-native.js +9 -5
  366. package/node_modules/aws-sdk/dist/aws-sdk-react-native.js +2141 -1908
  367. package/node_modules/aws-sdk/dist/aws-sdk.js +4544 -2431
  368. package/node_modules/aws-sdk/dist/aws-sdk.min.js +107 -106
  369. package/node_modules/aws-sdk/lib/config_service_placeholders.d.ts +12 -6
  370. package/node_modules/aws-sdk/lib/core.js +1 -1
  371. package/node_modules/aws-sdk/lib/credentials/cognito_identity_credentials.js +9 -0
  372. package/node_modules/aws-sdk/lib/credentials/sso_credentials.js +1 -1
  373. package/node_modules/aws-sdk/lib/credentials/token_file_web_identity_credentials.d.ts +2 -2
  374. package/node_modules/aws-sdk/lib/dynamodb/document_client.d.ts +86 -17
  375. package/node_modules/aws-sdk/lib/metadata_service.d.ts +4 -0
  376. package/node_modules/aws-sdk/lib/metadata_service.js +1 -2
  377. package/node_modules/aws-sdk/lib/protocol/rest_json.js +2 -1
  378. package/node_modules/aws-sdk/lib/query/query_param_serializer.js +3 -1
  379. package/node_modules/aws-sdk/lib/region_config.js +2 -1
  380. package/node_modules/aws-sdk/lib/services/s3.js +51 -6
  381. package/node_modules/aws-sdk/lib/shared-ini/ini-loader.d.ts +24 -1
  382. package/node_modules/aws-sdk/lib/shared-ini/ini-loader.js +0 -6
  383. package/node_modules/aws-sdk/package.json +1 -1
  384. package/node_modules/aws-sdk/scripts/region-checker/allowlist.js +10 -10
  385. package/node_modules/xml2js/node_modules/sax/LICENSE +2 -2
  386. package/node_modules/xml2js/node_modules/sax/README.md +3 -0
  387. package/node_modules/xml2js/node_modules/sax/lib/sax.js +33 -10
  388. package/node_modules/xml2js/node_modules/sax/package.json +1 -1
  389. package/package.json +17 -15
  390. package/node_modules/aws-sdk/apis/alexaforbusiness-2017-11-09.min.json +0 -2905
  391. package/node_modules/aws-sdk/apis/alexaforbusiness-2017-11-09.paginators.json +0 -94
  392. package/node_modules/aws-sdk/apis/backupstorage-2018-04-10.min.json +0 -522
  393. package/node_modules/aws-sdk/apis/backupstorage-2018-04-10.paginators.json +0 -14
  394. package/node_modules/aws-sdk/apis/honeycode-2020-03-01.min.json +0 -962
  395. package/node_modules/aws-sdk/apis/honeycode-2020-03-01.paginators.json +0 -27
  396. package/node_modules/aws-sdk/clients/alexaforbusiness.d.ts +0 -3862
  397. package/node_modules/aws-sdk/clients/alexaforbusiness.js +0 -18
  398. package/node_modules/aws-sdk/clients/backupstorage.d.ts +0 -469
  399. package/node_modules/aws-sdk/clients/backupstorage.js +0 -18
  400. package/node_modules/aws-sdk/clients/honeycode.d.ts +0 -910
  401. package/node_modules/aws-sdk/clients/honeycode.js +0 -18
  402. /package/node_modules/aws-sdk/apis/{alexaforbusiness-2017-11-09.examples.json → application-signals-2024-04-15.examples.json} +0 -0
  403. /package/node_modules/aws-sdk/apis/{backupstorage-2018-04-10.examples.json → apptest-2022-12-06.examples.json} +0 -0
  404. /package/node_modules/aws-sdk/apis/{honeycode-2020-03-01.examples.json → mailmanager-2023-10-17.examples.json} +0 -0
@@ -52,11 +52,11 @@ declare class KMS extends Service {
52
52
  */
53
53
  createGrant(callback?: (err: AWSError, data: KMS.Types.CreateGrantResponse) => void): Request<KMS.Types.CreateGrantResponse, AWSError>;
54
54
  /**
55
- * Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources. A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties. KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term. To create different types of KMS keys, use the following guidance: Symmetric encryption KMS key By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance. To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material. If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair. Asymmetric KMS keys To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created. Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. HMAC KMS key To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created. HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys Imported key material To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation. You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store. This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide . You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store. To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. Custom key store A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation. To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store. To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region. To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account. Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide. Related operations: DescribeKey ListKeys ScheduleKeyDeletion Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
55
+ * Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources. A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties. KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term. To create different types of KMS keys, use the following guidance: Symmetric encryption KMS key By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance. To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material. If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair. Asymmetric KMS keys To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created. Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. Each KMS key can have only one key usage. KMS keys with RSA key pairs can be used to encrypt and decrypt data or sign and verify messages (but not both). KMS keys with NIST-recommended ECC key pairs can be used to sign and verify messages or derive shared secrets (but not both). KMS keys with ECC_SECG_P256K1 can be used only to sign and verify messages. KMS keys with SM2 key pairs (China Regions only) can be used to either encrypt and decrypt data, sign and verify messages, or derive shared secrets (you must choose one key usage type). For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. HMAC KMS key To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created. HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys Imported key material To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation. You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store. This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide . You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store. To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. Custom key store A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation. To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store. To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region. To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account. Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide. Related operations: DescribeKey ListKeys ScheduleKeyDeletion Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
56
56
  */
57
57
  createKey(params: KMS.Types.CreateKeyRequest, callback?: (err: AWSError, data: KMS.Types.CreateKeyResponse) => void): Request<KMS.Types.CreateKeyResponse, AWSError>;
58
58
  /**
59
- * Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources. A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties. KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term. To create different types of KMS keys, use the following guidance: Symmetric encryption KMS key By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance. To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material. If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair. Asymmetric KMS keys To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created. Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. HMAC KMS key To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created. HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys Imported key material To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation. You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store. This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide . You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store. To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. Custom key store A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation. To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store. To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region. To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account. Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide. Related operations: DescribeKey ListKeys ScheduleKeyDeletion Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
59
+ * Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources. A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties. KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term. To create different types of KMS keys, use the following guidance: Symmetric encryption KMS key By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance. To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material. If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair. Asymmetric KMS keys To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created. Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. Each KMS key can have only one key usage. KMS keys with RSA key pairs can be used to encrypt and decrypt data or sign and verify messages (but not both). KMS keys with NIST-recommended ECC key pairs can be used to sign and verify messages or derive shared secrets (but not both). KMS keys with ECC_SECG_P256K1 can be used only to sign and verify messages. KMS keys with SM2 key pairs (China Regions only) can be used to either encrypt and decrypt data, sign and verify messages, or derive shared secrets (you must choose one key usage type). For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. HMAC KMS key To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created. HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes. Multi-Region primary keys Imported key material To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation. You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store. This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide . You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store. To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide. Custom key store A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation. To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store. To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region. To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key. Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation. Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account. Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide. Related operations: DescribeKey ListKeys ScheduleKeyDeletion Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
60
60
  */
61
61
  createKey(callback?: (err: AWSError, data: KMS.Types.CreateKeyResponse) => void): Request<KMS.Types.CreateKeyResponse, AWSError>;
62
62
  /**
@@ -91,6 +91,14 @@ declare class KMS extends Service {
91
91
  * Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide. When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account. Required permissions: kms:DeleteImportedKeyMaterial (key policy) Related operations: GetParametersForImport ImportKeyMaterial Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
92
92
  */
93
93
  deleteImportedKeyMaterial(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
94
+ /**
95
+ * Derives a shared secret using a key agreement algorithm. You must use an asymmetric NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) KMS key pair with a KeyUsage value of KEY_AGREEMENT to call DeriveSharedSecret. DeriveSharedSecret uses the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive (ECDH) to establish a key agreement between two peers by deriving a shared secret from their elliptic curve public-private key pairs. You can use the raw shared secret that DeriveSharedSecret returns to derive a symmetric key that can encrypt and decrypt data that is sent between the two peers, or that can generate and verify HMACs. KMS recommends that you follow NIST recommendations for key derivation when using the raw shared secret to derive a symmetric key. The following workflow demonstrates how to establish key agreement over an insecure communication channel using DeriveSharedSecret. Alice calls CreateKey to create an asymmetric KMS key pair with a KeyUsage value of KEY_AGREEMENT. The asymmetric KMS key must use a NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key spec. Bob creates an elliptic curve key pair. Bob can call CreateKey to create an asymmetric KMS key pair or generate a key pair outside of KMS. Bob's key pair must use the same NIST-recommended elliptic curve (ECC) or SM2 (China Regions ony) curve as Alice. Alice and Bob exchange their public keys through an insecure communication channel (like the internet). Use GetPublicKey to download the public key of your asymmetric KMS key pair. KMS strongly recommends verifying that the public key you receive came from the expected party before using it to derive a shared secret. Alice calls DeriveSharedSecret. KMS uses the private key from the KMS key pair generated in Step 1, Bob's public key, and the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive to derive the shared secret. The private key in your KMS key pair never leaves KMS unencrypted. DeriveSharedSecret returns the raw shared secret. Bob uses the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive to calculate the same raw secret using his private key and Alice's public key. To derive a shared secret you must provide a key agreement algorithm, the private key of the caller's asymmetric NIST-recommended elliptic curve or SM2 (China Regions only) KMS key pair, and the public key from your peer's NIST-recommended elliptic curve or SM2 (China Regions only) key pair. The public key can be from another asymmetric KMS key pair or from a key pair generated outside of KMS, but both key pairs must be on the same elliptic curve. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:DeriveSharedSecret (key policy) Related operations: CreateKey GetPublicKey DescribeKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
96
+ */
97
+ deriveSharedSecret(params: KMS.Types.DeriveSharedSecretRequest, callback?: (err: AWSError, data: KMS.Types.DeriveSharedSecretResponse) => void): Request<KMS.Types.DeriveSharedSecretResponse, AWSError>;
98
+ /**
99
+ * Derives a shared secret using a key agreement algorithm. You must use an asymmetric NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) KMS key pair with a KeyUsage value of KEY_AGREEMENT to call DeriveSharedSecret. DeriveSharedSecret uses the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive (ECDH) to establish a key agreement between two peers by deriving a shared secret from their elliptic curve public-private key pairs. You can use the raw shared secret that DeriveSharedSecret returns to derive a symmetric key that can encrypt and decrypt data that is sent between the two peers, or that can generate and verify HMACs. KMS recommends that you follow NIST recommendations for key derivation when using the raw shared secret to derive a symmetric key. The following workflow demonstrates how to establish key agreement over an insecure communication channel using DeriveSharedSecret. Alice calls CreateKey to create an asymmetric KMS key pair with a KeyUsage value of KEY_AGREEMENT. The asymmetric KMS key must use a NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key spec. Bob creates an elliptic curve key pair. Bob can call CreateKey to create an asymmetric KMS key pair or generate a key pair outside of KMS. Bob's key pair must use the same NIST-recommended elliptic curve (ECC) or SM2 (China Regions ony) curve as Alice. Alice and Bob exchange their public keys through an insecure communication channel (like the internet). Use GetPublicKey to download the public key of your asymmetric KMS key pair. KMS strongly recommends verifying that the public key you receive came from the expected party before using it to derive a shared secret. Alice calls DeriveSharedSecret. KMS uses the private key from the KMS key pair generated in Step 1, Bob's public key, and the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive to derive the shared secret. The private key in your KMS key pair never leaves KMS unencrypted. DeriveSharedSecret returns the raw shared secret. Bob uses the Elliptic Curve Cryptography Cofactor Diffie-Hellman Primitive to calculate the same raw secret using his private key and Alice's public key. To derive a shared secret you must provide a key agreement algorithm, the private key of the caller's asymmetric NIST-recommended elliptic curve or SM2 (China Regions only) KMS key pair, and the public key from your peer's NIST-recommended elliptic curve or SM2 (China Regions only) key pair. The public key can be from another asymmetric KMS key pair or from a key pair generated outside of KMS, but both key pairs must be on the same elliptic curve. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:DeriveSharedSecret (key policy) Related operations: CreateKey GetPublicKey DescribeKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
100
+ */
101
+ deriveSharedSecret(callback?: (err: AWSError, data: KMS.Types.DeriveSharedSecretResponse) => void): Request<KMS.Types.DeriveSharedSecretResponse, AWSError>;
94
102
  /**
95
103
  * Gets information about custom key stores in the account and Region. This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage. By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both). To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry. Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled. For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide. Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account. Required permissions: kms:DescribeCustomKeyStores (IAM policy) Related operations: ConnectCustomKeyStore CreateCustomKeyStore DeleteCustomKeyStore DisconnectCustomKeyStore UpdateCustomKeyStore Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
96
104
  */
@@ -228,11 +236,11 @@ declare class KMS extends Service {
228
236
  */
229
237
  getParametersForImport(callback?: (err: AWSError, data: KMS.Types.GetParametersForImportResponse) => void): Request<KMS.Types.GetParametersForImportResponse, AWSError>;
230
238
  /**
231
- * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including: KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521. KeyUsage: Whether the key is used for encryption or signing. EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key. Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation. To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:GetPublicKey (key policy) Related operations: CreateKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
239
+ * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including: KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521. KeyUsage: Whether the key is used for encryption, signing, or deriving a shared secret. EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key. Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation. To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:GetPublicKey (key policy) Related operations: CreateKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
232
240
  */
233
241
  getPublicKey(params: KMS.Types.GetPublicKeyRequest, callback?: (err: AWSError, data: KMS.Types.GetPublicKeyResponse) => void): Request<KMS.Types.GetPublicKeyResponse, AWSError>;
234
242
  /**
235
- * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including: KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521. KeyUsage: Whether the key is used for encryption or signing. EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key. Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation. To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:GetPublicKey (key policy) Related operations: CreateKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
243
+ * Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide. You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS. To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including: KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521. KeyUsage: Whether the key is used for encryption, signing, or deriving a shared secret. EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key. Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation. To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs. The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide. Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter. Required permissions: kms:GetPublicKey (key policy) Related operations: CreateKey Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.
236
244
  */
237
245
  getPublicKey(callback?: (err: AWSError, data: KMS.Types.GetPublicKeyResponse) => void): Request<KMS.Types.GetPublicKeyResponse, AWSError>;
238
246
  /**
@@ -430,7 +438,7 @@ declare class KMS extends Service {
430
438
  }
431
439
  declare namespace KMS {
432
440
  export type AWSAccountIdType = string;
433
- export type AlgorithmSpec = "RSAES_PKCS1_V1_5"|"RSAES_OAEP_SHA_1"|"RSAES_OAEP_SHA_256"|"RSA_AES_KEY_WRAP_SHA_1"|"RSA_AES_KEY_WRAP_SHA_256"|string;
441
+ export type AlgorithmSpec = "RSAES_PKCS1_V1_5"|"RSAES_OAEP_SHA_1"|"RSAES_OAEP_SHA_256"|"RSA_AES_KEY_WRAP_SHA_1"|"RSA_AES_KEY_WRAP_SHA_256"|"SM2PKE"|string;
434
442
  export type AliasList = AliasListEntry[];
435
443
  export interface AliasListEntry {
436
444
  /**
@@ -594,7 +602,7 @@ declare namespace KMS {
594
602
  */
595
603
  Description?: DescriptionType;
596
604
  /**
597
- * Determines the cryptographic operations for which you can use the KMS key. The default value is ENCRYPT_DECRYPT. This parameter is optional when you are creating a symmetric encryption KMS key; otherwise, it is required. You can't change the KeyUsage value after the KMS key is created. Select only one valid value. For symmetric encryption KMS keys, omit the parameter or specify ENCRYPT_DECRYPT. For HMAC KMS keys (symmetric), specify GENERATE_VERIFY_MAC. For asymmetric KMS keys with RSA key material, specify ENCRYPT_DECRYPT or SIGN_VERIFY. For asymmetric KMS keys with ECC key material, specify SIGN_VERIFY. For asymmetric KMS keys with SM2 key material (China Regions only), specify ENCRYPT_DECRYPT or SIGN_VERIFY.
605
+ * Determines the cryptographic operations for which you can use the KMS key. The default value is ENCRYPT_DECRYPT. This parameter is optional when you are creating a symmetric encryption KMS key; otherwise, it is required. You can't change the KeyUsage value after the KMS key is created. Select only one valid value. For symmetric encryption KMS keys, omit the parameter or specify ENCRYPT_DECRYPT. For HMAC KMS keys (symmetric), specify GENERATE_VERIFY_MAC. For asymmetric KMS keys with RSA key pairs, specify ENCRYPT_DECRYPT or SIGN_VERIFY. For asymmetric KMS keys with NIST-recommended elliptic curve key pairs, specify SIGN_VERIFY or KEY_AGREEMENT. For asymmetric KMS keys with ECC_SECG_P256K1 key pairs specify SIGN_VERIFY. For asymmetric KMS keys with SM2 key pairs (China Regions only), specify ENCRYPT_DECRYPT, SIGN_VERIFY, or KEY_AGREEMENT.
598
606
  */
599
607
  KeyUsage?: KeyUsageType;
600
608
  /**
@@ -602,7 +610,7 @@ declare namespace KMS {
602
610
  */
603
611
  CustomerMasterKeySpec?: CustomerMasterKeySpec;
604
612
  /**
605
- * Specifies the type of KMS key to create. The default value, SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see Choosing a KMS key type in the Key Management Service Developer Guide . The KeySpec determines whether the KMS key contains a symmetric key or an asymmetric key pair. It also determines the algorithms that the KMS key supports. You can't change the KeySpec after the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its key policy or IAM policy. For more information, see kms:EncryptionAlgorithm, kms:MacAlgorithm or kms:Signing Algorithm in the Key Management Service Developer Guide . Amazon Web Services services that are integrated with KMS use symmetric encryption KMS keys to protect your data. These services do not support asymmetric KMS keys or HMAC KMS keys. KMS supports the following key specs for KMS keys: Symmetric encryption key (default) SYMMETRIC_DEFAULT HMAC keys (symmetric) HMAC_224 HMAC_256 HMAC_384 HMAC_512 Asymmetric RSA key pairs RSA_2048 RSA_3072 RSA_4096 Asymmetric NIST-recommended elliptic curve key pairs ECC_NIST_P256 (secp256r1) ECC_NIST_P384 (secp384r1) ECC_NIST_P521 (secp521r1) Other asymmetric elliptic curve key pairs ECC_SECG_P256K1 (secp256k1), commonly used for cryptocurrencies. SM2 key pairs (China Regions only) SM2
613
+ * Specifies the type of KMS key to create. The default value, SYMMETRIC_DEFAULT, creates a KMS key with a 256-bit AES-GCM key that is used for encryption and decryption, except in China Regions, where it creates a 128-bit symmetric key that uses SM4 encryption. For help choosing a key spec for your KMS key, see Choosing a KMS key type in the Key Management Service Developer Guide . The KeySpec determines whether the KMS key contains a symmetric key or an asymmetric key pair. It also determines the algorithms that the KMS key supports. You can't change the KeySpec after the KMS key is created. To further restrict the algorithms that can be used with the KMS key, use a condition key in its key policy or IAM policy. For more information, see kms:EncryptionAlgorithm, kms:MacAlgorithm or kms:Signing Algorithm in the Key Management Service Developer Guide . Amazon Web Services services that are integrated with KMS use symmetric encryption KMS keys to protect your data. These services do not support asymmetric KMS keys or HMAC KMS keys. KMS supports the following key specs for KMS keys: Symmetric encryption key (default) SYMMETRIC_DEFAULT HMAC keys (symmetric) HMAC_224 HMAC_256 HMAC_384 HMAC_512 Asymmetric RSA key pairs (encryption and decryption -or- signing and verification) RSA_2048 RSA_3072 RSA_4096 Asymmetric NIST-recommended elliptic curve key pairs (signing and verification -or- deriving shared secrets) ECC_NIST_P256 (secp256r1) ECC_NIST_P384 (secp384r1) ECC_NIST_P521 (secp521r1) Other asymmetric elliptic curve key pairs (signing and verification) ECC_SECG_P256K1 (secp256k1), commonly used for cryptocurrencies. SM2 key pairs (encryption and decryption -or- signing and verification -or- deriving shared secrets) SM2 (China Regions only)
606
614
  */
607
615
  KeySpec?: KeySpec;
608
616
  /**
@@ -750,6 +758,54 @@ declare namespace KMS {
750
758
  */
751
759
  KeyId: KeyIdType;
752
760
  }
761
+ export interface DeriveSharedSecretRequest {
762
+ /**
763
+ * Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private key in the specified key pair to derive the shared secret. The key usage of the KMS key must be KEY_AGREEMENT. To find the KeyUsage of a KMS key, use the DescribeKey operation. To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with "alias/". To specify a KMS key in a different Amazon Web Services account, you must use the key ARN or alias ARN. For example: Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab Alias name: alias/ExampleAlias Alias ARN: arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey. To get the alias name and alias ARN, use ListAliases.
764
+ */
765
+ KeyId: KeyIdType;
766
+ /**
767
+ * Specifies the key agreement algorithm used to derive the shared secret. The only valid value is ECDH.
768
+ */
769
+ KeyAgreementAlgorithm: KeyAgreementAlgorithmSpec;
770
+ /**
771
+ * Specifies the public key in your peer's NIST-recommended elliptic curve (ECC) or SM2 (China Regions only) key pair. The public key must be a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI), as defined in RFC 5280. GetPublicKey returns the public key of an asymmetric KMS key pair in the required DER-encoded format. If you use Amazon Web Services CLI version 1, you must provide the DER-encoded X.509 public key in a file. Otherwise, the Amazon Web Services CLI Base64-encodes the public key a second time, resulting in a ValidationException. You can specify the public key as binary data in a file using fileb (fileb://&lt;path-to-file&gt;) or in-line using a Base64 encoded string.
772
+ */
773
+ PublicKey: PublicKeyType;
774
+ /**
775
+ * A list of grant tokens. Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide.
776
+ */
777
+ GrantTokens?: GrantTokenList;
778
+ /**
779
+ * Checks if your request will succeed. DryRun is an optional parameter. To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide.
780
+ */
781
+ DryRun?: NullableBooleanType;
782
+ /**
783
+ * A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256. This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave. When you use this parameter, instead of returning a plaintext copy of the shared secret, KMS encrypts the plaintext shared secret under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The CiphertextBlob field in the response contains the encrypted shared secret derived from the KMS key specified by the KeyId parameter and public key specified by the PublicKey parameter. The SharedSecret field in the response is null or empty. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
784
+ */
785
+ Recipient?: RecipientInfo;
786
+ }
787
+ export interface DeriveSharedSecretResponse {
788
+ /**
789
+ * Identifies the KMS key used to derive the shared secret.
790
+ */
791
+ KeyId?: KeyIdType;
792
+ /**
793
+ * The raw secret derived from the specified key agreement algorithm, private key in the asymmetric KMS key, and your peer's public key. If the response includes the CiphertextForRecipient field, the SharedSecret field is null or empty.
794
+ */
795
+ SharedSecret?: PlaintextType;
796
+ /**
797
+ * The plaintext shared secret encrypted with the public key in the attestation document. This field is included in the response only when the Recipient parameter in the request includes a valid attestation document from an Amazon Web Services Nitro enclave. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
798
+ */
799
+ CiphertextForRecipient?: CiphertextType;
800
+ /**
801
+ * Identifies the key agreement algorithm used to derive the shared secret.
802
+ */
803
+ KeyAgreementAlgorithm?: KeyAgreementAlgorithmSpec;
804
+ /**
805
+ * The source of the key material for the specified KMS key. When this value is AWS_KMS, KMS created the key material. When this value is EXTERNAL, the key material was imported or the KMS key doesn't have any key material. The only valid values for DeriveSharedSecret are AWS_KMS and EXTERNAL. DeriveSharedSecret does not support KMS keys with a KeyOrigin value of AWS_CLOUDHSM or EXTERNAL_KEY_STORE.
806
+ */
807
+ KeyOrigin?: OriginType;
808
+ }
753
809
  export interface DescribeCustomKeyStoresRequest {
754
810
  /**
755
811
  * Gets only information about the specified custom key store. Enter the key store ID. By default, this operation gets information about all custom key stores in the account and Region. To limit the output to a particular custom key store, provide either the CustomKeyStoreId or CustomKeyStoreName parameter, but not both.
@@ -899,7 +955,7 @@ declare namespace KMS {
899
955
  */
900
956
  GrantTokens?: GrantTokenList;
901
957
  /**
902
- * A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256. This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts the plaintext private data key under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The CiphertextBlob field in the response contains a copy of the private data key encrypted under the KMS key specified by the KeyId parameter. The PrivateKeyPlaintext field in the response is null or empty. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
958
+ * A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256. This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To call DeriveSharedSecret for an Amazon Web Services Nitro Enclaves, use the Amazon Web Services Nitro Enclaves SDK to generate the attestation document and then use the Recipient parameter from any Amazon Web Services SDK to provide the attestation document for the enclave. When you use this parameter, instead of returning a plaintext copy of the private data key, KMS encrypts the plaintext private data key under the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The CiphertextBlob field in the response contains a copy of the private data key encrypted under the KMS key specified by the KeyId parameter. The PrivateKeyPlaintext field in the response is null or empty. For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.
903
959
  */
904
960
  Recipient?: RecipientInfo;
905
961
  /**
@@ -1225,7 +1281,7 @@ declare namespace KMS {
1225
1281
  */
1226
1282
  KeySpec?: KeySpec;
1227
1283
  /**
1228
- * The permitted use of the public key. Valid values are ENCRYPT_DECRYPT or SIGN_VERIFY. This information is critical. If a public key with SIGN_VERIFY key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.
1284
+ * The permitted use of the public key. Valid values for asymmetric key pairs are ENCRYPT_DECRYPT, SIGN_VERIFY, and KEY_AGREEMENT. This information is critical. For example, if a public key with SIGN_VERIFY key usage encrypts data outside of KMS, the ciphertext cannot be decrypted.
1229
1285
  */
1230
1286
  KeyUsage?: KeyUsageType;
1231
1287
  /**
@@ -1236,6 +1292,10 @@ declare namespace KMS {
1236
1292
  * The signing algorithms that KMS supports for this key. This field appears in the response only when the KeyUsage of the public key is SIGN_VERIFY.
1237
1293
  */
1238
1294
  SigningAlgorithms?: SigningAlgorithmSpecList;
1295
+ /**
1296
+ * The key agreement algorithm used to derive a shared secret. This field is present only when the KMS key has a KeyUsage value of KEY_AGREEMENT.
1297
+ */
1298
+ KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpecList;
1239
1299
  }
1240
1300
  export interface GrantConstraints {
1241
1301
  /**
@@ -1288,7 +1348,7 @@ declare namespace KMS {
1288
1348
  Constraints?: GrantConstraints;
1289
1349
  }
1290
1350
  export type GrantNameType = string;
1291
- export type GrantOperation = "Decrypt"|"Encrypt"|"GenerateDataKey"|"GenerateDataKeyWithoutPlaintext"|"ReEncryptFrom"|"ReEncryptTo"|"Sign"|"Verify"|"GetPublicKey"|"CreateGrant"|"RetireGrant"|"DescribeKey"|"GenerateDataKeyPair"|"GenerateDataKeyPairWithoutPlaintext"|"GenerateMac"|"VerifyMac"|string;
1351
+ export type GrantOperation = "Decrypt"|"Encrypt"|"GenerateDataKey"|"GenerateDataKeyWithoutPlaintext"|"ReEncryptFrom"|"ReEncryptTo"|"Sign"|"Verify"|"GetPublicKey"|"CreateGrant"|"RetireGrant"|"DescribeKey"|"GenerateDataKeyPair"|"GenerateDataKeyPairWithoutPlaintext"|"GenerateMac"|"VerifyMac"|"DeriveSharedSecret"|string;
1292
1352
  export type GrantOperationList = GrantOperation[];
1293
1353
  export type GrantTokenList = GrantTokenType[];
1294
1354
  export type GrantTokenType = string;
@@ -1316,6 +1376,8 @@ declare namespace KMS {
1316
1376
  }
1317
1377
  export interface ImportKeyMaterialResponse {
1318
1378
  }
1379
+ export type KeyAgreementAlgorithmSpec = "ECDH"|string;
1380
+ export type KeyAgreementAlgorithmSpecList = KeyAgreementAlgorithmSpec[];
1319
1381
  export type KeyEncryptionMechanism = "RSAES_OAEP_SHA_256"|string;
1320
1382
  export type KeyIdType = string;
1321
1383
  export type KeyList = KeyListEntry[];
@@ -1407,6 +1469,10 @@ declare namespace KMS {
1407
1469
  * The signing algorithms that the KMS key supports. You cannot use the KMS key with other signing algorithms within KMS. This field appears only when the KeyUsage of the KMS key is SIGN_VERIFY.
1408
1470
  */
1409
1471
  SigningAlgorithms?: SigningAlgorithmSpecList;
1472
+ /**
1473
+ * The key agreement algorithm used to derive a shared secret.
1474
+ */
1475
+ KeyAgreementAlgorithms?: KeyAgreementAlgorithmSpecList;
1410
1476
  /**
1411
1477
  * Indicates whether the KMS key is a multi-Region (True) or regional (False) key. This value is True for multi-Region primary and replica keys and False for regional KMS keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.
1412
1478
  */
@@ -1431,7 +1497,7 @@ declare namespace KMS {
1431
1497
  export type KeySpec = "RSA_2048"|"RSA_3072"|"RSA_4096"|"ECC_NIST_P256"|"ECC_NIST_P384"|"ECC_NIST_P521"|"ECC_SECG_P256K1"|"SYMMETRIC_DEFAULT"|"HMAC_224"|"HMAC_256"|"HMAC_384"|"HMAC_512"|"SM2"|string;
1432
1498
  export type KeyState = "Creating"|"Enabled"|"Disabled"|"PendingDeletion"|"PendingImport"|"PendingReplicaDeletion"|"Unavailable"|"Updating"|string;
1433
1499
  export type KeyStorePasswordType = string;
1434
- export type KeyUsageType = "SIGN_VERIFY"|"ENCRYPT_DECRYPT"|"GENERATE_VERIFY_MAC"|string;
1500
+ export type KeyUsageType = "SIGN_VERIFY"|"ENCRYPT_DECRYPT"|"GENERATE_VERIFY_MAC"|"KEY_AGREEMENT"|string;
1435
1501
  export type LimitType = number;
1436
1502
  export interface ListAliasesRequest {
1437
1503
  /**
@@ -2108,7 +2174,7 @@ declare namespace KMS {
2108
2174
  */
2109
2175
  SigningAlgorithm?: SigningAlgorithmSpec;
2110
2176
  }
2111
- export type WrappingKeySpec = "RSA_2048"|"RSA_3072"|"RSA_4096"|string;
2177
+ export type WrappingKeySpec = "RSA_2048"|"RSA_3072"|"RSA_4096"|"SM2"|string;
2112
2178
  export interface XksKeyConfigurationType {
2113
2179
  /**
2114
2180
  * The ID of the external key in its external key manager. This is the ID that the external key store proxy uses to identify the external key.
@@ -180,6 +180,14 @@ declare class LakeFormation extends Service {
180
180
  * Returns a data cells filter.
181
181
  */
182
182
  getDataCellsFilter(callback?: (err: AWSError, data: LakeFormation.Types.GetDataCellsFilterResponse) => void): Request<LakeFormation.Types.GetDataCellsFilterResponse, AWSError>;
183
+ /**
184
+ * Returns the identity of the invoking principal.
185
+ */
186
+ getDataLakePrincipal(params: LakeFormation.Types.GetDataLakePrincipalRequest, callback?: (err: AWSError, data: LakeFormation.Types.GetDataLakePrincipalResponse) => void): Request<LakeFormation.Types.GetDataLakePrincipalResponse, AWSError>;
187
+ /**
188
+ * Returns the identity of the invoking principal.
189
+ */
190
+ getDataLakePrincipal(callback?: (err: AWSError, data: LakeFormation.Types.GetDataLakePrincipalResponse) => void): Request<LakeFormation.Types.GetDataLakePrincipalResponse, AWSError>;
183
191
  /**
184
192
  * Retrieves the list of the data lake administrators of a Lake Formation-managed data lake.
185
193
  */
@@ -1068,6 +1076,14 @@ declare namespace LakeFormation {
1068
1076
  */
1069
1077
  DataCellsFilter?: DataCellsFilter;
1070
1078
  }
1079
+ export interface GetDataLakePrincipalRequest {
1080
+ }
1081
+ export interface GetDataLakePrincipalResponse {
1082
+ /**
1083
+ * A unique identifier of the invoking principal.
1084
+ */
1085
+ Identity?: IdentityString;
1086
+ }
1071
1087
  export interface GetDataLakeSettingsRequest {
1072
1088
  /**
1073
1089
  * The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
@@ -1418,6 +1434,7 @@ declare namespace LakeFormation {
1418
1434
  export type IAMSAMLProviderArn = string;
1419
1435
  export type Identifier = string;
1420
1436
  export type IdentityCenterInstanceArn = string;
1437
+ export type IdentityString = string;
1421
1438
  export type Integer = number;
1422
1439
  export type KeyString = string;
1423
1440
  export interface LFTag {