AWS IAM documentation change
Summary
Added SAP ABAP SDK code example for DeletePolicy API
Security assessment
Shows policy deletion without addressing security implications. Routine documentation update.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_DeletePolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_DeletePolicy_section.md index bd446fdcd..4370a76b5 100644 --- a//IAM/latest/UserGuide/iam_example_iam_DeletePolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_DeletePolicy_section.md @@ -519,0 +520,27 @@ 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. + lo_iam->deletepolicy( iv_policyarn = iv_policy_arn ). + MESSAGE 'Policy deleted successfully.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Policy does not exist.' TYPE 'E'. + CATCH /aws1/cx_iamdeleteconflictex. + MESSAGE 'Policy cannot be deleted due to attachments.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [DeletePolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +