listSubscriptions method
Returns a summary of all flat-rate pricing subscriptions in the calling account.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter nextToken :
A token from a previous ListSubscriptions response. If the
response included a nextToken, there are more results
available. Pass this value to retrieve the next page of results.
Implementation
Future<ListSubscriptionsOutput> listSubscriptions({
String? nextToken,
}) async {
final $payload = <String, dynamic>{
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/ListSubscriptions',
exceptionFnMap: _exceptionFns,
);
return ListSubscriptionsOutput.fromJson(response);
}