list_suppressed_destinations
async
¶
list_suppressed_destinations(
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = 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/async_se_sv2.py
4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 | |