Метод | Описание | |
---|---|---|
addObject ( |
PUT Object action | |
create ( string $bucketName, string $bucketRegion = null, array $requestHeaders = null ) : |
Create Bucket action | |
delete ( string $bucketName ) : boolean | DELETE Bucket | |
deleteCors ( |
DELETE Bucket cors action | |
deleteLifecycle ( |
DELETE Bucket lifecycle action | |
deleteObject ( |
DELETE Object action. | |
deletePolicy ( |
DELETE Bucket policy action | |
deleteTagging ( |
DELETE Bucket tagging action | |
deleteWebsite ( |
DELETE Bucket website action | |
get ( string $bucketName ) : |
Gets BucketData from Entity Storage. | |
getAcl ( string $bucketName ) : Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | Gets a bucket ACL action. | |
getCors ( |
Returns the cors configuration information set for the bucket. | |
getLifecycle ( |
GET Bucket lifecycle action | |
getList ( ) : Scalr\Service\Aws\S3\DataType\BucketList | GET Service (ListAllMyBuckets) action | |
getLocation ( |
GET Bucket location action | |
getLogging ( string $bucketName ) : string | GET Bucket logging action | |
getNotification ( |
GET Bucket notification action | |
getObjectsFromStorage ( string $bucketName ) : ArrayObject | Gets Objects list from an Entity Storage that belong to specified bucket | |
getPolicy ( |
GET Bucket policy action | |
getRequestPayment ( |
GET Bucket requestPayment action | |
getTagging ( string $bucketName ) : string | GET Bucket tagging action | |
getWebsite ( |
Returns the web configuration information for the bucket. | |
isAllowed ( string $bucketName ) : boolean | HEAD Bucket action | |
isExist ( string $bucketName ) : boolean | HEAD Bucket action | |
listObjects ( string $bucketName, string $delimiter = null, string $marker = null, string $maxKeys = null, string $prefix = null ) : Scalr\Service\Aws\S3\DataType\ObjectList | GET Bucket (List Objects) action | |
setAcl ( string $bucketName, Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array $aclset ) : boolean | PUT Bucket ACL action. | |
setCors ( |
PUT Bucket cors action | |
setLifecycle ( |
PUT Bucket lifecycle action | |
setLogging ( |
PUT Bucket logging action | |
setNotification ( |
PUT Bucket notification action | |
setPolicy ( |
PUT Bucket policy action | |
setRequestPayment ( |
PUT Bucket requestPayment action | |
setTagging ( |
PUT Bucket tagging action | |
setWebsite ( |
PUT Bucket website action |
public addObject ( |
||
$bucketName | A bucket name. | |
$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 |
Результат | Scalr\Service\Aws\Client\ClientResponseInterface | Returns response on success or throws an exception |
public create ( string $bucketName, string $bucketRegion = null, array $requestHeaders = null ) : |
||
$bucketName | string | A bucket name. |
$bucketRegion | string | optional AWS Region where bucket have to be located. |
$requestHeaders | array | optional Additional request headers. x-amz-acl|x-amz-grant-read|x-amz-grant-write|x-amz-grant-read-acp| x-amz-grant-write-acp|x-amz-grant-full-control |
Результат | Returns BucketData object on success or throws an exception. |
public deleteCors ( |
||
$bucketName | A bucket name or BucketData object | |
Результат | boolean | Returns true on success or throws an exception. |
public deleteLifecycle ( |
||
$bucketName | A bucket name. | |
Результат | boolean | Returns true on success or throws an exception. |
public deleteObject ( |
||
$bucketName | A bucket name. | |
$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. |
Результат | Scalr\Service\Aws\Client\ClientResponseInterface | Returns response on success or throws an exception |
public deletePolicy ( |
||
$bucketName | A bucket name. | |
Результат | boolean | Returns true on success or throws an exception. |
public deleteTagging ( |
||
$bucketName | A bucket name. | |
Результат | boolean | Returns true on success or throws an exception. |
public deleteWebsite ( |
||
$bucketName | A bucket name. | |
Результат | boolean | Returns true on success or throws an exception. |
public getLifecycle ( |
||
$bucketName | A bucket name. | |
Результат | string | Returns LifecycleConfiguration XML Document |
public getList ( ) : Scalr\Service\Aws\S3\DataType\BucketList | ||
Результат | Scalr\Service\Aws\S3\DataType\BucketList | Returns BucketList |
public getLocation ( |
||
$bucketName | A bucket name. | |
Результат | 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 $bucketName ) : string | ||
$bucketName | string | A bucket name. |
Результат | string | Returns XML document |
public getNotification ( |
||
$bucketName | A bucket name. | |
Результат | string | Returns XML document |
public getObjectsFromStorage ( string $bucketName ) : ArrayObject | ||
$bucketName | string | |
Результат | ArrayObject | Returns list of ObjectData |
public getRequestPayment ( |
||
$bucketName | A bucket name. | |
Результат | string | Returns XML document |
public getTagging ( string $bucketName ) : string | ||
$bucketName | string | A bucket name. |
Результат | string | Returns XML document |
public getWebsite ( |
||
$bucketName | A bucket name. | |
Результат | string | Returns CORSConfiguration XML Document |
public listObjects ( string $bucketName, string $delimiter = null, string $marker = null, string $maxKeys = null, string $prefix = null ) : Scalr\Service\Aws\S3\DataType\ObjectList | ||
$bucketName | string | A bucket Name. |
$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.) |
Результат | Scalr\Service\Aws\S3\DataType\ObjectList | Returns list of Objects |
public setAcl ( string $bucketName, Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array $aclset ) : boolean | ||
$bucketName | string | A bucket name. |
$aclset | Scalr\Service\Aws\S3\DataType\AccessControlPolicyData | DOMDocument | string | array | AccessControlPolicyData object or XML Document or array of x-amz headers |
Результат | boolean | Returns True on success of false if failures. |
public setLogging ( |
||
$bucketName | A bucket name. | |
$bucketLoggingStatus | string | A XML Document which describes configuration |
Результат | boolean | Returns true on succes or false if failure. |