aws-sdk-s3 1.164.0 → 1.167.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 +15 -0
 - data/VERSION +1 -1
 - data/lib/aws-sdk-s3/bucket.rb +15 -12
 - data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +38 -1
 - data/lib/aws-sdk-s3/bucket_policy.rb +4 -4
 - data/lib/aws-sdk-s3/client.rb +186 -159
 - data/lib/aws-sdk-s3/client_api.rb +9 -1
 - data/lib/aws-sdk-s3/customizations/object.rb +6 -0
 - data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
 - data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
 - data/lib/aws-sdk-s3/customizations.rb +24 -38
 - data/lib/aws-sdk-s3/errors.rb +3 -0
 - data/lib/aws-sdk-s3/multipart_upload.rb +7 -4
 - data/lib/aws-sdk-s3/multipart_upload_part.rb +8 -8
 - data/lib/aws-sdk-s3/object.rb +17 -14
 - data/lib/aws-sdk-s3/object_summary.rb +15 -12
 - data/lib/aws-sdk-s3/object_version.rb +7 -4
 - data/lib/aws-sdk-s3/types.rb +111 -44
 - data/lib/aws-sdk-s3.rb +35 -31
 - data/sig/bucket_lifecycle_configuration.rbs +7 -3
 - data/sig/client.rbs +9 -3
 - data/sig/types.rbs +7 -0
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 34111791125eda0be63a2a63a184b7a25278393369edb85c750f343fb8e8e896
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: cf4c34ecd77b3c61781dc530646b9a93935d3b9500d690b9f6316f5b4ca6ea6a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 64a2bbc7ceabb661e95546bef8d52f42f6f1feb819fb9163d5c7ba525976498d3b56ca8be6e52b1bb5229d401c5863aeda481a100c0e72e0da700f8e18674520
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: eab354c564d821f4c8666fb086ad96316aa461891c91d1ee3cefe2e7551d084d2ee7532e8be402c6e6f582d6ecb927b80cf904449d3b2cf6e86d9ad115088887
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,6 +1,21 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            Unreleased Changes
         
     | 
| 
       2 
2 
     | 
    
         
             
            ------------------
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
      
 4 
     | 
    
         
            +
            1.167.0 (2024-10-02)
         
     | 
| 
      
 5 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            * Feature - This release introduces a header representing the minimum object size limit for Lifecycle transitions.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            1.166.0 (2024-09-24)
         
     | 
| 
      
 10 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            1.165.0 (2024-09-23)
         
     | 
| 
      
 15 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
       4 
19 
     | 
    
         
             
            1.164.0 (2024-09-20)
         
     | 
| 
       5 
20 
     | 
    
         
             
            ------------------
         
     | 
| 
       6 
21 
     | 
    
         | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.167.0
         
     | 
    
        data/lib/aws-sdk-s3/bucket.rb
    CHANGED
    
    | 
         @@ -447,13 +447,13 @@ module Aws::S3 
     | 
|
| 
       447 
447 
     | 
    
         
             
                #   For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
         
     | 
| 
       448 
448 
     | 
    
         
             
                #   the supported algorithm from the following list:
         
     | 
| 
       449 
449 
     | 
    
         
             
                #
         
     | 
| 
       450 
     | 
    
         
            -
                #   * CRC32
         
     | 
| 
      
 450 
     | 
    
         
            +
                #   * `CRC32`
         
     | 
| 
       451 
451 
     | 
    
         
             
                #
         
     | 
| 
       452 
     | 
    
         
            -
                #   * CRC32C
         
     | 
| 
      
 452 
     | 
    
         
            +
                #   * `CRC32C`
         
     | 
| 
       453 
453 
     | 
    
         
             
                #
         
     | 
| 
       454 
     | 
    
         
            -
                #   * SHA1
         
     | 
| 
      
 454 
     | 
    
         
            +
                #   * `SHA1`
         
     | 
| 
       455 
455 
     | 
    
         
             
                #
         
     | 
| 
       456 
     | 
    
         
            -
                #   * SHA256
         
     | 
| 
      
 456 
     | 
    
         
            +
                #   * `SHA256`
         
     | 
| 
       457 
