aws-sdk-s3 1.145.0 → 1.146.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/client.rb +107 -107
- 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: 8cce0ddd011617e3a15f4cb1464889a47d48f05fdaf43646dcb36a5eb4b9665e
         | 
| 4 | 
            +
              data.tar.gz: dc2ccdaa403c4d7c9cfe1eb085699cf1d88fb8db028466bcfef132214a5e74db
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f2dc083affe7245a9ba3c60ecaef2005b1ca390c0c98462319ba90710145932283520974bcb69bbe52f7d9ecf8bae930aadece66b599b3596b772f04b1176ad6
         | 
| 7 | 
            +
              data.tar.gz: ed714310763321fd85aaf09901f3bea4079f08ba6f1717e3bb5fcd22638159e1f9dd54a709e8f562e587deec63cb0b5904f4b37ceb9fdd15b29f35ea7ccede10
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1. | 
| 1 | 
            +
            1.146.0
         | 
    
        data/lib/aws-sdk-s3/client.rb
    CHANGED
    
    | @@ -2291,33 +2291,33 @@ module Aws::S3 | |
| 2291 2291 | 
             
                #   * {Types::CreateBucketOutput#location #location} => String
         | 
| 2292 2292 | 
             
                #
         | 
| 2293 2293 | 
             
                #
         | 
| 2294 | 
            -
                # @example Example: To create a bucket  | 
| 2294 | 
            +
                # @example Example: To create a bucket 
         | 
| 2295 2295 | 
             
                #
         | 
| 2296 | 
            -
                #   # The following example creates a bucket. | 
| 2296 | 
            +
                #   # The following example creates a bucket.
         | 
| 2297 2297 | 
             
                #
         | 
| 2298 2298 | 
             
                #   resp = client.create_bucket({
         | 
| 2299 2299 | 
             
                #     bucket: "examplebucket", 
         | 
| 2300 | 
            -
                #     create_bucket_configuration: {
         | 
| 2301 | 
            -
                #       location_constraint: "eu-west-1", 
         | 
| 2302 | 
            -
                #     }, 
         | 
| 2303 2300 | 
             
                #   })
         | 
| 2304 2301 | 
             
                #
         | 
| 2305 2302 | 
             
                #   resp.to_h outputs the following:
         | 
| 2306 2303 | 
             
                #   {
         | 
| 2307 | 
            -
                #     location: " | 
| 2304 | 
            +
                #     location: "/examplebucket", 
         | 
| 2308 2305 | 
             
                #   }
         | 
| 2309 2306 | 
             
                #
         | 
| 2310 | 
            -
                # @example Example: To create a bucket 
         | 
| 2307 | 
            +
                # @example Example: To create a bucket in a specific region
         | 
| 2311 2308 | 
             
                #
         | 
| 2312 | 
            -
                #   # The following example creates a bucket.
         | 
| 2309 | 
            +
                #   # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
         | 
| 2313 2310 | 
             
                #
         | 
| 2314 2311 | 
             
                #   resp = client.create_bucket({
         | 
| 2315 2312 | 
             
                #     bucket: "examplebucket", 
         | 
| 2313 | 
            +
                #     create_bucket_configuration: {
         | 
| 2314 | 
            +
                #       location_constraint: "eu-west-1", 
         | 
| 2315 | 
            +
                #     }, 
         | 
| 2316 2316 | 
             
                #   })
         | 
| 2317 2317 | 
             
                #
         | 
| 2318 2318 | 
             
                #   resp.to_h outputs the following:
         | 
| 2319 2319 | 
             
                #   {
         | 
| 2320 | 
            -
                #     location: "/ | 
| 2320 | 
            +
                #     location: "http://examplebucket.<Region>.s3.amazonaws.com/", 
         | 
| 2321 2321 | 
             
                #   }
         | 
| 2322 2322 | 
             
                #
         | 
| 2323 2323 | 
             
                # @example Request syntax with placeholder values
         | 
| @@ -4450,15 +4450,6 @@ module Aws::S3 | |
| 4450 4450 | 
             
                #   * {Types::DeleteObjectOutput#request_charged #request_charged} => String
         | 
