aws-sdk-s3 1.106.0 → 1.107.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b88adac8854f4eeb8210735da5ea5087e651c640f9a92e25ed6c4f96ad6ef459
4
- data.tar.gz: 64ebe11f97661fb709c52724b4ef3aced1e6fc9b1341c4afd2e00d668b888dea
3
+ metadata.gz: b0da8168f90cc70eda9fe0f02ef04fbb8a587e3dbc294be21419a2072f42439e
4
+ data.tar.gz: c4d4533077cdb7e8fceaffc8d807a16cf2c4e467463d202abbffd97d2f33494e
5
5
  SHA512:
6
- metadata.gz: 776794c0a09c05871bf4bd3ccc6370cb46b9cbace5213acf09e4598509460bb585b8a55263fdc37191b82bba3eb4707b092ef82258e2a59313e527f22a1860f7
7
- data.tar.gz: 53a6b5652862a2f053ca06733c7eccd0ea83144ee5f92776eaa6ea4a9002ab3f69b392d7f98ffc3f1991846d3799cf0f099157d5d0fe4fa71a7e444aaa696511
6
+ metadata.gz: 8eb77a4914fafb1ebf9334f3c66f60d85516517a22c7346f5dbe1a5db0592f046aeebe9765d7f9c45df6651876f5503e430b7896c2134204de3745c27f9179c5
7
+ data.tar.gz: 8628d97dad0761cf4482ce75f31ebb0dfbc7531749afcae2d2f13584155fd26113f274b0f440dd00fd58aed12011abcef7dc71d7d6a45929432f6a40a64d52ab
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.107.0 (2021-11-23)
5
+ ------------------
6
+
7
+ * Feature - Introduce two new Filters to S3 Lifecycle configurations - ObjectSizeGreaterThan and ObjectSizeLessThan. Introduce a new way to trigger actions on noncurrent versions by providing the number of newer noncurrent versions along with noncurrent days.
8
+
4
9
  1.106.0 (2021-11-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.106.0
1
+ 1.107.0
@@ -214,9 +214,11 @@ module Aws::S3
214
214
  # noncurrent_version_transition: {
215
215
  # noncurrent_days: 1,
216
216
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
217
+ # newer_noncurrent_versions: 1,
217
218
  # },
218
219
  # noncurrent_version_expiration: {
219
220
  # noncurrent_days: 1,
221
+ # newer_noncurrent_versions: 1,
220
222
  # },
221
223
  # abort_incomplete_multipart_upload: {
222
224
  # days_after_initiation: 1,
@@ -210,6 +210,8 @@ module Aws::S3
210
210
  # key: "ObjectKey", # required
211
211
  # value: "Value", # required
212
212
  # },
213
+ # object_size_greater_than: 1,
214
+ # object_size_less_than: 1,
213
215
  # and: {
214
216
  # prefix: "Prefix",
215
217
  # tags: [
@@ -218,6 +220,8 @@ module Aws::S3
218
220
  # value: "Value", # required
219
221
  # },
220
222
  # ],
223
+ # object_size_greater_than: 1,
224
+ # object_size_less_than: 1,
221
225
  # },
222
226
  # },
223
227
  # status: "Enabled", # required, accepts Enabled, Disabled
@@ -232,10 +236,12 @@ module Aws::S3
232
236
  # {
233
237
  # noncurrent_days: 1,
234
238
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
239
+ # newer_noncurrent_versions: 1,
235
240
  # },
236
241
  # ],
237
242
  # noncurrent_version_expiration: {
238
243
  # noncurrent_days: 1,
244
+ # newer_noncurrent_versions: 1,
239
245
  # },
240
246
  # abort_incomplete_multipart_upload: {
241
247
  # days_after_initiation: 1,
@@ -571,6 +571,11 @@ module Aws::S3
571
571
  # prepared to retry the failed requests. For more information, see
572
572
  # [Amazon S3 Error Best Practices][2].
573
573
  #
574
+ # You cannot use `Content-Type: application/x-www-form-urlencoded` with
575
+ # Complete Multipart Upload requests. Also, if you do not provide a
576
+ # `Content-Type` header, `CompleteMultipartUpload` returns a 200 OK
577
+ # response.
578
+ #
574
579
  # For more information about multipart uploads, see [Uploading Objects
575
580
  # Using Multipart Upload][3].
576
581
  #
@@ -1470,33 +1475,33 @@ module Aws::S3
1470
1475
  # * {Types::CreateBucketOutput#location #location} => String
1471
1476
  #
1472
1477
  #
1473
- # @example Example: To create a bucket
1478
+ # @example Example: To create a bucket in a specific region
1474
1479
  #
1475
- # # The following example creates a bucket.
1480
+ # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1476
1481
  #
1477
1482
  # resp = client.create_bucket({
1478
1483
  # bucket: "examplebucket",
1484
+ # create_bucket_configuration: {
1485
+ # location_constraint: "eu-west-1",
1486
+ # },
1479
1487
  # })
1480
1488
  #
1481
1489
  # resp.to_h outputs the following:
1482
1490
  # {
1483
- # location: "/examplebucket",
1491
+ # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1484
1492
  # }
1485
1493
  #
1486
- # @example Example: To create a bucket in a specific region
1494
+ # @example Example: To create a bucket
1487
1495
  #
1488
- # # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
1496
+ # # The following example creates a bucket.
1489
1497
  #
1490
1498
  # resp = client.create_bucket({
1491
1499
  # bucket: "examplebucket",
1492
- # create_bucket_configuration: {
1493
- # location_constraint: "eu-west-1",
1494
- # },
1495
1500
  # })
1496
1501
  #
1497
1502
  # resp.to_h outputs the following:
1498
1503
  # {
1499
- # location: "http://examplebucket.<Region>.s3.amazonaws.com/",
1504
+ # location: "/examplebucket",
1500
1505
  # }
1501
1506
  #
1502
1507
  # @example Request syntax with placeholder values
@@ -3019,35 +3024,35 @@ module Aws::S3
3019
3024
  # * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
3020
3025
  #
3021
3026
  #
3022
- # @example Example: To remove tag set from an object version
3027
+ # @example Example: To remove tag set from an object
3023
3028
  #
3024
- # # The following example removes tag set associated with the specified object version. The request specifies both the
3025
- # # object key and object version.
3029
+ # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3030
+ # # operation removes tag set from the latest object version.
3026
3031
  #
3027
3032
  # resp = client.delete_object_tagging({
3028
3033
  # bucket: "examplebucket",
3029
3034
  # key: "HappyFace.jpg",
3030
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3031
3035
  # })
3032
3036
  #
3033
3037
  # resp.to_h outputs the following:
3034
3038
  # {
3035
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3039
+ # version_id: "null",
3036
3040
  # }
3037
3041
  #
3038
- # @example Example: To remove tag set from an object
3042
+ # @example Example: To remove tag set from an object version
3039
3043
  #
3040
- # # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
3041
- # # operation removes tag set from the latest object version.
3044
+ # # The following example removes tag set associated with the specified object version. The request specifies both the
3045
+ # # object key and object version.
3042
3046
  #
3043
3047
  # resp = client.delete_object_tagging({
3044
3048
  # bucket: "examplebucket",
3045
3049
  # key: "HappyFace.jpg",
3050
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3046
3051
  # })
3047
3052
  #
3048
3053
  # resp.to_h outputs the following:
3049
3054
  # {
3050
- # version_id: "null",
3055
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
3051
3056
  # }
3052
3057
  #
3053
3058
  # @example Request syntax with placeholder values
@@ -3979,7 +3984,9 @@ module Aws::S3
3979
3984
  # resp.rules[0].transition.storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
3980
3985
  # resp.rules[0].noncurrent_version_transition.noncurrent_days #=> Integer
3981
3986
  # resp.rules[0].noncurrent_version_transition.storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
3987
+ # resp.rules[0].noncurrent_version_transition.newer_noncurrent_versions #=> Integer
3982
3988
  # resp.rules[0].noncurrent_version_expiration.noncurrent_days #=> Integer
3989
+ # resp.rules[0].noncurrent_version_expiration.newer_noncurrent_versions #=> Integer
3983
3990
  # resp.rules[0].abort_incomplete_multipart_upload.days_after_initiation #=> Integer
3984
3991
  #
3985
3992
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycle AWS API Documentation
@@ -4097,10 +4104,14 @@ module Aws::S3
4097
4104
  # resp.rules[0].filter.prefix #=> String
4098
4105
  # resp.rules[0].filter.tag.key #=> String
4099
4106
  # resp.rules[0].filter.tag.value #=> String
4107
+ # resp.rules[0].filter.object_size_greater_than #=> Integer
4108
+ # resp.rules[0].filter.object_size_less_than #=> Integer
4100
4109
  # resp.rules[0].filter.and.prefix #=> String
4101
4110
  # resp.rules[0].filter.and.tags #=> Array
4102
4111
  # resp.rules[0].filter.and.tags[0].key #=> String
4103
4112
  # resp.rules[0].filter.and.tags[0].value #=> String
4113
+ # resp.rules[0].filter.and.object_size_greater_than #=> Integer
4114
+ # resp.rules[0].filter.and.object_size_less_than #=> Integer
4104
4115
  # resp.rules[0].status #=> String, one of "Enabled", "Disabled"
4105
4116
  # resp.rules[0].transitions #=> Array
4106
4117
  # resp.rules[0].transitions[0].date #=> Time
@@ -4109,7 +4120,9 @@ module Aws::S3
4109
4120
  # resp.rules[0].noncurrent_version_transitions #=> Array
4110
4121
  # resp.rules[0].noncurrent_version_transitions[0].noncurrent_days #=> Integer
4111
4122
  # resp.rules[0].noncurrent_version_transitions[0].storage_class #=> String, one of "GLACIER", "STANDARD_IA", "ONEZONE_IA", "INTELLIGENT_TIERING", "DEEP_ARCHIVE"
4123
+ # resp.rules[0].noncurrent_version_transitions[0].newer_noncurrent_versions #=> Integer
4112
4124
  # resp.rules[0].noncurrent_version_expiration.noncurrent_days #=> Integer
4125
+ # resp.rules[0].noncurrent_version_expiration.newer_noncurrent_versions #=> Integer
4113
4126
  # resp.rules[0].abort_incomplete_multipart_upload.days_after_initiation #=> Integer
4114
4127
  #
4115
4128
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfiguration AWS API Documentation
@@ -5213,8 +5226,10 @@ module Aws::S3
5213
5226
  # By default, the GET action returns the current version of an object.
5214
5227
  # To return a different version, use the `versionId` subresource.
5215
5228
  #
5216
- # <note markdown="1"> * You need the `s3:GetObjectVersion` permission to access a specific
5217
- # version of an object.
5229
+ # <note markdown="1"> * If you supply a `versionId`, you need the `s3:GetObjectVersion`
5230
+ # permission to access a specific version of an object. If you request
5231
+ # a specific version, you do not need to have the `s3:GetObject`
5232
+ # permission.
5218
5233
  #
5219
5234
  # * If the current version of the object is a delete marker, Amazon S3
5220
5235
  # behaves as if the object was deleted and includes
@@ -6043,49 +6058,49 @@ module Aws::S3
6043
6058
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array&lt;Types::Tag&gt;
6044
6059
  #
6045
6060
  #
6046
- # @example Example: To retrieve tag set of a specific object version
6061
+ # @example Example: To retrieve tag set of an object
6047
6062
  #
6048
- # # The following example retrieves tag set of an object. The request specifies object version.
6063
+ # # The following example retrieves tag set of an object.
6049
6064
  #
6050
6065
  # resp = client.get_object_tagging({
6051
6066
  # bucket: "examplebucket",
6052
- # key: "exampleobject",
6053
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6067
+ # key: "HappyFace.jpg",
6054
6068
  # })
6055
6069
  #
6056
6070
  # resp.to_h outputs the following:
6057
6071
  # {
6058
6072
  # tag_set: [
6059
6073
  # {
6060
- # key: "Key1",
6061
- # value: "Value1",
6074
+ # key: "Key4",
6075
+ # value: "Value4",
6076
+ # },
6077
+ # {
6078
+ # key: "Key3",
6079
+ # value: "Value3",
6062
6080
  # },
6063
6081
  # ],
6064
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6082
+ # version_id: "null",
6065
6083
  # }
6066
6084
  #
6067
- # @example Example: To retrieve tag set of an object
6085
+ # @example Example: To retrieve tag set of a specific object version
6068
6086
  #
6069
- # # The following example retrieves tag set of an object.
6087
+ # # The following example retrieves tag set of an object. The request specifies object version.
6070
6088
  #
6071
6089
  # resp = client.get_object_tagging({
6072
6090
  # bucket: "examplebucket",
6073
- # key: "HappyFace.jpg",
6091
+ # key: "exampleobject",
6092
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6074
6093
  # })
6075
6094
  #
6076
6095
  # resp.to_h outputs the following:
6077
6096
  # {
6078
6097
  # tag_set: [
6079
6098
  # {
6080
- # key: "Key4",
6081
- # value: "Value4",
6082
- # },
6083
- # {
6084
- # key: "Key3",
6085
- # value: "Value3",
6099
+ # key: "Key1",
6100
+ # value: "Value1",
6086
6101
  # },
6087
6102
  # ],
6088
- # version_id: "null",
6103
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6089
6104
  # }
6090
6105
  #
6091
6106
  # @example Request syntax with placeholder values
@@ -9287,9 +9302,11 @@ module Aws::S3
9287
9302
  # noncurrent_version_transition: {
9288
9303
  # noncurrent_days: 1,
9289
9304
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
9305
+ # newer_noncurrent_versions: 1,
9290
9306
  # },
9291
9307
  # noncurrent_version_expiration: {
9292
9308
  # noncurrent_days: 1,
9309
+ # newer_noncurrent_versions: 1,
9293
9310
  # },
9294
9311
  # abort_incomplete_multipart_upload: {
9295
9312
  # days_after_initiation: 1,
@@ -9451,6 +9468,8 @@ module Aws::S3
9451
9468
  # key: "ObjectKey", # required
9452
9469
  # value: "Value", # required
9453
9470
  # },
9471
+ # object_size_greater_than: 1,
9472
+ # object_size_less_than: 1,
9454
9473
  # and: {
9455
9474
  # prefix: "Prefix",
9456
9475
  # tags: [
@@ -9459,6 +9478,8 @@ module Aws::S3
9459
9478
  # value: "Value", # required
9460
9479
  # },
9461
9480
  # ],
9481
+ # object_size_greater_than: 1,
9482
+ # object_size_less_than: 1,
9462
9483
  # },
9463
9484
  # },
9464
9485
  # status: "Enabled", # required, accepts Enabled, Disabled
@@ -9473,10 +9494,12 @@ module Aws::S3
9473
9494
  # {
9474
9495
  # noncurrent_days: 1,
9475
9496
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
9497
+ # newer_noncurrent_versions: 1,
9476
9498
  # },
9477
9499
  # ],
9478
9500
  # noncurrent_version_expiration: {
9479
9501
  # noncurrent_days: 1,
9502
+ # newer_noncurrent_versions: 1,
9480
9503
  # },
9481
9504
  # abort_incomplete_multipart_upload: {
9482
9505
  # days_after_initiation: 1,
@@ -11197,60 +11220,63 @@ module Aws::S3
11197
11220
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
11198
11221
  #
11199
11222
  #
11200
- # @example Example: To upload an object and specify optional tags
11223
+ # @example Example: To upload an object and specify server-side encryption and object tags
11201
11224
  #
11202
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
11203
- # # S3 returns version ID of the newly created object.
11225
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11226
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11204
11227
  #
11205
11228
  # resp = client.put_object({
11206
- # body: "c:\\HappyFace.jpg",
11229
+ # body: "filetoupload",
11207
11230
  # bucket: "examplebucket",
11208
- # key: "HappyFace.jpg",
11231
+ # key: "exampleobject",
11232
+ # server_side_encryption: "AES256",
11209
11233
  # tagging: "key1=value1&key2=value2",
11210
11234
  # })
11211
11235
  #
11212
11236
  # resp.to_h outputs the following:
11213
11237
  # {
11214
11238
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11215
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11239
+ # server_side_encryption: "AES256",
11240
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11216
11241
  # }
11217
11242
  #
11218
- # @example Example: To upload an object and specify canned ACL.
11243
+ # @example Example: To upload an object and specify optional tags
11219
11244
  #
11220
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11221
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11245
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
11246
+ # # S3 returns version ID of the newly created object.
11222
11247
  #
11223
11248
  # resp = client.put_object({
11224
- # acl: "authenticated-read",
11225
- # body: "filetoupload",
11249
+ # body: "c:\\HappyFace.jpg",
11226
11250
  # bucket: "examplebucket",
11227
- # key: "exampleobject",
11251
+ # key: "HappyFace.jpg",
11252
+ # tagging: "key1=value1&key2=value2",
11228
11253
  # })
11229
11254
  #
11230
11255
  # resp.to_h outputs the following:
11231
11256
  # {
11232
11257
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11233
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11258
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11234
11259
  # }
11235
11260
  #
11236
- # @example Example: To upload an object and specify server-side encryption and object tags
11261
+ # @example Example: To upload object and specify user-defined metadata
11237
11262
  #
11238
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11239
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11263
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11264
+ # # enabled, S3 returns version ID in response.
11240
11265
  #
11241
11266
  # resp = client.put_object({
11242
11267
  # body: "filetoupload",
11243
11268
  # bucket: "examplebucket",
11244
11269
  # key: "exampleobject",
11245
- # server_side_encryption: "AES256",
11246
- # tagging: "key1=value1&key2=value2",
11270
+ # metadata: {
11271
+ # "metadata1" => "value1",
11272
+ # "metadata2" => "value2",
11273
+ # },
11247
11274
  # })
11248
11275
  #
11249
11276
  # resp.to_h outputs the following:
11250
11277
  # {
11251
11278
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11252
- # server_side_encryption: "AES256",
11253
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11279
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11254
11280
  # }
11255
11281
  #
11256
11282
  # @example Example: To create an object.
@@ -11269,21 +11295,22 @@ module Aws::S3
11269
11295
  # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11270
11296
  # }
11271
11297
  #
11272
- # @example Example: To upload an object
11298
+ # @example Example: To upload an object and specify canned ACL.
11273
11299
  #
11274
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11275
- # # syntax. S3 returns VersionId of the newly created object.
11300
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11301
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11276
11302
  #
11277
11303
  # resp = client.put_object({
11278
- # body: "HappyFace.jpg",
11304
+ # acl: "authenticated-read",
11305
+ # body: "filetoupload",
11279
11306
  # bucket: "examplebucket",
11280
- # key: "HappyFace.jpg",
11307
+ # key: "exampleobject",
11281
11308
  # })
11282
11309
  #
11283
11310
  # resp.to_h outputs the following:
11284
11311
  # {
11285
11312
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11286
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11313
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11287
11314
  # }
11288
11315
  #
11289
11316
  # @example Example: To upload an object (specify optional headers)
@@ -11306,25 +11333,21 @@ module Aws::S3
11306
11333
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
11307
11334
  # }
11308
11335
  #
11309
- # @example Example: To upload object and specify user-defined metadata
11336
+ # @example Example: To upload an object
11310
11337
  #
11311
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11312
- # # enabled, S3 returns version ID in response.
11338
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11339
+ # # syntax. S3 returns VersionId of the newly created object.
11313
11340
  #
11314
11341
  # resp = client.put_object({
11315
- # body: "filetoupload",
11342
+ # body: "HappyFace.jpg",
11316
11343
  # bucket: "examplebucket",
11317
- # key: "exampleobject",
11318
- # metadata: {
11319
- # "metadata1" => "value1",
11320
- # "metadata2" => "value2",
11321
- # },
11344
+ # key: "HappyFace.jpg",
11322
11345
  # })
11323
11346
  #
11324
11347
  # resp.to_h outputs the following:
11325
11348
  # {
11326
11349
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11327
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11350
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11328
11351
  # }
11329
11352
  #
11330
11353
  # @example Streaming a file from disk
@@ -14066,7 +14089,7 @@ module Aws::S3
14066
14089
  params: params,
14067
14090
  config: config)
