PHP 클래스 Scalr\Service\Aws

부터: 18.09.2012
저자: Vitaliy Demidov ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$queriesQuantity integer The quantity of the processed queries to the AWS API

보호된 프로퍼티들

프로퍼티 타입 설명
$container Scalr\DependencyInjection\Container

공개 메소드들

메소드 설명
__construct ( string $accessKeyId, string $secretAccessKey, string $region = null, string $certificate = null, string $privateKey = null ) Constructor
__get ( string $name ) : mixed | null Magic getter
describeRegions ( ) : Scalr\Service\Aws\Ec2\DataType\RegionInfoList DescribeRegions action
getAccessKeyId ( ) : string Gets Access Key Id
getAccountNumber ( ) : string Retrieves AWS Account Number
getAvailableRegions ( boolean $ignoreCache = false ) : array Gets available regions
getAvailableServiceInterfaces ( ) : array Gets implemented web service interfaces
getCertificate ( ) : string Get x.509 certificate
getCloudLocations ( ) : array Gets defined AWS cloud locations
getCloudLocationsZoneIds ( ) : array Gets defined AWS cloud locations hosted zone ids
getContainer ( ) : Container Gets container
getDebug ( ) : boolean Gets debug flag value
getEntityManager ( ) : Scalr\Service\Aws\EntityManager Gets an AWS Entity Manager
getEnvironment ( ) : Scalr_Environment Gets an Scalr Environment object which is associated with the AWS client instance
getEventObserver ( ) : Scalr\Service\Aws\Plugin\EventObserver Gets an AWS client event observer
getMd5Base64Digest ( string $string ) : string Calculates an MD5.Base64digest for the given string.
getMd5Base64DigestFile ( string $file ) : string Calculates an MD5.Base64digest for the given file.
getPresignedUrl ( string $service, string $action, string $destRegion, string $objectId ) Gets presigned url signed with aws4 version signing algorithm
getPrivateKey ( ) : string Get private key
getProxy ( ) : array | boolean Gets proxy configuration
getReflectionClass ( ) : ReflectionClass Gets reflection class of Aws
getRegion ( ) : string Gets region
getSecretAccessKey ( ) : string Gets Secret Access Key
getUserArn ( ) : string Retrieves AWS user arn
getUsername ( ) : string Retrieves AWS username
isValidRegion ( string $region ) : boolean Checks whether provided region is valid.
resetDebug ( ) : Aws Resets debug
setDebug ( boolean $debug = true ) : Aws Sets debug flag
setEnvironment ( Scalr_Environment $environment = null ) : Aws Sets an Scalr environment object which is associated with the AWS client instance
setEventObserver ( Scalr\Service\Aws\Plugin\EventObserver $eventObserver = null ) : Aws Sets an AWS client event observer object associated with this instance
setProxy ( string $host, integer $port = 3128, string $user = null, string $pass = null, integer $type, integer $authType = 1 ) Set proxy configuration to connect to AWS services
validateCertificateAndPrivateKey ( ) : boolean Validates certificate and privatekey making AWS SOAP request

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $accessKeyId, string $secretAccessKey, string $region = null, string $certificate = null, string $privateKey = null )
$accessKeyId string AWS access key id
$secretAccessKey string AWS secret access key
$region string optional An AWS region. (Aws::REGION_US_EAST_1)
$certificate string optional AWS x.509 certificate (It's used only for Soap API)
$privateKey string optional Private Key (It's used only for Soap API)

__get() 공개 메소드

Magic getter
public __get ( string $name ) : mixed | null
$name string
리턴 mixed | null

describeRegions() 공개 메소드

DescribeRegions action
public describeRegions ( ) : Scalr\Service\Aws\Ec2\DataType\RegionInfoList
리턴 Scalr\Service\Aws\Ec2\DataType\RegionInfoList Returns the list of the RegionInfoData objects on success

getAccessKeyId() 공개 메소드

Gets Access Key Id
public getAccessKeyId ( ) : string
리턴 string Returns Access Key Id

getAccountNumber() 공개 메소드

Retrieves AWS Account Number
public getAccountNumber ( ) : string
리턴 string Returns AWS Account number for current user

getAvailableRegions() 공개 메소드

Gets available regions
public getAvailableRegions ( boolean $ignoreCache = false ) : array
$ignoreCache boolean optional If true it will ignore cache
리턴 array Returns list of available regions

getAvailableServiceInterfaces() 공개 메소드

Gets implemented web service interfaces
public getAvailableServiceInterfaces ( ) : array
리턴 array Returns Returns the list of available (implemented) web service interfaces

getCertificate() 공개 메소드

Get x.509 certificate
public getCertificate ( ) : string
리턴 string Returns x.509 certificate

getCloudLocations() 공개 정적인 메소드

Gets defined AWS cloud locations
public static getCloudLocations ( ) : array
리턴 array

getCloudLocationsZoneIds() 공개 정적인 메소드

Gets defined AWS cloud locations hosted zone ids
public static getCloudLocationsZoneIds ( ) : array
리턴 array

getContainer() 공개 메소드

Gets container
public getContainer ( ) : Container
리턴 Scalr\DependencyInjection\Container

getDebug() 공개 메소드

Gets debug flag value
public getDebug ( ) : boolean
리턴 boolean Returns true if debug is enabled.

getEntityManager() 공개 메소드

This manager helps manipulate with retrieved from AWS objects. These object are stored in the cache.
public getEntityManager ( ) : Scalr\Service\Aws\EntityManager
리턴 Scalr\Service\Aws\EntityManager Returns an AWS Entity Manager object.

getEnvironment() 공개 메소드

Gets an Scalr Environment object which is associated with the AWS client instance
public getEnvironment ( ) : Scalr_Environment
리턴 Scalr_Environment Returns Scalr Environment object

getEventObserver() 공개 메소드

Gets an AWS client event observer
public getEventObserver ( ) : Scalr\Service\Aws\Plugin\EventObserver
리턴 Scalr\Service\Aws\Plugin\EventObserver Returns AWS client event observer

getMd5Base64Digest() 공개 정적인 메소드

Calculates an MD5.Base64digest for the given string.
public static getMd5Base64Digest ( string $string ) : string
$string string A string which should digest be calculated for.
리턴 string Returns MD5 Base64 digest

getMd5Base64DigestFile() 공개 정적인 메소드

Calculates an MD5.Base64digest for the given file.
public static getMd5Base64DigestFile ( string $file ) : string
$file string A file path which should digest be calculated for.
리턴 string Returns MD5 Base64 digest

getPresignedUrl() 공개 메소드

Gets presigned url signed with aws4 version signing algorithm
public getPresignedUrl ( string $service, string $action, string $destRegion, string $objectId )
$service string Service name (ec2, s3)
$action string Action name (CopySnapshot)
$destRegion string Destination region
$objectId string Id of the snapshot, image , etc

getPrivateKey() 공개 메소드

Get private key
public getPrivateKey ( ) : string
리턴 string Returns private key from certificate

getProxy() 공개 메소드

Gets proxy configuration
public getProxy ( ) : array | boolean
리턴 array | boolean

getReflectionClass() 공개 정적인 메소드

Gets reflection class of Aws
public static getReflectionClass ( ) : ReflectionClass
리턴 ReflectionClass Returns reflection class of Aws

getRegion() 공개 메소드

Gets region
public getRegion ( ) : string
리턴 string Returns region that has been provided for instance

getSecretAccessKey() 공개 메소드

Gets Secret Access Key
public getSecretAccessKey ( ) : string
리턴 string Returns Secret Access Key

getUserArn() 공개 메소드

Retrieves AWS user arn
public getUserArn ( ) : string
리턴 string Returns AWS user arn

getUsername() 공개 메소드

Retrieves AWS username
public getUsername ( ) : string
리턴 string Returns AWS username

isValidRegion() 공개 메소드

Checks whether provided region is valid.
public isValidRegion ( string $region ) : boolean
$region string AWS region (Aws::REGION_US_EAST_1)
리턴 boolean Returns boolean true if region is valid or false otherwise.

resetDebug() 공개 메소드

Resets debug
public resetDebug ( ) : Aws
리턴 Aws

setDebug() 공개 메소드

Sets debug flag
public setDebug ( boolean $debug = true ) : Aws
$debug boolean optional If true it will enable debug mode
리턴 Aws

setEnvironment() 공개 메소드

Sets an Scalr environment object which is associated with the AWS client instance
public setEnvironment ( Scalr_Environment $environment = null ) : Aws
$environment Scalr_Environment An environment object
리턴 Aws

setEventObserver() 공개 메소드

Sets an AWS client event observer object associated with this instance
public setEventObserver ( Scalr\Service\Aws\Plugin\EventObserver $eventObserver = null ) : Aws
$eventObserver Scalr\Service\Aws\Plugin\EventObserver The event observer
리턴 Aws

setProxy() 공개 메소드

Set proxy configuration to connect to AWS services
public setProxy ( string $host, integer $port = 3128, string $user = null, string $pass = null, integer $type, integer $authType = 1 )
$host string
$port integer
$user string
$pass string
$type integer Allowed values 4 - SOCKS4, 5 - SOCKS5, 0 - HTTP
$authType integer Allowed authtypes: 1 - Basic, Digest - 2, GSSNeg - 4, NTLM - 8, any - -1

validateCertificateAndPrivateKey() 공개 메소드

Validates certificate and privatekey making AWS SOAP request
public validateCertificateAndPrivateKey ( ) : boolean
리턴 boolean Returns true on success or throws an exception

프로퍼티 상세

$container 보호되어 있는 프로퍼티

protected Container,Scalr\DependencyInjection $container
리턴 Scalr\DependencyInjection\Container

$queriesQuantity 공개적으로 프로퍼티

The quantity of the processed queries to the AWS API
public int $queriesQuantity
리턴 integer