AWS Security ChangesHomeSearch

AWS pinpoint documentation change

Service: pinpoint · 2026-01-25 · Documentation low

File: pinpoint/latest/developerguide/pinpoint-sms-voice_example_pinpoint-sms-voice_SendVoiceMessage_section.md

Summary

Added SAP ABAP code example for SendVoiceMessage API and updated section headers

Security assessment

Added code sample for API usage without security-specific content. Header changes are structural improvements.

Diff

diff --git a/pinpoint/latest/developerguide/pinpoint-sms-voice_example_pinpoint-sms-voice_SendVoiceMessage_section.md b/pinpoint/latest/developerguide/pinpoint-sms-voice_example_pinpoint-sms-voice_SendVoiceMessage_section.md
index 6763e583d..2ae8c28e9 100644
--- a//pinpoint/latest/developerguide/pinpoint-sms-voice_example_pinpoint-sms-voice_SendVoiceMessage_section.md
+++ b//pinpoint/latest/developerguide/pinpoint-sms-voice_example_pinpoint-sms-voice_SendVoiceMessage_section.md
@@ -342,0 +343,55 @@ 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/pps#code-examples). 
+    
+    
+        TRY.
+            " Create SSML message type object with voice parameters
+            DATA(lo_ssml_message) = NEW /aws1/cl_ppsssmlmessagetype(
+              iv_languagecode = iv_language_code    " e.g., 'en-US'
+              iv_voiceid = iv_voice_id              " e.g., 'Matthew'
+              iv_text = iv_ssml_message             " SSML formatted message text
+            ).
+    
+            " Create voice message content with the SSML message
+            DATA(lo_content) = NEW /aws1/cl_ppsvoicemessagecont(
+              io_ssmlmessage = lo_ssml_message
+            ).
+    
+            " Send the voice message
+            DATA(lo_result) = lo_pps->sendvoicemessage(
+              iv_originationphonenumber = iv_origination_number  " e.g., '+12065550110'
+              iv_callerid = iv_caller_id                         " e.g., '+12065550199'
+              iv_destinationphonenumber = iv_destination_number  " e.g., '+12065550142'
+              io_content = lo_content
+            ).
+    
+            " Retrieve the message ID from the response
+            ov_message_id = lo_result->get_messageid( ).
+    
+            MESSAGE 'Voice message sent successfully.' TYPE 'I'.
+    
+          CATCH /aws1/cx_ppsbadrequestex INTO DATA(lo_bad_request_ex).
+            MESSAGE lo_bad_request_ex->get_text( ) TYPE 'I'.
+            RAISE EXCEPTION lo_bad_request_ex.
+          CATCH /aws1/cx_ppsinternalsvcerrorex INTO DATA(lo_internal_error_ex).
+            MESSAGE lo_internal_error_ex->get_text( ) TYPE 'I'.
+            RAISE EXCEPTION lo_internal_error_ex.
+          CATCH /aws1/cx_ppstoomanyrequestsex INTO DATA(lo_too_many_requests_ex).
+            MESSAGE lo_too_many_requests_ex->get_text( ) TYPE 'I'.
+            RAISE EXCEPTION lo_too_many_requests_ex.
+        ENDTRY.
+    
+    
+
+  * For API details, see [SendVoiceMessage](https://docs.aws.amazon.com/sdk-for-sap-abap/v1/api/latest/index.html) in _AWS SDK for SAP ABAP API reference_. 
+
+
+
+
@@ -351 +406 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Actions
+ListConfigurationSets
@@ -353 +408 @@ Actions
-Security
+UpdateConfigurationSetEventDestination