getStreamKey method

Future<GetStreamKeyResponse> getStreamKey({
  1. required String arn,
})

Gets stream-key information for a specified ARN.

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

Parameter arn : ARN for the stream key to be retrieved.

Implementation

Future<GetStreamKeyResponse> getStreamKey({
  required String arn,
}) async {
  final $payload = <String, dynamic>{
    'arn': arn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/GetStreamKey',
    exceptionFnMap: _exceptionFns,
  );
  return GetStreamKeyResponse.fromJson(response);
}