/AWS1/IF_SES=>SETIDHEADERSINNOTIFSENABLED()¶
About SetIdentityHeadersInNotificationsEnabled¶
Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.
You can execute this operation no more than once per second.
For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.
Method Signature¶
METHODS /AWS1/IF_SES~SETIDHEADERSINNOTIFSENABLED
IMPORTING
!IV_IDENTITY TYPE /AWS1/SESIDENTITY OPTIONAL
!IV_NOTIFICATIONTYPE TYPE /AWS1/SESNOTIFICATIONTYPE OPTIONAL
!IV_ENABLED TYPE /AWS1/SESENABLED OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sessetidheadersinnt01
RAISING
/AWS1/CX_SESCLIENTEXC
/AWS1/CX_SESSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identity TYPE /AWS1/SESIDENTITY /AWS1/SESIDENTITY¶
The identity for which to enable or disable headers in notifications. Examples:
user@example.com,example.com.
iv_notificationtype TYPE /AWS1/SESNOTIFICATIONTYPE /AWS1/SESNOTIFICATIONTYPE¶
The notification type for which to enable or disable headers in notifications.
iv_enabled TYPE /AWS1/SESENABLED /AWS1/SESENABLED¶
Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified notification type. A value of
truespecifies that Amazon SES includes headers in notifications, and a value offalsespecifies that Amazon SES does not include headers in notifications.This value can only be set when
NotificationTypeis already set to use a particular Amazon SNS topic.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sessetidheadersinnt01 /AWS1/CL_SESSETIDHEADERSINNT01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->setidheadersinnotifsenabled(
iv_enabled = ABAP_TRUE
iv_identity = |string|
iv_notificationtype = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
SetIdentityHeadersInNotificationsEnabled¶
The following example configures Amazon SES to include the original email headers in the Amazon SNS bounce notifications for an identity:
DATA(lo_result) = lo_client->setidheadersinnotifsenabled(
iv_enabled = ABAP_TRUE
iv_identity = |user@example.com|
iv_notificationtype = |Bounce|
).