/AWS1/IF_SEB=>CREATERULESET()¶
About CreateRuleSet¶
Provision a new rule set.
Method Signature¶
METHODS /AWS1/IF_SEB~CREATERULESET
IMPORTING
!IV_CLIENTTOKEN TYPE /AWS1/SEBIDEMPOTENCYTOKEN OPTIONAL
!IV_RULESETNAME TYPE /AWS1/SEBRULESETNAME OPTIONAL
!IT_RULES TYPE /AWS1/CL_SEBRULE=>TT_RULES OPTIONAL
!IT_TAGS TYPE /AWS1/CL_SEBTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_sebcreaterulesetrsp
RAISING
/AWS1/CX_SEBCONFLICTEXCEPTION
/AWS1/CX_SEBSERVICEQUOTAEXCDEX
/AWS1/CX_SEBVALIDATIONEX
/AWS1/CX_SEBCLIENTEXC
/AWS1/CX_SEBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_rulesetname TYPE /AWS1/SEBRULESETNAME /AWS1/SEBRULESETNAME¶
A user-friendly name for the rule set.
it_rules TYPE /AWS1/CL_SEBRULE=>TT_RULES TT_RULES¶
Conditional rules that are evaluated for determining actions on email.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/SEBIDEMPOTENCYTOKEN /AWS1/SEBIDEMPOTENCYTOKEN¶
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
it_tags TYPE /AWS1/CL_SEBTAG=>TT_TAGLIST TT_TAGLIST¶
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_sebcreaterulesetrsp /AWS1/CL_SEBCREATERULESETRSP¶
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->createruleset(
it_rules = VALUE /aws1/cl_sebrule=>tt_rules(
(
new /aws1/cl_sebrule(
it_actions = VALUE /aws1/cl_sebruleaction=>tt_ruleactions(
(
new /aws1/cl_sebruleaction(
io_addheader = new /aws1/cl_sebaddheaderaction(
iv_headername = |string|
iv_headervalue = |string|
)
io_archive = new /aws1/cl_sebarchiveaction(
iv_actionfailurepolicy = |string|
iv_targetarchive = |string|
)
io_delivertomailbox = new /aws1/cl_sebdelivertomailbox00(
iv_actionfailurepolicy = |string|
iv_mailboxarn = |string|
iv_rolearn = |string|
)
io_delivertoqbusiness = new /aws1/cl_sebdelivertoqbusine00(
iv_actionfailurepolicy = |string|
iv_applicationid = |string|
iv_indexid = |string|
iv_rolearn = |string|
)
io_drop = new /aws1/cl_sebdropaction( )
io_publishtosns = new /aws1/cl_sebsnsaction(
iv_actionfailurepolicy = |string|
iv_encoding = |string|
iv_payloadtype = |string|
iv_rolearn = |string|
iv_topicarn = |string|
)
io_relay = new /aws1/cl_sebrelayaction(
iv_actionfailurepolicy = |string|
iv_mailfrom = |string|
iv_relay = |string|
)
io_replacerecipient = new /aws1/cl_sebrplrecipientaction(
it_replacewith = VALUE /aws1/cl_sebrecipients_w=>tt_recipients(
( new /aws1/cl_sebrecipients_w( |string| ) )
)
)
io_send = new /aws1/cl_sebsendaction(
iv_actionfailurepolicy = |string|
iv_rolearn = |string|
)
io_writetos3 = new /aws1/cl_sebs3action(
iv_actionfailurepolicy = |string|
iv_rolearn = |string|
iv_s3bucket = |string|
iv_s3prefix = |string|
iv_s3ssekmskeyid = |string|
)
)
)
)
it_conditions = VALUE /aws1/cl_sebrulecondition=>tt_ruleconditions(
(
new /aws1/cl_sebrulecondition(
io_booleanexpression = new /aws1/cl_sebrulebooleanxprsn(
io_evaluate = new /aws1/cl_sebruleblntoevaluate(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
io_isinaddresslist = new /aws1/cl_sebruleisinaddresslst(
it_addresslists = VALUE /aws1/cl_sebrladdresslstarnl00=>tt_ruleaddresslistarnlist(
( new /aws1/cl_sebrladdresslstarnl00( |string| ) )
)
iv_attribute = |string|
)
iv_attribute = |string|
)
iv_operator = |string|
)
io_dmarcexpression = new /aws1/cl_sebruledmarcxprsn(
it_values = VALUE /aws1/cl_sebruledmarcvallist_w=>tt_ruledmarcvaluelist(
( new /aws1/cl_sebruledmarcvallist_w( |string| ) )
)
iv_operator = |string|
)
io_ipexpression = new /aws1/cl_sebruleipexpression(
io_evaluate = new /aws1/cl_sebruleiptoevaluate( |string| )
it_values = VALUE /aws1/cl_sebruleipvaluelist_w=>tt_ruleipvaluelist(
( new /aws1/cl_sebruleipvaluelist_w( |string| ) )
)
iv_operator = |string|
)
io_numberexpression = new /aws1/cl_sebrulenumberxprsn(
io_evaluate = new /aws1/cl_sebrulenumtoevaluate( |string| )
iv_operator = |string|
iv_value = '0.1'
)
io_stringexpression = new /aws1/cl_sebrulestringxprsn(
io_evaluate = new /aws1/cl_sebrulestrtoevaluate(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
iv_attribute = |string|
iv_mimeheaderattribute = |string|
)
it_values = VALUE /aws1/cl_sebrulestringlist_w=>tt_rulestringlist(
( new /aws1/cl_sebrulestringlist_w( |string| ) )
)
iv_operator = |string|
)
io_verdictexpression = new /aws1/cl_sebruleverdictxprsn(
io_evaluate = new /aws1/cl_sebrlverdicttoevalu00(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
iv_attribute = |string|
)
it_values = VALUE /aws1/cl_sebrlverdictvallst_w=>tt_ruleverdictvaluelist(
( new /aws1/cl_sebrlverdictvallst_w( |string| ) )
)
iv_operator = |string|
)
)
)
)
it_unless = VALUE /aws1/cl_sebrulecondition=>tt_ruleconditions(
(
new /aws1/cl_sebrulecondition(
io_booleanexpression = new /aws1/cl_sebrulebooleanxprsn(
io_evaluate = new /aws1/cl_sebruleblntoevaluate(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
io_isinaddresslist = new /aws1/cl_sebruleisinaddresslst(
it_addresslists = VALUE /aws1/cl_sebrladdresslstarnl00=>tt_ruleaddresslistarnlist(
( new /aws1/cl_sebrladdresslstarnl00( |string| ) )
)
iv_attribute = |string|
)
iv_attribute = |string|
)
iv_operator = |string|
)
io_dmarcexpression = new /aws1/cl_sebruledmarcxprsn(
it_values = VALUE /aws1/cl_sebruledmarcvallist_w=>tt_ruledmarcvaluelist(
( new /aws1/cl_sebruledmarcvallist_w( |string| ) )
)
iv_operator = |string|
)
io_ipexpression = new /aws1/cl_sebruleipexpression(
io_evaluate = new /aws1/cl_sebruleiptoevaluate( |string| )
it_values = VALUE /aws1/cl_sebruleipvaluelist_w=>tt_ruleipvaluelist(
( new /aws1/cl_sebruleipvaluelist_w( |string| ) )
)
iv_operator = |string|
)
io_numberexpression = new /aws1/cl_sebrulenumberxprsn(
io_evaluate = new /aws1/cl_sebrulenumtoevaluate( |string| )
iv_operator = |string|
iv_value = '0.1'
)
io_stringexpression = new /aws1/cl_sebrulestringxprsn(
io_evaluate = new /aws1/cl_sebrulestrtoevaluate(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
iv_attribute = |string|
iv_mimeheaderattribute = |string|
)
it_values = VALUE /aws1/cl_sebrulestringlist_w=>tt_rulestringlist(
( new /aws1/cl_sebrulestringlist_w( |string| ) )
)
iv_operator = |string|
)
io_verdictexpression = new /aws1/cl_sebruleverdictxprsn(
io_evaluate = new /aws1/cl_sebrlverdicttoevalu00(
io_analysis = new /aws1/cl_sebanalysis(
iv_analyzer = |string|
iv_resultfield = |string|
)
iv_attribute = |string|
)
it_values = VALUE /aws1/cl_sebrlverdictvallst_w=>tt_ruleverdictvaluelist(
( new /aws1/cl_sebrlverdictvallst_w( |string| ) )
)
iv_operator = |string|
)
)
)
)
iv_name = |string|
)
)
)
it_tags = VALUE /aws1/cl_sebtag=>tt_taglist(
(
new /aws1/cl_sebtag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_clienttoken = |string|
iv_rulesetname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_rulesetid = lo_result->get_rulesetid( ).
ENDIF.