listResolverDnssecConfigs method

Future<ListResolverDnssecConfigsResponse> listResolverDnssecConfigs({
  1. List<Filter>? filters,
  2. int? maxResults,
  3. String? nextToken,
})

Lists the configurations for DNSSEC validation that are associated with the current AWS account.

May throw InvalidNextTokenException. May throw InvalidParameterException. May throw InvalidRequestException. May throw InternalServiceErrorException. May throw ThrottlingException. May throw AccessDeniedException.

Parameter filters : An optional specification to return a subset of objects.

Parameter maxResults : Optional: An integer that specifies the maximum number of DNSSEC configuration results that you want Amazon Route 53 to return. If you don't specify a value for MaxResults, Route 53 returns up to 100 configuration per page.

Parameter nextToken : (Optional) If the current AWS account has more than MaxResults DNSSEC configurations, use NextToken to get the second and subsequent pages of results.

For the first ListResolverDnssecConfigs request, omit this value.

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

Implementation

Future<ListResolverDnssecConfigsResponse> listResolverDnssecConfigs({
  List<Filter>? filters,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Resolver.ListResolverDnssecConfigs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (filters != null) 'Filters': filters,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return ListResolverDnssecConfigsResponse.fromJson(jsonResponse.body);
}