Migrating AWS CDK logRetention to logGroup Without Losing Your Logs

How to safely migrate the deprecated AWS CDK logRetention prop to logGroup by importing the existing log group, so you keep your logs and avoid a failed deploy.