PHP Класс Scalr\Service\Aws\CloudFront\V20120701\CloudFrontApi

Implements CloudFront Low-Level API Actions.
С версии: 01.02.2013
Автор: Vitaliy Demidov ([email protected])
Наследование: extends Scalr\Service\Aws\AbstractApi
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cloudFront Scalr\Service\Aws\CloudFront

Открытые методы

Метод Описание
__construct ( Scalr\Service\Aws\CloudFront $cloudFront, Scalr\Service\Aws\Client\QueryClient\CloudFrontQueryClient $client ) Constructor
createDistribution ( Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string $config ) : DistributionData POST Distribution action
deleteDistribution ( string $distributionId, string $eTag ) : boolean DELETE Distribution Config action
describeDistributions ( Scalr\Service\Aws\CloudFront\DataType\MarkerType $marker = null ) : Scalr\Service\Aws\CloudFront\DataType\DistributionList GET Distribution List action
getDistribution ( string $distributionId ) : DistributionData GET Distribution action
getDistributionConfig ( string $distributionId ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData GET Distribution Config action
getEntityManager ( ) : Scalr\Service\Aws\EntityManager Gets an EntityManager
setDistributionConfig ( string $distributionId, Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string $config, string $eTag ) : DistributionData PUT Distribution Config action

Защищенные методы

Метод Описание
_loadCacheBehaviorData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorData Loads CacheBehaviorData from simple xml object
_loadCacheBehaviorList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorList Parses CacheBehaviorList
_loadCustomOriginConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CustomOriginConfigData Loads CustomOriginConfigData from simple xml object
_loadDistributionConfigAliasList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigAliasList Parses DistributionConfigAliasList
_loadDistributionConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData Loads DistributionConfigData from simple xml object
_loadDistributionConfigLoggingData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigLoggingData Loads DistributionConfigLoggingData from simple xml object
_loadDistributionConfigOriginList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigOriginList Parses DistributionConfigOriginList
_loadDistributionData ( SimpleXMLElement $v ) : DistributionData Loads DistributionData from simple xml object
_loadDistributionS3OriginConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionS3OriginConfigData Loads DistributionS3OriginConfigData from simple xml object
_loadForwardedValuesCookiesData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesCookiesData Loads ForwardedValuesCookiesData from simple xml object
_loadForwardedValuesData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesData Loads ForwardedValuesData from simple xml object
_loadKeyPairList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\KeyPairList Parses KeyPairList
_loadTrustedSignerList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\TrustedSignerList Parses TrustedSignerList
_loadWhitelistedCookieNamesList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\WhitelistedCookieNamesList Parses WhitelistedCookieNamesList

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Scalr\Service\Aws\CloudFront $cloudFront, Scalr\Service\Aws\Client\QueryClient\CloudFrontQueryClient $client )
$cloudFront Scalr\Service\Aws\CloudFront CloudFront instance
$client Scalr\Service\Aws\Client\QueryClient\CloudFrontQueryClient Client Interface

_loadCacheBehaviorData() защищенный Метод

Loads CacheBehaviorData from simple xml object
protected _loadCacheBehaviorData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorData Returns CacheBehaviorData

_loadCacheBehaviorList() защищенный Метод

Parses CacheBehaviorList
protected _loadCacheBehaviorList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\CacheBehaviorList Returns CacheBehaviorList object

_loadCustomOriginConfigData() защищенный Метод

Loads CustomOriginConfigData from simple xml object
protected _loadCustomOriginConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\CustomOriginConfigData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\CustomOriginConfigData Returns CustomOriginConfigData

_loadDistributionConfigAliasList() защищенный Метод

Parses DistributionConfigAliasList
protected _loadDistributionConfigAliasList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigAliasList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigAliasList Returns DistributionConfigAliasList object

_loadDistributionConfigData() защищенный Метод

Loads DistributionConfigData from simple xml object
protected _loadDistributionConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData Returns DistributionConfigData

_loadDistributionConfigLoggingData() защищенный Метод

Loads DistributionConfigLoggingData from simple xml object
protected _loadDistributionConfigLoggingData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigLoggingData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigLoggingData Returns DistributionConfigLoggingData

