listCheckSummaries method
List of Trusted Advisor checks summarized for all accounts 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<ListCheckSummariesOutput> listCheckSummaries({
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)}/checkSummaries',
exceptionFnMap: _exceptionFns,
);
return ListCheckSummariesOutput.fromJson(response);
}