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