lib/aws-sdk-s3/resource.rb in aws-sdk-s3-1.108.0 vs lib/aws-sdk-s3/resource.rb in aws-sdk-s3-1.109.0

- old
+ new

@@ -47,10 +47,11 @@ # grant_read: "GrantRead", # grant_read_acp: "GrantReadACP", # grant_write: "GrantWrite", # grant_write_acp: "GrantWriteACP", # object_lock_enabled_for_bucket: false, + # object_ownership: "BucketOwnerPreferred", # accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced # }) # @param [Hash] options ({}) # @option options [String] :acl # The canned ACL to apply to the bucket. # @option options [required, String] :bucket @@ -72,9 +73,26 @@ # @option options [String] :grant_write_acp # Allows grantee to write the ACL for the applicable bucket. # @option options [Boolean] :object_lock_enabled_for_bucket # Specifies whether you want S3 Object Lock to be enabled for the new # bucket. + # @option options [String] :object_ownership + # 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. + # + # BucketOwnerEnforced - Access control lists (ACLs) are disabled and no + # longer affect permissions. The bucket owner automatically owns and has + # full control over every object in the bucket. The bucket only accepts + # PUT requests that don't specify an ACL or bucket owner full control + # ACLs, such as the `bucket-owner-full-control` canned ACL or an + # equivalent form of this ACL expressed in the XML format. # @return [Bucket] def create_bucket(options = {}) @client.create_bucket(options) Bucket.new( name: options[:bucket],