aws-sdk-s3 1.136.0 → 1.137.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +113 -113
- 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: 39652278a10e7d8be5b3bcd63b8e34e6429a1eb41e4643ca6fc12932f280b5e2
|
4
|
+
data.tar.gz: 877e1b4e2b4fd93b9051197658cfa771822fa63130f3b0ab68d431163fa258d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfad21d40c4a497e0350ac4e74899b060a3f5e5ad4c681414ff921d85bf7a540f6c34781f67f4a0da706ce0175e0d41c04d739a376d0ecf9fb8349ea2685b14b
|
7
|
+
data.tar.gz: 87327c8b9acd926e0a5c111936140ffdf93cc07f016687209fe0b891eb74d371e7deedb7d5263b032da827116c1f63d2a013dbc7b6a74cfcae9201870b2b7a8f
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.137.0
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -1711,33 +1711,33 @@ module Aws::S3
|
|
1711
1711
|
# * {Types::CreateBucketOutput#location #location} => String
|
1712
1712
|
#
|
1713
1713
|
#
|
1714
|
-
# @example Example: To create a bucket
|
1714
|
+
# @example Example: To create a bucket in a specific region
|
1715
1715
|
#
|
1716
|
-
# # The following example creates a bucket.
|
1716
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
1717
1717
|
#
|
1718
1718
|
# resp = client.create_bucket({
|
1719
1719
|
# bucket: "examplebucket",
|
1720
|
+
# create_bucket_configuration: {
|
1721
|
+
# location_constraint: "eu-west-1",
|
1722
|
+
# },
|
1720
1723
|
# })
|
1721
1724
|
#
|
1722
1725
|
# resp.to_h outputs the following:
|
1723
1726
|
# {
|
1724
|
-
# location: "/
|
1727
|
+
# location: "http://examplebucket.<Region>.s3.amazonaws.com/",
|
1725
1728
|
# }
|
1726
1729
|
#
|
1727
|
-
# @example Example: To create a bucket
|
1730
|
+
# @example Example: To create a bucket
|
1728
1731
|
#
|
1729
|
-
# # The following example creates a bucket.
|
1732
|
+
# # The following example creates a bucket.
|
1730
1733
|
#
|
1731
1734
|
# resp = client.create_bucket({
|
1732
1735
|
# bucket: "examplebucket",
|
1733
|
-
# create_bucket_configuration: {
|
1734
|
-
# location_constraint: "eu-west-1",
|
1735
|
-
# },
|
1736
1736
|
# })
|
1737
1737
|
#
|
1738
1738
|
# resp.to_h outputs the following:
|
1739
1739
|
# {
|
1740
|
-
# location: "
|
1740
|
+
# location: "/examplebucket",
|
1741
1741
|
# }
|
1742
1742
|
#
|
1743
1743
|
# @example Request syntax with placeholder values
|
@@ -3306,35 +3306,35 @@ module Aws::S3
|
|
3306
3306
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
3307
3307
|
#
|
3308
3308
|
#
|
3309
|
-
# @example Example: To remove tag set from an object
|
3309
|
+
# @example Example: To remove tag set from an object
|
3310
3310
|
#
|
3311
|
-
# # The following example removes tag set associated with the specified object
|
3312
|
-
# #
|
3311
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
3312
|
+
# # operation removes tag set from the latest object version.
|
3313
3313
|
#
|
3314
3314
|
# resp = client.delete_object_tagging({
|
3315
3315
|
# bucket: "examplebucket",
|
3316
3316
|
# key: "HappyFace.jpg",
|
3317
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3318
3317
|
# })
|
3319
3318
|
#
|
3320
3319
|
# resp.to_h outputs the following:
|
3321
3320
|
# {
|
3322
|
-
# version_id: "
|
3321
|
+
# version_id: "null",
|
3323
3322
|
# }
|
3324
3323
|
#
|
3325
|
-
# @example Example: To remove tag set from an object
|
3324
|
+
# @example Example: To remove tag set from an object version
|
3326
3325
|
#
|
3327
|
-
# # The following example removes tag set associated with the specified object.
|
3328
|
-
# #
|
3326
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
3327
|
+
# # object key and object version.
|
3329
3328
|
#
|
3330
3329
|
# resp = client.delete_object_tagging({
|
3331
3330
|
# bucket: "examplebucket",
|
3332
3331
|
# key: "HappyFace.jpg",
|
3332
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3333
3333
|
# })
|
3334
3334
|
#
|
3335
3335
|
# resp.to_h outputs the following:
|
3336
3336
|
# {
|
3337
|
-
# version_id: "
|
3337
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3338
3338
|
# }
|
3339
3339
|
#
|
3340
3340
|
# @example Request syntax with placeholder values
|
@@ -5954,49 +5954,49 @@ module Aws::S3
|
|
5954
5954
|
# * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
|
5955
5955
|
#
|
5956
5956
|
#
|
5957
|
-
# @example Example: To retrieve
|
5957
|
+
# @example Example: To retrieve an object
|
5958
5958
|
#
|
5959
|
-
# # The following example retrieves an object for an S3 bucket.
|
5960
|
-
# # specific byte range.
|
5959
|
+
# # The following example retrieves an object for an S3 bucket.
|
5961
5960
|
#
|
5962
5961
|
# resp = client.get_object({
|
5963
5962
|
# bucket: "examplebucket",
|
5964
|
-
# key: "
|
5965
|
-
# range: "bytes=0-9",
|
5963
|
+
# key: "HappyFace.jpg",
|
5966
5964
|
# })
|
5967
5965
|
#
|
5968
5966
|
# resp.to_h outputs the following:
|
5969
5967
|
# {
|
5970
5968
|
# accept_ranges: "bytes",
|
5971
|
-
# content_length:
|
5972
|
-
#
|
5973
|
-
#
|
5974
|
-
#
|
5975
|
-
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
5969
|
+
# content_length: 3191,
|
5970
|
+
# content_type: "image/jpeg",
|
5971
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5972
|
+
# last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
|
5976
5973
|
# metadata: {
|
5977
5974
|
# },
|
5975
|
+
# tag_count: 2,
|
5978
5976
|
# version_id: "null",
|
5979
5977
|
# }
|
5980
5978
|
#
|
5981
|
-
# @example Example: To retrieve an object
|
5979
|
+
# @example Example: To retrieve a byte range of an object
|
5982
5980
|
#
|
5983
|
-
# # The following example retrieves an object for an S3 bucket.
|
5981
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
5982
|
+
# # specific byte range.
|
5984
5983
|
#
|
5985
5984
|
# resp = client.get_object({
|
5986
5985
|
# bucket: "examplebucket",
|
5987
|
-
# key: "
|
5986
|
+
# key: "SampleFile.txt",
|
5987
|
+
# range: "bytes=0-9",
|
5988
5988
|
# })
|
5989
5989
|
#
|
5990
5990
|
# resp.to_h outputs the following:
|
5991
5991
|
# {
|
5992
5992
|
# accept_ranges: "bytes",
|
5993
|
-
# content_length:
|
5994
|
-
#
|
5995
|
-
#
|
5996
|
-
#
|
5993
|
+
# content_length: 10,
|
5994
|
+
# content_range: "bytes 0-9/43",
|
5995
|
+
# content_type: "text/plain",
|
5996
|
+
# etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
5997
|
+
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
5997
5998
|
# metadata: {
|
5998
5999
|
# },
|
5999
|
-
# tag_count: 2,
|
6000
6000
|
# version_id: "null",
|
6001
6001
|
# }
|
6002
6002
|
#
|
@@ -8120,97 +8120,97 @@ module Aws::S3
|
|
8120
8120
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
8121
8121
|
#
|
8122
8122
|
#
|
8123
|
-
# @example Example:
|
8123
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
8124
8124
|
#
|
8125
|
-
# # The following example
|
8125
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
8126
|
+
# # setup of multipart uploads.
|
8126
8127
|
#
|
8127
8128
|
# resp = client.list_multipart_uploads({
|
8128
8129
|
# bucket: "examplebucket",
|
8130
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
8131
|
+
# max_uploads: 2,
|
8132
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
8129
8133
|
# })
|
8130
8134
|
#
|
8131
8135
|
# resp.to_h outputs the following:
|
8132
8136
|
# {
|
8137
|
+
# bucket: "acl1",
|
8138
|
+
# is_truncated: true,
|
8139
|
+
# key_marker: "",
|
8140
|
+
# max_uploads: 2,
|
8141
|
+
# next_key_marker: "someobjectkey",
|
8142
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
8143
|
+
# upload_id_marker: "",
|
8133
8144
|
# uploads: [
|
8134
8145
|
# {
|
8135
8146
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
8136
8147
|
# initiator: {
|
8137
|
-
# display_name: "display-name",
|
8148
|
+
# display_name: "ownder-display-name",
|
8138
8149
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8139
8150
|
# },
|
8140
8151
|
# key: "JavaFile",
|
8141
8152
|
# owner: {
|
8142
|
-
# display_name: "
|
8143
|
-
# id: "
|
8153
|
+
# display_name: "mohanataws",
|
8154
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8144
8155
|
# },
|
8145
8156
|
# storage_class: "STANDARD",
|
8146
|
-
# upload_id: "
|
8157
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
8147
8158
|
# },
|
8148
8159
|
# {
|
8149
8160
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
8150
8161
|
# initiator: {
|
8151
|
-
# display_name: "display-name",
|
8162
|
+
# display_name: "ownder-display-name",
|
8152
8163
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8153
8164
|
# },
|
8154
8165
|
# key: "JavaFile",
|
8155
8166
|
# owner: {
|
8156
|
-
# display_name: "display-name",
|
8167
|
+
# display_name: "ownder-display-name",
|
8157
8168
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8158
8169
|
# },
|
8159
8170
|
# storage_class: "STANDARD",
|
8160
|
-
# upload_id: "
|
8171
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
8161
8172
|
# },
|
8162
8173
|
# ],
|
8163
8174
|
# }
|
8164
8175
|
#
|
8165
|
-
# @example Example:
|
8176
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
8166
8177
|
#
|
8167
|
-
# # The following example
|
8168
|
-
# # setup of multipart uploads.
|
8178
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
8169
8179
|
#
|
8170
8180
|
# resp = client.list_multipart_uploads({
|
8171
8181
|
# bucket: "examplebucket",
|
8172
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
8173
|
-
# max_uploads: 2,
|
8174
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
8175
8182
|
# })
|
8176
8183
|
#
|
8177
8184
|
# resp.to_h outputs the following:
|
8178
8185
|
# {
|
8179
|
-
# bucket: "acl1",
|
8180
|
-
# is_truncated: true,
|
8181
|
-
# key_marker: "",
|
8182
|
-
# max_uploads: 2,
|
8183
|
-
# next_key_marker: "someobjectkey",
|
8184
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
8185
|
-
# upload_id_marker: "",
|
8186
8186
|
# uploads: [
|
8187
8187
|
# {
|
8188
8188
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
8189
8189
|
# initiator: {
|
8190
|
-
# display_name: "
|
8190
|
+
# display_name: "display-name",
|
8191
8191
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8192
8192
|
# },
|
8193
8193
|
# key: "JavaFile",
|
8194
8194
|
# owner: {
|
8195
|
-
# display_name: "
|
8196
|
-
# id: "
|
8195
|
+
# display_name: "display-name",
|
8196
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8197
8197
|
# },
|
8198
8198
|
# storage_class: "STANDARD",
|
8199
|
-
# upload_id: "
|
8199
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
8200
8200
|
# },
|
8201
8201
|
# {
|
8202
8202
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
8203
8203
|
# initiator: {
|
8204
|
-
# display_name: "
|
8204
|
+
# display_name: "display-name",
|
8205
8205
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8206
8206
|
# },
|
8207
8207
|
# key: "JavaFile",
|
8208
8208
|
# owner: {
|
8209
|
-
# display_name: "
|
8209
|
+
# display_name: "display-name",
|
8210
8210
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
8211
8211
|
# },
|
8212
8212
|
# storage_class: "STANDARD",
|
8213
|
-
# upload_id: "
|
8213
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
8214
8214
|
# },
|
8215
8215
|
# ],
|
8216
8216
|
# }
|
@@ -12530,6 +12530,23 @@ module Aws::S3
|
|
12530
12530
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
12531
12531
|
#
|
12532
12532
|
#
|
12533
|
+
# @example Example: To upload an object
|
12534
|
+
#
|
12535
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
12536
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
12537
|
+
#
|
12538
|
+
# resp = client.put_object({
|
12539
|
+
# body: "HappyFace.jpg",
|
12540
|
+
# bucket: "examplebucket",
|
12541
|
+
# key: "HappyFace.jpg",
|
12542
|
+
# })
|
12543
|
+
#
|
12544
|
+
# resp.to_h outputs the following:
|
12545
|
+
# {
|
12546
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12547
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
12548
|
+
# }
|
12549
|
+
#
|
12533
12550
|
# @example Example: To upload an object and specify server-side encryption and object tags
|
12534
12551
|
#
|
12535
12552
|
# # The following example uploads an object. The request specifies the optional server-side encryption option. The request
|
@@ -12566,24 +12583,25 @@ module Aws::S3
|
|
12566
12583
|
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
12567
12584
|
# }
|
12568
12585
|
#
|
12569
|
-
# @example Example: To upload
|
12586
|
+
# @example Example: To upload object and specify user-defined metadata
|
12570
12587
|
#
|
12571
|
-
# # The following example
|
12572
|
-
# #
|
12588
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
12589
|
+
# # enabled, S3 returns version ID in response.
|
12573
12590
|
#
|
12574
12591
|
# resp = client.put_object({
|
12575
|
-
# body: "
|
12592
|
+
# body: "filetoupload",
|
12576
12593
|
# bucket: "examplebucket",
|
12577
|
-
# key: "
|
12578
|
-
#
|
12579
|
-
#
|
12594
|
+
# key: "exampleobject",
|
12595
|
+
# metadata: {
|
12596
|
+
# "metadata1" => "value1",
|
12597
|
+
# "metadata2" => "value2",
|
12598
|
+
# },
|
12580
12599
|
# })
|
12581
12600
|
#
|
12582
12601
|
# resp.to_h outputs the following:
|
12583
12602
|
# {
|
12584
12603
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12585
|
-
#
|
12586
|
-
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
12604
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
12587
12605
|
# }
|
12588
12606
|
#
|
12589
12607
|
# @example Example: To upload an object and specify optional tags
|
@@ -12604,27 +12622,6 @@ module Aws::S3
|
|
12604
12622
|
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
12605
12623
|
# }
|
12606
12624
|
#
|
12607
|
-
# @example Example: To upload object and specify user-defined metadata
|
12608
|
-
#
|
12609
|
-
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
12610
|
-
# # enabled, S3 returns version ID in response.
|
12611
|
-
#
|
12612
|
-
# resp = client.put_object({
|
12613
|
-
# body: "filetoupload",
|
12614
|
-
# bucket: "examplebucket",
|
12615
|
-
# key: "exampleobject",
|
12616
|
-
# metadata: {
|
12617
|
-
# "metadata1" => "value1",
|
12618
|
-
# "metadata2" => "value2",
|
12619
|
-
# },
|
12620
|
-
# })
|
12621
|
-
#
|
12622
|
-
# resp.to_h outputs the following:
|
12623
|
-
# {
|
12624
|
-
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12625
|
-
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
12626
|
-
# }
|
12627
|
-
#
|
12628
12625
|
# @example Example: To upload an object and specify canned ACL.
|
12629
12626
|
#
|
12630
12627
|
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
@@ -12643,21 +12640,24 @@ module Aws::S3
|
|
12643
12640
|
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
12644
12641
|
# }
|
12645
12642
|
#
|
12646
|
-
# @example Example: To upload an object
|
12643
|
+
# @example Example: To upload an object (specify optional headers)
|
12647
12644
|
#
|
12648
|
-
# # The following example uploads an object
|
12649
|
-
# #
|
12645
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
12646
|
+
# # storage class and use server-side encryption.
|
12650
12647
|
#
|
12651
12648
|
# resp = client.put_object({
|
12652
12649
|
# body: "HappyFace.jpg",
|
12653
12650
|
# bucket: "examplebucket",
|
12654
12651
|
# key: "HappyFace.jpg",
|
12652
|
+
# server_side_encryption: "AES256",
|
12653
|
+
# storage_class: "STANDARD_IA",
|
12655
12654
|
# })
|
12656
12655
|
#
|
12657
12656
|
# resp.to_h outputs the following:
|
12658
12657
|
# {
|
12659
12658
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
12660
|
-
#
|
12659
|
+
# server_side_encryption: "AES256",
|
12660
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
12661
12661
|
# }
|
12662
12662
|
#
|
12663
12663
|
# @example Streaming a file from disk
|
@@ -13637,7 +13637,7 @@ module Aws::S3
|
|
13637
13637
|
# bucket or an object, it checks the `PublicAccessBlock` configuration
|
13638
13638
|
# for both the bucket (or the bucket that contains the object) and the
|
13639
13639
|
# bucket owner's account. If the `PublicAccessBlock` configurations are
|
13640
|
-
# different between the bucket and the account, S3 uses the most
|
13640
|
+
# different between the bucket and the account, Amazon S3 uses the most
|
13641
13641
|
# restrictive combination of the bucket-level and account-level
|
13642
13642
|
# settings.
|
13643
13643
|
#
|
@@ -15210,45 +15210,45 @@ module Aws::S3
|
|
15210
15210
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
15211
15211
|
#
|
15212
15212
|
#
|
15213
|
-
# @example Example: To upload a part by copying
|
15213
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
15214
15214
|
#
|
15215
|
-
# # The following example uploads a part of a multipart upload by copying
|
15215
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
15216
|
+
# # data source.
|
15216
15217
|
#
|
15217
15218
|
# resp = client.upload_part_copy({
|
15218
15219
|
# bucket: "examplebucket",
|
15219
15220
|
# copy_source: "/bucketname/sourceobjectkey",
|
15221
|
+
# copy_source_range: "bytes=1-100000",
|
15220
15222
|
# key: "examplelargeobject",
|
15221
|
-
# part_number:
|
15223
|
+
# part_number: 2,
|
15222
15224
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
15223
15225
|
# })
|
15224
15226
|
#
|
15225
15227
|
# resp.to_h outputs the following:
|
15226
15228
|
# {
|
15227
15229
|
# copy_part_result: {
|
15228
|
-
# etag: "\"
|
15229
|
-
# last_modified: Time.parse("2016-12-29T21:
|
15230
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
15231
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
15230
15232
|
# },
|
15231
15233
|
# }
|
15232
15234
|
#
|
15233
|
-
# @example Example: To upload a part by copying
|
15235
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
15234
15236
|
#
|
15235
|
-
# # The following example uploads a part of a multipart upload by copying
|
15236
|
-
# # data source.
|
15237
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
15237
15238
|
#
|
15238
15239
|
# resp = client.upload_part_copy({
|
15239
15240
|
# bucket: "examplebucket",
|
15240
15241
|
# copy_source: "/bucketname/sourceobjectkey",
|
15241
|
-
# copy_source_range: "bytes=1-100000",
|
15242
15242
|
# key: "examplelargeobject",
|
15243
|
-
# part_number:
|
15243
|
+
# part_number: 1,
|
15244
15244
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
15245
15245
|
# })
|
15246
15246
|
#
|
15247
15247
|
# resp.to_h outputs the following:
|
15248
15248
|
# {
|
15249
15249
|
# copy_part_result: {
|
15250
|
-
# etag: "\"
|
15251
|
-
# last_modified: Time.parse("2016-12-29T21:
|
15250
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
15251
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
15252
15252
|
# },
|
15253
15253
|
# }
|
15254
15254
|
#
|
@@ -15697,7 +15697,7 @@ module Aws::S3
|
|
15697
15697
|
params: params,
|
15698
15698
|
config: config)
|
15699
15699
|
context[:gem_name] = 'aws-sdk-s3'
|
15700
|
-
context[:gem_version] = '1.
|
15700
|
+
context[:gem_version] = '1.137.0'
|
15701
15701
|
Seahorse::Client::Request.new(handlers, context)
|
15702
15702
|
end
|
15703
15703
|
|
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.137.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: 2023-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|