aws-sdk-s3 1.169.0 → 1.172.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -571,7 +571,7 @@ module Aws::S3
571
571
  # in-progress multipart uploads are aborted or completed. To delete
572
572
  # these in-progress multipart uploads, use the `ListMultipartUploads`
573
573
  # operation to list the in-progress multipart uploads in the bucket
574
- # and use the `AbortMultupartUpload` operation to abort all the
574
+ # and use the `AbortMultipartUpload` operation to abort all the
575
575
  # in-progress multipart uploads.
576
576
  #
577
577
  # * **Directory buckets** - For directory buckets, you must make
@@ -837,7 +837,6 @@ module Aws::S3
837
837
  # except the last part.
838
838
  #
839
839
  # * HTTP Status Code: 400 Bad Request
840
- #
841
840
  # * Error Code: `InvalidPart`
842
841
  #
843
842
  # * Description: One or more of the specified parts could not be
@@ -845,14 +844,12 @@ module Aws::S3
845
844
  # ETag might not have matched the uploaded part's ETag.
846
845
  #
847
846
  # * HTTP Status Code: 400 Bad Request
848
- #
849
847
  # * Error Code: `InvalidPartOrder`
850
848
  #
851
849
  # * Description: The list of parts was not in ascending order. The
852
850
  # parts list must be specified in order by part number.
853
851
  #
854
852
  # * HTTP Status Code: 400 Bad Request
855
- #
856
853
  # * Error Code: `NoSuchUpload`
857
854
  #
858
855
  # * Description: The specified multipart upload does not exist. The
@@ -1254,7 +1251,6 @@ module Aws::S3
1254
1251
  # * If the destination bucket is a general purpose bucket, you must
1255
1252
  # have <b> <code>s3:PutObject</code> </b> permission to write the
1256
1253
  # object copy to the destination bucket.
1257
- #
1258
1254
  # * **Directory bucket permissions** - You must have permissions in a
1259
1255
  # bucket policy or an IAM identity-based policy based on the source
1260
1256
  # and destination bucket types in a `CopyObject` operation.
@@ -1272,7 +1268,6 @@ module Aws::S3
1272
1268
  # `Action` element of a policy to write the object to the
1273
1269
  # destination. The `s3express:SessionMode` condition key can't be
1274
1270
  # set to `ReadOnly` on the copy destination bucket.
1275
- #
1276
1271
  # If the object is encrypted with SSE-KMS, you must also have the
1277
1272
  # `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM
1278
1273
  # identity-based policies and KMS key policies for the KMS key.
@@ -2309,7 +2304,6 @@ module Aws::S3
2309
2304
  # more information about S3 Block Public Access, see [Blocking
2310
2305
  # public access to your Amazon S3 storage ][6] in the *Amazon S3
2311
2306
  # User Guide*.
2312
- #
2313
2307
  # * **Directory bucket permissions** - You must have the
2314
2308
  # `s3express:CreateBucket` permission in an IAM identity-based
2315
2309
  # policy instead of a bucket policy. Cross-account access to this
@@ -2660,7 +2654,6 @@ module Aws::S3
2660
2654
  # * `x-amz-server-side-encryption-aws-kms-key-id`
2661
2655
  #
2662
2656
  # * `x-amz-server-side-encryption-context`
2663
- #
2664
2657
  # <note markdown="1"> * If you specify `x-amz-server-side-encryption:aws:kms`, but
2665
2658
  # don't provide `x-amz-server-side-encryption-aws-kms-key-id`,
2666
2659
  # Amazon S3 uses the Amazon Web Services managed key (`aws/s3`
@@ -2706,12 +2699,10 @@ module Aws::S3
2706
2699
  # * `x-amz-server-side-encryption-customer-key`
2707
2700
  #
2708
2701
  # * `x-amz-server-side-encryption-customer-key-MD5`
2709
- #
2710
2702
  # For more information about server-side encryption with
2711
2703
  # customer-provided encryption keys (SSE-C), see [ Protecting data
2712
2704
  # using server-side encryption with customer-provided encryption
2713
2705
  # keys (SSE-C)][11] in the *Amazon S3 User Guide*.
