PHP Classes

File: application/modules/extensions/aws/Aws/CloudSearchDomain/CloudSearchDomainClient.php

Recommend this page to a friend!
  Classes of Tran Tuan   Pretty PHP S3 Files Manager   application/modules/extensions/aws/Aws/CloudSearchDomain/CloudSearchDomainClient.php   Download  
File: application/modules/extensions/aws/Aws/CloudSearchDomain/CloudSearchDomainClient.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 7 years ago
Size: 1,050 bytes
 

Contents

Class file image Download
<?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;
    }
}