aws-sdk-s3 1.171.0 → 1.174.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -128,6 +128,19 @@ module Aws::S3
128
128
  # denied).
129
129
  # @return [String]
130
130
  #
131
+ # @!attribute [rw] if_match_initiated_time
132
+ # If present, this header aborts an in progress multipart upload only
133
+ # if it was initiated on the provided timestamp. If the initiated
134
+ # timestamp of the multipart upload does not match the provided value,
135
+ # the operation returns a `412 Precondition Failed` error. If the
136
+ # initiated timestamp matches or if the multipart upload doesn’t
137
+ # exist, the operation returns a `204 Success (No Content)` response.
138
+ #
139
+ # <note markdown="1"> This functionality is only supported for directory buckets.
140
+ #
141
+ # </note>
142
+ # @return [Time]
143
+ #
131
144
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/AbortMultipartUploadRequest AWS API Documentation
132
145
  #
133
146
  class AbortMultipartUploadRequest < Struct.new(
@@ -135,7 +148,8 @@ module Aws::S3
135
148
  :key,
136
149
  :upload_id,
137
150
  :request_payer,
138
- :expected_bucket_owner)
151
+ :expected_bucket_owner,
152
+ :if_match_initiated_time)
139
153
  SENSITIVE = []
140
154
  include Aws::Structure
141
155
  end
@@ -1054,6 +1068,28 @@ module Aws::S3
1054
1068
  # denied).
1055
1069
  # @return [String]
1056
1070
  #
1071
+ # @!attribute [rw] if_match
1072
+ # Uploads the object only if the ETag (entity tag) value provided
1073
+ # during the WRITE operation matches the ETag of the object in S3. If
1074
+ # the ETag values do not match, the operation returns a `412
1075
+ # Precondition Failed` error.
1076
+ #
1077
+ # If a conflicting operation occurs during the upload S3 returns a
1078
+ # `409 ConditionalRequestConflict` response. On a 409 failure you
1079
+ # should fetch the object's ETag, re-initiate the multipart upload
1080
+ # with `CreateMultipartUpload`, and re-upload each part.
1081
+ #
1082
+ # Expects the ETag value as a string.
1083
+ #
1084
+ # For more information about conditional requests, see [RFC 7232][1],
1085
+ # or [Conditional requests][2] in the *Amazon S3 User Guide*.
1086
+ #
1087
+ #
1088
+ #
1089
+ # [1]: https://tools.ietf.org/html/rfc7232
1090
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
1091
+ # @return [String]
1092
+ #
1057
1093
  # @!attribute [rw] if_none_match
1058
1094
  # Uploads the object only if the object key name does not already
1059
1095
  # exist in the bucket specified. Otherwise, Amazon S3 returns a `412
@@ -1134,6 +1170,7 @@ module Aws::S3
1134
1170
  :checksum_sha256,
1135
1171
  :request_payer,
1136
1172
  :expected_bucket_owner,
1173
+ :if_match,
1137
1174
  :if_none_match,
1138
1175
  :sse_customer_algorithm,
1139
1176
  :sse_customer_key,
@@ -3782,6 +3819,11 @@ module Aws::S3
3782
3819
  # you provide does not match the actual owner of the bucket, the
3783
3820
  # request fails with the HTTP status code `403 Forbidden` (access
3784
3821
  # denied).
3822
+ #
3823
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
3824
+ # supported for directory bucket lifecycle configurations.
3825
+ #
3826
+ # </note>
3785
3827
  # @return [String]
3786
3828
  #
3787
3829
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteBucketLifecycleRequest AWS API Documentation
@@ -4199,6 +4241,52 @@ module Aws::S3
4199
4241
  # denied).
4200
4242
  # @return [String]
4201
4243
  #
4244
+ # @!attribute [rw] if_match
4245
+ # The `If-Match` header field makes the request method conditional on
4246
+ # ETags. If the ETag value does not match, the operation returns a
4247
+ # `412 Precondition Failed` error. If the ETag matches or if the
4248
+ # object doesn't exist, the operation will return a `204 Success (No
4249
+ # Content) response`.
4250
+ #
4251
+ # For more information about conditional requests, see [RFC 7232][1].
4252
+ #
4253
+ # <note markdown="1"> This functionality is only supported for directory buckets.
4254
+ #
4255
+ # </note>
4256
+ #
4257
+ #
4258
+ #
4259
+ # [1]: https://docs.aws.amazon.com/https:/tools.ietf.org/html/rfc7232
4260
+ # @return [String]
4261
+ #
4262
+ # @!attribute [rw] if_match_last_modified_time
4263
+ # If present, the object is deleted only if its modification times
4264
+ # matches the provided `Timestamp`. If the `Timestamp` values do not
4265
+ # match, the operation returns a `412 Precondition Failed` error. If
4266
+ # the `Timestamp` matches or if the object doesn’t exist, the
4267
+ # operation returns a `204 Success (No Content)` response.
4268
+ #
4269
+ # <note markdown="1"> This functionality is only supported for directory buckets.
4270
+ #
4271
+ # </note>
4272
+ # @return [Time]
4273
+ #
4274
+ # @!attribute [rw] if_match_size
4275
+ # If present, the object is deleted only if its size matches the
4276
+ # provided size in bytes. If the `Size` value does not match, the
4277
+ # operation returns a `412 Precondition Failed` error. If the `Size`
4278
+ # matches or if the object doesn’t exist, the operation returns a `204
4279
+ # Success (No Content)` response.
4280
+ #
4281
+ # <note markdown="1"> This functionality is only supported for directory buckets.
4282
+ #
4283
+ # </note>
4284
+ #
4285
+ # You can use the `If-Match`, `x-amz-if-match-last-modified-time` and
4286
+ # `x-amz-if-match-size` conditional headers in conjunction with
4287
+ # each-other or individually.
4288
+ # @return [Integer]
4289
+ #
4202
4290
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/DeleteObjectRequest AWS API Documentation
4203
4291
  #
4204
4292
  class DeleteObjectRequest < Struct.new(
@@ -4208,7 +4296,10 @@ module Aws::S3
4208
4296
  :version_id,
4209
4297
  :request_payer,
4210
4298
  :bypass_governance_retention,
4211
- :expected_bucket_owner)
4299
+ :expected_bucket_owner,
4300
+ :if_match,
4301
+ :if_match_last_modified_time,
4302
+ :if_match_size)
4212
4303
  SENSITIVE = []
4213
4304
  include Aws::Structure
4214
4305
  end
@@ -4684,6 +4775,14 @@ module Aws::S3
4684
4775
  include Aws::Structure
4685
4776
  end
4686
4777
 
4778
+ # The existing object was created with a different encryption type.
4779
+ # Subsequent write requests must include the appropriate encryption
4780
+ # parameters in the request or while creating the session.
4781
+ #
4782
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/EncryptionTypeMismatch AWS API Documentation
4783
+ #
4784
+ class EncryptionTypeMismatch < Aws::EmptyStructure; end
4785
+
4687
4786
  # A message that indicates the request is complete and no more messages
4688
4787
  # will be sent. You should not assume that the request is complete until
4689
4788
  # the client receives an `EndEvent`.
@@ -4723,7 +4822,6 @@ module Aws::S3
4723
4822
  # * *HTTP Status Code:* 403 Forbidden
4724
4823
  #
4725
4824
  # * *SOAP Fault Code Prefix:* Client
4726
- #
4727
4825
  # * * *Code:* AccountProblem
4728
4826
  #
4729
4827
  # * *Description:* There is a problem with your Amazon Web Services
@@ -4733,7 +4831,6 @@ module Aws::S3
4733
4831
  # * *HTTP Status Code:* 403 Forbidden
4734
4832
  #
4735
4833
  # * *SOAP Fault Code Prefix:* Client
4736
- #
4737
4834
  # * * *Code:* AllAccessDisabled
4738
4835
  #
4739
4836
  # * *Description:* All access to this Amazon S3 resource has been
@@ -4743,7 +4840,6 @@ module Aws::S3
4743
4840
  # * *HTTP Status Code:* 403 Forbidden
4744
4841
  #
4745
4842
  # * *SOAP Fault Code Prefix:* Client
4746
- #
4747
4843
  # * * *Code:* AmbiguousGrantByEmailAddress
4748
4844
  #
4749
4845
  # * *Description:* The email address you provided is associated with
@@ -4752,7 +4848,6 @@ module Aws::S3
4752
4848
  # * *HTTP Status Code:* 400 Bad Request
4753
4849
  #
4754
4850
  # * *SOAP Fault Code Prefix:* Client
4755
- #
4756
4851
  # * * *Code:* AuthorizationHeaderMalformed
4757
4852
  #
4758
4853
  # * *Description:* The authorization header you provided is invalid.
@@ -4760,7 +4855,6 @@ module Aws::S3
4760
4855
  # * *HTTP Status Code:* 400 Bad Request
4761
4856
  #
4762
4857
  # * *HTTP Status Code:* N/A
4763
- #
4764
4858
  # * * *Code:* BadDigest
4765
4859
  #
4766
4860
  # * *Description:* The Content-MD5 you specified did not match what
@@ -4769,7 +4863,6 @@ module Aws::S3
4769
4863
  # * *HTTP Status Code:* 400 Bad Request
4770
4864
  #
4771
4865
  # * *SOAP Fault Code Prefix:* Client
4772
- #
4773
4866
  # * * *Code:* BucketAlreadyExists
4774
4867
  #
4775
4868
  # * *Description:* The requested bucket name is not available. The
@@ -4779,7 +4872,6 @@ module Aws::S3
4779
4872
  # * *HTTP Status Code:* 409 Conflict
4780
4873
  #
4781
4874
  # * *SOAP Fault Code Prefix:* Client
4782
- #
4783
4875
  # * * *Code:* BucketAlreadyOwnedByYou
4784
4876
  #
4785
4877
  # * *Description:* The bucket you tried to create already exists,
@@ -4793,7 +4885,6 @@ module Aws::S3
4793
4885
  # Region)
4794
4886
  #
4795
4887
  # * *SOAP Fault Code Prefix:* Client
4796
- #
4797
4888
  # * * *Code:* BucketNotEmpty
4798
4889
  #
4799
4890
  # * *Description:* The bucket you tried to delete is not empty.
@@ -4801,7 +4892,6 @@ module Aws::S3
4801
4892
  # * *HTTP Status Code:* 409 Conflict
4802
4893
  #
4803
4894
  # * *SOAP Fault Code Prefix:* Client
4804
- #
4805
4895
  # * * *Code:* CredentialsNotSupported
4806
4896
  #
4807
4897
  # * *Description:* This request does not support credentials.
@@ -4809,7 +4899,6 @@ module Aws::S3
4809
4899
  # * *HTTP Status Code:* 400 Bad Request
4810
4900
  #
4811
4901
  # * *SOAP Fault Code Prefix:* Client
4812
- #
4813
4902
  # * * *Code:* CrossLocationLoggingProhibited
4814
4903
  #
4815
4904
  # * *Description:* Cross-location logging not allowed. Buckets in
@@ -4819,7 +4908,6 @@ module Aws::S3
4819
4908
  # * *HTTP Status Code:* 403 Forbidden
4820
4909
  #
4821
4910
  # * *SOAP Fault Code Prefix:* Client
4822
- #
4823
4911
  # * * *Code:* EntityTooSmall
4824
4912
  #
4825
4913
  # * *Description:* Your proposed upload is smaller than the minimum
@@ -4828,7 +4916,6 @@ module Aws::S3
4828
4916
  # * *HTTP Status Code:* 400 Bad Request
4829
4917
  #
4830
4918
  # * *SOAP Fault Code Prefix:* Client
4831
- #
4832
4919
  # * * *Code:* EntityTooLarge
4833
4920
  #
4834
4921
  # * *Description:* Your proposed upload exceeds the maximum allowed
@@ -4837,7 +4924,6 @@ module Aws::S3
4837
4924
  # * *HTTP Status Code:* 400 Bad Request
4838
4925
  #
4839
4926
  # * *SOAP Fault Code Prefix:* Client
4840
- #
4841
4927
  # * * *Code:* ExpiredToken
4842
4928
  #
4843
4929
  # * *Description:* The provided token has expired.
@@ -4845,7 +4931,6 @@ module Aws::S3
4845
4931
  # * *HTTP Status Code:* 400 Bad Request
4846
4932
  #
4847
4933
  # * *SOAP Fault Code Prefix:* Client
4848
- #
4849
4934
  # * * *Code:* IllegalVersioningConfigurationException
4850
4935
  #
4851
4936
  # * *Description:* Indicates that the versioning configuration
@@ -4854,7 +4939,6 @@ module Aws::S3
4854
4939
  # * *HTTP Status Code:* 400 Bad Request
4855
4940
  #
4856
4941
  # * *SOAP Fault Code Prefix:* Client
4857
- #
4858
4942
  # * * *Code:* IncompleteBody
4859
4943
  #
4860
4944
  # * *Description:* You did not provide the number of bytes specified
@@ -4863,7 +4947,6 @@ module Aws::S3
4863
4947
  # * *HTTP Status Code:* 400 Bad Request
4864
4948
  #
4865
4949
  # * *SOAP Fault Code Prefix:* Client
4866
- #
4867
4950
  # * * *Code:* IncorrectNumberOfFilesInPostRequest
4868
4951
  #
4869
4952
  # * *Description:* POST requires exactly one file upload per
@@ -4872,7 +4955,6 @@ module Aws::S3
4872
4955
  # * *HTTP Status Code:* 400 Bad Request
4873
4956
  #
4874
4957
  # * *SOAP Fault Code Prefix:* Client
4875
- #
4876
4958
  # * * *Code:* InlineDataTooLarge
4877
4959
  #
4878
4960
  # * *Description:* Inline data exceeds the maximum allowed size.
@@ -4880,7 +4962,6 @@ module Aws::S3
4880
4962
  # * *HTTP Status Code:* 400 Bad Request
4881
4963
  #
4882
4964
  # * *SOAP Fault Code Prefix:* Client
4883
- #
4884
4965
  # * * *Code:* InternalError
4885
4966
  #
4886
4967
  # * *Description:* We encountered an internal error. Please try
@@ -4889,7 +4970,6 @@ module Aws::S3
4889
4970
  # * *HTTP Status Code:* 500 Internal Server Error
