Class Acp
Amazon S3 Access Control Policy (ACP)
- Aws\S3\Model\Acp implements Guzzle\Common\ToArrayInterface, IteratorAggregate, Countable
Methods summary
-
public
__construct ( Aws\S3\Model\Grantee $owner, array|\Traversable $grants = null )
Constructs an ACP
-
public static
fromArray ( array $data )
Create an Acp object from an array. This can be used to create an ACP from a response to a GetObject/Bucket ACL operation.
-
public
setOwner ( Aws\S3\Model\Grantee $owner )
Set the owner of the ACP policy
-
public
getOwner ( )
Get the owner of the ACP policy
-
public
setGrants ( array|\Traversable $grants = array() )
Set the grants for the ACP
-
public
getGrants ( )
Get all of the grants
-
public
addGrant ( Aws\S3\Model\Grant $grant )
Add a Grant
-
public
count ( )
Get the total number of attributes
-
public
getIterator ( )
Returns the grants for iteration
-
public
updateCommand ( Guzzle\Service\Command\AbstractCommand $command )
Applies grant headers to a command's parameters
-
public
toArray ( )
Get the array representation of an object
Methods detail
Constructs an ACP
Parameters
- $owner
Aws\S3\Model\Grantee
$owner ACP policy owner- $grants
array|
Traversable
$grants List of grants for the ACP
Create an Acp object from an array. This can be used to create an ACP from a response to a GetObject/Bucket ACL operation.
Parameters
- $data
array
$data Array of ACP data
Returns
Set the owner of the ACP policy
Parameters
- $owner
Aws\S3\Model\Grantee
$owner ACP policy owner
Returns
mixed
$this
Throws
Set the grants for the ACP
Parameters
- $grants
array|
Traversable
$grants List of grants for the ACP
Returns
mixed
$this
Throws
Returns the grants for iteration
Returns
Implementation of
Applies grant headers to a command's parameters
Parameters
- $command
Guzzle\Service\Command\AbstractCommand
$command Command to be updated
Returns
mixed
$this
Get the array representation of an object
Returns
array
Implementation of
Magic methods summary
Properties summary
protected
|
$grants |
#
List of grants on the ACP |
protected
|
$owner |
#
The owner of the ACP |