It seems to depend mostly on temperature and moisture: dry, cold, and unchanging are best. We have good DNA from Deniovans because it was recovered from bones and teeth that sat buried in a cave in Siberia for 50k years.
Being in amber might protect from moisture, but I think the temperature and temperature swings would still likely destroy it within thousands of years.