AWS Security ChangesHomeSearch

AWS sagemaker documentation change

Service: sagemaker · 2026-07-01 · Documentation low

File: sagemaker/latest/dg/lineage-tracking-manual-creation.md

Summary

Removed SageMaker Python SDK v2 (legacy) code examples and implementation steps

Security assessment

Change removes legacy code samples without security context. No evidence of security vulnerability fixes or new security features in the diff.

Diff

diff --git a/sagemaker/latest/dg/lineage-tracking-manual-creation.md b/sagemaker/latest/dg/lineage-tracking-manual-creation.md
index 3e987a6ad..f42234056 100644
--- a//sagemaker/latest/dg/lineage-tracking-manual-creation.md
+++ b//sagemaker/latest/dg/lineage-tracking-manual-creation.md
@@ -36,3 +35,0 @@ The following procedure shows you how to create and associate artifacts between
-SageMaker Python SDK v3
-    
-    
@@ -50,14 +46,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        import sys
-    !{sys.executable} -m pip install -q sagemaker
-    
-    from sagemaker import get_execution_role
-    from sagemaker.session import Session
-    **from sagemaker.lineage import context, artifact, association, action**
-    
-    import boto3
-    boto_session = boto3.Session(region_name=region)
-    sagemaker_client = boto_session.client("sagemaker")
-
@@ -108,3 +90,0 @@ SageMaker Python SDK v2 (Legacy)
-SageMaker Python SDK v3
-    
-    
@@ -125,6 +104,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        predictor = mnist_estimator.deploy(initial_instance_count=1,
-                                         instance_type='ml.m4.xlarge')
-
@@ -133,3 +106,0 @@ SageMaker Python SDK v2 (Legacy)
-SageMaker Python SDK v3
-    
-    
@@ -147,14 +117,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        from sagemaker.lineage import context
-    
-    endpoint = sagemaker_client.describe_endpoint(EndpointName=predictor.endpoint_name)
-    endpoint_arn = endpoint['EndpointArn']
-    
-    endpoint_context_arn = context.Context.create(
-        context_name=predictor.endpoint_name,
-        context_type='Endpoint',
-        source_uri=endpoint_arn
-    ).context_arn
-
@@ -181,3 +137,0 @@ Given the endpoint Amazon Resource Name (ARN) from the previous example, the fol
-SageMaker Python SDK v3
-    
-    
@@ -195,14 +148,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        import sys
-    !{sys.executable} -m pip install -q sagemaker
-    
-    from sagemaker import get_execution_role
-    from sagemaker.session import Session
-    **from sagemaker.lineage import context, artifact, association, action**
-    
-    import boto3
-    boto_session = boto3.Session(region_name=region)
-    sagemaker_client = boto_session.client("sagemaker")
-