Skip to main content

archive_searches

Creates, updates, deletes, gets or lists an archive_searches resource.

Overview

Namearchive_searches
TypeResource
Idaws.mailmanager.archive_searches

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
archive_idstringThe identifier of the archive the email search was performed in. (pattern: <code>a-[\w]{1,64}</code>)
filtersobjectThe criteria used to filter emails included in the search.
from_timestampstring (date-time)The start timestamp of the range the searched emails cover.
max_resultsintegerThe maximum number of search results to return.
statusobjectThe current status of the search job.
to_timestampstring (date-time)The end timestamp of the range the searched emails cover.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_archive_searchselectregionRetrieves the details and current status of a specific email archive search job.
list_archive_searchesselectregionReturns a list of email archive search jobs.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the details and current status of a specific email archive search job.

SELECT
archive_id,
filters,
from_timestamp,
max_results,
status,
to_timestamp
FROM aws.mailmanager.archive_searches
WHERE region = '{{ region }}' -- required
;