Finish set amazon-api function