aws-sdk-s3 1.95.1 → 1.97.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/bucket.rb +1 -0
- data/lib/aws-sdk-s3/client.rb +72 -70
- data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +2 -2
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +2 -2
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +1 -1
- data/lib/aws-sdk-s3/file_downloader.rb +6 -1
- data/lib/aws-sdk-s3/object.rb +1 -0
- data/lib/aws-sdk-s3/object_summary.rb +1 -0
- data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +1 -1
- data/lib/aws-sdk-s3/types.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7992ca22a28ca2a1b417c8fc6f49a519b57f63919fa2aed36d480a07ae957dc5
|
4
|
+
data.tar.gz: d9d4af305bad8afada398e44bfb684137a9c630ba39ef9cebd51839c21e516b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4a654f87fe337ce42a746697f00ea030a7b87f8ef714a16e034f7358a834d6017237ecea6051a9ee14815e8169e344ce29ca32d934152bb657e4ffff883b63
|
7
|
+
data.tar.gz: 3a00aa2bd35429a82cb4bb6a7dcd70d5493c9163c2de53467b413a64d0ffa3a6d9f416ec769fdad9fc774e144e7ab46ec256016d73e6877ac2b37dbc2f6d0338
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.97.0 (2021-07-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.96.2 (2021-07-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Fix file downloading edge case for 1 byte multipart ranges (#2561).
|
13
|
+
|
14
|
+
1.96.1 (2021-06-10)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - fix GetBucketLocation location_constraint XML parsing (#2536)
|
18
|
+
|
19
|
+
1.96.0 (2021-06-03)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - S3 Inventory now supports Bucket Key Status
|
23
|
+
|
4
24
|
1.95.1 (2021-05-24)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.97.0
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -552,6 +552,7 @@ module Aws::S3
|
|
552
552
|
# The Object Lock mode that you want to apply to this object.
|
553
553
|
# @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
|
554
554
|
# The date and time when you want this object's Object Lock to expire.
|
555
|
+
# Must be formatted as a timestamp parameter.
|
555
556
|
# @option options [String] :object_lock_legal_hold_status
|
556
557
|
# Specifies whether a legal hold will be applied to this object. For
|
557
558
|
# more information about S3 Object Lock, see [Object Lock][1].
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -1421,33 +1421,33 @@ module Aws::S3
|
|
1421
1421
|
# * {Types::CreateBucketOutput#location #location} => String
|
1422
1422
|
#
|
1423
1423
|
#
|
1424
|
-
# @example Example: To create a bucket
|
1424
|
+
# @example Example: To create a bucket in a specific region
|
1425
1425
|
#
|
1426
|
-
# # The following example creates a bucket.
|
1426
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1427
1427
|
#
|
1428
1428
|
# resp = client.create_bucket({
|
1429
1429
|
# bucket: "examplebucket",
|
1430
|
+
# create_bucket_configuration: {
|
1431
|
+
# location_constraint: "eu-west-1",
|
1432
|
+
# },
|
1430
1433
|
# })
|
1431
1434
|
#
|
1432
1435
|
# resp.to_h outputs the following:
|
1433
1436
|
# {
|
1434
|
-
# location: "/
|
1437
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1435
1438
|
# }
|
1436
1439
|
#
|
1437
|
-
# @example Example: To create a bucket
|
1440
|
+
# @example Example: To create a bucket
|
1438
1441
|
#
|
1439
|
-
# # The following example creates a bucket.
|
1442
|
+
# # The following example creates a bucket.
|
1440
1443
|
#
|
1441
1444
|
# resp = client.create_bucket({
|
1442
1445
|
# bucket: "examplebucket",
|
1443
|
-
# create_bucket_configuration: {
|
1444
|
-
# location_constraint: "eu-west-1",
|
1445
|
-
# },
|
1446
1446
|
# })
|
1447
1447
|
#
|
1448
1448
|
# resp.to_h outputs the following:
|
1449
1449
|
# {
|
1450
|
-
# location: "
|
1450
|
+
# location: "/examplebucket",
|
1451
1451
|
# }
|
1452
1452
|
#
|
1453
1453
|
# @example Request syntax with placeholder values
|
@@ -2847,6 +2847,15 @@ module Aws::S3
|
|
2847
2847
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
2848
2848
|
#
|
2849
2849
|
#
|
2850
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
2851
|
+
#
|
2852
|
+
# # The following example deletes an object from a non-versioned bucket.
|
2853
|
+
#
|
2854
|
+
# resp = client.delete_object({
|
2855
|
+
# bucket: "ExampleBucket",
|
2856
|
+
# key: "HappyFace.jpg",
|
2857
|
+
# })
|
2858
|
+
#
|
2850
2859
|
# @example Example: To delete an object
|
2851
2860
|
#
|
2852
2861
|
# # The following example deletes an object from an S3 bucket.
|
@@ -2860,15 +2869,6 @@ module Aws::S3
|
|
2860
2869
|
# {
|
2861
2870
|
# }
|
2862
2871
|
#
|
2863
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
2864
|
-
#
|
2865
|
-
# # The following example deletes an object from a non-versioned bucket.
|
2866
|
-
#
|
2867
|
-
# resp = client.delete_object({
|
2868
|
-
# bucket: "ExampleBucket",
|
2869
|
-
# key: "HappyFace.jpg",
|
2870
|
-
# })
|
2871
|
-
#
|
2872
2872
|
# @example Request syntax with placeholder values
|
2873
2873
|
#
|
2874
2874
|
# resp = client.delete_object({
|
@@ -3129,22 +3129,20 @@ module Aws::S3
|
|
3129
3129
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
3130
3130
|
#
|
3131
3131
|
#
|
3132
|
-
# @example Example: To delete multiple
|
3132
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
3133
3133
|
#
|
3134
|
-
# # The following example deletes objects from a bucket. The
|
3135
|
-
# #
|
3134
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
3135
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
3136
3136
|
#
|
3137
3137
|
# resp = client.delete_objects({
|
3138
3138
|
# bucket: "examplebucket",
|
3139
3139
|
# delete: {
|
3140
3140
|
# objects: [
|
3141
3141
|
# {
|
3142
|
-
# key: "
|
3143
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3142
|
+
# key: "objectkey1",
|
3144
3143
|
# },
|
3145
3144
|
# {
|
3146
|
-
# key: "
|
3147
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3145
|
+
# key: "objectkey2",
|
3148
3146
|
# },
|
3149
3147
|
# ],
|
3150
3148
|
# quiet: false,
|
@@ -3155,30 +3153,34 @@ module Aws::S3
|
|
3155
3153
|
# {
|
3156
3154
|
# deleted: [
|
3157
3155
|
# {
|
3158
|
-
#
|
3159
|
-
#
|
3156
|
+
# delete_marker: true,
|
3157
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
3158
|
+
# key: "objectkey1",
|
3160
3159
|
# },
|
3161
3160
|
# {
|
3162
|
-
#
|
3163
|
-
#
|
3161
|
+
# delete_marker: true,
|
3162
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
3163
|
+
# key: "objectkey2",
|
3164
3164
|
# },
|
3165
3165
|
# ],
|
3166
3166
|
# }
|
3167
3167
|
#
|
3168
|
-
# @example Example: To delete multiple
|
3168
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
3169
3169
|
#
|
3170
|
-
# # The following example deletes objects from a bucket. The
|
3171
|
-
# #
|
3170
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
3171
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
3172
3172
|
#
|
3173
3173
|
# resp = client.delete_objects({
|
3174
3174
|
# bucket: "examplebucket",
|
3175
3175
|
# delete: {
|
3176
3176
|
# objects: [
|
3177
3177
|
# {
|
3178
|
-
# key: "
|
3178
|
+
# key: "HappyFace.jpg",
|
3179
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3179
3180
|
# },
|
3180
3181
|
# {
|
3181
|
-
# key: "
|
3182
|
+
# key: "HappyFace.jpg",
|
3183
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3182
3184
|
# },
|
3183
3185
|
# ],
|
3184
3186
|
# quiet: false,
|
@@ -3189,14 +3191,12 @@ module Aws::S3
|
|
3189
3191
|
# {
|
3190
3192
|
# deleted: [
|
3191
3193
|
# {
|
3192
|
-
#
|
3193
|
-
#
|
3194
|
-
# key: "objectkey1",
|
3194
|
+
# key: "HappyFace.jpg",
|
3195
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3195
3196
|
# },
|
3196
3197
|
# {
|
3197
|
-
#
|
3198
|
-
#
|
3199
|
-
# key: "objectkey2",
|
3198
|
+
# key: "HappyFace.jpg",
|
3199
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3200
3200
|
# },
|
3201
3201
|
# ],
|
3202
3202
|
# }
|
@@ -3807,7 +3807,7 @@ module Aws::S3
|
|
3807
3807
|
# resp.inventory_configuration.id #=> String
|
3808
3808
|
# resp.inventory_configuration.included_object_versions #=> String, one of "All", "Current"
|
3809
3809
|
# resp.inventory_configuration.optional_fields #=> Array
|
3810
|
-
# resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
|
3810
|
+
# resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier", "BucketKeyStatus"
|
3811
3811
|
# resp.inventory_configuration.schedule.frequency #=> String, one of "Daily", "Weekly"
|
3812
3812
|
#
|
3813
3813
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration AWS API Documentation
|
@@ -6872,7 +6872,7 @@ module Aws::S3
|
|
6872
6872
|
# resp.inventory_configuration_list[0].id #=> String
|
6873
6873
|
# resp.inventory_configuration_list[0].included_object_versions #=> String, one of "All", "Current"
|
6874
6874
|
# resp.inventory_configuration_list[0].optional_fields #=> Array
|
6875
|
-
# resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
|
6875
|
+
# resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier", "BucketKeyStatus"
|
6876
6876
|
# resp.inventory_configuration_list[0].schedule.frequency #=> String, one of "Daily", "Weekly"
|
6877
6877
|
# resp.is_truncated #=> Boolean
|
6878
6878
|
# resp.next_continuation_token #=> String
|
@@ -9069,7 +9069,7 @@ module Aws::S3
|
|
9069
9069
|
# },
|
9070
9070
|
# id: "InventoryId", # required
|
9071
9071
|
# included_object_versions: "All", # required, accepts All, Current
|
9072
|
-
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
|
9072
|
+
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
|
9073
9073
|
# schedule: { # required
|
9074
9074
|
# frequency: "Daily", # required, accepts Daily, Weekly
|
9075
9075
|
# },
|
@@ -10315,11 +10315,12 @@ module Aws::S3
|
|
10315
10315
|
# values. For example, you can tag several resources with a specific
|
10316
10316
|
# application name, and then organize your billing information to see
|
10317
10317
|
# the total cost of that application across several services. For more
|
10318
|
-
# information, see [Cost Allocation and Tagging][1]
|
10318
|
+
# information, see [Cost Allocation and Tagging][1] and [Using Cost
|
10319
|
+
# Allocation in Amazon S3 Bucket Tags][2].
|
10319
10320
|
#
|
10320
|
-
# <note markdown="1">
|
10321
|
-
#
|
10322
|
-
#
|
10321
|
+
# <note markdown="1"> When this operation sets the tags for a bucket, it will overwrite any
|
10322
|
+
# current tags the bucket already has. You cannot use this operation to
|
10323
|
+
# add tags to an existing list of tags.
|
10323
10324
|
#
|
10324
10325
|
# </note>
|
10325
10326
|
#
|
@@ -11047,6 +11048,7 @@ module Aws::S3
|
|
11047
11048
|
#
|
11048
11049
|
# @option params [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
|
11049
11050
|
# The date and time when you want this object's Object Lock to expire.
|
11051
|
+
# Must be formatted as a timestamp parameter.
|
11050
11052
|
#
|
11051
11053
|
# @option params [String] :object_lock_legal_hold_status
|
11052
11054
|
# Specifies whether a legal hold will be applied to this object. For
|
@@ -11075,6 +11077,23 @@ module Aws::S3
|
|
11075
11077
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
11076
11078
|
#
|
11077
11079
|
#
|
11080
|
+
# @example Example: To upload an object
|
11081
|
+
#
|
11082
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
11083
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
11084
|
+
#
|
11085
|
+
# resp = client.put_object({
|
11086
|
+
# body: "HappyFace.jpg",
|
11087
|
+
# bucket: "examplebucket",
|
11088
|
+
# key: "HappyFace.jpg",
|
11089
|
+
# })
|
11090
|
+
#
|
11091
|
+
# resp.to_h outputs the following:
|
11092
|
+
# {
|
11093
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11094
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
11095
|
+
# }
|
11096
|
+
#
|
11078
11097
|
# @example Example: To upload object and specify user-defined metadata
|
11079
11098
|
#
|
11080
11099
|
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
@@ -11116,21 +11135,20 @@ module Aws::S3
|
|
11116
11135
|
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
11117
11136
|
# }
|
11118
11137
|
#
|
11119
|
-
# @example Example: To
|
11138
|
+
# @example Example: To create an object.
|
11120
11139
|
#
|
11121
|
-
# # The following example
|
11122
|
-
# # syntax. S3 returns VersionId of the newly created object.
|
11140
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
11123
11141
|
#
|
11124
11142
|
# resp = client.put_object({
|
11125
|
-
# body: "
|
11143
|
+
# body: "filetoupload",
|
11126
11144
|
# bucket: "examplebucket",
|
11127
|
-
# key: "
|
11145
|
+
# key: "objectkey",
|
11128
11146
|
# })
|
11129
11147
|
#
|
11130
11148
|
# resp.to_h outputs the following:
|
11131
11149
|
# {
|
11132
11150
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11133
|
-
# version_id: "
|
11151
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
11134
11152
|
# }
|
11135
11153
|
#
|
11136
11154
|
# @example Example: To upload an object and specify server-side encryption and object tags
|
@@ -11171,22 +11189,6 @@ module Aws::S3
|
|
11171
11189
|
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
11172
11190
|
# }
|
11173
11191
|
#
|
11174
|
-
# @example Example: To create an object.
|
11175
|
-
#
|
11176
|
-
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
11177
|
-
#
|
11178
|
-
# resp = client.put_object({
|
11179
|
-
# body: "filetoupload",
|
11180
|
-
# bucket: "examplebucket",
|
11181
|
-
# key: "objectkey",
|
11182
|
-
# })
|
11183
|
-
#
|
11184
|
-
# resp.to_h outputs the following:
|
11185
|
-
# {
|
11186
|
-
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
11187
|
-
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
11188
|
-
# }
|
11189
|
-
#
|
11190
11192
|
# @example Example: To upload an object and specify canned ACL.
|
11191
11193
|
#
|
11192
11194
|
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
@@ -13917,7 +13919,7 @@ module Aws::S3
|
|
13917
13919
|
params: params,
|
13918
13920
|
config: config)
|
13919
13921
|
context[:gem_name] = 'aws-sdk-s3'
|
13920
|
-
context[:gem_version] = '1.
|
13922
|
+
context[:gem_version] = '1.97.0'
|
13921
13923
|
Seahorse::Client::Request.new(handlers, context)
|
13922
13924
|
end
|
13923
13925
|
|
@@ -165,8 +165,8 @@ module Aws
|
|
165
165
|
# to initialize the cipher, and the decrypter truncates the
|
166
166
|
# auth tag from the body when writing the final bytes.
|
167
167
|
def authenticated_decrypter(context, cipher, envelope)
|
168
|
-
if RUBY_VERSION.match(
|
169
|
-
|
168
|
+
if RUBY_VERSION.match(/^1.9/)
|
169
|
+
msg = 'authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9'
|
170
170
|
raise Aws::Errors::NonSupportedRubyVersionError, msg
|
171
171
|
end
|
172
172
|
http_resp = context.http_response
|
@@ -166,8 +166,8 @@ module Aws
|
|
166
166
|
# to initialize the cipher, and the decrypter truncates the
|
167
167
|
# auth tag from the body when writing the final bytes.
|
168
168
|
def authenticated_decrypter(context, cipher, envelope)
|
169
|
-
if RUBY_VERSION.match(
|
170
|
-
|
169
|
+
if RUBY_VERSION.match(/^1.9/)
|
170
|
+
msg = 'authenticated decryption not supported by OpenSSL in Ruby version ~> 1.9'
|
171
171
|
raise Aws::Errors::NonSupportedRubyVersionError, msg
|
172
172
|
end
|
173
173
|
http_resp = context.http_response
|
@@ -9,7 +9,7 @@ module Aws
|
|
9
9
|
class EncryptHandler < Seahorse::Client::Handler
|
10
10
|
|
11
11
|
def call(context)
|
12
|
-
if RUBY_VERSION.match(
|
12
|
+
if RUBY_VERSION.match(/^1.9/)
|
13
13
|
raise "authenticated encryption not supported by OpenSSL in Ruby version ~> 1.9"
|
14
14
|
raise Aws::Errors::NonSupportedRubyVersionError, msg
|
15
15
|
end
|
@@ -94,7 +94,12 @@ module Aws
|
|
94
94
|
if @chunk_size && @chunk_size > file_size
|
95
95
|
raise ArgumentError, ":chunk_size shouldn't exceed total file size."
|
96
96
|
else
|
97
|
-
@chunk_size || [
|
97
|
+
chunk_size = @chunk_size || [
|
98
|
+
(file_size.to_f / MAX_PARTS).ceil,
|
99
|
+
MIN_CHUNK_SIZE
|
100
|
+
].max.to_i
|
101
|
+
chunk_size -= 1 if file_size % chunk_size == 1
|
102
|
+
chunk_size
|
98
103
|
end
|
99
104
|
end
|
100
105
|
|
data/lib/aws-sdk-s3/object.rb
CHANGED
@@ -1308,6 +1308,7 @@ module Aws::S3
|
|
1308
1308
|
# The Object Lock mode that you want to apply to this object.
|
1309
1309
|
# @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
|
1310
1310
|
# The date and time when you want this object's Object Lock to expire.
|
1311
|
+
# Must be formatted as a timestamp parameter.
|
1311
1312
|
# @option options [String] :object_lock_legal_hold_status
|
1312
1313
|
# Specifies whether a legal hold will be applied to this object. For
|
1313
1314
|
# more information about S3 Object Lock, see [Object Lock][1].
|
@@ -1051,6 +1051,7 @@ module Aws::S3
|
|
1051
1051
|
# The Object Lock mode that you want to apply to this object.
|
1052
1052
|
# @option options [Time,DateTime,Date,Integer,String] :object_lock_retain_until_date
|
1053
1053
|
# The date and time when you want this object's Object Lock to expire.
|
1054
|
+
# Must be formatted as a timestamp parameter.
|
1054
1055
|
# @option options [String] :object_lock_legal_hold_status
|
1055
1056
|
# Specifies whether a legal hold will be applied to this object. For
|
1056
1057
|
# more information about S3 Object Lock, see [Object Lock][1].
|
@@ -11,7 +11,7 @@ module Aws
|
|
11
11
|
@handler.call(context).on(200) do |response|
|
12
12
|
response.data = S3::Types::GetBucketLocationOutput.new
|
13
13
|
xml = context.http_response.body_contents
|
14
|
-
matches = xml.match(
|
14
|
+
matches = xml.match(/<LocationConstraint.*?>(.+?)<\/LocationConstraint>/)
|
15
15
|
response.data[:location_constraint] = matches ? matches[1] : ''
|
16
16
|
end
|
17
17
|
end
|
data/lib/aws-sdk-s3/types.rb
CHANGED
@@ -6927,7 +6927,7 @@ module Aws::S3
|
|
6927
6927
|
# },
|
6928
6928
|
# id: "InventoryId", # required
|
6929
6929
|
# included_object_versions: "All", # required, accepts All, Current
|
6930
|
-
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
|
6930
|
+
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
|
6931
6931
|
# schedule: { # required
|
6932
6932
|
# frequency: "Daily", # required, accepts Daily, Weekly
|
6933
6933
|
# },
|
@@ -10470,7 +10470,7 @@ module Aws::S3
|
|
10470
10470
|
# },
|
10471
10471
|
# id: "InventoryId", # required
|
10472
10472
|
# included_object_versions: "All", # required, accepts All, Current
|
10473
|
-
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
|
10473
|
+
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier, BucketKeyStatus
|
10474
10474
|
# schedule: { # required
|
10475
10475
|
# frequency: "Daily", # required, accepts Daily, Weekly
|
10476
10476
|
# },
|
@@ -12153,7 +12153,7 @@ module Aws::S3
|
|
12153
12153
|
#
|
12154
12154
|
# @!attribute [rw] object_lock_retain_until_date
|
12155
12155
|
# The date and time when you want this object's Object Lock to
|
12156
|
-
# expire.
|
12156
|
+
# expire. Must be formatted as a timestamp parameter.
|
12157
12157
|
# @return [Time]
|
12158
12158
|
#
|
12159
12159
|
# @!attribute [rw] object_lock_legal_hold_status
|
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.97.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-
|
11
|
+
date: 2021-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '3'
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 3.
|
50
|
+
version: 3.118.0
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '3'
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 3.
|
60
|
+
version: 3.118.0
|
61
61
|
description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
|
62
62
|
This gem is part of the AWS SDK for Ruby.
|
63
63
|
email:
|