| 4451 4451 | 
             
                #
         | 
| 4452 4452 | 
             
                #
         | 
| 4453 | 
            -
                # @example Example: To delete an object (from a non-versioned bucket)
         | 
| 4454 | 
            -
                #
         | 
| 4455 | 
            -
                #   # The following example deletes an object from a non-versioned bucket.
         | 
| 4456 | 
            -
                #
         | 
| 4457 | 
            -
                #   resp = client.delete_object({
         | 
| 4458 | 
            -
                #     bucket: "ExampleBucket", 
         | 
| 4459 | 
            -
                #     key: "HappyFace.jpg", 
         | 
| 4460 | 
            -
                #   })
         | 
| 4461 | 
            -
                #
         | 
| 4462 4453 | 
             
                # @example Example: To delete an object
         | 
| 4463 4454 | 
             
                #
         | 
| 4464 4455 | 
             
                #   # The following example deletes an object from an S3 bucket.
         | 
| @@ -4472,6 +4463,15 @@ module Aws::S3 | |
| 4472 4463 | 
             
                #   {
         | 
| 4473 4464 | 
             
                #   }
         | 
| 4474 4465 | 
             
                #
         | 
| 4466 | 
            +
                # @example Example: To delete an object (from a non-versioned bucket)
         | 
| 4467 | 
            +
                #
         | 
| 4468 | 
            +
                #   # The following example deletes an object from a non-versioned bucket.
         | 
| 4469 | 
            +
                #
         | 
| 4470 | 
            +
                #   resp = client.delete_object({
         | 
| 4471 | 
            +
                #     bucket: "ExampleBucket", 
         | 
| 4472 | 
            +
                #     key: "HappyFace.jpg", 
         | 
| 4473 | 
            +
                #   })
         | 
| 4474 | 
            +
                #
         | 
| 4475 4475 | 
             
                # @example Request syntax with placeholder values
         | 
| 4476 4476 | 
             
                #
         | 
| 4477 4477 | 
             
                #   resp = client.delete_object({
         | 
| @@ -4881,20 +4881,22 @@ module Aws::S3 | |
| 4881 4881 | 
             
                #   * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
         | 
| 4882 4882 | 
             
                #
         | 
| 4883 4883 | 
             
                #
         | 
| 4884 | 
            -
                # @example Example: To delete multiple  | 
| 4884 | 
            +
                # @example Example: To delete multiple object versions from a versioned bucket
         | 
| 4885 4885 | 
             
                #
         | 
| 4886 | 
            -
                #   # The following example deletes objects from a bucket. The  | 
| 4887 | 
            -
                #   #  | 
| 4886 | 
            +
                #   # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
         | 
| 4887 | 
            +
                #   # versions and returns the key and versions of deleted objects in the response.
         | 
| 4888 4888 | 
             
                #
         | 
| 4889 4889 | 
             
                #   resp = client.delete_objects({
         | 
| 4890 4890 | 
             
                #     bucket: "examplebucket", 
         | 
| 4891 4891 | 
             
                #     delete: {
         | 
| 4892 4892 | 
             
                #       objects: [
         | 
| 4893 4893 | 
             
                #         {
         | 
| 4894 | 
            -
                #           key: " | 
| 4894 | 
            +
                #           key: "HappyFace.jpg", 
         | 
| 4895 | 
            +
                #           version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b", 
         | 
| 4895 4896 | 
             
                #         }, 
         | 
| 4896 4897 | 
             
                #         {
         | 
| 4897 | 
            -
                #           key: " | 
| 4898 | 
            +
                #           key: "HappyFace.jpg", 
         | 
| 4899 | 
            +
                #           version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd", 
         | 
| 4898 4900 | 
             
                #         }, 
         | 
| 4899 4901 | 
             
                #       ], 
         | 
| 4900 4902 | 
             
                #       quiet: false, 
         | 
| @@ -4905,34 +4907,30 @@ module Aws::S3 | |
| 4905 4907 | 
             
                #   {
         | 
| 4906 4908 | 
             
                #     deleted: [
         | 
