Class AcpBuilder
Builder for creating Access Control Policies
Methods summary
-
public staticnewInstance ( )Static method for chainable instantiation
-
publicsetOwner ( string $id, string $displayName = null )Sets the owner to be set on the ACL
-
publicaddGrantForUser ( string $permission, string $id, string $displayName = null )Create and store a Grant with a CanonicalUser Grantee for the ACL
-
publicaddGrantForEmail ( string $permission, string $email )Create and store a Grant with a AmazonCustomerByEmail Grantee for the ACL
-
publicaddGrantForGroup ( string $permission, string $group )Create and store a Grant with a Group Grantee for the ACL
-
publicaddGrant ( string $permission, Aws\S3\Model\Grantee $grantee )Create and store a Grant for the ACL
-
publicbuild ( )Builds the ACP and returns it
Methods detail
Static method for chainable instantiation
Returns
staticSets the owner to be set on the ACL
Parameters
- $id
string
$id Owner identifier- $displayName
string
$displayName Owner display name
Returns
mixed$this
Create and store a Grant with a CanonicalUser Grantee for the ACL
Parameters
- $permission
string
$permission Permission for the Grant- $id
string
$id Grantee identifier- $displayName
string
$displayName Grantee display name
Returns
mixed$this
Create and store a Grant with a AmazonCustomerByEmail Grantee for the ACL
Parameters
- $permission
string
$permission Permission for the Grantstring
$email Grantee email address
Returns
mixed$this
Create and store a Grant with a Group Grantee for the ACL
Parameters
- $permission
string
$permission Permission for the Grant- $group
string
$group Grantee group
Returns
mixed$this
Create and store a Grant for the ACL
Parameters
- $permission
string
$permission Permission for the Grant- $grantee
Aws\S3\Model\Grantee
$grantee The Grantee for the Grant
Returns
mixed$this
Magic methods summary
Properties summary
protected
|
$owner |
#
The owner for the ACL |
protected
array
|
$grants |
#
An array of Grant objects for the ACL |