AWS code-library documentation change
Summary
Added SAP ABAP code example for ListPolicyVersions API (inconsistent with section title)
Security assessment
Appears to be mislabeled (references CreateServiceLinkedRole but implements ListPolicyVersions). No security context is present. The service failure error handling is routine reliability improvement, not security-related.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_CreateServiceLinkedRole_section.md b/code-library/latest/ug/iam_example_iam_CreateServiceLinkedRole_section.md index f9fe911ee..ea395093c 100644 --- a//code-library/latest/ug/iam_example_iam_CreateServiceLinkedRole_section.md +++ b//code-library/latest/ug/iam_example_iam_CreateServiceLinkedRole_section.md @@ -386,0 +387,28 @@ There's more on GitHub. Find the complete example and learn how to set up and ru + + + + +SAP ABAP + + +**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->listpolicyversions( + iv_policyarn = iv_policy_arn ). + MESSAGE 'Retrieved policy versions list.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Policy does not exist.' TYPE 'E'. + CATCH /aws1/cx_iamservicefailureex. + MESSAGE 'Service failure when listing policy versions.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [CreateServiceLinkedRole](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_.