listCheckDetails method
List of Trusted Advisor check details by account related to the workload.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter lensArn :
Well-Architected Lens ARN.
Implementation
Future<ListCheckDetailsOutput> listCheckDetails({
required String choiceId,
required String lensArn,
required String pillarId,
required String questionId,
required String workloadId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
50,
);
final $payload = <String, dynamic>{
'ChoiceId': choiceId,
'LensArn': lensArn,
'PillarId': pillarId,
'QuestionId': questionId,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/workloads/${Uri.encodeComponent(workloadId)}/checks',
exceptionFnMap: _exceptionFns,
);
return ListCheckDetailsOutput.fromJson(response);
}