123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- {
- "version": "2.0",
- "metadata": {
- "apiVersion": "2017-05-13",
- "endpointPrefix": "runtime.sagemaker",
- "jsonVersion": "1.1",
- "protocol": "rest-json",
- "serviceFullName": "Amazon SageMaker Runtime",
- "serviceId": "SageMaker Runtime",
- "signatureVersion": "v4",
- "signingName": "sagemaker",
- "uid": "runtime.sagemaker-2017-05-13"
- },
- "operations": {
- "InvokeEndpoint": {
- "http": {
- "requestUri": "/endpoints/{EndpointName}/invocations"
- },
- "input": {
- "type": "structure",
- "required": [
- "EndpointName",
- "Body"
- ],
- "members": {
- "EndpointName": {
- "location": "uri",
- "locationName": "EndpointName"
- },
- "Body": {
- "shape": "S3"
- },
- "ContentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "Accept": {
- "location": "header",
- "locationName": "Accept"
- },
- "CustomAttributes": {
- "shape": "S5",
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Custom-Attributes"
- },
- "TargetModel": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Target-Model"
- },
- "TargetVariant": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Target-Variant"
- },
- "TargetContainerHostname": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Target-Container-Hostname"
- },
- "InferenceId": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Inference-Id"
- },
- "EnableExplanations": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Enable-Explanations"
- },
- "InferenceComponentName": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Inference-Component"
- }
- },
- "payload": "Body"
- },
- "output": {
- "type": "structure",
- "required": [
- "Body"
- ],
- "members": {
- "Body": {
- "shape": "S3"
- },
- "ContentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "InvokedProductionVariant": {
- "location": "header",
- "locationName": "x-Amzn-Invoked-Production-Variant"
- },
- "CustomAttributes": {
- "shape": "S5",
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Custom-Attributes"
- }
- },
- "payload": "Body"
- }
- },
- "InvokeEndpointAsync": {
- "http": {
- "requestUri": "/endpoints/{EndpointName}/async-invocations",
- "responseCode": 202
- },
- "input": {
- "type": "structure",
- "required": [
- "EndpointName",
- "InputLocation"
- ],
- "members": {
- "EndpointName": {
- "location": "uri",
- "locationName": "EndpointName"
- },
- "ContentType": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Content-Type"
- },
- "Accept": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Accept"
- },
- "CustomAttributes": {
- "shape": "S5",
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Custom-Attributes"
- },
- "InferenceId": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Inference-Id"
- },
- "InputLocation": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-InputLocation"
- },
- "RequestTTLSeconds": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-RequestTTLSeconds",
- "type": "integer"
- },
- "InvocationTimeoutSeconds": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-InvocationTimeoutSeconds",
- "type": "integer"
- }
- }
- },
- "output": {
- "type": "structure",
- "members": {
- "InferenceId": {},
- "OutputLocation": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-OutputLocation"
- },
- "FailureLocation": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-FailureLocation"
- }
- }
- }
- },
- "InvokeEndpointWithResponseStream": {
- "http": {
- "requestUri": "/endpoints/{EndpointName}/invocations-response-stream"
- },
- "input": {
- "type": "structure",
- "required": [
- "EndpointName",
- "Body"
- ],
- "members": {
- "EndpointName": {
- "location": "uri",
- "locationName": "EndpointName"
- },
- "Body": {
- "shape": "S3"
- },
- "ContentType": {
- "location": "header",
- "locationName": "Content-Type"
- },
- "Accept": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Accept"
- },
- "CustomAttributes": {
- "shape": "S5",
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Custom-Attributes"
- },
- "TargetVariant": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Target-Variant"
- },
- "TargetContainerHostname": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Target-Container-Hostname"
- },
- "InferenceId": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Inference-Id"
- },
- "InferenceComponentName": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Inference-Component"
- }
- },
- "payload": "Body"
- },
- "output": {
- "type": "structure",
- "required": [
- "Body"
- ],
- "members": {
- "Body": {
- "type": "structure",
- "members": {
- "PayloadPart": {
- "type": "structure",
- "members": {
- "Bytes": {
- "eventpayload": true,
- "type": "blob",
- "sensitive": true
- }
- },
- "event": true
- },
- "ModelStreamError": {
- "type": "structure",
- "members": {
- "Message": {},
- "ErrorCode": {}
- },
- "exception": true,
- "synthetic": true
- },
- "InternalStreamFailure": {
- "type": "structure",
- "members": {
- "Message": {}
- },
- "exception": true,
- "fault": true,
- "synthetic": true
- }
- },
- "eventstream": true
- },
- "ContentType": {
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Content-Type"
- },
- "InvokedProductionVariant": {
- "location": "header",
- "locationName": "x-Amzn-Invoked-Production-Variant"
- },
- "CustomAttributes": {
- "shape": "S5",
- "location": "header",
- "locationName": "X-Amzn-SageMaker-Custom-Attributes"
- }
- },
- "payload": "Body"
- }
- }
- },
- "shapes": {
- "S3": {
- "type": "blob",
- "sensitive": true
- },
- "S5": {
- "type": "string",
- "sensitive": true
- }
- }
- }
|