요청
{
"requestContext": {
"elb": {
"targetGroupArn": "arn:aws:elasticloadbalancing:ap-northeast-2:323974325951:targetgroup/allowlist-tg/f672ce4b350d9f6c"
}
},
"httpMethod": "GET",
"path": "/allowlist",
"queryStringParameters": {"ip": "1.1.1.1"},
"headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"accept-encoding": "gzip, deflate",
"accept-language": "ko,en-US;q=0.9,en;q=0.8,ko-KR;q=0.7",
"connection": "keep-alive",
"host": "app-lb-1917271526.ap-northeast-2.elb.amazonaws.com",
"upgrade-insecure-requests": "1",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
"x-amzn-trace-id": "Root=1-6507d533-6a48d35c3d405654100edfa7",
"x-forwarded-for": "210.218.52.13",
"x-forwarded-port": "80",
"x-forwarded-proto": "http",
},
"body": "",
"isBase64Encoded": False,
}
응답
return {
"statusCode": 200,
"isBase64Encoded": False,
"headers": {
"Content-Type": "application/json",
},
"body": json.dumps({"message": "OK"})
}