Control which events Lambda sends to your function - AWS Lambda
Use event filtering with a Lambda event source mapping to filter out stream and queue events to your Lambda function based on certain filter criteria.