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

# Class AwsResourceIteratorFactory

Resource iterator factory used to instantiate the default AWS resource iterator with the correct configuration or use a concrete iterator class if one exists

  Aws\Common\Iterator\AwsResourceIteratorFactory implements Guzzle\Service\Resource\ResourceIteratorFactoryInterface

Namespace: Aws\Common\Iterator
Located at Aws/Common/Iterator/AwsResourceIteratorFactory.php

## Methods summary

- `public` `__construct ( array $config, Guzzle\Service\Resource\ResourceIteratorFactoryInterface $primaryIteratorFactory = null )`
- `public` `build ( Guzzle\Service\Command\CommandInterface $command, array $options = array() )`

  Create a resource iterator

- `public` `canBuild ( Guzzle\Service\Command\CommandInterface $command )`

  Check if the factory can create an iterator

## Methods detail

# `public`
`__construct( array $config, `Guzzle\Service\Resource\ResourceIteratorFactoryInterface` $primaryIteratorFactory = null )`

#### Parameters

$config
  `array`
  $config An array of configuration values for the factory
$primaryIteratorFactory
  ``Guzzle\Service\Resource\ResourceIteratorFactoryInterface``
  $primaryIteratorFactory Another factory to use for chain of command

# `public ResourceIteratorInterface`
`build( `Guzzle\Service\Command\CommandInterface` $command, array $options = array() )`

Create a resource iterator

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command to create an iterator for
$options
  `array`
  $options Iterator options that are exposed as data.

#### Returns

`ResourceIteratorInterface`

#### Implementation of

`Guzzle\Service\Resource\ResourceIteratorFactoryInterface::build()`
# `public boolean`
`canBuild( `Guzzle\Service\Command\CommandInterface` $command )`

Check if the factory can create an iterator

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command to create an iterator for

#### Returns

`boolean`

#### Implementation of

`Guzzle\Service\Resource\ResourceIteratorFactoryInterface::canBuild()`

### Magic methods summary

## Properties summary

`protected static array` | $defaultIteratorConfig | # Default configuration values for iterators
`protected array` | $config | # Iterator configuration for each iterable operation
`protected `Guzzle\Service\Resource\ResourceIteratorFactoryInterface`` | $primaryIteratorFactory | # Another factory that will be used first to instantiate the iterator