Skip to content

Commit b08ae68

Browse files
committed
fix: remove retain flag from update_endpoint (#296)
1 parent 80b5e18 commit b08ae68

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/sagemaker/predictor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ def update_data_capture_config(self, data_capture_config):
219219
)
220220

221221
self.sagemaker_session.update_endpoint(
222-
endpoint_name=self.endpoint,
223-
endpoint_config_name=new_config_name,
224-
retain_all_variant_properties=True,
222+
endpoint_name=self.endpoint, endpoint_config_name=new_config_name
225223
)
226224

227225
def list_monitors(self):

src/sagemaker/session.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,9 +2341,7 @@ def create_endpoint(self, endpoint_name, config_name, tags=None, wait=True):
23412341
self.wait_for_endpoint(endpoint_name)
23422342
return endpoint_name
23432343

2344-
def update_endpoint(
2345-
self, endpoint_name, endpoint_config_name, retain_all_variant_properties=False
2346-
):
2344+
def update_endpoint(self, endpoint_name, endpoint_config_name):
23472345
""" Update an Amazon SageMaker ``Endpoint`` according to the endpoint configuration
23482346
specified in the request
23492347
@@ -2353,8 +2351,6 @@ def update_endpoint(
23532351
endpoint_name (str): Name of the Amazon SageMaker ``Endpoint`` to update.
23542352
endpoint_config_name (str): Name of the Amazon SageMaker endpoint configuration to
23552353
deploy.
2356-
retain_all_variant_properties: Retains all variant properties on the active endpoint,
2357-
in case they have diverged from the original config.
23582354
23592355
Returns:
23602356
str: Name of the Amazon SageMaker ``Endpoint`` being updated.
@@ -2369,9 +2365,7 @@ def update_endpoint(
23692365
)
23702366

23712367
self.sagemaker_client.update_endpoint(
2372-
EndpointName=endpoint_name,
2373-
EndpointConfigName=endpoint_config_name,
2374-
RetainAllVariantProperties=retain_all_variant_properties,
2368+
EndpointName=endpoint_name, EndpointConfigName=endpoint_config_name
23752369
)
23762370
return endpoint_name
23772371

0 commit comments

Comments
 (0)