'Retrieve all the instance reservations associated with your account.
.. note::
This method\'s current behavior is deprecated in favor of
:meth:`get_all_reservations`.  A future major release will change
:meth:`get_all_instances` to return a list of
:class:`boto.ec2.instance.Instance` objects as its name suggests.
To obtain that behavior today, use :meth:`get_only_instances`.
:type instance_ids: list
:param instance_ids: A list of strings of instance IDs
:type filters: dict
:param filters: Optional filters that can be used to limit the
results returned.  Filters are provided in the form of a
dictionary consisting of filter names as the key and
filter values as the value.  The set of allowable filter
names/values is dependent on the request being performed.
Check the EC2 API guide for details.
:type dry_run: bool
:param dry_run: Set to True if the operation should not actually run.
:type max_results: int
:param max_results: The maximum number of paginated instance
items per response.
:rtype: list
:return: A list of  :class:`boto.ec2.instance.Reservation`'

def get_all_instances(self, instance_ids=None, filters=None, dry_run=False, max_results=None):

    warnings.warn('The    current    get_all_instances    implementation    will    be    replaced    with    get_all_reservations.', PendingDeprecationWarning)
    return self.get_all_reservations(instance_ids=instance_ids, filters=filters, dry_run=dry_run, max_results=max_results)
