aws-sdk-s3 1.119.0 → 1.119.2

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: bf26a63ccee0e2f3da2e86c8912f58ff25caa023d8e366dfd4d1476e6eaeb962
4
- data.tar.gz: 213793eb4583a409e5c846afdf3b6dc9b268e4d553d78ffef76c5009a5d74929
3
+ metadata.gz: ab4781b9e3bf993024bd82ddb79f57b25ca8a16e2b9c8908e534e5e827805cd3
4
+ data.tar.gz: 2e7017ce63521d8e37b942438d5db621de1ac874716bab52233be427f95105f5
5
5
  SHA512:
6
- metadata.gz: 571abaf21736589d1e16a0e547d476bab1238748cb3dc37c5276945e75eb5a7e9a22bac1dc9e5a4c903bdc7af5cec0d10c4ca993fbe7231f298e74127d902728
7
- data.tar.gz: 9e140491506eae90d10c5449fe7e17e35c236b15c2581fe203977f5daeaa4967f586b1093d76d1bb0506120fae33191f03a4509185f6982d82fca2f686663026
6
+ metadata.gz: d329632316a31c92f7be7d035f45e29522beaa5a67cbcef95c449da6d3792fcc68ae7a6c4b3356035130304e17fbb092762797860c5566c40d214ed2be35ef95
7
+ data.tar.gz: b67ba6897dfc3003b68785056dd3ee6e8c03110ec5734b33b0e5d67ddcf8bd4ef4d9f8072dce05c1ec75cb21506ef9f4786a2595a6eedc74af636b282a1bdb18
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.119.2 (2023-03-22)
5
+ ------------------
6
+
7
+ * Issue - Provide `endpoint` and `bucket` attributes on `Aws::S3::Errors::PermanentRedirect` error objects.
8
+
9
+ 1.119.1 (2023-02-13)
10
+ ------------------
11
+
12
+ * Issue - Ensure object metadata is not lost on multipart copy (#2821).
13
+
4
14
  1.119.0 (2023-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.119.0
1
+ 1.119.2
@@ -469,7 +469,7 @@ module Aws::S3
469
469
  # For information about permissions required to use the multipart
470
470
  # upload, see [Multipart Upload and Permissions][2].
471
471
  #
472
- # The following operations are related to `AbortMultipartUpload`\:
472
+ # The following operations are related to `AbortMultipartUpload`:
473
473
  #
474
474
  # * [CreateMultipartUpload][3]
475
475
  #
@@ -649,7 +649,7 @@ module Aws::S3
649
649
  #
650
650
  # * 404 Not Found
651
651
  #
652
- # The following operations are related to `CompleteMultipartUpload`\:
652
+ # The following operations are related to `CompleteMultipartUpload`:
653
653
  #
654
654
  # * [CreateMultipartUpload][5]
655
655
  #
@@ -1075,7 +1075,7 @@ module Aws::S3
1075
1075
  # copy of this object before you can use it as a source object for the
1076
1076
  # copy operation. For more information, see [RestoreObject][14].
1077
1077
  #
1078
- # The following operations are related to `CopyObject`\:
1078
+ # The following operations are related to `CopyObject`:
1079
1079
  #
1080
1080
  # * [PutObject][15]
1081
1081
  #
@@ -1162,7 +1162,7 @@ module Aws::S3
1162
1162
  # @option params [required, String] :copy_source
1163
1163
  # Specifies the source object for the copy operation. You specify the
1164
1164
  # value in one of two formats, depending on whether you want to access
1165
- # the source object through an [access point][1]\:
1165
+ # the source object through an [access point][1]:
1166
1166
  #
1167
1167
  # * For objects not accessed through an access point, specify the name
1168
1168
  # of the source bucket and the key of the source object, separated by
@@ -1605,7 +1605,7 @@ module Aws::S3
1605
1605
  # the `x-amz-object-ownership` header, `s3:PutBucketOwnershipControls`
1606
1606
  # permission is required.
1607
1607
  #
1608
- # The following operations are related to `CreateBucket`\:
1608
+ # The following operations are related to `CreateBucket`:
1609
1609
  #
1610
1610
  # * [PutObject][9]
1611
1611
  #
@@ -1945,7 +1945,7 @@ module Aws::S3
1945
1945
  #
1946
1946
  # `x-amz-grant-read: id="11112222333", id="444455556666" `
1947
1947
  #
1948
- # The following operations are related to `CreateMultipartUpload`\:
1948
+ # The following operations are related to `CreateMultipartUpload`:
1949
1949
  #
1950
1950
  # * [UploadPart][1]
1951
1951
  #
@@ -2317,7 +2317,7 @@ module Aws::S3
2317
2317
  # Analytics – Storage Class Analysis][3].
2318
2318
  #
2319
2319
  # The following operations are related to
2320
- # `DeleteBucketAnalyticsConfiguration`\:
2320
+ # `DeleteBucketAnalyticsConfiguration`:
2321
2321
  #
2322
2322
  # * [GetBucketAnalyticsConfiguration][4]
2323
2323
  #
@@ -2678,7 +2678,7 @@ module Aws::S3
2678
2678
  # [Monitoring Metrics with Amazon CloudWatch][3].
2679
2679
  #
2680
2680
  # The following operations are related to
2681
- # `DeleteBucketMetricsConfiguration`\:
2681
+ # `DeleteBucketMetricsConfiguration`:
2682
2682
  #
2683
2683
  # * [GetBucketMetricsConfiguration][4]
2684
2684
  #
@@ -2736,7 +2736,7 @@ module Aws::S3
2736
2736
  # Ownership][2].
2737
2737
  #
2738
2738
  # The following operations are related to
2739
- # `DeleteBucketOwnershipControls`\:
2739
+ # `DeleteBucketOwnershipControls`:
2740
2740
  #
2741
2741
  # * GetBucketOwnershipControls
2742
2742
  #
@@ -2857,7 +2857,7 @@ module Aws::S3
2857
2857
  # For information about replication configuration, see [Replication][3]
2858
2858
  # in the *Amazon S3 User Guide*.
2859
2859
  #
2860
- # The following operations are related to `DeleteBucketReplication`\:
2860
+ # The following operations are related to `DeleteBucketReplication`:
2861
2861
  #
2862
2862
  # * [PutBucketReplication][4]
2863
2863
  #
@@ -2912,7 +2912,7 @@ module Aws::S3
2912
2912
  # `s3:PutBucketTagging` action. By default, the bucket owner has this
2913
2913
  # permission and can grant this permission to others.
2914
2914
  #
2915
- # The following operations are related to `DeleteBucketTagging`\:
2915
+ # The following operations are related to `DeleteBucketTagging`:
2916
2916
  #
2917
2917
  # * [GetBucketTagging][1]
2918
2918
  #
@@ -2974,7 +2974,7 @@ module Aws::S3
2974
2974
  # For more information about hosting websites, see [Hosting Websites on
2975
2975
  # Amazon S3][1].
2976
2976
  #
2977
- # The following operations are related to `DeleteBucketWebsite`\:
2977
+ # The following operations are related to `DeleteBucketWebsite`:
2978
2978
  #
2979
2979
  # * [GetBucketWebsite][2]
2980
2980
  #
@@ -3048,7 +3048,7 @@ module Aws::S3
3048
3048
  # `s3:DeleteObject`, `s3:DeleteObjectVersion`, and
3049
3049
  # `s3:PutLifeCycleConfiguration` actions.
3050
3050
  #
3051
- # The following action is related to `DeleteObject`\:
3051
+ # The following action is related to `DeleteObject`:
3052
3052
  #
3053
3053
  # * [PutObject][4]
3054
3054
  #
@@ -3186,7 +3186,7 @@ module Aws::S3
3186
3186
  # `s3:DeleteObjectVersionTagging` action.
3187
3187
  #
3188
3188
  # The following operations are related to
3189
- # `DeleteBucketMetricsConfiguration`\:
3189
+ # `DeleteBucketMetricsConfiguration`:
3190
3190
  #
3191
3191
  # * [PutObjectTagging][2]
3192
3192
  #
@@ -3325,7 +3325,7 @@ module Aws::S3
3325
3325
  # Delete requests. Amazon S3 uses the header value to ensure that your
3326
3326
  # request body has not been altered in transit.
3327
3327
  #
3328
- # The following operations are related to `DeleteObjects`\:
3328
+ # The following operations are related to `DeleteObjects`:
3329
3329
  #
3330
3330
  # * [CreateMultipartUpload][2]
3331
3331
  #
@@ -3549,7 +3549,7 @@ module Aws::S3
3549
3549
  # Operations][1] and [Managing Access Permissions to Your Amazon S3
3550
3550
  # Resources][2].
3551
3551
  #
3552
- # The following operations are related to `DeletePublicAccessBlock`\:
3552
+ # The following operations are related to `DeletePublicAccessBlock`:
3553
3553
  #
3554
3554
  # * [Using Amazon S3 Block Public Access][3]
3555
3555
  #
@@ -3824,7 +3824,7 @@ module Aws::S3
3824
3824
  # For more information about CORS, see [ Enabling Cross-Origin Resource
3825
3825
  # Sharing][1].
3826
3826
  #
3827
- # The following operations are related to `GetBucketCors`\:
3827
+ # The following operations are related to `GetBucketCors`:
3828
3828
  #
3829
3829
  # * [PutBucketCors][2]
3830
3830
  #
@@ -3920,7 +3920,7 @@ module Aws::S3
3920
3920
  # Related to Bucket Subresource Operations][2] and [Managing Access
3921
3921
  # Permissions to Your Amazon S3 Resources][3].
3922
3922
  #
3923
- # The following operations are related to `GetBucketEncryption`\:
3923
+ # The following operations are related to `GetBucketEncryption`:
3924
3924
  #
3925
3925
  # * [PutBucketEncryption][4]
3926
3926
  #
@@ -4064,7 +4064,7 @@ module Aws::S3
4064
4064
  # Inventory][3].
4065
4065
  #
4066
4066
  # The following operations are related to
4067
- # `GetBucketInventoryConfiguration`\:
4067
+ # `GetBucketInventoryConfiguration`:
4068
4068
  #
4069
4069
  # * [DeleteBucketInventoryConfiguration][4]
4070
4070
  #
@@ -4156,7 +4156,7 @@ module Aws::S3
4156
4156
  #
4157
4157
  # * SOAP Fault Code Prefix: Client
4158
4158
  #
4159
- # The following operations are related to `GetBucketLifecycle`\:
4159
+ # The following operations are related to `GetBucketLifecycle`:
4160
4160
  #
4161
4161
  # * [GetBucketLifecycleConfiguration][1]
4162
4162
  #
@@ -4276,7 +4276,7 @@ module Aws::S3
4276
4276
  # * SOAP Fault Code Prefix: Client
4277
4277
  #
4278
4278
  # The following operations are related to
4279
- # `GetBucketLifecycleConfiguration`\:
4279
+ # `GetBucketLifecycleConfiguration`:
4280
4280
  #
4281
4281
  # * [GetBucketLifecycle][1]
4282
4282
  #
@@ -4389,7 +4389,7 @@ module Aws::S3
4389
4389
  # To use this API against an access point, provide the alias of the
4390
4390
  # access point in place of the bucket name.
4391
4391
  #
4392
- # The following operations are related to `GetBucketLocation`\:
4392
+ # The following operations are related to `GetBucketLocation`:
4393
4393
  #
4394
4394
  # * [GetObject][2]
4395
4395
  #
@@ -4450,7 +4450,7 @@ module Aws::S3
4450
4450
  # to view and modify that status. To use GET, you must be the bucket
4451
4451
  # owner.
4452
4452
  #
4453
- # The following operations are related to `GetBucketLogging`\:
4453
+ # The following operations are related to `GetBucketLogging`:
4454
4454
  #
4455
4455
  # * [CreateBucket][1]
4456
4456
  #
@@ -4516,7 +4516,7 @@ module Aws::S3
4516
4516
  # [Monitoring Metrics with Amazon CloudWatch][3].
4517
4517
  #
4518
4518
  # The following operations are related to
4519
- # `GetBucketMetricsConfiguration`\:
4519
+ # `GetBucketMetricsConfiguration`:
4520
4520
  #
4521
4521
  # * [PutBucketMetricsConfiguration][4]
4522
4522
  #
@@ -4709,7 +4709,7 @@ module Aws::S3
4709
4709
  # Events][1]. For more information about bucket policies, see [Using
4710
4710
  # Bucket Policies][2].
4711
4711
  #
4712
- # The following action is related to `GetBucketNotification`\:
4712
+ # The following action is related to `GetBucketNotification`:
4713
4713
  #
4714
4714
  # * [PutBucketNotification][3]
4715
4715
  #
@@ -4788,7 +4788,7 @@ module Aws::S3
4788
4788
  # For information about Amazon S3 Object Ownership, see [Using Object
4789
4789
  # Ownership][2].
4790
4790
  #
4791
- # The following operations are related to `GetBucketOwnershipControls`\:
4791
+ # The following operations are related to `GetBucketOwnershipControls`:
4792
4792
  #
4793
4793
  # * PutBucketOwnershipControls
4794
4794
  #
@@ -4852,7 +4852,7 @@ module Aws::S3
4852
4852
  # For more information about bucket policies, see [Using Bucket Policies
4853
4853
  # and User Policies][1].
4854
4854
  #
4855
- # The following action is related to `GetBucketPolicy`\:
4855
+ # The following action is related to `GetBucketPolicy`:
4856
4856
  #
4857
4857
  # * [GetObject][2]
4858
4858
  #
@@ -4918,7 +4918,7 @@ module Aws::S3
4918
4918
  # For more information about when Amazon S3 considers a bucket public,
4919
4919
  # see [The Meaning of "Public"][2].
4920
4920
  #
4921
- # The following operations are related to `GetBucketPolicyStatus`\:
4921
+ # The following operations are related to `GetBucketPolicyStatus`:
4922
4922
  #
4923
4923
  # * [Using Amazon S3 Block Public Access][3]
4924
4924
  #
@@ -4992,7 +4992,7 @@ module Aws::S3
4992
4992
  # For information about `GetBucketReplication` errors, see [List of
4993
4993
  # replication-related error codes][3]
4994
4994
  #
4995
- # The following operations are related to `GetBucketReplication`\:
4995
+ # The following operations are related to `GetBucketReplication`:
4996
4996
  #
4997
4997
  # * [PutBucketReplication][4]
4998
4998
  #
@@ -5093,7 +5093,7 @@ module Aws::S3
5093
5093
  # version of the operation, you must be the bucket owner. For more
5094
5094
  # information, see [Requester Pays Buckets][1].
5095
5095
  #
5096
- # The following operations are related to `GetBucketRequestPayment`\:
5096
+ # The following operations are related to `GetBucketRequestPayment`:
5097
5097
  #
5098
5098
  # * [ListObjects][2]
5099
5099
  #
@@ -5165,7 +5165,7 @@ module Aws::S3
5165
5165
  #
5166
5166
  # ^
5167
5167
  #
5168
- # The following operations are related to `GetBucketTagging`\:
5168
+ # The following operations are related to `GetBucketTagging`:
5169
5169
  #
5170
5170
  # * [PutBucketTagging][1]
5171
5171
  #
@@ -5243,7 +5243,7 @@ module Aws::S3
5243
5243
  # owner must use an authentication device to change the versioning state
5244
5244
  # of the bucket.
5245
5245
  #
5246
- # The following operations are related to `GetBucketVersioning`\:
5246
+ # The following operations are related to `GetBucketVersioning`:
5247
5247
  #
5248
5248
  # * [GetObject][1]
5249
5249
  #
@@ -5317,7 +5317,7 @@ module Aws::S3
5317
5317
  # the website configuration by writing a bucket policy granting them the
5318
5318
  # `S3:GetBucketWebsite` permission.
5319
5319
  #
5320
- # The following operations are related to `DeleteBucketWebsite`\:
5320
+ # The following operations are related to `DeleteBucketWebsite`:
5321
5321
  #
5322
5322
  # * [DeleteBucketWebsite][2]
5323
5323
  #
@@ -5532,7 +5532,7 @@ module Aws::S3
5532
5532
  #
5533
5533
  # For more information about conditional requests, see [RFC 7232][9].
5534
5534
  #
5535
- # The following operations are related to `GetObject`\:
5535
+ # The following operations are related to `GetObject`:
5536
5536
  #
5537
5537
  # * [ListBuckets][10]
5538
5538
  #
@@ -5891,7 +5891,7 @@ module Aws::S3
5891
5891
  #
5892
5892
  # </note>
5893
5893
  #
5894
- # The following operations are related to `GetObjectAcl`\:
5894
+ # The following operations are related to `GetObjectAcl`:
5895
5895
  #
5896
5896
  # * [GetObject][3]
5897
5897
  #
@@ -6088,7 +6088,7 @@ module Aws::S3
6088
6088
  #
6089
6089
  # * If both of the `If-None-Match` and `If-Modified-Since` headers are
6090
6090
  # present in the request as follows, then Amazon S3 returns the HTTP
6091
- # status code `304 Not Modified`\:
6091
+ # status code `304 Not Modified`:
6092
6092
  #
6093
6093
  # * `If-None-Match` condition evaluates to `false`.
6094
6094
  #
@@ -6114,7 +6114,7 @@ module Aws::S3
6114
6114
  # * If you don't have the `s3:ListBucket` permission, Amazon S3 returns
6115
6115
  # an HTTP status code `403 Forbidden` ("access denied") error.
6116
6116
  #
6117
- # The following actions are related to `GetObjectAttributes`\:
6117
+ # The following actions are related to `GetObjectAttributes`:
6118
6118
  #
6119
6119
  # * [GetObject][4]
6120
6120
  #
@@ -6289,7 +6289,7 @@ module Aws::S3
6289
6289
  #
6290
6290
  # This action is not supported by Amazon S3 on Outposts.
6291
6291
  #
6292
- # The following action is related to `GetObjectLegalHold`\:
6292
+ # The following action is related to `GetObjectLegalHold`:
6293
6293
  #
6294
6294
  # * [GetObjectAttributes][2]
6295
6295
  #
@@ -6372,7 +6372,7 @@ module Aws::S3
6372
6372
  # object placed in the specified bucket. For more information, see
6373
6373
  # [Locking Objects][1].
6374
6374
  #
6375
- # The following action is related to `GetObjectLockConfiguration`\:
6375
+ # The following action is related to `GetObjectLockConfiguration`:
6376
6376
  #
6377
6377
  # * [GetObjectAttributes][2]
6378
6378
  #
@@ -6435,7 +6435,7 @@ module Aws::S3
6435
6435
  #
6436
6436
  # This action is not supported by Amazon S3 on Outposts.
6437
6437
  #
6438
- # The following action is related to `GetObjectRetention`\:
6438
+ # The following action is related to `GetObjectRetention`:
6439
6439
  #
6440
6440
  # * [GetObjectAttributes][2]
6441
6441
  #
@@ -6530,7 +6530,7 @@ module Aws::S3
6530
6530
  # For information about the Amazon S3 object tagging feature, see
6531
6531
  # [Object Tagging][1].
6532
6532
  #
6533
- # The following actions are related to `GetObjectTagging`\:
6533
+ # The following actions are related to `GetObjectTagging`:
6534
6534
  #
6535
6535
  # * [DeleteObjectTagging][2]
6536
6536
  #
@@ -6684,7 +6684,7 @@ module Aws::S3
6684
6684
  #
6685
6685
  # This action is not supported by Amazon S3 on Outposts.
6686
6686
  #
6687
- # The following action is related to `GetObjectTorrent`\:
6687
+ # The following action is related to `GetObjectTorrent`:
6688
6688
  #
6689
6689
  # * [GetObject][2]
6690
6690
  #
@@ -6779,7 +6779,7 @@ module Aws::S3
6779
6779
  # For more information about when Amazon S3 considers a bucket or an
6780
6780
  # object public, see [The Meaning of "Public"][2].
6781
6781
  #
6782
- # The following operations are related to `GetPublicAccessBlock`\:
6782
+ # The following operations are related to `GetPublicAccessBlock`:
6783
6783
  #
6784
6784
  # * [Using Amazon S3 Block Public Access][3]
6785
6785
  #
@@ -7003,7 +7003,7 @@ module Aws::S3
7003
7003
  # * If you don’t have the `s3:ListBucket` permission, Amazon S3 returns
7004
7004
  # an HTTP status code 403 ("access denied") error.
7005
7005
  #
7006
- # The following actions are related to `HeadObject`\:
7006
+ # The following actions are related to `HeadObject`:
7007
7007
  #
7008
7008
  # * [GetObject][5]
7009
7009
  #
@@ -7272,7 +7272,7 @@ module Aws::S3
7272
7272
  # Analytics – Storage Class Analysis][3].
7273
7273
  #
7274
7274
  # The following operations are related to
7275
- # `ListBucketAnalyticsConfigurations`\:
7275
+ # `ListBucketAnalyticsConfigurations`:
7276
7276
  #
7277
7277
  # * [GetBucketAnalyticsConfiguration][4]
7278
7278
  #
@@ -7457,7 +7457,7 @@ module Aws::S3
7457
7457
  # Inventory][3]
7458
7458
  #
7459
7459
  # The following operations are related to
7460
- # `ListBucketInventoryConfigurations`\:
7460
+ # `ListBucketInventoryConfigurations`:
7461
7461
  #
7462
7462
  # * [GetBucketInventoryConfiguration][4]
7463
7463
  #
@@ -7557,7 +7557,7 @@ module Aws::S3
7557
7557
  # request metrics, see [Monitoring Metrics with Amazon CloudWatch][3].
7558
7558
  #
7559
7559
  # The following operations are related to
7560
- # `ListBucketMetricsConfigurations`\:
7560
+ # `ListBucketMetricsConfigurations`:
7561
7561
  #
7562
7562
  # * [PutBucketMetricsConfiguration][4]
7563
7563
  #
@@ -7714,7 +7714,7 @@ module Aws::S3
7714
7714
  # For information on permissions required to use the multipart upload
7715
7715
  # API, see [Multipart Upload and Permissions][2].
7716
7716
  #
7717
- # The following operations are related to `ListMultipartUploads`\:
7717
+ # The following operations are related to `ListMultipartUploads`:
7718
7718
  #
7719
7719
  # * [CreateMultipartUpload][3]
7720
7720
  #
@@ -7993,7 +7993,7 @@ module Aws::S3
7993
7993
  #
7994
7994
  # This action is not supported by Amazon S3 on Outposts.
7995
7995
  #
7996
- # The following operations are related to `ListObjectVersions`\:
7996
+ # The following operations are related to `ListObjectVersions`:
7997
7997
  #
7998
7998
  # * [ListObjectsV2][1]
7999
7999
  #
@@ -8184,7 +8184,7 @@ module Aws::S3
8184
8184
  # version, [ListObjectsV2][1], when developing applications. For
8185
8185
  # backward compatibility, Amazon S3 continues to support `ListObjects`.
8186
8186
  #
8187
- # The following operations are related to `ListObjects`\:
8187
+ # The following operations are related to `ListObjects`:
8188
8188
  #
8189
8189
  # * [ListObjectsV2][1]
8190
8190
  #
@@ -8387,7 +8387,7 @@ module Aws::S3
8387
8387
  #
8388
8388
  # To get a list of your buckets, see [ListBuckets][5].
8389
8389
  #
8390
- # The following operations are related to `ListObjectsV2`\:
8390
+ # The following operations are related to `ListObjectsV2`:
8391
8391
  #
8392
8392
  # * [GetObject][6]
8393
8393
  #
@@ -8596,7 +8596,7 @@ module Aws::S3
8596
8596
  # For information on permissions required to use the multipart upload
8597
8597
  # API, see [Multipart Upload and Permissions][3].
8598
8598
  #
8599
- # The following operations are related to `ListParts`\:
8599
+ # The following operations are related to `ListParts`:
8600
8600
  #
8601
8601
  # * [CreateMultipartUpload][1]
8602
8602
  #
@@ -8848,7 +8848,7 @@ module Aws::S3
8848
8848
  # Acceleration][4].
8849
8849
  #
8850
8850
  # The following operations are related to
8851
- # `PutBucketAccelerateConfiguration`\:
8851
+ # `PutBucketAccelerateConfiguration`:
8852
8852
  #
8853
8853
  # * [GetBucketAccelerateConfiguration][3]
8854
8854
  #
@@ -10090,7 +10090,7 @@ module Aws::S3
10090
10090
  # For more information about permissions, see [Managing Access
10091
10091
  # Permissions to Your Amazon S3 Resources][5].
10092
10092
  #
10093
- # The following are related to `PutBucketLifecycleConfiguration`\:
10093
+ # The following are related to `PutBucketLifecycleConfiguration`:
10094
10094
  #
10095
10095
  # * [Examples of Lifecycle Configuration][6]
10096
10096
  #
@@ -10295,7 +10295,7 @@ module Aws::S3
10295
10295
  # For more information about returning the logging status of a bucket,
10296
10296
  # see [GetBucketLogging][4].
10297
10297
  #
10298
- # The following operations are related to `PutBucketLogging`\:
10298
+ # The following operations are related to `PutBucketLogging`:
10299
10299
  #
10300
10300
  # * [PutObject][5]
10301
10301
  #
@@ -10429,7 +10429,7 @@ module Aws::S3
10429
10429
  # [Monitoring Metrics with Amazon CloudWatch][3].
10430
10430
  #
10431
10431
  # The following operations are related to
10432
- # `PutBucketMetricsConfiguration`\:
10432
+ # `PutBucketMetricsConfiguration`:
10433
10433
  #
10434
10434
  # * [DeleteBucketMetricsConfiguration][4]
10435
10435
  #
@@ -10651,7 +10651,7 @@ module Aws::S3
10651
10651
  # ID of the test notification sent to the topic.
10652
10652
  #
10653
10653
  # The following action is related to
10654
- # `PutBucketNotificationConfiguration`\:
10654
+ # `PutBucketNotificationConfiguration`:
10655
10655
  #
10656
10656
  # * [GetBucketNotificationConfiguration][3]
10657
10657
  #
@@ -10781,7 +10781,7 @@ module Aws::S3
10781
10781
  # For information about Amazon S3 Object Ownership, see [Using object
10782
10782
  # ownership][2].
10783
10783
  #
10784
- # The following operations are related to `PutBucketOwnershipControls`\:
10784
+ # The following operations are related to `PutBucketOwnershipControls`:
10785
10785
  #
10786
10786
  # * GetBucketOwnershipControls
10787
10787
  #
@@ -10856,7 +10856,7 @@ module Aws::S3
10856
10856
  #
10857
10857
  # For more information, see [Bucket policy examples][1].
10858
10858
  #
10859
- # The following operations are related to `PutBucketPolicy`\:
10859
+ # The following operations are related to `PutBucketPolicy`:
10860
10860
  #
10861
10861
  # * [CreateBucket][2]
10862
10862
  #
@@ -10999,7 +10999,7 @@ module Aws::S3
10999
10999
  #
11000
11000
  # </note>
11001
11001
  #
11002
- # The following operations are related to `PutBucketReplication`\:
11002
+ # The following operations are related to `PutBucketReplication`:
11003
11003
  #
11004
11004
  # * [GetBucketReplication][9]
11005
11005
  #
@@ -11175,7 +11175,7 @@ module Aws::S3
11175
11175
  # requesting the download will be charged for the download. For more
11176
11176
  # information, see [Requester Pays Buckets][1].
11177
11177
  #
11178
- # The following operations are related to `PutBucketRequestPayment`\:
11178
+ # The following operations are related to `PutBucketRequestPayment`:
11179
11179
  #
11180
11180
  # * [CreateBucket][2]
11181
11181
  #
@@ -11320,7 +11320,7 @@ module Aws::S3
11320
11320
  #
11321
11321
  # ^
11322
11322
  #
11323
- # The following operations are related to `PutBucketTagging`\:
11323
+ # The following operations are related to `PutBucketTagging`:
11324
11324
  #
11325
11325
  # * [GetBucketTagging][7]
11326
11326
  #
@@ -13890,7 +13890,7 @@ module Aws::S3
13890
13890
  # The `SelectObjectContent` action does not support the following
13891
13891
  # `GetObject` functionality. For more information, see [GetObject][5].
13892
13892
  #
13893
- # * `Range`\: Although you can specify a scan range for an Amazon S3
13893
+ # * `Range`: Although you can specify a scan range for an Amazon S3
13894
13894
  # Select request (see [SelectObjectContentRequest - ScanRange][9] in
13895
13895
  # the request parameters), you cannot specify the range of bytes of an
13896
13896
  # object to return.
@@ -14608,7 +14608,7 @@ module Aws::S3
14608
14608
  # Note the following additional considerations about the request headers
14609
14609
  # `x-amz-copy-source-if-match`, `x-amz-copy-source-if-none-match`,
14610
14610
  # `x-amz-copy-source-if-unmodified-since`, and
14611
- # `x-amz-copy-source-if-modified-since`\:
14611
+ # `x-amz-copy-source-if-modified-since`:
14612
14612
  #
14613
14613
  #
14614
14614
  #
@@ -14726,7 +14726,7 @@ module Aws::S3
14726
14726
  # @option params [required, String] :copy_source
14727
14727
  # Specifies the source object for the copy operation. You specify the
14728
14728
  # value in one of two formats, depending on whether you want to access
14729
- # the source object through an [access point][1]\:
14729
+ # the source object through an [access point][1]:
14730
14730
  #
14731
14731
  # * For objects not accessed through an access point, specify the name
14732
14732
  # of the source bucket and key of the source object, separated by a
@@ -15354,7 +15354,7 @@ module Aws::S3
15354
15354
  params: params,
15355
15355
  config: config)
15356
15356
  context[:gem_name] = 'aws-sdk-s3'
15357
- context[:gem_version] = '1.119.0'
15357
+ context[:gem_version] = '1.119.2'
15358
15358
  Seahorse::Client::Request.new(handlers, context)
15359
15359
  end
15360
15360
 
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module S3
5
+ module Errors
6
+ # Hijack PermanentRedirect dynamic error to also include endpoint
7
+ # and bucket.
8
+ class PermanentRedirect < ServiceError
9
+ # @param [Seahorse::Client::RequestContext] context
10
+ # @param [String] message
11
+ # @param [Aws::S3::Types::PermanentRedirect] data
12
+ def initialize(context, message, _data = Aws::EmptyStructure.new)
13
+ data = Aws::S3::Types::PermanentRedirect.new(message: message)
14
+ body = context.http_response.body_contents
15
+ if (endpoint = body.match(/<Endpoint>(.+?)<\/Endpoint>/))
16
+ data.endpoint = endpoint[1]
17
+ end
18
+ if (bucket = body.match(/<Bucket>(.+?)<\/Bucket>/))
19
+ data.bucket = bucket[1]
20
+ end
21
+ data.region = context.http_response.headers['x-amz-bucket-region']
22
+ super(context, message, data)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -27,10 +27,13 @@ module Aws
27
27
  # necessary for objects larger than 5GB and can provide
28
28
  # performance improvements on large objects. Amazon S3 does
29
29
  # not accept multipart copies for objects smaller than 5MB.
30
+ # Object metadata such as Content-Type will be copied, however,
31
+ # Checksums are not copied.
30
32
  #
31
33
  # @option options [Integer] :content_length Only used when
32
34
  # `:multipart_copy` is `true`. Passing this options avoids a HEAD
33
- # request to query the source object size. Raises an `ArgumentError` if
35
+ # request to query the source object size but prevents object metadata
36
+ # from being copied. Raises an `ArgumentError` if
34
37
  # this option is provided when `:multipart_copy` is `false` or not set.
35
38
  #
36
39
  # @option options [S3::Client] :copy_source_client Only used when
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Aws
4
+ module S3
5
+ module Types
6
+ # This error is not modeled.
7
+ #
8
+ # The bucket you are attempting to access must be addressed using the
9
+ # specified endpoint. Please send all future requests to this endpoint.
10
+ #
11
+ # @!attribute [rw] endpoint
12
+ # @return [String]
13
+ #
14
+ # @!attribute [rw] bucket
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] message
18
+ # @return [String]
19
+ #
20
+ class PermanentRedirect < Struct.new(:endpoint, :bucket, :region, :message)
21
+ SENSITIVE = []
22
+ include Aws::Structure
23
+ end
24
+ end
25
+ end
26
+ end
@@ -18,10 +18,12 @@ require 'aws-sdk-s3/presigner'
18
18
 
