當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Aws::get方法代碼示例

本文整理匯總了PHP中Aws\Common\Aws::get方法的典型用法代碼示例。如果您正苦於以下問題:PHP Aws::get方法的具體用法?PHP Aws::get怎麽用?PHP Aws::get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Aws\Common\Aws的用法示例。


在下文中一共展示了Aws::get方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($accessKeyId, $secretAccessKey, $bucket, $region, $host)
 {
     $this->bucket = $bucket;
     $this->host = $host;
     $this->accesKeyId = $accessKeyId;
     $this->aws = Aws::factory(array('key' => $accessKeyId, 'secret' => $secretAccessKey, 'region' => $region));
     $this->s3 = $this->aws->get('s3');
 }
開發者ID:tomaj,項目名稱:nette-images,代碼行數:8,代碼來源:S3Backend.php

示例2: getSnsClient

 function getSnsClient()
 {
     if ($this->snsClient) {
         return $this->snsClient;
     }
     $this->snsClient = $this->aws->get('sns');
     $this->snsClient->setRegion($this->topicRegion);
     return $this->snsClient;
 }
開發者ID:24hoursmedia,項目名稱:tesla-esync,代碼行數:9,代碼來源:SnsNotificationService.php

示例3: getPublicDNSFromEBEnvironmentName

 public function getPublicDNSFromEBEnvironmentName($envName)
 {
     $ec2Client = $this->providedAws->get('ec2');
     $result = $ec2Client->describeInstances(array('Filters' => array(array('Name' => 'tag-key', 'Values' => array('elasticbeanstalk:environment-name')), array('Name' => 'tag-value', 'Values' => array($envName)))));
     $dnsArray = array();
     //ugh, no dot notation checks
     $reservations = $result->get('Reservations', array());
     if (count($reservations) > 0) {
         foreach ($reservations as $reservation) {
             if (isset($reservation['Instances']) && count($reservation['Instances']) > 0) {
                 $instance = $reservation['Instances'][0];
                 $dnsArray[] = $instance['PublicDnsName'];
             }
         }
     }
     return $dnsArray;
 }
開發者ID:atyagi,項目名稱:laravel-aws-ssh,代碼行數:17,代碼來源:AWS.php

示例4: getAws

 /**
  * Get aws object or aws service
  *
  * @return mixed
  */
 protected function getAws($service = null)
 {
     if (is_null($this->aws)) {
         $this->aws = Aws::factory($this->getAwsCredentials());
     }
     if (!is_null($service)) {
         return $this->aws->get($service);
     }
     return $this->aws;
 }
開發者ID:pulkitjalan,項目名稱:git-s3,代碼行數:15,代碼來源:AbstractCommand.php

示例5: getDynamoDbClient

 /**
  * @param Aws $aws
  * @return DynamoDbClient
  */
 private function getDynamoDbClient(Aws $aws)
 {
     return $aws->get('dynamodb');
 }
開發者ID:datibbaw,項目名稱:silex-dynamodb-session-provider,代碼行數:8,代碼來源:DynamoDbSessionServiceProvider.php

示例6: getClient

 /**
  * Returns the instance of the client that the facade operates on
  *
  * @return \Aws\Common\Client\AwsClientInterface
  */
 public static function getClient()
 {
     return self::$serviceBuilder->get(static::getServiceBuilderKey());
 }
開發者ID:Trideon,項目名稱:gigolo,代碼行數:9,代碼來源:Facade.php

示例7: __construct

 public function __construct(Aws $aws, LoggerInterface $logger)
 {
     parent::__construct();
     $this->client = $aws->get('ElasticBeanstalk');
     $this->logger = $logger;
 }
開發者ID:sanyaade-mobiledev,項目名稱:ebs-tools,代碼行數:6,代碼來源:EbsCommand.php

示例8: getSqs

 /**
  * @return SqsClient
  */
 function getSqs()
 {
     return $this->aws->get('sqs');
 }
開發者ID:24hoursmedia,項目名稱:tesla-esync,代碼行數:7,代碼來源:SqsNotificationReceiver.php

示例9: get

 /**
  * 
  *
  * @static 
  */
 public static function get($name, $throwAway = false)
 {
     //Method inherited from \Guzzle\Service\Builder\ServiceBuilder
     return \Aws\Common\Aws::get($name, $throwAway);
 }
開發者ID:felipemarques8,項目名稱:goentregas,代碼行數:10,代碼來源:_ide_helper.php

示例10: getSwfClient

 /**
  * @return SwfClient
  */
 public function getSwfClient()
 {
     /** @var $client SwfClient */
     $client = $this->awsBaseServiceFactory->get(self::AWS_SERVICE_SWF);
     return $client;
 }
開發者ID:breathbath,項目名稱:amazon-workflow-discovering-test,代碼行數:9,代碼來源:AwsSwfClientProvider.php


注:本文中的Aws\Common\Aws::get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。