aws-sdk-s3 1.108.0 → 1.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +19 -1
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -2
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +2 -2
- data/lib/aws-sdk-s3/client.rb +329 -211
- data/lib/aws-sdk-s3/client_api.rb +1 -0
- data/lib/aws-sdk-s3/object.rb +4 -4
- data/lib/aws-sdk-s3/object_summary.rb +4 -4
- data/lib/aws-sdk-s3/resource.rb +18 -0
- data/lib/aws-sdk-s3/types.rb +94 -46
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 5b7b755424c2783bb1d1ab5ec357ce83949b1a434cca1f40d8088c4e59c982b0
         | 
| 4 | 
            +
              data.tar.gz: 95b6da26a68850f8d388cc7fe67f6b152297bb8988ff6a83a915b0d800b977c7
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: afbc607faa1be4484f457ffac8617350b826c8e794b75eecdc66b07dadf91a5e339328070aa1ab2c4c2a32e99a82d94e07a54d0cd5803f9a12a10db43a642414
         | 
| 7 | 
            +
              data.tar.gz: 19e01fdc6064838e1af8514eccc4784a1e859dc89bc6a274f017c722154a11ad1c2f79929fa0e7aecaa70f6cd8af32db3f07e4de427b34944957d664ef2348aa
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,6 +1,11 @@ | |
| 1 1 | 
             
            Unreleased Changes
         | 
| 2 2 | 
             
            ------------------
         | 
| 3 3 |  | 
| 4 | 
            +
            1.109.0 (2021-11-30)
         | 
| 5 | 
            +
            ------------------
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            * Feature - Introduce Amazon S3 Glacier Instant Retrieval storage class and a new setting in S3 Object Ownership to disable ACLs for bucket and the objects in it.
         | 
| 8 | 
            +
             | 
| 4 9 | 
             
            1.108.0 (2021-11-29)
         | 
| 5 10 | 
             
            ------------------
         | 
| 6 11 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.109.0
         | 
    
        data/lib/aws-sdk-s3/bucket.rb
    CHANGED
    
    | @@ -231,6 +231,7 @@ module Aws::S3 | |
| 231 231 | 
             
                #     grant_write: "GrantWrite",
         | 
| 232 232 | 
             
                #     grant_write_acp: "GrantWriteACP",
         | 
| 233 233 | 
             
                #     object_lock_enabled_for_bucket: false,
         | 
| 234 | 
            +
                #     object_ownership: "BucketOwnerPreferred", # accepts BucketOwnerPreferred, ObjectWriter, BucketOwnerEnforced
         | 
| 234 235 | 
             
                #   })
         | 
| 235 236 | 
             
                # @param [Hash] options ({})
         | 
| 236 237 | 
             
                # @option options [String] :acl
         | 
| @@ -254,6 +255,23 @@ module Aws::S3 | |
| 254 255 | 
             
                # @option options [Boolean] :object_lock_enabled_for_bucket
         | 
| 255 256 | 
             
                #   Specifies whether you want S3 Object Lock to be enabled for the new
         | 
| 256 257 | 
             
                #   bucket.
         | 
| 258 | 
            +
                # @option options [String] :object_ownership
         | 
| 259 | 
            +
                #   The container element for object ownership for a bucket's ownership
         | 
| 260 | 
            +
                #   controls.
         | 
| 261 | 
            +
                #
         | 
| 262 | 
            +
                #   BucketOwnerPreferred - Objects uploaded to the bucket change ownership
         | 
| 263 | 
            +
                #   to the bucket owner if the objects are uploaded with the
         | 
| 264 | 
            +
                #   `bucket-owner-full-control` canned ACL.
         | 
| 265 | 
            +
                #
         | 
| 266 | 
            +
                #   ObjectWriter - The uploading account will own the object if the object
         | 
| 267 | 
            +
                #   is uploaded with the `bucket-owner-full-control` canned ACL.
         | 
| 268 | 
            +
                #
         | 
| 269 | 
            +
                #   BucketOwnerEnforced - Access control lists (ACLs) are disabled and no
         | 
| 270 | 
            +
                #   longer affect permissions. The bucket owner automatically owns and has
         | 
| 271 | 
            +
                #   full control over every object in the bucket. The bucket only accepts
         | 
| 272 | 
            +
                #   PUT requests that don't specify an ACL or bucket owner full control
         | 
| 273 | 
            +
                #   ACLs, such as the `bucket-owner-full-control` canned ACL or an
         | 
| 274 | 
            +
                #   equivalent form of this ACL expressed in the XML format.
         | 
| 257 275 | 
             
                # @return [Types::CreateBucketOutput]
         | 
| 258 276 | 
             
                def create(options = {})
         | 
| 259 277 | 
             
                  options = options.merge(bucket: @name)
         | 
| @@ -350,7 +368,7 @@ module Aws::S3 | |
| 350 368 | 
             
                #       "MetadataKey" => "MetadataValue",
         | 
| 351 369 | 
             
                #     },
         | 
| 352 370 | 
             
                #     server_side_encryption: "AES256", # accepts AES256, aws:kms
         | 
| 353 | 
            -
                #     storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS
         | 
| 371 | 
            +
                #     storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR
         | 
| 354 372 | 
             
                #     website_redirect_location: "WebsiteRedirectLocation",
         | 
| 355 373 | 
             
                #     sse_customer_algorithm: "SSECustomerAlgorithm",
         | 
| 356 374 | 
             
                #     sse_customer_key: "SSECustomerKey",
         | 
| @@ -209,11 +209,11 @@ module Aws::S3 | |
| 209 209 | 
             
                #           transition: {
         | 
| 210 210 | 
             
                #             date: Time.now,
         | 
| 211 211 | 
             
                #             days: 1,
         | 
| 212 | 
            -
                #             storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
         | 
| 212 | 
            +
                #             storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
         | 
| 213 213 | 
             
                #           },
         | 
| 214 214 | 
             
                #           noncurrent_version_transition: {
         | 
| 215 215 | 
             
                #             noncurrent_days: 1,
         | 
| 216 | 
            -
                #             storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
         | 
| 216 | 
            +
                #             storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
         | 
| 217 217 | 
             
                #             newer_noncurrent_versions: 1,
         | 
| 218 218 | 
             
                #           },
         | 
| 219 219 | 
             
                #           noncurrent_version_expiration: {
         | 
| @@ -229,13 +229,13 @@ module Aws::S3 | |
| 229 229 | 
             
                #             {
         | 
| 230 230 | 
             
                #               date: Time.now,
         | 
| 231 231 | 
             
                #               days: 1,
         | 
| 232 | 
            -
                #               storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
         | 
| 232 | 
            +
                #               storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
         | 
| 233 233 | 
             
                #             },
         | 
| 234 234 | 
             
                #           ],
         | 
| 235 235 | 
             
                #           noncurrent_version_transitions: [
         | 
| 236 236 | 
             
                #             {
         | 
| 237 237 | 
             
                #               noncurrent_days: 1,
         | 
| 238 | 
            -
                #               storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
         | 
| 238 | 
            +
                #               storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE, GLACIER_IR
         | 
| 239 239 | 
             
                #               newer_noncurrent_versions: 1,
         | 
| 240 240 | 
             
                #             },
         | 
| 241 241 | 
             
                #           ],
         |