2714
- #
2715
2706
  # * **Directory buckets** - For directory buckets, there are only two
2716
2707
  # supported options for server-side encryption: server-side
2717
2708
  # encryption with Amazon S3 managed keys (SSE-S3) (`AES256`) and
@@ -4805,7 +4796,6 @@ module Aws::S3
4805
4796
  # objects from your bucket, you must deny them the
4806
4797
  # `s3:DeleteObject`, `s3:DeleteObjectVersion`, and
4807
4798
  # `s3:PutLifeCycleConfiguration` permissions.
4808
- #
4809
4799
  # * **Directory buckets permissions** - To grant access to this API
4810
4800
  # operation on a directory bucket, we recommend that you use the
4811
4801
  # CreateSession API operation for session-based authorization.
@@ -5164,7 +5154,6 @@ module Aws::S3
5164
5154
  # * <b> <code>s3:DeleteObjectVersion</code> </b> - To delete a
5165
5155
  # specific version of an object from a versioning-enabled bucket,
5166
5156
  # you must specify the `s3:DeleteObjectVersion` permission.
5167
- #
5168
5157
  # * **Directory bucket permissions** - To grant access to this API
5169
5158
  # operation on a directory bucket, we recommend that you use the [
5170
5159
  # `CreateSession` ][3] API operation for session-based
@@ -7744,7 +7733,6 @@ module Aws::S3
7744
7733
  #
7745
7734
  # * If you don’t have the `s3:ListBucket` permission, Amazon S3
7746
7735
  # returns an HTTP status code `403 Access Denied` error.
7747
- #
7748
7736
  # * **Directory bucket permissions** - To grant access to this API
7749
7737
  # operation on a directory bucket, we recommend that you use the [
7750
7738
  # `CreateSession` ][4] API operation for session-based
@@ -8205,49 +8193,49 @@ module Aws::S3
8205
8193
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
8206
8194
  #
8207
8195
  #
8208
- # @example Example: To retrieve a byte range of an object
8196
+ # @example Example: To retrieve an object
8209
8197
  #
8210
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
8211
- # # specific byte range.
8198
+ # # The following example retrieves an object for an S3 bucket.
8212
8199
  #
8213
8200
  # resp = client.get_object({
8214
8201
  # bucket: "examplebucket",
8215
- # key: "SampleFile.txt",
8216
- # range: "bytes=0-9",
8202
+ # key: "HappyFace.jpg",
8217
8203
  # })
8218
8204
  #
8219
8205
  # resp.to_h outputs the following:
8220
8206
  # {
8221
8207
  # accept_ranges: "bytes",
8222
- # content_length: 10,
8223
- # content_range: "bytes 0-9/43",
8224
- # content_type: "text/plain",
8225
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
8226
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
8208
+ # content_length: 3191,
8209
+ # content_type: "image/jpeg",
8210
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
8211
+ # last_modified: Time.parse("2016-12-15T01:19:41.000Z"),
8227
8212
  # metadata: {
8228
8213
  # },
8214
+ # tag_count: 2,
8229
8215
  # version_id: "null",
8230
8216
  # }
8231
8217
  #
8232
- # @example Example: To retrieve an object
8218
+ # @example Example: To retrieve a byte range of an object
8233
8219
  #
8234
- # # The following example retrieves an object for an S3 bucket.
8220
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
8221
+ # # specific byte range.
8235
8222
  #
8236
8223
  # resp = client.get_object({
8237
8224
  # bucket: "examplebucket",
8238
- # key: "HappyFace.jpg",
8225
+ # key: "SampleFile.txt",
8226
+ # range: "bytes=0-9",
8239
8227
  # })
8240
8228
  #
8241
8229
  # resp.to_h outputs the following:
8242
8230
  # {
8243
8231
  # accept_ranges: "bytes",
8244
- # content_length: 3191,
8245
- # content_type: "image/jpeg",
8246
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
8247
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
8232
+ # content_length: 10,
8233
+ # content_range: "bytes 0-9/43",
8234
+ # content_type: "text/plain",
8235
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
8236
+ # last_modified: Time.parse("2014-10-09T22:57:28.000Z"),
8248
8237
  # metadata: {
