NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class DescribeInstancesIterator

Iterator for an EC2 DescribeInstances command.

This iterator inverts the typical structure of the DescribeIterators operation, such that the yielded items are the actual instances, and the reservation is exposed as a property of the instance via the "Reservation" key.

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Service\Resource\ResourceIterator implements Guzzle\Service\Resource\ResourceIteratorInterface
  Aws\Common\Iterator\AwsResourceIterator
  Aws\Ec2\Iterator\DescribeInstancesIterator

Namespace: Aws\Ec2\Iterator
Located at Aws/Ec2/Iterator/DescribeInstancesIterator.php

## Methods summary

- `protected` `handleResults ( Guzzle\Service\Resource\Model $result )`

## Methods detail

# `protected`
`handleResults( `Guzzle\Service\Resource\Model` $result )`

#### Overrides

`Aws\Common\Iterator\AwsResourceIterator::handleResults`

### Methods inherited from Aws\Common\Iterator\AwsResourceIterator

`applyNextToken()`, `determineNextToken()`, `getLastResult()`, `getValueFromResult()`, `prepareRequest()`, `sendRequest()`

### Methods inherited from Guzzle\Service\Resource\ResourceIterator

`__construct()`, `calculatePageSize()`, `count()`, `current()`, `get()`, `getAllEvents()`, `getNextToken()`, `getRequestCount()`, `key()`, `next()`, `resetState()`, `rewind()`, `set()`, `setLimit()`, `setPageSize()`, `toArray()`, `valid()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Properties summary

### Properties inherited from Aws\Common\Iterator\AwsResourceIterator

`$lastResult`

### Properties inherited from Guzzle\Service\Resource\ResourceIterator

`$command`, `$data`, `$invalid`, `$iteratedCount`, `$limit`, `$nextToken`, `$originalCommand`, `$pageSize`, `$requestCount`, `$resources`, `$retrievedCount`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`