AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2026-04-19 · Documentation medium

File: code-library/latest/ug/sap-abap_1_iam_code_examples.md

Summary

Added a code example for the GetPolicyVersion API in IAM and updated a reference from 'AWS IoT SiteWise' to 'AWS IoT data'.

Security assessment

The addition documents IAM API functionality related to policy management, which is security-focused, but does not directly address a specific security vulnerability or incident.

Diff

diff --git a/code-library/latest/ug/sap-abap_1_iam_code_examples.md b/code-library/latest/ug/sap-abap_1_iam_code_examples.md
index 331572528..fa84235cc 100644
--- a//code-library/latest/ug/sap-abap_1_iam_code_examples.md
+++ b//code-library/latest/ug/sap-abap_1_iam_code_examples.md
@@ -675,0 +676,28 @@ There's more on GitHub. Find the complete example and learn how to set up and ru
+The following code example shows how to use `GetPolicyVersion`.
+
+**SDK for SAP ABAP**
+    
+
+###### Note
+
+There's more on GitHub. Find the complete example and learn how to set up and run in the [AWS Code Examples Repository](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/sap-abap/services/iam#code-examples). 
+    
+    
+        TRY.
+            oo_result = lo_iam->getpolicyversion(
+              iv_policyarn = iv_policy_arn
+              iv_versionid = iv_version_id ).
+            MESSAGE 'Retrieved policy version information.' TYPE 'I'.
+          CATCH /aws1/cx_iamnosuchentityex.
+            MESSAGE 'Policy or version does not exist.' TYPE 'E'.
+          CATCH /aws1/cx_iaminvalidinputex.
+            MESSAGE 'Invalid input provided.' TYPE 'E'.
+        ENDTRY.
+    
+    
+
+  * For API details, see [GetPolicyVersion](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
@@ -1039 +1067 @@ HealthLake
-AWS IoT SiteWise
+AWS IoT data