listPlaybackKeyPairs method
Gets summary information about playback key pairs. For more information, see Setting Up Private Channels in the Amazon IVS User Guide.
May throw AccessDeniedException.
May throw ValidationException.
Parameter maxResults :
Maximum number of key pairs to return. Default: your service quota or 100,
whichever is smaller.
Parameter nextToken :
The first key pair to retrieve. This is used for pagination; see the
nextToken response field.
Implementation
Future<ListPlaybackKeyPairsResponse> listPlaybackKeyPairs({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $payload = <String, dynamic>{
if (maxResults != null) 'maxResults': maxResults,
if (nextToken != null) 'nextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/ListPlaybackKeyPairs',
exceptionFnMap: _exceptionFns,
);
return ListPlaybackKeyPairsResponse.fromJson(response);
}