Skip to content

/AWS1/IF_SE2=>PUTTENANTSUPRSNATTRIBUTES()

About PutTenantSuppressionAttributes

Configure the suppression list preferences for a tenant. Use this operation to enable or disable tenant-level suppression, or to change the suppressed reasons for a tenant.

When you set the suppression scope to TENANT, Amazon SES maintains a separate suppression list for the tenant. When you set the scope to ACCOUNT, the tenant uses the account-level suppression list.

Method Signature

METHODS /AWS1/IF_SE2~PUTTENANTSUPRSNATTRIBUTES
  IMPORTING
    !IV_TENANTNAME TYPE /AWS1/SE2TENANTNAME OPTIONAL
    !IT_SUPPRESSEDREASONS TYPE /AWS1/CL_SE2SUPIONLISTRSNS_W=>TT_SUPPRESSIONLISTREASONS OPTIONAL
    !IV_SUPPRESSIONSCOPE TYPE /AWS1/SE2SUPPRESSIONLISTSCOPE OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_se2puttntsuppattrrsp
  RAISING
    /AWS1/CX_SE2BADREQUESTEX
    /AWS1/CX_SE2NOTFOUNDEXCEPTION
    /AWS1/CX_SE2TOOMANYREQUESTSEX
    /AWS1/CX_SE2CLIENTEXC
    /AWS1/CX_SE2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_tenantname TYPE /AWS1/SE2TENANTNAME /AWS1/SE2TENANTNAME

The name of the tenant to configure suppression list preferences for.

Optional arguments:

it_suppressedreasons TYPE /AWS1/CL_SE2SUPIONLISTRSNS_W=>TT_SUPPRESSIONLISTREASONS TT_SUPPRESSIONLISTREASONS

A list that contains the reasons that email addresses are automatically added to the suppression list for the tenant. This list can contain any or all of the following:

  • COMPLAINT – Amazon SES adds an email address to the suppression list when a message sent to that address results in a complaint.

  • BOUNCE – Amazon SES adds an email address to the suppression list when a message sent to that address results in a hard bounce.

iv_suppressionscope TYPE /AWS1/SE2SUPPRESSIONLISTSCOPE /AWS1/SE2SUPPRESSIONLISTSCOPE

The suppression scope for the tenant. Specify TENANT to use the tenant's own suppression list, or ACCOUNT to use the account-level suppression list.

If you don't specify a suppression scope, the tenant defaults to ACCOUNT scope and uses the account-level suppression list.

RETURNING

oo_output TYPE REF TO /aws1/cl_se2puttntsuppattrrsp /AWS1/CL_SE2PUTTNTSUPPATTRRSP

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->puttenantsuprsnattributes(
  it_suppressedreasons = VALUE /aws1/cl_se2supionlistrsns_w=>tt_suppressionlistreasons(
    ( new /aws1/cl_se2supionlistrsns_w( |string| ) )
  )
  iv_suppressionscope = |string|
  iv_tenantname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.