|
1130 | 1130 | "smithy.api#pattern": "^\\p{ASCII}*$"
|
1131 | 1131 | }
|
1132 | 1132 | },
|
| 1133 | + "com.amazonaws.sagemakerruntime#InferenceComponentHeader": { |
| 1134 | + "type": "string", |
| 1135 | + "traits": { |
| 1136 | + "smithy.api#length": { |
| 1137 | + "min": 0, |
| 1138 | + "max": 63 |
| 1139 | + }, |
| 1140 | + "smithy.api#pattern": "^[a-zA-Z0-9]([\\-a-zA-Z0-9]*[a-zA-Z0-9])?$" |
| 1141 | + } |
| 1142 | + }, |
1133 | 1143 | "com.amazonaws.sagemakerruntime#InferenceId": {
|
1134 | 1144 | "type": "string",
|
1135 | 1145 | "traits": {
|
|
1432 | 1442 | "smithy.api#documentation": "<p>An optional JMESPath expression used to override the <code>EnableExplanations</code>\n parameter of the <code>ClarifyExplainerConfig</code> API. See the <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable\">EnableExplanations</a> section in the developer guide for more information.\n </p>",
|
1433 | 1443 | "smithy.api#httpHeader": "X-Amzn-SageMaker-Enable-Explanations"
|
1434 | 1444 | }
|
| 1445 | + }, |
| 1446 | + "InferenceComponentName": { |
| 1447 | + "target": "com.amazonaws.sagemakerruntime#InferenceComponentHeader", |
| 1448 | + "traits": { |
| 1449 | + "smithy.api#documentation": "<p>If the endpoint hosts one or more inference components, this parameter specifies the\n name of inference component to invoke.</p>", |
| 1450 | + "smithy.api#httpHeader": "X-Amzn-SageMaker-Inference-Component" |
| 1451 | + } |
1435 | 1452 | }
|
1436 | 1453 | },
|
1437 | 1454 | "traits": {
|
|
1505 | 1522 | }
|
1506 | 1523 | ],
|
1507 | 1524 | "traits": {
|
1508 |
| - "smithy.api#documentation": "<p>Invokes a model at the specified endpoint to return the inference response as a\n stream. The inference stream provides the response payload incrementally as a series of\n parts. Before you can get an inference stream, you must have access to a model that's\n deployed using Amazon SageMaker hosting services, and the container for that model\n must support inference streaming.</p>\n <p>For more information that can help you use this API, see the following sections in the\n <i>Amazon SageMaker Developer Guide</i>:</p>\n <ul>\n <li>\n <p>For information about how to add streaming support to a model, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-code-how-containe-serves-requests\">How Containers Serve Requests</a>.</p>\n </li>\n <li>\n <p>For information about how to process the streaming response, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-test-endpoints.html\">Invoke real-time endpoints</a>.</p>\n </li>\n </ul>\n <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add\n additional headers. You should not rely on the behavior of headers outside those\n enumerated in the request syntax. </p>\n <p>Calls to <code>InvokeEndpointWithResponseStream</code> are authenticated by using\n Amazon Web Services Signature Version 4. For information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html\">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the\n <i>Amazon S3 API Reference</i>.</p>", |
| 1525 | + "smithy.api#documentation": "<p>Invokes a model at the specified endpoint to return the inference response as a\n stream. The inference stream provides the response payload incrementally as a series of\n parts. Before you can get an inference stream, you must have access to a model that's\n deployed using Amazon SageMaker hosting services, and the container for that model\n must support inference streaming.</p>\n <p>For more information that can help you use this API, see the following sections in the\n <i>Amazon SageMaker Developer Guide</i>:</p>\n <ul>\n <li>\n <p>For information about how to add streaming support to a model, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-code-how-containe-serves-requests\">How Containers Serve Requests</a>.</p>\n </li>\n <li>\n <p>For information about how to process the streaming response, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/realtime-endpoints-test-endpoints.html\">Invoke real-time endpoints</a>.</p>\n </li>\n </ul>\n <p>Before you can use this operation, your IAM permissions must allow the\n <code>sagemaker:InvokeEndpoint</code> action. For more information about Amazon SageMaker actions for IAM policies, see <a href=\"https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonsagemaker.html\">Actions, resources, and condition keys for Amazon SageMaker</a> in the <i>IAM Service Authorization\n Reference</i>.</p>\n <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add\n additional headers. You should not rely on the behavior of headers outside those\n enumerated in the request syntax. </p>\n <p>Calls to <code>InvokeEndpointWithResponseStream</code> are authenticated by using\n Amazon Web Services Signature Version 4. For information, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html\">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the\n <i>Amazon S3 API Reference</i>.</p>", |
1509 | 1526 | "smithy.api#http": {
|
1510 | 1527 | "method": "POST",
|
1511 | 1528 | "uri": "/endpoints/{EndpointName}/invocations-response-stream",
|
|
1574 | 1591 | "smithy.api#documentation": "<p>An identifier that you assign to your request.</p>",
|
1575 | 1592 | "smithy.api#httpHeader": "X-Amzn-SageMaker-Inference-Id"
|
1576 | 1593 | }
|
| 1594 | + }, |
| 1595 | + "InferenceComponentName": { |
| 1596 | + "target": "com.amazonaws.sagemakerruntime#InferenceComponentHeader", |
| 1597 | + "traits": { |
| 1598 | + "smithy.api#documentation": "<p>If the endpoint hosts one or more inference components, this parameter specifies the\n name of inference component to invoke for a streaming response.</p>", |
| 1599 | + "smithy.api#httpHeader": "X-Amzn-SageMaker-Inference-Component" |
| 1600 | + } |
1577 | 1601 | }
|
1578 | 1602 | },
|
1579 | 1603 | "traits": {
|
|
0 commit comments