14068
14091
  context[:gem_name] = 'aws-sdk-s3'
14069
- context[:gem_version] = '1.106.0'
14092
+ context[:gem_version] = '1.107.0'
14070
14093
  Seahorse::Client::Request.new(handlers, context)
14071
14094
  end
14072
14095
 
@@ -386,6 +386,8 @@ module Aws::S3
386
386
  ObjectLockToken = Shapes::StringShape.new(name: 'ObjectLockToken')
387
387
  ObjectNotInActiveTierError = Shapes::StructureShape.new(name: 'ObjectNotInActiveTierError')
388
388
  ObjectOwnership = Shapes::StringShape.new(name: 'ObjectOwnership')
389
+ ObjectSizeGreaterThanBytes = Shapes::IntegerShape.new(name: 'ObjectSizeGreaterThanBytes')
390
+ ObjectSizeLessThanBytes = Shapes::IntegerShape.new(name: 'ObjectSizeLessThanBytes')
389
391
  ObjectStorageClass = Shapes::StringShape.new(name: 'ObjectStorageClass')
390
392
  ObjectVersion = Shapes::StructureShape.new(name: 'ObjectVersion')
391
393
  ObjectVersionId = Shapes::StringShape.new(name: 'ObjectVersionId')
@@ -561,6 +563,7 @@ module Aws::S3
561
563
  UploadPartRequest = Shapes::StructureShape.new(name: 'UploadPartRequest')
