aws-sdk-s3 1.30.1 → 1.31.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/lib/aws-sdk-s3/bucket.rb +2 -1
- data/lib/aws-sdk-s3/bucket_acl.rb +1 -0
- data/lib/aws-sdk-s3/bucket_cors.rb +1 -0
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +1 -0
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +1 -0
- data/lib/aws-sdk-s3/bucket_notification.rb +3 -0
- data/lib/aws-sdk-s3/bucket_tagging.rb +1 -0
- data/lib/aws-sdk-s3/bucket_website.rb +4 -0
- data/lib/aws-sdk-s3/client.rb +93 -90
- data/lib/aws-sdk-s3/multipart_upload.rb +1 -0
- data/lib/aws-sdk-s3/multipart_upload_part.rb +1 -1
- data/lib/aws-sdk-s3/object.rb +5 -1
- data/lib/aws-sdk-s3/object_acl.rb +1 -0
- data/lib/aws-sdk-s3/object_summary.rb +6 -1
- data/lib/aws-sdk-s3/object_version.rb +2 -0
- data/lib/aws-sdk-s3/types.rb +20 -16
- data/lib/aws-sdk-s3.rb +1 -1
- 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: 1ea037ac6ac98a89394027d7c857d10efda0f513
|
4
|
+
data.tar.gz: e2ff89032cf0de9f9c73b9986ab5bb731fd38736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 300e3f2581f6d15e31e0ca36b565a4483851375334151d8af8a440cec13c98ddf8e2cdf8b12528364f00bc316a7cd60dfb1a21672e18199167a06a4b8ed397a6
|
7
|
+
data.tar.gz: 31e5bc04cd95d86b2307f356b0437fb09f89fb1cd0fecb6359a27b1933ee44d4dd57cef00be1e7ca7266b30d3d6bd91708eea673e89e6896739068ce21e501b3
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -353,7 +353,8 @@ module Aws::S3
|
|
353
353
|
# Size of the body in bytes. This parameter is useful when the size of
|
354
354
|
# the body cannot be determined automatically.
|
355
355
|
# @option options [String] :content_md5
|
356
|
-
# The base64-encoded 128-bit MD5 digest of the part data.
|
356
|
+
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
357
|
+
# is auto-populated when using the command from the CLI
|
357
358
|
# @option options [String] :content_type
|
358
359
|
# A standard MIME type describing the format of the object data.
|
359
360
|
# @option options [Time,DateTime,Date,Integer,String] :expires
|
@@ -30,16 +30,19 @@ module Aws::S3
|
|
30
30
|
@bucket_name
|
31
31
|
end
|
32
32
|
|
33
|
+
|
33
34
|
# @return [Array<Types::TopicConfiguration>]
|
34
35
|
def topic_configurations
|
35
36
|
data[:topic_configurations]
|
36
37
|
end
|
37
38
|
|
39
|
+
|
38
40
|
# @return [Array<Types::QueueConfiguration>]
|
39
41
|
def queue_configurations
|
40
42
|
data[:queue_configurations]
|
41
43
|
end
|
42
44
|
|
45
|
+
|
43
46
|
# @return [Array<Types::LambdaFunctionConfiguration>]
|
44
47
|
def lambda_function_configurations
|
45
48
|
data[:lambda_function_configurations]
|
@@ -30,21 +30,25 @@ module Aws::S3
|
|
30
30
|
@bucket_name
|
31
31
|
end
|
32
32
|
|
33
|
+
|
33
34
|
# @return [Types::RedirectAllRequestsTo]
|
34
35
|
def redirect_all_requests_to
|
35
36
|
data[:redirect_all_requests_to]
|
36
37
|
end
|
37
38
|
|
39
|
+
|
38
40
|
# @return [Types::IndexDocument]
|
39
41
|
def index_document
|
40
42
|
data[:index_document]
|
41
43
|
end
|
42
44
|
|
45
|
+
|
43
46
|
# @return [Types::ErrorDocument]
|
44
47
|
def error_document
|
45
48
|
data[:error_document]
|
46
49
|
end
|
47
50
|
|
51
|
+
|
48
52
|
# @return [Array<Types::RoutingRule>]
|
49
53
|
def routing_rules
|
50
54
|
data[:routing_rules]
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -1306,6 +1306,15 @@ module Aws::S3
|
|
1306
1306
|
# * {Types::DeleteObjectOutput#request_charged #request_charged} => String
|
1307
1307
|
#
|
1308
1308
|
#
|
1309
|
+
# @example Example: To delete an object (from a non-versioned bucket)
|
1310
|
+
#
|
1311
|
+
# # The following example deletes an object from a non-versioned bucket.
|
1312
|
+
#
|
1313
|
+
# resp = client.delete_object({
|
1314
|
+
# bucket: "ExampleBucket",
|
1315
|
+
# key: "HappyFace.jpg",
|
1316
|
+
# })
|
1317
|
+
#
|
1309
1318
|
# @example Example: To delete an object
|
1310
1319
|
#
|
1311
1320
|
# # The following example deletes an object from an S3 bucket.
|
@@ -1319,15 +1328,6 @@ module Aws::S3
|
|
1319
1328
|
# {
|
1320
1329
|
# }
|
1321
1330
|
#
|
1322
|
-
# @example Example: To delete an object (from a non-versioned bucket)
|
1323
|
-
#
|
1324
|
-
# # The following example deletes an object from a non-versioned bucket.
|
1325
|
-
#
|
1326
|
-
# resp = client.delete_object({
|
1327
|
-
# bucket: "ExampleBucket",
|
1328
|
-
# key: "HappyFace.jpg",
|
1329
|
-
# })
|
1330
|
-
#
|
1331
1331
|
# @example Request syntax with placeholder values
|
1332
1332
|
#
|
1333
1333
|
# resp = client.delete_object({
|
@@ -1368,35 +1368,35 @@ module Aws::S3
|
|
1368
1368
|
# * {Types::DeleteObjectTaggingOutput#version_id #version_id} => String
|
1369
1369
|
#
|
1370
1370
|
#
|
1371
|
-
# @example Example: To remove tag set from an object
|
1371
|
+
# @example Example: To remove tag set from an object
|
1372
1372
|
#
|
1373
|
-
# # The following example removes tag set associated with the specified object
|
1374
|
-
# #
|
1373
|
+
# # The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the
|
1374
|
+
# # operation removes tag set from the latest object version.
|
1375
1375
|
#
|
1376
1376
|
# resp = client.delete_object_tagging({
|
1377
1377
|
# bucket: "examplebucket",
|
1378
1378
|
# key: "HappyFace.jpg",
|
1379
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
1380
1379
|
# })
|
1381
1380
|
#
|
1382
1381
|
# resp.to_h outputs the following:
|
1383
1382
|
# {
|
1384
|
-
# version_id: "
|
1383
|
+
# version_id: "null",
|
1385
1384
|
# }
|
1386
1385
|
#
|
1387
|
-
# @example Example: To remove tag set from an object
|
1386
|
+
# @example Example: To remove tag set from an object version
|
1388
1387
|
#
|
1389
|
-
# # The following example removes tag set associated with the specified object.
|
1390
|
-
# #
|
1388
|
+
# # The following example removes tag set associated with the specified object version. The request specifies both the
|
1389
|
+
# # object key and object version.
|
1391
1390
|
#
|
1392
1391
|
# resp = client.delete_object_tagging({
|
1393
1392
|
# bucket: "examplebucket",
|
1394
1393
|
# key: "HappyFace.jpg",
|
1394
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
1395
1395
|
# })
|
1396
1396
|
#
|
1397
1397
|
# resp.to_h outputs the following:
|
1398
1398
|
# {
|
1399
|
-
# version_id: "
|
1399
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
1400
1400
|
# }
|
1401
1401
|
#
|
1402
1402
|
# @example Request syntax with placeholder values
|
@@ -1837,7 +1837,7 @@ module Aws::S3
|
|
1837
1837
|
req.send_request(options)
|
1838
1838
|
end
|
1839
1839
|
|
1840
|
-
#
|
1840
|
+
# No longer used, see the GetBucketLifecycleConfiguration operation.
|
1841
1841
|
#
|
1842
1842
|
# @option params [required, String] :bucket
|
1843
1843
|
#
|
@@ -2094,7 +2094,7 @@ module Aws::S3
|
|
2094
2094
|
req.send_request(options)
|
2095
2095
|
end
|
2096
2096
|
|
2097
|
-
#
|
2097
|
+
# No longer used, see the GetBucketNotificationConfiguration operation.
|
2098
2098
|
#
|
2099
2099
|
# @option params [required, String] :bucket
|
2100
2100
|
# Name of the bucket to get the notification configuration for.
|
@@ -2711,49 +2711,49 @@ module Aws::S3
|
|
2711
2711
|
# * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
|
2712
2712
|
#
|
2713
2713
|
#
|
2714
|
-
# @example Example: To retrieve an object
|
2714
|
+
# @example Example: To retrieve a byte range of an object
|
2715
2715
|
#
|
2716
|
-
# # The following example retrieves an object for an S3 bucket.
|
2716
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
2717
|
+
# # specific byte range.
|
2717
2718
|
#
|
2718
2719
|
# resp = client.get_object({
|
2719
2720
|
# bucket: "examplebucket",
|
2720
|
-
# key: "
|
2721
|
+
# key: "SampleFile.txt",
|
2722
|
+
# range: "bytes=0-9",
|
2721
2723
|
# })
|
2722
2724
|
#
|
2723
2725
|
# resp.to_h outputs the following:
|
2724
2726
|
# {
|
2725
2727
|
# accept_ranges: "bytes",
|
2726
|
-
# content_length:
|
2727
|
-
#
|
2728
|
-
#
|
2729
|
-
#
|
2728
|
+
# content_length: 10,
|
2729
|
+
# content_range: "bytes 0-9/43",
|
2730
|
+
# content_type: "text/plain",
|
2731
|
+
# etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
2732
|
+
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
2730
2733
|
# metadata: {
|
2731
2734
|
# },
|
2732
|
-
# tag_count: 2,
|
2733
2735
|
# version_id: "null",
|
2734
2736
|
# }
|
2735
2737
|
#
|
2736
|
-
# @example Example: To retrieve
|
2738
|
+
# @example Example: To retrieve an object
|
2737
2739
|
#
|
2738
|
-
# # The following example retrieves an object for an S3 bucket.
|
2739
|
-
# # specific byte range.
|
2740
|
+
# # The following example retrieves an object for an S3 bucket.
|
2740
2741
|
#
|
2741
2742
|
# resp = client.get_object({
|
2742
2743
|
# bucket: "examplebucket",
|
2743
|
-
# key: "
|
2744
|
-
# range: "bytes=0-9",
|
2744
|
+
# key: "HappyFace.jpg",
|
2745
2745
|
# })
|
2746
2746
|
#
|
2747
2747
|
# resp.to_h outputs the following:
|
2748
2748
|
# {
|
2749
2749
|
# accept_ranges: "bytes",
|
2750
|
-
# content_length:
|
2751
|
-
#
|
2752
|
-
#
|
2753
|
-
#
|
2754
|
-
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
2750
|
+
# content_length: 3191,
|
2751
|
+
# content_type: "image/jpeg",
|
2752
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
2753
|
+
# last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
|
2755
2754
|
# metadata: {
|
2756
2755
|
# },
|
2756
|
+
# tag_count: 2,
|
2757
2757
|
# version_id: "null",
|
2758
2758
|
# }
|
2759
2759
|
#
|
@@ -3100,49 +3100,49 @@ module Aws::S3
|
|
3100
3100
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
3101
3101
|
#
|
3102
3102
|
#
|
3103
|
-
# @example Example: To retrieve tag set of
|
3103
|
+
# @example Example: To retrieve tag set of an object
|
3104
3104
|
#
|
3105
|
-
# # The following example retrieves tag set of an object.
|
3105
|
+
# # The following example retrieves tag set of an object.
|
3106
3106
|
#
|
3107
3107
|
# resp = client.get_object_tagging({
|
3108
3108
|
# bucket: "examplebucket",
|
3109
|
-
# key: "
|
3110
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3109
|
+
# key: "HappyFace.jpg",
|
3111
3110
|
# })
|
3112
3111
|
#
|
3113
3112
|
# resp.to_h outputs the following:
|
3114
3113
|
# {
|
3115
3114
|
# tag_set: [
|
3116
3115
|
# {
|
3117
|
-
# key: "
|
3118
|
-
# value: "
|
3116
|
+
# key: "Key4",
|
3117
|
+
# value: "Value4",
|
3118
|
+
# },
|
3119
|
+
# {
|
3120
|
+
# key: "Key3",
|
3121
|
+
# value: "Value3",
|
3119
3122
|
# },
|
3120
3123
|
# ],
|
3121
|
-
# version_id: "
|
3124
|
+
# version_id: "null",
|
3122
3125
|
# }
|
3123
3126
|
#
|
3124
|
-
# @example Example: To retrieve tag set of
|
3127
|
+
# @example Example: To retrieve tag set of a specific object version
|
3125
3128
|
#
|
3126
|
-
# # The following example retrieves tag set of an object.
|
3129
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
3127
3130
|
#
|
3128
3131
|
# resp = client.get_object_tagging({
|
3129
3132
|
# bucket: "examplebucket",
|
3130
|
-
# key: "
|
3133
|
+
# key: "exampleobject",
|
3134
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3131
3135
|
# })
|
3132
3136
|
#
|
3133
3137
|
# resp.to_h outputs the following:
|
3134
3138
|
# {
|
3135
3139
|
# tag_set: [
|
3136
3140
|
# {
|
3137
|
-
# key: "
|
3138
|
-
# value: "
|
3139
|
-
# },
|
3140
|
-
# {
|
3141
|
-
# key: "Key3",
|
3142
|
-
# value: "Value3",
|
3141
|
+
# key: "Key1",
|
3142
|
+
# value: "Value1",
|
3143
3143
|
# },
|
3144
3144
|
# ],
|
3145
|
-
# version_id: "
|
3145
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
3146
3146
|
# }
|
3147
3147
|
#
|
3148
3148
|
# @example Request syntax with placeholder values
|
@@ -4662,7 +4662,8 @@ module Aws::S3
|
|
4662
4662
|
#
|
4663
4663
|
# @option params [String] :content_md5
|
4664
4664
|
# The base64-encoded 128-bit MD5 digest of the server-side encryption
|
4665
|
-
# configuration.
|
4665
|
+
# configuration. This parameter is auto-populated when using the command
|
4666
|
+
# from the CLI
|
4666
4667
|
#
|
4667
4668
|
# @option params [required, Types::ServerSideEncryptionConfiguration] :server_side_encryption_configuration
|
4668
4669
|
# Container for server-side encryption configuration rules. Currently S3
|
@@ -4754,7 +4755,7 @@ module Aws::S3
|
|
4754
4755
|
req.send_request(options)
|
4755
4756
|
end
|
4756
4757
|
|
4757
|
-
#
|
4758
|
+
# No longer used, see the PutBucketLifecycleConfiguration operation.
|
4758
4759
|
#
|
4759
4760
|
# @option params [required, String] :bucket
|
4760
4761
|
#
|
@@ -5031,7 +5032,7 @@ module Aws::S3
|
|
5031
5032
|
req.send_request(options)
|
5032
5033
|
end
|
5033
5034
|
|
5034
|
-
#
|
5035
|
+
# No longer used, see the PutBucketNotificationConfiguration operation.
|
5035
5036
|
#
|
5036
5037
|
# @option params [required, String] :bucket
|
5037
5038
|
#
|
@@ -5570,7 +5571,8 @@ module Aws::S3
|
|
5570
5571
|
# the body cannot be determined automatically.
|
5571
5572
|
#
|
5572
5573
|
# @option params [String] :content_md5
|
5573
|
-
# The base64-encoded 128-bit MD5 digest of the part data.
|
5574
|
+
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
5575
|
+
# is auto-populated when using the command from the CLI
|
5574
5576
|
#
|
5575
5577
|
# @option params [String] :content_type
|
5576
5578
|
# A standard MIME type describing the format of the object data.
|
@@ -5664,20 +5666,22 @@ module Aws::S3
|
|
5664
5666
|
# * {Types::PutObjectOutput#request_charged #request_charged} => String
|
5665
5667
|
#
|
5666
5668
|
#
|
5667
|
-
# @example Example: To
|
5669
|
+
# @example Example: To upload an object and specify canned ACL.
|
5668
5670
|
#
|
5669
|
-
# # The following example
|
5671
|
+
# # The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ
|
5672
|
+
# # access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.
|
5670
5673
|
#
|
5671
5674
|
# resp = client.put_object({
|
5675
|
+
# acl: "authenticated-read",
|
5672
5676
|
# body: "filetoupload",
|
5673
5677
|
# bucket: "examplebucket",
|
5674
|
-
# key: "
|
5678
|
+
# key: "exampleobject",
|
5675
5679
|
# })
|
5676
5680
|
#
|
5677
5681
|
# resp.to_h outputs the following:
|
5678
5682
|
# {
|
5679
5683
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5680
|
-
# version_id: "
|
5684
|
+
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
5681
5685
|
# }
|
5682
5686
|
#
|
5683
5687
|
# @example Example: To upload an object
|
@@ -5697,24 +5701,20 @@ module Aws::S3
|
|
5697
5701
|
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
5698
5702
|
# }
|
5699
5703
|
#
|
5700
|
-
# @example Example: To
|
5704
|
+
# @example Example: To create an object.
|
5701
5705
|
#
|
5702
|
-
# # The following example
|
5703
|
-
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
5706
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
5704
5707
|
#
|
5705
5708
|
# resp = client.put_object({
|
5706
5709
|
# body: "filetoupload",
|
5707
5710
|
# bucket: "examplebucket",
|
5708
|
-
# key: "
|
5709
|
-
# server_side_encryption: "AES256",
|
5710
|
-
# tagging: "key1=value1&key2=value2",
|
5711
|
+
# key: "objectkey",
|
5711
5712
|
# })
|
5712
5713
|
#
|
5713
5714
|
# resp.to_h outputs the following:
|
5714
5715
|
# {
|
5715
5716
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5716
|
-
#
|
5717
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
5717
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
5718
5718
|
# }
|
5719
5719
|
#
|
5720
5720
|
# @example Example: To upload object and specify user-defined metadata
|
@@ -5756,42 +5756,44 @@ module Aws::S3
|
|
5756
5756
|
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
5757
5757
|
# }
|
5758
5758
|
#
|
5759
|
-
# @example Example: To upload an object
|
5759
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
5760
5760
|
#
|
5761
|
-
# # The following example uploads
|
5762
|
-
# #
|
5761
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
5762
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
5763
5763
|
#
|
5764
5764
|
# resp = client.put_object({
|
5765
|
-
# body: "
|
5765
|
+
# body: "filetoupload",
|
5766
5766
|
# bucket: "examplebucket",
|
5767
|
-
# key: "
|
5767
|
+
# key: "exampleobject",
|
5768
5768
|
# server_side_encryption: "AES256",
|
5769
|
-
#
|
5769
|
+
# tagging: "key1=value1&key2=value2",
|
5770
5770
|
# })
|
5771
5771
|
#
|
5772
5772
|
# resp.to_h outputs the following:
|
5773
5773
|
# {
|
5774
5774
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5775
5775
|
# server_side_encryption: "AES256",
|
5776
|
-
# version_id: "
|
5776
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
5777
5777
|
# }
|
5778
5778
|
#
|
5779
|
-
# @example Example: To upload an object
|
5779
|
+
# @example Example: To upload an object (specify optional headers)
|
5780
5780
|
#
|
5781
|
-
# # The following example uploads
|
5782
|
-
# #
|
5781
|
+
# # The following example uploads an object. The request specifies optional request headers to directs S3 to use specific
|
5782
|
+
# # storage class and use server-side encryption.
|
5783
5783
|
#
|
5784
5784
|
# resp = client.put_object({
|
5785
|
-
#
|
5786
|
-
# body: "filetoupload",
|
5785
|
+
# body: "HappyFace.jpg",
|
5787
5786
|
# bucket: "examplebucket",
|
5788
|
-
# key: "
|
5787
|
+
# key: "HappyFace.jpg",
|
5788
|
+
# server_side_encryption: "AES256",
|
5789
|
+
# storage_class: "STANDARD_IA",
|
5789
5790
|
# })
|
5790
5791
|
#
|
5791
5792
|
# resp.to_h outputs the following:
|
5792
5793
|
# {
|
5793
5794
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
5794
|
-
#
|
5795
|
+
# server_side_encryption: "AES256",
|
5796
|
+
# version_id: "CG612hodqujkf8FaaNfp8U..FIhLROcp",
|
5795
5797
|
# }
|
5796
5798
|
#
|
5797
5799
|
# @example Streaming a file from disk
|
@@ -6043,6 +6045,7 @@ module Aws::S3
|
|
6043
6045
|
# http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
6044
6046
|
#
|
6045
6047
|
# @option params [String] :token
|
6048
|
+
# A token to allow Object Lock to be enabled for an existing bucket.
|
6046
6049
|
#
|
6047
6050
|
# @option params [String] :content_md5
|
6048
6051
|
# The MD5 hash for the request body.
|
@@ -6432,7 +6435,7 @@ module Aws::S3
|
|
6432
6435
|
#
|
6433
6436
|
#
|
6434
6437
|
#
|
6435
|
-
# [1]:
|
6438
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
6436
6439
|
#
|
6437
6440
|
# @option params [String] :sse_customer_key
|
6438
6441
|
# The SSE Customer Key. For more information, see [ Server-Side
|
@@ -6440,7 +6443,7 @@ module Aws::S3
|
|
6440
6443
|
#
|
6441
6444
|
#
|
6442
6445
|
#
|
6443
|
-
# [1]:
|
6446
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
6444
6447
|
#
|
6445
6448
|
# @option params [String] :sse_customer_key_md5
|
6446
6449
|
# The SSE Customer Key MD5. For more information, see [ Server-Side
|
@@ -6448,7 +6451,7 @@ module Aws::S3
|
|
6448
6451
|
#
|
6449
6452
|
#
|
6450
6453
|
#
|
6451
|
-
# [1]:
|
6454
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
6452
6455
|
#
|
6453
6456
|
# @option params [required, String] :expression
|
6454
6457
|
# The expression that is used to query the object.
|
@@ -6832,7 +6835,7 @@ module Aws::S3
|
|
6832
6835
|
# must use the form bytes=first-last, where the first and last are the
|
6833
6836
|
# zero-based byte offsets to copy. For example, bytes=0-9 indicates that
|
6834
6837
|
# you want to copy the first ten bytes of the source. You can copy a
|
6835
|
-
# range only if the source object is greater than 5
|
6838
|
+
# range only if the source object is greater than 5 MB.
|
6836
6839
|
#
|
6837
6840
|
# @option params [required, String] :key
|
6838
6841
|
#
|
@@ -6990,7 +6993,7 @@ module Aws::S3
|
|
6990
6993
|
params: params,
|
6991
6994
|
config: config)
|
6992
6995
|
context[:gem_name] = 'aws-sdk-s3'
|
6993
|
-
context[:gem_version] = '1.
|
6996
|
+
context[:gem_version] = '1.31.0'
|
6994
6997
|
Seahorse::Client::Request.new(handlers, context)
|
6995
6998
|
end
|
6996
6999
|
|
@@ -235,7 +235,7 @@ module Aws::S3
|
|
235
235
|
# must use the form bytes=first-last, where the first and last are the
|
236
236
|
# zero-based byte offsets to copy. For example, bytes=0-9 indicates that
|
237
237
|
# you want to copy the first ten bytes of the source. You can copy a
|
238
|
-
# range only if the source object is greater than 5
|
238
|
+
# range only if the source object is greater than 5 MB.
|
239
239
|
# @option options [String] :sse_customer_algorithm
|
240
240
|
# Specifies the algorithm to use to when encrypting the object (e.g.,
|
241
241
|
# AES256).
|
data/lib/aws-sdk-s3/object.rb
CHANGED
@@ -46,6 +46,7 @@ module Aws::S3
|
|
46
46
|
data[:delete_marker]
|
47
47
|
end
|
48
48
|
|
49
|
+
|
49
50
|
# @return [String]
|
50
51
|
def accept_ranges
|
51
52
|
data[:accept_ranges]
|
@@ -190,6 +191,7 @@ module Aws::S3
|
|
190
191
|
data[:ssekms_key_id]
|
191
192
|
end
|
192
193
|
|
194
|
+
|
193
195
|
# @return [String]
|
194
196
|
def storage_class
|
195
197
|
data[:storage_class]
|
@@ -202,6 +204,7 @@ module Aws::S3
|
|
202
204
|
data[:request_charged]
|
203
205
|
end
|
204
206
|
|
207
|
+
|
205
208
|
# @return [String]
|
206
209
|
def replication_status
|
207
210
|
data[:replication_status]
|
@@ -860,7 +863,8 @@ module Aws::S3
|
|
860
863
|
# Size of the body in bytes. This parameter is useful when the size of
|
861
864
|
# the body cannot be determined automatically.
|
862
865
|
# @option options [String] :content_md5
|
863
|
-
# The base64-encoded 128-bit MD5 digest of the part data.
|
866
|
+
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
867
|
+
# is auto-populated when using the command from the CLI
|
864
868
|
# @option options [String] :content_type
|
865
869
|
# A standard MIME type describing the format of the object data.
|
866
870
|
# @option options [Time,DateTime,Date,Integer,String] :expires
|
@@ -38,16 +38,19 @@ module Aws::S3
|
|
38
38
|
@key
|
39
39
|
end
|
40
40
|
|
41
|
+
|
41
42
|
# @return [Time]
|
42
43
|
def last_modified
|
43
44
|
data[:last_modified]
|
44
45
|
end
|
45
46
|
|
47
|
+
|
46
48
|
# @return [String]
|
47
49
|
def etag
|
48
50
|
data[:etag]
|
49
51
|
end
|
50
52
|
|
53
|
+
|
51
54
|
# @return [Integer]
|
52
55
|
def size
|
53
56
|
data[:size]
|
@@ -59,6 +62,7 @@ module Aws::S3
|
|
59
62
|
data[:storage_class]
|
60
63
|
end
|
61
64
|
|
65
|
+
|
62
66
|
# @return [Types::Owner]
|
63
67
|
def owner
|
64
68
|
data[:owner]
|
@@ -685,7 +689,8 @@ module Aws::S3
|
|
685
689
|
# Size of the body in bytes. This parameter is useful when the size of
|
686
690
|
# the body cannot be determined automatically.
|
687
691
|
# @option options [String] :content_md5
|
688
|
-
# The base64-encoded 128-bit MD5 digest of the part data.
|
692
|
+
# The base64-encoded 128-bit MD5 digest of the part data. This parameter
|
693
|
+
# is auto-populated when using the command from the CLI
|
689
694
|
# @option options [String] :content_type
|
690
695
|
# A standard MIME type describing the format of the object data.
|
691
696
|
# @option options [Time,DateTime,Date,Integer,String] :expires
|
data/lib/aws-sdk-s3/types.rb
CHANGED
@@ -1248,7 +1248,8 @@ module Aws::S3
|
|
1248
1248
|
#
|
1249
1249
|
# @!attribute [rw] location_constraint
|
1250
1250
|
# Specifies the region where the bucket will be created. If you don't
|
1251
|
-
# specify a region, the bucket
|
1251
|
+
# specify a region, the bucket is created in US East (N. Virginia)
|
1252
|
+
# Region (us-east-1).
|
1252
1253
|
# @return [String]
|
1253
1254
|
#
|
1254
1255
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/CreateBucketConfiguration AWS API Documentation
|
@@ -2364,7 +2365,7 @@ module Aws::S3
|
|
2364
2365
|
#
|
2365
2366
|
#
|
2366
2367
|
#
|
2367
|
-
# [1]:
|
2368
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
2368
2369
|
# @return [String]
|
2369
2370
|
#
|
2370
2371
|
# @!attribute [rw] value
|
@@ -4376,7 +4377,7 @@ module Aws::S3
|
|
4376
4377
|
#
|
4377
4378
|
#
|
4378
4379
|
#
|
4379
|
-
# [1]:
|
4380
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
4380
4381
|
# @return [Types::NotificationConfigurationFilter]
|
4381
4382
|
#
|
4382
4383
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LambdaFunctionConfiguration AWS API Documentation
|
@@ -4526,7 +4527,7 @@ module Aws::S3
|
|
4526
4527
|
#
|
4527
4528
|
# @!attribute [rw] prefix
|
4528
4529
|
# Prefix identifying one or more objects to which the rule applies.
|
4529
|
-
# This is
|
4530
|
+
# This is No longer used; use Filter instead.
|
4530
4531
|
# @return [String]
|
4531
4532
|
#
|
4532
4533
|
# @!attribute [rw] filter
|
@@ -5769,7 +5770,7 @@ module Aws::S3
|
|
5769
5770
|
#
|
5770
5771
|
#
|
5771
5772
|
#
|
5772
|
-
# [1]:
|
5773
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#non-current-days-calculations
|
5773
5774
|
# @return [Integer]
|
5774
5775
|
#
|
5775
5776
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/NoncurrentVersionExpiration AWS API Documentation
|
@@ -5804,7 +5805,7 @@ module Aws::S3
|
|
5804
5805
|
#
|
5805
5806
|
#
|
5806
5807
|
#
|
5807
|
-
# [1]:
|
5808
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-access-control.html
|
5808
5809
|
# @return [Integer]
|
5809
5810
|
#
|
5810
5811
|
# @!attribute [rw] storage_class
|
@@ -5947,7 +5948,7 @@ module Aws::S3
|
|
5947
5948
|
#
|
5948
5949
|
#
|
5949
5950
|
#
|
5950
|
-
# [1]:
|
5951
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
5951
5952
|
#
|
5952
5953
|
# @note When making an API call, you may pass NotificationConfigurationFilter
|
5953
5954
|
# data as a hash:
|
@@ -6668,7 +6669,8 @@ module Aws::S3
|
|
6668
6669
|
#
|
6669
6670
|
# @!attribute [rw] content_md5
|
6670
6671
|
# The base64-encoded 128-bit MD5 digest of the server-side encryption
|
6671
|
-
# configuration.
|
6672
|
+
# configuration. This parameter is auto-populated when using the
|
6673
|
+
# command from the CLI
|
6672
6674
|
# @return [String]
|
6673
6675
|
#
|
6674
6676
|
# @!attribute [rw] server_side_encryption_configuration
|
@@ -7580,6 +7582,7 @@ module Aws::S3
|
|
7580
7582
|
# @return [String]
|
7581
7583
|
#
|
7582
7584
|
# @!attribute [rw] token
|
7585
|
+
# A token to allow Object Lock to be enabled for an existing bucket.
|
7583
7586
|
# @return [String]
|
7584
7587
|
#
|
7585
7588
|
# @!attribute [rw] content_md5
|
@@ -7726,7 +7729,8 @@ module Aws::S3
|
|
7726
7729
|
# @return [Integer]
|
7727
7730
|
#
|
7728
7731
|
# @!attribute [rw] content_md5
|
7729
|
-
# The base64-encoded 128-bit MD5 digest of the part data.
|
7732
|
+
# The base64-encoded 128-bit MD5 digest of the part data. This
|
7733
|
+
# parameter is auto-populated when using the command from the CLI
|
7730
7734
|
# @return [String]
|
7731
7735
|
#
|
7732
7736
|
# @!attribute [rw] content_type
|
@@ -8087,7 +8091,7 @@ module Aws::S3
|
|
8087
8091
|
#
|
8088
8092
|
#
|
8089
8093
|
#
|
8090
|
-
# [1]:
|
8094
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
8091
8095
|
# @return [Types::NotificationConfigurationFilter]
|
8092
8096
|
#
|
8093
8097
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/QueueConfiguration AWS API Documentation
|
@@ -9105,7 +9109,7 @@ module Aws::S3
|
|
9105
9109
|
#
|
9106
9110
|
#
|
9107
9111
|
#
|
9108
|
-
# [1]:
|
9112
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectSELECTContent.html
|
9109
9113
|
#
|
9110
9114
|
# @note When making an API call, you may pass SelectObjectContentRequest
|
9111
9115
|
# data as a hash:
|
@@ -9167,7 +9171,7 @@ module Aws::S3
|
|
9167
9171
|
#
|
9168
9172
|
#
|
9169
9173
|
#
|
9170
|
-
# [1]:
|
9174
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
9171
9175
|
# @return [String]
|
9172
9176
|
#
|
9173
9177
|
# @!attribute [rw] sse_customer_key
|
@@ -9176,7 +9180,7 @@ module Aws::S3
|
|
9176
9180
|
#
|
9177
9181
|
#
|
9178
9182
|
#
|
9179
|
-
# [1]:
|
9183
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
9180
9184
|
# @return [String]
|
9181
9185
|
#
|
9182
9186
|
# @!attribute [rw] sse_customer_key_md5
|
@@ -9185,7 +9189,7 @@ module Aws::S3
|
|
9185
9189
|
#
|
9186
9190
|
#
|
9187
9191
|
#
|
9188
|
-
# [1]:
|
9192
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
9189
9193
|
# @return [String]
|
9190
9194
|
#
|
9191
9195
|
# @!attribute [rw] expression
|
@@ -9637,7 +9641,7 @@ module Aws::S3
|
|
9637
9641
|
#
|
9638
9642
|
#
|
9639
9643
|
#
|
9640
|
-
# [1]:
|
9644
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
9641
9645
|
# @return [Types::NotificationConfigurationFilter]
|
9642
9646
|
#
|
9643
9647
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/TopicConfiguration AWS API Documentation
|
@@ -9824,7 +9828,7 @@ module Aws::S3
|
|
9824
9828
|
# must use the form bytes=first-last, where the first and last are the
|
9825
9829
|
# zero-based byte offsets to copy. For example, bytes=0-9 indicates
|
9826
9830
|
# that you want to copy the first ten bytes of the source. You can
|
9827
|
-
# copy a range only if the source object is greater than 5
|
9831
|
+
# copy a range only if the source object is greater than 5 MB.
|
9828
9832
|
# @return [String]
|
9829
9833
|
#
|
9830
9834
|
# @!attribute [rw] key
|
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.31.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: 2019-
|
11
|
+
date: 2019-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|