aws-sdk-s3 1.184.0 → 1.188.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 198983606f7967f0a828fcbf227ffb31ad3e7f855ace22bcb0a2ada02b523678
4
- data.tar.gz: 8e29251b087ca2e4192ed5b2428526f4ed997b903692fbbca3debefa0a0376bf
3
+ metadata.gz: 310470bdb24160f824d153efac697cd69471c516d2714a2b4129160fff6bf74e
4
+ data.tar.gz: 1d8aa63b1f3b817352dbb57e66da5e41b27ba6948cbe2cc53ee6ba4866861d98
5
5
  SHA512:
6
- metadata.gz: 022ba7a6f1a65d5ab7633a83c002724bc7be5c1e4fd774527f3c6078af039a8c3f6a658d42ec849b2d3490544ed5a15aec26a08df51637f613ff5973be19446e
7
- data.tar.gz: d2adda5d22a9f6c8c921e8884166d34c010497997e4876bf31fa057e7e7727a2968be14a0fde094e7eddb71f1217bf166401565c110aa6f81b4cff2f7a9f8a21
6
+ metadata.gz: 9896f94797c2d66c75c3e874db351bd6e48293724e792f60a070a42594849de4b302db4b97c04dd0165986dfec2a808063bdd8d63499ea2f8a84b42ea0f8ef03
7
+ data.tar.gz: c82ec444b9a7a940cb433908bdab83c05597d1b83899ba93d2c6341366ec8596df39e10dd982674fdc08fa4857aca3d9066781356df1b7b480af2868087b8a9c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,32 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.188.0 (2025-05-29)
5
+ ------------------
6
+
7
+ * Feature - Adding checksum support for S3 PutBucketOwnershipControls API.
8
+
9
+ 1.187.0 (2025-05-28)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Signal data in http response listeners prior to writing, so that data can be inspected or verified before potential mutation.
15
+
16
+ 1.186.1 (2025-05-15)
17
+ ------------------
18
+ * Issue - Abort multipart download if object is modified during download.
19
+
20
+ 1.186.0 (2025-05-12)
21
+ ------------------
22
+
23
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
24
+
25
+ 1.185.0 (2025-05-01)
26
+ ------------------
27
+
28
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
29
+
4
30
  1.184.0 (2025-04-28)
5
31
  ------------------
6
32
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.184.0
1
+ 1.188.0
@@ -256,8 +256,7 @@ module Aws::S3
256
256
  # accepted modes and the configuration defaults that are included.
257
257
  #
258
258
  # @option options [Boolean] :disable_host_prefix_injection (false)
259
- # Set to true to disable SDK automatically adding host prefix
260
- # to default service endpoint when available.
259
+ # When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
261
260
  #
262
261
  # @option options [Boolean] :disable_request_compression (false)
263
262
  # When set to 'true' the request body will not be compressed
@@ -2606,33 +2605,33 @@ module Aws::S3
2606
2605
  # * {Types::CreateBucketOutput#location #location} => String
2607
2606
  #
2608
2607
  #
2609
- # @example Example: To create a bucket
2608
+ # @example Example: To create a bucket in a specific region
2610
2609
  #
2611
- # # The following example creates a bucket.
2610
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
2612
2611
  #
2613
2612
  # resp = client.create_bucket({
2614
2613
  # bucket: "examplebucket",
2614
+ # create_bucket_configuration: {
2615
+ # location_constraint: "eu-west-1",
2616
+ # },
2615
2617
  # })
2616
2618
  #
2617
2619
  # resp.to_h outputs the following:
2618
2620
  # {
2619
- # location: "/examplebucket",
2621
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
2620
2622
  # }
2621
2623
  #
2622
- # @example Example: To create a bucket in a specific region
2624
+ # @example Example: To create a bucket
2623
2625
  #
2624
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
2626
+ # # The following example creates a bucket.
2625
2627
  #
2626
2628
  # resp = client.create_bucket({
2627
2629
  # bucket: "examplebucket",
2628
- # create_bucket_configuration: {
2629
- # location_constraint: "eu-west-1",
2630
- # },
2631
2630
  # })
2632
2631
  #
2633
2632
  # resp.to_h outputs the following:
2634
2633
  # {
2635
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
2634
+ # location: "/examplebucket",
2636
2635
  # }
2637
2636
  #
2638
2637
  # @example Request syntax with placeholder values
@@ -5797,22 +5796,20 @@ module Aws::S3
5797
5796
  # * {Types::DeleteObjectsOutput#errors #errors} => Array&lt;Types::Error&gt;
5798
5797
  #
5799
5798
  #
5800
- # @example Example: To delete multiple object versions from a versioned bucket
5799
+ # @example Example: To delete multiple objects from a versioned bucket
5801
5800
  #
5802
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
5803
- # # versions and returns the key and versions of deleted objects in the response.
5801
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
5802
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
5804
5803
  #
5805
5804
  # resp = client.delete_objects({
5806
5805
  # bucket: "examplebucket",
5807
5806
  # delete: {
5808
5807
  # objects: [
5809
5808
  # {
5810
- # key: "HappyFace.jpg",
5811
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
5809
+ # key: "objectkey1",
5812
5810
  # },
5813
5811
  # {
5814
- # key: "HappyFace.jpg",
5815
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
5812
+ # key: "objectkey2",
5816
5813
  # },
5817
5814
  # ],
5818
5815
  # quiet: false,
@@ -5823,30 +5820,34 @@ module Aws::S3
5823
5820
  # {
5824
5821
  # deleted: [
5825
5822
  # {
5826
- # key: "HappyFace.jpg",
5827
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
5823
+ # delete_marker: true,
5824
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
5825
+ # key: "objectkey1",
5828
5826
  # },
5829
5827
  # {
5830
- # key: "HappyFace.jpg",
5831
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
5828
+ # delete_marker: true,
5829
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
5830
+ # key: "objectkey2",
5832
5831
  # },
5833
5832
  # ],
5834
5833
  # }
5835
5834
  #
5836
- # @example Example: To delete multiple objects from a versioned bucket
5835
+ # @example Example: To delete multiple object versions from a versioned bucket
5837
5836
  #
5838
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
5839
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
5837
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
5838
+ # # versions and returns the key and versions of deleted objects in the response.
5840
5839
  #
5841
5840
  # resp = client.delete_objects({
5842
5841
  # bucket: "examplebucket",
5843
5842
  # delete: {
5844
5843
  # objects: [
5845
5844
  # {
5846
- # key: "objectkey1",
5845
+ # key: "HappyFace.jpg",
5846
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
5847
5847
  # },
5848
5848
  # {
5849
- # key: "objectkey2",
5849
+ # key: "HappyFace.jpg",
5850
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
5850
5851
  # },
5851
5852
  # ],
5852
5853
  # quiet: false,
@@ -5857,14 +5858,12 @@ module Aws::S3
5857
5858
  # {
5858
5859
  # deleted: [
5859
5860
  # {
5860
- # delete_marker: true,
5861
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
5862
- # key: "objectkey1",
5861
+ # key: "HappyFace.jpg",
5862
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
5863
5863
  # },
5864
5864
  # {
5865
- # delete_marker: true,
5866
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
5867
- # key: "objectkey2",
5865
+ # key: "HappyFace.jpg",
5866
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
5868
5867
  # },
5869
5868
  # ],
5870
5869
  # }
@@ -8752,49 +8751,49 @@ module Aws::S3
8752
8751
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
8753
8752
  #
8754
8753
  #
8755
- # @example Example: To retrieve an object
8754
+ # @example Example: To retrieve a byte range of an object
8756
8755
  #
8757
- # # The following example retrieves an object for an S3 bucket.
8756
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
8757
+ # # specific byte range.
8758
8758
  #
8759
8759
  # resp = client.get_object({