4890
4971
  #
4891
4972
  # * *SOAP Fault Code Prefix:* Server
4892
- #
4893
4973
  # * * *Code:* InvalidAccessKeyId
4894
4974
  #
4895
4975
  # * *Description:* The Amazon Web Services access key ID you
@@ -4898,7 +4978,6 @@ module Aws::S3
4898
4978
  # * *HTTP Status Code:* 403 Forbidden
4899
4979
  #
4900
4980
  # * *SOAP Fault Code Prefix:* Client
4901
- #
4902
4981
  # * * *Code:* InvalidAddressingHeader
4903
4982
  #
4904
4983
  # * *Description:* You must specify the Anonymous role.
@@ -4906,7 +4985,6 @@ module Aws::S3
4906
4985
  # * *HTTP Status Code:* N/A
4907
4986
  #
4908
4987
  # * *SOAP Fault Code Prefix:* Client
4909
- #
4910
4988
  # * * *Code:* InvalidArgument
4911
4989
  #
4912
4990
  # * *Description:* Invalid Argument
@@ -4914,7 +4992,6 @@ module Aws::S3
4914
4992
  # * *HTTP Status Code:* 400 Bad Request
4915
4993
  #
4916
4994
  # * *SOAP Fault Code Prefix:* Client
4917
- #
4918
4995
  # * * *Code:* InvalidBucketName
4919
4996
  #
4920
4997
  # * *Description:* The specified bucket is not valid.
@@ -4922,7 +4999,6 @@ module Aws::S3
4922
4999
  # * *HTTP Status Code:* 400 Bad Request
4923
5000
  #
4924
5001
  # * *SOAP Fault Code Prefix:* Client
4925
- #
4926
5002
  # * * *Code:* InvalidBucketState
4927
5003
  #
4928
5004
  # * *Description:* The request is not valid with the current state
@@ -4931,7 +5007,6 @@ module Aws::S3
4931
5007
  # * *HTTP Status Code:* 409 Conflict
4932
5008
  #
4933
5009
  # * *SOAP Fault Code Prefix:* Client
4934
- #
4935
5010
  # * * *Code:* InvalidDigest
4936
5011
  #
4937
5012
  # * *Description:* The Content-MD5 you specified is not valid.
@@ -4939,7 +5014,6 @@ module Aws::S3
4939
5014
  # * *HTTP Status Code:* 400 Bad Request
4940
5015
  #
4941
5016
  # * *SOAP Fault Code Prefix:* Client
4942
- #
4943
5017
  # * * *Code:* InvalidEncryptionAlgorithmError
4944
5018
  #
4945
5019
  # * *Description:* The encryption request you specified is not
@@ -4948,7 +5022,6 @@ module Aws::S3
4948
5022
  # * *HTTP Status Code:* 400 Bad Request
4949
5023
  #
4950
5024
  # * *SOAP Fault Code Prefix:* Client
4951
- #
4952
5025
  # * * *Code:* InvalidLocationConstraint
4953
5026
  #
4954
5027
  # * *Description:* The specified location constraint is not valid.
@@ -4958,7 +5031,6 @@ module Aws::S3
4958
5031
  # * *HTTP Status Code:* 400 Bad Request
4959
5032
  #
4960
5033
  # * *SOAP Fault Code Prefix:* Client
4961
- #
4962
5034
  # * * *Code:* InvalidObjectState
4963
5035
  #
4964
5036
  # * *Description:* The action is not valid for the current state of
@@ -4967,7 +5039,6 @@ module Aws::S3
4967
5039
  # * *HTTP Status Code:* 403 Forbidden
4968
5040
  #
4969
5041
  # * *SOAP Fault Code Prefix:* Client
4970
- #
4971
5042
  # * * *Code:* InvalidPart
4972
5043
  #
4973
5044
  # * *Description:* One or more of the specified parts could not be
@@ -4977,7 +5048,6 @@ module Aws::S3
4977
5048
  # * *HTTP Status Code:* 400 Bad Request
4978
5049
  #
4979
5050
  # * *SOAP Fault Code Prefix:* Client
4980
- #
4981
5051
  # * * *Code:* InvalidPartOrder
4982
5052
  #
4983
5053
  # * *Description:* The list of parts was not in ascending order.
@@ -4986,7 +5056,6 @@ module Aws::S3
4986
5056
  # * *HTTP Status Code:* 400 Bad Request
4987
5057
  #
4988
5058
  # * *SOAP Fault Code Prefix:* Client
4989
- #
4990
5059
  # * * *Code:* InvalidPayer
4991
5060
  #
4992
5061
  # * *Description:* All access to this object has been disabled.
@@ -4996,7 +5065,6 @@ module Aws::S3
4996
5065
  # * *HTTP Status Code:* 403 Forbidden
4997
5066
  #
4998
5067
  # * *SOAP Fault Code Prefix:* Client
4999
- #
5000
5068
  # * * *Code:* InvalidPolicyDocument
5001
5069
  #
5002
5070
  # * *Description:* The content of the form does not meet the
@@ -5005,7 +5073,6 @@ module Aws::S3
5005
5073
  # * *HTTP Status Code:* 400 Bad Request
5006
5074
  #
5007
5075
  # * *SOAP Fault Code Prefix:* Client
5008
- #
5009
5076
  # * * *Code:* InvalidRange
5010
5077
  #
5011
5078
  # * *Description:* The requested range cannot be satisfied.
@@ -5013,7 +5080,6 @@ module Aws::S3
5013
5080
  # * *HTTP Status Code:* 416 Requested Range Not Satisfiable
5014
5081
  #
5015
5082
  # * *SOAP Fault Code Prefix:* Client
5016
- #
5017
5083
  # * * *Code:* InvalidRequest
5018
5084
  #
5019
5085
  # * *Description:* Please use `AWS4-HMAC-SHA256`.
@@ -5021,7 +5087,6 @@ module Aws::S3
5021
5087
  # * *HTTP Status Code:* 400 Bad Request
5022
5088
  #
5023
5089
  # * *Code:* N/A
5024
- #
5025
5090
  # * * *Code:* InvalidRequest
5026
5091
  #
5027
5092
  # * *Description:* SOAP requests must be made over an HTTPS
@@ -5030,7 +5095,6 @@ module Aws::S3
5030
5095
  # * *HTTP Status Code:* 400 Bad Request
5031
5096
  #
5032
5097
  # * *SOAP Fault Code Prefix:* Client
5033
- #
5034
5098
  # * * *Code:* InvalidRequest
5035
5099
  #
5036
5100
  # * *Description:* Amazon S3 Transfer Acceleration is not supported
@@ -5039,7 +5103,6 @@ module Aws::S3
5039
5103
  # * *HTTP Status Code:* 400 Bad Request
5040
5104
  #
5041
5105
  # * *Code:* N/A
5042
- #
5043
5106
  # * * *Code:* InvalidRequest
5044
5107
  #
5045
5108
  # * *Description:* Amazon S3 Transfer Acceleration is not supported
@@ -5048,7 +5111,6 @@ module Aws::S3
5048
5111
  # * *HTTP Status Code:* 400 Bad Request
5049
5112
  #
5050
5113
  # * *Code:* N/A
