title: Can we write an AWS Lambda function to query Kinesis Streams
body: <p>I have Amazon Kinesis Streams, which has all the click stream data and we want to write an API to query Kinesis Streams.</p>
  
  <p>My plan is to create a API gateway which calls an AWS Lambda function that  would query Kinesis Streams and return it back.</p>
  
  <p>Is it possible to use Lambda to query Kinesis Streams or should we use Kinesis Analytics and Lambda?</p>