8249
8238
  # },
8250
- # tag_count: 2,
8251
8239
  # version_id: "null",
8252
8240
  # }
8253
8241
  #
@@ -8578,7 +8566,6 @@ module Aws::S3
8578
8566
  # * If you don't have the `s3:ListBucket` permission, Amazon S3
8579
8567
  # returns an HTTP status code `403 Forbidden` ("access denied")
8580
8568
  # error.
8581
- #
8582
8569
  # * **Directory bucket permissions** - To grant access to this API
8583
8570
  # operation on a directory bucket, we recommend that you use the [
8584
8571
  # `CreateSession` ][3] API operation for session-based
@@ -8665,7 +8652,6 @@ module Aws::S3
8665
8652
  # * `If-Match` condition evaluates to `true`.
8666
8653
  #
8667
8654
  # * `If-Unmodified-Since` condition evaluates to `false`.
8668
- #
8669
8655
  # For more information about conditional requests, see [RFC
8670
8656
  # 7232][7].
8671
8657
  #
@@ -8676,7 +8662,6 @@ module Aws::S3
8676
8662
  # * `If-None-Match` condition evaluates to `false`.
8677
8663
  #
8678
8664
  # * `If-Modified-Since` condition evaluates to `true`.
8679
- #
8680
8665
  # For more information about conditional requests, see [RFC
8681
8666
  # 7232][7].
8682
8667
  #
@@ -9263,49 +9248,49 @@ module Aws::S3
9263
9248
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array&lt;Types::Tag&gt;
9264
9249
  #
9265
9250
  #
9266
- # @example Example: To retrieve tag set of a specific object version
9251
+ # @example Example: To retrieve tag set of an object
9267
9252
  #
9268
- # # The following example retrieves tag set of an object. The request specifies object version.
9253
+ # # The following example retrieves tag set of an object.
9269
9254
  #
9270
9255
  # resp = client.get_object_tagging({
9271
9256
  # bucket: "examplebucket",
9272
- # key: "exampleobject",
9273
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
9257
+ # key: "HappyFace.jpg",
9274
9258
  # })
9275
9259
  #
9276
9260
  # resp.to_h outputs the following:
9277
9261
  # {
9278
9262
  # tag_set: [
9279
9263
  # {
9280
- # key: "Key1",
9281
- # value: "Value1",
9264
+ # key: "Key4",
9265
+ # value: "Value4",
9266
+ # },
9267
+ # {
9268
+ # key: "Key3",
9269
+ # value: "Value3",
9282
9270
  # },
9283
9271
  # ],
9284
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
9272
+ # version_id: "null",
9285
9273
  # }
9286
9274
  #
9287
- # @example Example: To retrieve tag set of an object
9275
+ # @example Example: To retrieve tag set of a specific object version
9288
9276
  #
9289
- # # The following example retrieves tag set of an object.
9277
+ # # The following example retrieves tag set of an object. The request specifies object version.
9290
9278
  #
9291
9279
  # resp = client.get_object_tagging({
9292
9280
  # bucket: "examplebucket",
9293
- # key: "HappyFace.jpg",
9281
+ # key: "exampleobject",
9282
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
9294
9283
  # })
9295
9284
  #
9296
9285
  # resp.to_h outputs the following:
9297
9286
  # {
9298
9287
  # tag_set: [
9299
9288
  # {
9300
- # key: "Key4",
9301
- # value: "Value4",
9302
- # },
9303
- # {
9304
- # key: "Key3",
9305
- # value: "Value3",
9289
+ # key: "Key1",
9290
+ # value: "Value1",
9306
9291
  # },
9307
9292
  # ],
9308
- # version_id: "null",
9293
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
9309
9294
  # }
9310
9295
  #
9311
9296
  # @example Request syntax with placeholder values
@@ -9726,7 +9711,6 @@ module Aws::S3
9726
9711
  #
9727
9712
  # * If you don’t have the `s3:ListBucket` permission, Amazon S3
9728
9713
  # returns an HTTP status code `403 Forbidden` error.
9729
- #
9730
9714
  # * **Directory bucket permissions** - To grant access to this API
