batchGetReports method
Returns an array of reports.
May throw InvalidInputException.
Parameter reportArns
:
An array of ARNs that identify the Report
objects to return.
Implementation
Future<BatchGetReportsOutput> batchGetReports({
required List<String> reportArns,
}) async {
ArgumentError.checkNotNull(reportArns, 'reportArns');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.BatchGetReports'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'reportArns': reportArns,
},
);
return BatchGetReportsOutput.fromJson(jsonResponse.body);
}