package Ġd zi em ich Ċ Ċ import Ġcom . amazonaws . services . lambda . runtime . Context Ċ import Ġcom . amazonaws . services . lambda . runtime . RequestHandler Ċ import Ġcom . amazonaws . services . lambda . runtime . events . API Gateway Proxy Request Event Ċ import Ġcom . amazonaws . services . lambda . runtime . events . API Gateway Proxy Response Event Ċ import Ġorg . apache . logging . log 4 j . Log Manager Ċ import Ġorg . json . JSONObject Ċ Ċ class ĠHandler Ġ: ĠRequest Handler < API Gateway Proxy Request Event , ĠAPI Gateway Proxy Response Event > Ġ{ ĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLog Manager . getLogger ( Handler :: class . java ) ĊĠ Ġ} ĊĠ Ġoverride Ġfun Ġhandle Request ( ĊĠĠĠ Ġinput : ĠAPI Gateway Proxy Request Event ?, ĊĠĠĠ Ġcontext : ĠContext ? ĊĠ Ġ): ĠAPI Gateway Proxy Response Event Ġ{ ĊĊĠĠĠ Ġlogger . info (" logger Ġsays Ġhello ") ĊĊĠĠĠ Ġreturn ĠAPI Gateway Proxy Response Event (). apply Ġ{ ĊĠĠĠĠĠ ĠstatusCode Ġ= Ġ 2 0 0 ĊĠĠĠĠĠ Ġbody Ġ= ĠJSONObject (). put (" message ", Ġ" Hello "). toString () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