aws-sdk-s3 1.110.0 → 1.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e565abf549e32aa9f2e9b6bb3847e1e47237f91225e3f31fd957aa0aad0a2856
4
- data.tar.gz: 2cc3ac8fafd297d924a1c760450115260e9bede4b92ccbc4a6c7bb7eab9374f9
3
+ metadata.gz: 836c0975a25016a81431db0aaf836b2e00850b9d9637048af315a4b52f47faea
4
+ data.tar.gz: b3bdc347d52a4c1a5b55de0f4b4e7b135c1ee126b925830da064ae0f16f8daed
5
5
  SHA512:
6
- metadata.gz: f641db7ec97d9d81e0d205b33332ed563418f923229b05ca9435ea6d25c7e7674beaec3ff21e75e2ad7b203c7f8edd5a9fc0290f2d08da8215693235afbff94e
7
- data.tar.gz: 4cbb0107f52d0f4bdbeeadeb61704aea3df58758ed6a9fffa7c913a824017afc23108af848eb8cdbf14d1d5d1af9ea8c5bf57fed911b16fe0b7fedd241f50777
6
+ metadata.gz: 4783f312dfbb9c4a354155da813f5c93318129074b9eb261c0141d36b620d826586f361184ca2d2dfefb96d3bf81c3b6d280a6471968c016154ef35609dc6d0d
7
+ data.tar.gz: e29211393f2975bf4582cc4b577acde18e03195b919b34101f88bcfea32045c77b0073f20dfa89e2479acf4202dc286a0e189a6424a4c57b7219253eb932a08f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.111.0 (2022-01-04)
5
+ ------------------
6
+
7
+ * Feature - Minor doc-based updates based on feedback bugs received.
8
+
4
9
  1.110.0 (2021-12-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.110.0
1
+ 1.111.0
@@ -1378,12 +1378,12 @@ module Aws::S3
1378
1378
  # configure the bucket ACL to specify the accounts or groups that should
1379
1379
  # be granted specific permissions on the bucket.
1380
1380
  #
1381
- # If your CreateBucket request includes the `BucketOwnerEnforced` value
1382
- # for the `x-amz-object-ownership` header, your request can either not
1383
- # specify an ACL or specify bucket owner full control ACLs, such as the
1384
- # `bucket-owner-full-control` canned ACL or an equivalent ACL expressed
1385
- # in the XML format. For more information, see [Controlling object
1386
- # ownership][5] in the *Amazon S3 User Guide*.
1381
+ # If your CreateBucket request sets bucket owner enforced for S3 Object
1382
+ # Ownership and specifies a bucket ACL that provides access to an
1383
+ # external Amazon Web Services account, your request fails with a `400`
1384
+ # error and returns the `InvalidBucketAclWithObjectOwnership` error
1385
+ # code. For more information, see [Controlling object ownership][5] in
1386
+ # the *Amazon S3 User Guide*.
1387
1387
  #
1388
1388
  # There are two ways to grant the appropriate permissions using the
1389
1389
  # request headers.
@@ -2976,6 +2976,15 @@ module Aws::S3
2976
2976
  # * {Types::DeleteObjectOutput#request_charged #request_charged} => String
2977
2977
  #
2978
2978
  #
2979
+ # @example Example: To delete an object (from a non-versioned bucket)
2980
+ #
2981
+ # # The following example deletes an object from a non-versioned bucket.
2982
+ #
2983
+ # resp = client.delete_object({
2984
+ # bucket: "ExampleBucket",
2985
+ # key: "HappyFace.jpg",
2986
+ # })
2987
+ #
2979
2988
  # @example Example: To delete an object
2980
2989
  #
2981
2990
  # # The following example deletes an object from an S3 bucket.
@@ -2989,15 +2998,6 @@ module Aws::S3
2989
2998
  # {
2990
2999
  # }
2991
3000
  #
2992
- # @example Example: To delete an object (from a non-versioned bucket)
2993
- #
2994
- # # The following example deletes an object from a non-versioned bucket.
2995
- #
2996
- # resp = client.delete_object({
2997
- # bucket: "ExampleBucket",
2998
- # key: "HappyFace.jpg",
2999
- # })
3000
- #
3001
3001
  # @example Request syntax with placeholder values
3002
3002
  #
3003
3003
  # resp = client.delete_object({
@@ -5543,49 +5543,49 @@ module Aws::S3
5543
5543
  # * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
5544
5544
  #
5545
5545
  #
5546
- # @example Example: To retrieve an object
5546
+ # @example Example: To retrieve a byte range of an object
5547
5547
  #
5548
- # # The following example retrieves an object for an S3 bucket.
5548
+ # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5549
+ # # specific byte range.
5549
5550
  #
5550
5551
  # resp = client.get_object({
5551
5552
  # bucket: "examplebucket",
5552
- # key: "HappyFace.jpg",
5553
+ # key: "SampleFile.txt",
5554
+ # range: "bytes=0-9",
5553
5555
  # })
5554
5556
  #
5555
5557
  # resp.to_h outputs the following:
5556
5558
  # {
5557
5559
  # accept_ranges: "bytes",
5558
- # content_length: 3191,
5559
- # content_type: "image/jpeg",
5560
- # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5561
- # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5560
+ # content_length: 10,
5561
+ # content_range: "bytes 0-9/43",
5562
+ # content_type: "text/plain",
5563
+ # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5564
+ # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5562
5565
  # metadata: {
5563
5566
  # },
5564
- # tag_count: 2,
5565
5567
  # version_id: "null",
5566
5568
  # }
5567
5569
  #
5568
- # @example Example: To retrieve a byte range of an object
5570
+ # @example Example: To retrieve an object
5569
5571
  #
5570
- # # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
5571
- # # specific byte range.
5572
+ # # The following example retrieves an object for an S3 bucket.
5572
5573
  #
5573
5574
  # resp = client.get_object({
5574
5575
  # bucket: "examplebucket",
5575
- # key: "SampleFile.txt",
5576
- # range: "bytes=0-9",
5576
+ # key: "HappyFace.jpg",
5577
5577
  # })
5578
5578
  #
5579
5579
  # resp.to_h outputs the following:
5580
5580
  # {
5581
5581
  # accept_ranges: "bytes",
5582
- # content_length: 10,
5583
- # content_range: "bytes 0-9/43",
5584
- # content_type: "text/plain",
5585
- # etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
5586
- # last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
5582
+ # content_length: 3191,
5583
+ # content_type: "image/jpeg",
5584
+ # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
5585
+ # last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
5587
5586
  # metadata: {
5588
5587
  # },
5588
+ # tag_count: 2,
5589
5589
  # version_id: "null",
5590
5590
  # }
5591
5591
  #
@@ -6142,49 +6142,49 @@ module Aws::S3
6142
6142
  # * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
6143
6143
  #
6144
6144
  #
6145
- # @example Example: To retrieve tag set of a specific object version
6145
+ # @example Example: To retrieve tag set of an object
6146
6146
  #
6147
- # # The following example retrieves tag set of an object. The request specifies object version.
6147
+ # # The following example retrieves tag set of an object.
6148
6148
  #
6149
6149
  # resp = client.get_object_tagging({
6150
6150
  # bucket: "examplebucket",
6151
- # key: "exampleobject",
6152
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6151
+ # key: "HappyFace.jpg",
6153
6152
  # })
6154
6153
  #
6155
6154
  # resp.to_h outputs the following:
6156
6155
  # {
6157
6156
  # tag_set: [
6158
6157
  # {
6159
- # key: "Key1",
6160
- # value: "Value1",
6158
+ # key: "Key4",
6159
+ # value: "Value4",
6160
+ # },
6161
+ # {
6162
+ # key: "Key3",
6163
+ # value: "Value3",
6161
6164
  # },
6162
6165
  # ],
6163
- # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6166
+ # version_id: "null",
6164
6167
  # }
6165
6168
  #
6166
- # @example Example: To retrieve tag set of an object
6169
+ # @example Example: To retrieve tag set of a specific object version
6167
6170
  #
6168
- # # The following example retrieves tag set of an object.
6171
+ # # The following example retrieves tag set of an object. The request specifies object version.
6169
6172
  #
6170
6173
  # resp = client.get_object_tagging({
6171
6174
  # bucket: "examplebucket",
6172
- # key: "HappyFace.jpg",
6175
+ # key: "exampleobject",
6176
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6173
6177
  # })
6174
6178
  #
6175
6179
  # resp.to_h outputs the following:
6176
6180
  # {
6177
6181
  # tag_set: [
6178
6182
  # {
6179
- # key: "Key4",
6180
- # value: "Value4",
6181
- # },
6182
- # {
6183
- # key: "Key3",
6184
- # value: "Value3",
6183
+ # key: "Key1",
6184
+ # value: "Value1",
6185
6185
  # },
6186
6186
  # ],
6187
- # version_id: "null",
6187
+ # version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
6188
6188
  # }
6189
6189
  #
6190
6190
  # @example Request syntax with placeholder values
@@ -6605,18 +6605,8 @@ module Aws::S3
6605
6605
  # The object key.
6606
6606
  #
6607
6607
  # @option params [String] :range
6608
- # Downloads the specified range bytes of an object. For more information
6609
- # about the HTTP Range header, see
6610
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
6611
- #
6612
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
6613
- # `GET` request.
6614
- #
6615
- # </note>
6616
- #
6617
- #
6618
- #
6619
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
6608
+ # Because `HeadObject` returns only the metadata for an object, this
6609
+ # parameter has no effect.
6620
6610
  #
6621
6611
  # @option params [String] :version_id
6622
6612
  # VersionId used to reference a specific version of the object.
@@ -7368,97 +7358,97 @@ module Aws::S3
7368
7358
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7369
7359
  #
7370
7360
  #
7371
- # @example Example: To list in-progress multipart uploads on a bucket
7361
+ # @example Example: List next set of multipart uploads when previous result is truncated
7372
7362
  #
7373
- # # The following example lists in-progress multipart uploads on a specific bucket.
7363
+ # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7364
+ # # setup of multipart uploads.
7374
7365
  #
7375
7366
  # resp = client.list_multipart_uploads({
7376
7367
  # bucket: "examplebucket",
7368
+ # key_marker: "nextkeyfrompreviousresponse",
7369
+ # max_uploads: 2,
7370
+ # upload_id_marker: "valuefrompreviousresponse",
7377
7371
  # })
7378
7372
  #
7379
7373
  # resp.to_h outputs the following:
7380
7374
  # {
7375
+ # bucket: "acl1",
7376
+ # is_truncated: true,
7377
+ # key_marker: "",
7378
+ # max_uploads: 2,
7379
+ # next_key_marker: "someobjectkey",
7380
+ # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7381
+ # upload_id_marker: "",
7381
7382
  # uploads: [
7382
7383
  # {
7383
7384
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7384
7385
  # initiator: {
7385
- # display_name: "display-name",
7386
+ # display_name: "ownder-display-name",
7386
7387
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7387
7388
  # },
7388
7389
  # key: "JavaFile",
7389
7390
  # owner: {
7390
- # display_name: "display-name",
7391
- # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7391
+ # display_name: "mohanataws",
7392
+ # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7392
7393
  # },
7393
7394
  # storage_class: "STANDARD",
7394
- # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7395
+ # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7395
7396
  # },
7396
7397
  # {
7397
7398
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7398
7399
  # initiator: {
7399
- # display_name: "display-name",
7400
+ # display_name: "ownder-display-name",
7400
7401
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7401
7402
  # },
7402
7403
  # key: "JavaFile",
7403
7404
  # owner: {
7404
- # display_name: "display-name",
7405
+ # display_name: "ownder-display-name",
7405
7406
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7406
7407
  # },
7407
7408
  # storage_class: "STANDARD",
7408
- # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7409
+ # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7409
7410
  # },
7410
7411
  # ],
7411
7412
  # }
7412
7413
  #
7413
- # @example Example: List next set of multipart uploads when previous result is truncated
7414
+ # @example Example: To list in-progress multipart uploads on a bucket
7414
7415
  #
7415
- # # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
7416
- # # setup of multipart uploads.
7416
+ # # The following example lists in-progress multipart uploads on a specific bucket.
7417
7417
  #
7418
7418
  # resp = client.list_multipart_uploads({
7419
7419
  # bucket: "examplebucket",
7420
- # key_marker: "nextkeyfrompreviousresponse",
7421
- # max_uploads: 2,
7422
- # upload_id_marker: "valuefrompreviousresponse",
7423
7420
  # })
7424
7421
  #
7425
7422
  # resp.to_h outputs the following:
7426
7423
  # {
7427
- # bucket: "acl1",
7428
- # is_truncated: true,
7429
- # key_marker: "",
7430
- # max_uploads: 2,
7431
- # next_key_marker: "someobjectkey",
7432
- # next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7433
- # upload_id_marker: "",
7434
7424
  # uploads: [
7435
7425
  # {
7436
7426
  # initiated: Time.parse("2014-05-01T05:40:58.000Z"),
7437
7427
  # initiator: {
7438
- # display_name: "ownder-display-name",
7428
+ # display_name: "display-name",
7439
7429
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7440
7430
  # },
7441
7431
  # key: "JavaFile",
7442
7432
  # owner: {
7443
- # display_name: "mohanataws",
7444
- # id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7433
+ # display_name: "display-name",
7434
+ # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7445
7435
  # },
7446
7436
  # storage_class: "STANDARD",
7447
- # upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7437
+ # upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
7448
7438
  # },
7449
7439
  # {
7450
7440
  # initiated: Time.parse("2014-05-01T05:41:27.000Z"),
7451
7441
  # initiator: {
7452
- # display_name: "ownder-display-name",
7442
+ # display_name: "display-name",
7453
7443
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7454
7444
  # },
7455
7445
  # key: "JavaFile",
7456
7446
  # owner: {
7457
- # display_name: "ownder-display-name",
7447
+ # display_name: "display-name",
7458
7448
  # id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
7459
7449
  # },
7460
7450
  # storage_class: "STANDARD",
7461
- # upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7451
+ # upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
7462
7452
  # },
7463
7453
  # ],
7464
7454
  # }
@@ -11366,114 +11356,114 @@ module Aws::S3
11366
11356
  # version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
11367
11357
  # }
11368
11358
  #
11369
- # @example Example: To upload an object and specify canned ACL.
11359
+ # @example Example: To upload an object and specify server-side encryption and object tags
11370
11360
  #
11371
- # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11372
- # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11361
+ # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11362
+ # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11373
11363
  #
11374
11364
  # resp = client.put_object({
11375
- # acl: "authenticated-read",
11376
11365
  # body: "filetoupload",
11377
11366
  # bucket: "examplebucket",
11378
11367
  # key: "exampleobject",
11368
+ # server_side_encryption: "AES256",
11369
+ # tagging: "key1=value1&key2=value2",
11379
11370
  # })
11380
11371
  #
11381
11372
  # resp.to_h outputs the following:
11382
11373
  # {
11383
11374
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11384
- # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11375
+ # server_side_encryption: "AES256",
11376
+ # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11385
11377
  # }
11386
11378
  #
11387
- # @example Example: To upload an object
11379
+ # @example Example: To create an object.
11388
11380
  #
11389
- # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11390
- # # syntax. S3 returns VersionId of the newly created object.
11381
+ # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11391
11382
  #
11392
11383
  # resp = client.put_object({
11393
- # body: "HappyFace.jpg",
11384
+ # body: "filetoupload",
11394
11385
  # bucket: "examplebucket",
11395
- # key: "HappyFace.jpg",
11386
+ # key: "objectkey",
11396
11387
  # })
11397
11388
  #
11398
11389
  # resp.to_h outputs the following:
11399
11390
  # {
11400
11391
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11401
- # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11392
+ # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11402
11393
  # }
11403
11394
  #
11404
- # @example Example: To upload an object and specify optional tags
11395
+ # @example Example: To upload object and specify user-defined metadata
11405
11396
  #
11406
- # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
11407
- # # S3 returns version ID of the newly created object.
11397
+ # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11398
+ # # enabled, S3 returns version ID in response.
11408
11399
  #
11409
11400
  # resp = client.put_object({
11410
- # body: "c:\\HappyFace.jpg",
11401
+ # body: "filetoupload",
11411
11402
  # bucket: "examplebucket",
11412
- # key: "HappyFace.jpg",
11413
- # tagging: "key1=value1&key2=value2",
11403
+ # key: "exampleobject",
11404
+ # metadata: {
11405
+ # "metadata1" => "value1",
11406
+ # "metadata2" => "value2",
11407
+ # },
11414
11408
  # })
11415
11409
  #
11416
11410
  # resp.to_h outputs the following:
11417
11411
  # {
11418
11412
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11419
- # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11413
+ # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11420
11414
  # }
11421
11415
  #
11422
- # @example Example: To upload object and specify user-defined metadata
11416
+ # @example Example: To upload an object and specify canned ACL.
11423
11417
  #
11424
- # # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
11425
- # # enabled, S3 returns version ID in response.
11418
+ # # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
11419
+ # # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
11426
11420
  #
11427
11421
  # resp = client.put_object({
11422
+ # acl: "authenticated-read",
11428
11423
  # body: "filetoupload",
11429
11424
  # bucket: "examplebucket",
11430
11425
  # key: "exampleobject",
11431
- # metadata: {
11432
- # "metadata1" => "value1",
11433
- # "metadata2" => "value2",
11434
- # },
11435
11426
  # })
11436
11427
  #
11437
11428
  # resp.to_h outputs the following:
11438
11429
  # {
11439
11430
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11440
- # version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
11431
+ # version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
11441
11432
  # }
11442
11433
  #
11443
- # @example Example: To upload an object and specify server-side encryption and object tags
11434
+ # @example Example: To upload an object
11444
11435
  #
11445
- # # The following example uploads and object. The request specifies the optional server-side encryption option. The request
11446
- # # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
11436
+ # # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
11437
+ # # syntax. S3 returns VersionId of the newly created object.
11447
11438
  #
11448
11439
  # resp = client.put_object({
11449
- # body: "filetoupload",
11440
+ # body: "HappyFace.jpg",
11450
11441
  # bucket: "examplebucket",
11451
- # key: "exampleobject",
11452
- # server_side_encryption: "AES256",
11453
- # tagging: "key1=value1&key2=value2",
11442
+ # key: "HappyFace.jpg",
11454
11443
  # })
11455
11444
  #
11456
11445
  # resp.to_h outputs the following:
11457
11446
  # {
11458
11447
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11459
- # server_side_encryption: "AES256",
11460
- # version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
11448
+ # version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
11461
11449
  # }
11462
11450
  #
11463
- # @example Example: To create an object.
11451
+ # @example Example: To upload an object and specify optional tags
11464
11452
  #
11465
- # # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
11453
+ # # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
11454
+ # # S3 returns version ID of the newly created object.
11466
11455
  #
11467
11456
  # resp = client.put_object({
11468
- # body: "filetoupload",
11457
+ # body: "c:\\HappyFace.jpg",
11469
11458
  # bucket: "examplebucket",
11470
- # key: "objectkey",
11459
+ # key: "HappyFace.jpg",
11460
+ # tagging: "key1=value1&key2=value2",
11471
11461
  # })
11472
11462
  #
11473
11463
  # resp.to_h outputs the following:
11474
11464
  # {
11475
11465
  # etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
11476
- # version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
11466
+ # version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
11477
11467
  # }
11478
11468
  #
11479
11469
  # @example Streaming a file from disk
@@ -12871,10 +12861,11 @@ module Aws::S3
12871
12861
  # This action is not supported by Amazon S3 on Outposts.
12872
12862
  #
12873
12863
  # For more information about Amazon S3 Select, see [Selecting Content
12874
- # from Objects][1] in the *Amazon S3 User Guide*.
12864
+ # from Objects][1] and [SELECT Command][2] in the *Amazon S3 User
12865
+ # Guide*.
12875
12866
  #
12876
12867
  # For more information about using SQL with Amazon S3 Select, see [ SQL
12877
- # Reference for Amazon S3 Select and S3 Glacier Select][2] in the
12868
+ # Reference for Amazon S3 Select and S3 Glacier Select][3] in the
12878
12869
  # *Amazon S3 User Guide*.
12879
12870
  #
12880
12871
  #
@@ -12883,7 +12874,7 @@ module Aws::S3
12883
12874
  #
12884
12875
  # You must have `s3:GetObject` permission for this operation. Amazon S3
12885
12876
  # Select does not support anonymous access. For more information about
12886
- # permissions, see [Specifying Permissions in a Policy][3] in the
12877
+ # permissions, see [Specifying Permissions in a Policy][4] in the
12887
12878
  # *Amazon S3 User Guide*.
12888
12879
  #
12889
12880
  #
@@ -12910,70 +12901,71 @@ module Aws::S3
12910
12901
  #
12911
12902
  # For objects that are encrypted with customer-provided encryption
12912
12903
  # keys (SSE-C), you must use HTTPS, and you must use the headers that
12913
- # are documented in the [GetObject][4]. For more information about
12904
+ # are documented in the [GetObject][5]. For more information about
12914
12905
  # SSE-C, see [Server-Side Encryption (Using Customer-Provided
12915
- # Encryption Keys)][5] in the *Amazon S3 User Guide*.
12906
+ # Encryption Keys)][6] in the *Amazon S3 User Guide*.
12916
12907
  #
12917
12908
  # For objects that are encrypted with Amazon S3 managed encryption
12918
12909
  # keys (SSE-S3) and Amazon Web Services KMS keys (SSE-KMS),
12919
12910
  # server-side encryption is handled transparently, so you don't need
12920
12911
  # to specify anything. For more information about server-side
12921
12912
  # encryption, including SSE-S3 and SSE-KMS, see [Protecting Data Using
12922
- # Server-Side Encryption][6] in the *Amazon S3 User Guide*.
12913
+ # Server-Side Encryption][7] in the *Amazon S3 User Guide*.
12923
12914
  #
12924
12915
  # **Working with the Response Body**
12925
12916
  #
12926
12917
  # Given the response size is unknown, Amazon S3 Select streams the
12927
12918
  # response as a series of messages and includes a `Transfer-Encoding`
12928
12919
  # header with `chunked` as its value in the response. For more
12929
- # information, see [Appendix: SelectObjectContent Response][7].
12920
+ # information, see [Appendix: SelectObjectContent Response][8].
12930
12921
  #
12931
12922
  #
12932
12923
  #
12933
12924
  # **GetObject Support**
12934
12925
  #
12935
12926
  # The `SelectObjectContent` action does not support the following
12936
- # `GetObject` functionality. For more information, see [GetObject][4].
12927
+ # `GetObject` functionality. For more information, see [GetObject][5].
12937
12928
  #
12938
12929
  # * `Range`\: Although you can specify a scan range for an Amazon S3
12939
- # Select request (see [SelectObjectContentRequest - ScanRange][8] in
12930
+ # Select request (see [SelectObjectContentRequest - ScanRange][9] in
12940
12931
  # the request parameters), you cannot specify the range of bytes of an
12941
12932
  # object to return.
12942
12933
  #
12943
12934
  # * GLACIER, DEEP\_ARCHIVE and REDUCED\_REDUNDANCY storage classes: You
12944
12935
  # cannot specify the GLACIER, DEEP\_ARCHIVE, or `REDUCED_REDUNDANCY`
12945
12936
  # storage classes. For more information, about storage classes see
12946
- # [Storage Classes][9] in the *Amazon S3 User Guide*.
12937
+ # [Storage Classes][10] in the *Amazon S3 User Guide*.
12947
12938
  #
12948
12939
  #
12949
12940
  #
12950
12941
  # **Special Errors**
12951
12942
  #
12952
12943
  # For a list of special errors for this operation, see [List of SELECT
12953
- # Object Content Error Codes][10]
12944
+ # Object Content Error Codes][11]
12954
12945
  #
12955
12946
  # **Related Resources**
12956
12947
  #
12957
- # * [GetObject][4]
12948
+ # * [GetObject][5]
12958
12949
  #
12959
- # * [GetBucketLifecycleConfiguration][11]
12950
+ # * [GetBucketLifecycleConfiguration][12]
12960
12951
  #
12961
- # * [PutBucketLifecycleConfiguration][12]
12952
+ # * [PutBucketLifecycleConfiguration][13]
12962
12953
  #
12963
12954
  #
12964
12955
  #
12965
12956
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/selecting-content-from-objects.html
12966
- # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html
12967
- # [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
12968
- # [4]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
12969
- # [5]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
12970
- # [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html
12971
- # [7]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTSelectObjectAppendix.html
12972
- # [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html#AmazonS3-SelectObjectContent-request-ScanRange
12973
- # [9]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#storage-class-intro
12974
- # [10]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#SelectObjectContentErrorCodeList
12975
- # [11]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html
12976
- # [12]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html
12957
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-glacier-select-sql-reference-select.html
12958
+ # [3]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference.html
12959
+ # [4]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
12960
+ # [5]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
12961
+ # [6]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
12962
+ # [7]: https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html
12963
+ # [8]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTSelectObjectAppendix.html
12964
+ # [9]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html#AmazonS3-SelectObjectContent-request-ScanRange
12965
+ # [10]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#storage-class-intro
12966
+ # [11]: https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#SelectObjectContentErrorCodeList
12967
+ # [12]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html
12968
+ # [13]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html
12977
12969
  #
12978
12970
  # @option params [required, String] :bucket
12979
12971
  # The S3 bucket.
@@ -13826,45 +13818,45 @@ module Aws::S3
13826
13818
  # * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
13827
13819
  #
13828
13820
  #
13829
- # @example Example: To upload a part by copying data from an existing object as data source
13821
+ # @example Example: To upload a part by copying byte range from an existing object as data source
13830
13822
  #
13831
- # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
13823
+ # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
13824
+ # # data source.
13832
13825
  #
13833
13826
  # resp = client.upload_part_copy({
13834
13827
  # bucket: "examplebucket",
13835
13828
  # copy_source: "/bucketname/sourceobjectkey",
13829
+ # copy_source_range: "bytes=1-100000",
13836
13830
  # key: "examplelargeobject",
13837
- # part_number: 1,
13831
+ # part_number: 2,
13838
13832
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
13839
13833
  # })
13840
13834
  #
13841
13835
  # resp.to_h outputs the following:
13842
13836
  # {
13843
13837
  # copy_part_result: {
13844
- # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
13845
- # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
13838
+ # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
13839
+ # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
13846
13840
  # },
13847
13841
  # }
13848
13842
  #
13849
- # @example Example: To upload a part by copying byte range from an existing object as data source
13843
+ # @example Example: To upload a part by copying data from an existing object as data source
13850
13844
  #
13851
- # # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
13852
- # # data source.
13845
+ # # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
13853
13846
  #
13854
13847
  # resp = client.upload_part_copy({
13855
13848
  # bucket: "examplebucket",
13856
13849
  # copy_source: "/bucketname/sourceobjectkey",
13857
- # copy_source_range: "bytes=1-100000",
13858
13850
  # key: "examplelargeobject",
13859
- # part_number: 2,
13851
+ # part_number: 1,
13860
13852
  # upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
13861
13853
  # })
13862
13854
  #
13863
13855
  # resp.to_h outputs the following:
13864
13856
  # {
13865
13857
  # copy_part_result: {
13866
- # etag: "\"65d16d19e65a7508a51f043180edcc36\"",
13867
- # last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
13858
+ # etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
13859
+ # last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
13868
13860
  # },
13869
13861
  # }
13870
13862
  #
@@ -14224,7 +14216,7 @@ module Aws::S3
14224
14216
  params: params,
14225
14217
  config: config)
