describeAssessmentRuns method
Describes the assessment runs that are specified by the ARNs of the assessment runs.
May throw InternalException. May throw InvalidInputException.
Parameter assessmentRunArns
:
The ARN that specifies the assessment run that you want to describe.
Implementation
Future<DescribeAssessmentRunsResponse> describeAssessmentRuns({
required List<String> assessmentRunArns,
}) async {
ArgumentError.checkNotNull(assessmentRunArns, 'assessmentRunArns');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'InspectorService.DescribeAssessmentRuns'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'assessmentRunArns': assessmentRunArns,
},
);
return DescribeAssessmentRunsResponse.fromJson(jsonResponse.body);
}