def _protect_from_scale_in()

in github-runner-ami/packer/files/runner-supervisor.py [0:0]


    def _protect_from_scale_in(self, asg_client, protect):
        asg_client.set_instance_protection(
            AutoScalingGroupName=OWN_ASG,
            InstanceIds=[INSTANCE_ID],
            ProtectedFromScaleIn=protect,
        )