describeAssessmentTargets method

Future<DescribeAssessmentTargetsResponse> describeAssessmentTargets({
  1. required List<String> assessmentTargetArns,
})

Describes the assessment targets that are specified by the ARNs of the assessment targets.

May throw InternalException. May throw InvalidInputException.

Parameter assessmentTargetArns : The ARNs that specifies the assessment targets that you want to describe.

Implementation

Future<DescribeAssessmentTargetsResponse> describeAssessmentTargets({
  required List<String> assessmentTargetArns,
}) async {
  ArgumentError.checkNotNull(assessmentTargetArns, 'assessmentTargetArns');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'InspectorService.DescribeAssessmentTargets'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'assessmentTargetArns': assessmentTargetArns,
    },
  );

  return DescribeAssessmentTargetsResponse.fromJson(jsonResponse.body);
}