list_resolver_rules
async
¶
list_resolver_rules(
*,
config_overrides: Optional[AsyncRoute53ResolverClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
filters: Optional[Filters] = None,
) -> ListResolverRulesResponse
Lists the Resolver rules that were created using the current Amazon Web Services account.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The maximum number of Resolver rules that you want to return in the response to a
ListResolverRulesrequest. If you don't specify a value forMaxResults, Resolver returns up to 100 Resolver rules. -
next_token(Optional[NextToken], default:None) –For the first
ListResolverRulesrequest, omit this value.If you have more than
MaxResultsResolver rules, you can submit anotherListResolverRulesrequest to get the next group of Resolver rules. In the next request, specify the value ofNextTokenfrom the previous response. -
filters(Optional[Filters], default:None) –An optional specification to return a subset of Resolver rules, such as all Resolver rules that are associated with the same Resolver endpoint.
If you submit a second or subsequent
ListResolverRulesrequest and specify theNextTokenparameter, you must use the same values forFilters, if any, as in the previous request.
Raises:
-
InternalServiceErrorException–We encountered an unknown error. Try again in a few minutes.
-
InvalidNextTokenException–The value that you specified for
NextTokenin aListrequest isn't valid. -
InvalidParameterException–One or more parameters in this request are not valid.
-
InvalidRequestException–The request is invalid.
-
ThrottlingException–The request was throttled. Try again in a few minutes.
-
UnknownServiceError–The service returned an error code this client does not model.