562
564
  UserMetadata = Shapes::ListShape.new(name: 'UserMetadata')
563
565
  Value = Shapes::StringShape.new(name: 'Value')
566
+ VersionCount = Shapes::IntegerShape.new(name: 'VersionCount')
564
567
  VersionIdMarker = Shapes::StringShape.new(name: 'VersionIdMarker')
565
568
  VersioningConfiguration = Shapes::StructureShape.new(name: 'VersioningConfiguration')
566
569
  WebsiteConfiguration = Shapes::StructureShape.new(name: 'WebsiteConfiguration')
@@ -1491,10 +1494,14 @@ module Aws::S3
1491
1494
 
1492
1495
  LifecycleRuleAndOperator.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "Prefix"))
1493
1496
  LifecycleRuleAndOperator.add_member(:tags, Shapes::ShapeRef.new(shape: TagSet, location_name: "Tag", metadata: {"flattened"=>true}))
1497
+ LifecycleRuleAndOperator.add_member(:object_size_greater_than, Shapes::ShapeRef.new(shape: ObjectSizeGreaterThanBytes, location_name: "ObjectSizeGreaterThan"))
1498
+ LifecycleRuleAndOperator.add_member(:object_size_less_than, Shapes::ShapeRef.new(shape: ObjectSizeLessThanBytes, location_name: "ObjectSizeLessThan"))
1494
1499
  LifecycleRuleAndOperator.struct_class = Types::LifecycleRuleAndOperator
1495
1500
 
1496
1501
  LifecycleRuleFilter.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, location_name: "Prefix"))
1497
1502
  LifecycleRuleFilter.add_member(:tag, Shapes::ShapeRef.new(shape: Tag, location_name: "Tag"))
1503
+ LifecycleRuleFilter.add_member(:object_size_greater_than, Shapes::ShapeRef.new(shape: ObjectSizeGreaterThanBytes, location_name: "ObjectSizeGreaterThan"))
1504
+ LifecycleRuleFilter.add_member(:object_size_less_than, Shapes::ShapeRef.new(shape: ObjectSizeLessThanBytes, location_name: "ObjectSizeLessThan"))
1498
1505
  LifecycleRuleFilter.add_member(:and, Shapes::ShapeRef.new(shape: LifecycleRuleAndOperator, location_name: "And"))
1499
1506
  LifecycleRuleFilter.struct_class = Types::LifecycleRuleFilter
1500
1507
 
@@ -1719,10 +1726,12 @@ module Aws::S3
1719
1726
  NoSuchUpload.struct_class = Types::NoSuchUpload
1720
1727
 
1721
1728
  NoncurrentVersionExpiration.add_member(:noncurrent_days, Shapes::ShapeRef.new(shape: Days, location_name: "NoncurrentDays"))
