Skip to content

Commit c57129b

Browse files
author
AWS
committed
Amazon SageMaker Runtime Update: SageMaker Runtime now supports a new TargetContainerHostname header to invoke a model in a specific container if the endpoint hosts multiple containers and is configured to use direct invocation.
1 parent 5b0a788 commit c57129b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon SageMaker Runtime",
4+
"contributor": "",
5+
"description": "SageMaker Runtime now supports a new TargetContainerHostname header to invoke a model in a specific container if the endpoint hosts multiple containers and is configured to use direct invocation."
6+
}

services/sagemakerruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@
115115
"location":"header",
116116
"locationName":"X-Amzn-SageMaker-Target-Variant"
117117
},
118+
"TargetContainerHostname":{
119+
"shape":"TargetContainerHostnameHeader",
120+
"documentation":"<p>If the endpoint hosts multiple containers and is configured to use direct invocation, this parameter specifies the host name of the container to invoke.</p>",
121+
"location":"header",
122+
"locationName":"X-Amzn-SageMaker-Target-Container-Hostname"
123+
},
118124
"InferenceId":{
119125
"shape":"InferenceId",
120126
"documentation":"<p>If you provide a value, it is added to the captured data when you enable data capture on the endpoint. For information about data capture, see <a href=\"https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html\">Capture Data</a>.</p>",
@@ -191,6 +197,11 @@
191197
"synthetic":true
192198
},
193199
"StatusCode":{"type":"integer"},
200+
"TargetContainerHostnameHeader":{
201+
"type":"string",
202+
"max":63,
203+
"pattern":"^[a-zA-Z0-9](-*[a-zA-Z0-9])*"
204+
},
194205
"TargetModelHeader":{
195206
"type":"string",
196207
"max":1024,

0 commit comments

Comments
 (0)