9731
9715
  # operation on a directory bucket, we recommend that you use the [
9732
9716
  # `CreateSession` ][3] API operation for session-based
@@ -10123,7 +10107,7 @@ module Aws::S3
10123
10107
  # content_length: 3191,
10124
10108
  # content_type: "image/jpeg",
10125
10109
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
10126
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
10110
+ # last_modified: Time.parse("2016-12-15T01:19:41.000Z"),
10127
10111
  # metadata: {
10128
10112
  # },
10129
10113
  # version_id: "null",
@@ -10617,6 +10601,14 @@ module Aws::S3
10617
10601
  # For information about Amazon S3 buckets, see [Creating, configuring,
10618
10602
  # and working with Amazon S3 buckets][1].
10619
10603
  #
10604
+ # We strongly recommend using only paginated requests. Unpaginated
10605
+ # requests are only supported for Amazon Web Services accounts set to
10606
+ # the default general purpose bucket quota of 10,000. If you have an
10607
+ # approved general purpose bucket quota above 10,000, you must send
10608
+ # paginated requests to list your account’s buckets. All unpaginated
10609
+ # ListBuckets requests will be rejected for Amazon Web Services accounts
10610
+ # with a general purpose bucket quota greater than 10,000.
10611
+ #
10620
10612
  #
10621
10613
  #
10622
10614
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html
@@ -10636,6 +10628,14 @@ module Aws::S3
10636
10628
  #
10637
10629
  # Required: No.
10638
10630
  #
10631
+ # <note markdown="1"> If you specify the `bucket-region`, `prefix`, or `continuation-token`
10632
+ # query parameters without using `max-buckets` to set the maximum number
10633
+ # of buckets returned in the response, Amazon S3 applies a default page
10634
+ # size of 10,000 and provides a continuation token if there are more
10635
+ # buckets.
10636
+ #
10637
+ # </note>
10638
+ #
10639
10639
  # @option params [String] :prefix
10640
10640
  # Limits the response to bucket names that begin with the specified
10641
10641
  # bucket name prefix.
@@ -10757,6 +10757,11 @@ module Aws::S3
10757
10757
  # : <b>Directory buckets </b> - The HTTP Host header syntax is
10758
10758
  # `s3express-control.region.amazonaws.com`.
10759
10759
  #
10760
+ # <note markdown="1"> The `BucketRegion` response element is not part of the
10761
+ # `ListDirectoryBuckets` Response Syntax.
10762
+ #
10763
+ # </note>
10764
+ #
10760
10765
  #
10761
10766
  #
10762
10767
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html
@@ -10815,7 +10820,7 @@ module Aws::S3
10815
10820
  # multipart uploads are aborted or completed. To delete these
10816
10821
  # in-progress multipart uploads, use the `ListMultipartUploads`
10817
10822
  # operation to list the in-progress multipart uploads in the bucket and
10818
- # use the `AbortMultupartUpload` operation to abort all the in-progress
10823
+ # use the `AbortMultipartUpload` operation to abort all the in-progress
10819
10824
  # multipart uploads.
10820
10825
  #
10821
10826
  # </note>
@@ -10888,7 +10893,6 @@ module Aws::S3
10888
10893
  # initiation time. Among uploads with the same key, the one that
10889
10894
  # was initiated first will appear before the ones that were
10890
10895
  # initiated later.
10891
- #
10892
10896
  # * **Directory bucket** - In the `ListMultipartUploads` response, the
10893
10897
  # multipart uploads aren't sorted lexicographically based on the
10894
10898
  # object keys.
@@ -11101,97 +11105,97 @@ module Aws::S3
11101
11105
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
11102
11106
  #
11103
11107
  #
11104
- # @example Example: To list in-progress multipart uploads on a bucket
11108
+ # @example Example: List next set of multipart uploads when previous result is truncated
11105
11109
  #
11106
- # # The following example lists in-progress multipart uploads on a specific bucket.
11110
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
11111
+ # # setup of multipart uploads.
11107
11112
  #
11108
11113
  # resp = client.list_multipart_uploads({
11109
11114
  # bucket: "examplebucket",