5051
- #
5052
5114
  # * * *Code:* InvalidRequest
5053
5115
  #
5054
5116
  # * *Description:* Amazon S3 Transfer Accelerate endpoint only
@@ -5057,7 +5119,6 @@ module Aws::S3
5057
5119
  # * *HTTP Status Code:* 400 Bad Request
5058
5120
  #
5059
5121
  # * *Code:* N/A
5060
- #
5061
5122
  # * * *Code:* InvalidRequest
5062
5123
  #
5063
5124
  # * *Description:* Amazon S3 Transfer Accelerate is not configured
@@ -5066,7 +5127,6 @@ module Aws::S3
5066
5127
  # * *HTTP Status Code:* 400 Bad Request
5067
5128
  #
5068
5129
  # * *Code:* N/A
5069
- #
5070
5130
  # * * *Code:* InvalidRequest
5071
5131
  #
5072
5132
  # * *Description:* Amazon S3 Transfer Accelerate is disabled on this
@@ -5075,7 +5135,6 @@ module Aws::S3
5075
5135
  # * *HTTP Status Code:* 400 Bad Request
5076
5136
  #
5077
5137
  # * *Code:* N/A
5078
- #
5079
5138
  # * * *Code:* InvalidRequest
5080
5139
  #
5081
5140
  # * *Description:* Amazon S3 Transfer Acceleration is not supported
@@ -5085,7 +5144,6 @@ module Aws::S3
5085
5144
  # * *HTTP Status Code:* 400 Bad Request
5086
5145
  #
5087
5146
  # * *Code:* N/A
5088
- #
5089
5147
  # * * *Code:* InvalidRequest
5090
5148
  #
5091
5149
  # * *Description:* Amazon S3 Transfer Acceleration cannot be enabled
@@ -5095,7 +5153,6 @@ module Aws::S3
5095
5153
  # * *HTTP Status Code:* 400 Bad Request
5096
5154
  #
5097
5155
  # * *Code:* N/A
5098
- #
5099
5156
  # * * *Code:* InvalidSecurity
5100
5157
  #
5101
5158
  # * *Description:* The provided security credentials are not valid.
@@ -5103,7 +5160,6 @@ module Aws::S3
5103
5160
  # * *HTTP Status Code:* 403 Forbidden
5104
5161
  #
5105
5162
  # * *SOAP Fault Code Prefix:* Client
5106
- #
5107
5163
  # * * *Code:* InvalidSOAPRequest
5108
5164
  #
5109
5165
  # * *Description:* The SOAP request body is invalid.
@@ -5111,7 +5167,6 @@ module Aws::S3
5111
5167
  # * *HTTP Status Code:* 400 Bad Request
5112
5168
  #
5113
5169
  # * *SOAP Fault Code Prefix:* Client
5114
- #
5115
5170
  # * * *Code:* InvalidStorageClass
5116
5171
  #
5117
5172
  # * *Description:* The storage class you specified is not valid.
@@ -5119,7 +5174,6 @@ module Aws::S3
5119
5174
  # * *HTTP Status Code:* 400 Bad Request
5120
5175
  #
5121
5176
  # * *SOAP Fault Code Prefix:* Client
5122
- #
5123
5177
  # * * *Code:* InvalidTargetBucketForLogging
5124
5178
  #
5125
5179
  # * *Description:* The target bucket for logging does not exist, is
@@ -5129,7 +5183,6 @@ module Aws::S3
5129
5183
  # * *HTTP Status Code:* 400 Bad Request
5130
5184
  #
5131
5185
  # * *SOAP Fault Code Prefix:* Client
5132
- #
5133
5186
  # * * *Code:* InvalidToken
5134
5187
  #
5135
5188
  # * *Description:* The provided token is malformed or otherwise
@@ -5138,7 +5191,6 @@ module Aws::S3
5138
5191
  # * *HTTP Status Code:* 400 Bad Request
5139
5192
  #
5140
5193
  # * *SOAP Fault Code Prefix:* Client
5141
- #
5142
5194
  # * * *Code:* InvalidURI
5143
5195
  #
5144
5196
  # * *Description:* Couldn't parse the specified URI.
@@ -5146,7 +5198,6 @@ module Aws::S3
5146
5198
  # * *HTTP Status Code:* 400 Bad Request
5147
5199
  #
5148
5200
  # * *SOAP Fault Code Prefix:* Client
5149
- #
5150
5201
  # * * *Code:* KeyTooLongError
5151
5202
  #
5152
5203
  # * *Description:* Your key is too long.
@@ -5154,7 +5205,6 @@ module Aws::S3
5154
5205
  # * *HTTP Status Code:* 400 Bad Request
5155
5206
  #
5156
5207
  # * *SOAP Fault Code Prefix:* Client
5157
- #
5158
5208
  # * * *Code:* MalformedACLError
5159
5209
  #
5160
5210
  # * *Description:* The XML you provided was not well-formed or did
@@ -5163,7 +5213,6 @@ module Aws::S3
5163
5213
  # * *HTTP Status Code:* 400 Bad Request
5164
5214
  #
5165
5215
  # * *SOAP Fault Code Prefix:* Client
5166
- #
5167
5216
  # * * *Code:* MalformedPOSTRequest
5168
5217
  #
5169
5218
  # * *Description:* The body of your POST request is not well-formed
@@ -5172,7 +5221,6 @@ module Aws::S3
5172
5221
  # * *HTTP Status Code:* 400 Bad Request
5173
5222
  #
5174
5223
  # * *SOAP Fault Code Prefix:* Client
5175
- #
5176
5224
  # * * *Code:* MalformedXML
5177
5225
  #
5178
5226
  # * *Description:* This happens when the user sends malformed XML
@@ -5184,7 +5232,6 @@ module Aws::S3
5184
5232
  # * *HTTP Status Code:* 400 Bad Request
5185
5233
  #
5186
5234
  # * *SOAP Fault Code Prefix:* Client
5187
- #
5188
5235
  # * * *Code:* MaxMessageLengthExceeded
5189
5236
  #
5190
5237
  # * *Description:* Your request was too big.
@@ -5192,7 +5239,6 @@ module Aws::S3
5192
5239
  # * *HTTP Status Code:* 400 Bad Request
5193
5240
  #
5194
5241
  # * *SOAP Fault Code Prefix:* Client
5195
- #
5196
5242
  # * * *Code:* MaxPostPreDataLengthExceededError
5197
5243
  #
5198
5244
  # * *Description:* Your POST request fields preceding the upload
@@ -5201,7 +5247,6 @@ module Aws::S3
5201
5247
  # * *HTTP Status Code:* 400 Bad Request
5202
5248
  #
5203
5249
  # * *SOAP Fault Code Prefix:* Client
5204
- #
5205
5250
  # * * *Code:* MetadataTooLarge
5206
5251
  #
5207
5252
  # * *Description:* Your metadata headers exceed the maximum allowed
@@ -5210,7 +5255,6 @@ module Aws::S3
5210
5255
  # * *HTTP Status Code:* 400 Bad Request
5211
5256
  #
5212
5257
  # * *SOAP Fault Code Prefix:* Client
5213
- #
5214
5258
  # * * *Code:* MethodNotAllowed
5215
5259
  #
5216
5260
  # * *Description:* The specified method is not allowed against this
