list_suppressed_destinations
¶
list_suppressed_destinations(
*,
config_overrides: Optional[SESv2ClientConfig] = None,
tenant_name: Optional[TenantName] = None,
reasons: Optional[SuppressionListReasons] = None,
start_date: Optional[Timestamp] = None,
end_date: Optional[Timestamp] = None,
next_token: Optional[NextToken] = None,
page_size: Optional[MaxItems] = None,
) -> ListSuppressedDestinationsResponse
Retrieves 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.
Parameters:
-
tenant_name(Optional[TenantName], default:None) –The name of the tenant whose suppression list you want to retrieve. If you omit this parameter, the operation targets the account-level suppression list.
-
reasons(Optional[SuppressionListReasons], default:None) –The factors that caused the email address to be added to the suppression list for your account or for a specific tenant.
-
start_date(Optional[Timestamp], default:None) –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.
-
end_date(Optional[Timestamp], default:None) –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.
-
next_token(Optional[NextToken], default:None) –A token returned from a previous call to
ListSuppressedDestinationsto indicate the position in the list of suppressed email addresses. -
page_size(Optional[MaxItems], default:None) –The 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 aNextTokenelement, which you can use to obtain additional results.
Raises:
-
BadRequestException–The input you provided is invalid.
-
InvalidNextTokenException–The specified request includes an invalid or expired token.
-
NotFoundException–The resource you attempted to access doesn't exist.
-
TooManyRequestsException–Too many requests have been made to the operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sesv2/_services/se_sv2.py
4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 | |