11115
+ # key_marker: "nextkeyfrompreviousresponse",
11116
+ # max_uploads: 2,
11117
+ # upload_id_marker: "valuefrompreviousresponse",
11110
11118
  # })
11111
11119
  #
11112
11120
  # resp.to_h outputs the following:
11113
11121
  # {
11122
+ # bucket: "acl1",
11123
+ # is_truncated: true,
11124
+ # key_marker: "",
11125
+ # max_uploads: 2,
11126
+ # next_key_marker: "someobjectkey",
11127
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11128
+ # upload_id_marker: "",
11114
11129
  # uploads: [
11115
11130
  # {
11116
11131
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
11117
11132
  # initiator: {
11118
- # display_name: "display-name",
11133
+ # display_name: "ownder-display-name",
11119
11134
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11120
11135
  # },
11121
11136
  # key: "JavaFile",
11122
11137
  # owner: {
11123
- # display_name: "display-name",
11124
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11138
+ # display_name: "mohanataws",
11139
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11125
11140
  # },
11126
11141
  # storage_class: "STANDARD",
11127
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
11142
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
11128
11143
  # },
11129
11144
  # {
11130
11145
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
11131
11146
  # initiator: {
11132
- # display_name: "display-name",
11147
+ # display_name: "ownder-display-name",
11133
11148
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11134
11149
  # },
11135
11150
  # key: "JavaFile",
11136
11151
  # owner: {
11137
- # display_name: "display-name",
11152
+ # display_name: "ownder-display-name",
11138
11153
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11139
11154
  # },
11140
11155
  # storage_class: "STANDARD",
11141
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11156
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11142
11157
  # },
11143
11158
  # ],
11144
11159
  # }
11145
11160
  #
11146
- # @example Example: List next set of multipart uploads when previous result is truncated
11161
+ # @example Example: To list in-progress multipart uploads on a bucket
11147
11162
  #
11148
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
11149
- # # setup of multipart uploads.
11163
+ # # The following example lists in-progress multipart uploads on a specific bucket.
11150
11164
  #
11151
11165
  # resp = client.list_multipart_uploads({
11152
11166
  # bucket: "examplebucket",
11153
- # key_marker: "nextkeyfrompreviousresponse",
11154
- # max_uploads: 2,
11155
- # upload_id_marker: "valuefrompreviousresponse",
11156
11167
  # })
11157
11168
  #
11158
11169
  # resp.to_h outputs the following:
11159
11170
  # {
11160
- # bucket: "acl1",
11161
- # is_truncated: true,
11162
- # key_marker: "",
11163
- # max_uploads: 2,
11164
- # next_key_marker: "someobjectkey",
11165
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11166
- # upload_id_marker: "",
11167
11171
  # uploads: [
11168
11172
  # {
11169
11173
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
11170
11174
  # initiator: {
11171
- # display_name: "ownder-display-name",
11175
+ # display_name: "display-name",
11172
11176
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11173
11177
  # },
11174
11178
  # key: "JavaFile",
11175
11179
  # owner: {
11176
- # display_name: "mohanataws",
11177
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11180
+ # display_name: "display-name",
11181
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11178
11182
  # },
11179
11183
  # storage_class: "STANDARD",
11180
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
11184
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
11181
11185
  # },
11182
11186
  # {
11183
11187
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
11184
11188
  # initiator: {
11185
- # display_name: "ownder-display-name",
11189
+ # display_name: "display-name",
11186
11190
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11187
11191
  # },
11188
11192
  # key: "JavaFile",
11189
11193
  # owner: {
11190
- # display_name: "ownder-display-name",
11194
+ # display_name: "display-name",
11191
11195
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
11192
11196
  # },
11193
11197
  # storage_class: "STANDARD",
11194
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11198
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
11195
11199
  # },
11196
11200
  # ],
11197
11201
  # }
@@ -12568,7 +12572,6 @@ module Aws::S3
12568
12572
  # General Reference.
12569
12573
  #
12570
12574
  # </note>
12571
- #
12572
12575
  # For example, the following `x-amz-grant-write` header grants
12573
12576
  # create, overwrite, and delete objects permission to LogDelivery