8760
8760
  # bucket: "examplebucket",
8761
- # key: "HappyFace.jpg",
8761
+ # key: "SampleFile.txt",
8762
+ # range: "bytes=0-9",
8762
8763
  # })
8763
8764
  #
8764
8765
  # resp.to_h outputs the following:
8765
8766
  # {
8766
8767
  # accept_ranges: "bytes",
8767
- # content_length: 3191,
8768
- # content_type: "image/jpeg",
8769
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
8770
- # last_modified: Time.parse("2016-12-15T01:19:41.000Z"),
8768
+ # content_length: 10,
8769
+ # content_range: "bytes 0-9/43",
8770
+ # content_type: "text/plain",
8771
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
8772
+ # last_modified: Time.parse("2014-10-09T22:57:28.000Z"),
8771
8773
  # metadata: {
8772
8774
  # },
8773
- # tag_count: 2,
8774
8775
  # version_id: "null",
8775
8776
  # }
8776
8777
  #
8777
- # @example Example: To retrieve a byte range of an object
8778
+ # @example Example: To retrieve an object
8778
8779
  #
8779
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
8780
- # # specific byte range.
8780
+ # # The following example retrieves an object for an S3 bucket.
8781
8781
  #
8782
8782
  # resp = client.get_object({
8783
8783
  # bucket: "examplebucket",
8784
- # key: "SampleFile.txt",
8785
- # range: "bytes=0-9",
8784
+ # key: "HappyFace.jpg",
8786
8785
  # })
8787
8786
  #
8788
8787
  # resp.to_h outputs the following:
8789
8788
  # {
8790
8789
  # accept_ranges: "bytes",
8791
- # content_length: 10,
8792
- # content_range: "bytes 0-9/43",
8793
- # content_type: "text/plain",
8794
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
8795
- # last_modified: Time.parse("2014-10-09T22:57:28.000Z"),
8790
+ # content_length: 3191,
8791
+ # content_type: "image/jpeg",
8792
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
8793
+ # last_modified: Time.parse("2016-12-15T01:19:41.000Z"),
8796
8794
  # metadata: {
8797
8795
  # },
8796
+ # tag_count: 2,
8798
8797
  # version_id: "null",
8799
8798
  # }
8800
8799
  #
@@ -9091,12 +9090,12 @@ module Aws::S3
9091
9090
  req.send_request(options)
9092
9091
  end
9093
9092
 
9094
- # Retrieves all the metadata from an object without returning the object
9095
- # itself. This operation is useful if you're interested only in an
9096
- # object's metadata.
9093
+ # Retrieves all of the metadata from an object without returning the
9094
+ # object itself. This operation is useful if you're interested only in
9095
+ # an object's metadata.
9097
9096
  #
9098
9097
  # `GetObjectAttributes` combines the functionality of `HeadObject` and
9099
- # `ListParts`. All of the data returned with each of those individual
9098
+ # `ListParts`. All of the data returned with both of those individual
9100
9099
  # calls can be returned with a single call to `GetObjectAttributes`.
9101
9100
  #
9102
9101
  # <note markdown="1"> **Directory buckets** - For directory buckets, you must make requests
@@ -9115,16 +9114,23 @@ module Aws::S3
9115
9114
  # Permissions
9116
9115
  # : * **General purpose bucket permissions** - To use
9117
9116
  # `GetObjectAttributes`, you must have READ access to the object.
