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
1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 | |