/AWS1/IF_SES=>UPDATERECEIPTRULE()¶
About UpdateReceiptRule¶
Updates a receipt rule.
For information about managing receipt rules, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Method Signature¶
METHODS /AWS1/IF_SES~UPDATERECEIPTRULE
IMPORTING
!IV_RULESETNAME TYPE /AWS1/SESRECEIPTRULESETNAME OPTIONAL
!IO_RULE TYPE REF TO /AWS1/CL_SESRECEIPTRULE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sesupdreceiptrulersp
RAISING
/AWS1/CX_SESINVLAMBDAFUNCEX
/AWS1/CX_SESINVALIDS3CONFEX
/AWS1/CX_SESINVALIDSNSTOPICEX
/AWS1/CX_SESLIMITEXCEEDEDEX
/AWS1/CX_SESRULEDOESNOTEXISTEX
/AWS1/CX_SESRULESETDOESNOTEXEX
/AWS1/CX_SESCLIENTEXC
/AWS1/CX_SESSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_rulesetname TYPE /AWS1/SESRECEIPTRULESETNAME /AWS1/SESRECEIPTRULESETNAME¶
The name of the receipt rule set that the receipt rule belongs to.
io_rule TYPE REF TO /AWS1/CL_SESRECEIPTRULE /AWS1/CL_SESRECEIPTRULE¶
A data structure that contains the updated receipt rule information.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sesupdreceiptrulersp /AWS1/CL_SESUPDRECEIPTRULERSP¶
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->updatereceiptrule(
io_rule = new /aws1/cl_sesreceiptrule(
it_actions = VALUE /aws1/cl_sesreceiptaction=>tt_receiptactionslist(
(
new /aws1/cl_sesreceiptaction(
io_addheaderaction = new /aws1/cl_sesaddheaderaction(
iv_headername = |string|
iv_headervalue = |string|
)
io_bounceaction = new /aws1/cl_sesbounceaction(
iv_message = |string|
iv_sender = |string|
iv_smtpreplycode = |string|
iv_statuscode = |string|
iv_topicarn = |string|
)
io_connectaction = new /aws1/cl_sesconnectaction(
iv_iamrolearn = |string|
iv_instancearn = |string|
)
io_lambdaaction = new /aws1/cl_seslambdaaction(
iv_functionarn = |string|
iv_invocationtype = |string|
iv_topicarn = |string|
)
io_s3action = new /aws1/cl_sess3action(
iv_bucketname = |string|
iv_iamrolearn = |string|
iv_kmskeyarn = |string|
iv_objectkeyprefix = |string|
iv_topicarn = |string|
)
io_snsaction = new /aws1/cl_sessnsaction(
iv_encoding = |string|
iv_topicarn = |string|
)
io_stopaction = new /aws1/cl_sesstopaction(
iv_scope = |string|
iv_topicarn = |string|
)
io_workmailaction = new /aws1/cl_sesworkmailaction(
iv_organizationarn = |string|
iv_topicarn = |string|
)
)
)
)
it_recipients = VALUE /aws1/cl_sesrecipientslist_w=>tt_recipientslist(
( new /aws1/cl_sesrecipientslist_w( |string| ) )
)
iv_enabled = ABAP_TRUE
iv_name = |string|
iv_scanenabled = ABAP_TRUE
iv_tlspolicy = |string|
)
iv_rulesetname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
UpdateReceiptRule¶
The following example updates a receipt rule to use an Amazon S3 action:
DATA(lo_result) = lo_client->updatereceiptrule(
io_rule = new /aws1/cl_sesreceiptrule(
it_actions = VALUE /aws1/cl_sesreceiptaction=>tt_receiptactionslist(
(
new /aws1/cl_sesreceiptaction(
io_s3action = new /aws1/cl_sess3action(
iv_bucketname = |MyBucket|
iv_objectkeyprefix = |email|
)
)
)
)
iv_enabled = ABAP_TRUE
iv_name = |MyRule|
iv_scanenabled = ABAP_TRUE
iv_tlspolicy = |Optional|
)
iv_rulesetname = |MyRuleSet|
).