listRegisteredSubscriptionProviders method
List Bring Your Own License (BYOL) subscription registration resources for your account.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum items to return in a request.
Parameter nextToken :
A token to specify where to start paginating. This is the nextToken from a
previously truncated response.
Parameter subscriptionProviderSources :
To filter your results, specify which subscription providers to return in
the list.
Implementation
Future<ListRegisteredSubscriptionProvidersResponse>
listRegisteredSubscriptionProviders({
int? maxResults,
String? nextToken,
List<SubscriptionProviderSource>? subscriptionProviderSources,
}) async {
final $payload = <String, dynamic>{
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (subscriptionProviderSources != null)
'SubscriptionProviderSources':
subscriptionProviderSources.map((e) => e.value).toList(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/subscription/ListRegisteredSubscriptionProviders',
exceptionFnMap: _exceptionFns,
);
return ListRegisteredSubscriptionProvidersResponse.fromJson(response);
}