Updated for the new aws sdk