AWS code-library documentation change
Summary
Added SAP ABAP code example for ListRolePolicies API
Security assessment
New SDK implementation example. Role policy listing doesn't address security vulnerabilities or add security documentation.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md b/code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md index 9c117c85f..dd4da9c5a 100644 --- a//code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md +++ b//code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md @@ -364,0 +365,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->listrolepolicies( + iv_rolename = iv_role_name ). + MESSAGE 'Retrieved inline policy list for role.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Role does not exist.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [ListRolePolicies](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +