Class: AWS::S3::AccessControlList::Grant

Inherits:
Object
  • Object
show all
Includes:
AWS::S3::ACLObject
Defined in:
lib/aws/s3/access_control_list.rb

Overview

Represents a single grant in an ACL. Both grantee and permission are required for each grant when setting an ACL.

See docs.amazonwebservices.com/AmazonS3/latest/dev/ACLOverview.html for more information on how grantees and permissions are interpreted by S3.

Instance Attribute Summary collapse

Method Summary

Methods included from AWS::S3::ACLObject

#body_xml, #element_name, included, #initialize, #stag, #to_s, #to_xml, #valid?, #validate!, #validate_input

Instance Attribute Details

#granteeGrantee

The user or users who are granted access according to this grant. You can specify this as a hash:

grant.grantee = { :amazon_customer_email => "[email protected]" }

Returns:

  • (Grantee)

    the current value of grantee


189
190
191
# File 'lib/aws/s3/access_control_list.rb', line 189

def grantee
  @grantee
end

#permissionPermission or Symbol

The type of permission that is granted by this grant. Valid values are:

  • :read

  • :write

  • :read_acp

  • :write_acp

  • :full_control

Returns:

  • (Permission or Symbol)

    the current value of permission


189
190
191
# File 'lib/aws/s3/access_control_list.rb', line 189

def permission
  @permission
end