AWS Security ChangesHomeSearch

AWS sagemaker documentation change

Service: sagemaker · 2026-06-28 · Documentation low

File: sagemaker/latest/dg/data-privacy.md

Summary

Updated code examples for opting out of metadata collection, adding separate examples for SageMaker Python SDK v3 (ModelTrainer) and v2, and corrected a documentation link

Security assessment

The change enhances documentation about opting out of metadata collection (a privacy/security feature) but shows no evidence of addressing a specific security vulnerability. It improves clarity of existing security controls without patching vulnerabilities.

Diff

diff --git a/sagemaker/latest/dg/data-privacy.md b/sagemaker/latest/dg/data-privacy.md
index 590b2f580..a69a4eddb 100644
--- a//sagemaker/latest/dg/data-privacy.md
+++ b//sagemaker/latest/dg/data-privacy.md
@@ -80 +80,18 @@ To opt out of metadata collection using the SDK for Python (Boto3), set the envi
-To opt out of metadata collection using the SageMaker Python SDK, set the environment variable `OPT_OUT_TRACKING` to `1` inside a SageMaker AI estimator as shown in the following code example.
+To opt out of metadata collection using the SageMaker Python SDK, set the environment variable `OPT_OUT_TRACKING` to `1` inside a SageMaker AI ModelTrainer as shown in the following code example.
+
+SageMaker Python SDK v3
+    
+    
+    
+    sagemaker.train.ModelTrainer(
+        image_uri='path_to_container',
+        role='rolearn',
+        instance_count=1, 
+        instance_type='ml.c5.xlarge', 
+        environment={
+            'OPT_OUT_TRACKING': '1'
+        }, 
+    )
+
+SageMaker Python SDK v2 (Legacy)
+    
@@ -106 +123 @@ The following code example shows how opt out of tracking account-wide.
-For more information about how to opt out of tracking account-wide, see [Configuring and using defaults with the SageMaker Python SDK](https://sagemaker.readthedocs.io/en/stable/overview.html#id22).
+For more information about how to opt out of tracking account-wide, see [Configuring and using defaults with the SageMaker Python SDK](https://sagemaker.readthedocs.io/en/stable/).