1729
+ NoncurrentVersionExpiration.add_member(:newer_noncurrent_versions, Shapes::ShapeRef.new(shape: VersionCount, location_name: "NewerNoncurrentVersions"))
1722
1730
  NoncurrentVersionExpiration.struct_class = Types::NoncurrentVersionExpiration
1723
1731
 
1724
1732
  NoncurrentVersionTransition.add_member(:noncurrent_days, Shapes::ShapeRef.new(shape: Days, location_name: "NoncurrentDays"))
1725
1733
  NoncurrentVersionTransition.add_member(:storage_class, Shapes::ShapeRef.new(shape: TransitionStorageClass, location_name: "StorageClass"))
1734
+ NoncurrentVersionTransition.add_member(:newer_noncurrent_versions, Shapes::ShapeRef.new(shape: VersionCount, location_name: "NewerNoncurrentVersions"))
1726
1735
  NoncurrentVersionTransition.struct_class = Types::NoncurrentVersionTransition
1727
1736
 
1728
1737
  NoncurrentVersionTransitionList.member = Shapes::ShapeRef.new(shape: NoncurrentVersionTransition)
@@ -517,6 +517,8 @@ module Aws::S3
517
517
  # key: "ObjectKey", # required
518
518
  # value: "Value", # required
519
519
  # },
520
+ # object_size_greater_than: 1,
521
+ # object_size_less_than: 1,
520
522
  # and: {
521
523
  # prefix: "Prefix",
522
524
  # tags: [
@@ -525,6 +527,8 @@ module Aws::S3
525
527
  # value: "Value", # required
526
528
  # },
527
529
  # ],
530
+ # object_size_greater_than: 1,
531
+ # object_size_less_than: 1,
528
532
  # },
529
533
  # },
530
534
  # status: "Enabled", # required, accepts Enabled, Disabled
@@ -539,10 +543,12 @@ module Aws::S3
539
543
  # {
540
544
  # noncurrent_days: 1,
541
545
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
546
+ # newer_noncurrent_versions: 1,
542
547
  # },
543
548
  # ],
544
549
  # noncurrent_version_expiration: {
545
550
  # noncurrent_days: 1,
551
+ # newer_noncurrent_versions: 1,
546
552
  # },
547
553
  # abort_incomplete_multipart_upload: {
548
554
  # days_after_initiation: 1,
@@ -1113,6 +1119,9 @@ module Aws::S3
1113
1119
  #
1114
1120
  # @!attribute [rw] parts
1115
1121
  # Array of CompletedPart data types.
1122
+ #
1123
+ # If you do not supply a valid `Part` with your request, the service
1124
+ # sends back an HTTP 400 response.
1116
1125
  # @return [Array<Types::CompletedPart>]
1117
1126
  #
1118
1127
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CompletedMultipartUpload AWS API Documentation
@@ -7325,9 +7334,11 @@ module Aws::S3
7325
7334
  # noncurrent_version_transition: {
7326
7335
  # noncurrent_days: 1,
7327
7336
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7337
+ # newer_noncurrent_versions: 1,
7328
7338
  # },
7329
7339
  # noncurrent_version_expiration: {
7330
7340
  # noncurrent_days: 1,
7341
+ # newer_noncurrent_versions: 1,
7331
7342
  # },
7332
7343
  # abort_incomplete_multipart_upload: {
7333
7344
  # days_after_initiation: 1,
@@ -7405,6 +7416,8 @@ module Aws::S3
7405
7416
  # key: "ObjectKey", # required
7406
7417
  # value: "Value", # required
7407
7418
  # },
7419
+ # object_size_greater_than: 1,
7420
+ # object_size_less_than: 1,
7408
7421
  # and: {
7409
7422
  # prefix: "Prefix",
7410
7423
  # tags: [
@@ -7413,6 +7426,8 @@ module Aws::S3
7413
7426
  # value: "Value", # required
7414
7427
  # },
7415
7428
  # ],
7429
+ # object_size_greater_than: 1,
7430
+ # object_size_less_than: 1,
7416
7431
  # },
7417
7432
  # },
7418
7433
  # status: "Enabled", # required, accepts Enabled, Disabled
@@ -7427,10 +7442,12 @@ module Aws::S3
7427
7442
  # {
7428
7443
  # noncurrent_days: 1,
7429
7444
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
7445
+ # newer_noncurrent_versions: 1,
7430
7446
  # },
7431
7447
  # ],
7432
7448
  # noncurrent_version_expiration: {
7433
7449
  # noncurrent_days: 1,
7450
+ # newer_noncurrent_versions: 1,
7434
7451
  # },
7435
7452
  # abort_incomplete_multipart_upload: {
7436
7453
  # days_after_initiation: 1,
@@ -7538,6 +7555,8 @@ module Aws::S3
7538
7555
  # value: "Value", # required
7539
7556
  # },
7540
7557
  # ],
7558
+ # object_size_greater_than: 1,
7559
+ # object_size_less_than: 1,
7541
7560
  # }
7542
7561
  #
7543
7562
  # @!attribute [rw] prefix
@@ -7549,11 +7568,21 @@ module Aws::S3
7549
7568
  # the rule to apply.
7550
7569
  # @return [Array<Types::Tag>]
7551
7570
  #
7571
+ # @!attribute [rw] object_size_greater_than
7572
+ # Minimum object size to which the rule applies.
7573
+ # @return [Integer]
7574
+ #
7575
+ # @!attribute [rw] object_size_less_than
7576
+ # Maximum object size to which the rule applies.
7577
+ # @return [Integer]
7578
+ #
7552
7579
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleRuleAndOperator AWS API Documentation
7553
7580
  #
7554
7581
  class LifecycleRuleAndOperator < Struct.new(
7555
7582
  :prefix,
7556
- :tags)
7583
+ :tags,
7584
+ :object_size_greater_than,
7585
+ :object_size_less_than)
7557
7586
  SENSITIVE = []
7558
7587
  include Aws::Structure
7559
7588
  end
@@ -7571,6 +7600,8 @@ module Aws::S3
7571
7600
  # key: "ObjectKey", # required
7572
7601
  # value: "Value", # required
7573
7602
  # },
7603
+ # object_size_greater_than: 1,
7604
+ # object_size_less_than: 1,
7574
7605
  # and: {
7575
7606
  # prefix: "Prefix",
7576
7607
  # tags: [
@@ -7579,6 +7610,8 @@ module Aws::S3
7579
7610
  # value: "Value", # required
7580
7611
  # },
7581
7612
  # ],
7613
+ # object_size_greater_than: 1,
7614
+ # object_size_less_than: 1,
7582
7615
  # },
7583
7616
  # }
7584
7617
  #
@@ -7599,6 +7632,14 @@ module Aws::S3
7599
7632
  # to apply.
7600
7633
  # @return [Types::Tag]
7601
7634
  #
7635
+ # @!attribute [rw] object_size_greater_than
7636
+ # Minimum object size to which the rule applies.
7637
+ # @return [Integer]
7638
+ #
7639
+ # @!attribute [rw] object_size_less_than
7640
+ # Maximum object size to which the rule applies.
7641
+ # @return [Integer]
7642
+ #
7602
7643
  # @!attribute [rw] and
7603
7644
  # This is used in a Lifecycle Rule Filter to apply a logical AND to
7604
7645
  # two or more predicates. The Lifecycle Rule will apply to any object
@@ -7610,6 +7651,8 @@ module Aws::S3
7610
7651
  class LifecycleRuleFilter < Struct.new(
7611
7652
  :prefix,
7612
7653
  :tag,
7654
+ :object_size_greater_than,
7655
+ :object_size_less_than,
7613
7656
  :and)
7614
7657
  SENSITIVE = []
7615
7658
  include Aws::Structure
@@ -9261,6 +9304,7 @@ module Aws::S3
9261
9304
  #
9262
9305
  # {
9263
9306
  # noncurrent_days: 1,
9307
+ # newer_noncurrent_versions: 1,
9264
9308
  # }
9265
9309
  #
9266
9310
  # @!attribute [rw] noncurrent_days
@@ -9274,10 +9318,23 @@ module Aws::S3
9274
9318
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations
9275
9319
  # @return [Integer]
9276
9320
  #
9321
+ # @!attribute [rw] newer_noncurrent_versions
9322
+ # Specifies how many noncurrent versions Amazon S3 will retain. If
9323
+ # there are this many more recent noncurrent versions, Amazon S3 will
9324
+ # take the associated action. For more information about noncurrent
9325
+ # versions, see [Lifecycle configuration elements][1] in the *Amazon
9326
+ # S3 User Guide*.
9327
+ #
9328
+ #
9329
+ #
9330
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html
9331
+ # @return [Integer]
9332
+ #
9277
9333
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionExpiration AWS API Documentation
9278
9334
  #
9279
9335
  class NoncurrentVersionExpiration < Struct.new(
9280
- :noncurrent_days)
9336
+ :noncurrent_days,
9337
+ :newer_noncurrent_versions)
9281
9338
  SENSITIVE = []
9282
9339
  include Aws::Structure
9283
9340
  end
@@ -9297,6 +9354,7 @@ module Aws::S3
9297
9354
  # {
9298
9355
  # noncurrent_days: 1,
9299
9356
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
9357
+ # newer_noncurrent_versions: 1,
9300
9358
  # }
9301
9359
  #
9302
9360
  # @!attribute [rw] noncurrent_days
@@ -9314,11 +9372,24 @@ module Aws::S3
9314
9372
  # The class of storage used to store the object.
9315
9373
  # @return [String]
9316
9374
  #
9375
+ # @!attribute [rw] newer_noncurrent_versions
9376
+ # Specifies how many noncurrent versions Amazon S3 will retain. If
9377
+ # there are this many more recent noncurrent versions, Amazon S3 will
9378
+ # take the associated action. For more information about noncurrent
9379
+ # versions, see [Lifecycle configuration elements][1] in the *Amazon
9380
+ # S3 User Guide*.
9381
+ #
9382
+ #
9383
+ #
9384
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html
9385
+ # @return [Integer]
9386
+ #
9317
9387
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionTransition AWS API Documentation
9318
9388
  #
9319
9389
  class NoncurrentVersionTransition < Struct.new(
9320
9390
  :noncurrent_days,
9321
- :storage_class)
9391
+ :storage_class,
9392
+ :newer_noncurrent_versions)
9322
9393
  SENSITIVE = []
9323
9394
  include Aws::Structure
9324
9395
  end
@@ -10599,6 +10670,8 @@ module Aws::S3
10599
10670
  # key: "ObjectKey", # required
10600
10671
  # value: "Value", # required
10601
10672
  # },
10673
+ # object_size_greater_than: 1,
10674
+ # object_size_less_than: 1,
10602
10675
  # and: {
10603
10676
  # prefix: "Prefix",
10604
10677
  # tags: [
@@ -10607,6 +10680,8 @@ module Aws::S3
10607
10680
  # value: "Value", # required
10608
10681
  # },
10609
10682
  # ],
10683
+ # object_size_greater_than: 1,
10684
+ # object_size_less_than: 1,
10610
10685
  # },
10611
10686
  # },
10612
10687
  # status: "Enabled", # required, accepts Enabled, Disabled
@@ -10621,10 +10696,12 @@ module Aws::S3
10621
10696
  # {
10622
10697
  # noncurrent_days: 1,
10623
10698
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10699
+ # newer_noncurrent_versions: 1,
10624
10700
  # },
10625
10701
  # ],
10626
10702
  # noncurrent_version_expiration: {
10627
10703
  # noncurrent_days: 1,
10704
+ # newer_noncurrent_versions: 1,
10628
10705
  # },
10629
10706
  # abort_incomplete_multipart_upload: {
10630
10707
  # days_after_initiation: 1,
@@ -10684,9 +10761,11 @@ module Aws::S3
10684
10761
  # noncurrent_version_transition: {
10685
10762
  # noncurrent_days: 1,
10686
10763
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
10764
+ # newer_noncurrent_versions: 1,
10687
10765
  # },
10688
10766
  # noncurrent_version_expiration: {
10689
10767
  # noncurrent_days: 1,
10768
+ # newer_noncurrent_versions: 1,
10690
10769
  # },
10691
10770
  # abort_incomplete_multipart_upload: {
10692
10771
  # days_after_initiation: 1,
@@ -13700,9 +13779,11 @@ module Aws::S3
13700
13779
  # noncurrent_version_transition: {
13701
13780
  # noncurrent_days: 1,
13702
13781
  # storage_class: "GLACIER", # accepts GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
13782
+ # newer_noncurrent_versions: 1,
13703
13783
  # },
13704
13784
  # noncurrent_version_expiration: {
13705
13785
  # noncurrent_days: 1,
13786
+ # newer_noncurrent_versions: 1,
13706
13787
  # },
13707
13788
  # abort_incomplete_multipart_upload: {
13708
13789
  # days_after_initiation: 1,
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.106.0'
72
+ GEM_VERSION = '1.107.0'
73
73
 
74
74
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.106.0
4
+ version: 1.107.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-17 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms