You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::S3::Types::OwnershipControlsRule
- Inherits:
-
Struct
- Object
- Struct
- Aws::S3::Types::OwnershipControlsRule
- Defined in:
- (unknown)
Overview
When passing OwnershipControlsRule as input to an Aws::Client method, you can use a vanilla Hash:
{
object_ownership: "BucketOwnerPreferred", # required, accepts BucketOwnerPreferred, ObjectWriter
}
The container element for an ownership control rule.
Instance Attribute Summary collapse
-
#object_ownership ⇒ String
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the
bucket-owner-full-control
canned ACL.ObjectWriter - The uploading account will own the object if the object is uploaded with the
bucket-owner-full-control
canned ACL.Possible values:
- BucketOwnerPreferred
- ObjectWriter
Instance Attribute Details
#object_ownership ⇒ String
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if the objects are uploaded with the bucket-owner-full-control
canned ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with the bucket-owner-full-control
canned ACL.
Possible values:
- BucketOwnerPreferred
- ObjectWriter