aws-sdk-s3 1.139.0 → 1.140.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: 7794ca410b078c32ba81224d837a02bd98762fc6e9c77fa99c712aa69bc57a11
4
- data.tar.gz: 359656dbebb4c1ec770ab503c1f8d8e969a1d278515bd05c13974fabf5059e13
3
+ metadata.gz: 2f75d0aee4d0695a751671390cae885e01f2e2be81ec45872f65168cdf5628f9
4
+ data.tar.gz: 3cec853f15506694fd50b9e86d5260d332b609a17fec0fdff3e7dbe5b23d2e6c
5
5
  SHA512:
6
- metadata.gz: d89384186be496efc544f0348ff91e978638b251e7d88b4158ff98e13c65e0d74f5591cfdc9c0083e7ba895b3e703f4a19ee239f5748108d9c12a383dce8d7b9
7
- data.tar.gz: 50ec9216eaaba7f40e470c3f9c2ca5be67cfa259a31011e9338de02dfbc01b8b7a084b71e9f2c044a0a9cb5bbce69344a7f37da54a6efba769d6cd677365ef66
6
+ metadata.gz: d8b7a1756c9d6b6cbd13094d3ad349c10fdc5645267773fd85660da45e29da91c4fbee23be0802a8df707aca4abc7d7a371b27b43058b946dcf772af558d0e95
7
+ data.tar.gz: 8dd49de681a88fb3f92659b3159be0902b12cd924efb6801c5347dea96bf52a995ccfbb27aa82fcb6de27b71a0fa16bbe21ade4f93681404426dabce8a681378
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.140.0 (2023-11-27)
5
+ ------------------
6
+
7
+ * Feature - Adding new params - Key and Prefix, to S3 API operations for supporting S3 Access Grants. Note - These updates will not change any of the existing S3 API functionality.
8
+
9
+ * Issue - Fix thread interruptions in multipart `download_file`, `file_uploader` and `stream_uploader` (#2944).
10
+
4
11
  1.139.0 (2023-11-22)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.139.0
1
+ 1.140.0
@@ -1714,33 +1714,33 @@ module Aws::S3
1714
1714
  # * {Types::CreateBucketOutput#location #location} => String
1715
1715
  #
1716
1716
  #
1717
- # @example Example: To create a bucket
1717
+ # @example Example: To create a bucket in a specific region
1718
1718
  #
1719
- # # The following example creates a bucket.
1719
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1720
1720
  #
1721
1721
  # resp = client.create_bucket({
1722
1722
  # bucket: "examplebucket",
1723
+ # create_bucket_configuration: {
1724
+ # location_constraint: "eu-west-1",
1725
+ # },
1723
1726
  # })
1724
1727
  #
1725
1728
  # resp.to_h outputs the following:
1726
1729
  # {
1727
- # location: "/examplebucket",
1730
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1728
1731
  # }
1729
1732
  #
1730
- # @example Example: To create a bucket in a specific region
1733
+ # @example Example: To create a bucket
1731
1734
  #
1732
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1735
+ # # The following example creates a bucket.
1733
1736
  #
1734
1737
  # resp = client.create_bucket({
1735
1738
  # bucket: "examplebucket",
1736
- # create_bucket_configuration: {
1737
- # location_constraint: "eu-west-1",
1738
- # },
1739
1739
  # })
1740
1740
  #
1741
1741
  # resp.to_h outputs the following:
1742
1742
  # {
1743
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1743
+ # location: "/examplebucket",
1744
1744
  # }
1745
1745
  #
1746
1746
  # @example Request syntax with placeholder values
@@ -3309,35 +3309,35 @@ module Aws::S3
3309
3309
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3310
3310
  #
3311
3311
  #
3312
- # @example Example: To remove tag set from an object version
3312
+ # @example Example: To remove tag set from an object
3313
3313
  #
3314
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3315
- # # object key and object version.
3314
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3315
+ # # operation removes tag set from the latest object version.
3316
3316
  #
3317
3317
  # resp = client.delete_object_tagging({
3318
3318
  # bucket: "examplebucket",
3319
3319
  # key: "HappyFace.jpg",
3320
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3321
3320
  # })
3322
3321
  #
3323
3322
  # resp.to_h outputs the following:
3324
3323
  # {
3325
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3324
+ # version_id: "null",
3326
3325
  # }
3327
3326
  #
3328
- # @example Example: To remove tag set from an object
3327
+ # @example Example: To remove tag set from an object version
3329
3328
  #
3330
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3331
- # # operation removes tag set from the latest object version.
3329
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3330
+ # # object key and object version.
3332
3331
  #
3333
3332
  # resp = client.delete_object_tagging({
3334
3333
  # bucket: "examplebucket",
3335
3334
  # key: "HappyFace.jpg",
3335
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3336
3336
  # })
3337
3337
  #
3338
3338
  # resp.to_h outputs the following:
3339
3339
  # {
3340
- # version_id: "null",
3340
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3341
3341
  # }
3342
3342
  #
3343
3343
  # @example Request syntax with placeholder values
@@ -3498,20 +3498,22 @@ module Aws::S3
3498
3498
  # * {Types::DeleteObjectsOutput#errors #errors} => Array&lt;Types::Error&gt;
3499
3499
  #
3500
3500
  #
3501
- # @example Example: To delete multiple objects from a versioned bucket
3501
+ # @example Example: To delete multiple object versions from a versioned bucket
3502
3502
  #
3503
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3504
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3503
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3504
+ # # versions and returns the key and versions of deleted objects in the response.
3505
3505
  #
3506
3506
  # resp = client.delete_objects({
3507
3507
  # bucket: "examplebucket",
3508
3508
  # delete: {
3509
3509
  # objects: [
3510
3510
  # {
3511
- # key: "objectkey1",
3511
+ # key: "HappyFace.jpg",
3512
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3512
3513
  # },
3513
3514
  # {
3514
- # key: "objectkey2",
3515
+ # key: "HappyFace.jpg",
3516
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3515
3517
  # },
3516
3518
  # ],
3517
3519
  # quiet: false,
@@ -3522,34 +3524,30 @@ module Aws::S3
3522
3524
  # {
3523
3525
  # deleted: [
3524
3526
  # {
3525
- # delete_marker: true,
3526
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3527
- # key: "objectkey1",
3527
+ # key: "HappyFace.jpg",
3528
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3528
3529
  # },
3529
3530
  # {
3530
- # delete_marker: true,
3531
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3532
- # key: "objectkey2",
3531
+ # key: "HappyFace.jpg",
3532
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3533
3533
  # },
3534
3534
  # ],
3535
3535
  # }
3536
3536
  #
3537
- # @example Example: To delete multiple object versions from a versioned bucket
3537
+ # @example Example: To delete multiple objects from a versioned bucket
3538
3538
  #
3539
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3540
- # # versions and returns the key and versions of deleted objects in the response.
3539
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3540
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3541
3541
  #
3542
3542
  # resp = client.delete_objects({
3543
3543
  # bucket: "examplebucket",
3544
3544
  # delete: {
3545
3545
  # objects: [
3546
3546
  # {
3547
- # key: "HappyFace.jpg",
3548
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3547
+ # key: "objectkey1",
3549
3548
  # },
3550
3549
  # {
3551
- # key: "HappyFace.jpg",
3552
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3550
+ # key: "objectkey2",
3553
3551
  # },
3554
3552
  # ],
3555
3553
  # quiet: false,
@@ -3560,12 +3558,14 @@ module Aws::S3
3560
3558
  # {
3561
3559
  # deleted: [
3562
3560
  # {
3563
- # key: "HappyFace.jpg",
3564
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3561
+ # delete_marker: true,
3562
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3563
+ # key: "objectkey1",
3565
3564
  # },
3566
3565
  # {
3567
- # key: "HappyFace.jpg",
3568
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3566
+ # delete_marker: true,
3567
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3568
+ # key: "objectkey2",
3569
3569
  # },
3570
3570
  # ],
3571
3571
  # }
@@ -5962,49 +5962,49 @@ module Aws::S3
5962
5962
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5963
5963
  #
5964
5964
  #
5965
- # @example Example: To retrieve a byte range of an object
5965
+ # @example Example: To retrieve an object
5966
5966
  #
5967
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5968
- # # specific byte range.
5967
+ # # The following example retrieves an object for an S3 bucket.
5969
5968
  #
5970
5969
  # resp = client.get_object({
5971
5970
  # bucket: "examplebucket",
5972
- # key: "SampleFile.txt",
5973
- # range: "bytes=0-9",
5971
+ # key: "HappyFace.jpg",
5974
5972
  # })
5975
5973
  #
5976
5974
  # resp.to_h outputs the following:
5977
5975
  # {
5978
5976
  # accept_ranges: "bytes",
5979
- # content_length: 10,
5980
- # content_range: "bytes 0-9/43",
5981
- # content_type: "text/plain",
5982
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5983
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5977
+ # content_length: 3191,
5978
+ # content_type: "image/jpeg",
5979
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5980
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5984
5981
  # metadata: {
5985
5982
  # },
5983
+ # tag_count: 2,
5986
5984
  # version_id: "null",
5987
5985
  # }
5988
5986
  #
5989
- # @example Example: To retrieve an object
5987
+ # @example Example: To retrieve a byte range of an object
5990
5988
  #
5991
- # # The following example retrieves an object for an S3 bucket.
5989
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5990
+ # # specific byte range.
5992
5991
  #
5993
5992
  # resp = client.get_object({
5994
5993
  # bucket: "examplebucket",
5995
- # key: "HappyFace.jpg",
5994
+ # key: "SampleFile.txt",
5995
+ # range: "bytes=0-9",
5996
5996
  # })
5997
5997
  #
5998
5998
  # resp.to_h outputs the following:
5999
5999
  # {
6000
6000
  # accept_ranges: "bytes",
6001
- # content_length: 3191,
6002
- # content_type: "image/jpeg",
6003
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
6004
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
6001
+ # content_length: 10,
6002
+ # content_range: "bytes 0-9/43",
6003
+ # content_type: "text/plain",
6004
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
6005
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
6005
6006
  # metadata: {
6006
6007
  # },
6007
- # tag_count: 2,
6008
6008
  # version_id: "null",
6009
6009
  # }
6010
6010
  #
@@ -6850,49 +6850,49 @@ module Aws::S3
6850
6850
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array&lt;Types::Tag&gt;
6851
6851
  #
6852
6852
  #
6853
- # @example Example: To retrieve tag set of an object
6853
+ # @example Example: To retrieve tag set of a specific object version
6854
6854
  #
6855
- # # The following example retrieves tag set of an object.
6855
+ # # The following example retrieves tag set of an object. The request specifies object version.
6856
6856
  #
6857
6857
  # resp = client.get_object_tagging({
6858
6858
  # bucket: "examplebucket",
6859
- # key: "HappyFace.jpg",
6859
+ # key: "exampleobject",
6860
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6860
6861
  # })
6861
6862
  #
6862
6863
  # resp.to_h outputs the following:
6863
6864
  # {
6864
6865
  # tag_set: [
6865
6866
  # {
6866
- # key: "Key4",
6867
- # value: "Value4",
6868
- # },
6869
- # {
6870
- # key: "Key3",
6871
- # value: "Value3",
6867
+ # key: "Key1",
6868
+ # value: "Value1",
6872
6869
  # },
6873
6870
  # ],
6874
- # version_id: "null",
6871
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6875
6872
  # }
6876
6873
  #
6877
- # @example Example: To retrieve tag set of a specific object version
6874
+ # @example Example: To retrieve tag set of an object
6878
6875
  #
6879
- # # The following example retrieves tag set of an object. The request specifies object version.
6876
+ # # The following example retrieves tag set of an object.
6880
6877
  #
6881
6878
  # resp = client.get_object_tagging({
6882
6879
  # bucket: "examplebucket",
6883
- # key: "exampleobject",
6884
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6880
+ # key: "HappyFace.jpg",
6885
6881
  # })
6886
6882
  #
6887
6883
  # resp.to_h outputs the following:
6888
6884
  # {
6889
6885
  # tag_set: [
6890
6886
  # {
6891
- # key: "Key1",
6892
- # value: "Value1",
6887
+ # key: "Key4",
6888
+ # value: "Value4",
6889
+ # },
6890
+ # {
6891
+ # key: "Key3",
6892
+ # value: "Value3",
6893
6893
  # },
6894
6894
  # ],
6895
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6895
+ # version_id: "null",
6896
6896
  # }
6897
6897
  #
6898
6898
  # @example Request syntax with placeholder values
@@ -12554,96 +12554,96 @@ module Aws::S3
12554
12554
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12555
12555
  #
12556
12556
  #
12557
- # @example Example: To upload object and specify user-defined metadata
12557
+ # @example Example: To upload an object and specify optional tags
12558
12558
  #
12559
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12560
- # # enabled, S3 returns version ID in response.
12559
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12560
+ # # S3 returns version ID of the newly created object.
12561
12561
  #
12562
12562
  # resp = client.put_object({
12563
- # body: "filetoupload",
12563
+ # body: "c:\\HappyFace.jpg",
12564
12564
  # bucket: "examplebucket",
12565
- # key: "exampleobject",
12566
- # metadata: {
12567
- # "metadata1" => "value1",
12568
- # "metadata2" => "value2",
12569
- # },
12565
+ # key: "HappyFace.jpg",
12566
+ # tagging: "key1=value1&key2=value2",
12570
12567
  # })
12571
12568
  #
12572
12569
  # resp.to_h outputs the following:
12573
12570
  # {
12574
12571
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12575
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12572
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12576
12573
  # }
12577
12574
  #
12578
- # @example Example: To upload an object (specify optional headers)
12575
+ # @example Example: To create an object.
12579
12576
  #
12580
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12581
- # # storage class and use server-side encryption.
12577
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12582
12578
  #
12583
12579
  # resp = client.put_object({
12584
- # body: "HappyFace.jpg",
12580
+ # body: "filetoupload",
12585
12581
  # bucket: "examplebucket",
12586
- # key: "HappyFace.jpg",
12587
- # server_side_encryption: "AES256",
12588
- # storage_class: "STANDARD_IA",
12582
+ # key: "objectkey",
12589
12583
  # })
12590
12584
  #
12591
12585
  # resp.to_h outputs the following:
12592
12586
  # {
12593
12587
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12594
- # server_side_encryption: "AES256",
12595
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12588
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12596
12589
  # }
12597
12590
  #
12598
- # @example Example: To upload an object and specify optional tags
12591
+ # @example Example: To upload object and specify user-defined metadata
12599
12592
  #
12600
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12601
- # # S3 returns version ID of the newly created object.
12593
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12594
+ # # enabled, S3 returns version ID in response.
12602
12595
  #
12603
12596
  # resp = client.put_object({
12604
- # body: "c:\\HappyFace.jpg",
12597
+ # body: "filetoupload",
12605
12598
  # bucket: "examplebucket",
12606
- # key: "HappyFace.jpg",
12607
- # tagging: "key1=value1&key2=value2",
12599
+ # key: "exampleobject",
12600
+ # metadata: {
12601
+ # "metadata1" => "value1",
12602
+ # "metadata2" => "value2",
12603
+ # },
12608
12604
  # })
12609
12605
  #
12610
12606
  # resp.to_h outputs the following:
12611
12607
  # {
12612
12608
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12613
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12609
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12614
12610
  # }
12615
12611
  #
12616
- # @example Example: To create an object.
12612
+ # @example Example: To upload an object
12617
12613
  #
12618
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
12614
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12615
+ # # syntax. S3 returns VersionId of the newly created object.
12619
12616
  #
12620
12617
  # resp = client.put_object({
12621
- # body: "filetoupload",
12618
+ # body: "HappyFace.jpg",
12622
12619
  # bucket: "examplebucket",
12623
- # key: "objectkey",
12620
+ # key: "HappyFace.jpg",
12624
12621
  # })
12625
12622
  #
12626
12623
  # resp.to_h outputs the following:
12627
12624
  # {
12628
12625
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12629
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12626
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12630
12627
  # }
12631
12628
  #
12632
- # @example Example: To upload an object
12629
+ # @example Example: To upload an object and specify server-side encryption and object tags
12633
12630
  #
12634
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12635
- # # syntax. S3 returns VersionId of the newly created object.
12631
+ # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12632
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12636
12633
  #
12637
12634
  # resp = client.put_object({
12638
- # body: "HappyFace.jpg",
12635
+ # body: "filetoupload",
12639
12636
  # bucket: "examplebucket",
12640
- # key: "HappyFace.jpg",
12637
+ # key: "exampleobject",
12638
+ # server_side_encryption: "AES256",
12639
+ # tagging: "key1=value1&key2=value2",
12641
12640
  # })
12642
12641
  #
12643
12642
  # resp.to_h outputs the following:
12644
12643
  # {
12645
12644
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12646
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12645
+ # server_side_encryption: "AES256",
12646
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12647
12647
  # }
12648
12648
  #
12649
12649
  # @example Example: To upload an object and specify canned ACL.
@@ -12664,24 +12664,24 @@ module Aws::S3
12664
12664
  # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12665
12665
  # }
12666
12666
  #
12667
- # @example Example: To upload an object and specify server-side encryption and object tags
12667
+ # @example Example: To upload an object (specify optional headers)
12668
12668
  #
12669
- # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12670
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12669
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12670
+ # # storage class and use server-side encryption.
12671
12671
  #
12672
12672
  # resp = client.put_object({
12673
- # body: "filetoupload",
12673
+ # body: "HappyFace.jpg",
12674
12674
  # bucket: "examplebucket",
12675
- # key: "exampleobject",
12675
+ # key: "HappyFace.jpg",
12676
12676
  # server_side_encryption: "AES256",
12677
- # tagging: "key1=value1&key2=value2",
12677
+ # storage_class: "STANDARD_IA",
12678
12678
  # })
12679
12679
  #
12680
12680
  # resp.to_h outputs the following:
12681
12681
  # {
12682
12682
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12683
12683
  # server_side_encryption: "AES256",
12684
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12684
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12685
12685
  # }
12686
12686
  #
12687
12687
  # @example Streaming a file from disk
@@ -13246,15 +13246,15 @@ module Aws::S3
13246
13246
  # you must select one. You cannot specify `Days` and `Years` at the
13247
13247
  # same time.
13248
13248
  #
13249
- # * You can only enable Object Lock for new buckets. If you want to turn
13250
- # on Object Lock for an existing bucket, contact Amazon Web Services
13251
- # Support.
13249
+ # * You can enable Object Lock for new or existing buckets. For more
13250
+ # information, see [Configuring Object Lock][2].
13252
13251
  #
13253
13252
  # </note>
13254
13253
  #
13255
13254
  #
13256
13255
  #
13257
13256
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock.html
13257
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-configure.html
13258
13258
  #
13259
13259
  # @option params [required, String] :bucket
13260
13260
  # The bucket whose Object Lock configuration you want to create or
@@ -15234,45 +15234,45 @@ module Aws::S3
15234
15234
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
15235
15235
  #
15236
15236
  #
15237
- # @example Example: To upload a part by copying data from an existing object as data source
15237
+ # @example Example: To upload a part by copying byte range from an existing object as data source
15238
15238
  #
15239
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
15239
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
15240
+ # # data source.
15240
15241
  #
15241
15242
  # resp = client.upload_part_copy({
15242
15243
  # bucket: "examplebucket",
15243
15244
  # copy_source: "/bucketname/sourceobjectkey",
15245
+ # copy_source_range: "bytes=1-100000",
15244
15246
  # key: "examplelargeobject",
15245
- # part_number: 1,
15247
+ # part_number: 2,
15246
15248
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
15247
15249
  # })
15248
15250
  #
15249
15251
  # resp.to_h outputs the following:
15250
15252
  # {
15251
15253
  # copy_part_result: {
15252
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
15253
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
15254
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
15255
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
15254
15256
  # },
15255
15257
  # }
15256
15258
  #
15257
- # @example Example: To upload a part by copying byte range from an existing object as data source
15259
+ # @example Example: To upload a part by copying data from an existing object as data source
15258
15260
  #
15259
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
15260
- # # data source.
15261
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
15261
15262
  #
15262
15263
  # resp = client.upload_part_copy({
15263
15264
  # bucket: "examplebucket",
15264
15265
  # copy_source: "/bucketname/sourceobjectkey",
15265
- # copy_source_range: "bytes=1-100000",
15266
15266
  # key: "examplelargeobject",
15267
- # part_number: 2,
15267
+ # part_number: 1,
15268
15268
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
15269
15269
  # })
15270
15270
  #
15271
15271
  # resp.to_h outputs the following:
15272
15272
  # {
15273
15273
  # copy_part_result: {
15274
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
15275
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
15274
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
15275
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
15276
15276
  # },
15277
15277
  # }
15278
15278
  #
@@ -15721,7 +15721,7 @@ module Aws::S3
15721
15721
  params: params,
15722
15722
  config: config)
15723
15723
  context[:gem_name] = 'aws-sdk-s3'
15724
- context[:gem_version] = '1.139.0'
15724
+ context[:gem_version] = '1.140.0'
15725
15725
  Seahorse::Client::Request.new(handlers, context)
15726
15726
  end
15727
15727