S&P 500 and the current market

I’ve been invested 100% in the S&P for the last 5 years but today I adjusted all my 401k’s and IRA’s to target date funds.

It’s still aggressive but has a bit more protection if there is a recession on the horizon. I figured if things don’t go south in about a year, I might adjust them back.

I still have my individual etf/index funds that are S&P and future purchases will still be S&P.

What are the community thoughts on this strategy?