aws-sdk-s3 1.143.0 → 1.144.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2be86d662a76114802ed36113558cb7e2df85c21e6b94e0c7e47b9a69f92ca60
4
- data.tar.gz: 3218088810b2459826d8a0ac475be22c7daeee303e195c8f22bc3569f6a42ab7
3
+ metadata.gz: c649924be52736fe2a01f9fc28ed5041a2910f3a19556cf9052fa35822769fd7
4
+ data.tar.gz: e5fc6aa148c1754a404db0fe731571487347878748d9a39e88585b8632c725c2
5
5
  SHA512:
6
- metadata.gz: 02efd7ab304a9b6214ed80d59ff3ed833a3dedb28a6d444bbca6cad8cf46eebd6590290dffc8d0502014cbb31a9209e35cdf8c2e9d90c81b8398d97725f4028f
7
- data.tar.gz: 1af4e138d4866f2ab8e346039c7cf8b0dd141164c72f25b97ba80572bd614ee0881eecba3c8cd5cc58b274ac8318f18fdbbe1a06428b2f9abc5c59e8dbd7e495
6
+ metadata.gz: f4686748d1b80c3e2bc7d0a06846b5cacf2aa9ae9c5849c58b7f70a8ba8b5df0b7978ddcdd2a089e93fb8da3a1d1abe1506d5e52330bcc5fced3b2e14e74ac5f
7
+ data.tar.gz: bca11b0bdea119e64873bb943a75fb174b1592bec943065030847ce6c7f2f7f9af85c57c5e064f1377cbf4c17bb9752b0ee335aa262c7de3c7ab0d8b3f813588
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.144.0 (2024-03-13)
5
+ ------------------
6
+
7
+ * Feature - This release makes the default option for S3 on Outposts request signing to use the SigV4A algorithm when using AWS Common Runtime (CRT).
8
+
9
+ 1.143.1 (2024-03-12)
10
+ ------------------
11
+
12
+ * Issue - Include original part errors in message when aborting multipart upload fails (#2990).
13
+
4
14
  1.143.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.143.0
1
+ 1.144.0
@@ -2277,33 +2277,33 @@ module Aws::S3
2277
2277
  # * {Types::CreateBucketOutput#location #location} => String
2278
2278
  #
2279
2279
  #
2280
- # @example Example: To create a bucket
2280
+ # @example Example: To create a bucket in a specific region
2281
2281
  #
2282
- # # The following example creates a bucket.
2282
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
2283
2283
  #
2284
2284
  # resp = client.create_bucket({
2285
2285
  # bucket: "examplebucket",
2286
+ # create_bucket_configuration: {
2287
+ # location_constraint: "eu-west-1",
2288
+ # },
2286
2289
  # })
2287
2290
  #
2288
2291
  # resp.to_h outputs the following:
2289
2292
  # {
2290
- # location: "/examplebucket",
2293
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
2291
2294
  # }
2292
2295
  #
2293
- # @example Example: To create a bucket in a specific region
2296
+ # @example Example: To create a bucket
2294
2297
  #
2295
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
2298
+ # # The following example creates a bucket.
2296
2299
  #
2297
2300
  # resp = client.create_bucket({
2298
2301
  # bucket: "examplebucket",
2299
- # create_bucket_configuration: {
2300
- # location_constraint: "eu-west-1",
2301
- # },
2302
2302
  # })
2303
2303
  #
2304
2304
  # resp.to_h outputs the following:
2305
2305
  # {
2306
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
2306
+ # location: "/examplebucket",
2307
2307
  # }
2308
2308
  #
2309
2309
  # @example Request syntax with placeholder values
@@ -4543,35 +4543,35 @@ module Aws::S3
4543
4543
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
4544
4544
  #
4545
4545
  #
4546
- # @example Example: To remove tag set from an object version
4546
+ # @example Example: To remove tag set from an object
4547
4547
  #
4548
- # # The following example removes tag set associated with the specified object version. The request specifies both the
4549
- # # object key and object version.
4548
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
4549
+ # # operation removes tag set from the latest object version.
4550
4550
  #
4551
4551
  # resp = client.delete_object_tagging({
4552
4552
  # bucket: "examplebucket",
4553
4553
  # key: "HappyFace.jpg",
4554
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
4555
4554
  # })
4556
4555
  #
4557
4556
  # resp.to_h outputs the following:
4558
4557
  # {
4559
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
4558
+ # version_id: "null",
4560
4559
  # }
4561
4560
  #
4562
- # @example Example: To remove tag set from an object
4561
+ # @example Example: To remove tag set from an object version
4563
4562
  #
4564
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
4565
- # # operation removes tag set from the latest object version.
4563
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
4564
+ # # object key and object version.
4566
4565
  #
4567
4566
  # resp = client.delete_object_tagging({
4568
4567
  # bucket: "examplebucket",
4569
4568
  # key: "HappyFace.jpg",
4569
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
4570
4570
  # })
4571
4571
  #
4572
4572
  # resp.to_h outputs the following:
4573
4573
  # {
4574
- # version_id: "null",
4574
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
4575
4575
  # }
4576
4576
  #
4577
4577
  # @example Request syntax with placeholder values
@@ -4854,22 +4854,20 @@ module Aws::S3
4854
4854
  # * {Types::DeleteObjectsOutput#errors #errors} => Array&lt;Types::Error&gt;
4855
4855
  #
4856
4856
  #
4857
- # @example Example: To delete multiple object versions from a versioned bucket
4857
+ # @example Example: To delete multiple objects from a versioned bucket
4858
4858
  #
4859
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
4860
- # # versions and returns the key and versions of deleted objects in the response.
4859
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
4860
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
4861
4861
  #
4862
4862
  # resp = client.delete_objects({
4863
4863
  # bucket: "examplebucket",
4864
4864
  # delete: {
4865
4865
  # objects: [
4866
4866
  # {
4867
- # key: "HappyFace.jpg",
4868
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
4867
+ # key: "objectkey1",
4869
4868
  # },
4870
4869
  # {
4871
- # key: "HappyFace.jpg",
4872
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
4870
+ # key: "objectkey2",
4873
4871
  # },
4874
4872
  # ],
4875
4873
  # quiet: false,
@@ -4880,30 +4878,34 @@ module Aws::S3
4880
4878
  # {
4881
4879
  # deleted: [
4882
4880
  # {
4883
- # key: "HappyFace.jpg",
4884
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
4881
+ # delete_marker: true,
4882
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
4883
+ # key: "objectkey1",
4885
4884
  # },
4886
4885
  # {
4887
- # key: "HappyFace.jpg",
4888
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
4886
+ # delete_marker: true,
4887
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
4888
+ # key: "objectkey2",
4889
4889
  # },
4890
4890
  # ],
4891
4891
  # }
4892
4892
  #
4893
- # @example Example: To delete multiple objects from a versioned bucket
4893
+ # @example Example: To delete multiple object versions from a versioned bucket
4894
4894
  #
4895
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
4896
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
4895
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
4896
+ # # versions and returns the key and versions of deleted objects in the response.
4897
4897
  #
4898
4898
  # resp = client.delete_objects({
4899
4899
  # bucket: "examplebucket",
4900
4900
  # delete: {
4901
4901
  # objects: [
4902
4902
  # {
4903
- # key: "objectkey1",
4903
+ # key: "HappyFace.jpg",
4904
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
4904
4905
  # },
4905
4906
  # {
4906
- # key: "objectkey2",
4907
+ # key: "HappyFace.jpg",
4908
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
4907
4909
  # },
4908
4910
  # ],
4909
4911
  # quiet: false,
@@ -4914,14 +4916,12 @@ module Aws::S3
4914
4916
  # {
4915
4917
  # deleted: [
4916
4918
  # {
4917
- # delete_marker: true,
4918
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
4919
- # key: "objectkey1",
4919
+ # key: "HappyFace.jpg",
4920
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
4920
4921
  # },
4921
4922
  # {
4922
- # delete_marker: true,
4923
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
4924
- # key: "objectkey2",
4923
+ # key: "HappyFace.jpg",
4924
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
4925
4925
  # },
4926
4926
  # ],
4927
4927
  # }
@@ -8668,49 +8668,49 @@ module Aws::S3
8668
8668
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array&lt;Types::Tag&gt;
8669
8669
  #
8670
8670
  #
8671
- # @example Example: To retrieve tag set of an object
8671
+ # @example Example: To retrieve tag set of a specific object version
8672
8672
  #
8673
- # # The following example retrieves tag set of an object.
8673
+ # # The following example retrieves tag set of an object. The request specifies object version.
8674
8674
  #
8675
8675
  # resp = client.get_object_tagging({
8676
8676
  # bucket: "examplebucket",
8677
- # key: "HappyFace.jpg",
8677
+ # key: "exampleobject",
8678
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
8678
8679
  # })
8679
8680
  #
8680
8681
  # resp.to_h outputs the following:
8681
8682
  # {
8682
8683
  # tag_set: [
8683
8684
  # {
8684
- # key: "Key4",
8685
- # value: "Value4",
8686
- # },
8687
- # {
8688
- # key: "Key3",
8689
- # value: "Value3",
8685
+ # key: "Key1",
8686
+ # value: "Value1",
8690
8687
  # },
8691
8688
  # ],
8692
- # version_id: "null",
8689
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
8693
8690
  # }
8694
8691
  #
8695
- # @example Example: To retrieve tag set of a specific object version
8692
+ # @example Example: To retrieve tag set of an object
8696
8693
  #
8697
- # # The following example retrieves tag set of an object. The request specifies object version.
8694
+ # # The following example retrieves tag set of an object.
8698
8695
  #
8699
8696
  # resp = client.get_object_tagging({
8700
8697
  # bucket: "examplebucket",
8701
- # key: "exampleobject",
8702
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
8698
+ # key: "HappyFace.jpg",
8703
8699
  # })
8704
8700
  #
8705
8701
  # resp.to_h outputs the following:
8706
8702
  # {
8707
8703
  # tag_set: [
8708
8704
  # {
8709
- # key: "Key1",
8710
- # value: "Value1",
8705
+ # key: "Key4",
8706
+ # value: "Value4",
8707
+ # },
8708
+ # {
8709
+ # key: "Key3",
8710
+ # value: "Value3",
8711
8711
  # },
8712
8712
  # ],
8713
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
8713
+ # version_id: "null",
8714
8714
  # }
8715
8715
  #
8716
8716
  # @example Request syntax with placeholder values
@@ -15342,134 +15342,134 @@ module Aws::S3
15342
15342
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
15343
15343
  #
15344
15344
  #
15345
- # @example Example: To upload an object and specify server-side encryption and object tags
15345
+ # @example Example: To create an object.
15346
15346
  #
15347
- # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
15348
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
15347
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
15349
15348
  #
15350
15349
  # resp = client.put_object({
15351
15350
  # body: "filetoupload",
15352
15351
  # bucket: "examplebucket",
15353
- # key: "exampleobject",
15354
- # server_side_encryption: "AES256",
15355
- # tagging: "key1=value1&key2=value2",
15352
+ # key: "objectkey",
15356
15353
  # })
15357
15354
  #
15358
15355
  # resp.to_h outputs the following:
15359
15356
  # {
15360
15357
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15361
- # server_side_encryption: "AES256",
15362
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
15358
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
15363
15359
  # }
15364
15360
  #
15365
- # @example Example: To create an object.
15361
+ # @example Example: To upload object and specify user-defined metadata
15366
15362
  #
15367
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
15363
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
15364
+ # # enabled, S3 returns version ID in response.
15368
15365
  #
15369
15366
  # resp = client.put_object({
15370
15367
  # body: "filetoupload",
15371
15368
  # bucket: "examplebucket",
15372
- # key: "objectkey",
15369
+ # key: "exampleobject",
15370
+ # metadata: {
15371
+ # "metadata1" => "value1",
15372
+ # "metadata2" => "value2",
15373
+ # },
15373
15374
  # })
15374
15375
  #
15375
15376
  # resp.to_h outputs the following:
15376
15377
  # {
15377
15378
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15378
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
15379
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
15379
15380
  # }
15380
15381
  #
15381
- # @example Example: To upload an object (specify optional headers)
15382
+ # @example Example: To upload an object
15382
15383
  #
15383
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
15384
- # # storage class and use server-side encryption.
15384
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
15385
+ # # syntax. S3 returns VersionId of the newly created object.
15385
15386
  #
15386
15387
  # resp = client.put_object({
15387
15388
  # body: "HappyFace.jpg",
15388
15389
  # bucket: "examplebucket",
15389
15390
  # key: "HappyFace.jpg",
15390
- # server_side_encryption: "AES256",
15391
- # storage_class: "STANDARD_IA",
15392
15391
  # })
15393
15392
  #
15394
15393
  # resp.to_h outputs the following:
15395
15394
  # {
15396
15395
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15397
- # server_side_encryption: "AES256",
15398
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
15396
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
15399
15397
  # }
15400
15398
  #
15401
- # @example Example: To upload an object and specify optional tags
15399
+ # @example Example: To upload an object and specify canned ACL.
15402
15400
  #
15403
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
15404
- # # S3 returns version ID of the newly created object.
15401
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
15402
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
15405
15403
  #
15406
15404
  # resp = client.put_object({
15407
- # body: "c:\\HappyFace.jpg",
15405
+ # acl: "authenticated-read",
15406
+ # body: "filetoupload",
15408
15407
  # bucket: "examplebucket",
15409
- # key: "HappyFace.jpg",
15410
- # tagging: "key1=value1&key2=value2",
15408
+ # key: "exampleobject",
15411
15409
  # })
15412
15410
  #
15413
15411
  # resp.to_h outputs the following:
15414
15412
  # {
15415
15413
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15416
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
15414
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
15417
15415
  # }
15418
15416
  #
15419
- # @example Example: To upload object and specify user-defined metadata
15417
+ # @example Example: To upload an object (specify optional headers)
15420
15418
  #
15421
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
15422
- # # enabled, S3 returns version ID in response.
15419
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
15420
+ # # storage class and use server-side encryption.
15423
15421
  #
15424
15422
  # resp = client.put_object({
15425
- # body: "filetoupload",
15423
+ # body: "HappyFace.jpg",
15426
15424
  # bucket: "examplebucket",
15427
- # key: "exampleobject",
15428
- # metadata: {
15429
- # "metadata1" => "value1",
15430
- # "metadata2" => "value2",
15431
- # },
15425
+ # key: "HappyFace.jpg",
15426
+ # server_side_encryption: "AES256",
15427
+ # storage_class: "STANDARD_IA",
15432
15428
  # })
15433
15429
  #
15434
15430
  # resp.to_h outputs the following:
15435
15431
  # {
15436
15432
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15437
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
15433
+ # server_side_encryption: "AES256",
15434
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
15438
15435
  # }
15439
15436
  #
15440
- # @example Example: To upload an object and specify canned ACL.
15437
+ # @example Example: To upload an object and specify optional tags
15441
15438
  #
15442
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
15443
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
15439
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
15440
+ # # S3 returns version ID of the newly created object.
15444
15441
  #
15445
15442
  # resp = client.put_object({
15446
- # acl: "authenticated-read",
15447
- # body: "filetoupload",
15443
+ # body: "c:\\HappyFace.jpg",
15448
15444
  # bucket: "examplebucket",
15449
- # key: "exampleobject",
15445
+ # key: "HappyFace.jpg",
15446
+ # tagging: "key1=value1&key2=value2",
15450
15447
  # })
15451
15448
  #
15452
15449
  # resp.to_h outputs the following:
15453
15450
  # {
15454
15451
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15455
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
15452
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
15456
15453
  # }
15457
15454
  #
15458
- # @example Example: To upload an object
15455
+ # @example Example: To upload an object and specify server-side encryption and object tags
15459
15456
  #
15460
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
15461
- # # syntax. S3 returns VersionId of the newly created object.
15457
+ # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
15458
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
15462
15459
  #
15463
15460
  # resp = client.put_object({
15464
- # body: "HappyFace.jpg",
15461
+ # body: "filetoupload",
15465
15462
  # bucket: "examplebucket",
15466
- # key: "HappyFace.jpg",
15463
+ # key: "exampleobject",
15464
+ # server_side_encryption: "AES256",
15465
+ # tagging: "key1=value1&key2=value2",
15467
15466
  # })
15468
15467
  #
15469
15468
  # resp.to_h outputs the following:
15470
15469
  # {
15471
15470
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
15472
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
15471
+ # server_side_encryption: "AES256",
15472
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
15473
15473
  # }
15474
15474
  #
15475
15475
  # @example Streaming a file from disk
@@ -18312,45 +18312,45 @@ module Aws::S3
18312
18312
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
18313
18313
  #
18314
18314
  #
18315
- # @example Example: To upload a part by copying data from an existing object as data source
18315
+ # @example Example: To upload a part by copying byte range from an existing object as data source
18316
18316
  #
18317
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
18317
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
18318
+ # # data source.
18318
18319
  #
18319
18320
  # resp = client.upload_part_copy({
18320
18321
  # bucket: "examplebucket",
18321
18322
  # copy_source: "/bucketname/sourceobjectkey",
18323
+ # copy_source_range: "bytes=1-100000",
18322
18324
  # key: "examplelargeobject",
18323
- # part_number: 1,
18325
+ # part_number: 2,
18324
18326
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
18325
18327
  # })
18326
18328
  #
18327
18329
  # resp.to_h outputs the following:
18328
18330
  # {
18329
18331
  # copy_part_result: {
18330
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
18331
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
18332
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
18333
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
18332
18334
  # },
18333
18335
  # }
18334
18336
  #
18335
- # @example Example: To upload a part by copying byte range from an existing object as data source
18337
+ # @example Example: To upload a part by copying data from an existing object as data source
18336
18338
  #
18337
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
18338
- # # data source.
18339
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
18339
18340
  #
18340
18341
  # resp = client.upload_part_copy({
18341
18342
  # bucket: "examplebucket",
18342
18343
  # copy_source: "/bucketname/sourceobjectkey",
18343
- # copy_source_range: "bytes=1-100000",
18344
18344
  # key: "examplelargeobject",
18345
- # part_number: 2,
18345
+ # part_number: 1,
18346
18346
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
18347
18347
  # })
18348
18348
  #
18349
18349
  # resp.to_h outputs the following:
18350
18350
  # {
18351
18351
  # copy_part_result: {
18352
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
18353
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
18352
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
18353
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
18354
18354
  # },
18355
18355
  # }
18356
18356
  #
@@ -18807,7 +18807,7 @@ module Aws::S3
18807
18807
  params: params,
18808
18808
  config: config)
