@classmethod<EOL><INDENT>def from_boto_instance(cls, instance):<DEDENT>
return cls(<EOL>name=instance.tags.get('<STR_LIT:Name>'),<EOL>private_ip=instance.private_ip_address,<EOL>public_ip=instance.ip_address,<EOL>instance_type=instance.instance_type,<EOL>instance_id=instance.id,<EOL>hostname=instance.dns_name,<EOL>stack_id=instance.tags.get('<STR_LIT>'),<EOL>stack_name=instance.tags.get('<STR_LIT>'),<EOL>logical_id=instance.tags.get('<STR_LIT>'),<EOL>security_groups=[g.name for g in instance.groups],<EOL>launch_time=instance.launch_time,<EOL>ami_id=instance.image_id,<EOL>tags={k.lower(): v for k, v in six.iteritems(instance.tags)}<EOL>)<EOL>
Loads a ``HostEntry`` from a boto instance.

:param instance: A boto instance object.
:type instance: :py:class:`boto.ec2.instanceInstance`

:rtype: :py:class:`HostEntry`