14226
14218
  context[:gem_name] = 'aws-sdk-s3'
14227
- context[:gem_version] = '1.110.0'
14219
+ context[:gem_version] = '1.111.0'
14228
14220
  Seahorse::Client::Request.new(handlers, context)
14229
14221
  end
14230
14222
 
@@ -1481,18 +1481,8 @@ module Aws::S3
1481
1481
  # Return the object only if it has not been modified since the specified
1482
1482
  # time, otherwise return a 412 (precondition failed).
1483
1483
  # @option options [String] :range
1484
- # Downloads the specified range bytes of an object. For more information
1485
- # about the HTTP Range header, see
1486
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
1487
- #
1488
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
1489
- # `GET` request.
1490
- #
1491
- # </note>
1492
- #
1493
- #
1494
- #
1495
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
1484
+ # Because `HeadObject` returns only the metadata for an object, this
1485
+ # parameter has no effect.
1496
1486
  # @option options [String] :version_id
1497
1487
  # VersionId used to reference a specific version of the object.
1498
1488
  # @option options [String] :sse_customer_algorithm
@@ -402,18 +402,8 @@ module Aws::S3
402
402
  # Return the object only if it has not been modified since the specified
403
403
  # time, otherwise return a 412 (precondition failed).
404
404
  # @option options [String] :range
405
- # Downloads the specified range bytes of an object. For more information
406
- # about the HTTP Range header, see
407
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
408
- #
409
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
410
- # `GET` request.
411
- #
412
- # </note>
413
- #
414
- #
415
- #
416
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
405
+ # Because `HeadObject` returns only the metadata for an object, this
406
+ # parameter has no effect.
417
407
  # @option options [String] :sse_customer_algorithm
418
408
  # Specifies the algorithm to use to when encrypting the object (for
419
409
  # example, AES256).
@@ -6607,18 +6607,8 @@ module Aws::S3
6607
6607
  # @return [String]
6608
6608
  #
6609
6609
  # @!attribute [rw] range
6610
- # Downloads the specified range bytes of an object. For more
6611
- # information about the HTTP Range header, see
6612
- # [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35][1].
6613
- #
6614
- # <note markdown="1"> Amazon S3 doesn't support retrieving multiple ranges of data per
6615
- # `GET` request.
6616
- #
6617
- # </note>
6618
- #
6619
- #
6620
- #
6621
- # [1]: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35
6610
+ # Because `HeadObject` returns only the metadata for an object, this
6611
+ # parameter has no effect.
6622
6612
  # @return [String]
6623
6613
  #
6624
6614
  # @!attribute [rw] version_id