18809
18809
  context[:gem_name] = 'aws-sdk-s3'
18810
- context[:gem_version] = '1.143.0'
18810
+ context[:gem_version] = '1.144.0'
18811
18811
  Seahorse::Client::Request.new(handlers, context)
18812
18812
  end
18813
18813
 
@@ -128,10 +128,10 @@ module Aws::S3
128
128
  raise ArgumentError, "Expected a endpoint to be specified but no endpoint was found"
129
129
  end
130
130
  if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
131
- return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.ec2.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
131
+ return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.ec2.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
132
132
  end
133
133
  end
134
- return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.ec2.s3-outposts.#{region}.#{region_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
134
+ return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.ec2.s3-outposts.#{region}.#{region_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
135
135
  end
136
136
  if Aws::Endpoints::Matchers.string_equals?(hardware_type, "o")
137
137
  if Aws::Endpoints::Matchers.string_equals?(region_prefix, "beta")
@@ -139,10 +139,10 @@ module Aws::S3
139
139
  raise ArgumentError, "Expected a endpoint to be specified but no endpoint was found"
140
140
  end
141
141
  if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
142
- return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.op-#{outpost_id}.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
142
+ return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.op-#{outpost_id}.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
143
143
  end
144
144
  end
145
- return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.op-#{outpost_id}.s3-outposts.#{region}.#{region_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
145
+ return Aws::Endpoints::Endpoint.new(url: "https://#{bucket}.op-#{outpost_id}.s3-outposts.#{region}.#{region_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{region}"}]})
146
146
  end