@@ -5219,7 +5263,6 @@ module Aws::S3
5219
5263
  # * *HTTP Status Code:* 405 Method Not Allowed
5220
5264
  #
5221
5265
  # * *SOAP Fault Code Prefix:* Client
5222
- #
5223
5266
  # * * *Code:* MissingAttachment
5224
5267
  #
5225
5268
  # * *Description:* A SOAP attachment was expected, but none were
@@ -5228,7 +5271,6 @@ module Aws::S3
5228
5271
  # * *HTTP Status Code:* N/A
5229
5272
  #
5230
5273
  # * *SOAP Fault Code Prefix:* Client
5231
- #
5232
5274
  # * * *Code:* MissingContentLength
5233
5275
  #
5234
5276
  # * *Description:* You must provide the Content-Length HTTP header.
@@ -5236,7 +5278,6 @@ module Aws::S3
5236
5278
  # * *HTTP Status Code:* 411 Length Required
5237
5279
  #
5238
5280
  # * *SOAP Fault Code Prefix:* Client
5239
- #
5240
5281
  # * * *Code:* MissingRequestBodyError
5241
5282
  #
5242
5283
  # * *Description:* This happens when the user sends an empty XML
@@ -5246,7 +5287,6 @@ module Aws::S3
5246
5287
  # * *HTTP Status Code:* 400 Bad Request
5247
5288
  #
5248
5289
  # * *SOAP Fault Code Prefix:* Client
5249
- #
5250
5290
  # * * *Code:* MissingSecurityElement
5251
5291
  #
5252
5292
  # * *Description:* The SOAP 1.1 request is missing a security
@@ -5255,7 +5295,6 @@ module Aws::S3
5255
5295
  # * *HTTP Status Code:* 400 Bad Request
5256
5296
  #
5257
5297
  # * *SOAP Fault Code Prefix:* Client
5258
- #
5259
5298
  # * * *Code:* MissingSecurityHeader
5260
5299
  #
5261
5300
  # * *Description:* Your request is missing a required header.
@@ -5263,7 +5302,6 @@ module Aws::S3
5263
5302
  # * *HTTP Status Code:* 400 Bad Request
5264
5303
  #
5265
5304
  # * *SOAP Fault Code Prefix:* Client
5266
- #
5267
5305
  # * * *Code:* NoLoggingStatusForKey
5268
5306
  #
5269
5307
  # * *Description:* There is no such thing as a logging status
@@ -5272,7 +5310,6 @@ module Aws::S3
5272
5310
  # * *HTTP Status Code:* 400 Bad Request
5273
5311
  #
5274
5312
  # * *SOAP Fault Code Prefix:* Client
5275
- #
5276
5313
  # * * *Code:* NoSuchBucket
5277
5314
  #
5278
5315
  # * *Description:* The specified bucket does not exist.
@@ -5280,7 +5317,6 @@ module Aws::S3
5280
5317
  # * *HTTP Status Code:* 404 Not Found
5281
5318
  #
5282
5319
  # * *SOAP Fault Code Prefix:* Client
5283
- #
5284
5320
  # * * *Code:* NoSuchBucketPolicy
5285
5321
  #
5286
5322
  # * *Description:* The specified bucket does not have a bucket
@@ -5289,7 +5325,6 @@ module Aws::S3
5289
5325
  # * *HTTP Status Code:* 404 Not Found
5290
5326
  #
5291
5327
  # * *SOAP Fault Code Prefix:* Client
5292
- #
5293
5328
  # * * *Code:* NoSuchKey
5294
5329
  #
5295
5330
  # * *Description:* The specified key does not exist.
@@ -5297,7 +5332,6 @@ module Aws::S3
5297
5332
  # * *HTTP Status Code:* 404 Not Found
5298
5333
  #
5299
5334
  # * *SOAP Fault Code Prefix:* Client
5300
- #
5301
5335
  # * * *Code:* NoSuchLifecycleConfiguration
5302
5336
  #
5303
5337
  # * *Description:* The lifecycle configuration does not exist.
@@ -5305,7 +5339,6 @@ module Aws::S3
5305
5339
  # * *HTTP Status Code:* 404 Not Found
5306
5340
  #
5307
5341
  # * *SOAP Fault Code Prefix:* Client
5308
- #
5309
5342
  # * * *Code:* NoSuchUpload
5310
5343
  #
5311
5344
  # * *Description:* The specified multipart upload does not exist.
@@ -5315,7 +5348,6 @@ module Aws::S3
5315
5348
  # * *HTTP Status Code:* 404 Not Found
5316
5349
  #
5317
5350
  # * *SOAP Fault Code Prefix:* Client
5318
- #
5319
5351
  # * * *Code:* NoSuchVersion
5320
5352
  #
5321
5353
  # * *Description:* Indicates that the version ID specified in the
@@ -5324,7 +5356,6 @@ module Aws::S3
5324
5356
  # * *HTTP Status Code:* 404 Not Found
5325
5357
  #
5326
5358
  # * *SOAP Fault Code Prefix:* Client
5327
- #
5328
5359
  # * * *Code:* NotImplemented
5329
5360
  #
5330
5361
  # * *Description:* A header you provided implies functionality that
@@ -5333,7 +5364,6 @@ module Aws::S3
5333
5364
  # * *HTTP Status Code:* 501 Not Implemented
5334
5365
  #
5335
5366
  # * *SOAP Fault Code Prefix:* Server
5336
- #
5337
5367
  # * * *Code:* NotSignedUp
5338
5368
  #
5339
5369
  # * *Description:* Your account is not signed up for the Amazon S3
@@ -5343,7 +5373,6 @@ module Aws::S3
5343
5373
  # * *HTTP Status Code:* 403 Forbidden
5344
5374
  #
5345
5375
  # * *SOAP Fault Code Prefix:* Client
5346
- #
5347
5376
  # * * *Code:* OperationAborted
5348
5377
  #
5349
5378
  # * *Description:* A conflicting conditional action is currently in
@@ -5352,7 +5381,6 @@ module Aws::S3
5352
5381
  # * *HTTP Status Code:* 409 Conflict
5353
5382
  #
5354
5383
  # * *SOAP Fault Code Prefix:* Client
5355
- #
5356
5384
  # * * *Code:* PermanentRedirect
5357
5385
  #
5358
5386
  # * *Description:* The bucket you are attempting to access must be
@@ -5362,7 +5390,6 @@ module Aws::S3
5362
5390
  # * *HTTP Status Code:* 301 Moved Permanently
5363
5391
  #
5364
5392
  # * *SOAP Fault Code Prefix:* Client
5365
- #
5366
5393
  # * * *Code:* PreconditionFailed
5367
5394
  #
5368
5395
  # * *Description:* At least one of the preconditions you specified
@@ -5371,7 +5398,6 @@ module Aws::S3
5371
5398
  # * *HTTP Status Code:* 412 Precondition Failed
5372
5399
  #
5373
5400
  # * *SOAP Fault Code Prefix:* Client
5374
- #
5375
5401
  # * * *Code:* Redirect
5376
5402
  #
5377
5403
  # * *Description:* Temporary redirect.
@@ -5379,7 +5405,6 @@ module Aws::S3
5379
5405
  # * *HTTP Status Code:* 307 Moved Temporarily