9118
- # The permissions that you need to use this operation depend on
9119
- # whether the bucket is versioned. If the bucket is versioned, you
9120
- # need both the `s3:GetObjectVersion` and
9121
- # `s3:GetObjectVersionAttributes` permissions for this operation. If
9122
- # the bucket is not versioned, you need the `s3:GetObject` and
9123
- # `s3:GetObjectAttributes` permissions. For more information, see
9124
- # [Specifying Permissions in a Policy][3] in the *Amazon S3 User
9125
- # Guide*. If the object that you request does not exist, the error
9126
- # Amazon S3 returns depends on whether you also have the
9127
- # `s3:ListBucket` permission.
9117
+ #
9118
+ # The other permissions that you need to use this operation depend
9119
+ # on whether the bucket is versioned and if a version ID is passed
9120
+ # in the `GetObjectAttributes` request.
9121
+ #
9122
+ # * If you pass a version ID in your request, you need both the
9123
+ # `s3:GetObjectVersion` and `s3:GetObjectVersionAttributes`
9124
+ # permissions.
9125
+ #
9126
+ # * If you do not pass a version ID in your request, you need the
9127
+ # `s3:GetObject` and `s3:GetObjectAttributes` permissions.
9128
+ # For more information, see [Specifying Permissions in a Policy][3]
9129
+ # in the *Amazon S3 User Guide*.
9130
+ #
9131
+ # If the object that you request does not exist, the error Amazon S3
9132
+ # returns depends on whether you also have the `s3:ListBucket`
9133
+ # permission.
9128
9134
  #
9129
9135
  # * If you have the `s3:ListBucket` permission on the bucket, Amazon
9130
9136
  # S3 returns an HTTP status code `404 Not Found` ("no such key")
@@ -9168,12 +9174,12 @@ module Aws::S3
9168
9174
  #
9169
9175
  # </note>
9170
9176
  #
9171
- # If you encrypt an object by using server-side encryption with
9172
- # customer-provided encryption keys (SSE-C) when you store the object
9173
- # in Amazon S3, then when you retrieve the metadata from the object,
9174
- # you must use the following headers to provide the encryption key for
9175
- # the server to be able to retrieve the object's metadata. The
9176
- # headers are:
9177
+ # If you encrypted an object when you stored the object in Amazon S3
9178
+ # by using server-side encryption with customer-provided encryption
9179
+ # keys (SSE-C), then when you retrieve the metadata from the object,
9180
+ # you must use the following headers. These headers provide the server
9181
+ # with the encryption key required to retrieve the object's metadata.
9182
+ # The headers are:
9177
9183
  #
9178
9184
  # * `x-amz-server-side-encryption-customer-algorithm`
9179
9185
  #
@@ -9333,11 +9339,23 @@ module Aws::S3
9333
9339
  # </note>
9334
9340
  #
9335
9341
  # @option params [Integer] :max_parts
9336
- # Sets the maximum number of parts to return.
9342
+ # Sets the maximum number of parts to return. For more information, see
9343
+ # [Uploading and copying objects using multipart upload in Amazon S3
9344
+ # ][1] in the *Amazon Simple Storage Service user guide*.
9345
+ #
9346
+ #
9347
+ #
9348
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html
9337
9349
  #
9338
9350
  # @option params [Integer] :part_number_marker
9339
9351
  # Specifies the part after which listing should begin. Only parts with
9340
- # higher part numbers will be listed.
9352
+ # higher part numbers will be listed. For more information, see
9353
+ # [Uploading and copying objects using multipart upload in Amazon S3
9354
+ # ][1] in the *Amazon Simple Storage Service user guide*.
9355
+ #
9356
+ #
9357
+ #
9358
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html
9341
9359
  #
9342
9360
  # @option params [String] :sse_customer_algorithm
9343
9361
  # Specifies the algorithm to use when encrypting the object (for
@@ -15281,6 +15299,22 @@ module Aws::S3
15281
15299
  # The `OwnershipControls` (BucketOwnerEnforced, BucketOwnerPreferred, or
15282
15300
  # ObjectWriter) that you want to apply to this Amazon S3 bucket.
15283
15301
  #