| 4907 4909 | 
             
                #       {
         | 
| 4908 | 
            -
                #          | 
| 4909 | 
            -
                #          | 
| 4910 | 
            -
                #         key: "objectkey1", 
         | 
| 4910 | 
            +
                #         key: "HappyFace.jpg", 
         | 
| 4911 | 
            +
                #         version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd", 
         | 
| 4911 4912 | 
             
                #       }, 
         | 
| 4912 4913 | 
             
                #       {
         | 
| 4913 | 
            -
                #          | 
| 4914 | 
            -
                #          | 
| 4915 | 
            -
                #         key: "objectkey2", 
         | 
| 4914 | 
            +
                #         key: "HappyFace.jpg", 
         | 
| 4915 | 
            +
                #         version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b", 
         | 
| 4916 4916 | 
             
                #       }, 
         | 
| 4917 4917 | 
             
                #     ], 
         | 
| 4918 4918 | 
             
                #   }
         | 
| 4919 4919 | 
             
                #
         | 
| 4920 | 
            -
                # @example Example: To delete multiple  | 
| 4920 | 
            +
                # @example Example: To delete multiple objects from a versioned bucket
         | 
| 4921 4921 | 
             
                #
         | 
| 4922 | 
            -
                #   # The following example deletes objects from a bucket. The  | 
| 4923 | 
            -
                #   #  | 
| 4922 | 
            +
                #   # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
         | 
| 4923 | 
            +
                #   # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
         | 
| 4924 4924 | 
             
                #
         | 
| 4925 4925 | 
             
                #   resp = client.delete_objects({
         | 
| 4926 4926 | 
             
                #     bucket: "examplebucket", 
         | 
| 4927 4927 | 
             
                #     delete: {
         | 
| 4928 4928 | 
             
                #       objects: [
         | 
| 4929 4929 | 
             
                #         {
         | 
| 4930 | 
            -
                #           key: " | 
| 4931 | 
            -
                #           version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b", 
         | 
| 4930 | 
            +
                #           key: "objectkey1", 
         | 
| 4932 4931 | 
             
                #         }, 
         | 
| 4933 4932 | 
             
                #         {
         | 
| 4934 | 
            -
                #           key: " | 
| 4935 | 
            -
                #           version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd", 
         | 
| 4933 | 
            +
                #           key: "objectkey2", 
         | 
| 4936 4934 | 
             
                #         }, 
         | 
| 4937 4935 | 
             
                #       ], 
         | 
| 4938 4936 | 
             
                #       quiet: false, 
         | 
| @@ -4943,12 +4941,14 @@ module Aws::S3 | |
| 4943 4941 | 
             
                #   {
         | 
| 4944 4942 | 
             
                #     deleted: [
         | 
| 4945 4943 | 
             
                #       {
         | 
| 4946 | 
            -
                #          | 
| 4947 | 
            -
                #          | 
| 4944 | 
            +
                #         delete_marker: true, 
         | 
| 4945 | 
            +
                #         delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", 
         | 
| 4946 | 
            +
                #         key: "objectkey1", 
         | 
| 4948 4947 | 
             
                #       }, 
         | 
| 4949 4948 | 
             
                #       {
         | 
| 4950 | 
            -
                #          | 
| 4951 | 
            -
                #          | 
| 4949 | 
            +
                #         delete_marker: true, 
         | 
| 4950 | 
            +
                #         delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", 
         | 
| 4951 | 
            +
                #         key: "objectkey2", 
         | 
| 4952 4952 | 
             
                #       }, 
         | 
| 4953 4953 | 
             
                #     ], 
         | 
| 4954 4954 | 
             
                #   }
         | 
| @@ -7656,49 +7656,49 @@ module Aws::S3 | |
| 7656 7656 | 
             
                #   * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
         | 
| 7657 7657 | 
             
                #
         | 
| 7658 7658 | 
             
                #
         | 
| 7659 | 
            -
                # @example Example: To retrieve an object
         | 
| 7659 | 
            +
                # @example Example: To retrieve a byte range of an object 
         | 
| 7660 7660 | 
             
                #
         | 
