sagemaker.core.user_agent#

Placeholder docstring

Functions

get_user_agent_extra_suffix()

Get the user agent extra suffix string specific to SageMaker Python SDK

process_notebook_metadata_file()

Check if the platform is SageMaker Notebook, if yes, return the InstanceType

process_studio_metadata_file()

Check if the platform is SageMaker Studio, if yes, return the AppType

sagemaker.core.user_agent.get_user_agent_extra_suffix()[source]#

Get the user agent extra suffix string specific to SageMaker Python SDK

Adhers to new boto recommended User-Agent 2.0 header format

Returns:

The user agent extra suffix string to be appended

Return type:

str

sagemaker.core.user_agent.process_notebook_metadata_file()[source]#

Check if the platform is SageMaker Notebook, if yes, return the InstanceType

Returns:

The InstanceType of the SageMaker Notebook if it exists, otherwise None

Return type:

str

sagemaker.core.user_agent.process_studio_metadata_file()[source]#

Check if the platform is SageMaker Studio, if yes, return the AppType

Returns:

The AppType of the SageMaker Studio if it exists, otherwise None

Return type:

str