On our motorhome there is a seam that can be repaired with synthetic thread they sell at Walmart.
If the seam is good but the plastic rod has broken, it will need to be replaced. This also may require releasing the tension on the spring and resetting it after the awning fabric is put back into place.