| 7661 | 
            -
                #   # The following example retrieves an object for an S3 bucket.
         | 
| 7661 | 
            +
                #   # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
         | 
| 7662 | 
            +
                #   # specific byte range.
         | 
| 7662 7663 | 
             
                #
         | 
| 7663 7664 | 
             
                #   resp = client.get_object({
         | 
| 7664 7665 | 
             
                #     bucket: "examplebucket", 
         | 
| 7665 | 
            -
                #     key: " | 
| 7666 | 
            +
                #     key: "SampleFile.txt", 
         | 
| 7667 | 
            +
                #     range: "bytes=0-9", 
         | 
| 7666 7668 | 
             
                #   })
         | 
| 7667 7669 | 
             
                #
         | 
| 7668 7670 | 
             
                #   resp.to_h outputs the following:
         | 
| 7669 7671 | 
             
                #   {
         | 
| 7670 7672 | 
             
                #     accept_ranges: "bytes", 
         | 
| 7671 | 
            -
                #     content_length:  | 
| 7672 | 
            -
                #      | 
| 7673 | 
            -
                #      | 
| 7674 | 
            -
                #      | 
| 7673 | 
            +
                #     content_length: 10, 
         | 
| 7674 | 
            +
                #     content_range: "bytes 0-9/43", 
         | 
| 7675 | 
            +
                #     content_type: "text/plain", 
         | 
| 7676 | 
            +
                #     etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"", 
         | 
| 7677 | 
            +
                #     last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"), 
         | 
| 7675 7678 | 
             
                #     metadata: {
         | 
| 7676 7679 | 
             
                #     }, 
         | 
| 7677 | 
            -
                #     tag_count: 2, 
         | 
| 7678 7680 | 
             
                #     version_id: "null", 
         | 
| 7679 7681 | 
             
                #   }
         | 
| 7680 7682 | 
             
                #
         | 
| 7681 | 
            -
                # @example Example: To retrieve  | 
| 7683 | 
            +
                # @example Example: To retrieve an object
         | 
| 7682 7684 | 
             
                #
         | 
| 7683 | 
            -
                #   # The following example retrieves an object for an S3 bucket. | 
| 7684 | 
            -
                #   # specific byte range.
         | 
| 7685 | 
            +
                #   # The following example retrieves an object for an S3 bucket.
         | 
| 7685 7686 | 
             
                #
         | 
| 7686 7687 | 
             
                #   resp = client.get_object({
         | 
| 7687 7688 | 
             
                #     bucket: "examplebucket", 
         | 
| 7688 | 
            -
                #     key: " | 
| 7689 | 
            -
                #     range: "bytes=0-9", 
         | 
| 7689 | 
            +
                #     key: "HappyFace.jpg", 
         | 
| 7690 7690 | 
             
                #   })
         | 
| 7691 7691 | 
             
                #
         | 
| 7692 7692 | 
             
                #   resp.to_h outputs the following:
         | 
| 7693 7693 | 
             
                #   {
         | 
| 7694 7694 | 
             
                #     accept_ranges: "bytes", 
         | 
| 7695 | 
            -
                #     content_length:  | 
| 7696 | 
            -
                #      | 
| 7697 | 
            -
                #      | 
| 7698 | 
            -
                #      | 
| 7699 | 
            -
                #     last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"), 
         | 
| 7695 | 
            +
                #     content_length: 3191, 
         | 
| 7696 | 
            +
                #     content_type: "image/jpeg", 
         | 
| 7697 | 
            +
                #     etag: "\"6805f2cfc46c0f04559748bb039d69ae\"", 
         | 
| 7698 | 
            +
                #     last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"), 
         | 
| 7700 7699 | 
             
                #     metadata: {
         | 
| 7701 7700 | 
             
                #     }, 
         | 
| 7701 | 
            +
                #     tag_count: 2, 
         | 
| 7702 7702 | 
             
                #     version_id: "null", 
         | 
| 7703 7703 | 
             
                #   }
         | 
| 7704 7704 | 
             
                #
         | 
