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



281
282
283
284
285
286
# File 'lib/aws/s3/logging.rb', line 281

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