listTopics method

Future<ListTopicsResponse> listTopics({
  1. String? nextToken,
})

Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a NextToken is also returned. Use the NextToken parameter in a new ListTopics call to get further results.

This action is throttled at 30 transactions per second (TPS).

May throw AuthorizationErrorException. May throw InternalErrorException. May throw InvalidParameterException.

Parameter nextToken : Token returned by the previous ListTopics request.

Implementation

Future<ListTopicsResponse> listTopics({
  String? nextToken,
}) async {
  final $request = <String, String>{
    if (nextToken != null) 'NextToken': nextToken,
  };
  final $result = await _protocol.send(
    $request,
    action: 'ListTopics',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'ListTopicsResult',
  );
  return ListTopicsResponse.fromXml($result);
}