| @@ -8698,49 +8698,49 @@ module Aws::S3 | |
| 8698 8698 | 
             
                #   * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
         | 
| 8699 8699 | 
             
                #
         | 
| 8700 8700 | 
             
                #
         | 
| 8701 | 
            -
                # @example Example: To retrieve tag set of  | 
| 8701 | 
            +
                # @example Example: To retrieve tag set of a specific object version
         | 
| 8702 8702 | 
             
                #
         | 
| 8703 | 
            -
                #   # The following example retrieves tag set of an object.
         | 
| 8703 | 
            +
                #   # The following example retrieves tag set of an object. The request specifies object version.
         | 
| 8704 8704 | 
             
                #
         | 
| 8705 8705 | 
             
                #   resp = client.get_object_tagging({
         | 
| 8706 8706 | 
             
                #     bucket: "examplebucket", 
         | 
| 8707 | 
            -
                #     key: " | 
| 8707 | 
            +
                #     key: "exampleobject", 
         | 
| 8708 | 
            +
                #     version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI", 
         | 
| 8708 8709 | 
             
                #   })
         | 
| 8709 8710 | 
             
                #
         | 
| 8710 8711 | 
             
                #   resp.to_h outputs the following:
         | 
| 8711 8712 | 
             
                #   {
         | 
| 8712 8713 | 
             
                #     tag_set: [
         | 
| 8713 8714 | 
             
                #       {
         | 
| 8714 | 
            -
                #         key: " | 
| 8715 | 
            -
                #         value: " | 
| 8716 | 
            -
                #       }, 
         | 
| 8717 | 
            -
                #       {
         | 
| 8718 | 
            -
                #         key: "Key3", 
         | 
| 8719 | 
            -
                #         value: "Value3", 
         | 
| 8715 | 
            +
                #         key: "Key1", 
         | 
| 8716 | 
            +
                #         value: "Value1", 
         | 
| 8720 8717 | 
             
                #       }, 
         | 
| 8721 8718 | 
             
                #     ], 
         | 
| 8722 | 
            -
                #     version_id: " | 
| 8719 | 
            +
                #     version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI", 
         | 
| 8723 8720 | 
             
                #   }
         | 
| 8724 8721 | 
             
                #
         | 
| 8725 | 
            -
                # @example Example: To retrieve tag set of  | 
| 8722 | 
            +
                # @example Example: To retrieve tag set of an object
         | 
| 8726 8723 | 
             
                #
         | 
| 8727 | 
            -
                #   # The following example retrieves tag set of an object. | 
| 8724 | 
            +
                #   # The following example retrieves tag set of an object.
         | 
| 8728 8725 | 
             
                #
         | 
| 8729 8726 | 
             
                #   resp = client.get_object_tagging({
         | 
| 8730 8727 | 
             
                #     bucket: "examplebucket", 
         | 
| 8731 | 
            -
                #     key: " | 
| 8732 | 
            -
                #     version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI", 
         | 
| 8728 | 
            +
                #     key: "HappyFace.jpg", 
         | 
| 8733 8729 | 
             
                #   })
         | 
| 8734 8730 | 
             
                #
         | 
| 8735 8731 | 
             
                #   resp.to_h outputs the following:
         | 
| 8736 8732 | 
             
                #   {
         | 
| 8737 8733 | 
             
                #     tag_set: [
         | 
| 8738 8734 | 
             
                #       {
         | 
| 8739 | 
            -
                #         key: " | 
| 8740 | 
            -
                #         value: " | 
| 8735 | 
            +
                #         key: "Key4", 
         | 
| 8736 | 
            +
                #         value: "Value4", 
         | 
| 8737 | 
            +
                #       }, 
         | 
| 8738 | 
            +
                #       {
         | 
| 8739 | 
            +
                #         key: "Key3", 
         | 
| 8740 | 
            +
                #         value: "Value3", 
         | 
| 8741 8741 | 
             
                #       }, 
         | 
| 8742 8742 | 
             
                #     ], 
         | 
| 8743 | 
            -
                #     version_id: " | 
| 8743 | 
            +
                #     version_id: "null", 
         | 
