I developed the following code to write logs to cloudwtach :
import com.greenflex.sag.logs.CloudWatchUtils.checkErrorCode import software.amazon.awssdk.http.a