listBaselines method
Returns a summary list of all available baselines. For usage examples, see the Amazon Web Services Control Tower User Guide .
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results to be shown.
Parameter nextToken :
A pagination token.
Implementation
Future<ListBaselinesOutput> listBaselines({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
4,
100,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/list-baselines',
exceptionFnMap: _exceptionFns,
);
return ListBaselinesOutput.fromJson(response);
}