listEmailMessages

Get a list of all EmailMessages for the user.

This API returns a ListAPIResult:

  • On ListAPIResult.Success result, contains the list of requested EmailMessages.

  • On ListAPIResult.Partial result, contains the list of PartialEmailMessages representing email messages that could not be unsealed successfully and the exception indicating why the unsealing failed. An email message may fail to unseal if the client version is not up to date or the required cryptographic key is missing from the client device.

If no EmailMessages can be found, the result will contain null for the nextToken field and contain an empty item list.

Return

A ListAPIResult.Success or a ListAPIResult.Partial result containing either a list of EmailMessages or PartialEmailMessages respectively. Returns an empty list if no email messages can be found.

Parameters

input

ListEmailMessagesInput Parameters used to retrieve a list of all email messages for the user.

Throws