AWS Security ChangesHomeSearch

AWS sagemaker documentation change

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

File: sagemaker/latest/dg/model-optimize-preoptimized.md

Summary

Removed legacy SageMaker Python SDK v2 code examples and redundant section headers

Security assessment

Changes involve removing outdated SDK examples and formatting cleanup. No security vulnerabilities, fixes, or security features are mentioned in the diff. The removed content relates to general deployment patterns without security implications.

Diff

diff --git a/sagemaker/latest/dg/model-optimize-preoptimized.md b/sagemaker/latest/dg/model-optimize-preoptimized.md
index 35c521efe..b6160bfad 100644
--- a//sagemaker/latest/dg/model-optimize-preoptimized.md
+++ b//sagemaker/latest/dg/model-optimize-preoptimized.md
@@ -48,3 +47,0 @@ For more information about the classes and methods used in the following example
-SageMaker Python SDK v3
-    
-    
@@ -56,8 +52,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        import boto3
-    from sagemaker.serve.builder.model_builder import ModelBuilder
-    from sagemaker.serve.builder.schema_builder import SchemaBuilder
-    from sagemaker.session import Session
-
@@ -146,3 +134,0 @@ The `.build()` method returns a deployable `Model` instance.
-SageMaker Python SDK v3
-    
-    
@@ -151,5 +136,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        predictor = optimized_model.deploy(accept_eula=True)
-
@@ -165,3 +145,0 @@ The `deploy()` method returns an `Endpoint` object, which you can use to send in
-SageMaker Python SDK v3
-    
-    
@@ -173,5 +150,0 @@ SageMaker Python SDK v3
-SageMaker Python SDK v2 (Legacy)
-    
-    
-        predictor.predict(sample_input)
-