CmdID / aws / aws autoscaling
aws autoscaling set-instance-protection
Updates the instance protection settings of the specified instances. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--auto-scaling-group-nameThe name of the Auto Scaling group.--instance-idsOne or more instance IDs.--protected-from-scale-inIndicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.