Module: AWS::S3::Logging::Management::LoggingGrants

Defined in:
lib/aws/s3/logging.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#grant_logging_access_to_target_bucket(target_bucket) ⇒ Object



287
288
289
290
291
292
# File 'lib/aws/s3/logging.rb', line 287

def grant_logging_access_to_target_bucket(target_bucket)
  acl = acl(target_bucket)
  acl.grants << ACL::Grant.grant(:logging_write)
  acl.grants << ACL::Grant.grant(:logging_read_acp)
  acl(target_bucket, acl)
end