1. A non-transitory computer-readable medium comprising program code executable by a processing device for causing the processing device to: receive configuration data indicating (i) how lower-level resources in an environment are aggregatable into intermediate-level resources in an environment, and (ii) how the intermediate-level resources are aggregatable into higher-level resources in the environment; identify availability data indicating (i) a total number of lower-level resources that are available in the environment, (ii) a total number of intermediate-level resources that are creatable using the total number of lower-level resources, and (iii) a total number of higher-level resources that are creatable using the total number of lower-level resources; determine maximum-capacity data using the availability data and the configuration data, the maximum-capacity data indicating (i) a maximum amount of higher-level resources that are creatable using the total number of lower-level resources, (ii) a maximum amount of intermediate-level resources that are creatable using a remainder of the total number of lower-level resources that are not consumed by the maximum amount of higher-level resources, and (iii) a residual of the total number of lower-level resources that are not consumed by both the maximum amount of higher-level resources and the maximum amount of intermediate-level resources; receive distribution data indicating (i) a probability distribution for jobs to be implemented using the lower-level resources and corresponding valuations for the jobs; (ii) a probability distribution for jobs to be implemented using the intermediate-level resources and corresponding valuations for the jobs, and (iii) a probability distribution for jobs to be implemented using the higher-level resources and corresponding valuations for the jobs; determine capacity valuations using the distribution data and the availability data, the capacity valuations indicating (i) respective valuations for lower-level resources when there are different amounts of lower-level resources available, (ii) respective valuations for intermediate-level resources when there are different amounts of intermediate-level resources available, and (iii) respective valuations for upper-level resources when there are different amounts of upper-level resources available; determine a configuration of the lower level, intermediate level, and the higher-level resources in the environment using (i) the capacity valuations, and (ii) the maximum-capacity data, wherein the configuration results in a highest aggregate valuation among possible aggregate valuations; receive a job subsequent to determining the configuration of the lower level, intermediate level, and the higher-level resources in the environment; determine that the job has a particular valuation; determine that the particular valuation for the job exceeds a predefined threshold associated with using the configuration of lower level, intermediate level, and higher-level resources by comparing the particular valuation to the predefined threshold; in response to the determining that the particular valuation exceeds the predefined threshold, assign the lower-level, intermediate-level, and higher-level resources to the job in the configuration; and cause the job to be performed using the configuration of lower level, intermediate level, and higher-level resources assigned to the job.