list_contacts
async
¶
list_contacts(
contact_list_name: ContactListName,
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
filter: Optional[ListContactsFilter] = None,
page_size: Optional[MaxItems] = None,
next_token: Optional[NextToken] = None,
) -> ListContactsResponse
Lists the contacts present in a specific contact list.
Parameters:
-
contact_list_name(ContactListName) –The name of the contact list.
-
filter(Optional[ListContactsFilter], default:None) –A filter that can be applied to a list of contacts.
-
page_size(Optional[MaxItems], default:None) –The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the
NextTokenelement is sent in the response. Use theNextTokenvalue in subsequent requests to retrieve additional contacts. -
next_token(Optional[NextToken], default:None) –A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.
Raises:
-
BadRequestException–The input you provided is invalid.
-
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
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 | |