/usr/share/php/Aws/CloudSearchDomain/CloudSearchDomainClient.php is in php-aws-sdk 3.15.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | <?php
namespace Aws\CloudSearchDomain;
use Aws\AwsClient;
use GuzzleHttp\Psr7\Uri;
/**
* This client is used to search and upload documents to an **Amazon CloudSearch** Domain.
*
* @method \Aws\Result search(array $args = [])
* @method \GuzzleHttp\Promise\Promise searchAsync(array $args = [])
* @method \Aws\Result suggest(array $args = [])
* @method \GuzzleHttp\Promise\Promise suggestAsync(array $args = [])
* @method \Aws\Result uploadDocuments(array $args = [])
* @method \GuzzleHttp\Promise\Promise uploadDocumentsAsync(array $args = [])
*/
class CloudSearchDomainClient extends AwsClient
{
public static function getArguments()
{
$args = parent::getArguments();
$args['endpoint']['required'] = true;
$args['region']['default'] = function (array $args) {
// Determine the region from the provided endpoint.
// (e.g. http://search-blah.{region}.cloudsearch.amazonaws.com)
return explode('.', new Uri($args['endpoint']))[1];
};
return $args;
}
}
|