This is not a larva but a pupa, or chrysalis, and if still alive a moth will emerge. It looks large and robust enough to be one of the Hawkmoths, Lime Hawkmoth or Poplar Hawkmoth would be good contenders.