SESV2 / Client / put_suppressed_destination
put_suppressed_destination¶
- SESV2.Client.put_suppressed_destination(**kwargs)¶
Adds an email address to the suppression list for your account or for a specific tenant. To target a tenant’s suppression list, specify the
TenantNameparameter. If you omitTenantName, the address is added to the account-level suppression list.See also: AWS API Documentation
Request Syntax
response = client.put_suppressed_destination( EmailAddress='string', Reason='BOUNCE'|'COMPLAINT', TenantName='string' )
- Parameters:
EmailAddress (string) –
[REQUIRED]
The email address that should be added to the suppression list for your account or for the specified tenant.
Reason (string) –
[REQUIRED]
The factors that should cause the email address to be added to the suppression list for your account or for the specified tenant.
TenantName (string) – The name of the tenant whose suppression list you want to add the address to. If you omit this parameter, the address is added to the account-level suppression list.
- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
An HTTP 200 response if the request succeeds, or an error message if the request fails.
Exceptions
SESV2.Client.exceptions.BadRequestExceptionSESV2.Client.exceptions.TooManyRequestsExceptionSESV2.Client.exceptions.NotFoundException