getArchiveMessage method
Returns a pre-signed URL that provides temporary download access to the specific email message stored in the archive.
May throw AccessDeniedException.
May throw ThrottlingException.
May throw ValidationException.
Parameter archivedMessageId :
The unique identifier of the archived email message.
Implementation
Future<GetArchiveMessageResponse> getArchiveMessage({
required String archivedMessageId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'MailManagerSvc.GetArchiveMessage'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ArchivedMessageId': archivedMessageId,
},
);
return GetArchiveMessageResponse.fromJson(jsonResponse.body);
}