def METHOD_NAME(self) -> str:
    params = self._get_params()
    host_ids = list(self._get_params().get("HostId", {}).values())
    auto_placement = params.get("AutoPlacement")
    host_recovery = params.get("HostRecovery")
    instance_type = params.get("InstanceType")
    instance_family = params.get("InstanceFamily")
    self.ec2_backend.METHOD_NAME(
        host_ids, auto_placement, host_recovery, instance_type, instance_family
    )
    template = self.response_template(EC2_MODIFY_HOSTS)
    return template.render(host_ids=host_ids)