aws-sdk-s3 1.118.0 → 1.119.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 +148 -148
- data/lib/aws-sdk-s3/endpoint_provider.rb +239 -173
- 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: bf26a63ccee0e2f3da2e86c8912f58ff25caa023d8e366dfd4d1476e6eaeb962
|
4
|
+
data.tar.gz: 213793eb4583a409e5c846afdf3b6dc9b268e4d553d78ffef76c5009a5d74929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 571abaf21736589d1e16a0e547d476bab1238748cb3dc37c5276945e75eb5a7e9a22bac1dc9e5a4c903bdc7af5cec0d10c4ca993fbe7231f298e74127d902728
|
7
|
+
data.tar.gz: 9e140491506eae90d10c5449fe7e17e35c236b15c2581fe203977f5daeaa4967f586b1093d76d1bb0506120fae33191f03a4509185f6982d82fca2f686663026
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.119.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -3126,6 +3126,15 @@ module Aws::S3
|
|
3126
3126
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
3127
3127
|
#
|
3128
3128
|
#
|
3129
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
3130
|
+
#
|
3131
|
+
# # The following example deletes an object from a non-versioned bucket.
|
3132
|
+
#
|
3133
|
+
# resp = client.delete_object({
|
3134
|
+
# bucket: "ExampleBucket",
|
3135
|
+
# key: "HappyFace.jpg",
|
3136
|
+
# })
|
3137
|
+
#
|
3129
3138
|
# @example Example: To delete an object
|
3130
3139
|
#
|
3131
3140
|
# # The following example deletes an object from an S3 bucket.
|
@@ -3139,15 +3148,6 @@ module Aws::S3
|
|
3139
3148
|
# {
|
3140
3149
|
# }
|
3141
3150
|
#
|
3142
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
3143
|
-
#
|
3144
|
-
# # The following example deletes an object from a non-versioned bucket.
|
3145
|
-
#
|
3146
|
-
# resp = client.delete_object({
|
3147
|
-
# bucket: "ExampleBucket",
|
3148
|
-
# key: "HappyFace.jpg",
|
3149
|
-
# })
|
3150
|
-
#
|
3151
3151
|
# @example Request syntax with placeholder values
|
3152
3152
|
#
|
3153
3153
|
# resp = client.delete_object({
|
@@ -3240,35 +3240,35 @@ module Aws::S3
|
|
3240
3240
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
3241
3241
|
#
|
3242
3242
|
#
|
3243
|
-
# @example Example: To remove tag set from an object
|
3243
|
+
# @example Example: To remove tag set from an object
|
3244
3244
|
#
|
3245
|
-
# # The following example removes tag set associated with the specified object
|
3246
|
-
# #
|
3245
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
3246
|
+
# # operation removes tag set from the latest object version.
|
3247
3247
|
#
|
3248
3248
|
# resp = client.delete_object_tagging({
|
3249
3249
|
# bucket: "examplebucket",
|
3250
3250
|
# key: "HappyFace.jpg",
|
3251
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3252
3251
|
# })
|
3253
3252
|
#
|
3254
3253
|
# resp.to_h outputs the following:
|
3255
3254
|
# {
|
3256
|
-
# version_id: "
|
3255
|
+
# version_id: "null",
|
3257
3256
|
# }
|
3258
3257
|
#
|
3259
|
-
# @example Example: To remove tag set from an object
|
3258
|
+
# @example Example: To remove tag set from an object version
|
3260
3259
|
#
|
3261
|
-
# # The following example removes tag set associated with the specified object.
|
3262
|
-
# #
|
3260
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
3261
|
+
# # object key and object version.
|
3263
3262
|
#
|
3264
3263
|
# resp = client.delete_object_tagging({
|
3265
3264
|
# bucket: "examplebucket",
|
3266
3265
|
# key: "HappyFace.jpg",
|
3266
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3267
3267
|
# })
|
3268
3268
|
#
|
3269
3269
|
# resp.to_h outputs the following:
|
3270
3270
|
# {
|
3271
|
-
# version_id: "
|
3271
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3272
3272
|
# }
|
3273
3273
|
#
|
3274
3274
|
# @example Request syntax with placeholder values
|
@@ -3427,22 +3427,20 @@ module Aws::S3
|
|
3427
3427
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
3428
3428
|
#
|
3429
3429
|
#
|
3430
|
-
# @example Example: To delete multiple
|
3430
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
3431
3431
|
#
|
3432
|
-
# # The following example deletes objects from a bucket. The
|
3433
|
-
# #
|
3432
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
3433
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
3434
3434
|
#
|
3435
3435
|
# resp = client.delete_objects({
|
3436
3436
|
# bucket: "examplebucket",
|
3437
3437
|
# delete: {
|
3438
3438
|
# objects: [
|
3439
3439
|
# {
|
3440
|
-
# key: "
|
3441
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3440
|
+
# key: "objectkey1",
|
3442
3441
|
# },
|
3443
3442
|
# {
|
3444
|
-
# key: "
|
3445
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3443
|
+
# key: "objectkey2",
|
3446
3444
|
# },
|
3447
3445
|
# ],
|
3448
3446
|
# quiet: false,
|
@@ -3453,30 +3451,34 @@ module Aws::S3
|
|
3453
3451
|
# {
|
3454
3452
|
# deleted: [
|
3455
3453
|
# {
|
3456
|
-
#
|
3457
|
-
#
|
3454
|
+
# delete_marker: true,
|
3455
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
3456
|
+
# key: "objectkey1",
|
3458
3457
|
# },
|
3459
3458
|
# {
|
3460
|
-
#
|
3461
|
-
#
|
3459
|
+
# delete_marker: true,
|
3460
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
3461
|
+
# key: "objectkey2",
|
3462
3462
|
# },
|
3463
3463
|
# ],
|
3464
3464
|
# }
|
3465
3465
|
#
|
3466
|
-
# @example Example: To delete multiple
|
3466
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
3467
3467
|
#
|
3468
|
-
# # The following example deletes objects from a bucket. The
|
3469
|
-
# #
|
3468
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
3469
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
3470
3470
|
#
|
3471
3471
|
# resp = client.delete_objects({
|
3472
3472
|
# bucket: "examplebucket",
|
3473
3473
|
# delete: {
|
3474
3474
|
# objects: [
|
3475
3475
|
# {
|
3476
|
-
# key: "
|
3476
|
+
# key: "HappyFace.jpg",
|
3477
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3477
3478
|
# },
|
3478
3479
|
# {
|
3479
|
-
# key: "
|
3480
|
+
# key: "HappyFace.jpg",
|
3481
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3480
3482
|
# },
|
3481
3483
|
# ],
|
3482
3484
|
# quiet: false,
|
@@ -3487,14 +3489,12 @@ module Aws::S3
|
|
3487
3489
|
# {
|
3488
3490
|
# deleted: [
|
3489
3491
|
# {
|
3490
|
-
#
|
3491
|
-
#
|
3492
|
-
# key: "objectkey1",
|
3492
|
+
# key: "HappyFace.jpg",
|
3493
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
3493
3494
|
# },
|
3494
3495
|
# {
|
3495
|
-
#
|
3496
|
-
#
|
3497
|
-
# key: "objectkey2",
|
3496
|
+
# key: "HappyFace.jpg",
|
3497
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
3498
3498
|
# },
|
3499
3499
|
# ],
|
3500
3500
|
# }
|
@@ -5718,49 +5718,49 @@ module Aws::S3
|
|
5718
5718
|
# * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
|
5719
5719
|
#
|
5720
5720
|
#
|
5721
|
-
# @example Example: To retrieve an object
|
5721
|
+
# @example Example: To retrieve a byte range of an object
|
5722
5722
|
#
|
5723
|
-
# # The following example retrieves an object for an S3 bucket.
|
5723
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
5724
|
+
# # specific byte range.
|
5724
5725
|
#
|
5725
5726
|
# resp = client.get_object({
|
5726
5727
|
# bucket: "examplebucket",
|
5727
|
-
# key: "
|
5728
|
+
# key: "SampleFile.txt",
|
5729
|
+
# range: "bytes=0-9",
|
5728
5730
|
# })
|
5729
5731
|
#
|
5730
5732
|
# resp.to_h outputs the following:
|
5731
5733
|
# {
|
5732
5734
|
# accept_ranges: "bytes",
|
5733
|
-
# content_length:
|
5734
|
-
#
|
5735
|
-
#
|
5736
|
-
#
|
5735
|
+
# content_length: 10,
|
5736
|
+
# content_range: "bytes 0-9/43",
|
5737
|
+
# content_type: "text/plain",
|
5738
|
+
# etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
5739
|
+
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
5737
5740
|
# metadata: {
|
5738
5741
|
# },
|
5739
|
-
# tag_count: 2,
|
5740
5742
|
# version_id: "null",
|
5741
5743
|
# }
|
5742
5744
|
#
|
5743
|
-
# @example Example: To retrieve
|
5745
|
+
# @example Example: To retrieve an object
|
5744
5746
|
#
|
5745
|
-
# # The following example retrieves an object for an S3 bucket.
|
5746
|
-
# # specific byte range.
|
5747
|
+
# # The following example retrieves an object for an S3 bucket.
|
5747
5748
|
#
|
5748
5749
|
# resp = client.get_object({
|
5749
5750
|
# bucket: "examplebucket",
|
5750
|
-
# key: "
|
5751
|
-
# range: "bytes=0-9",
|
5751
|
+
# key: "HappyFace.jpg",
|
5752
5752
|
# })
|
5753
5753
|
#
|
5754
5754
|
# resp.to_h outputs the following:
|
5755
5755
|
# {
|
5756
5756
|
# accept_ranges: "bytes",
|
5757
|
-
# content_length:
|
5758
|
-
#
|
5759
|
-
#
|
5760
|
-
#
|
5761
|
-
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
5757
|
+
# content_length: 3191,
|
5758
|
+
# content_type: "image/jpeg",
|
5759
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5760
|
+
# last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
|
5762
5761
|
# metadata: {
|
5763
5762
|
# },
|
5763
|
+
# tag_count: 2,
|
5764
5764
|
# version_id: "null",
|
5765
5765
|
# }
|
5766
5766
|
#
|
@@ -6599,49 +6599,49 @@ module Aws::S3
|
|
6599
6599
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
6600
6600
|
#
|
6601
6601
|
#
|
6602
|
-
# @example Example: To retrieve tag set of
|
6602
|
+
# @example Example: To retrieve tag set of a specific object version
|
6603
6603
|
#
|
6604
|
-
# # The following example retrieves tag set of an object.
|
6604
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
6605
6605
|
#
|
6606
6606
|
# resp = client.get_object_tagging({
|
6607
6607
|
# bucket: "examplebucket",
|
6608
|
-
# key: "
|
6608
|
+
# key: "exampleobject",
|
6609
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6609
6610
|
# })
|
6610
6611
|
#
|
6611
6612
|
# resp.to_h outputs the following:
|
6612
6613
|
# {
|
6613
6614
|
# tag_set: [
|
6614
6615
|
# {
|
6615
|
-
# key: "
|
6616
|
-
# value: "
|
6617
|
-
# },
|
6618
|
-
# {
|
6619
|
-
# key: "Key3",
|
6620
|
-
# value: "Value3",
|
6616
|
+
# key: "Key1",
|
6617
|
+
# value: "Value1",
|
6621
6618
|
# },
|
6622
6619
|
# ],
|
6623
|
-
# version_id: "
|
6620
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6624
6621
|
# }
|
6625
6622
|
#
|
6626
|
-
# @example Example: To retrieve tag set of
|
6623
|
+
# @example Example: To retrieve tag set of an object
|
6627
6624
|
#
|
6628
|
-
# # The following example retrieves tag set of an object.
|
6625
|
+
# # The following example retrieves tag set of an object.
|
6629
6626
|
#
|
6630
6627
|
# resp = client.get_object_tagging({
|
6631
6628
|
# bucket: "examplebucket",
|
6632
|
-
# key: "
|
6633
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
6629
|
+
# key: "HappyFace.jpg",
|
6634
6630
|
# })
|
6635
6631
|
#
|
6636
6632
|
# resp.to_h outputs the following:
|
6637
6633
|
# {
|
6638
6634
|
# tag_set: [
|
6639
6635
|
# {
|
6640
|
-
# key: "
|
6641
|
-
# value: "
|
6636
|
+
# key: "Key4",
|
6637
|
+
# value: "Value4",
|
6638
|
+
# },
|
6639
|
+
# {
|
6640
|
+
# key: "Key3",
|
6641
|
+
# value: "Value3",
|
6642
6642
|
# },
|
6643
6643
|
# ],
|
6644
|
-
# version_id: "
|
6644
|
+
# version_id: "null",
|
6645
6645
|
# }
|
6646
6646
|
#
|
6647
6647
|
# @example Request syntax with placeholder values
|
@@ -7834,97 +7834,97 @@ module Aws::S3
|
|
7834
7834
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
7835
7835
|
#
|
7836
7836
|
#
|
7837
|
-
# @example Example:
|
7837
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
7838
7838
|
#
|
7839
|
-
# # The following example
|
7840
|
-
# # setup of multipart uploads.
|
7839
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
7841
7840
|
#
|
7842
7841
|
# resp = client.list_multipart_uploads({
|
7843
7842
|
# bucket: "examplebucket",
|
7844
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
7845
|
-
# max_uploads: 2,
|
7846
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
7847
7843
|
# })
|
7848
7844
|
#
|
7849
7845
|
# resp.to_h outputs the following:
|
7850
7846
|
# {
|
7851
|
-
# bucket: "acl1",
|
7852
|
-
# is_truncated: true,
|
7853
|
-
# key_marker: "",
|
7854
|
-
# max_uploads: 2,
|
7855
|
-
# next_key_marker: "someobjectkey",
|
7856
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7857
|
-
# upload_id_marker: "",
|
7858
7847
|
# uploads: [
|
7859
7848
|
# {
|
7860
7849
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7861
7850
|
# initiator: {
|
7862
|
-
# display_name: "
|
7851
|
+
# display_name: "display-name",
|
7863
7852
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7864
7853
|
# },
|
7865
7854
|
# key: "JavaFile",
|
7866
7855
|
# owner: {
|
7867
|
-
# display_name: "
|
7868
|
-
# id: "
|
7856
|
+
# display_name: "display-name",
|
7857
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7869
7858
|
# },
|
7870
7859
|
# storage_class: "STANDARD",
|
7871
|
-
# upload_id: "
|
7860
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7872
7861
|
# },
|
7873
7862
|
# {
|
7874
7863
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7875
7864
|
# initiator: {
|
7876
|
-
# display_name: "
|
7865
|
+
# display_name: "display-name",
|
7877
7866
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7878
7867
|
# },
|
7879
7868
|
# key: "JavaFile",
|
7880
7869
|
# owner: {
|
7881
|
-
# display_name: "
|
7870
|
+
# display_name: "display-name",
|
7882
7871
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7883
7872
|
# },
|
7884
7873
|
# storage_class: "STANDARD",
|
7885
|
-
# upload_id: "
|
7874
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7886
7875
|
# },
|
7887
7876
|
# ],
|
7888
7877
|
# }
|
7889
7878
|
#
|
7890
|
-
# @example Example:
|
7879
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
7891
7880
|
#
|
7892
|
-
# # The following example
|
7881
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
7882
|
+
# # setup of multipart uploads.
|
7893
7883
|
#
|
7894
7884
|
# resp = client.list_multipart_uploads({
|
7895
7885
|
# bucket: "examplebucket",
|
7886
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
7887
|
+
# max_uploads: 2,
|
7888
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
7896
7889
|
# })
|
7897
7890
|
#
|
7898
7891
|
# resp.to_h outputs the following:
|
7899
7892
|
# {
|
7893
|
+
# bucket: "acl1",
|
7894
|
+
# is_truncated: true,
|
7895
|
+
# key_marker: "",
|
7896
|
+
# max_uploads: 2,
|
7897
|
+
# next_key_marker: "someobjectkey",
|
7898
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7899
|
+
# upload_id_marker: "",
|
7900
7900
|
# uploads: [
|
7901
7901
|
# {
|
7902
7902
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
7903
7903
|
# initiator: {
|
7904
|
-
# display_name: "display-name",
|
7904
|
+
# display_name: "ownder-display-name",
|
7905
7905
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7906
7906
|
# },
|
7907
7907
|
# key: "JavaFile",
|
7908
7908
|
# owner: {
|
7909
|
-
# display_name: "
|
7910
|
-
# id: "
|
7909
|
+
# display_name: "mohanataws",
|
7910
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7911
7911
|
# },
|
7912
7912
|
# storage_class: "STANDARD",
|
7913
|
-
# upload_id: "
|
7913
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
7914
7914
|
# },
|
7915
7915
|
# {
|
7916
7916
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
7917
7917
|
# initiator: {
|
7918
|
-
# display_name: "display-name",
|
7918
|
+
# display_name: "ownder-display-name",
|
7919
7919
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7920
7920
|
# },
|
7921
7921
|
# key: "JavaFile",
|
7922
7922
|
# owner: {
|
7923
|
-
# display_name: "display-name",
|
7923
|
+
# display_name: "ownder-display-name",
|
7924
7924
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
7925
7925
|
# },
|
7926
7926
|
# storage_class: "STANDARD",
|
7927
|
-
# upload_id: "
|
7927
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
7928
7928
|
# },
|
7929
7929
|
# ],
|
7930
7930
|
# }
|
@@ -12180,22 +12180,6 @@ module Aws::S3
|
|
12180
12180
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
12181
12181
|
#
|
12182
12182
|
#
|
12183
|
-
# @example Example: To create an object.
|
12184
|
-
#
|
12185
|
-
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
12186
|
-
#
|
12187
|
-
# resp = client.put_object({
|
12188
|
-
# body: "filetoupload",
|
12189
|
-
# bucket: "examplebucket",
|
12190
|
-
# key: "objectkey",
|
12191
|
-
# })
|
12192
|
-
#
|
12193
|
-
# resp.to_h outputs the following:
|
12194
|
-
# {
|
12195
|
-
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12196
|
-
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
12197
|
-
# }
|
12198
|
-
#
|
12199
12183
|
# @example Example: To upload an object
|
12200
12184
|
#
|
12201
12185
|
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
@@ -12234,42 +12218,40 @@ module Aws::S3
|
|
12234
12218
|
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
12235
12219
|
# }
|
12236
12220
|
#
|
12237
|
-
# @example Example: To upload an object
|
12221
|
+
# @example Example: To upload an object (specify optional headers)
|
12238
12222
|
#
|
12239
|
-
# # The following example uploads an object. The request specifies optional
|
12240
|
-
# #
|
12223
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
12224
|
+
# # storage class and use server-side encryption.
|
12241
12225
|
#
|
12242
12226
|
# resp = client.put_object({
|
12243
|
-
# body: "
|
12227
|
+
# body: "HappyFace.jpg",
|
12244
12228
|
# bucket: "examplebucket",
|
12245
12229
|
# key: "HappyFace.jpg",
|
12246
|
-
#
|
12230
|
+
# server_side_encryption: "AES256",
|
12231
|
+
# storage_class: "STANDARD_IA",
|
12247
12232
|
# })
|
12248
12233
|
#
|
12249
12234
|
# resp.to_h outputs the following:
|
12250
12235
|
# {
|
12251
12236
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12252
|
-
#
|
12237
|
+
# server_side_encryption: "AES256",
|
12238
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
12253
12239
|
# }
|
12254
12240
|
#
|
12255
|
-
# @example Example: To
|
12241
|
+
# @example Example: To create an object.
|
12256
12242
|
#
|
12257
|
-
# # The following example
|
12258
|
-
# # storage class and use server-side encryption.
|
12243
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
12259
12244
|
#
|
12260
12245
|
# resp = client.put_object({
|
12261
|
-
# body: "
|
12246
|
+
# body: "filetoupload",
|
12262
12247
|
# bucket: "examplebucket",
|
12263
|
-
# key: "
|
12264
|
-
# server_side_encryption: "AES256",
|
12265
|
-
# storage_class: "STANDARD_IA",
|
12248
|
+
# key: "objectkey",
|
12266
12249
|
# })
|
12267
12250
|
#
|
12268
12251
|
# resp.to_h outputs the following:
|
12269
12252
|
# {
|
12270
12253
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12271
|
-
#
|
12272
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
12254
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
12273
12255
|
# }
|
12274
12256
|
#
|
12275
12257
|
# @example Example: To upload an object and specify server-side encryption and object tags
|
@@ -12292,6 +12274,24 @@ module Aws::S3
|
|
12292
12274
|
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
12293
12275
|
# }
|
12294
12276
|
#
|
12277
|
+
# @example Example: To upload an object and specify optional tags
|
12278
|
+
#
|
12279
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
12280
|
+
# # S3 returns version ID of the newly created object.
|
12281
|
+
#
|
12282
|
+
# resp = client.put_object({
|
12283
|
+
# body: "c:\\HappyFace.jpg",
|
12284
|
+
# bucket: "examplebucket",
|
12285
|
+
# key: "HappyFace.jpg",
|
12286
|
+
# tagging: "key1=value1&key2=value2",
|
12287
|
+
# })
|
12288
|
+
#
|
12289
|
+
# resp.to_h outputs the following:
|
12290
|
+
# {
|
12291
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12292
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
12293
|
+
# }
|
12294
|
+
#
|
12295
12295
|
# @example Example: To upload an object and specify canned ACL.
|
12296
12296
|
#
|
12297
12297
|
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
@@ -14866,45 +14866,45 @@ module Aws::S3
|
|
14866
14866
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
14867
14867
|
#
|
14868
14868
|
#
|
14869
|
-
# @example Example: To upload a part by copying
|
14869
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
14870
14870
|
#
|
14871
|
-
# # The following example uploads a part of a multipart upload by copying
|
14871
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
14872
|
+
# # data source.
|
14872
14873
|
#
|
14873
14874
|
# resp = client.upload_part_copy({
|
14874
14875
|
# bucket: "examplebucket",
|
14875
14876
|
# copy_source: "/bucketname/sourceobjectkey",
|
14877
|
+
# copy_source_range: "bytes=1-100000",
|
14876
14878
|
# key: "examplelargeobject",
|
14877
|
-
# part_number:
|
14879
|
+
# part_number: 2,
|
14878
14880
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
14879
14881
|
# })
|
14880
14882
|
#
|
14881
14883
|
# resp.to_h outputs the following:
|
14882
14884
|
# {
|
14883
14885
|
# copy_part_result: {
|
14884
|
-
# etag: "\"
|
14885
|
-
# last_modified: Time.parse("2016-12-29T21:
|
14886
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
14887
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
14886
14888
|
# },
|
14887
14889
|
# }
|
14888
14890
|
#
|
14889
|
-
# @example Example: To upload a part by copying
|
14891
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
14890
14892
|
#
|
14891
|
-
# # The following example uploads a part of a multipart upload by copying
|
14892
|
-
# # data source.
|
14893
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
14893
14894
|
#
|
14894
14895
|
# resp = client.upload_part_copy({
|
14895
14896
|
# bucket: "examplebucket",
|
14896
14897
|
# copy_source: "/bucketname/sourceobjectkey",
|
14897
|
-
# copy_source_range: "bytes=1-100000",
|
14898
14898
|
# key: "examplelargeobject",
|
14899
|
-
# part_number:
|
14899
|
+
# part_number: 1,
|
14900
14900
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
14901
14901
|
# })
|
14902
14902
|
#
|
14903
14903
|
# resp.to_h outputs the following:
|
14904
14904
|
# {
|
14905
14905
|
# copy_part_result: {
|
14906
|
-
# etag: "\"
|
14907
|
-
# last_modified: Time.parse("2016-12-29T21:
|
14906
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
14907
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
14908
14908
|
# },
|
14909
14909
|
# }
|
14910
14910
|
#
|
@@ -15354,7 +15354,7 @@ module Aws::S3
|
|
15354
15354
|
params: params,
|
15355
15355
|
config: config)
|
15356
15356
|
context[:gem_name] = 'aws-sdk-s3'
|
15357
|
-
context[:gem_version] = '1.
|
15357
|
+
context[:gem_version] = '1.119.0'
|
15358
15358
|
Seahorse::Client::Request.new(handlers, context)
|
15359
15359
|
end
|
15360
15360
|
|