12574
12577
  # group predefined by Amazon S3 and two Amazon Web Services accounts
@@ -12809,14 +12812,12 @@ module Aws::S3
12809
12812
  # * *Code: InvalidArgument*
12810
12813
  #
12811
12814
  # * *Cause: Invalid argument.*
12812
- #
12813
12815
  # * * *HTTP Error: HTTP 400 Bad Request*
12814
12816
  #
12815
12817
  # * *Code: TooManyConfigurations*
12816
12818
  #
12817
12819
  # * *Cause: You are attempting to create a new configuration but have
12818
12820
  # already reached the 1,000-configuration limit.*
12819
- #
12820
12821
  # * * *HTTP Error: HTTP 403 Forbidden*
12821
12822
  #
12822
12823
  # * *Code: AccessDenied*
@@ -13118,7 +13119,6 @@ module Aws::S3
13118
13119
  # encryption][3] to SSE-KMS, you should verify that your KMS key ID
13119
13120
  # is correct. Amazon S3 doesn't validate the KMS key ID provided in
13120
13121
  # PutBucketEncryption requests.
13121
- #
13122
13122
  # * <b>Directory buckets </b> - You can optionally configure default
13123
13123
  # encryption for a bucket by using server-side encryption with Key
13124
13124
  # Management Service (KMS) keys (SSE-KMS).
@@ -15690,7 +15690,6 @@ module Aws::S3
15690
15690
  # * <b> <code>s3:PutObjectTagging</code> </b> - To successfully set
15691
15691
  # the tag-set with your `PutObject` request, you must have the
15692
15692
  # `s3:PutObjectTagging`.
15693
- #
15694
15693
  # * **Directory bucket permissions** - To grant access to this API
15695
15694
  # operation on a directory bucket, we recommend that you use the [
15696
15695
  # `CreateSession` ][5] API operation for session-based
@@ -16364,76 +16363,81 @@ module Aws::S3
16364
16363
  # * {Types::PutObjectOutput#request_charged #request_charged} => String
16365
16364
  #
16366
16365
  #
16367
- # @example Example: To create an object.
16366
+ # @example Example: To upload an object and specify optional tags
16368
16367
  #
16369
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
16368
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
16369
+ # # S3 returns version ID of the newly created object.
16370
16370
  #
16371
16371
  # resp = client.put_object({
16372
- # body: "filetoupload",
16372
+ # body: "c:\\HappyFace.jpg",
16373
16373
  # bucket: "examplebucket",
16374
- # key: "objectkey",
16374
+ # key: "HappyFace.jpg",
16375
+ # tagging: "key1=value1&key2=value2",
16375
16376
  # })
16376
16377
  #
16377
16378
  # resp.to_h outputs the following:
16378
16379
  # {
16379
16380
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16380
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
16381
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
16381
16382
  # }
16382
16383
  #
16383
- # @example Example: To upload object and specify user-defined metadata
16384
+ # @example Example: To upload an object and specify canned ACL.
16384
16385
  #
16385
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
16386
- # # enabled, S3 returns version ID in response.
16386
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
16387
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
16387
16388
  #
16388
16389
  # resp = client.put_object({
16390
+ # acl: "authenticated-read",
16389
16391
  # body: "filetoupload",
16390
16392
  # bucket: "examplebucket",
16391
16393
  # key: "exampleobject",
16392
- # metadata: {
16393
- # "metadata1" => "value1",
16394
- # "metadata2" => "value2",
16395
- # },
16396
16394
  # })
16397
16395
  #
16398
16396
  # resp.to_h outputs the following:
16399
16397
  # {
16400
16398
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16401
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
16399
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
16402
16400
  # }
16403
16401
  #
16404
- # @example Example: To upload an object
16402
+ # @example Example: To upload an object and specify server-side encryption and object tags
16405
16403
  #
16406
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
16407
- # # syntax. S3 returns VersionId of the newly created object.
16404
+ # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
16405
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
16408
16406
  #
16409
16407
  # resp = client.put_object({
16410
- # body: "HappyFace.jpg",
16408
+ # body: "filetoupload",
16411
16409
  # bucket: "examplebucket",
