When we talk about the temperature, luminosity, and chemical composition of the sun, we are talking about the solar photosphere, which is the outer layer of the Sun. It is the layer we can see with our eyes.
Inner layers
Below the photosphere are layers described as the Convection Zone, the Radiative Zone, and the Core. These are characterized by their different modes of heat transfer. The core is where fusion processes take place, converting hydrogen to helium and heavier elements. Heat generated by that process is radiated outward through the Radiative Zone to the Convection Zone where heat transfer takes place mainly by convection.
Photosphere
When the energy produced by the fusion processes finally reaches the surface, it is emitted in the form of light and heat (electromagnetic radiation) as well as energetic matter, the "solar wind".
The photosphere is characterized by its temperature (approximately 5,700K), luminosity (approximately 4x10^26 W), and chemical composition (mostly Hydrogen and Helium).