AWS sagemaker documentation change
Summary
Updated SageMaker Session import path and initialization syntax
Security assessment
Change only updates Python import statements and class initialization for SDK consistency. No security-related content was added, modified, or referenced in the diff. The functionality for reading S3 files remains identical.
Diff
diff --git a/sagemaker/latest/dg/async-inference-check-predictions.md b/sagemaker/latest/dg/async-inference-check-predictions.md index f67f3f18c..f7ded0066 100644 --- a//sagemaker/latest/dg/async-inference-check-predictions.md +++ b//sagemaker/latest/dg/async-inference-check-predictions.md @@ -110 +110 @@ For information about supported content types, see [Common data formats for infe -With the Amazon S3 output location, you can then use a [SageMaker Python SDK SageMaker AI Session Class](https://sagemaker.readthedocs.io/en/stable/api/utility/session.html?highlight=session) to read in Amazon S3 files. The following code example shows how to create a function (`get_ouput`) that repeatedly attempts to read a file from the Amazon S3 output location: +With the Amazon S3 output location, you can then use a [SageMaker Python SDK SageMaker AI Session Class](https://sagemaker.readthedocs.io/en/stable/api/sagemaker_core.html) to read in Amazon S3 files. The following code example shows how to create a function (`get_ouput`) that repeatedly attempts to read a file from the Amazon S3 output location: @@ -113 +113 @@ With the Amazon S3 output location, you can then use a [SageMaker Python SDK Sag - import sagemaker + from sagemaker.core.helper.session_helper import Session @@ -117 +117 @@ With the Amazon S3 output location, you can then use a [SageMaker Python SDK Sag - sagemaker_session = sagemaker.session.Session() + sagemaker_session = Session()