Handle AWS response