I use this sdk import com.amazonaws.services.eventbridge.model.PutEventsRequest; to publish event to AWS EventBridge. I deployed this application on ECS.
import com.amazonaws.services.eventbridge.model.PutEventsRequest;