16412
- # key: "HappyFace.jpg",
16410
+ # key: "exampleobject",
16411
+ # server_side_encryption: "AES256",
16412
+ # tagging: "key1=value1&key2=value2",
16413
16413
  # })
16414
16414
  #
16415
16415
  # resp.to_h outputs the following:
16416
16416
  # {
16417
16417
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16418
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
16418
+ # server_side_encryption: "AES256",
16419
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
16419
16420
  # }
16420
16421
  #
16421
- # @example Example: To upload an object and specify canned ACL.
16422
+ # @example Example: To upload object and specify user-defined metadata
16422
16423
  #
16423
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
16424
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
16424
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
16425
+ # # enabled, S3 returns version ID in response.
16425
16426
  #
16426
16427
  # resp = client.put_object({
16427
- # acl: "authenticated-read",
16428
16428
  # body: "filetoupload",
16429
16429
  # bucket: "examplebucket",
16430
16430
  # key: "exampleobject",
16431
+ # metadata: {
16432
+ # "metadata1" => "value1",
16433
+ # "metadata2" => "value2",
16434
+ # },
16431
16435
  # })
16432
16436
  #
16433
16437
  # resp.to_h outputs the following:
16434
16438
  # {
16435
16439
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16436
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
16440
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
16437
16441
  # }
16438
16442
  #
16439
16443
  # @example Example: To upload an object (specify optional headers)
@@ -16456,42 +16460,37 @@ module Aws::S3
16456
16460
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
16457
16461
  # }
16458
16462
  #
16459
- # @example Example: To upload an object and specify optional tags
16463
+ # @example Example: To create an object.
16460
16464
  #
16461
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
16462
- # # S3 returns version ID of the newly created object.
16465
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
16463
16466
  #
16464
16467
  # resp = client.put_object({
16465
- # body: "c:\\HappyFace.jpg",
16468
+ # body: "filetoupload",
16466
16469
  # bucket: "examplebucket",
16467
- # key: "HappyFace.jpg",
16468
- # tagging: "key1=value1&key2=value2",
16470
+ # key: "objectkey",
16469
16471
  # })
16470
16472
  #
16471
16473
  # resp.to_h outputs the following:
16472
16474
  # {
16473
16475
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16474
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
16476
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
16475
16477
  # }
16476
16478
  #
16477
- # @example Example: To upload an object and specify server-side encryption and object tags
16479
+ # @example Example: To upload an object
16478
16480
  #
16479
- # # The following example uploads an object. The request specifies the optional server-side encryption option. The request
16480
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
16481
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
16482
+ # # syntax. S3 returns VersionId of the newly created object.
16481
16483
  #
16482
16484
  # resp = client.put_object({
16483
- # body: "filetoupload",
16485
+ # body: "HappyFace.jpg",
16484
16486
  # bucket: "examplebucket",
16485
- # key: "exampleobject",
16486
- # server_side_encryption: "AES256",
16487
- # tagging: "key1=value1&key2=value2",
16487
+ # key: "HappyFace.jpg",
16488
16488
  # })
16489
16489
  #
16490
16490
  # resp.to_h outputs the following:
16491
16491
  # {
16492
16492
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
16493
- # server_side_encryption: "AES256",
16494
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
16493
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
16495
16494
  # }
16496
16495
  #
16497
16496
  # @example Streaming a file from disk
@@ -16655,7 +16654,6 @@ module Aws::S3
16655
16654
  # General Reference.
16656
16655
  #
16657
16656
  # </note>
16658
- #
16659
16657
  # For example, the following `x-amz-grant-read` header grants list
16660
16658
  # objects permission to the two Amazon Web Services accounts
16661
16659
  # identified by their email addresses.
@@ -17761,7 +17759,6 @@ module Aws::S3
17761
17759
  # * *HTTP Status Code: 409 Conflict*
17762
17760
  #
17763
17761
  # * *SOAP Fault Code Prefix: Client*
17764
- #
17765
17762
  # * * *Code: GlacierExpeditedRetrievalNotAvailable*
17766
17763
  #
17767
17764
  # * *Cause: expedited retrievals are currently not available. Try
