|
5 | 5 | "endpointPrefix":"runtime.sagemaker",
|
6 | 6 | "jsonVersion":"1.1",
|
7 | 7 | "protocol":"rest-json",
|
| 8 | + "protocols":["rest-json"], |
8 | 9 | "serviceFullName":"Amazon SageMaker Runtime",
|
9 | 10 | "serviceId":"SageMaker Runtime",
|
10 | 11 | "signatureVersion":"v4",
|
11 | 12 | "signingName":"sagemaker",
|
12 |
| - "uid":"runtime.sagemaker-2017-05-13" |
| 13 | + "uid":"runtime.sagemaker-2017-05-13", |
| 14 | + "auth":["aws.auth#sigv4"] |
13 | 15 | },
|
14 | 16 | "operations":{
|
15 | 17 | "InvokeEndpoint":{
|
|
296 | 298 | "documentation":"<p>If the endpoint hosts one or more inference components, this parameter specifies the name of inference component to invoke.</p>",
|
297 | 299 | "location":"header",
|
298 | 300 | "locationName":"X-Amzn-SageMaker-Inference-Component"
|
| 301 | + }, |
| 302 | + "SessionId":{ |
| 303 | + "shape":"SessionIdOrNewSessionConstantHeader", |
| 304 | + "documentation":"<p>Creates a stateful session or identifies an existing one. You can do one of the following:</p> <ul> <li> <p>Create a stateful session by specifying the value <code>NEW_SESSION</code>.</p> </li> <li> <p>Send your request to an existing stateful session by specifying the ID of that session.</p> </li> </ul> <p>With a stateful session, you can send multiple requests to a stateful model. When you create a session with a stateful model, the model must create the session ID and set the expiration time. The model must also provide that information in the response to your request. You can get the ID and timestamp from the <code>NewSessionId</code> response parameter. For any subsequent request where you specify that session ID, SageMaker routes the request to the same instance that supports the session.</p>", |
| 305 | + "location":"header", |
| 306 | + "locationName":"X-Amzn-SageMaker-Session-Id" |
299 | 307 | }
|
300 | 308 | },
|
301 | 309 | "payload":"Body"
|
|
325 | 333 | "documentation":"<p>Provides additional information in the response about the inference returned by 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 return an ID received in the <code>CustomAttributes</code> header of a request or other metadata that a service endpoint was programmed to produce. The value must consist of no more than 1024 visible US-ASCII characters as specified in <a href=\"https://tools.ietf.org/html/rfc7230#section-3.2.6\">Section 3.3.6. Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). If the customer wants the custom attribute returned, the model must set the custom attribute to be included on the way back. </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 Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK.</p>",
|
326 | 334 | "location":"header",
|
327 | 335 | "locationName":"X-Amzn-SageMaker-Custom-Attributes"
|
| 336 | + }, |
| 337 | + "NewSessionId":{ |
| 338 | + "shape":"NewSessionResponseHeader", |
| 339 | + "documentation":"<p>If you created a stateful session with your request, the ID and expiration time that the model assigns to that session.</p>", |
| 340 | + "location":"header", |
| 341 | + "locationName":"X-Amzn-SageMaker-New-Session-Id" |
| 342 | + }, |
| 343 | + "ClosedSessionId":{ |
| 344 | + "shape":"SessionIdHeader", |
| 345 | + "documentation":"<p>If you closed a stateful session with your request, the ID of that session.</p>", |
| 346 | + "location":"header", |
| 347 | + "locationName":"X-Amzn-SageMaker-Closed-Session-Id" |
328 | 348 | }
|
329 | 349 | },
|
330 | 350 | "payload":"Body"
|
|
387 | 407 | "documentation":"<p>If the endpoint hosts one or more inference components, this parameter specifies the name of inference component to invoke for a streaming response.</p>",
|
388 | 408 | "location":"header",
|
389 | 409 | "locationName":"X-Amzn-SageMaker-Inference-Component"
|
| 410 | + }, |
| 411 | + "SessionId":{ |
| 412 | + "shape":"SessionIdHeader", |
| 413 | + "documentation":"<p>The ID of a stateful session to handle your request.</p> <p>You can't create a stateful session by using the <code>InvokeEndpointWithResponseStream</code> action. Instead, you can create one by using the <code> <a>InvokeEndpoint</a> </code> action. In your request, you specify <code>NEW_SESSION</code> for the <code>SessionId</code> request parameter. The response to that request provides the session ID for the <code>NewSessionId</code> response parameter.</p>", |
| 414 | + "location":"header", |
| 415 | + "locationName":"X-Amzn-SageMaker-Session-Id" |
390 | 416 | }
|
391 | 417 | },
|
392 | 418 | "payload":"Body"
|
|
466 | 492 | "exception":true,
|
467 | 493 | "synthetic":true
|
468 | 494 | },
|
| 495 | + "NewSessionResponseHeader":{ |
| 496 | + "type":"string", |
| 497 | + "max":256, |
| 498 | + "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*;\\sExpires=[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" |
| 499 | + }, |
469 | 500 | "PartBlob":{
|
470 | 501 | "type":"blob",
|
471 | 502 | "sensitive":true
|
|
517 | 548 | "fault":true,
|
518 | 549 | "synthetic":true
|
519 | 550 | },
|
| 551 | + "SessionIdHeader":{ |
| 552 | + "type":"string", |
| 553 | + "max":256, |
| 554 | + "pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" |
| 555 | + }, |
| 556 | + "SessionIdOrNewSessionConstantHeader":{ |
| 557 | + "type":"string", |
| 558 | + "max":256, |
| 559 | + "pattern":"^(NEW_SESSION)$|^[a-zA-Z0-9](-*[a-zA-Z0-9])*$" |
| 560 | + }, |
520 | 561 | "StatusCode":{"type":"integer"},
|
521 | 562 | "TargetContainerHostnameHeader":{
|
522 | 563 | "type":"string",
|
|
0 commit comments