AWS code-library documentation change
Summary
Added SAP ABAP code example for ListAttachedRolePolicies API
Security assessment
New SDK implementation example. No security vulnerabilities or security features are mentioned in the change.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListAttachedRolePolicies_section.md b/code-library/latest/ug/iam_example_iam_ListAttachedRolePolicies_section.md index fc3cb41c1..0b46f1142 100644 --- a//code-library/latest/ug/iam_example_iam_ListAttachedRolePolicies_section.md +++ b//code-library/latest/ug/iam_example_iam_ListAttachedRolePolicies_section.md @@ -451,0 +452,26 @@ 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->listattachedrolepolicies( + iv_rolename = iv_role_name ). + MESSAGE 'Retrieved attached policy list for role.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Role does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [ListAttachedRolePolicies](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +