listLoggingConfigurations method

Future<ListLoggingConfigurationsResponse> listLoggingConfigurations({
  1. int? maxResults,
  2. String? nextToken,
})

Gets summary information about all your logging configurations in the AWS region where the API request is processed.

May throw AccessDeniedException. May throw ValidationException.

Parameter maxResults : Maximum number of logging configurations to return. Default: 50.

Parameter nextToken : The first logging configurations to retrieve. This is used for pagination; see the nextToken response field.

Implementation

Future<ListLoggingConfigurationsResponse> listLoggingConfigurations({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    50,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListLoggingConfigurations',
    exceptionFnMap: _exceptionFns,
  );
  return ListLoggingConfigurationsResponse.fromJson(response);
}