457 
     | 
    
         
             
                #
         
     | 
| 
       458 
458 
     | 
    
         
             
                #   For more information, see [Checking object integrity][1] in the
         
     | 
| 
       459 
459 
     | 
    
         
             
                #   *Amazon S3 User Guide*.
         
     | 
| 
         @@ -640,13 +640,13 @@ module Aws::S3 
     | 
|
| 
       640 
640 
     | 
    
         
             
                #   For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
         
     | 
| 
       641 
641 
     | 
    
         
             
                #   the supported algorithm from the following list:
         
     | 
| 
       642 
642 
     | 
    
         
             
                #
         
     | 
| 
       643 
     | 
    
         
            -
                #   * CRC32
         
     | 
| 
      
 643 
     | 
    
         
            +
                #   * `CRC32`
         
     | 
| 
       644 
644 
     | 
    
         
             
                #
         
     | 
| 
       645 
     | 
    
         
            -
                #   * CRC32C
         
     | 
| 
      
 645 
     | 
    
         
            +
                #   * `CRC32C`
         
     | 
| 
       646 
646 
     | 
    
         
             
                #
         
     | 
| 
       647 
     | 
    
         
            -
                #   * SHA1
         
     | 
| 
      
 647 
     | 
    
         
            +
                #   * `SHA1`
         
     | 
| 
       648 
648 
     | 
    
         
             
                #
         
     | 
| 
       649 
     | 
    
         
            -
                #   * SHA256
         
     | 
| 
      
 649 
     | 
    
         
            +
                #   * `SHA256`
         
     | 
| 
       650 
650 
     | 
    
         
             
                #
         
     | 
| 
       651 
651 
     | 
    
         
             
                #   For more information, see [Checking object integrity][1] in the
         
     | 
| 
       652 
652 
     | 
    
         
             
                #   *Amazon S3 User Guide*.
         
     | 
| 
         @@ -668,9 +668,9 @@ module Aws::S3 
     | 
|
| 
       668 
668 
     | 
    
         
             
                # @option options [String] :checksum_crc32
         
     | 
| 
       669 
669 
     | 
    
         
             
                #   This header can be used as a data integrity check to verify that the
         
     | 
| 
       670 
670 
     | 
    
         
             
                #   data received is the same data that was originally sent. This header
         
     | 
| 
       671 
     | 
    
         
            -
                #   specifies the base64-encoded, 32-bit  
     | 
| 
       672 
     | 
    
         
            -
                #   more information, see [Checking object integrity][1] in the 
     | 
| 
       673 
     | 
    
         
            -
                #   User Guide*.
         
     | 
| 
      
 671 
     | 
    
         
            +
                #   specifies the base64-encoded, 32-bit CRC-32 checksum of the object.
         
     | 
| 
      
 672 
     | 
    
         
            +
                #   For more information, see [Checking object integrity][1] in the
         
     | 
| 
      
 673 
     | 
    
         
            +
                #   *Amazon S3 User Guide*.
         
     | 
| 
       674 
674 
     | 
    
         
             
                #
         
     | 
| 
       675 
675 
     | 
    
         
             
                #
         
     | 
| 
       676 
676 
     | 
    
         
             
                #
         
     | 
| 
         @@ -678,7 +678,7 @@ module Aws::S3 
     | 
|
| 
       678 
678 
     | 
    
         
             
                # @option options [String] :checksum_crc32c
         
     | 
| 
       679 
679 
     | 
    
         
             
                #   This header can be used as a data integrity check to verify that the
         
     | 
| 
       680 
680 
     | 
    
         
             
                #   data received is the same data that was originally sent. This header
         
     | 
| 
       681 
     | 
    
         
            -
                #   specifies the base64-encoded, 32-bit  
     | 
| 
      
 681 
     | 
    
         
            +
                #   specifies the base64-encoded, 32-bit CRC-32C checksum of the object.
         
     | 
| 
       682 
682 
     | 
    
         
             
                #   For more information, see [Checking object integrity][1] in the
         
     | 
| 
       683 
683 
     | 
    
         
             
                #   *Amazon S3 User Guide*.
         
     | 
| 
       684 
684 
     | 
    
         
             
                #
         
     | 
| 
         @@ -1552,3 +1552,6 @@ module Aws::S3 
     | 
|
| 
       1552 
1552 
     | 
    
         
             
                class Collection < Aws::Resources::Collection; end
         
     | 
| 
       1553 
1553 
     | 
    
         
             
              end
         
     | 
| 
       1554 
1554 
     | 
    
         
             
            end
         
     | 
| 
      
 1555 
     | 
    
         
            +
             
     | 
| 
      
 1556 
     | 
    
         
            +
            # Load customizations if they exist
         
     | 
| 
      
 1557 
     | 
    
         
            +
            require 'aws-sdk-s3/customizations/bucket'
         
     | 
| 
         @@ -40,6 +40,26 @@ module Aws::S3 
     | 
|
| 
       40 
40 
     | 
    
         
             
                  data[:rules]
         
     | 
| 
       41 
41 
     | 
    
         
             
                end
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
      
 43 
     | 
    
         
            +
                # Indicates which default minimum object size behavior is applied to the
         
     | 
| 
      
 44 
     | 
    
         
            +
                # lifecycle configuration.
         
     | 
| 
      
 45 
     | 
    
         
            +
                #
         
     | 
| 
      
 46 
     | 
    
         
            +
                # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
         
     | 
| 
      
 47 
     | 
    
         
            +
                #   transition to any storage class by default.
         
     | 
| 
      
 48 
     | 
    
         
            +
                #
         
     | 
| 
      
 49 
     | 
    
         
            +
                # * `varies_by_storage_class` - Objects smaller than 128 KB will
         
     | 
| 
      
 50 
     | 
    
         
            +
                #   transition to Glacier Flexible Retrieval or Glacier Deep Archive
         
     | 
| 
      
 51 
     | 
    
         
            +
                #   storage classes. By default, all other storage classes will prevent
         
     | 
| 
      
 52 
     | 
    
         
            +
                #   transitions smaller than 128 KB.
         
     | 
| 
      
 53 
     | 
    
         
            +
                #
         
     | 
| 
      
 54 
     | 
    
         
            +
                # To customize the minimum object size for any transition you can add a
         
     | 
| 
      
 55 
     | 
    
         
            +
                # filter that specifies a custom `ObjectSizeGreaterThan` or
         
     | 
| 
      
 56 
     | 
    
         
            +
                # `ObjectSizeLessThan` in the body of your transition rule. Custom
         
     | 
| 
      
 57 
     | 
    
         
            +
                # filters always take precedence over the default transition behavior.
         
     | 
| 
      
 58 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 59 
     | 
    
         
            +
                def transition_default_minimum_object_size
         
     | 
| 
      
 60 
     | 
    
         
            +
                  data[:transition_default_minimum_object_size]
         
     | 
| 
      
 61 
     | 
    
         
            +
                end
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
       43 
63 
     | 
    
         
             
                # @!endgroup
         
     | 
| 
       44 
64 
     | 
    
         | 
| 
       45 
65 
     | 
    
         
             
                # @return [Client]
         
     | 
| 
         @@ -257,6 +277,7 @@ module Aws::S3 
     | 
|
| 
       257 
277 
     | 
    
         
             
                #       ],
         
     | 
| 
       258 
278 
     | 
    
         
             
                #     },
         
     | 
| 
       259 
279 
     | 
    
         
             
                #     expected_bucket_owner: "AccountId",
         
     | 
| 
      
 280 
     | 
    
         
            +
                #     transition_default_minimum_object_size: "varies_by_storage_class", # accepts varies_by_storage_class, all_storage_classes_128K
         
     | 
| 
       260 
281 
     | 
    
         
             
                #   })
         
     | 
| 
       261 
282 
     | 
    
         
             
                # @param [Hash] options ({})
         
     | 
| 
       262 
283 
     | 
    
         
             
                # @option options [String] :checksum_algorithm
         
     | 
| 
         @@ -280,7 +301,23 @@ module Aws::S3 
     | 
|
| 
       280 
301 
     | 
    
         
             
                #   The account ID of the expected bucket owner. If the account ID that
         
     | 
| 
       281 
