listLogPatterns method
Lists the log patterns in the specific log LogPatternSet.
May throw ResourceNotFoundException. May throw ValidationException. May throw InternalServerException.
Parameter resourceGroupName :
The name of the resource group.
Parameter maxResults :
The maximum number of results to return in a single call. To retrieve the
remaining results, make another call with the returned
NextToken value.
Parameter nextToken :
The token to request the next page of results.
Parameter patternSetName :
The name of the log pattern set.
Implementation
Future<ListLogPatternsResponse> listLogPatterns({
  required String resourceGroupName,
  int? maxResults,
  String? nextToken,
  String? patternSetName,
}) async {
  ArgumentError.checkNotNull(resourceGroupName, 'resourceGroupName');
  _s.validateStringLength(
    'resourceGroupName',
    resourceGroupName,
    1,
    256,
    isRequired: true,
  );
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    40,
  );
  _s.validateStringLength(
    'nextToken',
    nextToken,
    1,
    1024,
  );
  _s.validateStringLength(
    'patternSetName',
    patternSetName,
    1,
    30,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'EC2WindowsBarleyService.ListLogPatterns'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceGroupName': resourceGroupName,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
      if (patternSetName != null) 'PatternSetName': patternSetName,
    },
  );
  return ListLogPatternsResponse.fromJson(jsonResponse.body);
}