describeMailboxExportJob method
Describes the current status of a mailbox export job.
May throw EntityNotFoundException.
May throw InvalidParameterException.
May throw OrganizationNotFoundException.
May throw OrganizationStateException.
Parameter jobId :
The mailbox export job ID.
Parameter organizationId :
The organization ID.
Implementation
Future<DescribeMailboxExportJobResponse> describeMailboxExportJob({
required String jobId,
required String organizationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkMailService.DescribeMailboxExportJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
'OrganizationId': organizationId,
},
);
return DescribeMailboxExportJobResponse.fromJson(jsonResponse.body);
}