147
147
  raise ArgumentError, "Unrecognized hardware type: \"Expected hardware type o or e but got #{hardware_type}\""
148
148
  end
@@ -413,9 +413,9 @@ module Aws::S3
413
413
  if (access_point_name = Aws::Endpoints::Matchers.attr(bucket_arn, "resourceId[3]"))
414
414
  if Aws::Endpoints::Matchers.string_equals?(outpost_type, "accesspoint")
415
415
  if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
416
- return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{bucket_arn['region']}"}]})
416
+ return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.#{url['authority']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{bucket_arn['region']}"}]})
417
417
  end
418
- return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.s3-outposts.#{bucket_arn['region']}.#{bucket_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{bucket_arn['region']}"}]})
418
+ return Aws::Endpoints::Endpoint.new(url: "https://#{access_point_name}-#{bucket_arn['accountId']}.#{outpost_id}.s3-outposts.#{bucket_arn['region']}.#{bucket_partition['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"disableDoubleEncoding"=>true, "name"=>"sigv4a", "signingName"=>"s3-outposts", "signingRegionSet"=>["*"]}, {"disableDoubleEncoding"=>true, "name"=>"sigv4", "signingName"=>"s3-outposts", "signingRegion"=>"#{bucket_arn['region']}"}]})
419
419
  end
420
420
  raise ArgumentError, "Expected an outpost type `accesspoint`, found #{outpost_type}"
421
421
  end
@@ -89,12 +89,13 @@ module Aws
89
89
  key: options[:key],
90
90
  upload_id: upload_id
91
91
  )
92
- msg = "multipart upload failed: #{errors.map(&:message).join("; ")}"
92
+ msg = "multipart upload failed: #{errors.map(&:message).join('; ')}"
93
93
  raise MultipartUploadError.new(msg, errors)
94
94
  rescue MultipartUploadError => error
95
95
  raise error
96
96
  rescue => error
97
- msg = "failed to abort multipart upload: #{error.message}"
97
+ msg = "failed to abort multipart upload: #{error.message}. "\
98
+ "Multipart upload failed: #{errors.map(&:message).join('; ')}"
98
99
  raise MultipartUploadError.new(msg, errors + [error])
99
100
  end
100
101
 
@@ -101,12 +101,13 @@ module Aws
101
101
  key: options[:key],
102
102
  upload_id: upload_id
103
103
  )
104
- msg = "multipart upload failed: #{errors.map(&:message).join("; ")}"
104
+ msg = "multipart upload failed: #{errors.map(&:message).join('; ')}"
105
105
  raise MultipartUploadError.new(msg, errors)
106
106
  rescue MultipartUploadError => error
107
107
  raise error
108
108
  rescue => error
109
- msg = "failed to abort multipart upload: #{error.message}"
109
+ msg = "failed to abort multipart upload: #{error.message}. "\
110
+ "Multipart upload failed: #{errors.map(&:message).join('; ')}"
110
111
  raise MultipartUploadError.new(msg, errors + [error])
111
112
  end
112
113
 
data/lib/aws-sdk-s3.rb CHANGED
@@ -73,6 +73,6 @@ require_relative 'aws-sdk-s3/event_streams'
73
73
  # @!group service
74
74
  module Aws::S3
75
75
 
76
- GEM_VERSION = '1.143.0'
76
+ GEM_VERSION = '1.144.0'
77
77
 
78
78
  end
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.143.0
4
+ version: 1.144.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-01-26 00:00:00.000000000 Z
11
+ date: 2024-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms