AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for GetPolicyVersion API with error handling
Security assessment
The change adds a new SDK example for an existing IAM API. While IAM is a security service, this is routine documentation expansion for a new SDK language (SAP ABAP) and doesn't address any specific security issue or add new security features.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_GetPolicyVersion_section.md b/code-library/latest/ug/iam_example_iam_GetPolicyVersion_section.md index e2b93e241..20d9e5dc7 100644 --- a//code-library/latest/ug/iam_example_iam_GetPolicyVersion_section.md +++ b//code-library/latest/ug/iam_example_iam_GetPolicyVersion_section.md @@ -186,0 +187,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_. + + + +