| 8744 8744 | 
             
                #   }
         | 
| 8745 8745 | 
             
                #
         | 
| 8746 8746 | 
             
                # @example Request syntax with placeholder values
         | 
| @@ -15373,24 +15373,41 @@ module Aws::S3 | |
| 15373 15373 | 
             
                #   * {Types::PutObjectOutput#request_charged #request_charged} => String
         | 
| 15374 15374 | 
             
                #
         | 
| 15375 15375 | 
             
                #
         | 
| 15376 | 
            -
                # @example Example: To upload an object | 
| 15376 | 
            +
                # @example Example: To upload an object
         | 
| 15377 15377 | 
             
                #
         | 
| 15378 | 
            -
                #   # The following example uploads an object. The  | 
| 15379 | 
            -
                #   #  | 
| 15378 | 
            +
                #   # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
         | 
| 15379 | 
            +
                #   # syntax. S3 returns VersionId of the newly created object.
         | 
| 15380 15380 | 
             
                #
         | 
| 15381 15381 | 
             
                #   resp = client.put_object({
         | 
| 15382 | 
            -
                #     body: " | 
| 15382 | 
            +
                #     body: "HappyFace.jpg", 
         | 
| 15383 15383 | 
             
                #     bucket: "examplebucket", 
         | 
| 15384 | 
            -
                #     key: " | 
| 15384 | 
            +
                #     key: "HappyFace.jpg", 
         | 
| 15385 | 
            +
                #   })
         | 
| 15386 | 
            +
                #
         | 
| 15387 | 
            +
                #   resp.to_h outputs the following:
         | 
| 15388 | 
            +
                #   {
         | 
| 15389 | 
            +
                #     etag: "\"6805f2cfc46c0f04559748bb039d69ae\"", 
         | 
| 15390 | 
            +
                #     version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk", 
         | 
| 15391 | 
            +
                #   }
         | 
| 15392 | 
            +
                #
         | 
| 15393 | 
            +
                # @example Example: To upload an object (specify optional headers)
         | 
| 15394 | 
            +
                #
         | 
| 15395 | 
            +
                #   # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
         | 
| 15396 | 
            +
                #   # storage class and use server-side encryption.
         | 
| 15397 | 
            +
                #
         | 
| 15398 | 
            +
                #   resp = client.put_object({
         | 
| 15399 | 
            +
                #     body: "HappyFace.jpg", 
         | 
| 15400 | 
            +
                #     bucket: "examplebucket", 
         | 
| 15401 | 
            +
                #     key: "HappyFace.jpg", 
         | 
| 15385 15402 | 
             
                #     server_side_encryption: "AES256", 
         | 
| 15386 | 
            -
                #      | 
| 15403 | 
            +
                #     storage_class: "STANDARD_IA", 
         | 
| 15387 15404 | 
             
                #   })
         | 
| 15388 15405 | 
             
                #
         | 
| 15389 15406 | 
             
                #   resp.to_h outputs the following:
         | 
| 15390 15407 | 
             
                #   {
         | 
| 15391 15408 | 
             
                #     etag: "\"6805f2cfc46c0f04559748bb039d69ae\"", 
         | 
| 15392 15409 | 
             
                #     server_side_encryption: "AES256", 
         | 
| 15393 | 
            -
                #     version_id: " | 
| 15410 | 
            +
                #     version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp", 
         | 
| 15394 15411 | 
             
                #   }
         | 
| 15395 15412 | 
             
                #
         | 
| 15396 15413 | 
             
                # @example Example: To upload object and specify user-defined metadata
         | 
| @@ -15432,23 +15449,6 @@ module Aws::S3 | |
| 15432 15449 | 
             
                #     version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr", 
         | 
| 15433 15450 | 
             
                #   }
         | 
| 15434 15451 | 
             
                #
         | 
| 15435 | 
            -
                # @example Example: To upload an object
         | 
| 15436 | 
            -
                #
         | 
| 15437 | 
            -
                #   # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
         | 
| 15438 | 
            -
                #   # syntax. S3 returns VersionId of the newly created object.
         | 
| 15439 | 
            -
                #
         | 
| 15440 | 
            -
                #   resp = client.put_object({
         | 
| 15441 | 
            -
                #     body: "HappyFace.jpg", 
         | 
| 15442 | 
            -
                #     bucket: "examplebucket", 
         | 
| 15443 | 
            -
                #     key: "HappyFace.jpg", 
         | 
| 15444 | 
            -
                #   })
         | 
| 15445 | 
            -
                #
         | 
| 15446 | 
            -
                #   resp.to_h outputs the following:
         | 
| 15447 | 
            -
                #   {
         | 
| 15448 | 
            -
                #     etag: "\"6805f2cfc46c0f04559748bb039d69ae\"", 
         | 
| 15449 | 
            -
                #     version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk", 
         | 
| 15450 | 
            -
                #   }
         | 
| 15451 | 
            -
                #
         | 
| 15452 15452 | 
             
                # @example Example: To create an object.
         | 
| 15453 15453 | 
             
                #
         | 
| 15454 15454 | 
             
                #   # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
         | 
| @@ -15465,24 +15465,24 @@ module Aws::S3 | |
| 15465 15465 | 
             
                #     version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ", 
         | 
| 15466 15466 | 
             
                #   }
         | 
| 15467 15467 | 
             
                #
         | 
| 15468 | 
            -
                # @example Example: To upload an object  | 
| 15468 | 
            +
                # @example Example: To upload an object and specify server-side encryption and object tags
         | 
| 15469 15469 | 
             
                #
         | 
| 15470 | 
            -
                #   # The following example uploads an object. The request specifies optional  | 
| 15471 | 
            -
                #   #  | 
| 15470 | 
            +
                #   # The following example uploads an object. The request specifies the optional server-side encryption option. The request
         | 
| 15471 | 
            +
                #   # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
         | 
| 15472 15472 | 
             
                #
         | 
| 15473 15473 | 
             
                #   resp = client.put_object({
         | 
| 15474 | 
            -
                #     body: " | 
| 15474 | 
            +
                #     body: "filetoupload", 
         | 
| 15475 15475 | 
             
                #     bucket: "examplebucket", 
         | 
| 15476 | 
            -
                #     key: " | 
| 15476 | 
            +
                #     key: "exampleobject", 
         | 
| 15477 15477 | 
             
                #     server_side_encryption: "AES256", 
         | 
| 15478 | 
            -
                #      | 
| 15478 | 
            +
                #     tagging: "key1=value1&key2=value2", 
         | 
| 15479 15479 | 
             
                #   })
         | 
| 15480 15480 | 
             
                #
         | 
| 15481 15481 | 
             
                #   resp.to_h outputs the following:
         | 
| 15482 15482 | 
             
                #   {
         | 
| 15483 15483 | 
             
                #     etag: "\"6805f2cfc46c0f04559748bb039d69ae\"", 
         | 
| 15484 15484 | 
             
                #     server_side_encryption: "AES256", 
         | 
| 15485 | 
            -
                #     version_id: " | 
| 15485 | 
            +
                #     version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt", 
         | 
| 15486 15486 | 
             
                #   }
         | 
| 15487 15487 | 
             
                #
         | 
| 15488 15488 | 
             
                # @example Example: To upload an object and specify optional tags
         | 
| @@ -18792,7 +18792,7 @@ module Aws::S3 | |
| 18792 18792 | 
             
                    params: params,
         | 
| 18793 18793 | 
             
                    config: config)
         | 
| 18794 18794 | 
             
                  context[:gem_name] = 'aws-sdk-s3'
         | 
| 18795 | 
            -
                  context[:gem_version] = '1. | 
| 18795 | 
            +
                  context[:gem_version] = '1.146.0'
         | 
| 18796 18796 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 18797 18797 | 
             
                end
         | 
| 18798 18798 |  | 
    
        data/lib/aws-sdk-s3.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aws-sdk-s3
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1. | 
| 4 | 
            +
              version: 1.146.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Amazon Web Services
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024-03- | 
| 11 | 
            +
            date: 2024-03-18 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: aws-sdk-kms
         |