bedrock-runtime-2023-09-30.min.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. {
  2. "version": "2.0",
  3. "metadata": {
  4. "apiVersion": "2023-09-30",
  5. "endpointPrefix": "bedrock-runtime",
  6. "jsonVersion": "1.1",
  7. "protocol": "rest-json",
  8. "serviceFullName": "Amazon Bedrock Runtime",
  9. "serviceId": "Bedrock Runtime",
  10. "signatureVersion": "v4",
  11. "signingName": "bedrock",
  12. "uid": "bedrock-runtime-2023-09-30"
  13. },
  14. "operations": {
  15. "InvokeModel": {
  16. "http": {
  17. "requestUri": "/model/{modelId}/invoke",
  18. "responseCode": 200
  19. },
  20. "input": {
  21. "type": "structure",
  22. "required": [
  23. "body",
  24. "modelId"
  25. ],
  26. "members": {
  27. "body": {
  28. "shape": "S2"
  29. },
  30. "contentType": {
  31. "location": "header",
  32. "locationName": "Content-Type"
  33. },
  34. "accept": {
  35. "location": "header",
  36. "locationName": "Accept"
  37. },
  38. "modelId": {
  39. "location": "uri",
  40. "locationName": "modelId"
  41. },
  42. "trace": {
  43. "location": "header",
  44. "locationName": "X-Amzn-Bedrock-Trace"
  45. },
  46. "guardrailIdentifier": {
  47. "location": "header",
  48. "locationName": "X-Amzn-Bedrock-GuardrailIdentifier"
  49. },
  50. "guardrailVersion": {
  51. "location": "header",
  52. "locationName": "X-Amzn-Bedrock-GuardrailVersion"
  53. }
  54. },
  55. "payload": "body"
  56. },
  57. "output": {
  58. "type": "structure",
  59. "required": [
  60. "body",
  61. "contentType"
  62. ],
  63. "members": {
  64. "body": {
  65. "shape": "S2"
  66. },
  67. "contentType": {
  68. "location": "header",
  69. "locationName": "Content-Type"
  70. }
  71. },
  72. "payload": "body"
  73. }
  74. },
  75. "InvokeModelWithResponseStream": {
  76. "http": {
  77. "requestUri": "/model/{modelId}/invoke-with-response-stream",
  78. "responseCode": 200
  79. },
  80. "input": {
  81. "type": "structure",
  82. "required": [
  83. "body",
  84. "modelId"
  85. ],
  86. "members": {
  87. "body": {
  88. "shape": "S2"
  89. },
  90. "contentType": {
  91. "location": "header",
  92. "locationName": "Content-Type"
  93. },
  94. "accept": {
  95. "location": "header",
  96. "locationName": "X-Amzn-Bedrock-Accept"
  97. },
  98. "modelId": {
  99. "location": "uri",
  100. "locationName": "modelId"
  101. },
  102. "trace": {
  103. "location": "header",
  104. "locationName": "X-Amzn-Bedrock-Trace"
  105. },
  106. "guardrailIdentifier": {
  107. "location": "header",
  108. "locationName": "X-Amzn-Bedrock-GuardrailIdentifier"
  109. },
  110. "guardrailVersion": {
  111. "location": "header",
  112. "locationName": "X-Amzn-Bedrock-GuardrailVersion"
  113. }
  114. },
  115. "payload": "body"
  116. },
  117. "output": {
  118. "type": "structure",
  119. "required": [
  120. "body",
  121. "contentType"
  122. ],
  123. "members": {
  124. "body": {
  125. "type": "structure",
  126. "members": {
  127. "chunk": {
  128. "type": "structure",
  129. "members": {
  130. "bytes": {
  131. "type": "blob",
  132. "sensitive": true
  133. }
  134. },
  135. "event": true,
  136. "sensitive": true
  137. },
  138. "internalServerException": {
  139. "type": "structure",
  140. "members": {
  141. "message": {}
  142. },
  143. "error": {
  144. "httpStatusCode": 500
  145. },
  146. "exception": true,
  147. "fault": true
  148. },
  149. "modelStreamErrorException": {
  150. "type": "structure",
  151. "members": {
  152. "message": {},
  153. "originalStatusCode": {
  154. "type": "integer"
  155. },
  156. "originalMessage": {}
  157. },
  158. "error": {
  159. "httpStatusCode": 424,
  160. "senderFault": true
  161. },
  162. "exception": true
  163. },
  164. "validationException": {
  165. "type": "structure",
  166. "members": {
  167. "message": {}
  168. },
  169. "error": {
  170. "httpStatusCode": 400,
  171. "senderFault": true
  172. },
  173. "exception": true
  174. },
  175. "throttlingException": {
  176. "type": "structure",
  177. "members": {
  178. "message": {}
  179. },
  180. "error": {
  181. "httpStatusCode": 429,
  182. "senderFault": true
  183. },
  184. "exception": true
  185. },
  186. "modelTimeoutException": {
  187. "type": "structure",
  188. "members": {
  189. "message": {}
  190. },
  191. "error": {
  192. "httpStatusCode": 408,
  193. "senderFault": true
  194. },
  195. "exception": true
  196. }
  197. },
  198. "eventstream": true
  199. },
  200. "contentType": {
  201. "location": "header",
  202. "locationName": "X-Amzn-Bedrock-Content-Type"
  203. }
  204. },
  205. "payload": "body"
  206. }
  207. }
  208. },
  209. "shapes": {
  210. "S2": {
  211. "type": "blob",
  212. "sensitive": true
  213. }
  214. }
  215. }