AWS code-library documentation change
Summary
Added SAP ABAP SDK code example for GetAccountPasswordPolicy API
Security assessment
Documents password policy retrieval - a security feature - but doesn't fix vulnerabilities. Helps enforce password security standards.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md b/code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md index d39ba991d..b59362dd8 100644 --- a//code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md +++ b//code-library/latest/ug/iam_example_iam_GetAccountPasswordPolicy_section.md @@ -365,0 +366,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. + oo_result = lo_iam->getaccountpasswordpolicy( ). + MESSAGE 'Retrieved account password policy.' TYPE 'I'. + CATCH /aws1/cx_iamnosuchentityex. + MESSAGE 'No password policy exists.' TYPE 'I'. + CATCH /aws1/cx_iamservicefailureex. + MESSAGE 'Service failure when getting password policy.' TYPE 'E'. + ENDTRY. + + + + * For API details, see [GetAccountPasswordPolicy](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +