Listeners check for connection requests from clients and route the requests to the targets. Here’s an example of creating a listener using AWS CLI:
aws elbv2 create-listener --load-balancer-arn arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/my-load-balancer/loadbalancer-id --protocol HTTP --port 80 --default-actions Type=forward,TargetGroupArn=arn:aws:elasticloadbalancing:region:account-id:targetgroup/my-targets/targetgroup-id