|
27 | 27 | {"shape":"ModelError"}
|
28 | 28 | ],
|
29 | 29 | "documentation":"<p>After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint. </p> <p>For an overview of Amazon SageMaker, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html\">How It Works</a>. </p> <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. </p> <p>Calls to <code>InvokeEndpoint</code> are authenticated by using AWS Signature Version 4. For information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html\">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API Reference</i>.</p> <p>A customer's model containers must respond to requests within 60 seconds. The model itself can have a maximum processing time of 60 seconds before responding to invocations. If your model is going to take 50-60 seconds of processing time, the SDK socket timeout should be set to be 70 seconds.</p> <note> <p>Endpoints are scoped to an individual account, and are not public. The URL does not contain the account ID, but Amazon SageMaker determines the account ID from the authentication token that is supplied by the caller.</p> </note>"
|
| 30 | + }, |
| 31 | + "InvokeEndpointAsync":{ |
| 32 | + "name":"InvokeEndpointAsync", |
| 33 | + "http":{ |
| 34 | + "method":"POST", |
| 35 | + "requestUri":"/endpoints/{EndpointName}/async-invocations", |
| 36 | + "responseCode":202 |
| 37 | + }, |
| 38 | + "input":{"shape":"InvokeEndpointAsyncInput"}, |
| 39 | + "output":{"shape":"InvokeEndpointAsyncOutput"}, |
| 40 | + "errors":[ |
| 41 | + {"shape":"InternalFailure"}, |
| 42 | + {"shape":"ServiceUnavailable"}, |
| 43 | + {"shape":"ValidationError"} |
| 44 | + ], |
| 45 | + "documentation":"<p>After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner.</p> <p>Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before the you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it.</p> <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.</p> <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using AWS Signature Version 4. For information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html\">Authenticating Requests (AWS Signature Version 4)</a> in the <i>Amazon S3 API Reference</i>.</p>" |
30 | 46 | }
|
31 | 47 | },
|
32 | 48 | "shapes":{
|
|
57 | 73 | "min":1,
|
58 | 74 | "pattern":"\\A\\S[\\p{Print}]*\\z"
|
59 | 75 | },
|
| 76 | + "InputLocationHeader":{ |
| 77 | + "type":"string", |
| 78 | + "max":1024, |
| 79 | + "min":1, |
| 80 | + "pattern":"^(https|s3)://([^/]+)/?(.*)$" |
| 81 | + }, |
60 | 82 | "InternalFailure":{
|
61 | 83 | "type":"structure",
|
62 | 84 | "members":{
|
|
68 | 90 | "fault":true,
|
69 | 91 | "synthetic":true
|
70 | 92 | },
|
| 93 | + "InvokeEndpointAsyncInput":{ |
| 94 | + "type":"structure", |
| 95 | + "required":[ |
| 96 | + "EndpointName", |
| 97 | + "InputLocation" |
| 98 | + ], |
| 99 | + "members":{ |
| 100 | + "EndpointName":{ |
| 101 | + "shape":"EndpointName", |
| 102 | + "documentation":"<p>The name of the endpoint that you specified when you created the endpoint using the <a href=\"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html\"> <code>CreateEndpoint</code> </a> API.</p>", |
| 103 | + "location":"uri", |
| 104 | + "locationName":"EndpointName" |
| 105 | + }, |
| 106 | + "ContentType":{ |
| 107 | + "shape":"Header", |
| 108 | + "documentation":"<p>The MIME type of the input data in the request body.</p>", |
| 109 | + "location":"header", |
| 110 | + "locationName":"X-Amzn-SageMaker-Content-Type" |
| 111 | + }, |
| 112 | + "Accept":{ |
| 113 | + "shape":"Header", |
| 114 | + "documentation":"<p>The desired MIME type of the inference in the response.</p>", |
| 115 | + "location":"header", |
| 116 | + "locationName":"X-Amzn-SageMaker-Accept" |
| 117 | + }, |
| 118 | + "CustomAttributes":{ |
| 119 | + "shape":"CustomAttributesHeader", |
| 120 | + "documentation":"<p>Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to provide an ID that you can use to track a request or to provide other metadata that a service endpoint was programmed to process. The value must consist of no more than 1024 visible US-ASCII characters as specified in <a href=\"https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6\">Section 3.3.6. Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p> <p>The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p> <p>This feature is currently supported in the AWS SDKs but not in the Amazon SageMaker Python SDK. </p>", |
| 121 | + "location":"header", |
| 122 | + "locationName":"X-Amzn-SageMaker-Custom-Attributes" |
| 123 | + }, |
| 124 | + "InferenceId":{ |
| 125 | + "shape":"InferenceId", |
| 126 | + "documentation":"<p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you if none is specified. </p>", |
| 127 | + "location":"header", |
| 128 | + "locationName":"X-Amzn-SageMaker-Inference-Id" |
| 129 | + }, |
| 130 | + "InputLocation":{ |
| 131 | + "shape":"InputLocationHeader", |
| 132 | + "documentation":"<p>The Amazon S3 URI where the inference request payload is stored.</p>", |
| 133 | + "location":"header", |
| 134 | + "locationName":"X-Amzn-SageMaker-InputLocation" |
| 135 | + }, |
| 136 | + "RequestTTLSeconds":{ |
| 137 | + "shape":"RequestTTLSecondsHeader", |
| 138 | + "documentation":"<p>Maximum age in seconds a request can be in the queue before it is marked as expired.</p>", |
| 139 | + "location":"header", |
| 140 | + "locationName":"X-Amzn-SageMaker-RequestTTLSeconds" |
| 141 | + } |
| 142 | + } |
| 143 | + }, |
| 144 | + "InvokeEndpointAsyncOutput":{ |
| 145 | + "type":"structure", |
| 146 | + "members":{ |
| 147 | + "InferenceId":{ |
| 148 | + "shape":"Header", |
| 149 | + "documentation":"<p>Identifier for an inference request. This will be the same as the <code>InferenceId</code> specified in the input. Amazon SageMaker will generate an identifier for you if you do not specify one.</p>" |
| 150 | + }, |
| 151 | + "OutputLocation":{ |
| 152 | + "shape":"Header", |
| 153 | + "documentation":"<p>The Amazon S3 URI where the inference response payload is stored.</p>", |
| 154 | + "location":"header", |
| 155 | + "locationName":"X-Amzn-SageMaker-OutputLocation" |
| 156 | + } |
| 157 | + } |
| 158 | + }, |
71 | 159 | "InvokeEndpointInput":{
|
72 | 160 | "type":"structure",
|
73 | 161 | "required":[
|
|
185 | 273 | "error":{"httpStatusCode":424},
|
186 | 274 | "exception":true
|
187 | 275 | },
|
| 276 | + "RequestTTLSecondsHeader":{ |
| 277 | + "type":"integer", |
| 278 | + "max":21600, |
| 279 | + "min":60 |
| 280 | + }, |
188 | 281 | "ServiceUnavailable":{
|
189 | 282 | "type":"structure",
|
190 | 283 | "members":{
|
|
0 commit comments