### Is there an existing issue for this?

- [X] I have searched the existing issues

### Feature description

Basically we want to only run the lambda when an insert is occurring in DynamoDB.
I tested using Dynobase deleting a record and the lambda still triggered.

```
resource "aws_lambda_event_source_mapping" "event-log" {
	event_source_arn  = aws_dynamodb_table.event-log.stream_arn
	function_name     = module.main.lambda-arn
	starting_position = "LATEST"
	enabled = true # change to false when truncating the table in localstack
	maximum_retry_attempts = 1 # limit retry on failure to 1 for now

	# https://dev.to/aws-builders/filtering-dynamodb-streams-before-lambda-p5p
	filter_criteria { # Doesn't seem to work on LocalStack for now
		filter {
			pattern = jsonencode({
				body = {
					eventName : ["INSERT"]
				}
			})
		}
	}
}
```


### 🧑‍💻 Implementation

_No response_

### Anything else?

 https://dev.to/aws-builders/filtering-dynamodb-streams-before-lambda-p5p
def handle_lambda_url_invocation(
    request: Request, api_id: str, region: str, **url_params: Dict[str, str]
) -> HttpResponse:
    response = HttpResponse(headers={"Content-type": "application/json"})
    try:
        lambda_url_config = get_lambda_url_config(api_id, region)
    except IndexError as e:
        LOG.warning(f"Lambda URL ({api_id}) not found: {e}")
        response.set_json({"Message": None})
        response.status = "404"
        return response
    event = event_for_lambda_url(
        api_id, request.full_path, request.data, dict(request.headers), request.method
    )
    try:
        result = process_lambda_url_invocation(lambda_url_config, event)
    except Exception as e:
        LOG.warning(f"Lambda URL ({api_id}) failed during execution: {e}")
        response.set_json({"Message": "lambda function failed during execution"})
        response.status = "403"
        return response
    response = lambda_result_to_response(result)
    return response
def lambda_result_to_response(result: str):
    response = HttpResponse()
    response.headers.update({"Content-Type": "application/json"})
    parsed_result = result if isinstance(result, dict) else json.loads(str(result or "{}"))
    parsed_result = json_safe(parsed_result)
    parsed_result = {} if parsed_result is None else parsed_result
    parsed_headers = parsed_result.get("headers", {})