@@ -218,6 +218,7 @@ def deploy(
218218 container_startup_health_check_timeout = None ,
219219 inference_recommendation_id = None ,
220220 explainer_config = None ,
221+ update_endpoint : Optional [bool ] = False ,
221222 ** kwargs ,
222223 ):
223224 """Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.
@@ -296,6 +297,11 @@ def deploy(
296297 would like to deploy the model and endpoint with recommended parameters.
297298 explainer_config (sagemaker.explainer.ExplainerConfig): Specifies online explainability
298299 configuration for use with Amazon SageMaker Clarify. (default: None)
300+ update_endpoint (Optional[bool]):
301+ Flag to update the model in an existing Amazon SageMaker endpoint.
302+ If True, this will deploy a new EndpointConfig to an already existing endpoint
303+ and delete resources corresponding to the previous EndpointConfig. Default: False
304+ Note: Currently this is supported for single model endpoints
299305 Raises:
300306 ValueError: If arguments combination check failed in these circumstances:
301307 - If no role is specified or
@@ -335,6 +341,7 @@ def deploy(
335341 container_startup_health_check_timeout = container_startup_health_check_timeout ,
336342 inference_recommendation_id = inference_recommendation_id ,
337343 explainer_config = explainer_config ,
344+ update_endpoint = update_endpoint ,
338345 ** kwargs ,
339346 )
340347
0 commit comments