The crucial factor is how much rain they are exposed to.
For example, if it only gets rain-soaked once a year, then ordinary untreated spruce is sufficient. If it gets rain-soaked almost every time it rains, then it's heartwood, heart pine/pitch pine/slow-grown or pressure-treated wood that is needed.
What was installed there that is now bad, and how long has it been there? If it's painted with the wrong paint, it obviously speeds up the decay.