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


284
285
286
287
288
289
# File 'lib/aws/s3/logging.rb', line 284

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