start_archive_search
¶
start_archive_search(
archive_id: ArchiveId,
from_timestamp: datetime,
to_timestamp: datetime,
max_results: SearchMaxResults,
*,
config_overrides: Optional[MailManagerClientConfig] = 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/mail_manager.py
1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 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 | |