How to specify the maximum quantity that a certain combination of an item and a resource can produce at once

How to specify the maximum quantity that a certain combination of an item and a resource can produce at once