Any way to update CodeDeploy when new ASG is created?

Is there any way to update a CodeDeploy Deployment Group when an ASG is recreated? Same with Target Group. The AutoScaleGroup needs to be a dynamic name, correct? If these are dynamic names, then my deployments stop working when the ASG name and Target Group names change. I want to use autoscale in the CodeDeploy so new scale-out instance will get deployments automatically. I do not want to have to manually log into the console and fix deployment group configurations.

There doesn’t seem to be a data source (only resource) for codedeploy (application, deployment group, etc).