listStreamKeys method

Future<ListStreamKeysResponse> listStreamKeys({
  1. required String channelArn,
  2. int? maxResults,
  3. String? nextToken,
})

Gets summary information about stream keys for the specified channel.

May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter channelArn : Channel ARN used to filter the list.

Parameter maxResults : Maximum number of streamKeys to return. Default: 1.

Parameter nextToken : The first stream key to retrieve. This is used for pagination; see the nextToken response field.

Implementation

Future<ListStreamKeysResponse> listStreamKeys({
  required String channelArn,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    50,
  );
  final $payload = <String, dynamic>{
    'channelArn': channelArn,
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListStreamKeys',
    exceptionFnMap: _exceptionFns,
  );
  return ListStreamKeysResponse.fromJson(response);
}