Amazon to invest in Diamond as part of deal impacting 18 net