PHP 클래스 CloudFront, CloudFront-PHP-Invalidator

파일 보기 프로젝트 열기: subchild/CloudFront-PHP-Invalidator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $accessKeyId, $secretKey, $distributionId, $serviceUrl = "https://cloudfront.amazonaws.com/" ) Constructs a CloudFront object and assigns required account values
getResponseCode ( ) : mixed Getter method for API response codes
getResponseMessage ( ) : mixed Getter method to get the response messages generated by our class.
invalidate ( $keys ) : boolean | string Invalidates object with passed key on CloudFront

비공개 메소드들

메소드 설명
generateAuthKey ( $date ) : string Returns header string containing encoded authentication key
makeRequestBody ( $objects ) : string Makes the request body as expected by CloudFront API
setRequestHeaders ( HTTP_Request2 $req ) Sets the common headers required by CloudFront API

메소드 상세

__construct() 공개 메소드

Constructs a CloudFront object and assigns required account values
public __construct ( $accessKeyId, $secretKey, $distributionId, $serviceUrl = "https://cloudfront.amazonaws.com/" )
$accessKeyId {String} AWS access key id
$secretKey {String} AWS secret key
$distributionId {String} CloudFront distribution id
$serviceUrl {String} Optional parameter for overriding cloudfront api URL

getResponseCode() 공개 메소드

Getter method for API response codes
public getResponseCode ( ) : mixed
리턴 mixed

getResponseMessage() 공개 메소드

Getter method to get the response messages generated by our class.
public getResponseMessage ( ) : mixed
리턴 mixed

invalidate() 공개 메소드

Invalidates object with passed key on CloudFront
public invalidate ( $keys ) : boolean | string
$keys
리턴 boolean | string