setConfig($config) ->setConfigDefaults(array( Options::VERSION => self::LATEST_API_VERSION, Options::SERVICE_DESCRIPTION => __DIR__ . '/Resources/cloudsearchdomain-%s.php' )) ->build(); } /** * @internal * @throws BadMethodCallException Do not call this method. */ public function setRegion($region) { throw new BadMethodCallException('You cannot change the region of a CloudSearchDomain client.'); } }