_loadDistributionConfigOriginList() защищенный Метод

Parses DistributionConfigOriginList
protected _loadDistributionConfigOriginList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigOriginList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigOriginList Returns DistributionConfigOriginList object

_loadDistributionData() защищенный Метод

Loads DistributionData from simple xml object
protected _loadDistributionData ( SimpleXMLElement $v ) : DistributionData
$v SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionData Returns DistributionData

_loadDistributionS3OriginConfigData() защищенный Метод

Loads DistributionS3OriginConfigData from simple xml object
protected _loadDistributionS3OriginConfigData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\DistributionS3OriginConfigData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionS3OriginConfigData Returns DistributionS3OriginConfigData

_loadForwardedValuesCookiesData() защищенный Метод

Loads ForwardedValuesCookiesData from simple xml object
protected _loadForwardedValuesCookiesData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesCookiesData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesCookiesData Returns ForwardedValuesCookiesData

_loadForwardedValuesData() защищенный Метод

Loads ForwardedValuesData from simple xml object
protected _loadForwardedValuesData ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesData
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\ForwardedValuesData Returns ForwardedValuesData

_loadKeyPairList() защищенный Метод

Parses KeyPairList
protected _loadKeyPairList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\KeyPairList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\KeyPairList Returns KeyPairList object

_loadTrustedSignerList() защищенный Метод

Parses TrustedSignerList
protected _loadTrustedSignerList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\TrustedSignerList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\TrustedSignerList Returns TrustedSignerList object

_loadWhitelistedCookieNamesList() защищенный Метод

Parses WhitelistedCookieNamesList
protected _loadWhitelistedCookieNamesList ( SimpleXMLElement $sxml ) : Scalr\Service\Aws\CloudFront\DataType\WhitelistedCookieNamesList
$sxml SimpleXMLElement
Результат Scalr\Service\Aws\CloudFront\DataType\WhitelistedCookieNamesList Returns WhitelistedCookieNamesList object

createDistribution() публичный Метод

This action creates a new download distribution. By default, you can create a combined total of up to 100 download and streaming distributions per AWS account
public createDistribution ( Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string $config ) : DistributionData
$config Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string distribution config object or XML document
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionData Returns created distribution.

deleteDistribution() публичный Метод

DELETE Distribution Config action
public deleteDistribution ( string $distributionId, string $eTag ) : boolean
$distributionId string ID of the distribution.
$eTag string ETag that is retrieved from getDistributionConfig request.
Результат boolean Returns TRUE on success.

describeDistributions() публичный Метод

To list the distributions associated with your AWS account.
public describeDistributions ( Scalr\Service\Aws\CloudFront\DataType\MarkerType $marker = null ) : Scalr\Service\Aws\CloudFront\DataType\DistributionList
$marker Scalr\Service\Aws\CloudFront\DataType\MarkerType optional The query parameters.
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionList Returns the list of Distributions.

getDistribution() публичный Метод

GET Distribution action
public getDistribution ( string $distributionId ) : DistributionData
$distributionId string ID of the distribution.
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionData Returns distribution.

getDistributionConfig() публичный Метод

GET Distribution Config action
public getDistributionConfig ( string $distributionId ) : Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData
$distributionId string ID of the distribution.
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData Returns DistributionConfig object.

getEntityManager() публичный Метод

Gets an EntityManager
public getEntityManager ( ) : Scalr\Service\Aws\EntityManager
Результат Scalr\Service\Aws\EntityManager

setDistributionConfig() публичный Метод

PUT Distribution Config action
public setDistributionConfig ( string $distributionId, Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string $config, string $eTag ) : DistributionData
$distributionId string ID of the distribution.
$config Scalr\Service\Aws\CloudFront\DataType\DistributionConfigData | string Config for distribution. It accepts object or xml document.
$eTag string ETag that is retrieved from getDistributionConfig request.
Результат Scalr\Service\Aws\CloudFront\DataType\DistributionData Returns DistributionData object.

Описание свойств

$cloudFront защищенное свойство

protected CloudFront,Scalr\Service\Aws $cloudFront
Результат Scalr\Service\Aws\CloudFront