AWS Security ChangesHomeSearch

AWS sagemaker documentation change

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

File: sagemaker/latest/dg/processing-job-frameworks-pytorch.md

Summary

Removed legacy SageMaker Python SDK v2 code example and v3 section header

Security assessment

Changes consist solely of removing outdated code samples. No security implications identified as there are no references to vulnerabilities, security configurations, or access controls.

Diff

diff --git a/sagemaker/latest/dg/processing-job-frameworks-pytorch.md b/sagemaker/latest/dg/processing-job-frameworks-pytorch.md
index 979c90b3f..3ae0a27aa 100644
--- a//sagemaker/latest/dg/processing-job-frameworks-pytorch.md
+++ b//sagemaker/latest/dg/processing-job-frameworks-pytorch.md
@@ -15,3 +14,0 @@ For the PyTorch versions supported by SageMaker AI, see the available [ Deep Lea
-SageMaker Python SDK v3
-    
-    
@@ -48,37 +44,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-    
-    from sagemaker.pytorch.processing import PyTorchProcessor
-    from sagemaker.processing import ProcessingInput, ProcessingOutput
-    from sagemaker import get_execution_role
-    
-    #Initialize the PyTorchProcessor
-    pytorch_processor = PyTorchProcessor(
-        framework_version='1.8',
-        role=get_execution_role(),
-        instance_type='ml.m5.xlarge',
-        instance_count=1,
-        base_job_name='frameworkprocessor-PT'
-    )
-    
-    #Run the processing job
-    pytorch_processor.run(
-        code='processing-script.py',
-        source_dir='scripts',
-        inputs=[
-            ProcessingInput(
-                input_name='data',
-                source=f's3://{BUCKET}/{S3_INPUT_PATH}',
-                destination='/opt/ml/processing/input'
-            )
-        ],
-        outputs=[
-            ProcessingOutput(output_name='data_structured', source='/opt/ml/processing/tmp/data_structured', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'),
-            ProcessingOutput(output_name='train', source='/opt/ml/processing/output/train', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'),
-            ProcessingOutput(output_name='validation', source='/opt/ml/processing/output/val', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'),
-            ProcessingOutput(output_name='test', source='/opt/ml/processing/output/test', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}'),
-            ProcessingOutput(output_name='logs', source='/opt/ml/processing/logs', destination=f's3://{BUCKET}/{S3_OUTPUT_PATH}')
-        ]
-    )
-