5380
5406
  #
5381
5407
  # * *SOAP Fault Code Prefix:* Client
5382
- #
5383
5408
  # * * *Code:* RestoreAlreadyInProgress
5384
5409
  #
5385
5410
  # * *Description:* Object restore is already in progress.
@@ -5387,7 +5412,6 @@ module Aws::S3
5387
5412
  # * *HTTP Status Code:* 409 Conflict
5388
5413
  #
5389
5414
  # * *SOAP Fault Code Prefix:* Client
5390
- #
5391
5415
  # * * *Code:* RequestIsNotMultiPartContent
5392
5416
  #
5393
5417
  # * *Description:* Bucket POST must be of the enclosure-type
@@ -5396,7 +5420,6 @@ module Aws::S3
5396
5420
  # * *HTTP Status Code:* 400 Bad Request
5397
5421
  #
5398
5422
  # * *SOAP Fault Code Prefix:* Client
5399
- #
5400
5423
  # * * *Code:* RequestTimeout
5401
5424
  #
5402
5425
  # * *Description:* Your socket connection to the server was not read
@@ -5405,7 +5428,6 @@ module Aws::S3
5405
5428
  # * *HTTP Status Code:* 400 Bad Request
5406
5429
  #
5407
5430
  # * *SOAP Fault Code Prefix:* Client
5408
- #
5409
5431
  # * * *Code:* RequestTimeTooSkewed
5410
5432
  #
5411
5433
  # * *Description:* The difference between the request time and the
@@ -5414,7 +5436,6 @@ module Aws::S3
5414
5436
  # * *HTTP Status Code:* 403 Forbidden
5415
5437
  #
5416
5438
  # * *SOAP Fault Code Prefix:* Client
5417
- #
5418
5439
  # * * *Code:* RequestTorrentOfBucketError
5419
5440
  #
5420
5441
  # * *Description:* Requesting the torrent file of a bucket is not
@@ -5423,7 +5444,6 @@ module Aws::S3
5423
5444
  # * *HTTP Status Code:* 400 Bad Request
5424
5445
  #
5425
5446
  # * *SOAP Fault Code Prefix:* Client
5426
- #
5427
5447
  # * * *Code:* SignatureDoesNotMatch
5428
5448
  #
5429
5449
  # * *Description:* The request signature we calculated does not
@@ -5435,7 +5455,6 @@ module Aws::S3
5435
5455
  # * *HTTP Status Code:* 403 Forbidden
5436
5456
  #
5437
5457
  # * *SOAP Fault Code Prefix:* Client
5438
- #
5439
5458
  # * * *Code:* ServiceUnavailable
5440
5459
  #
5441
5460
  # * *Description:* Service is unable to handle request.
@@ -5443,7 +5462,6 @@ module Aws::S3
5443
5462
  # * *HTTP Status Code:* 503 Service Unavailable
5444
5463
  #
5445
5464
  # * *SOAP Fault Code Prefix:* Server
5446
- #
5447
5465
  # * * *Code:* SlowDown
5448
5466
  #
5449
5467
  # * *Description:* Reduce your request rate.
@@ -5451,7 +5469,6 @@ module Aws::S3
5451
5469
  # * *HTTP Status Code:* 503 Slow Down
5452
5470
  #
5453
5471
  # * *SOAP Fault Code Prefix:* Server
5454
- #
5455
5472
  # * * *Code:* TemporaryRedirect
5456
5473
  #
5457
5474
  # * *Description:* You are being redirected to the bucket while DNS
@@ -5460,7 +5477,6 @@ module Aws::S3
5460
5477
  # * *HTTP Status Code:* 307 Moved Temporarily
5461
5478
  #
5462
5479
  # * *SOAP Fault Code Prefix:* Client
5463
- #
5464
5480
  # * * *Code:* TokenRefreshRequired
5465
5481
  #
5466
5482
  # * *Description:* The provided token must be refreshed.
@@ -5468,7 +5484,6 @@ module Aws::S3
5468
5484
  # * *HTTP Status Code:* 400 Bad Request
5469
5485
  #
5470
5486
  # * *SOAP Fault Code Prefix:* Client
5471
- #
5472
5487
  # * * *Code:* TooManyBuckets
5473
5488
  #
5474
5489
  # * *Description:* You have attempted to create more buckets than
@@ -5477,7 +5492,6 @@ module Aws::S3
5477
5492
  # * *HTTP Status Code:* 400 Bad Request
5478
5493
  #
5479
5494
  # * *SOAP Fault Code Prefix:* Client
5480
- #
5481
5495
  # * * *Code:* UnexpectedContent
5482
5496
  #
5483
5497
  # * *Description:* This request does not support content.
@@ -5485,7 +5499,6 @@ module Aws::S3
5485
5499
  # * *HTTP Status Code:* 400 Bad Request
5486
5500
  #
5487
5501
  # * *SOAP Fault Code Prefix:* Client
5488
- #
5489
5502
  # * * *Code:* UnresolvableGrantByEmailAddress
5490
5503
  #
5491
5504
  # * *Description:* The email address you provided does not match any
@@ -5494,7 +5507,6 @@ module Aws::S3
5494
5507
  # * *HTTP Status Code:* 400 Bad Request
5495
5508
  #
5496
5509
  # * *SOAP Fault Code Prefix:* Client
5497
- #
5498
5510
  # * * *Code:* UserKeyMustBeSpecified
5499
5511
  #
5500
5512
  # * *Description:* The bucket POST must contain the specified field
@@ -5954,6 +5966,11 @@ module Aws::S3
5954
5966
  # Indicates which default minimum object size behavior is applied to
5955
5967
  # the lifecycle configuration.
5956
5968
  #
5969
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
5970
+ # supported for directory bucket lifecycle configurations.
5971
+ #
5972
+ # </note>
5973
+ #
5957
5974
  # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
5958
5975
  # transition to any storage class by default.
5959
5976
  #
@@ -5986,6 +6003,11 @@ module Aws::S3
5986
6003
  # you provide does not match the actual owner of the bucket, the
5987
6004
  # request fails with the HTTP status code `403 Forbidden` (access
5988
6005
  # denied).
6006
+ #
6007
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
6008
+ # supported for directory bucket lifecycle configurations.
6009
+ #
6010
+ # </note>
5989
6011
  # @return [String]
5990
6012
  #
5991
6013
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketLifecycleConfigurationRequest AWS API Documentation
@@ -6627,7 +6649,7 @@ module Aws::S3
6627
6649
  # @return [Boolean]
6628
6650
  #
6629
6651
  # @!attribute [rw] last_modified
6630
- # The creation date of the object.
6652
+ # Date and time when the object was last modified.
6631
6653
  # @return [Time]
6632
6654
  #
6633
6655
  # @!attribute [rw] version_id
@@ -9105,6 +9127,28 @@ module Aws::S3
9105
9127
  include Aws::Structure
9106
9128
  end
9107
9129
 
