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
3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 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 | |