getAddressListImportJob method
Fetch attributes of an import job.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter jobId :
The identifier of the import job that needs to be retrieved.
Implementation
Future<GetAddressListImportJobResponse> getAddressListImportJob({
required String jobId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'MailManagerSvc.GetAddressListImportJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobId': jobId,
},
);
return GetAddressListImportJobResponse.fromJson(jsonResponse.body);
}