An Amazon executive has criticized Bernie Sanders for his involvement in an important union election.