终止支持通知: AWS 将于 2026 年 10 月 30 日终止对亚马逊 Pinpoint 的支持。2026 年 10 月 30 日之后,您将不再能够访问 Amazon Pinpoint 控制台或 Amazon Pinpoint 资源(端点、分段、活动、旅程和分析)。有关更多信息,请参阅 Amazon Pinpoint 终止支持。注意: APIs 与短信相关、语音、移动推送、OTP 和电话号码验证不受此更改的影响,并受 AWS 最终用户消息的支持。
本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
UpdateConfigurationSetEventDestination与 AWS SDK 一起使用
以下代码示例演示了如何使用 UpdateConfigurationSetEventDestination。
- SAP ABAP
-
- 适用于 SAP ABAP 的 SDK
-
TRY.
" Update the event destination
lo_pps->updateconfseteventdst(
iv_configurationsetname = iv_configuration_set_name " e.g., 'my-config-set'
iv_eventdestinationname = iv_event_destination_name " e.g., 'my-event-dest'
io_eventdestination = io_event_destination
).
MESSAGE 'Event destination updated successfully.' TYPE 'I'.
CATCH /aws1/cx_ppsnotfoundexception INTO DATA(lo_not_found_ex).
MESSAGE lo_not_found_ex->get_text( ) TYPE 'I'.
RAISE EXCEPTION lo_not_found_ex.
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.
有关 S AWS DK 开发者指南和代码示例的完整列表,请参阅通过 AWS SDK 使用 Amazon Pinpoint。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。