listNotificationRules method Null safety

Future<ListNotificationRulesResult> listNotificationRules(
  1. {List<ListNotificationRulesFilter>? filters,
  2. int? maxResults,
  3. String? nextToken}

Returns a list of the notification rules for an AWS account.

May throw InvalidNextTokenException. May throw ValidationException.

Parameter filters : The filters to use to return information by service or resource type. For valid values, see ListNotificationRulesFilter.

Parameter maxResults : A non-negative integer used to limit the number of returned results. The maximum number of results that can be returned is 100.

Parameter nextToken : An enumeration token that, when provided in a request, returns the next batch of the results.


Future<ListNotificationRulesResult> listNotificationRules({
  List<ListNotificationRulesFilter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  final $payload = <String, dynamic>{
    if (filters != null) 'Filters': filters,
    if (maxResults != null) 'MaxResults': maxResults,
    if (nextToken != null) 'NextToken': nextToken,
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/listNotificationRules',
    exceptionFnMap: _exceptionFns,
  return ListNotificationRulesResult.fromJson(response);