@@ -14375,9 +14365,13 @@ module Aws::S3
14375
14365
 
14376
14366
  # Describes the default server-side encryption to apply to new objects
14377
14367
  # in the bucket. If a PUT Object request doesn't specify any
14378
- # server-side encryption, this default encryption will be applied. For
14379
- # more information, see [PUT Bucket encryption][1] in the *Amazon S3 API
14380
- # Reference*.
14368
+ # server-side encryption, this default encryption will be applied. If
14369
+ # you don't specify a customer managed key at configuration, Amazon S3
14370
+ # automatically creates an Amazon Web Services KMS key in your Amazon
14371
+ # Web Services account the first time that you add an object encrypted
14372
+ # with SSE-KMS to a bucket. By default, Amazon S3 uses this KMS key for
14373
+ # SSE-KMS. For more information, see [PUT Bucket encryption][1] in the
14374
+ # *Amazon S3 API Reference*.
14381
14375
  #
14382
14376
  #
14383
14377
  #
@@ -14402,9 +14396,10 @@ module Aws::S3
14402
14396
  # `aws:kms`.
14403
14397
  #
14404
14398
  # You can specify the key ID or the Amazon Resource Name (ARN) of the
14405
- # KMS key. However, if you are using encryption with cross-account
14406
- # operations, you must use a fully qualified KMS key ARN. For more
14407
- # information, see [Using encryption for cross-account operations][1].
14399
+ # KMS key. However, if you are using encryption with cross-account or
14400
+ # Amazon Web Services service operations you must use a fully
14401
+ # qualified KMS key ARN. For more information, see [Using encryption
14402
+ # for cross-account operations][1].
14408
14403
  #
14409
14404
  # **For example:**
14410
14405
  #
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.110.0'
72
+ GEM_VERSION = '1.111.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.110.0
4
+ version: 1.111.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-12-21 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms