aws-sdk-s3 1.99.0 → 1.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +2 -2
- data/lib/aws-sdk-s3/client.rb +168 -165
- data/lib/aws-sdk-s3/encryption/client.rb +1 -1
- data/lib/aws-sdk-s3/encryptionV2/client.rb +1 -1
- data/lib/aws-sdk-s3/object.rb +4 -3
- data/lib/aws-sdk-s3/object_summary.rb +4 -3
- data/lib/aws-sdk-s3/object_version.rb +4 -3
- data/lib/aws-sdk-s3/types.rb +4 -3
- data/lib/aws-sdk-s3.rb +1 -1
- 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: 30aef56797764890a0f8928bde79b89bf5ee0aefc74048aca3288c7a9fef62d6
|
4
|
+
data.tar.gz: 6dd16669733df08806718df48e5910a8d2f65f8b163a0b1e2da6bf38416f16d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 150908a5c7a813838f01ff707ff0ace94014818c301c0b34763f08325604d04e3a2f98b34929ba6833536a78e594330a4c79fd64e05496c92fdde9e89b17394c
|
7
|
+
data.tar.gz: 7799e87d49616f30f9aa8ff3be5350c8e4e5ad4f9c8f53d2c75f0a8ae2458d86ced47c792917f18821ea22d124e7e55cd8213d3a917ceb3f9f23f4d298f760ad
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.100.0
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -315,8 +315,8 @@ module Aws::S3
|
|
315
315
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
316
316
|
# @option options [Boolean] :bypass_governance_retention
|
317
317
|
# Specifies whether you want to delete this object even if it has a
|
318
|
-
# Governance-type Object Lock in place.
|
319
|
-
#
|
318
|
+
# Governance-type Object Lock in place. To use this header, you must
|
319
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
320
320
|
# @option options [String] :expected_bucket_owner
|
321
321
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
322
322
|
# a different account, the request will fail with an HTTP `403 (Access
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -1460,33 +1460,33 @@ module Aws::S3
|
|
1460
1460
|
# * {Types::CreateBucketOutput#location #location} => String
|
1461
1461
|
#
|
1462
1462
|
#
|
1463
|
-
# @example Example: To create a bucket
|
1463
|
+
# @example Example: To create a bucket in a specific region
|
1464
1464
|
#
|
1465
|
-
# # The following example creates a bucket.
|
1465
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1466
1466
|
#
|
1467
1467
|
# resp = client.create_bucket({
|
1468
1468
|
# bucket: "examplebucket",
|
1469
|
+
# create_bucket_configuration: {
|
1470
|
+
# location_constraint: "eu-west-1",
|
1471
|
+
# },
|
1469
1472
|
# })
|
1470
1473
|
#
|
1471
1474
|
# resp.to_h outputs the following:
|
1472
1475
|
# {
|
1473
|
-
# location: "/
|
1476
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1474
1477
|
# }
|
1475
1478
|
#
|
1476
|
-
# @example Example: To create a bucket
|
1479
|
+
# @example Example: To create a bucket
|
1477
1480
|
#
|
1478
|
-
# # The following example creates a bucket.
|
1481
|
+
# # The following example creates a bucket.
|
1479
1482
|
#
|
1480
1483
|
# resp = client.create_bucket({
|
1481
1484
|
# bucket: "examplebucket",
|
1482
|
-
# create_bucket_configuration: {
|
1483
|
-
# location_constraint: "eu-west-1",
|
1484
|
-
# },
|
1485
1485
|
# })
|
1486
1486
|
#
|
1487
1487
|
# resp.to_h outputs the following:
|
1488
1488
|
# {
|
1489
|
-
# location: "
|
1489
|
+
# location: "/examplebucket",
|
1490
1490
|
# }
|
1491
1491
|
#
|
1492
1492
|
# @example Request syntax with placeholder values
|
@@ -2882,7 +2882,8 @@ module Aws::S3
|
|
2882
2882
|
#
|
2883
2883
|
# @option params [Boolean] :bypass_governance_retention
|
2884
2884
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
2885
|
-
# restrictions to process this operation.
|
2885
|
+
# restrictions to process this operation. To use this header, you must
|
2886
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
2886
2887
|
#
|
2887
2888
|
# @option params [String] :expected_bucket_owner
|
2888
2889
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
@@ -3010,35 +3011,35 @@ module Aws::S3
|
|
3010
3011
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
3011
3012
|
#
|
3012
3013
|
#
|
3013
|
-
# @example Example: To remove tag set from an object
|
3014
|
+
# @example Example: To remove tag set from an object version
|
3014
3015
|
#
|
3015
|
-
# # The following example removes tag set associated with the specified object.
|
3016
|
-
# #
|
3016
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
3017
|
+
# # object key and object version.
|
3017
3018
|
#
|
3018
3019
|
# resp = client.delete_object_tagging({
|
3019
3020
|
# bucket: "examplebucket",
|
3020
3021
|
# key: "HappyFace.jpg",
|
3022
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3021
3023
|
# })
|
3022
3024
|
#
|
3023
3025
|
# resp.to_h outputs the following:
|
3024
3026
|
# {
|
3025
|
-
# version_id: "
|
3027
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3026
3028
|
# }
|
3027
3029
|
#
|
3028
|
-
# @example Example: To remove tag set from an object
|
3030
|
+
# @example Example: To remove tag set from an object
|
3029
3031
|
#
|
3030
|
-
# # The following example removes tag set associated with the specified object
|
3031
|
-
# #
|
3032
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
3033
|
+
# # operation removes tag set from the latest object version.
|
3032
3034
|
#
|
3033
3035
|
# resp = client.delete_object_tagging({
|
3034
3036
|
# bucket: "examplebucket",
|
3035
3037
|
# key: "HappyFace.jpg",
|
3036
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3037
3038
|
# })
|
3038
3039
|
#
|
3039
3040
|
# resp.to_h outputs the following:
|
3040
3041
|
# {
|
3041
|
-
# version_id: "
|
3042
|
+
# version_id: "null",
|
3042
3043
|
# }
|
3043
3044
|
#
|
3044
3045
|
# @example Request syntax with placeholder values
|
@@ -3163,8 +3164,8 @@ module Aws::S3
|
|
3163
3164
|
#
|
3164
3165
|
# @option params [Boolean] :bypass_governance_retention
|
3165
3166
|
# Specifies whether you want to delete this object even if it has a
|
3166
|
-
# Governance-type Object Lock in place.
|
3167
|
-
#
|
3167
|
+
# Governance-type Object Lock in place. To use this header, you must
|
3168
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
3168
3169
|
#
|
3169
3170
|
# @option params [String] :expected_bucket_owner
|
3170
3171
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
@@ -3178,20 +3179,22 @@ module Aws::S3
|
|
3178
3179
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
3179
3180
|
#
|
3180
3181
|
#
|
3181
|
-
# @example Example: To delete multiple
|
3182
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
3182
3183
|
#
|
3183
|
-
# # The following example deletes objects from a bucket. The
|
3184
|
-
# #
|
3184
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
3185
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
3185
3186
|
#
|
3186
3187
|
# resp = client.delete_objects({
|
3187
3188
|
# bucket: "examplebucket",
|
3188
3189
|
# delete: {
|
3189
3190
|
# objects: [
|
3190
3191
|
# {
|
3191
|
-
# key: "
|
3192
|
+
# key: "HappyFace.jpg",
|
3193
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3192
3194
|
# },
|
3193
3195
|
# {
|
3194
|
-
# key: "
|
3196
|
+
# key: "HappyFace.jpg",
|
3197
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3195
3198
|
# },
|
3196
3199
|
# ],
|
3197
3200
|
# quiet: false,
|
@@ -3202,34 +3205,30 @@ module Aws::S3
|
|
3202
3205
|
# {
|
3203
3206
|
# deleted: [
|
3204
3207
|
# {
|
3205
|
-
#
|
3206
|
-
#
|
3207
|
-
# key: "objectkey1",
|
3208
|
+
# key: "HappyFace.jpg",
|
3209
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3208
3210
|
# },
|
3209
3211
|
# {
|
3210
|
-
#
|
3211
|
-
#
|
3212
|
-
# key: "objectkey2",
|
3212
|
+
# key: "HappyFace.jpg",
|
3213
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3213
3214
|
# },
|
3214
3215
|
# ],
|
3215
3216
|
# }
|
3216
3217
|
#
|
3217
|
-
# @example Example: To delete multiple
|
3218
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
3218
3219
|
#
|
3219
|
-
# # The following example deletes objects from a bucket. The
|
3220
|
-
# #
|
3220
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
3221
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
3221
3222
|
#
|
3222
3223
|
# resp = client.delete_objects({
|
3223
3224
|
# bucket: "examplebucket",
|
3224
3225
|
# delete: {
|
3225
3226
|
# objects: [
|
3226
3227
|
# {
|
3227
|
-
# key: "
|
3228
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3228
|
+
# key: "objectkey1",
|
3229
3229
|
# },
|
3230
3230
|
# {
|
3231
|
-
# key: "
|
3232
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3231
|
+
# key: "objectkey2",
|
3233
3232
|
# },
|
3234
3233
|
# ],
|
3235
3234
|
# quiet: false,
|
@@ -3240,12 +3239,14 @@ module Aws::S3
|
|
3240
3239
|
# {
|
3241
3240
|
# deleted: [
|
3242
3241
|
# {
|
3243
|
-
#
|
3244
|
-
#
|
3242
|
+
# delete_marker: true,
|
3243
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
3244
|
+
# key: "objectkey1",
|
3245
3245
|
# },
|
3246
3246
|
# {
|
3247
|
-
#
|
3248
|
-
#
|
3247
|
+
# delete_marker: true,
|
3248
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
3249
|
+
# key: "objectkey2",
|
3249
3250
|
# },
|
3250
3251
|
# ],
|
3251
3252
|
# }
|
@@ -5176,18 +5177,19 @@ module Aws::S3
|
|
5176
5177
|
# For more information about SSE-C, see [Server-Side Encryption (Using
|
5177
5178
|
# Customer-Provided Encryption Keys)][6].
|
5178
5179
|
#
|
5179
|
-
# Assuming you have permission to read object tags
|
5180
|
-
#
|
5181
|
-
#
|
5182
|
-
#
|
5183
|
-
#
|
5180
|
+
# Assuming you have the relevant permission to read object tags, the
|
5181
|
+
# response also returns the `x-amz-tagging-count` header that provides
|
5182
|
+
# the count of number of tags associated with the object. You can use
|
5183
|
+
# [GetObjectTagging][7] to retrieve the tag set associated with an
|
5184
|
+
# object.
|
5184
5185
|
#
|
5185
5186
|
# **Permissions**
|
5186
5187
|
#
|
5187
|
-
# You need the
|
5188
|
-
# information, see [Specifying Permissions in a
|
5189
|
-
# object you request does not exist, the error Amazon
|
5190
|
-
# on whether you also have the `s3:ListBucket`
|
5188
|
+
# You need the relevant read object (or version) permission for this
|
5189
|
+
# operation. For more information, see [Specifying Permissions in a
|
5190
|
+
# Policy][8]. If the object you request does not exist, the error Amazon
|
5191
|
+
# S3 returns depends on whether you also have the `s3:ListBucket`
|
5192
|
+
# permission.
|
5191
5193
|
#
|
5192
5194
|
# * If you have the `s3:ListBucket` permission on the bucket, Amazon S3
|
5193
5195
|
# will return an HTTP status code 404 ("no such key") error.
|
@@ -6027,49 +6029,49 @@ module Aws::S3
|
|
6027
6029
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
6028
6030
|
#
|
6029
6031
|
#
|
6030
|
-
# @example Example: To retrieve tag set of
|
6032
|
+
# @example Example: To retrieve tag set of an object
|
6031
6033
|
#
|
6032
|
-
# # The following example retrieves tag set of an object.
|
6034
|
+
# # The following example retrieves tag set of an object.
|
6033
6035
|
#
|
6034
6036
|
# resp = client.get_object_tagging({
|
6035
6037
|
# bucket: "examplebucket",
|
6036
|
-
# key: "
|
6037
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6038
|
+
# key: "HappyFace.jpg",
|
6038
6039
|
# })
|
6039
6040
|
#
|
6040
6041
|
# resp.to_h outputs the following:
|
6041
6042
|
# {
|
6042
6043
|
# tag_set: [
|
6043
6044
|
# {
|
6044
|
-
# key: "
|
6045
|
-
# value: "
|
6045
|
+
# key: "Key4",
|
6046
|
+
# value: "Value4",
|
6047
|
+
# },
|
6048
|
+
# {
|
6049
|
+
# key: "Key3",
|
6050
|
+
# value: "Value3",
|
6046
6051
|
# },
|
6047
6052
|
# ],
|
6048
|
-
# version_id: "
|
6053
|
+
# version_id: "null",
|
6049
6054
|
# }
|
6050
6055
|
#
|
6051
|
-
# @example Example: To retrieve tag set of
|
6056
|
+
# @example Example: To retrieve tag set of a specific object version
|
6052
6057
|
#
|
6053
|
-
# # The following example retrieves tag set of an object.
|
6058
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
6054
6059
|
#
|
6055
6060
|
# resp = client.get_object_tagging({
|
6056
6061
|
# bucket: "examplebucket",
|
6057
|
-
# key: "
|
6062
|
+
# key: "exampleobject",
|
6063
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6058
6064
|
# })
|
6059
6065
|
#
|
6060
6066
|
# resp.to_h outputs the following:
|
6061
6067
|
# {
|
6062
6068
|
# tag_set: [
|
6063
6069
|
# {
|
6064
|
-
# key: "
|
6065
|
-
# value: "
|
6066
|
-
# },
|
6067
|
-
# {
|
6068
|
-
# key: "Key3",
|
6069
|
-
# value: "Value3",
|
6070
|
+
# key: "Key1",
|
6071
|
+
# value: "Value1",
|
6070
6072
|
# },
|
6071
6073
|
# ],
|
6072
|
-
# version_id: "
|
6074
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6073
6075
|
# }
|
6074
6076
|
#
|
6075
6077
|
# @example Request syntax with placeholder values
|
@@ -6420,10 +6422,11 @@ module Aws::S3
|
|
6420
6422
|
#
|
6421
6423
|
# **Permissions**
|
6422
6424
|
#
|
6423
|
-
# You need the
|
6424
|
-
# information, see [Specifying Permissions in a
|
6425
|
-
# object you request does not exist, the error Amazon
|
6426
|
-
# on whether you also have the s3:ListBucket
|
6425
|
+
# You need the relevant read object (or version) permission for this
|
6426
|
+
# operation. For more information, see [Specifying Permissions in a
|
6427
|
+
# Policy][4]. If the object you request does not exist, the error Amazon
|
6428
|
+
# S3 returns depends on whether you also have the s3:ListBucket
|
6429
|
+
# permission.
|
6427
6430
|
#
|
6428
6431
|
# * If you have the `s3:ListBucket` permission on the bucket, Amazon S3
|
6429
6432
|
# returns an HTTP status code 404 ("no such key") error.
|
@@ -7250,97 +7253,97 @@ module Aws::S3
|
|
7250
7253
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7251
7254
|
#
|
7252
7255
|
#
|
7253
|
-
# @example Example:
|
7256
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
7254
7257
|
#
|
7255
|
-
# # The following example
|
7258
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
7259
|
+
# # setup of multipart uploads.
|
7256
7260
|
#
|
7257
7261
|
# resp = client.list_multipart_uploads({
|
7258
7262
|
# bucket: "examplebucket",
|
7263
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
7264
|
+
# max_uploads: 2,
|
7265
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
7259
7266
|
# })
|
7260
7267
|
#
|
7261
7268
|
# resp.to_h outputs the following:
|
7262
7269
|
# {
|
7270
|
+
# bucket: "acl1",
|
7271
|
+
# is_truncated: true,
|
7272
|
+
# key_marker: "",
|
7273
|
+
# max_uploads: 2,
|
7274
|
+
# next_key_marker: "someobjectkey",
|
7275
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7276
|
+
# upload_id_marker: "",
|
7263
7277
|
# uploads: [
|
7264
7278
|
# {
|
7265
7279
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7266
7280
|
# initiator: {
|
7267
|
-
# display_name: "display-name",
|
7281
|
+
# display_name: "ownder-display-name",
|
7268
7282
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7269
7283
|
# },
|
7270
7284
|
# key: "JavaFile",
|
7271
7285
|
# owner: {
|
7272
|
-
# display_name: "
|
7273
|
-
# id: "
|
7286
|
+
# display_name: "mohanataws",
|
7287
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7274
7288
|
# },
|
7275
7289
|
# storage_class: "STANDARD",
|
7276
|
-
# upload_id: "
|
7290
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7277
7291
|
# },
|
7278
7292
|
# {
|
7279
7293
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7280
7294
|
# initiator: {
|
7281
|
-
# display_name: "display-name",
|
7295
|
+
# display_name: "ownder-display-name",
|
7282
7296
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7283
7297
|
# },
|
7284
7298
|
# key: "JavaFile",
|
7285
7299
|
# owner: {
|
7286
|
-
# display_name: "display-name",
|
7300
|
+
# display_name: "ownder-display-name",
|
7287
7301
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7288
7302
|
# },
|
7289
7303
|
# storage_class: "STANDARD",
|
7290
|
-
# upload_id: "
|
7304
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7291
7305
|
# },
|
7292
7306
|
# ],
|
7293
7307
|
# }
|
7294
7308
|
#
|
7295
|
-
# @example Example:
|
7309
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
7296
7310
|
#
|
7297
|
-
# # The following example
|
7298
|
-
# # setup of multipart uploads.
|
7311
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
7299
7312
|
#
|
7300
7313
|
# resp = client.list_multipart_uploads({
|
7301
7314
|
# bucket: "examplebucket",
|
7302
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
7303
|
-
# max_uploads: 2,
|
7304
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
7305
7315
|
# })
|
7306
7316
|
#
|
7307
7317
|
# resp.to_h outputs the following:
|
7308
7318
|
# {
|
7309
|
-
# bucket: "acl1",
|
7310
|
-
# is_truncated: true,
|
7311
|
-
# key_marker: "",
|
7312
|
-
# max_uploads: 2,
|
7313
|
-
# next_key_marker: "someobjectkey",
|
7314
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7315
|
-
# upload_id_marker: "",
|
7316
7319
|
# uploads: [
|
7317
7320
|
# {
|
7318
7321
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7319
7322
|
# initiator: {
|
7320
|
-
# display_name: "
|
7323
|
+
# display_name: "display-name",
|
7321
7324
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7322
7325
|
# },
|
7323
7326
|
# key: "JavaFile",
|
7324
7327
|
# owner: {
|
7325
|
-
# display_name: "
|
7326
|
-
# id: "
|
7328
|
+
# display_name: "display-name",
|
7329
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7327
7330
|
# },
|
7328
7331
|
# storage_class: "STANDARD",
|
7329
|
-
# upload_id: "
|
7332
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7330
7333
|
# },
|
7331
7334
|
# {
|
7332
7335
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7333
7336
|
# initiator: {
|
7334
|
-
# display_name: "
|
7337
|
+
# display_name: "display-name",
|
7335
7338
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7336
7339
|
# },
|
7337
7340
|
# key: "JavaFile",
|
7338
7341
|
# owner: {
|
7339
|
-
# display_name: "
|
7342
|
+
# display_name: "display-name",
|
7340
7343
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7341
7344
|
# },
|
7342
7345
|
# storage_class: "STANDARD",
|
7343
|
-
# upload_id: "
|
7346
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7344
7347
|
# },
|
7345
7348
|
# ],
|
7346
7349
|
# }
|
@@ -11174,134 +11177,134 @@ module Aws::S3
|
|
11174
11177
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
11175
11178
|
#
|
11176
11179
|
#
|
11177
|
-
# @example Example: To
|
11180
|
+
# @example Example: To upload an object (specify optional headers)
|
11178
11181
|
#
|
11179
|
-
# # The following example
|
11182
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
11183
|
+
# # storage class and use server-side encryption.
|
11180
11184
|
#
|
11181
11185
|
# resp = client.put_object({
|
11182
|
-
# body: "
|
11186
|
+
# body: "HappyFace.jpg",
|
11183
11187
|
# bucket: "examplebucket",
|
11184
|
-
# key: "
|
11188
|
+
# key: "HappyFace.jpg",
|
11189
|
+
# server_side_encryption: "AES256",
|
11190
|
+
# storage_class: "STANDARD_IA",
|
11185
11191
|
# })
|
11186
11192
|
#
|
11187
11193
|
# resp.to_h outputs the following:
|
11188
11194
|
# {
|
11189
11195
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11190
|
-
#
|
11196
|
+
# server_side_encryption: "AES256",
|
11197
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11191
11198
|
# }
|
11192
11199
|
#
|
11193
|
-
# @example Example: To upload an object and specify
|
11200
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
11194
11201
|
#
|
11195
|
-
# # The following example uploads
|
11196
|
-
# # S3 returns version ID
|
11202
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
11203
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
11197
11204
|
#
|
11198
11205
|
# resp = client.put_object({
|
11199
|
-
# body: "
|
11206
|
+
# body: "filetoupload",
|
11200
11207
|
# bucket: "examplebucket",
|
11201
|
-
# key: "
|
11208
|
+
# key: "exampleobject",
|
11209
|
+
# server_side_encryption: "AES256",
|
11202
11210
|
# tagging: "key1=value1&key2=value2",
|
11203
11211
|
# })
|
11204
11212
|
#
|
11205
11213
|
# resp.to_h outputs the following:
|
11206
11214
|
# {
|
11207
11215
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11208
|
-
#
|
11216
|
+
# server_side_encryption: "AES256",
|
11217
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
11209
11218
|
# }
|
11210
11219
|
#
|
11211
|
-
# @example Example: To
|
11220
|
+
# @example Example: To create an object.
|
11212
11221
|
#
|
11213
|
-
# # The following example
|
11214
|
-
# # syntax. S3 returns VersionId of the newly created object.
|
11222
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
11215
11223
|
#
|
11216
11224
|
# resp = client.put_object({
|
11217
|
-
# body: "
|
11225
|
+
# body: "filetoupload",
|
11218
11226
|
# bucket: "examplebucket",
|
11219
|
-
# key: "
|
11227
|
+
# key: "objectkey",
|
11220
11228
|
# })
|
11221
11229
|
#
|
11222
11230
|
# resp.to_h outputs the following:
|
11223
11231
|
# {
|
11224
11232
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11225
|
-
# version_id: "
|
11233
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
11226
11234
|
# }
|
11227
11235
|
#
|
11228
|
-
# @example Example: To upload
|
11236
|
+
# @example Example: To upload object and specify user-defined metadata
|
11229
11237
|
#
|
11230
|
-
# # The following example
|
11231
|
-
# #
|
11238
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
11239
|
+
# # enabled, S3 returns version ID in response.
|
11232
11240
|
#
|
11233
11241
|
# resp = client.put_object({
|
11234
|
-
# body: "
|
11242
|
+
# body: "filetoupload",
|
11235
11243
|
# bucket: "examplebucket",
|
11236
|
-
# key: "
|
11237
|
-
#
|
11238
|
-
#
|
11244
|
+
# key: "exampleobject",
|
11245
|
+
# metadata: {
|
11246
|
+
# "metadata1" => "value1",
|
11247
|
+
# "metadata2" => "value2",
|
11248
|
+
# },
|
11239
11249
|
# })
|
11240
11250
|
#
|
11241
11251
|
# resp.to_h outputs the following:
|
11242
11252
|
# {
|
11243
11253
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11244
|
-
#
|
11245
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11254
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
11246
11255
|
# }
|
11247
11256
|
#
|
11248
|
-
# @example Example: To upload an object and specify
|
11257
|
+
# @example Example: To upload an object and specify canned ACL.
|
11249
11258
|
#
|
11250
|
-
# # The following example uploads and object. The request specifies
|
11251
|
-
# #
|
11259
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
11260
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
11252
11261
|
#
|
11253
11262
|
# resp = client.put_object({
|
11263
|
+
# acl: "authenticated-read",
|
11254
11264
|
# body: "filetoupload",
|
11255
11265
|
# bucket: "examplebucket",
|
11256
11266
|
# key: "exampleobject",
|
11257
|
-
# server_side_encryption: "AES256",
|
11258
|
-
# tagging: "key1=value1&key2=value2",
|
11259
11267
|
# })
|
11260
11268
|
#
|
11261
11269
|
# resp.to_h outputs the following:
|
11262
11270
|
# {
|
11263
11271
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11264
|
-
#
|
11265
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
11272
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
11266
11273
|
# }
|
11267
11274
|
#
|
11268
|
-
# @example Example: To upload an object
|
11275
|
+
# @example Example: To upload an object
|
11269
11276
|
#
|
11270
|
-
# # The following example uploads
|
11271
|
-
# #
|
11277
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
11278
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
11272
11279
|
#
|
11273
11280
|
# resp = client.put_object({
|
11274
|
-
#
|
11275
|
-
# body: "filetoupload",
|
11281
|
+
# body: "HappyFace.jpg",
|
11276
11282
|
# bucket: "examplebucket",
|
11277
|
-
# key: "
|
11283
|
+
# key: "HappyFace.jpg",
|
11278
11284
|
# })
|
11279
11285
|
#
|
11280
11286
|
# resp.to_h outputs the following:
|
11281
11287
|
# {
|
11282
11288
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11283
|
-
# version_id: "
|
11289
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
11284
11290
|
# }
|
11285
11291
|
#
|
11286
|
-
# @example Example: To upload object and specify
|
11292
|
+
# @example Example: To upload an object and specify optional tags
|
11287
11293
|
#
|
11288
|
-
# # The following example
|
11289
|
-
# #
|
11294
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
11295
|
+
# # S3 returns version ID of the newly created object.
|
11290
11296
|
#
|
11291
11297
|
# resp = client.put_object({
|
11292
|
-
# body: "
|
11298
|
+
# body: "c:\\HappyFace.jpg",
|
11293
11299
|
# bucket: "examplebucket",
|
11294
|
-
# key: "
|
11295
|
-
#
|
11296
|
-
# "metadata1" => "value1",
|
11297
|
-
# "metadata2" => "value2",
|
11298
|
-
# },
|
11300
|
+
# key: "HappyFace.jpg",
|
11301
|
+
# tagging: "key1=value1&key2=value2",
|
11299
11302
|
# })
|
11300
11303
|
#
|
11301
11304
|
# resp.to_h outputs the following:
|
11302
11305
|
# {
|
11303
11306
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11304
|
-
# version_id: "
|
11307
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
11305
11308
|
# }
|
11306
11309
|
#
|
11307
11310
|
# @example Streaming a file from disk
|
@@ -13646,45 +13649,45 @@ module Aws::S3
|
|
13646
13649
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
13647
13650
|
#
|
13648
13651
|
#
|
13649
|
-
# @example Example: To upload a part by copying
|
13652
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
13650
13653
|
#
|
13651
|
-
# # The following example uploads a part of a multipart upload by copying
|
13654
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
13655
|
+
# # data source.
|
13652
13656
|
#
|
13653
13657
|
# resp = client.upload_part_copy({
|
13654
13658
|
# bucket: "examplebucket",
|
13655
13659
|
# copy_source: "/bucketname/sourceobjectkey",
|
13660
|
+
# copy_source_range: "bytes=1-100000",
|
13656
13661
|
# key: "examplelargeobject",
|
13657
|
-
# part_number:
|
13662
|
+
# part_number: 2,
|
13658
13663
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
13659
13664
|
# })
|
13660
13665
|
#
|
13661
13666
|
# resp.to_h outputs the following:
|
13662
13667
|
# {
|
13663
13668
|
# copy_part_result: {
|
13664
|
-
# etag: "\"
|
13665
|
-
# last_modified: Time.parse("2016-12-29T21:
|
13669
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
13670
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
13666
13671
|
# },
|
13667
13672
|
# }
|
13668
13673
|
#
|
13669
|
-
# @example Example: To upload a part by copying
|
13674
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
13670
13675
|
#
|
13671
|
-
# # The following example uploads a part of a multipart upload by copying
|
13672
|
-
# # data source.
|
13676
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
13673
13677
|
#
|
13674
13678
|
# resp = client.upload_part_copy({
|
13675
13679
|
# bucket: "examplebucket",
|
13676
13680
|
# copy_source: "/bucketname/sourceobjectkey",
|
13677
|
-
# copy_source_range: "bytes=1-100000",
|
13678
13681
|
# key: "examplelargeobject",
|
13679
|
-
# part_number:
|
13682
|
+
# part_number: 1,
|
13680
13683
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
13681
13684
|
# })
|
13682
13685
|
#
|
13683
13686
|
# resp.to_h outputs the following:
|
13684
13687
|
# {
|
13685
13688
|
# copy_part_result: {
|
13686
|
-
# etag: "\"
|
13687
|
-
# last_modified: Time.parse("2016-12-29T21:
|
13689
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
13690
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
13688
13691
|
# },
|
13689
13692
|
# }
|
13690
13693
|
#
|
@@ -14044,7 +14047,7 @@ module Aws::S3
|
|
14044
14047
|
params: params,
|
14045
14048
|
config: config)
|
14046
14049
|
context[:gem_name] = 'aws-sdk-s3'
|
14047
|
-
context[:gem_version] = '1.
|
14050
|
+
context[:gem_version] = '1.100.0'
|
14048
14051
|
Seahorse::Client::Request.new(handlers, context)
|
14049
14052
|
end
|
14050
14053
|
|
data/lib/aws-sdk-s3/object.rb
CHANGED
@@ -805,7 +805,8 @@ module Aws::S3
|
|
805
805
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
806
806
|
# @option options [Boolean] :bypass_governance_retention
|
807
807
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
808
|
-
# restrictions to process this operation.
|
808
|
+
# restrictions to process this operation. To use this header, you must
|
809
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
809
810
|
# @option options [String] :expected_bucket_owner
|
810
811
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
811
812
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -1668,8 +1669,8 @@ module Aws::S3
|
|
1668
1669
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
1669
1670
|
# @option options [Boolean] :bypass_governance_retention
|
1670
1671
|
# Specifies whether you want to delete this object even if it has a
|
1671
|
-
# Governance-type Object Lock in place.
|
1672
|
-
#
|
1672
|
+
# Governance-type Object Lock in place. To use this header, you must
|
1673
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
1673
1674
|
# @option options [String] :expected_bucket_owner
|
1674
1675
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
1675
1676
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -549,7 +549,8 @@ module Aws::S3
|
|
549
549
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
550
550
|
# @option options [Boolean] :bypass_governance_retention
|
551
551
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
552
|
-
# restrictions to process this operation.
|
552
|
+
# restrictions to process this operation. To use this header, you must
|
553
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
553
554
|
# @option options [String] :expected_bucket_owner
|
554
555
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
555
556
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -1335,8 +1336,8 @@ module Aws::S3
|
|
1335
1336
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
1336
1337
|
# @option options [Boolean] :bypass_governance_retention
|
1337
1338
|
# Specifies whether you want to delete this object even if it has a
|
1338
|
-
# Governance-type Object Lock in place.
|
1339
|
-
#
|
1339
|
+
# Governance-type Object Lock in place. To use this header, you must
|
1340
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
1340
1341
|
# @option options [String] :expected_bucket_owner
|
1341
1342
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
1342
1343
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -254,7 +254,8 @@ module Aws::S3
|
|
254
254
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
255
255
|
# @option options [Boolean] :bypass_governance_retention
|
256
256
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
257
|
-
# restrictions to process this operation.
|
257
|
+
# restrictions to process this operation. To use this header, you must
|
258
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
258
259
|
# @option options [String] :expected_bucket_owner
|
259
260
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
260
261
|
# a different account, the request will fail with an HTTP `403 (Access
|
@@ -543,8 +544,8 @@ module Aws::S3
|
|
543
544
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
544
545
|
# @option options [Boolean] :bypass_governance_retention
|
545
546
|
# Specifies whether you want to delete this object even if it has a
|
546
|
-
# Governance-type Object Lock in place.
|
547
|
-
#
|
547
|
+
# Governance-type Object Lock in place. To use this header, you must
|
548
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
548
549
|
# @option options [String] :expected_bucket_owner
|
549
550
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
550
551
|
# a different account, the request will fail with an HTTP `403 (Access
|
data/lib/aws-sdk-s3/types.rb
CHANGED
@@ -2861,7 +2861,8 @@ module Aws::S3
|
|
2861
2861
|
#
|
2862
2862
|
# @!attribute [rw] bypass_governance_retention
|
2863
2863
|
# Indicates whether S3 Object Lock should bypass Governance-mode
|
2864
|
-
# restrictions to process this operation.
|
2864
|
+
# restrictions to process this operation. To use this header, you must
|
2865
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
2865
2866
|
# @return [Boolean]
|
2866
2867
|
#
|
2867
2868
|
# @!attribute [rw] expected_bucket_owner
|
@@ -3057,8 +3058,8 @@ module Aws::S3
|
|
3057
3058
|
#
|
3058
3059
|
# @!attribute [rw] bypass_governance_retention
|
3059
3060
|
# Specifies whether you want to delete this object even if it has a
|
3060
|
-
# Governance-type Object Lock in place.
|
3061
|
-
#
|
3061
|
+
# Governance-type Object Lock in place. To use this header, you must
|
3062
|
+
# have the `s3:PutBucketPublicAccessBlock` permission.
|
3062
3063
|
# @return [Boolean]
|
3063
3064
|
#
|
3064
3065
|
# @!attribute [rw] expected_bucket_owner
|
data/lib/aws-sdk-s3.rb
CHANGED
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.
|
4
|
+
version: 1.100.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|