支援終止通知:2026 年 10 月 30 日, AWS 將結束對 Amazon Pinpoint 的支援。2026 年 10 月 30 日之後,您將無法再存取 Amazon Pinpoint 主控台或 Amazon Pinpoint 資源 (端點、區段、行銷活動、旅程和分析)。如需詳細資訊,請參閱 Amazon Pinpoint 終止支援。注意:與 SMS、語音、行動推播、OTP 和電話號碼驗證相關的 APIs 不受此變更影響,並受 AWS 最終使用者傳訊支援。
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
GetConfigurationSetEventDestinations 搭配 AWS SDK 使用
以下程式碼範例顯示如何使用 GetConfigurationSetEventDestinations。
- SAP ABAP
-
- 適用於 SAP ABAP 的開發套件
-
TRY.
" Get event destinations for the configuration set
oo_result = lo_pps->getconfseteventdestinations(
iv_configurationsetname = iv_configuration_set_name " e.g., 'my-config-set'
).
" Process the event destinations
LOOP AT oo_result->get_eventdestinations( ) INTO DATA(lo_event_dest).
DATA(lv_dest_name) = lo_event_dest->get_name( ).
DATA(lv_enabled) = lo_event_dest->get_enabled( ).
MESSAGE |Event destination: { lv_dest_name }, Enabled: { lv_enabled }| TYPE 'I'.
" Check for CloudWatch Logs destination
DATA(lo_cloudwatch_dest) = lo_event_dest->get_cloudwatchlogsdst( ).
IF lo_cloudwatch_dest IS NOT INITIAL.
DATA(lv_log_group_arn) = lo_cloudwatch_dest->get_loggrouparn( ).
MESSAGE | CloudWatch Logs destination: { lv_log_group_arn }| TYPE 'I'.
ENDIF.
" Check for Kinesis Firehose destination
DATA(lo_firehose_dest) = lo_event_dest->get_kinesisfirehosedst( ).
IF lo_firehose_dest IS NOT INITIAL.
DATA(lv_delivery_stream) = lo_firehose_dest->get_deliverystreamarn( ).
MESSAGE | Kinesis Firehose destination: { lv_delivery_stream }| TYPE 'I'.
ENDIF.
" Check for SNS destination
DATA(lo_sns_dest) = lo_event_dest->get_snsdestination( ).
IF lo_sns_dest IS NOT INITIAL.
DATA(lv_topic_arn) = lo_sns_dest->get_topicarn( ).
MESSAGE | SNS destination: { lv_topic_arn }| TYPE 'I'.
ENDIF.
ENDLOOP.
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.
如需 AWS SDK 開發人員指南和程式碼範例的完整清單,請參閱 搭配 AWS SDK 使用 Amazon Pinpoint。此主題也包含有關入門的資訊和舊版 SDK 的詳細資訊。