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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#object_ownershipString

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

Returns:

  • (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.

    .