@@ -18548,7 +18545,6 @@ module Aws::S3
18548
18545
  # * x-amz-server-side-encryption-customer-key
18549
18546
  #
18550
18547
  # * x-amz-server-side-encryption-customer-key-MD5
18551
- #
18552
18548
  # For more information, see [Using Server-Side Encryption][11] in
18553
18549
  # the *Amazon S3 User Guide*.
18554
18550
  #
@@ -18949,7 +18945,6 @@ module Aws::S3
18949
18945
  # permissions required to use the multipart upload API, see
18950
18946
  # [Multipart upload and permissions][8] and [Multipart upload API
18951
18947
  # and permissions][9] in the *Amazon S3 User Guide*.
18952
- #
18953
18948
  # * **Directory bucket permissions** - You must have permissions in a
18954
18949
  # bucket policy or an IAM identity-based policy based on the source
18955
18950
  # and destination bucket types in an `UploadPartCopy` operation.
@@ -18967,7 +18962,6 @@ module Aws::S3
18967
18962
  # `Action` element of a policy to write the object to the
18968
18963
  # destination. The `s3express:SessionMode` condition key cannot be
18969
18964
  # set to `ReadOnly` on the copy destination.
18970
- #
18971
18965
  # If the object is encrypted with SSE-KMS, you must also have the
18972
18966
  # `kms:GenerateDataKey` and `kms:Decrypt` permissions in IAM
18973
18967
  # identity-based policies and KMS key policies for the KMS key.
@@ -19012,7 +19006,6 @@ module Aws::S3
19012
19006
  # been aborted or completed.
19013
19007
  #
19014
19008
  # * HTTP Status Code: 404 Not Found
19015
- #
19016
19009
  # * Error Code: `InvalidRequest`
19017
19010
  #
19018
19011
  # * Description: The specified copy source is not supported as a
@@ -19345,45 +19338,45 @@ module Aws::S3
19345
19338
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
19346
19339
  #
19347
19340
  #
19348
- # @example Example: To upload a part by copying byte range from an existing object as data source
19341
+ # @example Example: To upload a part by copying data from an existing object as data source
19349
19342
  #
19350
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
19351
- # # data source.
19343
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
19352
19344
  #
19353
19345
  # resp = client.upload_part_copy({
19354
19346
  # bucket: "examplebucket",
19355
19347
  # copy_source: "/bucketname/sourceobjectkey",
19356
- # copy_source_range: "bytes=1-100000",
19357
19348
  # key: "examplelargeobject",
19358
- # part_number: 2,
19349
+ # part_number: 1,
19359
19350
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
19360
19351
  # })
19361
19352
  #
19362
19353
  # resp.to_h outputs the following:
19363
19354
  # {
19364
19355
  # copy_part_result: {
19365
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
19366
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
19356
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
19357
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
19367
19358
  # },
19368
19359
  # }
19369
19360
  #
19370
- # @example Example: To upload a part by copying data from an existing object as data source
19361
+ # @example Example: To upload a part by copying byte range from an existing object as data source
19371
19362
  #
19372
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
19363
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
19364
+ # # data source.
19373
19365
  #
19374
19366
  # resp = client.upload_part_copy({
19375
19367
  # bucket: "examplebucket",
19376
19368
  # copy_source: "/bucketname/sourceobjectkey",
19369
+ # copy_source_range: "bytes=1-100000",
19377
19370
  # key: "examplelargeobject",
19378
- # part_number: 1,
19371
+ # part_number: 2,
19379
19372
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
19380
19373
  # })
19381
19374
  #
19382
19375
  # resp.to_h outputs the following:
19383
19376
  # {
19384
19377
  # copy_part_result: {
19385
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
19386
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
19378
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
19379
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
19387
19380
  # },
19388
19381
  # }
19389
19382
  #
@@ -19845,7 +19838,7 @@ module Aws::S3
19845
19838
  tracer: tracer
19846
19839
  )
19847
19840
  context[:gem_name] = 'aws-sdk-s3'
19848
- context[:gem_version] = '1.169.0'
19841
+ context[:gem_version] = '1.172.0'
19849
19842
  Seahorse::Client::Request.new(handlers, context)
19850
19843
  end
19851
19844