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
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 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 | |