setConfig($config) ->setConfigDefaults(array( Options::VERSION => self::LATEST_API_VERSION, Options::SERVICE_DESCRIPTION => __DIR__ . '/Resources/datapipeline-%s.php' )) ->setExceptionParser(new JsonQueryExceptionParser()) ->setIteratorsConfig(array( 'limit_key' => 'limit', 'more_key' => 'hasMoreResults', 'token_param' => 'marker', 'token_key' => 'marker', 'operations' => array( 'ListPipelines' => array( 'result_key' => 'pipelineIdList', ), 'DescribeObjects' => array( 'result_key' => 'pipelineObjects', ), 'QueryObjects' => array( 'result_key' => 'ids', ), ) )) ->build(); return $client; } }