How to install aluminum foam insulation to keep the heat out?



I want to install a 1 sided aluminum foam insulation to keep the heat out. do i install it aluminum side facing the sun or foam side facing the sun?