Higgs boson production via gluon-gluon fusion and vector-boson fusion in proton-proton collisions is measured in the decay channel. The Large Hadron Collider delivered proton-proton collisions at a center-of-mass energy of 13 TeV between 2015 and 2018 which were recorded by the ATLAS detector, corresponding to an integrated luminosity of 139 fb. The total cross sections for Higgs boson production by gluon-gluon fusion and vector-boson fusion times the branching ratio are measured to be pb and 0.75\;^{+0.19}_{-0.16} pb respectively, in agreement with the Standard Model predictions of pb and pb. Higgs boson production is further characterized through measurements of Simplified Template Cross Sections in a total of 11 kinematical fiducial regions.