Skip to content

Commit 4afbb5a

Browse files
nzewailmohamedzeidan2021Mohamed Zeidan
authored
feature: add support for describe_endpoint_config to session (#5193)
* feature: add support for describe_endpoint_config to session * fix: resolve codestyle violations in describe_endpoint_config Fixes the flake8 and black failures reported by the codestyle-doc-tests check on PR #5193: - Remove trailing whitespace on the blank line preceding the new method (flake8 W293 at session.py:5370). - Wrap the describe_endpoint_config call so the line fits within the 100-character limit enforced by black 24.3.0. --------- Co-authored-by: Mohamed Zeidan <81834882+mohamedzeidan2021@users.noreply.github.com> Co-authored-by: Mohamed Zeidan <zeidmo@amazon.com>
1 parent 82534ad commit 4afbb5a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎src/sagemaker/session.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5368,6 +5368,17 @@ def describe_endpoint(self, endpoint_name):
53685368
response = self.sagemaker_client.describe_endpoint(EndpointName=endpoint_name)
53695369
return response
53705370

5371+
def describe_endpoint_config(self, endpoint_config_name):
5372+
"""Describe an Amazon SageMaker ``EndpointConfig``.
5373+
5374+
Args:
5375+
endpoint_config_name (str): Name of the Amazon SageMaker ``EndpointConfig`` to describe.
5376+
"""
5377+
response = self.sagemaker_client.describe_endpoint_config(
5378+
EndpointConfigName=endpoint_config_name
5379+
)
5380+
return response
5381+
53715382
def delete_endpoint(self, endpoint_name):
53725383
"""Delete an Amazon SageMaker ``Endpoint``.
53735384

0 commit comments

Comments
 (0)