### Is there an existing issue for this?

- [X] I have searched the existing issues

### Feature description

AWS has a feature which allows you to [filter incoming lambda invocations using rules](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). Without this feature I need to filter inside the lambda code itself which will incur more compute and cost in AWS. In the spirit of having as few diffs between localstack and AWS this is highly desireable for my pipeline.

(And fwiw, my pipeline is DynamoDB -> DynamoDB Stream -> Lambda (Python) -> Opensearch)

The current behavior is that create/update-event-source-mapping does parse (and validate) this option, but it isn't honored against incoming events at runtime.

### 🧑‍💻 Implementation

Implement with the same logic as AWS with support for all the operators in the linked article above.

### Anything else?

_No response_
assert len(event["event"]["Records"]) == num_records_per_batch
                actual_record_ids = []
                for record in event["event"]["Records"]:
                    assert "eventID" in record
                    assert "eventSourceARN" in record
                    assert "eventSource" in record
                    assert "eventVersion" in record
                    assert "eventName" in record
                    assert "invokeIdentityArn" in record
                    assert "awsRegion" in record
                    assert "kinesis" in record
                    record_data = base64.b64decode(record["kinesis"]["data"]).decode("utf-8")
                    actual_record_id = json.loads(record_data)["record_id"]
                    actual_record_ids.append(actual_record_id)
                actual_record_ids.sort()
                assert actual_record_ids == [i for i in range(num_records_per_batch)]
            assert (
                invocation_events[1]["executionStart"] - invocation_events[0]["executionStart"]
            ) > 5
        finally:
            lambda_client.delete_event_source_mapping(UUID=uuid)
    def test_kinesis_event_source_trim_horizon(
        self,
        lambda_client,
        kinesis_client,
        create_lambda_function,
        kinesis_create_stream,
        wait_for_stream_ready,
        logs_client,
        lambda_su_role,