listRules method
Lists the rules for the specified listener.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter listenerIdentifier :
The ID or ARN of the listener.
Parameter serviceIdentifier :
The ID or ARN of the service.
Parameter maxResults :
The maximum number of results to return.
Parameter nextToken :
A pagination token for the next page of results.
Implementation
Future<ListRulesResponse> listRules({
required String listenerIdentifier,
required String serviceIdentifier,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/services/${Uri.encodeComponent(serviceIdentifier)}/listeners/${Uri.encodeComponent(listenerIdentifier)}/rules',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListRulesResponse.fromJson(response);
}