9130
+ # You may receive this error in multiple cases. Depending on the reason
9131
+ # for the error, you may receive one of the messages below:
9132
+ #
9133
+ # * Cannot specify both a write offset value and user-defined object
9134
+ # metadata for existing objects.
9135
+ #
9136
+ # * Checksum Type mismatch occurred, expected checksum Type: sha1,
9137
+ # actual checksum Type: crc32c.
9138
+ #
9139
+ # * Request body cannot be empty when 'write offset' is specified.
9140
+ #
9141
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InvalidRequest AWS API Documentation
9142
+ #
9143
+ class InvalidRequest < Aws::EmptyStructure; end
9144
+
9145
+ # The write offset value that you specified does not match the current
9146
+ # object size.
9147
+ #
9148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/InvalidWriteOffset AWS API Documentation
9149
+ #
9150
+ class InvalidWriteOffset < Aws::EmptyStructure; end
9151
+
9108
9152
  # Specifies the inventory configuration for an Amazon S3 bucket. For
9109
9153
  # more information, see [GET Bucket inventory][1] in the *Amazon S3 API
9110
9154
  # Reference*.
@@ -9379,6 +9423,11 @@ module Aws::S3
9379
9423
  # Indicates at what date the object is to be moved or deleted. The
9380
9424
  # date value must conform to the ISO 8601 format. The time is always
9381
9425
  # midnight UTC.
9426
+ #
9427
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9428
+ # supported for directory bucket lifecycle configurations.
9429
+ #
9430
+ # </note>
9382
9431
  # @return [Time]
9383
9432
  #
9384
9433
  # @!attribute [rw] days
@@ -9391,6 +9440,11 @@ module Aws::S3
9391
9440
  # noncurrent versions. If set to true, the delete marker will be
9392
9441
  # expired; if set to false the policy takes no action. This cannot be
9393
9442
  # specified with Days or Date in a Lifecycle Expiration Policy.
9443
+ #
9444
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9445
+ # supported for directory bucket lifecycle configurations.
9446
+ #
9447
+ # </note>
9394
9448
  # @return [Boolean]
9395
9449
  #
9396
9450
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LifecycleExpiration AWS API Documentation
@@ -9440,6 +9494,10 @@ module Aws::S3
9440
9494
  # applies to. A `Filter` must have exactly one of `Prefix`, `Tag`, or
9441
9495
  # `And` specified. `Filter` is required if the `LifecycleRule` does
9442
9496
  # not contain a `Prefix` element.
9497
+ #
9498
+ # <note markdown="1"> `Tag` filters are not supported for directory buckets.
9499
+ #
9500
+ # </note>
9443
9501
  # @return [Types::LifecycleRuleFilter]
9444
9502
  #
9445
9503
  # @!attribute [rw] status
@@ -9450,6 +9508,11 @@ module Aws::S3
9450
9508
  # @!attribute [rw] transitions
9451
9509
  # Specifies when an Amazon S3 object transitions to a specified
9452
9510
  # storage class.
9511
+ #
9512
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9513
+ # supported for directory bucket lifecycle configurations.
9514
+ #
9515
+ # </note>
9453
9516
  # @return [Array<Types::Transition>]
9454
9517
  #
9455
9518
  # @!attribute [rw] noncurrent_version_transitions
@@ -9459,6 +9522,11 @@ module Aws::S3
9459
9522
  # can set this action to request that Amazon S3 transition noncurrent
9460
9523
  # object versions to a specific storage class at a set period in the
9461
9524
  # object's lifetime.
9525
+ #
9526
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9527
+ # supported for directory bucket lifecycle configurations.
9528
+ #
9529
+ # </note>
9462
9530
  # @return [Array<Types::NoncurrentVersionTransition>]
9463
9531
  #
9464
9532
  # @!attribute [rw] noncurrent_version_expiration
@@ -9468,6 +9536,11 @@ module Aws::S3
9468
9536
  # versioning enabled (or suspended) to request that Amazon S3 delete
9469
9537
  # noncurrent object versions at a specific period in the object's
9470
9538
  # lifetime.
9539
+ #
9540
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9541
+ # supported for directory bucket lifecycle configurations.
9542
+ #
9543
+ # </note>
9471
9544
  # @return [Types::NoncurrentVersionExpiration]
9472
9545
  #
9473
9546
  # @!attribute [rw] abort_incomplete_multipart_upload
@@ -9551,6 +9624,11 @@ module Aws::S3
9551
9624
  # @!attribute [rw] tag
9552
9625
  # This tag must exist in the object's tag set in order for the rule
9553
9626
  # to apply.
9627
+ #
9628
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
9629
+ # supported for directory bucket lifecycle configurations.
9630
+ #
9631
+ # </note>
9554
9632
  # @return [Types::Tag]
9555
9633
  #
9556
9634
  # @!attribute [rw] object_size_greater_than
@@ -11646,6 +11724,11 @@ module Aws::S3
11646
11724
  # enabled (or suspended) to request that Amazon S3 delete noncurrent
11647
11725
  # object versions at a specific period in the object's lifetime.
11648
11726
  #
11727
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
11728
+ # supported for directory bucket lifecycle configurations.
11729
+ #
11730
+ # </note>
11731
+ #
11649
11732
  # @!attribute [rw] noncurrent_days
11650
11733
  # Specifies the number of days an object is noncurrent before Amazon
11651
11734
  # S3 can perform the associated action. The value must be a non-zero
@@ -11653,6 +11736,11 @@ module Aws::S3
11653
11736
  # calculations, see [How Amazon S3 Calculates When an Object Became
11654
11737
  # Noncurrent][1] in the *Amazon S3 User Guide*.
11655
11738
  #
11739
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
11740
+ # supported for directory bucket lifecycle configurations.
11741
+ #
11742
+ # </note>
11743
+ #
11656
11744
  #
11657
11745
  #
11658
11746
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations
@@ -11666,6 +11754,11 @@ module Aws::S3
11666
11754
  # versions, see [Lifecycle configuration elements][1] in the *Amazon
11667
11755
  # S3 User Guide*.
11668
11756
  #
11757
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
11758
+ # supported for directory bucket lifecycle configurations.
11759
+ #
11760
+ # </note>
11761
+ #
11669
11762
  #
11670
11763
  #
11671
11764
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/intro-lifecycle-rules.html
@@ -11936,11 +12029,43 @@ module Aws::S3
11936
12029
  # </note>
11937
12030
  # @return [String]
11938
12031
  #
12032
+ # @!attribute [rw] etag
12033
+ # An entity tag (ETag) is an identifier assigned by a web server to a
12034
+ # specific version of a resource found at a URL. This header field
12035
+ # makes the request method conditional on `ETags`.
12036
+ #
12037
+ # <note markdown="1"> Entity tags (ETags) for S3 Express One Zone are random alphanumeric
12038
+ # strings unique to the object.
12039
+ #
12040
+ # </note>
12041
+ # @return [String]
12042
+ #
12043
+ # @!attribute [rw] last_modified_time
12044
+ # If present, the objects are deleted only if its modification times
12045
+ # matches the provided `Timestamp`.
12046
+ #
12047
+ # <note markdown="1"> This functionality is only supported for directory buckets.
12048
+ #
12049
+ # </note>
12050
+ # @return [Time]
12051
+ #
12052
+ # @!attribute [rw] size
12053
+ # If present, the objects are deleted only if its size matches the
12054
+ # provided size in bytes.
12055
+ #
12056
+ # <note markdown="1"> This functionality is only supported for directory buckets.
12057
+ #
12058
+ # </note>
12059
+ # @return [Integer]
12060
+ #
11939
12061
  # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/ObjectIdentifier AWS API Documentation
