AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for GetPolicy API
Security assessment
Documents policy retrieval security feature without addressing specific vulnerabilities. Improves access control management.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_GetPolicy_section.md b/code-library/latest/ug/iam_example_iam_GetPolicy_section.md index 75a2210b9..11d2ea49c 100644 --- a//code-library/latest/ug/iam_example_iam_GetPolicy_section.md +++ b//code-library/latest/ug/iam_example_iam_GetPolicy_section.md @@ -447,0 +448,25 @@ 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->getpolicy( iv_policyarn = iv_policy_arn ). + MESSAGE 'Retrieved policy information.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Policy does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [GetPolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +