listSubscriptions method

Future<ListSubscriptionsResponse> listSubscriptions({
  1. String? nextToken,
})

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

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

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

Parameter nextToken : Token returned by the previous ListSubscriptions request.

Implementation

Future<ListSubscriptionsResponse> listSubscriptions({
  String? nextToken,
}) async {
  final $request = <String, dynamic>{};
  nextToken?.also((arg) => $request['NextToken'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'ListSubscriptions',
    version: '2010-03-31',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['ListSubscriptionsInput'],
    shapes: shapes,
    resultWrapper: 'ListSubscriptionsResult',
  );
  return ListSubscriptionsResponse.fromXml($result);
}