Measurement of Higgs boson properties using the diphoton decay channel at the Compact Muon Solenoid experiment