当前位置: 首页>>代码示例>>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;未经允许,请勿转载。