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
278 279 280 281 282 283 |
# File 'lib/aws/s3/logging.rb', line 278 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 |