AWS IAM documentation change
Summary
Added SAP ABAP SDK code example for GetPolicyVersion API and multiple example links to various AWS service getting started guides, including security-related examples like 'Moving hardcoded secrets to Secrets Manager' and 'Getting Started with IoT Device Defender'.
Security assessment
This change adds a new SDK example (SAP ABAP) for the GetPolicyVersion API and links to security-related examples. While GetPolicyVersion is a security-related API for examining IAM policies, this change only adds documentation for a new SDK language and example links, not addressing any specific security vulnerability.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_GetPolicyVersion_section.md b/IAM/latest/UserGuide/iam_example_iam_GetPolicyVersion_section.md index ad3dd9229..829201108 100644 --- a//IAM/latest/UserGuide/iam_example_iam_GetPolicyVersion_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_GetPolicyVersion_section.md @@ -184,0 +185,29 @@ 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->getpolicyversion( + iv_policyarn = iv_policy_arn + iv_versionid = iv_version_id ). + MESSAGE 'Retrieved policy version information.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'Policy or version does not exist.' TYPE 'E'. + CATCH /aws1/cx_iaminvalidinputex. + MESSAGE 'Invalid input provided.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [GetPolicyVersion](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +