aws-sdk-s3 1.123.1 → 1.124.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: 18c5a3063c80c67d11fcb593d262d3eb15b88edf2c25abdaaff2f12c57620274
4
- data.tar.gz: b5a6e05f048778f72ca6f34947b4e7b4ed318a447d271764df129dc9e7bcdda3
3
+ metadata.gz: 2d4a06d13746e6ec6a22d2d8d4567671a8713624aa58daa1a62bc3470410acf0
4
+ data.tar.gz: 99a31e5469a1a32c2ae0fd601a436281df9804e3559f3afdcb97f8cc89432e42
5
5
  SHA512:
6
- metadata.gz: f09b9adb0fcb1c14e974c482737bce5017377c9b7771f61e3330681a1094a42055edc2727f934e70d1097474163cc98bc2042a2a6880135c2bf9ac97ba5bb88f
7
- data.tar.gz: c702479639bb64d638874d05477aa34b3581f3560f573ebd5acaea3d5e272bafd27ba3a491260ddb6697b450a5efaaf240c6699d2c87072b4ccc2f75b6ab00dc
6
+ metadata.gz: 9559073e6078dcfb9a940a56b046be82d44357a9da7b3f2e99502d058a33f83d2d4aa705d8703b3ae98e516467fcca518814d7b49411905204fab5c7ab1ee8e6
7
+ data.tar.gz: dacc68532173fb0d948d9fb3604c392806156b6dce7173b6d13287e84c650efb61a344da9ee1e4c2baa276afedcad63a255080da93d22aa627de747647d4ecb8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.124.0 (2023-06-13)
5
+ ------------------
6
+
7
+ * Feature - Integrate double encryption feature to SDKs.
8
+
9
+ 1.123.2 (2023-06-12)
10
+ ------------------
11
+
12
+ * Issue - Fix issue when decrypting noncurrent versions of objects when using client side encryption (#2866).
13
+
4
14
  1.123.1 (2023-06-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.123.1
1
+ 1.124.0
@@ -403,7 +403,7 @@ module Aws::S3
403
403
  # metadata: {
404
404
  # "MetadataKey" => "MetadataValue",
405
405
  # },
406
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
406
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
407
407
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
408
408
  # website_redirect_location: "WebsiteRedirectLocation",
409
409
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -896,7 +896,7 @@ module Aws::S3
896
896
  # resp.checksum_crc32c #=> String
897
897
  # resp.checksum_sha1 #=> String
898
898
  # resp.checksum_sha256 #=> String
899
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
899
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
900
900
  # resp.version_id #=> String
901
901
  # resp.ssekms_key_id #=> String
902
902
  # resp.bucket_key_enabled #=> Boolean
@@ -1477,7 +1477,7 @@ module Aws::S3
1477
1477
  # },
1478
1478
  # metadata_directive: "COPY", # accepts COPY, REPLACE
1479
1479
  # tagging_directive: "COPY", # accepts COPY, REPLACE
1480
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
1480
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
1481
1481
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
1482
1482
  # website_redirect_location: "WebsiteRedirectLocation",
1483
1483
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -1509,7 +1509,7 @@ module Aws::S3
1509
1509
  # resp.expiration #=> String
1510
1510
  # resp.copy_source_version_id #=> String
1511
1511
  # resp.version_id #=> String
1512
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
1512
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
1513
1513
  # resp.sse_customer_algorithm #=> String
1514
1514
  # resp.sse_customer_key_md5 #=> String
1515
1515
  # resp.ssekms_key_id #=> String
@@ -1726,33 +1726,33 @@ module Aws::S3
1726
1726
  # * {Types::CreateBucketOutput#location #location} => String
1727
1727
  #
1728
1728
  #
1729
- # @example Example: To create a bucket
1729
+ # @example Example: To create a bucket in a specific region
1730
1730
  #
1731
- # # The following example creates a bucket.
1731
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1732
1732
  #
1733
1733
  # resp = client.create_bucket({
1734
1734
  # bucket: "examplebucket",
1735
+ # create_bucket_configuration: {
1736
+ # location_constraint: "eu-west-1",
1737
+ # },
1735
1738
  # })
1736
1739
  #
1737
1740
  # resp.to_h outputs the following:
1738
1741
  # {
1739
- # location: "/examplebucket",
1742
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1740
1743
  # }
1741
1744
  #
1742
- # @example Example: To create a bucket in a specific region
1745
+ # @example Example: To create a bucket
1743
1746
  #
1744
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1747
+ # # The following example creates a bucket.
1745
1748
  #
1746
1749
  # resp = client.create_bucket({
1747
1750
  # bucket: "examplebucket",
1748
- # create_bucket_configuration: {
1749
- # location_constraint: "eu-west-1",
1750
- # },
1751
1751
  # })
1752
1752
  #
1753
1753
  # resp.to_h outputs the following:
1754
1754
  # {
1755
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1755
+ # location: "/examplebucket",
1756
1756
  # }
1757
1757
  #
1758
1758
  # @example Request syntax with placeholder values
@@ -2282,7 +2282,7 @@ module Aws::S3
2282
2282
  # metadata: {
2283
2283
  # "MetadataKey" => "MetadataValue",
2284
2284
  # },
2285
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
2285
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
2286
2286
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
2287
2287
  # website_redirect_location: "WebsiteRedirectLocation",
2288
2288
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -2307,7 +2307,7 @@ module Aws::S3
2307
2307
  # resp.bucket #=> String
2308
2308
  # resp.key #=> String
2309
2309
  # resp.upload_id #=> String
2310
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
2310
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
2311
2311
  # resp.sse_customer_algorithm #=> String
2312
2312
  # resp.sse_customer_key_md5 #=> String
2313
2313
  # resp.ssekms_key_id #=> String
@@ -3317,35 +3317,35 @@ module Aws::S3
3317
3317
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3318
3318
  #
3319
3319
  #
3320
- # @example Example: To remove tag set from an object version
3320
+ # @example Example: To remove tag set from an object
3321
3321
  #
3322
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3323
- # # object key and object version.
3322
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3323
+ # # operation removes tag set from the latest object version.
3324
3324
  #
3325
3325
  # resp = client.delete_object_tagging({
3326
3326
  # bucket: "examplebucket",
3327
3327
  # key: "HappyFace.jpg",
3328
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3329
3328
  # })
3330
3329
  #
3331
3330
  # resp.to_h outputs the following:
3332
3331
  # {
3333
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3332
+ # version_id: "null",
3334
3333
  # }
3335
3334
  #
3336
- # @example Example: To remove tag set from an object
3335
+ # @example Example: To remove tag set from an object version
3337
3336
  #
3338
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3339
- # # operation removes tag set from the latest object version.
3337
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3338
+ # # object key and object version.
3340
3339
  #
3341
3340
  # resp = client.delete_object_tagging({
3342
3341
  # bucket: "examplebucket",
3343
3342
  # key: "HappyFace.jpg",
3343
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3344
3344
  # })
3345
3345
  #
3346
3346
  # resp.to_h outputs the following:
3347
3347
  # {
3348
- # version_id: "null",
3348
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3349
3349
  # }
3350
3350
  #
3351
3351
  # @example Request syntax with placeholder values
@@ -3504,22 +3504,20 @@ module Aws::S3
3504
3504
  # * {Types::DeleteObjectsOutput#errors #errors} => Array&lt;Types::Error&gt;
3505
3505
  #
3506
3506
  #
3507
- # @example Example: To delete multiple object versions from a versioned bucket
3507
+ # @example Example: To delete multiple objects from a versioned bucket
3508
3508
  #
3509
- # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3510
- # # versions and returns the key and versions of deleted objects in the response.
3509
+ # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3510
+ # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3511
3511
  #
3512
3512
  # resp = client.delete_objects({
3513
3513
  # bucket: "examplebucket",
3514
3514
  # delete: {
3515
3515
  # objects: [
3516
3516
  # {
3517
- # key: "HappyFace.jpg",
3518
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3517
+ # key: "objectkey1",
3519
3518
  # },
3520
3519
  # {
3521
- # key: "HappyFace.jpg",
3522
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3520
+ # key: "objectkey2",
3523
3521
  # },
3524
3522
  # ],
3525
3523
  # quiet: false,
@@ -3530,30 +3528,34 @@ module Aws::S3
3530
3528
  # {
3531
3529
  # deleted: [
3532
3530
  # {
3533
- # key: "HappyFace.jpg",
3534
- # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3531
+ # delete_marker: true,
3532
+ # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3533
+ # key: "objectkey1",
3535
3534
  # },
3536
3535
  # {
3537
- # key: "HappyFace.jpg",
3538
- # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3536
+ # delete_marker: true,
3537
+ # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3538
+ # key: "objectkey2",
3539
3539
  # },
3540
3540
  # ],
3541
3541
  # }
3542
3542
  #
3543
- # @example Example: To delete multiple objects from a versioned bucket
3543
+ # @example Example: To delete multiple object versions from a versioned bucket
3544
3544
  #
3545
- # # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
3546
- # # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
3545
+ # # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
3546
+ # # versions and returns the key and versions of deleted objects in the response.
3547
3547
  #
3548
3548
  # resp = client.delete_objects({
3549
3549
  # bucket: "examplebucket",
3550
3550
  # delete: {
3551
3551
  # objects: [
3552
3552
  # {
3553
- # key: "objectkey1",
3553
+ # key: "HappyFace.jpg",
3554
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3554
3555
  # },
3555
3556
  # {
3556
- # key: "objectkey2",
3557
+ # key: "HappyFace.jpg",
3558
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3557
3559
  # },
3558
3560
  # ],
3559
3561
  # quiet: false,
@@ -3564,14 +3566,12 @@ module Aws::S3
3564
3566
  # {
3565
3567
  # deleted: [
3566
3568
  # {
3567
- # delete_marker: true,
3568
- # delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
3569
- # key: "objectkey1",
3569
+ # key: "HappyFace.jpg",
3570
+ # version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
3570
3571
  # },
3571
3572
  # {
3572
- # delete_marker: true,
3573
- # delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
3574
- # key: "objectkey2",
3573
+ # key: "HappyFace.jpg",
3574
+ # version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
3575
3575
  # },
3576
3576
  # ],
3577
3577
  # }
@@ -4084,7 +4084,7 @@ module Aws::S3
4084
4084
  # @example Response structure
4085
4085
  #
4086
4086
  # resp.server_side_encryption_configuration.rules #=> Array
4087
- # resp.server_side_encryption_configuration.rules[0].apply_server_side_encryption_by_default.sse_algorithm #=> String, one of "AES256", "aws:kms"
4087
+ # resp.server_side_encryption_configuration.rules[0].apply_server_side_encryption_by_default.sse_algorithm #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
4088
4088
  # resp.server_side_encryption_configuration.rules[0].apply_server_side_encryption_by_default.kms_master_key_id #=> String
4089
4089
  # resp.server_side_encryption_configuration.rules[0].bucket_key_enabled #=> Boolean
4090
4090
  #
@@ -5942,49 +5942,49 @@ module Aws::S3
5942
5942
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5943
5943
  #
5944
5944
  #
5945
- # @example Example: To retrieve an object
5945
+ # @example Example: To retrieve a byte range of an object
5946
5946
  #
5947
- # # The following example retrieves an object for an S3 bucket.
5947
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5948
+ # # specific byte range.
5948
5949
  #
5949
5950
  # resp = client.get_object({
5950
5951
  # bucket: "examplebucket",
5951
- # key: "HappyFace.jpg",
5952
+ # key: "SampleFile.txt",
5953
+ # range: "bytes=0-9",
5952
5954
  # })
5953
5955
  #
5954
5956
  # resp.to_h outputs the following:
5955
5957
  # {
5956
5958
  # accept_ranges: "bytes",
5957
- # content_length: 3191,
5958
- # content_type: "image/jpeg",
5959
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5960
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5959
+ # content_length: 10,
5960
+ # content_range: "bytes 0-9/43",
5961
+ # content_type: "text/plain",
5962
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5963
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5961
5964
  # metadata: {
5962
5965
  # },
5963
- # tag_count: 2,
5964
5966
  # version_id: "null",
5965
5967
  # }
5966
5968
  #
5967
- # @example Example: To retrieve a byte range of an object
5969
+ # @example Example: To retrieve an object
5968
5970
  #
5969
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5970
- # # specific byte range.
5971
+ # # The following example retrieves an object for an S3 bucket.
5971
5972
  #
5972
5973
  # resp = client.get_object({
5973
5974
  # bucket: "examplebucket",
5974
- # key: "SampleFile.txt",
5975
- # range: "bytes=0-9",
5975
+ # key: "HappyFace.jpg",
5976
5976
  # })
5977
5977
  #
5978
5978
  # resp.to_h outputs the following:
5979
5979
  # {
5980
5980
  # accept_ranges: "bytes",
5981
- # content_length: 10,
5982
- # content_range: "bytes 0-9/43",
5983
- # content_type: "text/plain",
5984
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5985
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5981
+ # content_length: 3191,
5982
+ # content_type: "image/jpeg",
5983
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5984
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5986
5985
  # metadata: {
5987
5986
  # },
5987
+ # tag_count: 2,
5988
5988
  # version_id: "null",
5989
5989
  # }
5990
5990
  #
@@ -6068,7 +6068,7 @@ module Aws::S3
6068
6068
  # resp.expires #=> Time
6069
6069
  # resp.expires_string #=> String
6070
6070
  # resp.website_redirect_location #=> String
6071
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
6071
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
6072
6072
  # resp.metadata #=> Hash
6073
6073
  # resp.metadata["MetadataKey"] #=> String
6074
6074
  # resp.sse_customer_algorithm #=> String
@@ -7459,7 +7459,7 @@ module Aws::S3
7459
7459
  # resp.expires #=> Time
7460
7460
  # resp.expires_string #=> String
7461
7461
  # resp.website_redirect_location #=> String
7462
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
7462
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
7463
7463
  # resp.metadata #=> Hash
7464
7464
  # resp.metadata["MetadataKey"] #=> String
7465
7465
  # resp.sse_customer_algorithm #=> String
@@ -9854,7 +9854,7 @@ module Aws::S3
9854
9854
  # rules: [ # required
9855
9855
  # {
9856
9856
  # apply_server_side_encryption_by_default: {
9857
- # sse_algorithm: "AES256", # required, accepts AES256, aws:kms
9857
+ # sse_algorithm: "AES256", # required, accepts AES256, aws:kms, aws:kms:dsse
9858
9858
  # kms_master_key_id: "SSEKMSKeyId",
9859
9859
  # },
9860
9860
  # bucket_key_enabled: false,
@@ -12449,60 +12449,62 @@ module Aws::S3
12449
12449
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
12450
12450
  #
12451
12451
  #
12452
- # @example Example: To upload an object and specify optional tags
12452
+ # @example Example: To upload an object
12453
12453
  #
12454
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12455
- # # S3 returns version ID of the newly created object.
12454
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12455
+ # # syntax. S3 returns VersionId of the newly created object.
12456
12456
  #
12457
12457
  # resp = client.put_object({
12458
- # body: "c:\\HappyFace.jpg",
12458
+ # body: "HappyFace.jpg",
12459
12459
  # bucket: "examplebucket",
12460
12460
  # key: "HappyFace.jpg",
12461
- # tagging: "key1=value1&key2=value2",
12462
12461
  # })
12463
12462
  #
12464
12463
  # resp.to_h outputs the following:
12465
12464
  # {
12466
12465
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12467
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12466
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12468
12467
  # }
12469
12468
  #
12470
- # @example Example: To upload an object and specify canned ACL.
12469
+ # @example Example: To upload object and specify user-defined metadata
12471
12470
  #
12472
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12473
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12471
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12472
+ # # enabled, S3 returns version ID in response.
12474
12473
  #
12475
12474
  # resp = client.put_object({
12476
- # acl: "authenticated-read",
12477
12475
  # body: "filetoupload",
12478
12476
  # bucket: "examplebucket",
12479
12477
  # key: "exampleobject",
12478
+ # metadata: {
12479
+ # "metadata1" => "value1",
12480
+ # "metadata2" => "value2",
12481
+ # },
12480
12482
  # })
12481
12483
  #
12482
12484
  # resp.to_h outputs the following:
12483
12485
  # {
12484
12486
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12485
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12487
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12486
12488
  # }
12487
12489
  #
12488
- # @example Example: To upload an object and specify server-side encryption and object tags
12490
+ # @example Example: To upload an object (specify optional headers)
12489
12491
  #
12490
- # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12491
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12492
+ # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12493
+ # # storage class and use server-side encryption.
12492
12494
  #
12493
12495
  # resp = client.put_object({
12494
- # body: "filetoupload",
12496
+ # body: "HappyFace.jpg",
12495
12497
  # bucket: "examplebucket",
12496
- # key: "exampleobject",
12498
+ # key: "HappyFace.jpg",
12497
12499
  # server_side_encryption: "AES256",
12498
- # tagging: "key1=value1&key2=value2",
12500
+ # storage_class: "STANDARD_IA",
12499
12501
  # })
12500
12502
  #
12501
12503
  # resp.to_h outputs the following:
12502
12504
  # {
12503
12505
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12504
12506
  # server_side_encryption: "AES256",
12505
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12507
+ # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12506
12508
  # }
12507
12509
  #
12508
12510
  # @example Example: To create an object.
@@ -12521,62 +12523,60 @@ module Aws::S3
12521
12523
  # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
12522
12524
  # }
12523
12525
  #
12524
- # @example Example: To upload an object
12526
+ # @example Example: To upload an object and specify server-side encryption and object tags
12525
12527
  #
12526
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
12527
- # # syntax. S3 returns VersionId of the newly created object.
12528
+ # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
12529
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
12528
12530
  #
12529
12531
  # resp = client.put_object({
12530
- # body: "HappyFace.jpg",
12532
+ # body: "filetoupload",
12531
12533
  # bucket: "examplebucket",
12532
- # key: "HappyFace.jpg",
12534
+ # key: "exampleobject",
12535
+ # server_side_encryption: "AES256",
12536
+ # tagging: "key1=value1&key2=value2",
12533
12537
  # })
12534
12538
  #
12535
12539
  # resp.to_h outputs the following:
12536
12540
  # {
12537
12541
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12538
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
12542
+ # server_side_encryption: "AES256",
12543
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
12539
12544
  # }
12540
12545
  #
12541
- # @example Example: To upload an object (specify optional headers)
12546
+ # @example Example: To upload an object and specify optional tags
12542
12547
  #
12543
- # # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
12544
- # # storage class and use server-side encryption.
12548
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
12549
+ # # S3 returns version ID of the newly created object.
12545
12550
  #
12546
12551
  # resp = client.put_object({
12547
- # body: "HappyFace.jpg",
12552
+ # body: "c:\\HappyFace.jpg",
12548
12553
  # bucket: "examplebucket",
12549
12554
  # key: "HappyFace.jpg",
12550
- # server_side_encryption: "AES256",
12551
- # storage_class: "STANDARD_IA",
12555
+ # tagging: "key1=value1&key2=value2",
12552
12556
  # })
12553
12557
  #
12554
12558
  # resp.to_h outputs the following:
12555
12559
  # {
12556
12560
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12557
- # server_side_encryption: "AES256",
12558
- # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
12561
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
12559
12562
  # }
12560
12563
  #
12561
- # @example Example: To upload object and specify user-defined metadata
12564
+ # @example Example: To upload an object and specify canned ACL.
12562
12565
  #
12563
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
12564
- # # enabled, S3 returns version ID in response.
12566
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
12567
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
12565
12568
  #
12566
12569
  # resp = client.put_object({
12570
+ # acl: "authenticated-read",
12567
12571
  # body: "filetoupload",
12568
12572
  # bucket: "examplebucket",
12569
12573
  # key: "exampleobject",
12570
- # metadata: {
12571
- # "metadata1" => "value1",
12572
- # "metadata2" => "value2",
12573
- # },
12574
12574
  # })
12575
12575
  #
12576
12576
  # resp.to_h outputs the following:
12577
12577
  # {
12578
12578
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
12579
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
12579
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
12580
12580
  # }
12581
12581
  #
12582
12582
  # @example Streaming a file from disk
@@ -12612,7 +12612,7 @@ module Aws::S3
12612
12612
  # metadata: {
12613
12613
  # "MetadataKey" => "MetadataValue",
12614
12614
  # },
12615
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
12615
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
12616
12616
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
12617
12617
  # website_redirect_location: "WebsiteRedirectLocation",
12618
12618
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -12637,7 +12637,7 @@ module Aws::S3
12637
12637
  # resp.checksum_crc32c #=> String
12638
12638
  # resp.checksum_sha1 #=> String
12639
12639
  # resp.checksum_sha256 #=> String
12640
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
12640
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
12641
12641
  # resp.version_id #=> String
12642
12642
  # resp.sse_customer_algorithm #=> String
12643
12643
  # resp.sse_customer_key_md5 #=> String
@@ -14011,7 +14011,7 @@ module Aws::S3
14011
14011
  # bucket_name: "BucketName", # required
14012
14012
  # prefix: "LocationPrefix", # required
14013
14013
  # encryption: {
14014
- # encryption_type: "AES256", # required, accepts AES256, aws:kms
14014
+ # encryption_type: "AES256", # required, accepts AES256, aws:kms, aws:kms:dsse
14015
14015
  # kms_key_id: "SSEKMSKeyId",
14016
14016
  # kms_context: "KMSContext",
14017
14017
  # },
@@ -14797,7 +14797,7 @@ module Aws::S3
14797
14797
  #
14798
14798
  # @example Response structure
14799
14799
  #
14800
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
14800
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
14801
14801
  # resp.etag #=> String
14802
14802
  # resp.checksum_crc32 #=> String
14803
14803
  # resp.checksum_crc32c #=> String
@@ -15115,45 +15115,45 @@ module Aws::S3
15115
15115
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
15116
15116
  #
15117
15117
  #
15118
- # @example Example: To upload a part by copying data from an existing object as data source
15118
+ # @example Example: To upload a part by copying byte range from an existing object as data source
15119
15119
  #
15120
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
15120
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
15121
+ # # data source.
15121
15122
  #
15122
15123
  # resp = client.upload_part_copy({
15123
15124
  # bucket: "examplebucket",
15124
15125
  # copy_source: "/bucketname/sourceobjectkey",
15126
+ # copy_source_range: "bytes=1-100000",
15125
15127
  # key: "examplelargeobject",
15126
- # part_number: 1,
15128
+ # part_number: 2,
15127
15129
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
15128
15130
  # })
15129
15131
  #
15130
15132
  # resp.to_h outputs the following:
15131
15133
  # {
15132
15134
  # copy_part_result: {
15133
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
15134
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
15135
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
15136
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
15135
15137
  # },
15136
15138
  # }
15137
15139
  #
15138
- # @example Example: To upload a part by copying byte range from an existing object as data source
15140
+ # @example Example: To upload a part by copying data from an existing object as data source
15139
15141
  #
15140
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
15141
- # # data source.
15142
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
15142
15143
  #
15143
15144
  # resp = client.upload_part_copy({
15144
15145
  # bucket: "examplebucket",
15145
15146
  # copy_source: "/bucketname/sourceobjectkey",
15146
- # copy_source_range: "bytes=1-100000",
15147
15147
  # key: "examplelargeobject",
15148
- # part_number: 2,
15148
+ # part_number: 1,
15149
15149
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
15150
15150
  # })
15151
15151
  #
15152
15152
  # resp.to_h outputs the following:
15153
15153
  # {
15154
15154
  # copy_part_result: {
15155
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
15156
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
15155
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
15156
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
15157
15157
  # },
15158
15158
  # }
15159
15159
  #
@@ -15190,7 +15190,7 @@ module Aws::S3
15190
15190
  # resp.copy_part_result.checksum_crc32c #=> String
15191
15191
  # resp.copy_part_result.checksum_sha1 #=> String
15192
15192
  # resp.copy_part_result.checksum_sha256 #=> String
15193
- # resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
15193
+ # resp.server_side_encryption #=> String, one of "AES256", "aws:kms", "aws:kms:dsse"
15194
15194
  # resp.sse_customer_algorithm #=> String
15195
15195
  # resp.sse_customer_key_md5 #=> String
15196
15196
  # resp.ssekms_key_id #=> String
@@ -15569,7 +15569,7 @@ module Aws::S3
15569
15569
  # replication_status: "COMPLETE", # accepts COMPLETE, PENDING, FAILED, REPLICA
15570
15570
  # request_charged: "requester", # accepts requester
15571
15571
  # restore: "Restore",
15572
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
15572
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
15573
15573
  # sse_customer_algorithm: "SSECustomerAlgorithm",
15574
15574
  # ssekms_key_id: "SSEKMSKeyId",
15575
15575
  # sse_customer_key_md5: "SSECustomerKeyMD5",
@@ -15601,7 +15601,7 @@ module Aws::S3
15601
15601
  params: params,
15602
15602
  config: config)
15603
15603
  context[:gem_name] = 'aws-sdk-s3'
15604
- context[:gem_version] = '1.123.1'
15604
+ context[:gem_version] = '1.124.0'
15605
15605
  Seahorse::Client::Request.new(handlers, context)
15606
15606
  end
15607
15607
 
@@ -173,6 +173,7 @@ module Aws
173
173
  auth_tag = context.client.get_object(
174
174
  bucket: context.params[:bucket],
175
175
  key: context.params[:key],
176
+ version_id: context.params[:version_id],
176
177
  range: "bytes=-#{auth_tag_length}"
177
178
  ).body.read
178
179
 
@@ -615,7 +615,7 @@ module Aws::S3
615
615
  # },
616
616
  # metadata_directive: "COPY", # accepts COPY, REPLACE
617
617
  # tagging_directive: "COPY", # accepts COPY, REPLACE
618
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
618
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
619
619
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
620
620
  # website_redirect_location: "WebsiteRedirectLocation",
621
621
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -1026,7 +1026,7 @@ module Aws::S3
1026
1026
  # metadata: {
1027
1027
  # "MetadataKey" => "MetadataValue",
1028
1028
  # },
1029
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
1029
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
1030
1030
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
1031
1031
  # website_redirect_location: "WebsiteRedirectLocation",
1032
1032
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -1211,7 +1211,7 @@ module Aws::S3
1211
1211
  # metadata: {
1212
1212
  # "MetadataKey" => "MetadataValue",
1213
1213
  # },
1214
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
1214
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
1215
1215
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
1216
1216
  # website_redirect_location: "WebsiteRedirectLocation",
1217
1217
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -1544,7 +1544,7 @@ module Aws::S3
1544
1544
  # bucket_name: "BucketName", # required
1545
1545
  # prefix: "LocationPrefix", # required
1546
1546
  # encryption: {
1547
- # encryption_type: "AES256", # required, accepts AES256, aws:kms
1547
+ # encryption_type: "AES256", # required, accepts AES256, aws:kms, aws:kms:dsse
1548
1548
  # kms_key_id: "SSEKMSKeyId",
1549
1549
  # kms_context: "KMSContext",
1550
1550
  # },
@@ -310,7 +310,7 @@ module Aws::S3
310
310
  # },
311
311
  # metadata_directive: "COPY", # accepts COPY, REPLACE
312
312
  # tagging_directive: "COPY", # accepts COPY, REPLACE
313
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
313
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
314
314
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
315
315
  # website_redirect_location: "WebsiteRedirectLocation",
316
316
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -721,7 +721,7 @@ module Aws::S3
721
721
  # metadata: {
722
722
  # "MetadataKey" => "MetadataValue",
723
723
  # },
724
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
724
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
725
725
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
726
726
  # website_redirect_location: "WebsiteRedirectLocation",
727
727
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -906,7 +906,7 @@ module Aws::S3
906
906
  # metadata: {
907
907
  # "MetadataKey" => "MetadataValue",
908
908
  # },
909
- # server_side_encryption: "AES256", # accepts AES256, aws:kms
909
+ # server_side_encryption: "AES256", # accepts AES256, aws:kms, aws:kms:dsse
910
910
  # storage_class: "STANDARD", # accepts STANDARD, REDUCED_REDUNDANCY, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, DEEP_ARCHIVE, OUTPOSTS, GLACIER_IR, SNOW
911
911
  # website_redirect_location: "WebsiteRedirectLocation",
912
912
  # sse_customer_algorithm: "SSECustomerAlgorithm",
@@ -1239,7 +1239,7 @@ module Aws::S3
1239
1239
  # bucket_name: "BucketName", # required
1240
1240
  # prefix: "LocationPrefix", # required
1241
1241
  # encryption: {
1242
- # encryption_type: "AES256", # required, accepts AES256, aws:kms
1242
+ # encryption_type: "AES256", # required, accepts AES256, aws:kms, aws:kms:dsse
1243
1243
  # kms_key_id: "SSEKMSKeyId",
1244
1244
  # kms_context: "KMSContext",
1245
1245
  # },
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.123.1'
76
+ GEM_VERSION = '1.124.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.123.1
4
+ version: 1.124.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: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2023-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms