Property | Type | Description | |
---|---|---|---|
$bucketName | string | The bucket name | |
$creationDate | DateTime | Creation date |
Property | Type | Description | |
---|---|---|---|
$_externalKeys | array | List of external identifier names. |
Method | Description | |
---|---|---|
addObject ( string $objectName, string | SplFileInfo $contentFile, array $requestHeaders = null ) : ClientResponseInterface | PUT Object action | |
delete ( ) : boolean | DELETE Bucket | |
deleteCors ( ) : boolean | DELETE Bucket cors action | |
deleteLifecycle ( ) : boolean | DELETE Bucket lifecycle action | |
deleteObject ( string $objectName, string $versionId = null, string $xAmfMfa = null ) : ClientResponseInterface | DELETE Object action. | |
deletePolicy ( ) : boolean | DELETE Bucket policy action | |
deleteTagging ( ) : boolean | DELETE Bucket tagging action | |
deleteWebsite ( ) : boolean | DELETE Bucket website action | |
getAcl ( ) : Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | Gets a bucket ACL action. | |
getCors ( ) : string | Returns the cors configuration information set for the bucket. | |
getLifecycle ( ) : string | GET Bucket lifecycle action | |
getLocation ( ) : string | GET Bucket location action | |
getLogging ( ) : string | GET Bucket logging action | |
getNotification ( |
GET Bucket notification action | |
getObject ( string $objectName, array $requestPars = null, array $requestHeaders = null ) : ClientResponseInterface | Gets an object | |
getPolicy ( ) : string | GET Bucket policy action | |
getRequestPayment ( ) : string | GET Bucket requestPayment action | |
getTagging ( ) : string | GET Bucket tagging action | |
listObjects ( string $delimiter = null, string $marker = null, string $maxKeys = null, string $prefix = null ) : Scalr\Service\Aws\S3\DataType\ObjectList | GET Bucket (List Objects) action | |
setAcl ( Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array $aclset ) : boolean | PUT Bucket ACL action. | |
setCors ( string $cors ) : boolean | PUT Bucket cors action | |
setLifecycle ( string $lifecycle ) : boolean | PUT Bucket lifecycle action | |
setLogging ( string $bucketLoggingStatus ) : boolean | PUT Bucket logging action | |
setNotification ( string $notification ) : boolean | PUT Bucket notification action | |
setPolicy ( string $policy ) : boolean | PUT Bucket policy action | |
setRequestPayment ( string $requestPayment ) : boolean | PUT Bucket requestPayment action | |
setTagging ( string $tagging ) : boolean | PUT Bucket tagging action | |
setWebsite ( string $website ) : boolean | PUT Bucket website action |
Method | Description | |
---|---|---|
throwExceptionIfNotInitialized ( ) |
public addObject ( string $objectName, string | SplFileInfo $contentFile, array $requestHeaders = null ) : ClientResponseInterface | ||
$objectName | string | An object name. |
$contentFile | string | SplFileInfo | File content of file that should be uploaded. If you provide a path to the file you should pass SplFileInfo object. |
$requestHeaders | array | optional Request headers |
return | ClientResponseInterface | Returns response on success or throws an exception |
public deleteCors ( ) : boolean | ||
return | boolean | Returns true on success or throws an exception. |
public deleteLifecycle ( ) : boolean | ||
return | boolean | Returns true on success or throws an exception. |
public deleteObject ( string $objectName, string $versionId = null, string $xAmfMfa = null ) : ClientResponseInterface | ||
$objectName | string | A object name. |
$versionId | string | optional To remove a specific version of the object it must be used. |
$xAmfMfa | string | optional The value is the concatenation of the authentication device's serial number, a space, and the value displayed on your authentication device. |
return | ClientResponseInterface | Returns response on success or throws an exception |
public deletePolicy ( ) : boolean | ||
return | boolean | Returns true on success or throws an exception. |
public deleteTagging ( ) : boolean | ||
return | boolean | Returns true on success or throws an exception. |
public deleteWebsite ( ) : boolean | ||
return | boolean | Returns true on success or throws an exception. |
public getAcl ( ) : Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | ||
return | Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | Returns object which describes ACL for the bucket. |
public getLifecycle ( ) : string | ||
return | string | Returns LifecycleConfiguration XML Document |
public getLocation ( ) : string | ||
return | string | Returns bucket location Valid Values: EU | eu-west-1 | eu-central-1 | us-west-1 | us-west-2 | ap-southeast-1 | ap-northeast-1 | ap-northeast-2 | sa-east-1 | empty string (for the US Classic Region) |
public getLogging ( ) : string | ||
return | string | Returns XML document |
public getNotification ( |
||
$bucketName | A bucket name. | |
return | string | Returns XML document |
public getObject ( string $objectName, array $requestPars = null, array $requestHeaders = null ) : ClientResponseInterface | ||
$objectName | string | An object key name. |
$requestPars | array | optional An additional request query parameters. It accepts only allowed params. |
$requestHeaders | array | opitional An optional request headers. It accepts only allowed headers. |
return | ClientResponseInterface | Returns response |
public getRequestPayment ( ) : string | ||
return | string | Returns XML document |
public getTagging ( ) : string | ||
return | string | Returns XML document |
public listObjects ( string $delimiter = null, string $marker = null, string $maxKeys = null, string $prefix = null ) : Scalr\Service\Aws\S3\DataType\ObjectList | ||
$delimiter | string | optional A delimiter is a character you use to group keys. All keys that contain the same string between the prefix, if specified, and the first occurrence of the delimiter after the prefix are grouped under a single result element, CommonPrefixes. If you don't specify the prefix parameter, then the substring starts at the beginning of the key. The keys that are grouped under CommonPrefixes result element are not returned elsewhere in the response. |
$marker | string | optional Specifies the key to start with when listing objects in a bucket. Amazon S3 lists objects in alphabetical order. |
$maxKeys | string | optional Sets the maximum number of keys returned in the response body.
The response might contain fewer keys but will never contain more.
If there are additional keys that satisfy the search criteria
but were not returned because max-keys was exceeded, the response contains
|
$prefix | string | optional Limits the response to keys that begin with the specified prefix. You can use prefixes to separate a bucket into different groupings of keys. (You can think of using prefix to make groups in the same way you'd use a folder in a file system.) |
return | Scalr\Service\Aws\S3\DataType\ObjectList | Returns list of Objects |
public setAcl ( Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array $aclset ) : boolean | ||
$aclset | Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array | AccessControlPolicyData object or XML Document or array of x-amz headers |
return | boolean | Returns True on success of false if failures. |
public setLifecycle ( string $lifecycle ) : boolean | ||
$lifecycle | string | A XML document that defines lifecycle configuration. |
return | boolean | Returns true on succes or false if failure. |
public setLogging ( string $bucketLoggingStatus ) : boolean | ||
$bucketLoggingStatus | string | A XML Document which describes configuration |
return | boolean | Returns true on succes or false if failure. |
public setNotification ( string $notification ) : boolean | ||
$notification | string | A XML Document which describes configuration |
return | boolean | Returns true on succes or false if failure. |
public setRequestPayment ( string $requestPayment ) : boolean | ||
$requestPayment | string | A XML Document which defines configuration |
return | boolean | Returns true on succes or false if failure. |
public setTagging ( string $tagging ) : boolean | ||
$tagging | string | A XML Document which defines configuration |
return | boolean | Returns true on succes or false if failure. |
public setWebsite ( string $website ) : boolean | ||
$website | string | A XML Document which defines configuration |
return | boolean | Returns true on succes or false if failure. |
protected array $_externalKeys | ||
return | array |