19
19
  # customizations to generated classes
20
20
  require 'aws-sdk-s3/customizations/bucket'
21
+ require 'aws-sdk-s3/customizations/errors'
21
22
  require 'aws-sdk-s3/customizations/object'
22
23
  require 'aws-sdk-s3/customizations/object_summary'
23
24
  require 'aws-sdk-s3/customizations/multipart_upload'
24
25
  require 'aws-sdk-s3/customizations/types/list_object_versions_output'
26
+ require 'aws-sdk-s3/customizations/types/permanent_redirect'
25
27
 
26
28
  [
27
29
  Aws::S3::Object::Collection,
@@ -284,7 +284,7 @@ module Aws::S3
284
284
  # @option options [required, String] :copy_source
285
285
  # Specifies the source object for the copy operation. You specify the
286
286
  # value in one of two formats, depending on whether you want to access
287
- # the source object through an [access point][1]\:
287
+ # the source object through an [access point][1]:
288
288
  #
289
289
  # * For objects not accessed through an access point, specify the name
290
290
  # of the source bucket and key of the source object, separated by a
@@ -658,7 +658,7 @@ module Aws::S3
658
658
  # @option options [required, String] :copy_source
659
659
  # Specifies the source object for the copy operation. You specify the
660
660
  # value in one of two formats, depending on whether you want to access
661
- # the source object through an [access point][1]\:
661
+ # the source object through an [access point][1]:
662
662
  #
663
663
  # * For objects not accessed through an access point, specify the name
664
664
  # of the source bucket and the key of the source object, separated by
@@ -24,6 +24,9 @@ module Aws
24
24
  @thread_count = options.delete(:thread_count) || 10
25
25
  @min_part_size = options.delete(:min_part_size) || (FIVE_MB * 10)
26
26
  @client = options[:client] || Client.new
27
+ if options[:checksum_algorithm]
28
+ raise ArgumentError, 'Multipart Copy does not support setting :checksum_algorithm'
29
+ end
27
30
  end
28
31
 
29
32
  # @return [Client]
@@ -31,8 +34,9 @@ module Aws
31
34
 
32
35
  # @option (see S3::Client#copy_object)
33
36
  def copy(options = {})
34
- size = source_size(options)
35
- options[:upload_id] = initiate_upload(options)
37
+ metadata = source_metadata(options)
38
+ size = metadata[:content_length]
39
+ options[:upload_id] = initiate_upload(metadata.merge(options))
36
40
  begin
37
41
  parts = copy_parts(size, default_part_size(size), options)
38
42
  complete_upload(parts, options)
@@ -118,8 +122,10 @@ module Aws
118
122
  end
119
123
  end
120
124
 
121
- def source_size(options)
122
- return options.delete(:content_length) if options[:content_length]
125
+ def source_metadata(options)
126
+ if options[:content_length]
127
+ return { content_length: options.delete(:content_length) }
128
+ end
123
129
 
124
130
  client = options[:copy_source_client] || @client
125
131
 
@@ -132,7 +138,7 @@ module Aws
132
138
  key = CGI.unescape(key)
133
139
  opts = { bucket: bucket, key: key }
134
140
  opts[:version_id] = version_id if version_id
135
- client.head_object(opts).content_length
141
+ client.head_object(opts).to_h
136
142
  end
137
143
 
138
144
  def default_part_size(source_size)
@@ -352,7 +352,7 @@ module Aws::S3
352
352
  # @option options [required, String] :copy_source
353
353
  # Specifies the source object for the copy operation. You specify the
354
354
  # value in one of two formats, depending on whether you want to access
355
- # the source object through an [access point][1]\:
355
+ # the source object through an [access point][1]:
356
356
  #
357
357
  # * For objects not accessed through an access point, specify the name
358
358
  # of the source bucket and the key of the source object, separated by
@@ -460,16 +460,15 @@ module Aws::S3
460
460
  # @!attribute [rw] file_header_info
461
461
  # Describes the first line of input. Valid values are:
462
462
  #
463
- # * `NONE`\: First line is not a header.
463
+ # * `NONE`: First line is not a header.
464
464
  #
465
- # * `IGNORE`\: First line is a header, but you can't use the header
465
+ # * `IGNORE`: First line is a header, but you can't use the header
466
466
  # values to indicate the column in an expression. You can use column
467
467
  # position (such as \_1, \_2, …) to indicate the column (`SELECT
468
468
  # s._1 FROM OBJECT s`).
469
469
  #
470
- # * `Use`\: First line is a header, and you can use the header value
471
- # to identify a column in an expression (`SELECT "name" FROM
472
- # OBJECT`).
470
+ # * `Use`: First line is a header, and you can use the header value to
471
+ # identify a column in an expression (`SELECT "name" FROM OBJECT`).
473
472
  # @return [String]
474
473
  #
475
474
  # @!attribute [rw] comments
@@ -533,9 +532,9 @@ module Aws::S3
533
532
  # @!attribute [rw] quote_fields
534
533
  # Indicates whether to use quotation marks around output fields.
535
534
  #
536
- # * `ALWAYS`\: Always use quotation marks for output fields.
535
+ # * `ALWAYS`: Always use quotation marks for output fields.
537
536
  #
538
- # * `ASNEEDED`\: Use quotation marks for output fields when needed.
537
+ # * `ASNEEDED`: Use quotation marks for output fields when needed.
539
538
  # @return [String]
540
539
  #
541
540
  # @!attribute [rw] quote_escape_character
@@ -1298,7 +1297,7 @@ module Aws::S3
1298
1297
  # @!attribute [rw] copy_source
1299
1298
  # Specifies the source object for the copy operation. You specify the
1300
1299
  # value in one of two formats, depending on whether you want to access
1301
- # the source object through an [access point][1]\:
1300
+ # the source object through an [access point][1]:
1302
1301
  #
1303
1302
  # * For objects not accessed through an access point, specify the name
1304
1303
  # of the source bucket and the key of the source object, separated
@@ -13107,7 +13106,7 @@ module Aws::S3
13107
13106
  # @!attribute [rw] copy_source
13108
13107
  # Specifies the source object for the copy operation. You specify the
13109
13108
  # value in one of two formats, depending on whether you want to access
13110
- # the source object through an [access point][1]\:
13109
+ # the source object through an [access point][1]:
13111
13110
  #
13112
13111
  # * For objects not accessed through an access point, specify the name
13113
13112
  # of the source bucket and key of the source object, separated by a
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.119.0'
76
+ GEM_VERSION = '1.119.2'
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.119.0
4
+ version: 1.119.2
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-01-26 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms
@@ -87,10 +87,12 @@ files:
87
87
  - lib/aws-sdk-s3/client_api.rb
88
88
  - lib/aws-sdk-s3/customizations.rb
89
89
  - lib/aws-sdk-s3/customizations/bucket.rb
90
+ - lib/aws-sdk-s3/customizations/errors.rb
90
91
  - lib/aws-sdk-s3/customizations/multipart_upload.rb
91
92
  - lib/aws-sdk-s3/customizations/object.rb
92
93
  - lib/aws-sdk-s3/customizations/object_summary.rb
93
94
  - lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb
95
+ - lib/aws-sdk-s3/customizations/types/permanent_redirect.rb
94
96
  - lib/aws-sdk-s3/encryption.rb
95
97
  - lib/aws-sdk-s3/encryption/client.rb
96
98
  - lib/aws-sdk-s3/encryption/decrypt_handler.rb