About 14,000 tonnes of sand and shingle will be used as natural flood defences along a stretch of coastline to protect homes.