AWS sagemaker documentation change
Summary
Updated execution role retrieval from sagemaker.get_execution_role() to get_execution_role() and Session initialization
Security assessment
Minor code updates for consistency in role retrieval methods. No security context, vulnerabilities, or security features added. Change maintains existing functionality with updated SDK patterns.
Diff
diff --git a/sagemaker/latest/dg/geospatial-demo.md b/sagemaker/latest/dg/geospatial-demo.md index cb47e1b9d..b10bda7a5 100644 --- a//sagemaker/latest/dg/geospatial-demo.md +++ b//sagemaker/latest/dg/geospatial-demo.md @@ -44 +44 @@ Because the response can be paginated, you must use the `get_paginator` operatio - execution_role = sagemaker.get_execution_role() + execution_role = get_execution_role() @@ -307 +307 @@ With the dictionary elements now specified, you can submit your `start_earth_obs - execution_role_arn = sagemaker.get_execution_role() + execution_role_arn = get_execution_role() @@ -357 +357 @@ To calculate the change in Lake Mead's surface area, first export the results of - sagemaker_session = sagemaker.Session() + sagemaker_session = Session()