start_archive_search
async
¶
start_archive_search(
archive_id: ArchiveId,
from_timestamp: datetime,
to_timestamp: datetime,
max_results: SearchMaxResults,
*,
config_overrides: Optional[AsyncMailManagerClientConfig] = None,
filters: Optional[ArchiveFilters] = None,
) -> StartArchiveSearchResponse
Initiates a search across emails in the specified archive.
Parameters:
-
archive_id(ArchiveId) –The identifier of the archive to search emails in.
-
filters(Optional[ArchiveFilters], default:None) –Criteria to filter which emails are included in the search results.
-
from_timestamp(datetime) –The start timestamp of the range to search emails from.
-
to_timestamp(datetime) –The end timestamp of the range to search emails from.
-
max_results(SearchMaxResults) –The maximum number of search results to return.
Raises:
-
AccessDeniedException–Occurs when a user is denied access to a specific resource or action.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
ResourceNotFoundException–Occurs when a requested resource is not found.
-
ServiceQuotaExceededException–Occurs when an operation exceeds a predefined service quota or limit.
-
ThrottlingException–Occurs when a service's request rate limit is exceeded, resulting in throttling of further requests.
-
ValidationException–The request validation has failed. For details, see the accompanying error message.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_mailmanager/_services/async_mail_manager.py
1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 | |