Skip to main content

suppressed_destinations

Creates, updates, deletes, gets or lists a suppressed_destinations resource.

Overview

Namesuppressed_destinations
TypeResource
Idaws.sesv2.suppressed_destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
attributesobjectAn optional value that can contain additional information about the reasons that the address was added to the suppression list for your account or for a specific tenant.
email_addressstringThe email address that is on the suppression list for your account or for a specific tenant.
last_update_timestring (date-time)The date and time when the suppressed destination was last updated, shown in Unix time format.
reasonstringThe reason that the address was added to the suppression list for your account or for a specific tenant. The value can be one of the following: COMPLAINT – Amazon SES added an email address to the suppression list for your account or for a specific tenant because a message sent to that address results in a complaint. BOUNCE – Amazon SES added an email address to the suppression list for your account or for a specific tenant because a message sent to that address results in a hard bounce. (BOUNCE, COMPLAINT)
tenant_namestringThe name of a tenant. The name can contain up to 64 alphanumeric characters, including letters, numbers, hyphens (-) and underscores (_) only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_suppressed_destinationselectemail_address, regionTenantNameRetrieves information about a specific email address that's on the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the operation targets the account-level suppression list.
list_suppressed_destinationsselectregionTenantName, Reason, StartDate, EndDate, NextToken, PageSizeRetrieves a list of email addresses that are on the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the operation targets the account-level suppression list.
put_suppressed_destinationreplaceregion, EmailAddress, ReasonAdds an email address to the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the address is added to the account-level suppression list.
delete_suppressed_destinationdeleteemail_address, regionTenantNameRemoves an email address from the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the address is removed from the account-level suppression list.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
email_addressstringThe suppressed email destination to remove from the suppression list for your account or for the specified tenant.
regionstringAWS region (default: us-east-1)
EndDatestring (date-time)Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list before a specific date.
NextTokenstringA token returned from a previous call to ListSuppressedDestinations to indicate the position in the list of suppressed email addresses.
PageSizeintegerThe number of results to show in a single call to ListSuppressedDestinations. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.
ReasonarrayThe factors that caused the email address to be added to the suppression list for your account or for a specific tenant.
StartDatestring (date-time)Used to filter the list of suppressed email destinations so that it only includes addresses that were added to the list after a specific date.
TenantNamestringThe name of the tenant whose suppression list you want to remove the address from. If you omit this parameter, the address is removed from the account-level suppression list.

SELECT examples

Retrieves information about a specific email address that's on the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the operation targets the account-level suppression list.

SELECT
attributes,
email_address,
last_update_time,
reason,
tenant_name
FROM aws.sesv2.suppressed_destinations
WHERE email_address = '{{ email_address }}' -- required
AND region = '{{ region }}' -- required
AND TenantName = '{{ TenantName }}'
;

REPLACE examples

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 TenantName parameter. If you omit TenantName, the address is added to the account-level suppression list.

REPLACE aws.sesv2.suppressed_destinations
SET
EmailAddress = '{{ EmailAddress }}',
Reason = '{{ Reason }}',
TenantName = '{{ TenantName }}'
WHERE
region = '{{ region }}' --required
AND EmailAddress = '{{ EmailAddress }}' --required
AND Reason = '{{ Reason }}' --required;

DELETE examples

Removes an email address from the suppression list for your account or for a specific tenant. To target a tenant's suppression list, specify the TenantName parameter. If you omit TenantName, the address is removed from the account-level suppression list.

DELETE FROM aws.sesv2.suppressed_destinations
WHERE email_address = '{{ email_address }}' --required
AND region = '{{ region }}' --required
AND TenantName = '{{ TenantName }}'
;