302 
     | 
    
         
             
                #   you provide does not match the actual owner of the bucket, the request
         
     | 
| 
       282 
303 
     | 
    
         
             
                #   fails with the HTTP status code `403 Forbidden` (access denied).
         
     | 
| 
       283 
     | 
    
         
            -
                # @ 
     | 
| 
      
 304 
     | 
    
         
            +
                # @option options [String] :transition_default_minimum_object_size
         
     | 
| 
      
 305 
     | 
    
         
            +
                #   Indicates which default minimum object size behavior is applied to the
         
     | 
| 
      
 306 
     | 
    
         
            +
                #   lifecycle configuration.
         
     | 
| 
      
 307 
     | 
    
         
            +
                #
         
     | 
| 
      
 308 
     | 
    
         
            +
                #   * `all_storage_classes_128K` - Objects smaller than 128 KB will not
         
     | 
| 
      
 309 
     | 
    
         
            +
                #     transition to any storage class by default.
         
     | 
| 
      
 310 
     | 
    
         
            +
                #
         
     | 
| 
      
 311 
     | 
    
         
            +
                #   * `varies_by_storage_class` - Objects smaller than 128 KB will
         
     | 
| 
      
 312 
     | 
    
         
            +
                #     transition to Glacier Flexible Retrieval or Glacier Deep Archive
         
     | 
| 
      
 313 
     | 
    
         
            +
                #     storage classes. By default, all other storage classes will prevent
         
     | 
| 
      
 314 
     | 
    
         
            +
                #     transitions smaller than 128 KB.
         
     | 
| 
      
 315 
     | 
    
         
            +
                #
         
     | 
| 
      
 316 
     | 
    
         
            +
                #   To customize the minimum object size for any transition you can add a
         
     | 
| 
      
 317 
     | 
    
         
            +
                #   filter that specifies a custom `ObjectSizeGreaterThan` or
         
     | 
| 
      
 318 
     | 
    
         
            +
                #   `ObjectSizeLessThan` in the body of your transition rule. Custom
         
     | 
| 
      
 319 
     | 
    
         
            +
                #   filters always take precedence over the default transition behavior.
         
     | 
| 
      
 320 
     | 
    
         
            +
                # @return [Types::PutBucketLifecycleConfigurationOutput]
         
     | 
| 
       284 
321 
     | 
    
         
             
                def put(options = {})
         
     | 
| 
       285 
322 
     | 
    
         
             
                  options = options.merge(bucket: @bucket_name)
         
     | 
| 
       286 
323 
     | 
    
         
             
                  resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
         
     | 
| 
         @@ -234,13 +234,13 @@ module Aws::S3 
     | 
|
| 
       234 
234 
     | 
    
         
             
                #   For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
         
     | 
| 
       235 
235 
     | 
    
         
             
                #   the supported algorithm from the following list:
         
     | 
| 
       236 
236 
     | 
    
         
             
                #
         
     | 
| 
       237 
     | 
    
         
            -
                #   * CRC32
         
     | 
| 
      
 237 
     | 
    
         
            +
                #   * `CRC32`
         
     | 
| 
       238 
238 
     | 
    
         
             
                #
         
     | 
| 
       239 
     | 
    
         
            -
                #   * CRC32C
         
     | 
| 
      
 239 
     | 
    
         
            +
                #   * `CRC32C`
         
     | 
| 
       240 
240 
     | 
    
         
             
                #
         
     | 
| 
       241 
     | 
    
         
            -
                #   * SHA1
         
     | 
| 
      
 241 
     | 
    
         
            +
                #   * `SHA1`
         
     | 
| 
       242 
242 
     | 
    
         
             
                #
         
     | 
| 
       243 
     | 
    
         
            -
                #   * SHA256
         
     | 
| 
      
 243 
     | 
    
         
            +
                #   * `SHA256`
         
     | 
| 
       244 
244 
     | 
    
         
             
                #
         
     | 
| 
       245 
245 
     | 
    
         
             
                #   For more information, see [Checking object integrity][1] in the
         
     | 
| 
       246 
246 
     | 
    
         
             
                #   *Amazon S3 User Guide*.
         
     |