Is there a way to reject a request in the Integration Request for certain IPs?
Currently I have this code, which works, but the request still passes through to my Lambda function and I still return the regular result body. I'm trying to stop the request altogether before hitting the Lambda fn.
#if($context.identity.sourceIp != "123.45.55.43")
{
"errorMessage" : "Error, not authorized"
}
#end