aws-sdk-s3 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +46 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76d0991769b92dae1959f3004710b47cdc5e3ff8
|
4
|
+
data.tar.gz: 1a811e7e066a2f3ae5f771b6e305a4e9eed31f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d276652896ce7673a5a530d0e44beca6143310127864c77f21a17cb79e52ba0962e9fbc025df0f5dfd0cbebdfd37b2915cc7e4e58538fa86447894b93741a6b0
|
7
|
+
data.tar.gz: bb905e70c8ed09ab22284c64ceff68c22b9c5d42860578611f924e5650f7b1aa5ac51e68314c453d5c997cc8c7c90903a7b4ba9503d147173d1fc77bdaf72ee1
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -1236,7 +1236,8 @@ module Aws::S3
|
|
1236
1236
|
#
|
1237
1237
|
# @example Example: To remove tag set from an object version
|
1238
1238
|
#
|
1239
|
-
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
1239
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
1240
|
+
# # object key and object version.
|
1240
1241
|
#
|
1241
1242
|
# resp = client.delete_object_tagging({
|
1242
1243
|
# bucket: "examplebucket",
|
@@ -1251,7 +1252,8 @@ module Aws::S3
|
|
1251
1252
|
#
|
1252
1253
|
# @example Example: To remove tag set from an object
|
1253
1254
|
#
|
1254
|
-
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
1255
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
1256
|
+
# # operation removes tag set from the latest object version.
|
1255
1257
|
#
|
1256
1258
|
# resp = client.delete_object_tagging({
|
1257
1259
|
# bucket: "examplebucket",
|
@@ -1311,7 +1313,8 @@ module Aws::S3
|
|
1311
1313
|
#
|
1312
1314
|
# @example Example: To delete multiple object versions from a versioned bucket
|
1313
1315
|
#
|
1314
|
-
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
1316
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
1317
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
1315
1318
|
#
|
1316
1319
|
# resp = client.delete_objects({
|
1317
1320
|
# bucket: "examplebucket",
|
@@ -1346,7 +1349,8 @@ module Aws::S3
|
|
1346
1349
|
#
|
1347
1350
|
# @example Example: To delete multiple objects from a versioned bucket
|
1348
1351
|
#
|
1349
|
-
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
1352
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
1353
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
1350
1354
|
#
|
1351
1355
|
# resp = client.delete_objects({
|
1352
1356
|
# bucket: "examplebucket",
|
@@ -2483,7 +2487,8 @@ module Aws::S3
|
|
2483
2487
|
#
|
2484
2488
|
# @example Example: To retrieve a byte range of an object
|
2485
2489
|
#
|
2486
|
-
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
2490
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
2491
|
+
# # specific byte range.
|
2487
2492
|
#
|
2488
2493
|
# resp = client.get_object({
|
2489
2494
|
# bucket: "examplebucket",
|
@@ -3210,7 +3215,9 @@ module Aws::S3
|
|
3210
3215
|
#
|
3211
3216
|
# @example Example: To list object versions
|
3212
3217
|
#
|
3213
|
-
# # The following example return versions of an object with specific key name prefix. The request limits the number of items
|
3218
|
+
# # The following example return versions of an object with specific key name prefix. The request limits the number of items
|
3219
|
+
# # returned to two. If there are are more than two object version, S3 returns NextToken in the response. You can specify
|
3220
|
+
# # this token value in your next request to fetch next set of object versions.
|
3214
3221
|
#
|
3215
3222
|
# resp = client.list_buckets({
|
3216
3223
|
# })
|
@@ -3347,7 +3354,8 @@ module Aws::S3
|
|
3347
3354
|
#
|
3348
3355
|
# @example Example: List next set of multipart uploads when previous result is truncated
|
3349
3356
|
#
|
3350
|
-
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
3357
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
3358
|
+
# # setup of multipart uploads.
|
3351
3359
|
#
|
3352
3360
|
# resp = client.list_multipart_uploads({
|
3353
3361
|
# bucket: "examplebucket",
|
@@ -3489,7 +3497,9 @@ module Aws::S3
|
|
3489
3497
|
#
|
3490
3498
|
# @example Example: To list object versions
|
3491
3499
|
#
|
3492
|
-
# # The following example return versions of an object with specific key name prefix. The request limits the number of items
|
3500
|
+
# # The following example return versions of an object with specific key name prefix. The request limits the number of items
|
3501
|
+
# # returned to two. If there are are more than two object version, S3 returns NextToken in the response. You can specify
|
3502
|
+
# # this token value in your next request to fetch next set of object versions.
|
3493
3503
|
#
|
3494
3504
|
# resp = client.list_object_versions({
|
3495
3505
|
# bucket: "examplebucket",
|
@@ -3767,7 +3777,8 @@ module Aws::S3
|
|
3767
3777
|
#
|
3768
3778
|
# @example Example: To get object list
|
3769
3779
|
#
|
3770
|
-
# # The following example retrieves object list. The request specifies max keys to limit response to include only 2 object
|
3780
|
+
# # The following example retrieves object list. The request specifies max keys to limit response to include only 2 object
|
3781
|
+
# # keys.
|
3771
3782
|
#
|
3772
3783
|
# resp = client.list_objects_v2({
|
3773
3784
|
# bucket: "examplebucket",
|
@@ -4030,7 +4041,9 @@ module Aws::S3
|
|
4030
4041
|
#
|
4031
4042
|
# @example Example: Put bucket acl
|
4032
4043
|
#
|
4033
|
-
# # The following example replaces existing ACL on a bucket. The ACL grants the bucket owner (specified using the owner ID)
|
4044
|
+
# # The following example replaces existing ACL on a bucket. The ACL grants the bucket owner (specified using the owner ID)
|
4045
|
+
# # and write permission to the LogDelivery group. Because this is a replace operation, you must specify all the grants in
|
4046
|
+
# # your request. To incrementally add or remove ACL grants, you might use the console.
|
4034
4047
|
#
|
4035
4048
|
# resp = client.put_bucket_acl({
|
4036
4049
|
# bucket: "examplebucket",
|
@@ -4153,7 +4166,8 @@ module Aws::S3
|
|
4153
4166
|
#
|
4154
4167
|
# @example Example: To set cors configuration on a bucket.
|
4155
4168
|
#
|
4156
|
-
# # The following example enables PUT, POST, and DELETE requests from www.example.com, and enables GET requests from any
|
4169
|
+
# # The following example enables PUT, POST, and DELETE requests from www.example.com, and enables GET requests from any
|
4170
|
+
# # domain.
|
4157
4171
|
#
|
4158
4172
|
# resp = client.put_bucket_cors({
|
4159
4173
|
# bucket: "",
|
@@ -4443,7 +4457,8 @@ module Aws::S3
|
|
4443
4457
|
#
|
4444
4458
|
# @example Example: Set logging configuration for a bucket
|
4445
4459
|
#
|
4446
|
-
# # The following example sets logging policy on a bucket. For the Log Delivery group to deliver logs to the destination
|
4460
|
+
# # The following example sets logging policy on a bucket. For the Log Delivery group to deliver logs to the destination
|
4461
|
+
# # bucket, it needs permission for the READ_ACP action which the policy grants.
|
4447
4462
|
#
|
4448
4463
|
# resp = client.put_bucket_logging({
|
4449
4464
|
# bucket: "sourcebucket",
|
@@ -5133,7 +5148,8 @@ module Aws::S3
|
|
5133
5148
|
#
|
5134
5149
|
# @example Example: To upload an object and specify server-side encryption and object tags
|
5135
5150
|
#
|
5136
|
-
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
5151
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
5152
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
5137
5153
|
#
|
5138
5154
|
# resp = client.put_object({
|
5139
5155
|
# body: "filetoupload",
|
@@ -5152,7 +5168,8 @@ module Aws::S3
|
|
5152
5168
|
#
|
5153
5169
|
# @example Example: To upload an object and specify canned ACL.
|
5154
5170
|
#
|
5155
|
-
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
5171
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
5172
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
5156
5173
|
#
|
5157
5174
|
# resp = client.put_object({
|
5158
5175
|
# acl: "authenticated-read",
|
@@ -5169,7 +5186,8 @@ module Aws::S3
|
|
5169
5186
|
#
|
5170
5187
|
# @example Example: To upload an object
|
5171
5188
|
#
|
5172
|
-
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
5189
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
5190
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
5173
5191
|
#
|
5174
5192
|
# resp = client.put_object({
|
5175
5193
|
# body: "HappyFace.jpg",
|
@@ -5201,7 +5219,8 @@ module Aws::S3
|
|
5201
5219
|
#
|
5202
5220
|
# @example Example: To upload an object and specify optional tags
|
5203
5221
|
#
|
5204
|
-
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
5222
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
5223
|
+
# # S3 returns version ID of the newly created object.
|
5205
5224
|
#
|
5206
5225
|
# resp = client.put_object({
|
5207
5226
|
# body: "c:\\HappyFace.jpg",
|
@@ -5218,7 +5237,8 @@ module Aws::S3
|
|
5218
5237
|
#
|
5219
5238
|
# @example Example: To upload object and specify user-defined metadata
|
5220
5239
|
#
|
5221
|
-
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
5240
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
5241
|
+
# # enabled, S3 returns version ID in response.
|
5222
5242
|
#
|
5223
5243
|
# resp = client.put_object({
|
5224
5244
|
# body: "filetoupload",
|
@@ -5238,7 +5258,8 @@ module Aws::S3
|
|
5238
5258
|
#
|
5239
5259
|
# @example Example: To upload an object (specify optional headers)
|
5240
5260
|
#
|
5241
|
-
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
5261
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
5262
|
+
# # storage class and use server-side encryption.
|
5242
5263
|
#
|
5243
5264
|
# resp = client.put_object({
|
5244
5265
|
# body: "HappyFace.jpg",
|
@@ -5362,7 +5383,8 @@ module Aws::S3
|
|
5362
5383
|
#
|
5363
5384
|
# @example Example: To grant permissions using object ACL
|
5364
5385
|
#
|
5365
|
-
# # The following example adds grants to an object ACL. The first permission grants user1 and user2 FULL_CONTROL and the
|
5386
|
+
# # The following example adds grants to an object ACL. The first permission grants user1 and user2 FULL_CONTROL and the
|
5387
|
+
# # AllUsers group READ permission.
|
5366
5388
|
#
|
5367
5389
|
# resp = client.put_object_acl({
|
5368
5390
|
# access_control_policy: {
|
@@ -5635,7 +5657,8 @@ module Aws::S3
|
|
5635
5657
|
#
|
5636
5658
|
# @example Example: To upload a part
|
5637
5659
|
#
|
5638
|
-
# # The following example uploads part 1 of a multipart upload. The example specifies a file name for the part data. The
|
5660
|
+
# # The following example uploads part 1 of a multipart upload. The example specifies a file name for the part data. The
|
5661
|
+
# # Upload ID is same that is returned by the initiate multipart upload.
|
5639
5662
|
#
|
5640
5663
|
# resp = client.upload_part({
|
5641
5664
|
# body: "fileToUpload",
|
@@ -5774,7 +5797,8 @@ module Aws::S3
|
|
5774
5797
|
#
|
5775
5798
|
# @example Example: To upload a part by copying byte range from an existing object as data source
|
5776
5799
|
#
|
5777
|
-
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
5800
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
5801
|
+
# # data source.
|
5778
5802
|
#
|
5779
5803
|
# resp = client.upload_part_copy({
|
5780
5804
|
# bucket: "examplebucket",
|
@@ -5868,7 +5892,7 @@ module Aws::S3
|
|
5868
5892
|
params: params,
|
5869
5893
|
config: config)
|
5870
5894
|
context[:gem_name] = 'aws-sdk-s3'
|
5871
|
-
context[:gem_version] = '1.
|
5895
|
+
context[:gem_version] = '1.3.0'
|
5872
5896
|
Seahorse::Client::Request.new(handlers, context)
|
5873
5897
|
end
|
5874
5898
|
|
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.3.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: 2017-09-
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|