Module AWS::S3::ACL::Bucket
In: lib/aws/s3/acl.rb

Methods

acl  

Classes and Modules

Module AWS::S3::ACL::Bucket::ClassMethods

Public Instance methods

The acl method returns and updates the acl for a given bucket.

  # Fetch a bucket
  bucket = Bucket.find 'marcel'

  # Add a grant to the bucket's policy
  bucket.acl.grants << some_grant

  # Write the changes to the policy
  bucket.acl(bucket.acl)

[Source]

     # File lib/aws/s3/acl.rb, line 529
529:         def acl(reload = false)
530:           policy = reload.is_a?(ACL::Policy) ? reload : nil
531:           memoize(reload) do
532:             self.class.acl(name, policy) if policy
533:             self.class.acl(name)
534:           end
535:         end

[Validate]