Deploy Lambda Function With If Conditional In Java