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 "name":"InvokeEndpoint", 17 "http":{ 18 "method":"POST", 19 "requestUri":"/endpoints/{EndpointName}/invocations" 20 }, 21 "input":{"shape":"InvokeEndpointInput"}, 22 "output":{"shape":"InvokeEndpointOutput"}, 23 "errors":[ 24 {"shape":"InternalFailure"}, 25 {"shape":"ServiceUnavailable"}, 26 {"shape":"ValidationError"}, 27 {"shape":"ModelError"} 28 ] 29 } 30 }, 31 "shapes":{ 32 "BodyBlob":{ 33 "type":"blob", 34 "max":5242880, 35 "sensitive":true 36 }, 37 "CustomAttributesHeader":{ 38 "type":"string", 39 "max":1024, 40 "sensitive":true 41 }, 42 "EndpointName":{ 43 "type":"string", 44 "max":63, 45 "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*" 46 }, 47 "Header":{ 48 "type":"string", 49 "max":1024 50 }, 51 "InternalFailure":{ 52 "type":"structure", 53 "members":{ 54 "Message":{"shape":"Message"} 55 }, 56 "error":{"httpStatusCode":500}, 57 "exception":true, 58 "fault":true, 59 "synthetic":true 60 }, 61 "InvokeEndpointInput":{ 62 "type":"structure", 63 "required":[ 64 "EndpointName", 65 "Body" 66 ], 67 "members":{ 68 "EndpointName":{ 69 "shape":"EndpointName", 70 "location":"uri", 71 "locationName":"EndpointName" 72 }, 73 "Body":{"shape":"BodyBlob"}, 74 "ContentType":{ 75 "shape":"Header", 76 "location":"header", 77 "locationName":"Content-Type" 78 }, 79 "Accept":{ 80 "shape":"Header", 81 "location":"header", 82 "locationName":"Accept" 83 }, 84 "CustomAttributes":{ 85 "shape":"CustomAttributesHeader", 86 "location":"header", 87 "locationName":"X-Amzn-SageMaker-Custom-Attributes" 88 } 89 }, 90 "payload":"Body" 91 }, 92 "InvokeEndpointOutput":{ 93 "type":"structure", 94 "required":["Body"], 95 "members":{ 96 "Body":{"shape":"BodyBlob"}, 97 "ContentType":{ 98 "shape":"Header", 99 "location":"header", 100 "locationName":"Content-Type" 101 }, 102 "InvokedProductionVariant":{ 103 "shape":"Header", 104 "location":"header", 105 "locationName":"x-Amzn-Invoked-Production-Variant" 106 }, 107 "CustomAttributes":{ 108 "shape":"CustomAttributesHeader", 109 "location":"header", 110 "locationName":"X-Amzn-SageMaker-Custom-Attributes" 111 } 112 }, 113 "payload":"Body" 114 }, 115 "LogStreamArn":{"type":"string"}, 116 "Message":{ 117 "type":"string", 118 "max":2048 119 }, 120 "ModelError":{ 121 "type":"structure", 122 "members":{ 123 "Message":{"shape":"Message"}, 124 "OriginalStatusCode":{"shape":"StatusCode"}, 125 "OriginalMessage":{"shape":"Message"}, 126 "LogStreamArn":{"shape":"LogStreamArn"} 127 }, 128 "error":{"httpStatusCode":424}, 129 "exception":true 130 }, 131 "ServiceUnavailable":{ 132 "type":"structure", 133 "members":{ 134 "Message":{"shape":"Message"} 135 }, 136 "error":{"httpStatusCode":503}, 137 "exception":true, 138 "fault":true, 139 "synthetic":true 140 }, 141 "StatusCode":{"type":"integer"}, 142 "ValidationError":{ 143 "type":"structure", 144 "members":{ 145 "Message":{"shape":"Message"} 146 }, 147 "error":{"httpStatusCode":400}, 148 "exception":true, 149 "synthetic":true 150 } 151 } 152} 153