AWS code-library documentation change
Summary
Added SAP ABAP code example for GetEmailIdentity API including error handling
Security assessment
New code example for email identity verification. While identity verification has security aspects, this is a routine documentation expansion without addressing specific vulnerabilities.
Diff
diff --git a/code-library/latest/ug/sesv2_example_sesv2_GetEmailIdentity_section.md b/code-library/latest/ug/sesv2_example_sesv2_GetEmailIdentity_section.md index b765894ae..7e79f214a 100644 --- a//code-library/latest/ug/sesv2_example_sesv2_GetEmailIdentity_section.md +++ b//code-library/latest/ug/sesv2_example_sesv2_GetEmailIdentity_section.md @@ -124,0 +125,30 @@ Determines whether an email address has been verified. +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/se2#code-examples). + + + TRY. + oo_result = lo_se2->getemailidentity( + iv_emailidentity = iv_email_identity ). + MESSAGE |Identity type: { oo_result->get_identitytype( ) }, | && + |verified for sending: { oo_result->get_verifiedforsendingstatus( ) }| TYPE 'I'. + CATCH /aws1/cx_se2notfoundexception. + MESSAGE |Email identity { iv_email_identity } not found.| TYPE 'I'. + CATCH /aws1/cx_se2badrequestex INTO DATA(lo_bad_request). + MESSAGE lo_bad_request TYPE 'I' DISPLAY LIKE 'E'. + RAISE EXCEPTION lo_bad_request. + ENDTRY. + + + + * For API details, see [GetEmailIdentity](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. + + + +