aws-sdk-s3 1.115.0 → 1.116.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +123 -123
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a37affcc1c5b8c466f58b8227c668d02e0689761034aedf7ab434b18ebcb663
|
4
|
+
data.tar.gz: 88e9255fdb4bc286987bc7eb3bca00194e62979995aaf3e093829c18ed973c05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b8da0027a4f659958495f44e8aaa252b3cfe33c0c433c098eb2c84ed89e68e001bbeeba3823e8cf8dae7ded272ada2246985e063424dae501d34ad4312c6dfb
|
7
|
+
data.tar.gz: bd3f5598566a60ab5a9100ad02a5095c84e61f9683483b99843f1d654771eedd075251039fcdbd73a45b2e3db5fd1736cef0290055010f42a6db01eb744b2bfa
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.116.0 (2022-10-21)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - S3 on Outposts launches support for automatic bucket-style alias. You can use the automatic access point alias instead of an access point ARN for any object-level operation in an Outposts bucket.
|
8
|
+
|
4
9
|
1.115.0 (2022-10-19)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.116.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -3223,35 +3223,35 @@ module Aws::S3
|
|
3223
3223
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
3224
3224
|
#
|
3225
3225
|
#
|
3226
|
-
# @example Example: To remove tag set from an object
|
3226
|
+
# @example Example: To remove tag set from an object version
|
3227
3227
|
#
|
3228
|
-
# # The following example removes tag set associated with the specified object.
|
3229
|
-
# #
|
3228
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
3229
|
+
# # object key and object version.
|
3230
3230
|
#
|
3231
3231
|
# resp = client.delete_object_tagging({
|
3232
3232
|
# bucket: "examplebucket",
|
3233
3233
|
# key: "HappyFace.jpg",
|
3234
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3234
3235
|
# })
|
3235
3236
|
#
|
3236
3237
|
# resp.to_h outputs the following:
|
3237
3238
|
# {
|
3238
|
-
# version_id: "
|
3239
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3239
3240
|
# }
|
3240
3241
|
#
|
3241
|
-
# @example Example: To remove tag set from an object
|
3242
|
+
# @example Example: To remove tag set from an object
|
3242
3243
|
#
|
3243
|
-
# # The following example removes tag set associated with the specified object
|
3244
|
-
# #
|
3244
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
3245
|
+
# # operation removes tag set from the latest object version.
|
3245
3246
|
#
|
3246
3247
|
# resp = client.delete_object_tagging({
|
3247
3248
|
# bucket: "examplebucket",
|
3248
3249
|
# key: "HappyFace.jpg",
|
3249
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3250
3250
|
# })
|
3251
3251
|
#
|
3252
3252
|
# resp.to_h outputs the following:
|
3253
3253
|
# {
|
3254
|
-
# version_id: "
|
3254
|
+
# version_id: "null",
|
3255
3255
|
# }
|
3256
3256
|
#
|
3257
3257
|
# @example Request syntax with placeholder values
|
@@ -3410,20 +3410,22 @@ module Aws::S3
|
|
3410
3410
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
3411
3411
|
#
|
3412
3412
|
#
|
3413
|
-
# @example Example: To delete multiple
|
3413
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
3414
3414
|
#
|
3415
|
-
# # The following example deletes objects from a bucket. The
|
3416
|
-
# #
|
3415
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
3416
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
3417
3417
|
#
|
3418
3418
|
# resp = client.delete_objects({
|
3419
3419
|
# bucket: "examplebucket",
|
3420
3420
|
# delete: {
|
3421
3421
|
# objects: [
|
3422
3422
|
# {
|
3423
|
-
# key: "
|
3423
|
+
# key: "HappyFace.jpg",
|
3424
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3424
3425
|
# },
|
3425
3426
|
# {
|
3426
|
-
# key: "
|
3427
|
+
# key: "HappyFace.jpg",
|
3428
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3427
3429
|
# },
|
3428
3430
|
# ],
|
3429
3431
|
# quiet: false,
|
@@ -3434,34 +3436,30 @@ module Aws::S3
|
|
3434
3436
|
# {
|
3435
3437
|
# deleted: [
|
3436
3438
|
# {
|
3437
|
-
#
|
3438
|
-
#
|
3439
|
-
# key: "objectkey1",
|
3439
|
+
# key: "HappyFace.jpg",
|
3440
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3440
3441
|
# },
|
3441
3442
|
# {
|
3442
|
-
#
|
3443
|
-
#
|
3444
|
-
# key: "objectkey2",
|
3443
|
+
# key: "HappyFace.jpg",
|
3444
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3445
3445
|
# },
|
3446
3446
|
# ],
|
3447
3447
|
# }
|
3448
3448
|
#
|
3449
|
-
# @example Example: To delete multiple
|
3449
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
3450
3450
|
#
|
3451
|
-
# # The following example deletes objects from a bucket. The
|
3452
|
-
# #
|
3451
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
3452
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
3453
3453
|
#
|
3454
3454
|
# resp = client.delete_objects({
|
3455
3455
|
# bucket: "examplebucket",
|
3456
3456
|
# delete: {
|
3457
3457
|
# objects: [
|
3458
3458
|
# {
|
3459
|
-
# key: "
|
3460
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3459
|
+
# key: "objectkey1",
|
3461
3460
|
# },
|
3462
3461
|
# {
|
3463
|
-
# key: "
|
3464
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3462
|
+
# key: "objectkey2",
|
3465
3463
|
# },
|
3466
3464
|
# ],
|
3467
3465
|
# quiet: false,
|
@@ -3472,12 +3470,14 @@ module Aws::S3
|
|
3472
3470
|
# {
|
3473
3471
|
# deleted: [
|
3474
3472
|
# {
|
3475
|
-
#
|
3476
|
-
#
|
3473
|
+
# delete_marker: true,
|
3474
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
3475
|
+
# key: "objectkey1",
|
3477
3476
|
# },
|
3478
3477
|
# {
|
3479
|
-
#
|
3480
|
-
#
|
3478
|
+
# delete_marker: true,
|
3479
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
3480
|
+
# key: "objectkey2",
|
3481
3481
|
# },
|
3482
3482
|
# ],
|
3483
3483
|
# }
|
@@ -6582,49 +6582,49 @@ module Aws::S3
|
|
6582
6582
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
6583
6583
|
#
|
6584
6584
|
#
|
6585
|
-
# @example Example: To retrieve tag set of
|
6585
|
+
# @example Example: To retrieve tag set of an object
|
6586
6586
|
#
|
6587
|
-
# # The following example retrieves tag set of an object.
|
6587
|
+
# # The following example retrieves tag set of an object.
|
6588
6588
|
#
|
6589
6589
|
# resp = client.get_object_tagging({
|
6590
6590
|
# bucket: "examplebucket",
|
6591
|
-
# key: "
|
6592
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6591
|
+
# key: "HappyFace.jpg",
|
6593
6592
|
# })
|
6594
6593
|
#
|
6595
6594
|
# resp.to_h outputs the following:
|
6596
6595
|
# {
|
6597
6596
|
# tag_set: [
|
6598
6597
|
# {
|
6599
|
-
# key: "
|
6600
|
-
# value: "
|
6598
|
+
# key: "Key4",
|
6599
|
+
# value: "Value4",
|
6600
|
+
# },
|
6601
|
+
# {
|
6602
|
+
# key: "Key3",
|
6603
|
+
# value: "Value3",
|
6601
6604
|
# },
|
6602
6605
|
# ],
|
6603
|
-
# version_id: "
|
6606
|
+
# version_id: "null",
|
6604
6607
|
# }
|
6605
6608
|
#
|
6606
|
-
# @example Example: To retrieve tag set of
|
6609
|
+
# @example Example: To retrieve tag set of a specific object version
|
6607
6610
|
#
|
6608
|
-
# # The following example retrieves tag set of an object.
|
6611
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
6609
6612
|
#
|
6610
6613
|
# resp = client.get_object_tagging({
|
6611
6614
|
# bucket: "examplebucket",
|
6612
|
-
# key: "
|
6615
|
+
# key: "exampleobject",
|
6616
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6613
6617
|
# })
|
6614
6618
|
#
|
6615
6619
|
# resp.to_h outputs the following:
|
6616
6620
|
# {
|
6617
6621
|
# tag_set: [
|
6618
6622
|
# {
|
6619
|
-
# key: "
|
6620
|
-
# value: "
|
6621
|
-
# },
|
6622
|
-
# {
|
6623
|
-
# key: "Key3",
|
6624
|
-
# value: "Value3",
|
6623
|
+
# key: "Key1",
|
6624
|
+
# value: "Value1",
|
6625
6625
|
# },
|
6626
6626
|
# ],
|
6627
|
-
# version_id: "
|
6627
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6628
6628
|
# }
|
6629
6629
|
#
|
6630
6630
|
# @example Request syntax with placeholder values
|
@@ -7817,97 +7817,97 @@ module Aws::S3
|
|
7817
7817
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7818
7818
|
#
|
7819
7819
|
#
|
7820
|
-
# @example Example:
|
7820
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
7821
7821
|
#
|
7822
|
-
# # The following example
|
7822
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
7823
|
+
# # setup of multipart uploads.
|
7823
7824
|
#
|
7824
7825
|
# resp = client.list_multipart_uploads({
|
7825
7826
|
# bucket: "examplebucket",
|
7827
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
7828
|
+
# max_uploads: 2,
|
7829
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
7826
7830
|
# })
|
7827
7831
|
#
|
7828
7832
|
# resp.to_h outputs the following:
|
7829
7833
|
# {
|
7834
|
+
# bucket: "acl1",
|
7835
|
+
# is_truncated: true,
|
7836
|
+
# key_marker: "",
|
7837
|
+
# max_uploads: 2,
|
7838
|
+
# next_key_marker: "someobjectkey",
|
7839
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7840
|
+
# upload_id_marker: "",
|
7830
7841
|
# uploads: [
|
7831
7842
|
# {
|
7832
7843
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7833
7844
|
# initiator: {
|
7834
|
-
# display_name: "display-name",
|
7845
|
+
# display_name: "ownder-display-name",
|
7835
7846
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7836
7847
|
# },
|
7837
7848
|
# key: "JavaFile",
|
7838
7849
|
# owner: {
|
7839
|
-
# display_name: "
|
7840
|
-
# id: "
|
7850
|
+
# display_name: "mohanataws",
|
7851
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7841
7852
|
# },
|
7842
7853
|
# storage_class: "STANDARD",
|
7843
|
-
# upload_id: "
|
7854
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7844
7855
|
# },
|
7845
7856
|
# {
|
7846
7857
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7847
7858
|
# initiator: {
|
7848
|
-
# display_name: "display-name",
|
7859
|
+
# display_name: "ownder-display-name",
|
7849
7860
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7850
7861
|
# },
|
7851
7862
|
# key: "JavaFile",
|
7852
7863
|
# owner: {
|
7853
|
-
# display_name: "display-name",
|
7864
|
+
# display_name: "ownder-display-name",
|
7854
7865
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7855
7866
|
# },
|
7856
7867
|
# storage_class: "STANDARD",
|
7857
|
-
# upload_id: "
|
7868
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7858
7869
|
# },
|
7859
7870
|
# ],
|
7860
7871
|
# }
|
7861
7872
|
#
|
7862
|
-
# @example Example:
|
7873
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
7863
7874
|
#
|
7864
|
-
# # The following example
|
7865
|
-
# # setup of multipart uploads.
|
7875
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
7866
7876
|
#
|
7867
7877
|
# resp = client.list_multipart_uploads({
|
7868
7878
|
# bucket: "examplebucket",
|
7869
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
7870
|
-
# max_uploads: 2,
|
7871
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
7872
7879
|
# })
|
7873
7880
|
#
|
7874
7881
|
# resp.to_h outputs the following:
|
7875
7882
|
# {
|
7876
|
-
# bucket: "acl1",
|
7877
|
-
# is_truncated: true,
|
7878
|
-
# key_marker: "",
|
7879
|
-
# max_uploads: 2,
|
7880
|
-
# next_key_marker: "someobjectkey",
|
7881
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7882
|
-
# upload_id_marker: "",
|
7883
7883
|
# uploads: [
|
7884
7884
|
# {
|
7885
7885
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7886
7886
|
# initiator: {
|
7887
|
-
# display_name: "
|
7887
|
+
# display_name: "display-name",
|
7888
7888
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7889
7889
|
# },
|
7890
7890
|
# key: "JavaFile",
|
7891
7891
|
# owner: {
|
7892
|
-
# display_name: "
|
7893
|
-
# id: "
|
7892
|
+
# display_name: "display-name",
|
7893
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7894
7894
|
# },
|
7895
7895
|
# storage_class: "STANDARD",
|
7896
|
-
# upload_id: "
|
7896
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7897
7897
|
# },
|
7898
7898
|
# {
|
7899
7899
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7900
7900
|
# initiator: {
|
7901
|
-
# display_name: "
|
7901
|
+
# display_name: "display-name",
|
7902
7902
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7903
7903
|
# },
|
7904
7904
|
# key: "JavaFile",
|
7905
7905
|
# owner: {
|
7906
|
-
# display_name: "
|
7906
|
+
# display_name: "display-name",
|
7907
7907
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7908
7908
|
# },
|
7909
7909
|
# storage_class: "STANDARD",
|
7910
|
-
# upload_id: "
|
7910
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7911
7911
|
# },
|
7912
7912
|
# ],
|
7913
7913
|
# }
|
@@ -12163,22 +12163,20 @@ module Aws::S3
|
|
12163
12163
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
12164
12164
|
#
|
12165
12165
|
#
|
12166
|
-
# @example Example: To
|
12166
|
+
# @example Example: To create an object.
|
12167
12167
|
#
|
12168
|
-
# # The following example
|
12169
|
-
# # S3 returns version ID of the newly created object.
|
12168
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
12170
12169
|
#
|
12171
12170
|
# resp = client.put_object({
|
12172
|
-
# body: "
|
12171
|
+
# body: "filetoupload",
|
12173
12172
|
# bucket: "examplebucket",
|
12174
|
-
# key: "
|
12175
|
-
# tagging: "key1=value1&key2=value2",
|
12173
|
+
# key: "objectkey",
|
12176
12174
|
# })
|
12177
12175
|
#
|
12178
12176
|
# resp.to_h outputs the following:
|
12179
12177
|
# {
|
12180
12178
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12181
|
-
# version_id: "
|
12179
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
12182
12180
|
# }
|
12183
12181
|
#
|
12184
12182
|
# @example Example: To upload an object
|
@@ -12198,45 +12196,43 @@ module Aws::S3
|
|
12198
12196
|
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
12199
12197
|
# }
|
12200
12198
|
#
|
12201
|
-
# @example Example: To upload
|
12199
|
+
# @example Example: To upload object and specify user-defined metadata
|
12202
12200
|
#
|
12203
|
-
# # The following example
|
12204
|
-
# #
|
12201
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
12202
|
+
# # enabled, S3 returns version ID in response.
|
12205
12203
|
#
|
12206
12204
|
# resp = client.put_object({
|
12207
12205
|
# body: "filetoupload",
|
12208
12206
|
# bucket: "examplebucket",
|
12209
12207
|
# key: "exampleobject",
|
12210
|
-
#
|
12211
|
-
#
|
12208
|
+
# metadata: {
|
12209
|
+
# "metadata1" => "value1",
|
12210
|
+
# "metadata2" => "value2",
|
12211
|
+
# },
|
12212
12212
|
# })
|
12213
12213
|
#
|
12214
12214
|
# resp.to_h outputs the following:
|
12215
12215
|
# {
|
12216
12216
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12217
|
-
#
|
12218
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
12217
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
12219
12218
|
# }
|
12220
12219
|
#
|
12221
|
-
# @example Example: To upload object and specify
|
12220
|
+
# @example Example: To upload an object and specify optional tags
|
12222
12221
|
#
|
12223
|
-
# # The following example
|
12224
|
-
# #
|
12222
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
12223
|
+
# # S3 returns version ID of the newly created object.
|
12225
12224
|
#
|
12226
12225
|
# resp = client.put_object({
|
12227
|
-
# body: "
|
12226
|
+
# body: "c:\\HappyFace.jpg",
|
12228
12227
|
# bucket: "examplebucket",
|
12229
|
-
# key: "
|
12230
|
-
#
|
12231
|
-
# "metadata1" => "value1",
|
12232
|
-
# "metadata2" => "value2",
|
12233
|
-
# },
|
12228
|
+
# key: "HappyFace.jpg",
|
12229
|
+
# tagging: "key1=value1&key2=value2",
|
12234
12230
|
# })
|
12235
12231
|
#
|
12236
12232
|
# resp.to_h outputs the following:
|
12237
12233
|
# {
|
12238
12234
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12239
|
-
# version_id: "
|
12235
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
12240
12236
|
# }
|
12241
12237
|
#
|
12242
12238
|
# @example Example: To upload an object (specify optional headers)
|
@@ -12259,38 +12255,42 @@ module Aws::S3
|
|
12259
12255
|
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
12260
12256
|
# }
|
12261
12257
|
#
|
12262
|
-
# @example Example: To upload an object and specify
|
12258
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
12263
12259
|
#
|
12264
|
-
# # The following example uploads and object. The request specifies optional
|
12265
|
-
# #
|
12260
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
12261
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
12266
12262
|
#
|
12267
12263
|
# resp = client.put_object({
|
12268
|
-
# acl: "authenticated-read",
|
12269
12264
|
# body: "filetoupload",
|
12270
12265
|
# bucket: "examplebucket",
|
12271
12266
|
# key: "exampleobject",
|
12267
|
+
# server_side_encryption: "AES256",
|
12268
|
+
# tagging: "key1=value1&key2=value2",
|
12272
12269
|
# })
|
12273
12270
|
#
|
12274
12271
|
# resp.to_h outputs the following:
|
12275
12272
|
# {
|
12276
12273
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12277
|
-
#
|
12274
|
+
# server_side_encryption: "AES256",
|
12275
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
12278
12276
|
# }
|
12279
12277
|
#
|
12280
|
-
# @example Example: To
|
12278
|
+
# @example Example: To upload an object and specify canned ACL.
|
12281
12279
|
#
|
12282
|
-
# # The following example
|
12280
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
12281
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
12283
12282
|
#
|
12284
12283
|
# resp = client.put_object({
|
12284
|
+
# acl: "authenticated-read",
|
12285
12285
|
# body: "filetoupload",
|
12286
12286
|
# bucket: "examplebucket",
|
12287
|
-
# key: "
|
12287
|
+
# key: "exampleobject",
|
12288
12288
|
# })
|
12289
12289
|
#
|
12290
12290
|
# resp.to_h outputs the following:
|
12291
12291
|
# {
|
12292
12292
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12293
|
-
# version_id: "
|
12293
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
12294
12294
|
# }
|
12295
12295
|
#
|
12296
12296
|
# @example Streaming a file from disk
|
@@ -14849,45 +14849,45 @@ module Aws::S3
|
|
14849
14849
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
14850
14850
|
#
|
14851
14851
|
#
|
14852
|
-
# @example Example: To upload a part by copying
|
14852
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
14853
14853
|
#
|
14854
|
-
# # The following example uploads a part of a multipart upload by copying
|
14855
|
-
# # data source.
|
14854
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
14856
14855
|
#
|
14857
14856
|
# resp = client.upload_part_copy({
|
14858
14857
|
# bucket: "examplebucket",
|
14859
14858
|
# copy_source: "/bucketname/sourceobjectkey",
|
14860
|
-
# copy_source_range: "bytes=1-100000",
|
14861
14859
|
# key: "examplelargeobject",
|
14862
|
-
# part_number:
|
14860
|
+
# part_number: 1,
|
14863
14861
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
14864
14862
|
# })
|
14865
14863
|
#
|
14866
14864
|
# resp.to_h outputs the following:
|
14867
14865
|
# {
|
14868
14866
|
# copy_part_result: {
|
14869
|
-
# etag: "\"
|
14870
|
-
# last_modified: Time.parse("2016-12-29T21:
|
14867
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
14868
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
14871
14869
|
# },
|
14872
14870
|
# }
|
14873
14871
|
#
|
14874
|
-
# @example Example: To upload a part by copying
|
14872
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
14875
14873
|
#
|
14876
|
-
# # The following example uploads a part of a multipart upload by copying
|
14874
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
14875
|
+
# # data source.
|
14877
14876
|
#
|
14878
14877
|
# resp = client.upload_part_copy({
|
14879
14878
|
# bucket: "examplebucket",
|
14880
14879
|
# copy_source: "/bucketname/sourceobjectkey",
|
14880
|
+
# copy_source_range: "bytes=1-100000",
|
14881
14881
|
# key: "examplelargeobject",
|
14882
|
-
# part_number:
|
14882
|
+
# part_number: 2,
|
14883
14883
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
14884
14884
|
# })
|
14885
14885
|
#
|
14886
14886
|
# resp.to_h outputs the following:
|
14887
14887
|
# {
|
14888
14888
|
# copy_part_result: {
|
14889
|
-
# etag: "\"
|
14890
|
-
# last_modified: Time.parse("2016-12-29T21:
|
14889
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
14890
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
14891
14891
|
# },
|
14892
14892
|
# }
|
14893
14893
|
#
|
@@ -15337,7 +15337,7 @@ module Aws::S3
|
|
15337
15337
|
params: params,
|
15338
15338
|
config: config)
|
15339
15339
|
context[:gem_name] = 'aws-sdk-s3'
|
15340
|
-
context[:gem_version] = '1.
|
15340
|
+
context[:gem_version] = '1.116.0'
|
15341
15341
|
Seahorse::Client::Request.new(handlers, context)
|
15342
15342
|
end
|
15343
15343
|
|
data/lib/aws-sdk-s3.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.116.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: 2022-10-
|
11
|
+
date: 2022-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|