11940
12062
  #
11941
12063
  class ObjectIdentifier < Struct.new(
11942
12064
  :key,
11943
- :version_id)
12065
+ :version_id,
12066
+ :etag,
12067
+ :last_modified_time,
12068
+ :size)
11944
12069
  SENSITIVE = []
11945
12070
  include Aws::Structure
11946
12071
  end
@@ -12936,6 +13061,11 @@ module Aws::S3
12936
13061
  # Indicates which default minimum object size behavior is applied to
12937
13062
  # the lifecycle configuration.
12938
13063
  #
13064
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
13065
+ # supported for directory bucket lifecycle configurations.
13066
+ #
13067
+ # </note>
13068
+ #
12939
13069
  # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
12940
13070
  # transition to any storage class by default.
12941
13071
  #
@@ -12988,12 +13118,22 @@ module Aws::S3
12988
13118
  # you provide does not match the actual owner of the bucket, the
12989
13119
  # request fails with the HTTP status code `403 Forbidden` (access
12990
13120
  # denied).
13121
+ #
13122
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
13123
+ # supported for directory bucket lifecycle configurations.
13124
+ #
13125
+ # </note>
12991
13126
  # @return [String]
12992
13127
  #
12993
13128
  # @!attribute [rw] transition_default_minimum_object_size
12994
13129
  # Indicates which default minimum object size behavior is applied to
12995
13130
  # the lifecycle configuration.
12996
13131
  #
13132
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
13133
+ # supported for directory bucket lifecycle configurations.
13134
+ #
13135
+ # </note>
13136
+ #
12997
13137
  # * `all_storage_classes_128K` - Objects smaller than 128 KB will not
12998
13138
  # transition to any storage class by default.
12999
13139
  #
@@ -14244,6 +14384,16 @@ module Aws::S3
14244
14384
  # (SSE-KMS).
14245
14385
  # @return [Boolean]
14246
14386
  #
14387
+ # @!attribute [rw] size
14388
+ # The size of the object in bytes. This will only be present if you
14389
+ # append to an object.
14390
+ #
14391
+ # <note markdown="1"> This functionality is only supported for objects in the Amazon S3
14392
+ # Express One Zone storage class in directory buckets.
14393
+ #
14394
+ # </note>
14395
+ # @return [Integer]
14396
+ #
14247
14397
  # @!attribute [rw] request_charged
14248
14398
  # If present, indicates that the requester was successfully charged
14249
14399
  # for the request.
@@ -14269,6 +14419,7 @@ module Aws::S3
14269
14419
  :ssekms_key_id,
14270
14420
  :ssekms_encryption_context,
14271
14421
  :bucket_key_enabled,
14422
+ :size,
14272
14423
  :request_charged)
14273
14424
  SENSITIVE = [:ssekms_key_id, :ssekms_encryption_context]
14274
14425
  include Aws::Structure
@@ -14551,6 +14702,27 @@ module Aws::S3
14551
14702
  # [1]: https://www.rfc-editor.org/rfc/rfc7234#section-5.3
14552
14703
  # @return [Time]
14553
14704
  #
14705
+ # @!attribute [rw] if_match
14706
+ # Uploads the object only if the ETag (entity tag) value provided
14707
+ # during the WRITE operation matches the ETag of the object in S3. If
14708
+ # the ETag values do not match, the operation returns a `412
14709
+ # Precondition Failed` error.
14710
+ #
14711
+ # If a conflicting operation occurs during the upload S3 returns a
14712
+ # `409 ConditionalRequestConflict` response. On a 409 failure you
14713
+ # should fetch the object's ETag and retry the upload.
14714
+ #
14715
+ # Expects the ETag value as a string.
14716
+ #
14717
+ # For more information about conditional requests, see [RFC 7232][1],
14718
+ # or [Conditional requests][2] in the *Amazon S3 User Guide*.
14719
+ #
14720
+ #
14721
+ #
14722
+ # [1]: https://tools.ietf.org/html/rfc7232
14723
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
14724
+ # @return [String]
14725
+ #
14554
14726
  # @!attribute [rw] if_none_match
14555
14727
  # Uploads the object only if the object key name does not already
14556
14728
  # exist in the bucket specified. Otherwise, Amazon S3 returns a `412
@@ -14616,6 +14788,18 @@ module Aws::S3
14616
14788
  # Object key for which the PUT action was initiated.
14617
14789
  # @return [String]
14618
14790
  #
14791
+ # @!attribute [rw] write_offset_bytes
14792
+ # Specifies the offset for appending data to existing objects in
14793
+ # bytes. The offset must be equal to the size of the existing object
14794
+ # being appended to. If no object exists, setting this header to 0
14795
+ # will create a new object.
14796
+ #
14797
+ # <note markdown="1"> This functionality is only supported for objects in the Amazon S3
14798
+ # Express One Zone storage class in directory buckets.
14799
+ #
14800
+ # </note>
14801
+ # @return [Integer]
14802
+ #
14619
14803
  # @!attribute [rw] metadata
14620
14804
  # A map of metadata to store with the object in S3.
14621
14805
  # @return [Hash<String,String>]
@@ -14942,12 +15126,14 @@ module Aws::S3
14942
15126
  :checksum_sha1,
14943
15127
  :checksum_sha256,
14944
15128
  :expires,
15129
+ :if_match,
14945
15130
  :if_none_match,
14946
15131
  :grant_full_control,
14947
15132
  :grant_read,
14948
15133
  :grant_read_acp,
14949
15134
  :grant_write_acp,
14950
15135
  :key,
15136
+ :write_offset_bytes,
14951
15137
  :metadata,
14952
15138
  :server_side_encryption,
14953
15139
  :storage_class,
@@ -16089,6 +16275,11 @@ module Aws::S3
16089
16275
  # versioning enabled (or suspended) to request that Amazon S3 delete
16090
16276
  # noncurrent object versions at a specific period in the object's
16091
16277
  # lifetime.
16278
+ #
16279
+ # <note markdown="1"> This parameter applies to general purpose buckets only. It is not
16280
+ # supported for directory bucket lifecycle configurations.
16281
+ #
16282
+ # </note>
16092
16283
  # @return [Types::NoncurrentVersionExpiration]
16093
16284
  #
16094
16285
  # @!attribute [rw] abort_incomplete_multipart_upload
@@ -16884,6 +17075,15 @@ module Aws::S3
16884
17075
  include Aws::Structure
16885
17076
  end
16886
17077
 
17078
+ # You have attempted to add more parts than the maximum of 10000 that
17079
+ # are allowed for this object. You can use the CopyObject operation to
17080
+ # copy this object to another and then add more data to the newly copied
17081
+ # object.
17082
+ #
17083
+ # @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TooManyParts AWS API Documentation
17084
+ #
17085
+ class TooManyParts < Aws::EmptyStructure; end
17086
+
16887
17087
  # A container for specifying the configuration for publication of
16888
17088
  # messages to an Amazon Simple Notification Service (Amazon SNS) topic
16889
17089
  # when Amazon S3 detects specified events.