cdk-lambda-subminute 2.0.442 → 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
@@ -12,6 +12,30 @@ declare class BedrockRuntime extends Service {
12
12
  */
13
13
  constructor(options?: BedrockRuntime.Types.ClientConfiguration)
14
14
  config: Config & BedrockRuntime.Types.ClientConfiguration;
15
+ /**
16
+ * The action to apply a guardrail.
17
+ */
18
+ applyGuardrail(params: BedrockRuntime.Types.ApplyGuardrailRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ApplyGuardrailResponse) => void): Request<BedrockRuntime.Types.ApplyGuardrailResponse, AWSError>;
19
+ /**
20
+ * The action to apply a guardrail.
21
+ */
22
+ applyGuardrail(callback?: (err: AWSError, data: BedrockRuntime.Types.ApplyGuardrailResponse) => void): Request<BedrockRuntime.Types.ApplyGuardrailResponse, AWSError>;
23
+ /**
24
+ * Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Converse API examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
25
+ */
26
+ converse(params: BedrockRuntime.Types.ConverseRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseResponse) => void): Request<BedrockRuntime.Types.ConverseResponse, AWSError>;
27
+ /**
28
+ * Sends messages to the specified Amazon Bedrock model. Converse provides a consistent interface that works with all models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Converse API examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
29
+ */
30
+ converse(callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseResponse) => void): Request<BedrockRuntime.Types.ConverseResponse, AWSError>;
31
+ /**
32
+ * Sends messages to the specified Amazon Bedrock model and returns the response in a stream. ConverseStream provides a consistent API that works with all Amazon Bedrock models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. To find out if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Conversation streaming example in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModelWithResponseStream action.
33
+ */
34
+ converseStream(params: BedrockRuntime.Types.ConverseStreamRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseStreamResponse) => void): Request<BedrockRuntime.Types.ConverseStreamResponse, AWSError>;
35
+ /**
36
+ * Sends messages to the specified Amazon Bedrock model and returns the response in a stream. ConverseStream provides a consistent API that works with all Amazon Bedrock models that support messages. This allows you to write code once and use it with different models. Should a model have unique inference parameters, you can also pass those unique parameters to the model. To find out if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. For information about the Converse API, see Use the Converse API in the Amazon Bedrock User Guide. To use a guardrail, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. To use a tool with a model, see Tool use (Function calling) in the Amazon Bedrock User Guide For example code, see Conversation streaming example in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModelWithResponseStream action.
37
+ */
38
+ converseStream(callback?: (err: AWSError, data: BedrockRuntime.Types.ConverseStreamResponse) => void): Request<BedrockRuntime.Types.ConverseStreamResponse, AWSError>;
15
39
  /**
16
40
  * Invokes the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. You use model inference to generate text, images, and embeddings. For example code, see Invoke model code examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
17
41
  */
@@ -30,20 +54,657 @@ declare class BedrockRuntime extends Service {
30
54
  invokeModelWithResponseStream(callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelWithResponseStreamResponse) => void): Request<BedrockRuntime.Types.InvokeModelWithResponseStreamResponse, AWSError>;
31
55
  }
32
56
  declare namespace BedrockRuntime {
57
+ export interface AnyToolChoice {
58
+ }
59
+ export interface ApplyGuardrailRequest {
60
+ /**
61
+ * The guardrail identifier used in the request to apply the guardrail.
62
+ */
63
+ guardrailIdentifier: GuardrailIdentifier;
64
+ /**
65
+ * The guardrail version used in the request to apply the guardrail.
66
+ */
67
+ guardrailVersion: GuardrailVersion;
68
+ /**
69
+ * The source of data used in the request to apply the guardrail.
70
+ */
71
+ source: GuardrailContentSource;
72
+ /**
73
+ * The content details used in the request to apply the guardrail.
74
+ */
75
+ content: GuardrailContentBlockList;
76
+ }
77
+ export interface ApplyGuardrailResponse {
78
+ /**
79
+ * The usage details in the response from the guardrail.
80
+ */
81
+ usage: GuardrailUsage;
82
+ /**
83
+ * The action taken in the response from the guardrail.
84
+ */
85
+ action: GuardrailAction;
86
+ /**
87
+ * The output details in the response from the guardrail.
88
+ */
89
+ outputs: GuardrailOutputContentList;
90
+ /**
91
+ * The assessment details in the response from the guardrail.
92
+ */
93
+ assessments: GuardrailAssessmentList;
94
+ }
95
+ export interface AutoToolChoice {
96
+ }
33
97
  export type Body = Buffer|Uint8Array|Blob|string;
98
+ export interface ContentBlock {
99
+ /**
100
+ * Text to include in the message.
101
+ */
102
+ text?: String;
103
+ /**
104
+ * Image to include in the message. This field is only supported by Anthropic Claude 3 models.
105
+ */
106
+ image?: ImageBlock;
107
+ /**
108
+ * A document to include in the message.
109
+ */
110
+ document?: DocumentBlock;
111
+ /**
112
+ * Information about a tool use request from a model.
113
+ */
114
+ toolUse?: ToolUseBlock;
115
+ /**
116
+ * The result for a tool request that a model makes.
117
+ */
118
+ toolResult?: ToolResultBlock;
119
+ /**
120
+ * Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message. For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide. &lt;/p&gt;
121
+ */
122
+ guardContent?: GuardrailConverseContentBlock;
123
+ }
124
+ export interface ContentBlockDelta {
125
+ /**
126
+ * The content text.
127
+ */
128
+ text?: String;
129
+ /**
130
+ * Information about a tool that the model is requesting to use.
131
+ */
132
+ toolUse?: ToolUseBlockDelta;
133
+ }
134
+ export interface ContentBlockDeltaEvent {
135
+ /**
136
+ * The delta for a content block delta event.
137
+ */
138
+ delta: ContentBlockDelta;
139
+ /**
140
+ * The block index for a content block delta event.
141
+ */
142
+ contentBlockIndex: NonNegativeInteger;
143
+ }
144
+ export interface ContentBlockStart {
145
+ /**
146
+ * Information about a tool that the model is requesting to use.
147
+ */
148
+ toolUse?: ToolUseBlockStart;
149
+ }
150
+ export interface ContentBlockStartEvent {
151
+ /**
152
+ * Start information about a content block start event.
153
+ */
154
+ start: ContentBlockStart;
155
+ /**
156
+ * The index for a content block start event.
157
+ */
158
+ contentBlockIndex: NonNegativeInteger;
159
+ }
160
+ export interface ContentBlockStopEvent {
161
+ /**
162
+ * The index for a content block.
163
+ */
164
+ contentBlockIndex: NonNegativeInteger;
165
+ }
166
+ export type ContentBlocks = ContentBlock[];
167
+ export type ConversationRole = "user"|"assistant"|string;
168
+ export type ConversationalModelId = string;
169
+ export interface ConverseMetrics {
170
+ /**
171
+ * The latency of the call to Converse, in milliseconds.
172
+ */
173
+ latencyMs: Long;
174
+ }
175
+ export interface ConverseOutput {
176
+ /**
177
+ * The message that the model generates.
178
+ */
179
+ message?: Message;
180
+ }
181
+ export interface ConverseRequest {
182
+ /**
183
+ * The identifier for the model that you want to call. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
184
+ */
185
+ modelId: ConversationalModelId;
186
+ /**
187
+ * The messages that you want to send to the model.
188
+ */
189
+ messages: Messages;
190
+ /**
191
+ * A system prompt to pass to the model.
192
+ */
193
+ system?: SystemContentBlocks;
194
+ /**
195
+ * Inference parameters to pass to the model. Converse supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the additionalModelRequestFields request field.
196
+ */
197
+ inferenceConfig?: InferenceConfiguration;
198
+ /**
199
+ * Configuration information for the tools that the model can use when generating a response. This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models.
200
+ */
201
+ toolConfig?: ToolConfiguration;
202
+ /**
203
+ * Configuration information for a guardrail that you want to use in the request.
204
+ */
205
+ guardrailConfig?: GuardrailConfiguration;
206
+ /**
207
+ * Additional inference parameters that the model supports, beyond the base set of inference parameters that Converse supports in the inferenceConfig field. For more information, see Model parameters.
208
+ */
209
+ additionalModelRequestFields?: Document;
210
+ /**
211
+ * Additional model parameters field paths to return in the response. Converse returns the requested fields as a JSON Pointer object in the additionalModelResponseFields field. The following is example JSON for additionalModelResponseFieldPaths. [ "/stop_sequence" ] For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation. Converse rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by Converse.
212
+ */
213
+ additionalModelResponseFieldPaths?: ConverseRequestAdditionalModelResponseFieldPathsList;
214
+ }
215
+ export type ConverseRequestAdditionalModelResponseFieldPathsList = ConverseRequestAdditionalModelResponseFieldPathsListMemberString[];
216
+ export type ConverseRequestAdditionalModelResponseFieldPathsListMemberString = string;
217
+ export interface ConverseResponse {
218
+ /**
219
+ * The result from the call to Converse.
220
+ */
221
+ output: ConverseOutput;
222
+ /**
223
+ * The reason why the model stopped generating output.
224
+ */
225
+ stopReason: StopReason;
226
+ /**
227
+ * The total number of tokens used in the call to Converse. The total includes the tokens input to the model and the tokens generated by the model.
228
+ */
229
+ usage: TokenUsage;
230
+ /**
231
+ * Metrics for the call to Converse.
232
+ */
233
+ metrics: ConverseMetrics;
234
+ /**
235
+ * Additional fields in the response that are unique to the model.
236
+ */
237
+ additionalModelResponseFields?: Document;
238
+ /**
239
+ * A trace object that contains information about the Guardrail behavior.
240
+ */
241
+ trace?: ConverseTrace;
242
+ }
243
+ export interface ConverseStreamMetadataEvent {
244
+ /**
245
+ * Usage information for the conversation stream event.
246
+ */
247
+ usage: TokenUsage;
248
+ /**
249
+ * The metrics for the conversation stream metadata event.
250
+ */
251
+ metrics: ConverseStreamMetrics;
252
+ /**
253
+ * The trace object in the response from ConverseStream that contains information about the guardrail behavior.
254
+ */
255
+ trace?: ConverseStreamTrace;
256
+ }
257
+ export interface ConverseStreamMetrics {
258
+ /**
259
+ * The latency for the streaming request, in milliseconds.
260
+ */
261
+ latencyMs: Long;
262
+ }
263
+ export type ConverseStreamOutput = EventStream<{messageStart?:MessageStartEvent,contentBlockStart?:ContentBlockStartEvent,contentBlockDelta?:ContentBlockDeltaEvent,contentBlockStop?:ContentBlockStopEvent,messageStop?:MessageStopEvent,metadata?:ConverseStreamMetadataEvent,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException}>;
264
+ export interface ConverseStreamRequest {
265
+ /**
266
+ * The ID for the model. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
267
+ */
268
+ modelId: ConversationalModelId;
269
+ /**
270
+ * The messages that you want to send to the model.
271
+ */
272
+ messages: Messages;
273
+ /**
274
+ * A system prompt to send to the model.
275
+ */
276
+ system?: SystemContentBlocks;
277
+ /**
278
+ * Inference parameters to pass to the model. ConverseStream supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the additionalModelRequestFields request field.
279
+ */
280
+ inferenceConfig?: InferenceConfiguration;
281
+ /**
282
+ * Configuration information for the tools that the model can use when generating a response. This field is only supported by Anthropic Claude 3 models.
283
+ */
284
+ toolConfig?: ToolConfiguration;
285
+ /**
286
+ * Configuration information for a guardrail that you want to use in the request.
287
+ */
288
+ guardrailConfig?: GuardrailStreamConfiguration;
289
+ /**
290
+ * Additional inference parameters that the model supports, beyond the base set of inference parameters that ConverseStream supports in the inferenceConfig field.
291
+ */
292
+ additionalModelRequestFields?: Document;
293
+ /**
294
+ * Additional model parameters field paths to return in the response. ConverseStream returns the requested fields as a JSON Pointer object in the additionalModelResponseFields field. The following is example JSON for additionalModelResponseFieldPaths. [ "/stop_sequence" ] For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation. ConverseStream rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a 400 error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by ConverseStream.
295
+ */
296
+ additionalModelResponseFieldPaths?: ConverseStreamRequestAdditionalModelResponseFieldPathsList;
297
+ }
298
+ export type ConverseStreamRequestAdditionalModelResponseFieldPathsList = ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString[];
299
+ export type ConverseStreamRequestAdditionalModelResponseFieldPathsListMemberString = string;
300
+ export interface ConverseStreamResponse {
301
+ /**
302
+ * The output stream that the model generated.
303
+ */
304
+ stream?: ConverseStreamOutput;
305
+ }
306
+ export interface ConverseStreamTrace {
307
+ /**
308
+ * The guardrail trace object.
309
+ */
310
+ guardrail?: GuardrailTraceAssessment;
311
+ }
312
+ export interface ConverseTrace {
313
+ /**
314
+ * The guardrail trace object.
315
+ */
316
+ guardrail?: GuardrailTraceAssessment;
317
+ }
318
+ export interface Document {
319
+ }
320
+ export interface DocumentBlock {
321
+ /**
322
+ * The format of a document, or its extension.
323
+ */
324
+ format: DocumentFormat;
325
+ /**
326
+ * A name for the document. The name can only contain the following characters: Alphanumeric characters Whitespace characters (no more than one in a row) Hyphens Parentheses Square brackets This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.
327
+ */
328
+ name: DocumentBlockNameString;
329
+ /**
330
+ * Contains the content of the document.
331
+ */
332
+ source: DocumentSource;
333
+ }
334
+ export type DocumentBlockNameString = string;
335
+ export type DocumentFormat = "pdf"|"csv"|"doc"|"docx"|"xls"|"xlsx"|"html"|"txt"|"md"|string;
336
+ export interface DocumentSource {
337
+ /**
338
+ * The raw bytes for the document. If you use an Amazon Web Services SDK, you don't need to encode the bytes in base64.
339
+ */
340
+ bytes?: DocumentSourceBytesBlob;
341
+ }
342
+ export type DocumentSourceBytesBlob = Buffer|Uint8Array|Blob|string;
343
+ export type GuardrailAction = "NONE"|"GUARDRAIL_INTERVENED"|string;
344
+ export interface GuardrailAssessment {
345
+ /**
346
+ * The topic policy.
347
+ */
348
+ topicPolicy?: GuardrailTopicPolicyAssessment;
349
+ /**
350
+ * The content policy.
351
+ */
352
+ contentPolicy?: GuardrailContentPolicyAssessment;
353
+ /**
354
+ * The word policy.
355
+ */
356
+ wordPolicy?: GuardrailWordPolicyAssessment;
357
+ /**
358
+ * The sensitive information policy.
359
+ */
360
+ sensitiveInformationPolicy?: GuardrailSensitiveInformationPolicyAssessment;
361
+ /**
362
+ * The contextual grounding policy used for the guardrail assessment.
363
+ */
364
+ contextualGroundingPolicy?: GuardrailContextualGroundingPolicyAssessment;
365
+ }
366
+ export type GuardrailAssessmentList = GuardrailAssessment[];
367
+ export type GuardrailAssessmentListMap = {[key: string]: GuardrailAssessmentList};
368
+ export type GuardrailAssessmentMap = {[key: string]: GuardrailAssessment};
369
+ export interface GuardrailConfiguration {
370
+ /**
371
+ * The identifier for the guardrail.
372
+ */
373
+ guardrailIdentifier: GuardrailIdentifier;
374
+ /**
375
+ * The version of the guardrail.
376
+ */
377
+ guardrailVersion: GuardrailVersion;
378
+ /**
379
+ * The trace behavior for the guardrail.
380
+ */
381
+ trace?: GuardrailTrace;
382
+ }
383
+ export interface GuardrailContentBlock {
384
+ /**
385
+ * Text within content block to be evaluated by the guardrail.
386
+ */
387
+ text?: GuardrailTextBlock;
388
+ }
389
+ export type GuardrailContentBlockList = GuardrailContentBlock[];
390
+ export interface GuardrailContentFilter {
391
+ /**
392
+ * The guardrail type.
393
+ */
394
+ type: GuardrailContentFilterType;
395
+ /**
396
+ * The guardrail confidence.
397
+ */
398
+ confidence: GuardrailContentFilterConfidence;
399
+ /**
400
+ * The guardrail action.
401
+ */
402
+ action: GuardrailContentPolicyAction;
403
+ }
404
+ export type GuardrailContentFilterConfidence = "NONE"|"LOW"|"MEDIUM"|"HIGH"|string;
405
+ export type GuardrailContentFilterList = GuardrailContentFilter[];
406
+ export type GuardrailContentFilterType = "INSULTS"|"HATE"|"SEXUAL"|"VIOLENCE"|"MISCONDUCT"|"PROMPT_ATTACK"|string;
407
+ export type GuardrailContentPolicyAction = "BLOCKED"|string;
408
+ export interface GuardrailContentPolicyAssessment {
409
+ /**
410
+ * The content policy filters.
411
+ */
412
+ filters: GuardrailContentFilterList;
413
+ }
414
+ export type GuardrailContentPolicyUnitsProcessed = number;
415
+ export type GuardrailContentQualifier = "grounding_source"|"query"|"guard_content"|string;
416
+ export type GuardrailContentQualifierList = GuardrailContentQualifier[];
417
+ export type GuardrailContentSource = "INPUT"|"OUTPUT"|string;
418
+ export interface GuardrailContextualGroundingFilter {
419
+ /**
420
+ * The contextual grounding filter type.
421
+ */
422
+ type: GuardrailContextualGroundingFilterType;
423
+ /**
424
+ * The threshold used by contextual grounding filter to determine whether the content is grounded or not.
425
+ */
426
+ threshold: GuardrailContextualGroundingFilterThresholdDouble;
427
+ /**
428
+ * The score generated by contextual grounding filter.
429
+ */
430
+ score: GuardrailContextualGroundingFilterScoreDouble;
431
+ /**
432
+ * The action performed by the guardrails contextual grounding filter.
433
+ */
434
+ action: GuardrailContextualGroundingPolicyAction;
435
+ }
436
+ export type GuardrailContextualGroundingFilterScoreDouble = number;
437
+ export type GuardrailContextualGroundingFilterThresholdDouble = number;
438
+ export type GuardrailContextualGroundingFilterType = "GROUNDING"|"RELEVANCE"|string;
439
+ export type GuardrailContextualGroundingFilters = GuardrailContextualGroundingFilter[];
440
+ export type GuardrailContextualGroundingPolicyAction = "BLOCKED"|"NONE"|string;
441
+ export interface GuardrailContextualGroundingPolicyAssessment {
442
+ /**
443
+ * The filter details for the guardrails contextual grounding filter.
444
+ */
445
+ filters?: GuardrailContextualGroundingFilters;
446
+ }
447
+ export type GuardrailContextualGroundingPolicyUnitsProcessed = number;
448
+ export interface GuardrailConverseContentBlock {
449
+ /**
450
+ * The text to guard.
451
+ */
452
+ text?: GuardrailConverseTextBlock;
453
+ }
454
+ export type GuardrailConverseContentQualifier = "grounding_source"|"query"|"guard_content"|string;
455
+ export type GuardrailConverseContentQualifierList = GuardrailConverseContentQualifier[];
456
+ export interface GuardrailConverseTextBlock {
457
+ /**
458
+ * The text that you want to guard.
459
+ */
460
+ text: String;
461
+ /**
462
+ * The qualifier details for the guardrails contextual grounding filter.
463
+ */
464
+ qualifiers?: GuardrailConverseContentQualifierList;
465
+ }
466
+ export interface GuardrailCustomWord {
467
+ /**
468
+ * The match for the custom word.
469
+ */
470
+ match: String;
471
+ /**
472
+ * The action for the custom word.
473
+ */
474
+ action: GuardrailWordPolicyAction;
475
+ }
476
+ export type GuardrailCustomWordList = GuardrailCustomWord[];
34
477
  export type GuardrailIdentifier = string;
478
+ export interface GuardrailManagedWord {
479
+ /**
480
+ * The match for the managed word.
481
+ */
482
+ match: String;
483
+ /**
484
+ * The type for the managed word.
485
+ */
486
+ type: GuardrailManagedWordType;
487
+ /**
488
+ * The action for the managed word.
489
+ */
490
+ action: GuardrailWordPolicyAction;
491
+ }
492
+ export type GuardrailManagedWordList = GuardrailManagedWord[];
493
+ export type GuardrailManagedWordType = "PROFANITY"|string;
494
+ export interface GuardrailOutputContent {
495
+ /**
496
+ * The specific text for the output content produced by the guardrail.
497
+ */
498
+ text?: GuardrailOutputText;
499
+ }
500
+ export type GuardrailOutputContentList = GuardrailOutputContent[];
501
+ export type GuardrailOutputText = string;
502
+ export interface GuardrailPiiEntityFilter {
503
+ /**
504
+ * The PII entity filter match.
505
+ */
506
+ match: String;
507
+ /**
508
+ * The PII entity filter type.
509
+ */
510
+ type: GuardrailPiiEntityType;
511
+ /**
512
+ * The PII entity filter action.
513
+ */
514
+ action: GuardrailSensitiveInformationPolicyAction;
515
+ }
516
+ export type GuardrailPiiEntityFilterList = GuardrailPiiEntityFilter[];
517
+ export type GuardrailPiiEntityType = "ADDRESS"|"AGE"|"AWS_ACCESS_KEY"|"AWS_SECRET_KEY"|"CA_HEALTH_NUMBER"|"CA_SOCIAL_INSURANCE_NUMBER"|"CREDIT_DEBIT_CARD_CVV"|"CREDIT_DEBIT_CARD_EXPIRY"|"CREDIT_DEBIT_CARD_NUMBER"|"DRIVER_ID"|"EMAIL"|"INTERNATIONAL_BANK_ACCOUNT_NUMBER"|"IP_ADDRESS"|"LICENSE_PLATE"|"MAC_ADDRESS"|"NAME"|"PASSWORD"|"PHONE"|"PIN"|"SWIFT_CODE"|"UK_NATIONAL_HEALTH_SERVICE_NUMBER"|"UK_NATIONAL_INSURANCE_NUMBER"|"UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER"|"URL"|"USERNAME"|"US_BANK_ACCOUNT_NUMBER"|"US_BANK_ROUTING_NUMBER"|"US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER"|"US_PASSPORT_NUMBER"|"US_SOCIAL_SECURITY_NUMBER"|"VEHICLE_IDENTIFICATION_NUMBER"|string;
518
+ export interface GuardrailRegexFilter {
519
+ /**
520
+ * The regex filter name.
521
+ */
522
+ name?: String;
523
+ /**
524
+ * The regesx filter match.
525
+ */
526
+ match?: String;
527
+ /**
528
+ * The regex query.
529
+ */
530
+ regex?: String;
531
+ /**
532
+ * The region filter action.
533
+ */
534
+ action: GuardrailSensitiveInformationPolicyAction;
535
+ }
536
+ export type GuardrailRegexFilterList = GuardrailRegexFilter[];
537
+ export type GuardrailSensitiveInformationPolicyAction = "ANONYMIZED"|"BLOCKED"|string;
538
+ export interface GuardrailSensitiveInformationPolicyAssessment {
539
+ /**
540
+ * The PII entities in the assessment.
541
+ */
542
+ piiEntities: GuardrailPiiEntityFilterList;
543
+ /**
544
+ * The regex queries in the assessment.
545
+ */
546
+ regexes: GuardrailRegexFilterList;
547
+ }
548
+ export type GuardrailSensitiveInformationPolicyFreeUnitsProcessed = number;
549
+ export type GuardrailSensitiveInformationPolicyUnitsProcessed = number;
550
+ export interface GuardrailStreamConfiguration {
551
+ /**
552
+ * The identifier for the guardrail.
553
+ */
554
+ guardrailIdentifier: GuardrailIdentifier;
555
+ /**
556
+ * The version of the guardrail.
557
+ */
558
+ guardrailVersion: GuardrailVersion;
559
+ /**
560
+ * The trace behavior for the guardrail.
561
+ */
562
+ trace?: GuardrailTrace;
563
+ /**
564
+ * The processing mode. The processing mode. For more information, see Configure streaming response behavior in the Amazon Bedrock User Guide.
565
+ */
566
+ streamProcessingMode?: GuardrailStreamProcessingMode;
567
+ }
568
+ export type GuardrailStreamProcessingMode = "sync"|"async"|string;
569
+ export interface GuardrailTextBlock {
570
+ /**
571
+ * The input text details to be evaluated by the guardrail.
572
+ */
573
+ text: String;
574
+ /**
575
+ * The qualifiers describing the text block.
576
+ */
577
+ qualifiers?: GuardrailContentQualifierList;
578
+ }
579
+ export interface GuardrailTopic {
580
+ /**
581
+ * The name for the guardrail.
582
+ */
583
+ name: String;
584
+ /**
585
+ * The type behavior that the guardrail should perform when the model detects the topic.
586
+ */
587
+ type: GuardrailTopicType;
588
+ /**
589
+ * The action the guardrail should take when it intervenes on a topic.
590
+ */
591
+ action: GuardrailTopicPolicyAction;
592
+ }
593
+ export type GuardrailTopicList = GuardrailTopic[];
594
+ export type GuardrailTopicPolicyAction = "BLOCKED"|string;
595
+ export interface GuardrailTopicPolicyAssessment {
596
+ /**
597
+ * The topics in the assessment.
598
+ */
599
+ topics: GuardrailTopicList;
600
+ }
601
+ export type GuardrailTopicPolicyUnitsProcessed = number;
602
+ export type GuardrailTopicType = "DENY"|string;
603
+ export type GuardrailTrace = "enabled"|"disabled"|string;
604
+ export interface GuardrailTraceAssessment {
605
+ /**
606
+ * The output from the model.
607
+ */
608
+ modelOutput?: ModelOutputs;
609
+ /**
610
+ * The input assessment.
611
+ */
612
+ inputAssessment?: GuardrailAssessmentMap;
613
+ /**
614
+ * the output assessments.
615
+ */
616
+ outputAssessments?: GuardrailAssessmentListMap;
617
+ }
618
+ export interface GuardrailUsage {
619
+ /**
620
+ * The topic policy units processed by the guardrail.
621
+ */
622
+ topicPolicyUnits: GuardrailTopicPolicyUnitsProcessed;
623
+ /**
624
+ * The content policy units processed by the guardrail.
625
+ */
626
+ contentPolicyUnits: GuardrailContentPolicyUnitsProcessed;
627
+ /**
628
+ * The word policy units processed by the guardrail.
629
+ */
630
+ wordPolicyUnits: GuardrailWordPolicyUnitsProcessed;
631
+ /**
632
+ * The sensitive information policy units processed by the guardrail.
633
+ */
634
+ sensitiveInformationPolicyUnits: GuardrailSensitiveInformationPolicyUnitsProcessed;
635
+ /**
636
+ * The sensitive information policy free units processed by the guardrail.
637
+ */
638
+ sensitiveInformationPolicyFreeUnits: GuardrailSensitiveInformationPolicyFreeUnitsProcessed;
639
+ /**
640
+ * The contextual grounding policy units processed by the guardrail.
641
+ */
642
+ contextualGroundingPolicyUnits: GuardrailContextualGroundingPolicyUnitsProcessed;
643
+ }
35
644
  export type GuardrailVersion = string;
645
+ export type GuardrailWordPolicyAction = "BLOCKED"|string;
646
+ export interface GuardrailWordPolicyAssessment {
647
+ /**
648
+ * Custom words in the assessment.
649
+ */
650
+ customWords: GuardrailCustomWordList;
651
+ /**
652
+ * Managed word lists in the assessment.
653
+ */
654
+ managedWordLists: GuardrailManagedWordList;
655
+ }
656
+ export type GuardrailWordPolicyUnitsProcessed = number;
657
+ export interface ImageBlock {
658
+ /**
659
+ * The format of the image.
660
+ */
661
+ format: ImageFormat;
662
+ /**
663
+ * The source for the image.
664
+ */
665
+ source: ImageSource;
666
+ }
667
+ export type ImageFormat = "png"|"jpeg"|"gif"|"webp"|string;
668
+ export interface ImageSource {
669
+ /**
670
+ * The raw image bytes for the image. If you use an AWS SDK, you don't need to encode the image bytes in base64.
671
+ */
672
+ bytes?: ImageSourceBytesBlob;
673
+ }
674
+ export type ImageSourceBytesBlob = Buffer|Uint8Array|Blob|string;
675
+ export interface InferenceConfiguration {
676
+ /**
677
+ * The maximum number of tokens to allow in the generated response. The default value is the maximum allowed value for the model that you are using. For more information, see Inference parameters for foundation models.
678
+ */
679
+ maxTokens?: InferenceConfigurationMaxTokensInteger;
680
+ /**
681
+ * The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options. The default value is the default value for the model that you are using. For more information, see Inference parameters for foundation models.
682
+ */
683
+ temperature?: InferenceConfigurationTemperatureFloat;
684
+ /**
685
+ * The percentage of most-likely candidates that the model considers for the next token. For example, if you choose a value of 0.8 for topP, the model selects from the top 80% of the probability distribution of tokens that could be next in the sequence. The default value is the default value for the model that you are using. For more information, see Inference parameters for foundation models.
686
+ */
687
+ topP?: InferenceConfigurationTopPFloat;
688
+ /**
689
+ * A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response.
690
+ */
691
+ stopSequences?: InferenceConfigurationStopSequencesList;
692
+ }
693
+ export type InferenceConfigurationMaxTokensInteger = number;
694
+ export type InferenceConfigurationStopSequencesList = NonEmptyString[];
695
+ export type InferenceConfigurationTemperatureFloat = number;
696
+ export type InferenceConfigurationTopPFloat = number;
36
697
  export interface InternalServerException {
37
698
  message?: NonBlankString;
38
699
  }
39
700
  export type InvokeModelIdentifier = string;
40
701
  export interface InvokeModelRequest {
41
702
  /**
42
- * The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
703
+ * The prompt and inference parameters in the format specified in the contentType in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
43
704
  */
44
705
  body: Body;
45
706
  /**
46
- * The MIME type of the input data in the request. The default value is application/json.
707
+ * The MIME type of the input data in the request. You must specify application/json.
47
708
  */
48
709
  contentType?: MimeType;
49
710
  /**
@@ -79,11 +740,11 @@ declare namespace BedrockRuntime {
79
740
  }
80
741
  export interface InvokeModelWithResponseStreamRequest {
81
742
  /**
82
- * The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
743
+ * The prompt and inference parameters in the format specified in the contentType in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
83
744
  */
84
745
  body: Body;
85
746
  /**
86
- * The MIME type of the input data in the request. The default value is application/json.
747
+ * The MIME type of the input data in the request. You must specify application/json.
87
748
  */
88
749
  contentType?: MimeType;
89
750
  /**
@@ -117,7 +778,36 @@ declare namespace BedrockRuntime {
117
778
  */
118
779
  contentType: MimeType;
119
780
  }
781
+ export type Long = number;
782
+ export interface Message {
783
+ /**
784
+ * The role that the message plays in the message.
785
+ */
786
+ role: ConversationRole;
787
+ /**
788
+ * The message content. Note the following restrictions: You can include up to 20 images. Each image's size, height, and width must be no more than 3.75 MB, 8000 px, and 8000 px, respectively. You can include up to five documents. Each document's size must be no more than 4.5 MB. If you include a ContentBlock with a document field in the array, you must also include a ContentBlock with a text field. You can only include images and documents if the role is user.
789
+ */
790
+ content: ContentBlocks;
791
+ }
792
+ export interface MessageStartEvent {
793
+ /**
794
+ * The role for the message.
795
+ */
796
+ role: ConversationRole;
797
+ }
798
+ export interface MessageStopEvent {
799
+ /**
800
+ * The reason why the model stopped generating output.
801
+ */
802
+ stopReason: StopReason;
803
+ /**
804
+ * The additional model response fields.
805
+ */
806
+ additionalModelResponseFields?: Document;
807
+ }
808
+ export type Messages = Message[];
120
809
  export type MimeType = string;
810
+ export type ModelOutputs = GuardrailOutputText[];
121
811
  export interface ModelStreamErrorException {
122
812
  message?: NonBlankString;
123
813
  /**
@@ -133,6 +823,8 @@ declare namespace BedrockRuntime {
133
823
  message?: NonBlankString;
134
824
  }
135
825
  export type NonBlankString = string;
826
+ export type NonEmptyString = string;
827
+ export type NonNegativeInteger = number;
136
828
  export type PartBody = Buffer|Uint8Array|Blob|string;
137
829
  export interface PayloadPart {
138
830
  /**
@@ -141,10 +833,163 @@ declare namespace BedrockRuntime {
141
833
  bytes?: PartBody;
142
834
  }
143
835
  export type ResponseStream = EventStream<{chunk?:PayloadPart,internalServerException?:InternalServerException,modelStreamErrorException?:ModelStreamErrorException,validationException?:ValidationException,throttlingException?:ThrottlingException,modelTimeoutException?:ModelTimeoutException}>;
836
+ export interface SpecificToolChoice {
837
+ /**
838
+ * The name of the tool that the model must request.
839
+ */
840
+ name: ToolName;
841
+ }
144
842
  export type StatusCode = number;
843
+ export type StopReason = "end_turn"|"tool_use"|"max_tokens"|"stop_sequence"|"guardrail_intervened"|"content_filtered"|string;
844
+ export type String = string;
845
+ export interface SystemContentBlock {
846
+ /**
847
+ * A system prompt for the model.
848
+ */
849
+ text?: NonEmptyString;
850
+ /**
851
+ * A content block to assess with the guardrail. Use with the Converse or ConverseStream API operations. For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
852
+ */
853
+ guardContent?: GuardrailConverseContentBlock;
854
+ }
855
+ export type SystemContentBlocks = SystemContentBlock[];
145
856
  export interface ThrottlingException {
146
857
  message?: NonBlankString;
147
858
  }
859
+ export interface TokenUsage {
860
+ /**
861
+ * The number of tokens sent in the request to the model.
862
+ */
863
+ inputTokens: TokenUsageInputTokensInteger;
864
+ /**
865
+ * The number of tokens that the model generated for the request.
866
+ */
867
+ outputTokens: TokenUsageOutputTokensInteger;
868
+ /**
869
+ * The total of input tokens and tokens generated by the model.
870
+ */
871
+ totalTokens: TokenUsageTotalTokensInteger;
872
+ }
873
+ export type TokenUsageInputTokensInteger = number;
874
+ export type TokenUsageOutputTokensInteger = number;
875
+ export type TokenUsageTotalTokensInteger = number;
876
+ export interface Tool {
877
+ /**
878
+ * The specfication for the tool.
879
+ */
880
+ toolSpec?: ToolSpecification;
881
+ }
882
+ export interface ToolChoice {
883
+ /**
884
+ * (Default). The Model automatically decides if a tool should be called or whether to generate text instead.
885
+ */
886
+ auto?: AutoToolChoice;
887
+ /**
888
+ * The model must request at least one tool (no text is generated).
889
+ */
890
+ any?: AnyToolChoice;
891
+ /**
892
+ * The Model must request the specified tool. Only supported by Anthropic Claude 3 models.
893
+ */
894
+ tool?: SpecificToolChoice;
895
+ }
896
+ export interface ToolConfiguration {
897
+ /**
898
+ * An array of tools that you want to pass to a model.
899
+ */
900
+ tools: ToolConfigurationToolsList;
901
+ /**
902
+ * If supported by model, forces the model to request a tool.
903
+ */
904
+ toolChoice?: ToolChoice;
905
+ }
906
+ export type ToolConfigurationToolsList = Tool[];
907
+ export interface ToolInputSchema {
908
+ /**
909
+ * The JSON schema for the tool. For more information, see JSON Schema Reference.
910
+ */
911
+ json?: Document;
912
+ }
913
+ export type ToolName = string;
914
+ export interface ToolResultBlock {
915
+ /**
916
+ * The ID of the tool request that this is the result for.
917
+ */
918
+ toolUseId: ToolUseId;
919
+ /**
920
+ * The content for tool result content block.
921
+ */
922
+ content: ToolResultContentBlocks;
923
+ /**
924
+ * The status for the tool result content block. This field is only supported Anthropic Claude 3 models.
925
+ */
926
+ status?: ToolResultStatus;
927
+ }
928
+ export interface ToolResultContentBlock {
929
+ /**
930
+ * A tool result that is JSON format data.
931
+ */
932
+ json?: Document;
933
+ /**
934
+ * A tool result that is text.
935
+ */
936
+ text?: String;
937
+ /**
938
+ * A tool result that is an image. This field is only supported by Anthropic Claude 3 models.
939
+ */
940
+ image?: ImageBlock;
941
+ /**
942
+ * A tool result that is a document.
943
+ */
944
+ document?: DocumentBlock;
945
+ }
946
+ export type ToolResultContentBlocks = ToolResultContentBlock[];
947
+ export type ToolResultStatus = "success"|"error"|string;
948
+ export interface ToolSpecification {
949
+ /**
950
+ * The name for the tool.
951
+ */
952
+ name: ToolName;
953
+ /**
954
+ * The description for the tool.
955
+ */
956
+ description?: NonEmptyString;
957
+ /**
958
+ * The input schema for the tool in JSON format.
959
+ */
960
+ inputSchema: ToolInputSchema;
961
+ }
962
+ export interface ToolUseBlock {
963
+ /**
964
+ * The ID for the tool request.
965
+ */
966
+ toolUseId: ToolUseId;
967
+ /**
968
+ * The name of the tool that the model wants to use.
969
+ */
970
+ name: ToolName;
971
+ /**
972
+ * The input to pass to the tool.
973
+ */
974
+ input: Document;
975
+ }
976
+ export interface ToolUseBlockDelta {
977
+ /**
978
+ * The input for a requested tool.
979
+ */
980
+ input: String;
981
+ }
982
+ export interface ToolUseBlockStart {
983
+ /**
984
+ * The ID for the tool request.
985
+ */
986
+ toolUseId: ToolUseId;
987
+ /**
988
+ * The name of the tool that the model is requesting to use.
989
+ */
990
+ name: ToolName;
991
+ }
992
+ export type ToolUseId = string;
148
993
  export type Trace = "ENABLED"|"DISABLED"|string;
149
994
  export interface ValidationException {
150
995
  message?: NonBlankString;