AWS sagemaker documentation change
Summary
Added SDK version-specific code examples and fixed an image reference for the Home icon.
Security assessment
Changes are routine documentation updates adding code samples for different SDK versions and correcting an image path. No security configurations or vulnerabilities are addressed.
Diff
diff --git a/sagemaker/latest/dg/model-registry-model-group.md b/sagemaker/latest/dg/model-registry-model-group.md index 0098554b8..5e2a08c7d 100644 --- a//sagemaker/latest/dg/model-registry-model-group.md +++ b//sagemaker/latest/dg/model-registry-model-group.md @@ -24,0 +25,18 @@ First, import the required packages and set up the SageMaker AI Boto3 client. +SageMaker Python SDK v3 + + + + import time + import os + from sagemaker.core.helper.session_helper import get_execution_role, session + import boto3 + + region = boto3.Session().region_name + + role = get_execution_role() + + sm_client = boto3.client('sagemaker', region_name=region) + +SageMaker Python SDK v2 (Legacy) + + @@ -38,0 +57,3 @@ Now create the Model Group. +SageMaker Python SDK v3 + + @@ -49,0 +71,15 @@ Now create the Model Group. +SageMaker Python SDK v2 (Legacy) + + + + import time + import os + from sagemaker import get_execution_role, session + import boto3 + + region = boto3.Session().region_name + + role = get_execution_role() + + sm_client = boto3.client('sagemaker', region_name=region) + @@ -87 +123 @@ Studio Classic - 2. In the left navigation pane, choose the **Home** icon (  ). + 2. In the left navigation pane, choose the **Home** icon (  ).