def METHOD_NAME(self) -> StatusResponse:
    """
    Set up the connection required by the handler.
    Returns:
        HandlerStatusResponse
    """
    if self.is_connected is True:
        return self.connection
    self.connection = Elasticsearch(
        hosts=self.connection_data['hosts'].split(','),
        cloud_id=self.connection_data['cloud_id'],
        basic_auth=(self.connection_data['username'], self.connection_data['password'])
    )
    self.is_connected = True
    return self.connection