aws-sdk-s3 1.84.1 → 1.87.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/bucket.rb +11 -1
- data/lib/aws-sdk-s3/bucket_acl.rb +3 -0
- data/lib/aws-sdk-s3/bucket_cors.rb +3 -0
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +2 -0
- data/lib/aws-sdk-s3/bucket_logging.rb +3 -0
- data/lib/aws-sdk-s3/bucket_policy.rb +3 -0
- data/lib/aws-sdk-s3/bucket_request_payment.rb +3 -0
- data/lib/aws-sdk-s3/bucket_tagging.rb +3 -0
- data/lib/aws-sdk-s3/bucket_versioning.rb +9 -0
- data/lib/aws-sdk-s3/bucket_website.rb +3 -0
- data/lib/aws-sdk-s3/client.rb +304 -193
- data/lib/aws-sdk-s3/client_api.rb +39 -19
- data/lib/aws-sdk-s3/legacy_signer.rb +15 -25
- data/lib/aws-sdk-s3/object.rb +49 -6
- data/lib/aws-sdk-s3/object_acl.rb +3 -0
- data/lib/aws-sdk-s3/object_summary.rb +27 -0
- data/lib/aws-sdk-s3/types.rb +248 -27
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11cd48be59fc8922aabfe4d29d601706183fc5d5ce0b1fb201ae2f59c6f281ab
|
4
|
+
data.tar.gz: 546d8a92a9a561d94d205908d52c005edb5a49d336751ee7954936f9449d7138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a5af91aba1ce6e9b4f3d121cbc427e1534a2fb80edb553a7e5e62e5a937877174581ad169c4abd46dd3d32dfdf765d9161f7bc4c907b5f0cf158d44dbd81e3
|
7
|
+
data.tar.gz: 995720b6753b4add059e235f37dea7fe49dbe19038e495260023aa380bfe2544cdb9873dafab1a2c685d9eae3f1eeeacb290480ac149d6624f475ba584519c57
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -34,7 +34,8 @@ module Aws::S3
|
|
34
34
|
@name
|
35
35
|
end
|
36
36
|
|
37
|
-
# Date the bucket was created.
|
37
|
+
# Date the bucket was created. This date can change when making changes
|
38
|
+
# to your bucket, such as editing its bucket policy.
|
38
39
|
# @return [Time]
|
39
40
|
def creation_date
|
40
41
|
data[:creation_date]
|
@@ -354,6 +355,7 @@ module Aws::S3
|
|
354
355
|
# sse_customer_key_md5: "SSECustomerKeyMD5",
|
355
356
|
# ssekms_key_id: "SSEKMSKeyId",
|
356
357
|
# ssekms_encryption_context: "SSEKMSEncryptionContext",
|
358
|
+
# bucket_key_enabled: false,
|
357
359
|
# request_payer: "requester", # accepts requester
|
358
360
|
# tagging: "TaggingHeader",
|
359
361
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
@@ -525,6 +527,14 @@ module Aws::S3
|
|
525
527
|
# Specifies the AWS KMS Encryption Context to use for object encryption.
|
526
528
|
# The value of this header is a base64-encoded UTF-8 string holding JSON
|
527
529
|
# with the encryption context key-value pairs.
|
530
|
+
# @option options [Boolean] :bucket_key_enabled
|
531
|
+
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
532
|
+
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
533
|
+
# Setting this header to `true` causes Amazon S3 to use an S3 Bucket Key
|
534
|
+
# for object encryption with SSE-KMS.
|
535
|
+
#
|
536
|
+
# Specifying this header with a PUT operation doesn’t affect
|
537
|
+
# bucket-level settings for S3 Bucket Key.
|
528
538
|
# @option options [String] :request_payer
|
529
539
|
# Confirms that the requester knows that they will be charged for the
|
530
540
|
# request. Bucket owners need not specify this parameter in their
|
@@ -221,6 +221,9 @@ module Aws::S3
|
|
221
221
|
# used as a message integrity check to verify that the request body was
|
222
222
|
# not corrupted in transit. For more information, go to [RFC 1864.][1]
|
223
223
|
#
|
224
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
225
|
+
# SDKs, this field is calculated automatically.
|
226
|
+
#
|
224
227
|
#
|
225
228
|
#
|
226
229
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -224,6 +224,9 @@ module Aws::S3
|
|
224
224
|
# used as a message integrity check to verify that the request body was
|
225
225
|
# not corrupted in transit. For more information, go to [RFC 1864.][1]
|
226
226
|
#
|
227
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
228
|
+
# SDKs, this field is calculated automatically.
|
229
|
+
#
|
227
230
|
#
|
228
231
|
#
|
229
232
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -228,6 +228,8 @@ module Aws::S3
|
|
228
228
|
# })
|
229
229
|
# @param [Hash] options ({})
|
230
230
|
# @option options [String] :content_md5
|
231
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
232
|
+
# SDKs, this field is calculated automatically.
|
231
233
|
# @option options [Types::LifecycleConfiguration] :lifecycle_configuration
|
232
234
|
# @option options [String] :expected_bucket_owner
|
233
235
|
# The account id of the expected bucket owner. If the bucket is owned by
|
@@ -210,6 +210,9 @@ module Aws::S3
|
|
210
210
|
# Container for logging status information.
|
211
211
|
# @option options [String] :content_md5
|
212
212
|
# The MD5 hash of the `PutBucketLogging` request body.
|
213
|
+
#
|
214
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
215
|
+
# SDKs, this field is calculated automatically.
|
213
216
|
# @option options [String] :expected_bucket_owner
|
214
217
|
# The account id of the expected bucket owner. If the bucket is owned by
|
215
218
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -202,6 +202,9 @@ module Aws::S3
|
|
202
202
|
# @param [Hash] options ({})
|
203
203
|
# @option options [String] :content_md5
|
204
204
|
# The MD5 hash of the request body.
|
205
|
+
#
|
206
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
207
|
+
# SDKs, this field is calculated automatically.
|
205
208
|
# @option options [Boolean] :confirm_remove_self_bucket_access
|
206
209
|
# Set this parameter to true to confirm that you want to remove your
|
207
210
|
# permissions to change this bucket policy in the future.
|
@@ -190,6 +190,9 @@ module Aws::S3
|
|
190
190
|
# body was not corrupted in transit. For more information, see [RFC
|
191
191
|
# 1864][1].
|
192
192
|
#
|
193
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
194
|
+
# SDKs, this field is calculated automatically.
|
195
|
+
#
|
193
196
|
#
|
194
197
|
#
|
195
198
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -211,6 +211,9 @@ module Aws::S3
|
|
211
211
|
# header as a message integrity check to verify that the request body
|
212
212
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
213
213
|
#
|
214
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
215
|
+
# SDKs, this field is calculated automatically.
|
216
|
+
#
|
214
217
|
#
|
215
218
|
#
|
216
219
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -197,6 +197,9 @@ module Aws::S3
|
|
197
197
|
# body was not corrupted in transit. For more information, see [RFC
|
198
198
|
# 1864][1].
|
199
199
|
#
|
200
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
201
|
+
# SDKs, this field is calculated automatically.
|
202
|
+
#
|
200
203
|
#
|
201
204
|
#
|
202
205
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -237,6 +240,9 @@ module Aws::S3
|
|
237
240
|
# body was not corrupted in transit. For more information, see [RFC
|
238
241
|
# 1864][1].
|
239
242
|
#
|
243
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
244
|
+
# SDKs, this field is calculated automatically.
|
245
|
+
#
|
240
246
|
#
|
241
247
|
#
|
242
248
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -270,6 +276,9 @@ module Aws::S3
|
|
270
276
|
# body was not corrupted in transit. For more information, see [RFC
|
271
277
|
# 1864][1].
|
272
278
|
#
|
279
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
280
|
+
# SDKs, this field is calculated automatically.
|
281
|
+
#
|
273
282
|
#
|
274
283
|
#
|
275
284
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -252,6 +252,9 @@ module Aws::S3
|
|
252
252
|
# header as a message integrity check to verify that the request body
|
253
253
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
254
254
|
#
|
255
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
256
|
+
# SDKs, this field is calculated automatically.
|
257
|
+
#
|
255
258
|
#
|
256
259
|
#
|
257
260
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -659,6 +659,7 @@ module Aws::S3
|
|
659
659
|
# * {Types::CompleteMultipartUploadOutput#server_side_encryption #server_side_encryption} => String
|
660
660
|
# * {Types::CompleteMultipartUploadOutput#version_id #version_id} => String
|
661
661
|
# * {Types::CompleteMultipartUploadOutput#ssekms_key_id #ssekms_key_id} => String
|
662
|
+
# * {Types::CompleteMultipartUploadOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
662
663
|
# * {Types::CompleteMultipartUploadOutput#request_charged #request_charged} => String
|
663
664
|
#
|
664
665
|
#
|
@@ -720,6 +721,7 @@ module Aws::S3
|
|
720
721
|
# resp.server_side_encryption #=> String, one of "AES256", "aws:kms"
|
721
722
|
# resp.version_id #=> String
|
722
723
|
# resp.ssekms_key_id #=> String
|
724
|
+
# resp.bucket_key_enabled #=> Boolean
|
723
725
|
# resp.request_charged #=> String, one of "requester"
|
724
726
|
#
|
725
727
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompleteMultipartUpload AWS API Documentation
|
@@ -830,22 +832,20 @@ module Aws::S3
|
|
830
832
|
#
|
831
833
|
# </note>
|
832
834
|
#
|
833
|
-
# **
|
835
|
+
# **Server-side encryption**
|
834
836
|
#
|
835
|
-
#
|
836
|
-
#
|
837
|
-
# encryption
|
838
|
-
#
|
839
|
-
# Amazon S3 encrypts your data as it writes it to disks in
|
840
|
-
# centers and decrypts the data when you access it.
|
837
|
+
# When you perform a CopyObject operation, you can optionally use the
|
838
|
+
# appropriate encryption-related headers to encrypt the object using
|
839
|
+
# server-side encryption with AWS managed encryption keys (SSE-S3 or
|
840
|
+
# SSE-KMS) or a customer-provided encryption key. With server-side
|
841
|
+
# encryption, Amazon S3 encrypts your data as it writes it to disks in
|
842
|
+
# its data centers and decrypts the data when you access it. For more
|
843
|
+
# information about server-side encryption, see [Using Server-Side
|
844
|
+
# Encryption][8].
|
841
845
|
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
# regardless of the form of server-side encryption that was used to
|
846
|
-
# encrypt the source object. You can even request encryption if the
|
847
|
-
# source object was not encrypted. For more information about
|
848
|
-
# server-side encryption, see [Using Server-Side Encryption][8].
|
846
|
+
# If a target object uses SSE-KMS, you can enable an S3 Bucket Key for
|
847
|
+
# the object. For more information, see [Amazon S3 Bucket Keys][9] in
|
848
|
+
# the *Amazon Simple Storage Service Developer Guide*.
|
849
849
|
#
|
850
850
|
# **Access Control List (ACL)-Specific Request Headers**
|
851
851
|
#
|
@@ -855,13 +855,13 @@ module Aws::S3
|
|
855
855
|
# permissions to individual AWS accounts or to predefined groups defined
|
856
856
|
# by Amazon S3. These permissions are then added to the ACL on the
|
857
857
|
# object. For more information, see [Access Control List (ACL)
|
858
|
-
# Overview][
|
858
|
+
# Overview][10] and [Managing ACLs Using the REST API][11].
|
859
859
|
#
|
860
860
|
# **Storage Class Options**
|
861
861
|
#
|
862
862
|
# You can use the `CopyObject` operation to change the storage class of
|
863
863
|
# an object that is already stored in Amazon S3 using the `StorageClass`
|
864
|
-
# parameter. For more information, see [Storage Classes][
|
864
|
+
# parameter. For more information, see [Storage Classes][12] in the
|
865
865
|
# *Amazon S3 Service Developer Guide*.
|
866
866
|
#
|
867
867
|
# **Versioning**
|
@@ -882,15 +882,15 @@ module Aws::S3
|
|
882
882
|
#
|
883
883
|
# If the source object's storage class is GLACIER, you must restore a
|
884
884
|
# copy of this object before you can use it as a source object for the
|
885
|
-
# copy operation. For more information, see [RestoreObject][
|
885
|
+
# copy operation. For more information, see [RestoreObject][13].
|
886
886
|
#
|
887
887
|
# The following operations are related to `CopyObject`\:
|
888
888
|
#
|
889
|
-
# * [PutObject][
|
889
|
+
# * [PutObject][14]
|
890
890
|
#
|
891
|
-
# * [GetObject][
|
891
|
+
# * [GetObject][15]
|
892
892
|
#
|
893
|
-
# For more information, see [Copying Objects][
|
893
|
+
# For more information, see [Copying Objects][16].
|
894
894
|
#
|
895
895
|
#
|
896
896
|
#
|
@@ -902,13 +902,14 @@ module Aws::S3
|
|
902
902
|
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/amazon-s3-policy-keys.html
|
903
903
|
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/list_amazons3.html
|
904
904
|
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html
|
905
|
-
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
906
|
-
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
|
907
|
-
# [11]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
908
|
-
# [12]: https://docs.aws.amazon.com/AmazonS3/latest/
|
909
|
-
# [13]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
910
|
-
# [14]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
911
|
-
# [15]: https://docs.aws.amazon.com/AmazonS3/latest/
|
905
|
+
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html
|
906
|
+
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
907
|
+
# [11]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html
|
908
|
+
# [12]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
|
909
|
+
# [13]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
|
910
|
+
# [14]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html
|
911
|
+
# [15]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
|
912
|
+
# [16]: https://docs.aws.amazon.com/AmazonS3/latest/dev/CopyingObjectsExamples.html
|
912
913
|
#
|
913
914
|
# @option params [String] :acl
|
914
915
|
# The canned ACL to apply to the object.
|
@@ -1109,6 +1110,15 @@ module Aws::S3
|
|
1109
1110
|
# The value of this header is a base64-encoded UTF-8 string holding JSON
|
1110
1111
|
# with the encryption context key-value pairs.
|
1111
1112
|
#
|
1113
|
+
# @option params [Boolean] :bucket_key_enabled
|
1114
|
+
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
1115
|
+
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
1116
|
+
# Setting this header to `true` causes Amazon S3 to use an S3 Bucket Key
|
1117
|
+
# for object encryption with SSE-KMS.
|
1118
|
+
#
|
1119
|
+
# Specifying this header with a COPY operation doesn’t affect
|
1120
|
+
# bucket-level settings for S3 Bucket Key.
|
1121
|
+
#
|
1112
1122
|
# @option params [String] :copy_source_sse_customer_algorithm
|
1113
1123
|
# Specifies the algorithm to use when decrypting the source object (for
|
1114
1124
|
# example, AES256).
|
@@ -1170,6 +1180,7 @@ module Aws::S3
|
|
1170
1180
|
# * {Types::CopyObjectOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
1171
1181
|
# * {Types::CopyObjectOutput#ssekms_key_id #ssekms_key_id} => String
|
1172
1182
|
# * {Types::CopyObjectOutput#ssekms_encryption_context #ssekms_encryption_context} => String
|
1183
|
+
# * {Types::CopyObjectOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
1173
1184
|
# * {Types::CopyObjectOutput#request_charged #request_charged} => String
|
1174
1185
|
#
|
1175
1186
|
#
|
@@ -1225,6 +1236,7 @@ module Aws::S3
|
|
1225
1236
|
# sse_customer_key_md5: "SSECustomerKeyMD5",
|
1226
1237
|
# ssekms_key_id: "SSEKMSKeyId",
|
1227
1238
|
# ssekms_encryption_context: "SSEKMSEncryptionContext",
|
1239
|
+
# bucket_key_enabled: false,
|
1228
1240
|
# copy_source_sse_customer_algorithm: "CopySourceSSECustomerAlgorithm",
|
1229
1241
|
# copy_source_sse_customer_key: "CopySourceSSECustomerKey",
|
1230
1242
|
# copy_source_sse_customer_key_md5: "CopySourceSSECustomerKeyMD5",
|
@@ -1249,6 +1261,7 @@ module Aws::S3
|
|
1249
1261
|
# resp.sse_customer_key_md5 #=> String
|
1250
1262
|
# resp.ssekms_key_id #=> String
|
1251
1263
|
# resp.ssekms_encryption_context #=> String
|
1264
|
+
# resp.bucket_key_enabled #=> Boolean
|
1252
1265
|
# resp.request_charged #=> String, one of "requester"
|
1253
1266
|
#
|
1254
1267
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CopyObject AWS API Documentation
|
@@ -1405,33 +1418,33 @@ module Aws::S3
|
|
1405
1418
|
# * {Types::CreateBucketOutput#location #location} => String
|
1406
1419
|
#
|
1407
1420
|
#
|
1408
|
-
# @example Example: To create a bucket
|
1421
|
+
# @example Example: To create a bucket
|
1409
1422
|
#
|
1410
|
-
# # The following example creates a bucket.
|
1423
|
+
# # The following example creates a bucket.
|
1411
1424
|
#
|
1412
1425
|
# resp = client.create_bucket({
|
1413
1426
|
# bucket: "examplebucket",
|
1414
|
-
# create_bucket_configuration: {
|
1415
|
-
# location_constraint: "eu-west-1",
|
1416
|
-
# },
|
1417
1427
|
# })
|
1418
1428
|
#
|
1419
1429
|
# resp.to_h outputs the following:
|
1420
1430
|
# {
|
1421
|
-
# location: "
|
1431
|
+
# location: "/examplebucket",
|
1422
1432
|
# }
|
1423
1433
|
#
|
1424
|
-
# @example Example: To create a bucket
|
1434
|
+
# @example Example: To create a bucket in a specific region
|
1425
1435
|
#
|
1426
|
-
# # The following example creates a bucket.
|
1436
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1427
1437
|
#
|
1428
1438
|
# resp = client.create_bucket({
|
1429
1439
|
# bucket: "examplebucket",
|
1440
|
+
# create_bucket_configuration: {
|
1441
|
+
# location_constraint: "eu-west-1",
|
1442
|
+
# },
|
1430
1443
|
# })
|
1431
1444
|
#
|
1432
1445
|
# resp.to_h outputs the following:
|
1433
1446
|
# {
|
1434
|
-
# location: "/
|
1447
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1435
1448
|
# }
|
1436
1449
|
#
|
1437
1450
|
# @example Request syntax with placeholder values
|
@@ -1827,6 +1840,15 @@ module Aws::S3
|
|
1827
1840
|
# The value of this header is a base64-encoded UTF-8 string holding JSON
|
1828
1841
|
# with the encryption context key-value pairs.
|
1829
1842
|
#
|
1843
|
+
# @option params [Boolean] :bucket_key_enabled
|
1844
|
+
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
1845
|
+
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
1846
|
+
# Setting this header to `true` causes Amazon S3 to use an S3 Bucket Key
|
1847
|
+
# for object encryption with SSE-KMS.
|
1848
|
+
#
|
1849
|
+
# Specifying this header with an object operation doesn’t affect
|
1850
|
+
# bucket-level settings for S3 Bucket Key.
|
1851
|
+
#
|
1830
1852
|
# @option params [String] :request_payer
|
1831
1853
|
# Confirms that the requester knows that they will be charged for the
|
1832
1854
|
# request. Bucket owners need not specify this parameter in their
|
@@ -1870,6 +1892,7 @@ module Aws::S3
|
|
1870
1892
|
# * {Types::CreateMultipartUploadOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
1871
1893
|
# * {Types::CreateMultipartUploadOutput#ssekms_key_id #ssekms_key_id} => String
|
1872
1894
|
# * {Types::CreateMultipartUploadOutput#ssekms_encryption_context #ssekms_encryption_context} => String
|
1895
|
+
# * {Types::CreateMultipartUploadOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
1873
1896
|
# * {Types::CreateMultipartUploadOutput#request_charged #request_charged} => String
|
1874
1897
|
#
|
1875
1898
|
#
|
@@ -1916,6 +1939,7 @@ module Aws::S3
|
|
1916
1939
|
# sse_customer_key_md5: "SSECustomerKeyMD5",
|
1917
1940
|
# ssekms_key_id: "SSEKMSKeyId",
|
1918
1941
|
# ssekms_encryption_context: "SSEKMSEncryptionContext",
|
1942
|
+
# bucket_key_enabled: false,
|
1919
1943
|
# request_payer: "requester", # accepts requester
|
1920
1944
|
# tagging: "TaggingHeader",
|
1921
1945
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
@@ -1936,6 +1960,7 @@ module Aws::S3
|
|
1936
1960
|
# resp.sse_customer_key_md5 #=> String
|
1937
1961
|
# resp.ssekms_key_id #=> String
|
1938
1962
|
# resp.ssekms_encryption_context #=> String
|
1963
|
+
# resp.bucket_key_enabled #=> Boolean
|
1939
1964
|
# resp.request_charged #=> String, one of "requester"
|
1940
1965
|
#
|
1941
1966
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateMultipartUpload AWS API Documentation
|
@@ -2929,35 +2954,35 @@ module Aws::S3
|
|
2929
2954
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
2930
2955
|
#
|
2931
2956
|
#
|
2932
|
-
# @example Example: To remove tag set from an object
|
2957
|
+
# @example Example: To remove tag set from an object version
|
2933
2958
|
#
|
2934
|
-
# # The following example removes tag set associated with the specified object.
|
2935
|
-
# #
|
2959
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
2960
|
+
# # object key and object version.
|
2936
2961
|
#
|
2937
2962
|
# resp = client.delete_object_tagging({
|
2938
2963
|
# bucket: "examplebucket",
|
2939
2964
|
# key: "HappyFace.jpg",
|
2965
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
2940
2966
|
# })
|
2941
2967
|
#
|
2942
2968
|
# resp.to_h outputs the following:
|
2943
2969
|
# {
|
2944
|
-
# version_id: "
|
2970
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
2945
2971
|
# }
|
2946
2972
|
#
|
2947
|
-
# @example Example: To remove tag set from an object
|
2973
|
+
# @example Example: To remove tag set from an object
|
2948
2974
|
#
|
2949
|
-
# # The following example removes tag set associated with the specified object
|
2950
|
-
# #
|
2975
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
2976
|
+
# # operation removes tag set from the latest object version.
|
2951
2977
|
#
|
2952
2978
|
# resp = client.delete_object_tagging({
|
2953
2979
|
# bucket: "examplebucket",
|
2954
2980
|
# key: "HappyFace.jpg",
|
2955
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
2956
2981
|
# })
|
2957
2982
|
#
|
2958
2983
|
# resp.to_h outputs the following:
|
2959
2984
|
# {
|
2960
|
-
# version_id: "
|
2985
|
+
# version_id: "null",
|
2961
2986
|
# }
|
2962
2987
|
#
|
2963
2988
|
# @example Request syntax with placeholder values
|
@@ -3097,20 +3122,22 @@ module Aws::S3
|
|
3097
3122
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
3098
3123
|
#
|
3099
3124
|
#
|
3100
|
-
# @example Example: To delete multiple
|
3125
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
3101
3126
|
#
|
3102
|
-
# # The following example deletes objects from a bucket. The
|
3103
|
-
# #
|
3127
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
3128
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
3104
3129
|
#
|
3105
3130
|
# resp = client.delete_objects({
|
3106
3131
|
# bucket: "examplebucket",
|
3107
3132
|
# delete: {
|
3108
3133
|
# objects: [
|
3109
3134
|
# {
|
3110
|
-
# key: "
|
3135
|
+
# key: "HappyFace.jpg",
|
3136
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3111
3137
|
# },
|
3112
3138
|
# {
|
3113
|
-
# key: "
|
3139
|
+
# key: "HappyFace.jpg",
|
3140
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3114
3141
|
# },
|
3115
3142
|
# ],
|
3116
3143
|
# quiet: false,
|
@@ -3121,34 +3148,30 @@ module Aws::S3
|
|
3121
3148
|
# {
|
3122
3149
|
# deleted: [
|
3123
3150
|
# {
|
3124
|
-
#
|
3125
|
-
#
|
3126
|
-
# key: "objectkey1",
|
3151
|
+
# key: "HappyFace.jpg",
|
3152
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3127
3153
|
# },
|
3128
3154
|
# {
|
3129
|
-
#
|
3130
|
-
#
|
3131
|
-
# key: "objectkey2",
|
3155
|
+
# key: "HappyFace.jpg",
|
3156
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3132
3157
|
# },
|
3133
3158
|
# ],
|
3134
3159
|
# }
|
3135
3160
|
#
|
3136
|
-
# @example Example: To delete multiple
|
3161
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
3137
3162
|
#
|
3138
|
-
# # The following example deletes objects from a bucket. The
|
3139
|
-
# #
|
3163
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
3164
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
3140
3165
|
#
|
3141
3166
|
# resp = client.delete_objects({
|
3142
3167
|
# bucket: "examplebucket",
|
3143
3168
|
# delete: {
|
3144
3169
|
# objects: [
|
3145
3170
|
# {
|
3146
|
-
# key: "
|
3147
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3171
|
+
# key: "objectkey1",
|
3148
3172
|
# },
|
3149
3173
|
# {
|
3150
|
-
# key: "
|
3151
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3174
|
+
# key: "objectkey2",
|
3152
3175
|
# },
|
3153
3176
|
# ],
|
3154
3177
|
# quiet: false,
|
@@ -3159,12 +3182,14 @@ module Aws::S3
|
|
3159
3182
|
# {
|
3160
3183
|
# deleted: [
|
3161
3184
|
# {
|
3162
|
-
#
|
3163
|
-
#
|
3185
|
+
# delete_marker: true,
|
3186
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
3187
|
+
# key: "objectkey1",
|
3164
3188
|
# },
|
3165
3189
|
# {
|
3166
|
-
#
|
3167
|
-
#
|
3190
|
+
# delete_marker: true,
|
3191
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
3192
|
+
# key: "objectkey2",
|
3168
3193
|
# },
|
3169
3194
|
# ],
|
3170
3195
|
# }
|
@@ -3614,6 +3639,7 @@ module Aws::S3
|
|
3614
3639
|
# resp.server_side_encryption_configuration.rules #=> Array
|
3615
3640
|
# resp.server_side_encryption_configuration.rules[0].apply_server_side_encryption_by_default.sse_algorithm #=> String, one of "AES256", "aws:kms"
|
3616
3641
|
# resp.server_side_encryption_configuration.rules[0].apply_server_side_encryption_by_default.kms_master_key_id #=> String
|
3642
|
+
# resp.server_side_encryption_configuration.rules[0].bucket_key_enabled #=> Boolean
|
3617
3643
|
#
|
3618
3644
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketEncryption AWS API Documentation
|
3619
3645
|
#
|
@@ -4705,6 +4731,7 @@ module Aws::S3
|
|
4705
4731
|
# resp.replication_configuration.rules[0].filter.and.tags[0].value #=> String
|
4706
4732
|
# resp.replication_configuration.rules[0].status #=> String, one of "Enabled", "Disabled"
|
4707
4733
|
# resp.replication_configuration.rules[0].source_selection_criteria.sse_kms_encrypted_objects.status #=> String, one of "Enabled", "Disabled"
|
4734
|
+
# resp.replication_configuration.rules[0].source_selection_criteria.replica_modifications.status #=> String, one of "Enabled", "Disabled"
|
4708
4735
|
# resp.replication_configuration.rules[0].existing_object_replication.status #=> String, one of "Enabled", "Disabled"
|
4709
4736
|
# resp.replication_configuration.rules[0].destination.bucket #=> String
|
4710
4737
|
# resp.replication_configuration.rules[0].destination.account #=> String
|
@@ -5056,13 +5083,13 @@ module Aws::S3
|
|
5056
5083
|
# For more information about returning the ACL of an object, see
|
5057
5084
|
# [GetObjectAcl][3].
|
5058
5085
|
#
|
5059
|
-
# If the object you are retrieving is stored in the S3 Glacier
|
5060
|
-
# Glacier Deep Archive, S3 Intelligent-Tiering Archive
|
5061
|
-
# Intelligent-Tiering Deep Archive
|
5062
|
-
#
|
5063
|
-
#
|
5064
|
-
#
|
5065
|
-
#
|
5086
|
+
# If the object you are retrieving is stored in the S3 Glacier or S3
|
5087
|
+
# Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive
|
5088
|
+
# or S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve
|
5089
|
+
# the object you must first restore a copy using [RestoreObject][4].
|
5090
|
+
# Otherwise, this operation returns an `InvalidObjectStateError` error.
|
5091
|
+
# For information about restoring archived objects, see [Restoring
|
5092
|
+
# Archived Objects][5].
|
5066
5093
|
#
|
5067
5094
|
# Encryption request headers, like `x-amz-server-side-encryption`,
|
5068
5095
|
# should not be sent for GET requests if your object uses server-side
|
@@ -5333,6 +5360,7 @@ module Aws::S3
|
|
5333
5360
|
# * {Types::GetObjectOutput#sse_customer_algorithm #sse_customer_algorithm} => String
|
5334
5361
|
# * {Types::GetObjectOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
5335
5362
|
# * {Types::GetObjectOutput#ssekms_key_id #ssekms_key_id} => String
|
5363
|
+
# * {Types::GetObjectOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
5336
5364
|
# * {Types::GetObjectOutput#storage_class #storage_class} => String
|
5337
5365
|
# * {Types::GetObjectOutput#request_charged #request_charged} => String
|
5338
5366
|
# * {Types::GetObjectOutput#replication_status #replication_status} => String
|
@@ -5470,6 +5498,7 @@ module Aws::S3
|
|
5470
5498
|
# resp.sse_customer_algorithm #=> String
|
5471
5499
|
# resp.sse_customer_key_md5 #=> String
|
5472
5500
|
# resp.ssekms_key_id #=> String
|
5501
|
+
# resp.bucket_key_enabled #=> Boolean
|
5473
5502
|
# resp.storage_class #=> String, one of "STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "GLACIER", "DEEP_ARCHIVE", "OUTPOSTS"
|
5474
5503
|
# resp.request_charged #=> String, one of "requester"
|
5475
5504
|
# resp.replication_status #=> String, one of "COMPLETE", "PENDING", "FAILED", "REPLICA"
|
@@ -6443,6 +6472,7 @@ module Aws::S3
|
|
6443
6472
|
# * {Types::HeadObjectOutput#sse_customer_algorithm #sse_customer_algorithm} => String
|
6444
6473
|
# * {Types::HeadObjectOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
6445
6474
|
# * {Types::HeadObjectOutput#ssekms_key_id #ssekms_key_id} => String
|
6475
|
+
# * {Types::HeadObjectOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
6446
6476
|
# * {Types::HeadObjectOutput#storage_class #storage_class} => String
|
6447
6477
|
# * {Types::HeadObjectOutput#request_charged #request_charged} => String
|
6448
6478
|
# * {Types::HeadObjectOutput#replication_status #replication_status} => String
|
@@ -6518,6 +6548,7 @@ module Aws::S3
|
|
6518
6548
|
# resp.sse_customer_algorithm #=> String
|
6519
6549
|
# resp.sse_customer_key_md5 #=> String
|
6520
6550
|
# resp.ssekms_key_id #=> String
|
6551
|
+
# resp.bucket_key_enabled #=> Boolean
|
6521
6552
|
# resp.storage_class #=> String, one of "STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "GLACIER", "DEEP_ARCHIVE", "OUTPOSTS"
|
6522
6553
|
# resp.request_charged #=> String, one of "requester"
|
6523
6554
|
# resp.replication_status #=> String, one of "COMPLETE", "PENDING", "FAILED", "REPLICA"
|
@@ -8294,6 +8325,9 @@ module Aws::S3
|
|
8294
8325
|
# used as a message integrity check to verify that the request body was
|
8295
8326
|
# not corrupted in transit. For more information, go to [RFC 1864.][1]
|
8296
8327
|
#
|
8328
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
8329
|
+
# SDKs, this field is calculated automatically.
|
8330
|
+
#
|
8297
8331
|
#
|
8298
8332
|
#
|
8299
8333
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -8580,6 +8614,9 @@ module Aws::S3
|
|
8580
8614
|
# used as a message integrity check to verify that the request body was
|
8581
8615
|
# not corrupted in transit. For more information, go to [RFC 1864.][1]
|
8582
8616
|
#
|
8617
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
8618
|
+
# SDKs, this field is calculated automatically.
|
8619
|
+
#
|
8583
8620
|
#
|
8584
8621
|
#
|
8585
8622
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -8663,14 +8700,17 @@ module Aws::S3
|
|
8663
8700
|
req.send_request(options)
|
8664
8701
|
end
|
8665
8702
|
|
8666
|
-
# This
|
8667
|
-
#
|
8668
|
-
#
|
8669
|
-
#
|
8670
|
-
#
|
8671
|
-
# SSE-
|
8672
|
-
#
|
8673
|
-
# [Amazon S3
|
8703
|
+
# This operation uses the `encryption` subresource to configure default
|
8704
|
+
# encryption and Amazon S3 Bucket Key for an existing bucket.
|
8705
|
+
#
|
8706
|
+
# Default encryption for a bucket can use server-side encryption with
|
8707
|
+
# Amazon S3-managed keys (SSE-S3) or AWS KMS customer master keys
|
8708
|
+
# (SSE-KMS). If you specify default encryption using SSE-KMS, you can
|
8709
|
+
# also configure Amazon S3 Bucket Key. For information about default
|
8710
|
+
# encryption, see [Amazon S3 default bucket encryption][1] in the
|
8711
|
+
# *Amazon Simple Storage Service Developer Guide*. For more information
|
8712
|
+
# about S3 Bucket Keys, see [Amazon S3 Bucket Keys][2] in the *Amazon
|
8713
|
+
# Simple Storage Service Developer Guide*.
|
8674
8714
|
#
|
8675
8715
|
# This operation requires AWS Signature Version 4. For more information,
|
8676
8716
|
# see [ Authenticating Requests (AWS Signature Version
|
@@ -8680,23 +8720,24 @@ module Aws::S3
|
|
8680
8720
|
# `s3:PutEncryptionConfiguration` action. The bucket owner has this
|
8681
8721
|
# permission by default. The bucket owner can grant this permission to
|
8682
8722
|
# others. For more information about permissions, see [Permissions
|
8683
|
-
# Related to Bucket Subresource Operations][
|
8684
|
-
# Permissions to Your Amazon S3 Resources][
|
8723
|
+
# Related to Bucket Subresource Operations][3] and [Managing Access
|
8724
|
+
# Permissions to Your Amazon S3 Resources][4] in the Amazon Simple
|
8685
8725
|
# Storage Service Developer Guide.
|
8686
8726
|
#
|
8687
8727
|
# **Related Resources**
|
8688
8728
|
#
|
8689
|
-
# * [GetBucketEncryption][
|
8729
|
+
# * [GetBucketEncryption][5]
|
8690
8730
|
#
|
8691
|
-
# * [DeleteBucketEncryption][
|
8731
|
+
# * [DeleteBucketEncryption][6]
|
8692
8732
|
#
|
8693
8733
|
#
|
8694
8734
|
#
|
8695
8735
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html
|
8696
|
-
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
8697
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
|
8698
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/
|
8699
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
8736
|
+
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html
|
8737
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
8738
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html
|
8739
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html
|
8740
|
+
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html
|
8700
8741
|
#
|
8701
8742
|
# @option params [required, String] :bucket
|
8702
8743
|
# Specifies default encryption for a bucket using server-side encryption
|
@@ -8711,8 +8752,10 @@ module Aws::S3
|
|
8711
8752
|
#
|
8712
8753
|
# @option params [String] :content_md5
|
8713
8754
|
# The base64-encoded 128-bit MD5 digest of the server-side encryption
|
8714
|
-
# configuration.
|
8715
|
-
#
|
8755
|
+
# configuration.
|
8756
|
+
#
|
8757
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
8758
|
+
# SDKs, this field is calculated automatically.
|
8716
8759
|
#
|
8717
8760
|
# @option params [required, Types::ServerSideEncryptionConfiguration] :server_side_encryption_configuration
|
8718
8761
|
# Specifies the default server-side-encryption configuration.
|
@@ -8736,6 +8779,7 @@ module Aws::S3
|
|
8736
8779
|
# sse_algorithm: "AES256", # required, accepts AES256, aws:kms
|
8737
8780
|
# kms_master_key_id: "SSEKMSKeyId",
|
8738
8781
|
# },
|
8782
|
+
# bucket_key_enabled: false,
|
8739
8783
|
# },
|
8740
8784
|
# ],
|
8741
8785
|
# },
|
@@ -9044,6 +9088,8 @@ module Aws::S3
|
|
9044
9088
|
# @option params [required, String] :bucket
|
9045
9089
|
#
|
9046
9090
|
# @option params [String] :content_md5
|
9091
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
9092
|
+
# SDKs, this field is calculated automatically.
|
9047
9093
|
#
|
9048
9094
|
# @option params [Types::LifecycleConfiguration] :lifecycle_configuration
|
9049
9095
|
#
|
@@ -9364,6 +9410,9 @@ module Aws::S3
|
|
9364
9410
|
# @option params [String] :content_md5
|
9365
9411
|
# The MD5 hash of the `PutBucketLogging` request body.
|
9366
9412
|
#
|
9413
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
9414
|
+
# SDKs, this field is calculated automatically.
|
9415
|
+
#
|
9367
9416
|
# @option params [String] :expected_bucket_owner
|
9368
9417
|
# The account id of the expected bucket owner. If the bucket is owned by
|
9369
9418
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -9540,6 +9589,9 @@ module Aws::S3
|
|
9540
9589
|
# @option params [String] :content_md5
|
9541
9590
|
# The MD5 hash of the `PutPublicAccessBlock` request body.
|
9542
9591
|
#
|
9592
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
9593
|
+
# SDKs, this field is calculated automatically.
|
9594
|
+
#
|
9543
9595
|
# @option params [required, Types::NotificationConfigurationDeprecated] :notification_configuration
|
9544
9596
|
# The container for the configuration.
|
9545
9597
|
#
|
@@ -9784,6 +9836,9 @@ module Aws::S3
|
|
9784
9836
|
# @option params [String] :content_md5
|
9785
9837
|
# The MD5 hash of the `OwnershipControls` request body.
|
9786
9838
|
#
|
9839
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
9840
|
+
# SDKs, this field is calculated automatically.
|
9841
|
+
#
|
9787
9842
|
# @option params [String] :expected_bucket_owner
|
9788
9843
|
# The account id of the expected bucket owner. If the bucket is owned by
|
9789
9844
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -9855,6 +9910,9 @@ module Aws::S3
|
|
9855
9910
|
# @option params [String] :content_md5
|
9856
9911
|
# The MD5 hash of the request body.
|
9857
9912
|
#
|
9913
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
9914
|
+
# SDKs, this field is calculated automatically.
|
9915
|
+
#
|
9858
9916
|
# @option params [Boolean] :confirm_remove_self_bucket_access
|
9859
9917
|
# Set this parameter to true to confirm that you want to remove your
|
9860
9918
|
# permissions to change this bucket policy in the future.
|
@@ -9909,15 +9967,15 @@ module Aws::S3
|
|
9909
9967
|
#
|
9910
9968
|
# Specify the replication configuration in the request body. In the
|
9911
9969
|
# replication configuration, you provide the name of the destination
|
9912
|
-
# bucket where you want Amazon S3 to replicate objects, the
|
9913
|
-
# that Amazon S3 can assume to replicate objects on your
|
9914
|
-
# other relevant information.
|
9970
|
+
# bucket or buckets where you want Amazon S3 to replicate objects, the
|
9971
|
+
# IAM role that Amazon S3 can assume to replicate objects on your
|
9972
|
+
# behalf, and other relevant information.
|
9915
9973
|
#
|
9916
9974
|
# A replication configuration must include at least one rule, and can
|
9917
9975
|
# contain a maximum of 1,000. Each rule identifies a subset of objects
|
9918
9976
|
# to replicate by filtering the objects in the source bucket. To choose
|
9919
9977
|
# additional subsets of objects to replicate, add a rule for each
|
9920
|
-
# subset.
|
9978
|
+
# subset.
|
9921
9979
|
#
|
9922
9980
|
# To specify a subset of the objects in the source bucket to apply a
|
9923
9981
|
# replication rule to, add the Filter element as a child of the Rule
|
@@ -9926,26 +9984,21 @@ module Aws::S3
|
|
9926
9984
|
# configuration, you must also add the following elements:
|
9927
9985
|
# `DeleteMarkerReplication`, `Status`, and `Priority`.
|
9928
9986
|
#
|
9929
|
-
# <note markdown="1">
|
9930
|
-
#
|
9931
|
-
#
|
9932
|
-
# RTC). In XML V2 replication configurations, Amazon S3 doesn't
|
9933
|
-
# replicate delete markers. Therefore, you must set the
|
9934
|
-
# `DeleteMarkerReplication` element to `Disabled`. For backward
|
9935
|
-
# compatibility, Amazon S3 continues to support the XML V1 replication
|
9936
|
-
# configuration.
|
9987
|
+
# <note markdown="1"> If you are using an earlier version of the replication configuration,
|
9988
|
+
# Amazon S3 handles replication of delete markers differently. For more
|
9989
|
+
# information, see [Backward Compatibility][3].
|
9937
9990
|
#
|
9938
9991
|
# </note>
|
9939
9992
|
#
|
9940
9993
|
# For information about enabling versioning on a bucket, see [Using
|
9941
|
-
# Versioning][
|
9994
|
+
# Versioning][4].
|
9942
9995
|
#
|
9943
9996
|
# By default, a resource owner, in this case the AWS account that
|
9944
9997
|
# created the bucket, can perform this operation. The resource owner can
|
9945
9998
|
# also grant others permissions to perform the operation. For more
|
9946
9999
|
# information about permissions, see [Specifying Permissions in a
|
9947
|
-
# Policy][
|
9948
|
-
# Resources][
|
10000
|
+
# Policy][5] and [Managing Access Permissions to Your Amazon S3
|
10001
|
+
# Resources][6].
|
9949
10002
|
#
|
9950
10003
|
# **Handling Replication of Encrypted Objects**
|
9951
10004
|
#
|
@@ -9955,28 +10008,29 @@ module Aws::S3
|
|
9955
10008
|
# `SourceSelectionCriteria`, `SseKmsEncryptedObjects`, `Status`,
|
9956
10009
|
# `EncryptionConfiguration`, and `ReplicaKmsKeyID`. For information
|
9957
10010
|
# about replication configuration, see [Replicating Objects Created with
|
9958
|
-
# SSE Using CMKs stored in AWS KMS][
|
10011
|
+
# SSE Using CMKs stored in AWS KMS][7].
|
9959
10012
|
#
|
9960
10013
|
# For information on `PutBucketReplication` errors, see [List of
|
9961
|
-
# replication-related error codes][
|
10014
|
+
# replication-related error codes][8]
|
9962
10015
|
#
|
9963
10016
|
# The following operations are related to `PutBucketReplication`\:
|
9964
10017
|
#
|
9965
|
-
# * [GetBucketReplication][
|
10018
|
+
# * [GetBucketReplication][9]
|
9966
10019
|
#
|
9967
|
-
# * [DeleteBucketReplication][
|
10020
|
+
# * [DeleteBucketReplication][10]
|
9968
10021
|
#
|
9969
10022
|
#
|
9970
10023
|
#
|
9971
10024
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/replication.html
|
9972
10025
|
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html
|
9973
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
9974
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
9975
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-
|
9976
|
-
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
9977
|
-
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/
|
9978
|
-
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
9979
|
-
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
10026
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations
|
10027
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html
|
10028
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
|
10029
|
+
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html
|
10030
|
+
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-config-for-kms-objects.html
|
10031
|
+
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#ReplicationErrorCodeList
|
10032
|
+
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketReplication.html
|
10033
|
+
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketReplication.html
|
9980
10034
|
#
|
9981
10035
|
# @option params [required, String] :bucket
|
9982
10036
|
# The name of the bucket
|
@@ -9986,6 +10040,9 @@ module Aws::S3
|
|
9986
10040
|
# header as a message integrity check to verify that the request body
|
9987
10041
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
9988
10042
|
#
|
10043
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
10044
|
+
# SDKs, this field is calculated automatically.
|
10045
|
+
#
|
9989
10046
|
#
|
9990
10047
|
#
|
9991
10048
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -10059,6 +10116,9 @@ module Aws::S3
|
|
10059
10116
|
# sse_kms_encrypted_objects: {
|
10060
10117
|
# status: "Enabled", # required, accepts Enabled, Disabled
|
10061
10118
|
# },
|
10119
|
+
# replica_modifications: {
|
10120
|
+
# status: "Enabled", # required, accepts Enabled, Disabled
|
10121
|
+
# },
|
10062
10122
|
# },
|
10063
10123
|
# existing_object_replication: {
|
10064
10124
|
# status: "Enabled", # required, accepts Enabled, Disabled
|
@@ -10132,6 +10192,9 @@ module Aws::S3
|
|
10132
10192
|
# body was not corrupted in transit. For more information, see [RFC
|
10133
10193
|
# 1864][1].
|
10134
10194
|
#
|
10195
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
10196
|
+
# SDKs, this field is calculated automatically.
|
10197
|
+
#
|
10135
10198
|
#
|
10136
10199
|
#
|
10137
10200
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -10258,6 +10321,9 @@ module Aws::S3
|
|
10258
10321
|
# header as a message integrity check to verify that the request body
|
10259
10322
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
10260
10323
|
#
|
10324
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
10325
|
+
# SDKs, this field is calculated automatically.
|
10326
|
+
#
|
10261
10327
|
#
|
10262
10328
|
#
|
10263
10329
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -10371,6 +10437,9 @@ module Aws::S3
|
|
10371
10437
|
# body was not corrupted in transit. For more information, see [RFC
|
10372
10438
|
# 1864][1].
|
10373
10439
|
#
|
10440
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
10441
|
+
# SDKs, this field is calculated automatically.
|
10442
|
+
#
|
10374
10443
|
#
|
10375
10444
|
#
|
10376
10445
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -10505,6 +10574,9 @@ module Aws::S3
|
|
10505
10574
|
# header as a message integrity check to verify that the request body
|
10506
10575
|
# was not corrupted in transit. For more information, see [RFC 1864][1].
|
10507
10576
|
#
|
10577
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
10578
|
+
# SDKs, this field is calculated automatically.
|
10579
|
+
#
|
10508
10580
|
#
|
10509
10581
|
#
|
10510
10582
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -10614,8 +10686,13 @@ module Aws::S3
|
|
10614
10686
|
# encryption, Amazon S3 encrypts your data as it writes it to disks in
|
10615
10687
|
# its data centers and decrypts the data when you access it. You have
|
10616
10688
|
# the option to provide your own encryption key or use AWS managed
|
10617
|
-
# encryption keys. For more information, see [Using
|
10618
|
-
# Encryption][2].
|
10689
|
+
# encryption keys (SSE-S3 or SSE-KMS). For more information, see [Using
|
10690
|
+
# Server-Side Encryption][2].
|
10691
|
+
#
|
10692
|
+
# If you request server-side encryption using AWS Key Management Service
|
10693
|
+
# (SSE-KMS), you can enable an S3 Bucket Key at the object-level. For
|
10694
|
+
# more information, see [Amazon S3 Bucket Keys][3] in the *Amazon Simple
|
10695
|
+
# Storage Service Developer Guide*.
|
10619
10696
|
#
|
10620
10697
|
# **Access Control List (ACL)-Specific Request Headers**
|
10621
10698
|
#
|
@@ -10624,8 +10701,8 @@ module Aws::S3
|
|
10624
10701
|
# adding a new object, you can grant permissions to individual AWS
|
10625
10702
|
# accounts or to predefined groups defined by Amazon S3. These
|
10626
10703
|
# permissions are then added to the ACL on the object. For more
|
10627
|
-
# information, see [Access Control List (ACL) Overview][
|
10628
|
-
# ACLs Using the REST API][
|
10704
|
+
# information, see [Access Control List (ACL) Overview][4] and [Managing
|
10705
|
+
# ACLs Using the REST API][5].
|
10629
10706
|
#
|
10630
10707
|
# **Storage Class Options**
|
10631
10708
|
#
|
@@ -10633,7 +10710,7 @@ module Aws::S3
|
|
10633
10710
|
# created objects. The STANDARD storage class provides high durability
|
10634
10711
|
# and high availability. Depending on performance needs, you can specify
|
10635
10712
|
# a different Storage Class. Amazon S3 on Outposts only uses the
|
10636
|
-
# OUTPOSTS Storage Class. For more information, see [Storage Classes][
|
10713
|
+
# OUTPOSTS Storage Class. For more information, see [Storage Classes][6]
|
10637
10714
|
# in the *Amazon S3 Service Developer Guide*.
|
10638
10715
|
#
|
10639
10716
|
# **Versioning**
|
@@ -10645,26 +10722,27 @@ module Aws::S3
|
|
10645
10722
|
# object simultaneously, it stores all of the objects.
|
10646
10723
|
#
|
10647
10724
|
# For more information about versioning, see [Adding Objects to
|
10648
|
-
# Versioning Enabled Buckets][
|
10649
|
-
# versioning state of a bucket, see [GetBucketVersioning][
|
10725
|
+
# Versioning Enabled Buckets][7]. For information about returning the
|
10726
|
+
# versioning state of a bucket, see [GetBucketVersioning][8].
|
10650
10727
|
#
|
10651
10728
|
# **Related Resources**
|
10652
10729
|
#
|
10653
|
-
# * [CopyObject][
|
10730
|
+
# * [CopyObject][9]
|
10654
10731
|
#
|
10655
|
-
# * [DeleteObject][
|
10732
|
+
# * [DeleteObject][10]
|
10656
10733
|
#
|
10657
10734
|
#
|
10658
10735
|
#
|
10659
10736
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html
|
10660
10737
|
# [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
|
10661
|
-
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
10662
|
-
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-
|
10663
|
-
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
10664
|
-
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/
|
10665
|
-
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/
|
10666
|
-
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
10667
|
-
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/
|
10738
|
+
# [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-key.html
|
10739
|
+
# [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
10740
|
+
# [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-using-rest-api.html
|
10741
|
+
# [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
|
10742
|
+
# [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/AddingObjectstoVersioningEnabledBuckets.html
|
10743
|
+
# [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html
|
10744
|
+
# [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
|
10745
|
+
# [10]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
|
10668
10746
|
#
|
10669
10747
|
# @option params [String] :acl
|
10670
10748
|
# The canned ACL to apply to the object. For more information, see
|
@@ -10878,6 +10956,15 @@ module Aws::S3
|
|
10878
10956
|
# The value of this header is a base64-encoded UTF-8 string holding JSON
|
10879
10957
|
# with the encryption context key-value pairs.
|
10880
10958
|
#
|
10959
|
+
# @option params [Boolean] :bucket_key_enabled
|
10960
|
+
# Specifies whether Amazon S3 should use an S3 Bucket Key for object
|
10961
|
+
# encryption with server-side encryption using AWS KMS (SSE-KMS).
|
10962
|
+
# Setting this header to `true` causes Amazon S3 to use an S3 Bucket Key
|
10963
|
+
# for object encryption with SSE-KMS.
|
10964
|
+
#
|
10965
|
+
# Specifying this header with a PUT operation doesn’t affect
|
10966
|
+
# bucket-level settings for S3 Bucket Key.
|
10967
|
+
#
|
10881
10968
|
# @option params [String] :request_payer
|
10882
10969
|
# Confirms that the requester knows that they will be charged for the
|
10883
10970
|
# request. Bucket owners need not specify this parameter in their
|
@@ -10922,28 +11009,28 @@ module Aws::S3
|
|
10922
11009
|
# * {Types::PutObjectOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
10923
11010
|
# * {Types::PutObjectOutput#ssekms_key_id #ssekms_key_id} => String
|
10924
11011
|
# * {Types::PutObjectOutput#ssekms_encryption_context #ssekms_encryption_context} => String
|
11012
|
+
# * {Types::PutObjectOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
10925
11013
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
10926
11014
|
#
|
10927
11015
|
#
|
10928
|
-
# @example Example: To upload object and specify
|
11016
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
10929
11017
|
#
|
10930
|
-
# # The following example
|
10931
|
-
# # enabled, S3 returns version ID in response.
|
11018
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
11019
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
10932
11020
|
#
|
10933
11021
|
# resp = client.put_object({
|
10934
11022
|
# body: "filetoupload",
|
10935
11023
|
# bucket: "examplebucket",
|
10936
11024
|
# key: "exampleobject",
|
10937
|
-
#
|
10938
|
-
#
|
10939
|
-
# "metadata2" => "value2",
|
10940
|
-
# },
|
11025
|
+
# server_side_encryption: "AES256",
|
11026
|
+
# tagging: "key1=value1&key2=value2",
|
10941
11027
|
# })
|
10942
11028
|
#
|
10943
11029
|
# resp.to_h outputs the following:
|
10944
11030
|
# {
|
10945
11031
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
10946
|
-
#
|
11032
|
+
# server_side_encryption: "AES256",
|
11033
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
10947
11034
|
# }
|
10948
11035
|
#
|
10949
11036
|
# @example Example: To create an object.
|
@@ -10980,62 +11067,63 @@ module Aws::S3
|
|
10980
11067
|
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
10981
11068
|
# }
|
10982
11069
|
#
|
10983
|
-
# @example Example: To upload an object
|
11070
|
+
# @example Example: To upload an object (specify optional headers)
|
10984
11071
|
#
|
10985
|
-
# # The following example uploads
|
10986
|
-
# #
|
11072
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
11073
|
+
# # storage class and use server-side encryption.
|
10987
11074
|
#
|
10988
11075
|
# resp = client.put_object({
|
10989
|
-
# body: "
|
11076
|
+
# body: "HappyFace.jpg",
|
10990
11077
|
# bucket: "examplebucket",
|
10991
|
-
# key: "
|
11078
|
+
# key: "HappyFace.jpg",
|
10992
11079
|
# server_side_encryption: "AES256",
|
10993
|
-
#
|
11080
|
+
# storage_class: "STANDARD_IA",
|
10994
11081
|
# })
|
10995
11082
|
#
|
10996
11083
|
# resp.to_h outputs the following:
|
10997
11084
|
# {
|
10998
11085
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
10999
11086
|
# server_side_encryption: "AES256",
|
11000
|
-
# version_id: "
|
11087
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11001
11088
|
# }
|
11002
11089
|
#
|
11003
|
-
# @example Example: To upload
|
11090
|
+
# @example Example: To upload object and specify user-defined metadata
|
11004
11091
|
#
|
11005
|
-
# # The following example
|
11006
|
-
# #
|
11092
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
11093
|
+
# # enabled, S3 returns version ID in response.
|
11007
11094
|
#
|
11008
11095
|
# resp = client.put_object({
|
11009
|
-
# acl: "authenticated-read",
|
11010
11096
|
# body: "filetoupload",
|
11011
11097
|
# bucket: "examplebucket",
|
11012
11098
|
# key: "exampleobject",
|
11099
|
+
# metadata: {
|
11100
|
+
# "metadata1" => "value1",
|
11101
|
+
# "metadata2" => "value2",
|
11102
|
+
# },
|
11013
11103
|
# })
|
11014
11104
|
#
|
11015
11105
|
# resp.to_h outputs the following:
|
11016
11106
|
# {
|
11017
11107
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11018
|
-
# version_id: "
|
11108
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
11019
11109
|
# }
|
11020
11110
|
#
|
11021
|
-
# @example Example: To upload an object
|
11111
|
+
# @example Example: To upload an object and specify canned ACL.
|
11022
11112
|
#
|
11023
|
-
# # The following example uploads
|
11024
|
-
# #
|
11113
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
11114
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
11025
11115
|
#
|
11026
11116
|
# resp = client.put_object({
|
11027
|
-
#
|
11117
|
+
# acl: "authenticated-read",
|
11118
|
+
# body: "filetoupload",
|
11028
11119
|
# bucket: "examplebucket",
|
11029
|
-
# key: "
|
11030
|
-
# server_side_encryption: "AES256",
|
11031
|
-
# storage_class: "STANDARD_IA",
|
11120
|
+
# key: "exampleobject",
|
11032
11121
|
# })
|
11033
11122
|
#
|
11034
11123
|
# resp.to_h outputs the following:
|
11035
11124
|
# {
|
11036
11125
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11037
|
-
#
|
11038
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11126
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
11039
11127
|
# }
|
11040
11128
|
#
|
11041
11129
|
# @example Example: To upload an object
|
@@ -11091,6 +11179,7 @@ module Aws::S3
|
|
11091
11179
|
# sse_customer_key_md5: "SSECustomerKeyMD5",
|
11092
11180
|
# ssekms_key_id: "SSEKMSKeyId",
|
11093
11181
|
# ssekms_encryption_context: "SSEKMSEncryptionContext",
|
11182
|
+
# bucket_key_enabled: false,
|
11094
11183
|
# request_payer: "requester", # accepts requester
|
11095
11184
|
# tagging: "TaggingHeader",
|
11096
11185
|
# object_lock_mode: "GOVERNANCE", # accepts GOVERNANCE, COMPLIANCE
|
@@ -11109,6 +11198,7 @@ module Aws::S3
|
|
11109
11198
|
# resp.sse_customer_key_md5 #=> String
|
11110
11199
|
# resp.ssekms_key_id #=> String
|
11111
11200
|
# resp.ssekms_encryption_context #=> String
|
11201
|
+
# resp.bucket_key_enabled #=> Boolean
|
11112
11202
|
# resp.request_charged #=> String, one of "requester"
|
11113
11203
|
#
|
11114
11204
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/PutObject AWS API Documentation
|
@@ -11306,6 +11396,9 @@ module Aws::S3
|
|
11306
11396
|
# not corrupted in transit. For more information, go to [RFC
|
11307
11397
|
# 1864.>][1]
|
11308
11398
|
#
|
11399
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
11400
|
+
# SDKs, this field is calculated automatically.
|
11401
|
+
#
|
11309
11402
|
#
|
11310
11403
|
#
|
11311
11404
|
# [1]: http://www.ietf.org/rfc/rfc1864.txt
|
@@ -11504,6 +11597,9 @@ module Aws::S3
|
|
11504
11597
|
# @option params [String] :content_md5
|
11505
11598
|
# The MD5 hash for the request body.
|
11506
11599
|
#
|
11600
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
11601
|
+
# SDKs, this field is calculated automatically.
|
11602
|
+
#
|
11507
11603
|
# @option params [String] :expected_bucket_owner
|
11508
11604
|
# The account id of the expected bucket owner. If the bucket is owned by
|
11509
11605
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -11584,6 +11680,9 @@ module Aws::S3
|
|
11584
11680
|
# @option params [String] :content_md5
|
11585
11681
|
# The MD5 hash for the request body.
|
11586
11682
|
#
|
11683
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
11684
|
+
# SDKs, this field is calculated automatically.
|
11685
|
+
#
|
11587
11686
|
# @option params [String] :expected_bucket_owner
|
11588
11687
|
# The account id of the expected bucket owner. If the bucket is owned by
|
11589
11688
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -11685,6 +11784,9 @@ module Aws::S3
|
|
11685
11784
|
# @option params [String] :content_md5
|
11686
11785
|
# The MD5 hash for the request body.
|
11687
11786
|
#
|
11787
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
11788
|
+
# SDKs, this field is calculated automatically.
|
11789
|
+
#
|
11688
11790
|
# @option params [String] :expected_bucket_owner
|
11689
11791
|
# The account id of the expected bucket owner. If the bucket is owned by
|
11690
11792
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -11813,6 +11915,9 @@ module Aws::S3
|
|
11813
11915
|
# @option params [String] :content_md5
|
11814
11916
|
# The MD5 hash for the request body.
|
11815
11917
|
#
|
11918
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
11919
|
+
# SDKs, this field is calculated automatically.
|
11920
|
+
#
|
11816
11921
|
# @option params [required, Types::Tagging] :tagging
|
11817
11922
|
# Container for the `TagSet` and `Tag` elements
|
11818
11923
|
#
|
@@ -11925,6 +12030,9 @@ module Aws::S3
|
|
11925
12030
|
# @option params [String] :content_md5
|
11926
12031
|
# The MD5 hash of the `PutPublicAccessBlock` request body.
|
11927
12032
|
#
|
12033
|
+
# For requests made using the AWS Command Line Interface (CLI) or AWS
|
12034
|
+
# SDKs, this field is calculated automatically.
|
12035
|
+
#
|
11928
12036
|
# @option params [required, Types::PublicAccessBlockConfiguration] :public_access_block_configuration
|
11929
12037
|
# The `PublicAccessBlock` configuration that you want to apply to this
|
11930
12038
|
# Amazon S3 bucket. You can enable the configuration options in any
|
@@ -12064,18 +12172,18 @@ module Aws::S3
|
|
12064
12172
|
# * Amazon S3 accepts a select request even if the object has already
|
12065
12173
|
# been restored. A select request doesn’t return error response `409`.
|
12066
12174
|
#
|
12067
|
-
# **Restoring
|
12175
|
+
# **Restoring objects**
|
12068
12176
|
#
|
12069
|
-
# Objects that you archive to the S3 Glacier
|
12070
|
-
# S3 Intelligent-Tiering Archive
|
12071
|
-
#
|
12072
|
-
# Archive Access
|
12073
|
-
# initiate a restore request, and then wait until the object
|
12074
|
-
# into the Frequent Access tier. For objects in S3 Glacier or
|
12075
|
-
# Deep Archive you must first initiate a
|
12076
|
-
# until a temporary copy of the object is
|
12077
|
-
# archived object, you must restore the object
|
12078
|
-
# of days) that you specify.
|
12177
|
+
# Objects that you archive to the S3 Glacier or S3 Glacier Deep Archive
|
12178
|
+
# storage class, and S3 Intelligent-Tiering Archive or S3
|
12179
|
+
# Intelligent-Tiering Deep Archive tiers are not accessible in real
|
12180
|
+
# time. For objects in Archive Access or Deep Archive Access tiers you
|
12181
|
+
# must first initiate a restore request, and then wait until the object
|
12182
|
+
# is moved into the Frequent Access tier. For objects in S3 Glacier or
|
12183
|
+
# S3 Glacier Deep Archive storage classes you must first initiate a
|
12184
|
+
# restore request, and then wait until a temporary copy of the object is
|
12185
|
+
# available. To access an archived object, you must restore the object
|
12186
|
+
# for the duration (number of days) that you specify.
|
12079
12187
|
#
|
12080
12188
|
# To restore a specific object version, you can provide a version ID. If
|
12081
12189
|
# you don't provide a version ID, Amazon S3 restores the current
|
@@ -12086,35 +12194,34 @@ module Aws::S3
|
|
12086
12194
|
# element of the request body:
|
12087
12195
|
#
|
12088
12196
|
# * <b> <code>Expedited</code> </b> - Expedited retrievals allow you to
|
12089
|
-
# quickly access your data stored in the S3 Glacier or
|
12090
|
-
# Intelligent-Tiering Archive
|
12091
|
-
#
|
12092
|
-
#
|
12093
|
-
#
|
12094
|
-
#
|
12095
|
-
#
|
12096
|
-
#
|
12097
|
-
#
|
12098
|
-
# class.
|
12197
|
+
# quickly access your data stored in the S3 Glacier storage class or
|
12198
|
+
# S3 Intelligent-Tiering Archive tier when occasional urgent requests
|
12199
|
+
# for a subset of archives are required. For all but the largest
|
12200
|
+
# archived objects (250 MB+), data accessed using Expedited retrievals
|
12201
|
+
# is typically made available within 1–5 minutes. Provisioned capacity
|
12202
|
+
# ensures that retrieval capacity for Expedited retrievals is
|
12203
|
+
# available when you need it. Expedited retrievals and provisioned
|
12204
|
+
# capacity are not available for objects stored in the S3 Glacier Deep
|
12205
|
+
# Archive storage class or S3 Intelligent-Tiering Deep Archive tier.
|
12099
12206
|
#
|
12100
12207
|
# * <b> <code>Standard</code> </b> - Standard retrievals allow you to
|
12101
12208
|
# access any of your archived objects within several hours. This is
|
12102
12209
|
# the default option for retrieval requests that do not specify the
|
12103
12210
|
# retrieval option. Standard retrievals typically finish within 3–5
|
12104
|
-
# hours for objects stored in the S3 Glacier or S3
|
12105
|
-
# Archive
|
12106
|
-
# objects stored in the S3 Glacier Deep Archive
|
12107
|
-
# Intelligent-Tiering Deep Archive
|
12108
|
-
# are free for objects stored in S3 Intelligent-Tiering.
|
12211
|
+
# hours for objects stored in the S3 Glacier storage class or S3
|
12212
|
+
# Intelligent-Tiering Archive tier. They typically finish within 12
|
12213
|
+
# hours for objects stored in the S3 Glacier Deep Archive storage
|
12214
|
+
# class or S3 Intelligent-Tiering Deep Archive tier. Standard
|
12215
|
+
# retrievals are free for objects stored in S3 Intelligent-Tiering.
|
12109
12216
|
#
|
12110
12217
|
# * <b> <code>Bulk</code> </b> - Bulk retrievals are the lowest-cost
|
12111
12218
|
# retrieval option in S3 Glacier, enabling you to retrieve large
|
12112
12219
|
# amounts, even petabytes, of data inexpensively. Bulk retrievals
|
12113
12220
|
# typically finish within 5–12 hours for objects stored in the S3
|
12114
|
-
# Glacier or S3 Intelligent-Tiering Archive
|
12221
|
+
# Glacier storage class or S3 Intelligent-Tiering Archive tier. They
|
12115
12222
|
# typically finish within 48 hours for objects stored in the S3
|
12116
|
-
# Glacier Deep Archive or S3 Intelligent-Tiering Deep
|
12117
|
-
#
|
12223
|
+
# Glacier Deep Archive storage class or S3 Intelligent-Tiering Deep
|
12224
|
+
# Archive tier. Bulk retrievals are free for objects stored in S3
|
12118
12225
|
# Intelligent-Tiering.
|
12119
12226
|
#
|
12120
12227
|
# For more information about archive retrieval options and provisioned
|
@@ -13003,6 +13110,7 @@ module Aws::S3
|
|
13003
13110
|
# * {Types::UploadPartOutput#sse_customer_algorithm #sse_customer_algorithm} => String
|
13004
13111
|
# * {Types::UploadPartOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
13005
13112
|
# * {Types::UploadPartOutput#ssekms_key_id #ssekms_key_id} => String
|
13113
|
+
# * {Types::UploadPartOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
13006
13114
|
# * {Types::UploadPartOutput#request_charged #request_charged} => String
|
13007
13115
|
#
|
13008
13116
|
#
|
@@ -13048,6 +13156,7 @@ module Aws::S3
|
|
13048
13156
|
# resp.sse_customer_algorithm #=> String
|
13049
13157
|
# resp.sse_customer_key_md5 #=> String
|
13050
13158
|
# resp.ssekms_key_id #=> String
|
13159
|
+
# resp.bucket_key_enabled #=> Boolean
|
13051
13160
|
# resp.request_charged #=> String, one of "requester"
|
13052
13161
|
#
|
13053
13162
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPart AWS API Documentation
|
@@ -13353,6 +13462,7 @@ module Aws::S3
|
|
13353
13462
|
# * {Types::UploadPartCopyOutput#sse_customer_algorithm #sse_customer_algorithm} => String
|
13354
13463
|
# * {Types::UploadPartCopyOutput#sse_customer_key_md5 #sse_customer_key_md5} => String
|
13355
13464
|
# * {Types::UploadPartCopyOutput#ssekms_key_id #ssekms_key_id} => String
|
13465
|
+
# * {Types::UploadPartCopyOutput#bucket_key_enabled #bucket_key_enabled} => Boolean
|
13356
13466
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
13357
13467
|
#
|
13358
13468
|
#
|
@@ -13431,6 +13541,7 @@ module Aws::S3
|
|
13431
13541
|
# resp.sse_customer_algorithm #=> String
|
13432
13542
|
# resp.sse_customer_key_md5 #=> String
|
13433
13543
|
# resp.ssekms_key_id #=> String
|
13544
|
+
# resp.bucket_key_enabled #=> Boolean
|
13434
13545
|
# resp.request_charged #=> String, one of "requester"
|
13435
13546
|
#
|
13436
13547
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/UploadPartCopy AWS API Documentation
|
@@ -13455,7 +13566,7 @@ module Aws::S3
|
|
13455
13566
|
params: params,
|
13456
13567
|
config: config)
|
13457
13568
|
context[:gem_name] = 'aws-sdk-s3'
|
13458
|
-
context[:gem_version] = '1.
|
13569
|
+
context[:gem_version] = '1.87.0'
|
13459
13570
|
Seahorse::Client::Request.new(handlers, context)
|
13460
13571
|
end
|
13461
13572
|
|