@@ -200,6 +200,7 @@ def __init__(
200
200
custom_attributes = None ,
201
201
accelerator_type = None ,
202
202
endpoint_name_prefix = None ,
203
+ target_model = None ,
203
204
):
204
205
r"""Initializes a configuration of a model and the endpoint to be created for it.
205
206
@@ -234,6 +235,9 @@ def __init__(
234
235
for making inferences to the model.
235
236
endpoint_name_prefix (str): The endpoint name prefix of a new endpoint. Must follow
236
237
pattern ``^[a-zA-Z0-9](-\*[a-zA-Z0-9]``.
238
+ target_model (str): Sets the target model name when using a multi-model endpoint. For
239
+ more information about multi-model endpoints, see
240
+ https://docs.aws.amazon.com/sagemaker/latest/dg/multi-model-endpoints.html
237
241
238
242
Raises:
239
243
ValueError: when the ``endpoint_name_prefix`` is invalid, ``accept_type`` is invalid,
@@ -281,6 +285,7 @@ def __init__(
281
285
self .predictor_config ["content_template" ] = content_template
282
286
_set (custom_attributes , "custom_attributes" , self .predictor_config )
283
287
_set (accelerator_type , "accelerator_type" , self .predictor_config )
288
+ _set (target_model , "target_model" , self .predictor_config )
284
289
285
290
def get_predictor_config (self ):
286
291
"""Returns part of the predictor dictionary of the analysis config."""
0 commit comments