runtime.sagemaker-2017-05-13.min.json 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. {
  2. "version": "2.0",
  3. "metadata": {
  4. "apiVersion": "2017-05-13",
  5. "endpointPrefix": "runtime.sagemaker",
  6. "jsonVersion": "1.1",
  7. "protocol": "rest-json",
  8. "serviceFullName": "Amazon SageMaker Runtime",
  9. "serviceId": "SageMaker Runtime",
  10. "signatureVersion": "v4",
  11. "signingName": "sagemaker",
  12. "uid": "runtime.sagemaker-2017-05-13"
  13. },
  14. "operations": {
  15. "InvokeEndpoint": {
  16. "http": {
  17. "requestUri": "/endpoints/{EndpointName}/invocations"
  18. },
  19. "input": {
  20. "type": "structure",
  21. "required": [
  22. "EndpointName",
  23. "Body"
  24. ],
  25. "members": {
  26. "EndpointName": {
  27. "location": "uri",
  28. "locationName": "EndpointName"
  29. },
  30. "Body": {
  31. "shape": "S3"
  32. },
  33. "ContentType": {
  34. "location": "header",
  35. "locationName": "Content-Type"
  36. },
  37. "Accept": {
  38. "location": "header",
  39. "locationName": "Accept"
  40. },
  41. "CustomAttributes": {
  42. "shape": "S5",
  43. "location": "header",
  44. "locationName": "X-Amzn-SageMaker-Custom-Attributes"
  45. },
  46. "TargetModel": {
  47. "location": "header",
  48. "locationName": "X-Amzn-SageMaker-Target-Model"
  49. },
  50. "TargetVariant": {
  51. "location": "header",
  52. "locationName": "X-Amzn-SageMaker-Target-Variant"
  53. },
  54. "TargetContainerHostname": {
  55. "location": "header",
  56. "locationName": "X-Amzn-SageMaker-Target-Container-Hostname"
  57. },
  58. "InferenceId": {
  59. "location": "header",
  60. "locationName": "X-Amzn-SageMaker-Inference-Id"
  61. },
  62. "EnableExplanations": {
  63. "location": "header",
  64. "locationName": "X-Amzn-SageMaker-Enable-Explanations"
  65. },
  66. "InferenceComponentName": {
  67. "location": "header",
  68. "locationName": "X-Amzn-SageMaker-Inference-Component"
  69. }
  70. },
  71. "payload": "Body"
  72. },
  73. "output": {
  74. "type": "structure",
  75. "required": [
  76. "Body"
  77. ],
  78. "members": {
  79. "Body": {
  80. "shape": "S3"
  81. },
  82. "ContentType": {
  83. "location": "header",
  84. "locationName": "Content-Type"
  85. },
  86. "InvokedProductionVariant": {
  87. "location": "header",
  88. "locationName": "x-Amzn-Invoked-Production-Variant"
  89. },
  90. "CustomAttributes": {
  91. "shape": "S5",
  92. "location": "header",
  93. "locationName": "X-Amzn-SageMaker-Custom-Attributes"
  94. }
  95. },
  96. "payload": "Body"
  97. }
  98. },
  99. "InvokeEndpointAsync": {
  100. "http": {
  101. "requestUri": "/endpoints/{EndpointName}/async-invocations",
  102. "responseCode": 202
  103. },
  104. "input": {
  105. "type": "structure",
  106. "required": [
  107. "EndpointName",
  108. "InputLocation"
  109. ],
  110. "members": {
  111. "EndpointName": {
  112. "location": "uri",
  113. "locationName": "EndpointName"
  114. },
  115. "ContentType": {
  116. "location": "header",
  117. "locationName": "X-Amzn-SageMaker-Content-Type"
  118. },
  119. "Accept": {
  120. "location": "header",
  121. "locationName": "X-Amzn-SageMaker-Accept"
  122. },
  123. "CustomAttributes": {
  124. "shape": "S5",
  125. "location": "header",
  126. "locationName": "X-Amzn-SageMaker-Custom-Attributes"
  127. },
  128. "InferenceId": {
  129. "location": "header",
  130. "locationName": "X-Amzn-SageMaker-Inference-Id"
  131. },
  132. "InputLocation": {
  133. "location": "header",
  134. "locationName": "X-Amzn-SageMaker-InputLocation"
  135. },
  136. "RequestTTLSeconds": {
  137. "location": "header",
  138. "locationName": "X-Amzn-SageMaker-RequestTTLSeconds",
  139. "type": "integer"
  140. },
  141. "InvocationTimeoutSeconds": {
  142. "location": "header",
  143. "locationName": "X-Amzn-SageMaker-InvocationTimeoutSeconds",
  144. "type": "integer"
  145. }
  146. }
  147. },
  148. "output": {
  149. "type": "structure",
  150. "members": {
  151. "InferenceId": {},
  152. "OutputLocation": {
  153. "location": "header",
  154. "locationName": "X-Amzn-SageMaker-OutputLocation"
  155. },
  156. "FailureLocation": {
  157. "location": "header",
  158. "locationName": "X-Amzn-SageMaker-FailureLocation"
  159. }
  160. }
  161. }
  162. },
  163. "InvokeEndpointWithResponseStream": {
  164. "http": {
  165. "requestUri": "/endpoints/{EndpointName}/invocations-response-stream"
  166. },
  167. "input": {
  168. "type": "structure",
  169. "required": [
  170. "EndpointName",
  171. "Body"
  172. ],
  173. "members": {
  174. "EndpointName": {
  175. "location": "uri",
  176. "locationName": "EndpointName"
  177. },
  178. "Body": {
  179. "shape": "S3"
  180. },
  181. "ContentType": {
  182. "location": "header",
  183. "locationName": "Content-Type"
  184. },
  185. "Accept": {
  186. "location": "header",
  187. "locationName": "X-Amzn-SageMaker-Accept"
  188. },
  189. "CustomAttributes": {
  190. "shape": "S5",
  191. "location": "header",
  192. "locationName": "X-Amzn-SageMaker-Custom-Attributes"
  193. },
  194. "TargetVariant": {
  195. "location": "header",
  196. "locationName": "X-Amzn-SageMaker-Target-Variant"
  197. },
  198. "TargetContainerHostname": {
  199. "location": "header",
  200. "locationName": "X-Amzn-SageMaker-Target-Container-Hostname"
  201. },
  202. "InferenceId": {
  203. "location": "header",
  204. "locationName": "X-Amzn-SageMaker-Inference-Id"
  205. },
  206. "InferenceComponentName": {
  207. "location": "header",
  208. "locationName": "X-Amzn-SageMaker-Inference-Component"
  209. }
  210. },
  211. "payload": "Body"
  212. },
  213. "output": {
  214. "type": "structure",
  215. "required": [
  216. "Body"
  217. ],
  218. "members": {
  219. "Body": {
  220. "type": "structure",
  221. "members": {
  222. "PayloadPart": {
  223. "type": "structure",
  224. "members": {
  225. "Bytes": {
  226. "eventpayload": true,
  227. "type": "blob",
  228. "sensitive": true
  229. }
  230. },
  231. "event": true
  232. },
  233. "ModelStreamError": {
  234. "type": "structure",
  235. "members": {
  236. "Message": {},
  237. "ErrorCode": {}
  238. },
  239. "exception": true,
  240. "synthetic": true
  241. },
  242. "InternalStreamFailure": {
  243. "type": "structure",
  244. "members": {
  245. "Message": {}
  246. },
  247. "exception": true,
  248. "fault": true,
  249. "synthetic": true
  250. }
  251. },
  252. "eventstream": true
  253. },
  254. "ContentType": {
  255. "location": "header",
  256. "locationName": "X-Amzn-SageMaker-Content-Type"
  257. },
  258. "InvokedProductionVariant": {
  259. "location": "header",
  260. "locationName": "x-Amzn-Invoked-Production-Variant"
  261. },
  262. "CustomAttributes": {
  263. "shape": "S5",
  264. "location": "header",
  265. "locationName": "X-Amzn-SageMaker-Custom-Attributes"
  266. }
  267. },
  268. "payload": "Body"
  269. }
  270. }
  271. },
  272. "shapes": {
  273. "S3": {
  274. "type": "blob",
  275. "sensitive": true
  276. },
  277. "S5": {
  278. "type": "string",
  279. "sensitive": true
  280. }
  281. }
  282. }