Summary: Lambda receives the HTTP headers from the Application Load Balancer, and this parses the X-Forwarded-For header and returns the IP of the client. Access demo.
See the Lambda demos.
Read the Blog Post from the launch of Lambda as a target for Application Load Balancer.
See how Lambda as target work with Application Load Balancer