15302
+ # @option params [String] :checksum_algorithm
15303
+ # Indicates the algorithm used to create the checksum for the object
15304
+ # when you use the SDK. This header will not provide any additional
15305
+ # functionality if you don't use the SDK. When you send this header,
15306
+ # there must be a corresponding `x-amz-checksum-algorithm ` header sent.
15307
+ # Otherwise, Amazon S3 fails the request with the HTTP status code `400
15308
+ # Bad Request`. For more information, see [Checking object integrity][1]
15309
+ # in the *Amazon S3 User Guide*.
15310
+ #
15311
+ # If you provide an individual checksum, Amazon S3 ignores any provided
15312
+ # `ChecksumAlgorithm` parameter.
15313
+ #
15314
+ #
15315
+ #
15316
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
15317
+ #
15284
15318
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
15285
15319
  #
15286
15320
  # @example Request syntax with placeholder values
@@ -15296,6 +15330,7 @@ module Aws::S3
15296
15330
  # },
15297
15331
  # ],
15298
15332
  # },
15333
+ # checksum_algorithm: "CRC32", # accepts CRC32, CRC32C, SHA1, SHA256, CRC64NVME
15299
15334
  # })
15300
15335
  #
15301
15336
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutBucketOwnershipControls AWS API Documentation
@@ -17134,38 +17169,39 @@ module Aws::S3
17134
17169
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
17135
17170
  #
17136
17171
  #
17137
- # @example Example: To create an object.
17172
+ # @example Example: To upload an object and specify canned ACL.
17138
17173
  #
17139
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
17174
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
17175
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
17140
17176
  #
17141
17177
  # resp = client.put_object({
17178
+ # acl: "authenticated-read",
17142
17179
  # body: "filetoupload",
17143
17180
  # bucket: "examplebucket",
17144
- # key: "objectkey",
17181
+ # key: "exampleobject",
17145
17182
  # })
17146
17183
  #
17147
17184
  # resp.to_h outputs the following:
17148
17185
  # {
17149
17186
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
17150
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
17187
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
17151
17188
  # }
17152
17189
  #
17153
- # @example Example: To upload an object and specify optional tags
17190
+ # @example Example: To upload an object
17154
17191
  #
17155
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
17156
- # # S3 returns version ID of the newly created object.
17192
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
17193
+ # # syntax. S3 returns VersionId of the newly created object.
17157
17194
  #
17158
17195
  # resp = client.put_object({
17159
- # body: "c:\\HappyFace.jpg",
17196
+ # body: "HappyFace.jpg",
17160
17197
  # bucket: "examplebucket",
17161
17198
  # key: "HappyFace.jpg",
17162
- # tagging: "key1=value1&key2=value2",
17163
17199
  # })
17164
17200
  #
17165
17201
  # resp.to_h outputs the following:
17166
17202
  # {
17167
17203
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
17168
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
17204
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
17169
17205
  # }
17170
17206
  #
17171
17207
  # @example Example: To upload an object (specify optional headers)
@@ -17188,22 +17224,22 @@ module Aws::S3
17188
17224
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
17189
17225
  # }
17190
17226
  #
17191
- # @example Example: To upload an object and specify canned ACL.
17227
+ # @example Example: To upload an object and specify optional tags
17192
17228
  #
17193
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
17194
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
17229
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
17230
+ # # S3 returns version ID of the newly created object.
17195
17231
  #
17196
17232
  # resp = client.put_object({
17197
- # acl: "authenticated-read",
17198
- # body: "filetoupload",
17233
+ # body: "c:\\HappyFace.jpg",
17199
17234
  # bucket: "examplebucket",
17200
- # key: "exampleobject",
17235
+ # key: "HappyFace.jpg",
17236
+ # tagging: "key1=value1&key2=value2",
17201
17237
  # })
17202
17238
  #
17203
17239
  # resp.to_h outputs the following:
17204
17240
  # {
17205
17241
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
17206
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
17242
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
17207
17243
  # }
17208
17244
  #
17209
17245
  # @example Example: To upload an object and specify server-side encryption and object tags
@@ -17247,21 +17283,20 @@ module Aws::S3
17247
17283
  # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
17248
17284
  # }
17249
17285
  #
17250
- # @example Example: To upload an object
17286
+ # @example Example: To create an object.
17251
17287
  #
17252
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
17253
- # # syntax. S3 returns VersionId of the newly created object.
17288
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
17254
17289
  #
17255
17290
  # resp = client.put_object({
17256
- # body: "HappyFace.jpg",
17291
+ # body: "filetoupload",
17257
17292
  # bucket: "examplebucket",
17258
- # key: "HappyFace.jpg",
17293
+ # key: "objectkey",
17259
17294
  # })
17260
17295
  #
17261
17296
  # resp.to_h outputs the following:
17262
17297
  # {
17263
17298
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
17264
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
17299
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
17265
17300
  # }
17266
17301
  #
17267
17302
  # @example Streaming a file from disk
@@ -20163,45 +20198,45 @@ module Aws::S3
20163
20198
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
20164
20199
  #
20165
20200
  #
20166
- # @example Example: To upload a part by copying byte range from an existing object as data source
20201
+ # @example Example: To upload a part by copying data from an existing object as data source
20167
20202
  #
20168
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
20169
- # # data source.
20203
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
20170
20204
  #
20171
20205
  # resp = client.upload_part_copy({
20172
20206
  # bucket: "examplebucket",
20173
20207
  # copy_source: "/bucketname/sourceobjectkey",
20174
- # copy_source_range: "bytes=1-100000",
20175
20208
  # key: "examplelargeobject",
20176
- # part_number: 2,
20209
+ # part_number: 1,
20177
20210
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
20178
20211
  # })
20179
20212
  #
20180
20213
  # resp.to_h outputs the following:
20181
20214
  # {
20182
20215
  # copy_part_result: {
20183
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
20184
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
20216
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
20217
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
20185
20218
  # },
20186
20219
  # }
20187
20220
  #
20188
- # @example Example: To upload a part by copying data from an existing object as data source
20221
+ # @example Example: To upload a part by copying byte range from an existing object as data source
20189
20222
  #
20190
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
20223
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
20224
+ # # data source.
20191
20225
  #
20192
20226
  # resp = client.upload_part_copy({
20193
20227
  # bucket: "examplebucket",
20194
20228
  # copy_source: "/bucketname/sourceobjectkey",
20229
+ # copy_source_range: "bytes=1-100000",
20195
20230
  # key: "examplelargeobject",
20196
- # part_number: 1,
20231
+ # part_number: 2,
20197
20232
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
20198
20233
  # })
20199
20234
  #
20200
20235
  # resp.to_h outputs the following:
20201
20236
  # {
20202
20237
  # copy_part_result: {
20203
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
20204
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
20238
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
20239
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
20205
20240
  # },
20206
20241
  # }
20207
20242
  #
@@ -20548,12 +20583,18 @@ module Aws::S3
20548
20583
  #
20549
20584
  # @option params [String] :request_charged
20550
20585
  # If present, indicates that the requester was successfully charged for
20551
- # the request.
20586
+ # the request. For more information, see [Using Requester Pays buckets
20587
+ # for storage transfers and usage][1] in the *Amazon Simple Storage
20588
+ # Service user guide*.
20552
20589
  #
20553
20590
  # <note markdown="1"> This functionality is not supported for directory buckets.
20554
20591
  #
20555
20592
  # </note>
20556
20593
  #
20594
+ #
20595
+ #
20596
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/RequesterPaysBuckets.html
20597
+ #
20557
20598
  # @option params [String] :restore
20558
20599
  # Provides information about object restoration operation and expiration
20559
20600
  # time of the restored object copy.
@@ -20681,7 +20722,7 @@ module Aws::S3
20681
20722
  tracer: tracer
20682
20723
  )
20683
20724
  context[:gem_name] = 'aws-sdk-s3'
20684
- context[:gem_version] = '1.184.0'
20725
+ context[:gem_version] = '1.188.0'
20685
20726
  Seahorse::Client::Request.new(handlers, context)
20686
20727
  end
20687
20728