aws-sdk-s3 1.48.0 → 1.54.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 +14 -9
- data/lib/aws-sdk-s3/client.rb +161 -144
- data/lib/aws-sdk-s3/client_api.rb +8 -0
- data/lib/aws-sdk-s3/customizations/bucket.rb +4 -0
- data/lib/aws-sdk-s3/customizations/object.rb +65 -43
- data/lib/aws-sdk-s3/encryption/client.rb +4 -0
- data/lib/aws-sdk-s3/file_part.rb +9 -6
- data/lib/aws-sdk-s3/file_uploader.rb +13 -12
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +14 -11
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +59 -0
- data/lib/aws-sdk-s3/plugins/md5s.rb +3 -4
- data/lib/aws-sdk-s3/presigned_post.rb +4 -0
- data/lib/aws-sdk-s3/types.rb +43 -3
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +5 -4
data/lib/aws-sdk-s3/client.rb
CHANGED
|
@@ -25,6 +25,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/protocols/rest_xml.rb'
|
|
28
|
+
require 'aws-sdk-s3/plugins/iad_regional_endpoint.rb'
|
|
28
29
|
require 'aws-sdk-s3/plugins/accelerate.rb'
|
|
29
30
|
require 'aws-sdk-s3/plugins/dualstack.rb'
|
|
30
31
|
require 'aws-sdk-s3/plugins/bucket_dns.rb'
|
|
@@ -72,6 +73,7 @@ module Aws::S3
|
|
|
72
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
|
73
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
|
74
75
|
add_plugin(Aws::Plugins::Protocols::RestXml)
|
|
76
|
+
add_plugin(Aws::S3::Plugins::IADRegionalEndpoint)
|
|
75
77
|
add_plugin(Aws::S3::Plugins::Accelerate)
|
|
76
78
|
add_plugin(Aws::S3::Plugins::Dualstack)
|
|
77
79
|
add_plugin(Aws::S3::Plugins::BucketDns)
|
|
@@ -244,6 +246,10 @@ module Aws::S3
|
|
|
244
246
|
# @option options [Integer] :retry_max_delay (0)
|
|
245
247
|
# The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
|
|
246
248
|
#
|
|
249
|
+
# @option options [String] :s3_us_east_1_regional_endpoint ("legacy")
|
|
250
|
+
# Passing in `regional` to enable regional endpoint for S3's `us-east-1`
|
|
251
|
+
# region. Defaults to `legacy` mode using global endpoint.
|
|
252
|
+
#
|
|
247
253
|
# @option options [String] :secret_access_key
|
|
248
254
|
#
|
|
249
255
|
# @option options [String] :session_token
|
|
@@ -761,33 +767,33 @@ module Aws::S3
|
|
|
761
767
|
# * {Types::CreateBucketOutput#location #location} => String
|
|
762
768
|
#
|
|
763
769
|
#
|
|
764
|
-
# @example Example: To create a bucket
|
|
770
|
+
# @example Example: To create a bucket
|
|
765
771
|
#
|
|
766
|
-
# # The following example creates a bucket.
|
|
772
|
+
# # The following example creates a bucket.
|
|
767
773
|
#
|
|
768
774
|
# resp = client.create_bucket({
|
|
769
775
|
# bucket: "examplebucket",
|
|
770
|
-
# create_bucket_configuration: {
|
|
771
|
-
# location_constraint: "eu-west-1",
|
|
772
|
-
# },
|
|
773
776
|
# })
|
|
774
777
|
#
|
|
775
778
|
# resp.to_h outputs the following:
|
|
776
779
|
# {
|
|
777
|
-
# location: "
|
|
780
|
+
# location: "/examplebucket",
|
|
778
781
|
# }
|
|
779
782
|
#
|
|
780
|
-
# @example Example: To create a bucket
|
|
783
|
+
# @example Example: To create a bucket in a specific region
|
|
781
784
|
#
|
|
782
|
-
# # The following example creates a bucket.
|
|
785
|
+
# # The following example creates a bucket. The request specifies an AWS region where to create the bucket.
|
|
783
786
|
#
|
|
784
787
|
# resp = client.create_bucket({
|
|
785
788
|
# bucket: "examplebucket",
|
|
789
|
+
# create_bucket_configuration: {
|
|
790
|
+
# location_constraint: "eu-west-1",
|
|
791
|
+
# },
|
|
786
792
|
# })
|
|
787
793
|
#
|
|
788
794
|
# resp.to_h outputs the following:
|
|
789
795
|
# {
|
|
790
|
-
# location: "/
|
|
796
|
+
# location: "http://examplebucket.s3.amazonaws.com/",
|
|
791
797
|
# }
|
|
792
798
|
#
|
|
793
799
|
# @example Request syntax with placeholder values
|
|
@@ -1532,22 +1538,20 @@ module Aws::S3
|
|
|
1532
1538
|
# * {Types::DeleteObjectsOutput#errors #errors} => Array<Types::Error>
|
|
1533
1539
|
#
|
|
1534
1540
|
#
|
|
1535
|
-
# @example Example: To delete multiple
|
|
1541
|
+
# @example Example: To delete multiple objects from a versioned bucket
|
|
1536
1542
|
#
|
|
1537
|
-
# # The following example deletes objects from a bucket. The
|
|
1538
|
-
# #
|
|
1543
|
+
# # The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the
|
|
1544
|
+
# # object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.
|
|
1539
1545
|
#
|
|
1540
1546
|
# resp = client.delete_objects({
|
|
1541
1547
|
# bucket: "examplebucket",
|
|
1542
1548
|
# delete: {
|
|
1543
1549
|
# objects: [
|
|
1544
1550
|
# {
|
|
1545
|
-
# key: "
|
|
1546
|
-
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
|
1551
|
+
# key: "objectkey1",
|
|
1547
1552
|
# },
|
|
1548
1553
|
# {
|
|
1549
|
-
# key: "
|
|
1550
|
-
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
|
1554
|
+
# key: "objectkey2",
|
|
1551
1555
|
# },
|
|
1552
1556
|
# ],
|
|
1553
1557
|
# quiet: false,
|
|
@@ -1558,30 +1562,34 @@ module Aws::S3
|
|
|
1558
1562
|
# {
|
|
1559
1563
|
# deleted: [
|
|
1560
1564
|
# {
|
|
1561
|
-
#
|
|
1562
|
-
#
|
|
1565
|
+
# delete_marker: true,
|
|
1566
|
+
# delete_marker_version_id: "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F",
|
|
1567
|
+
# key: "objectkey1",
|
|
1563
1568
|
# },
|
|
1564
1569
|
# {
|
|
1565
|
-
#
|
|
1566
|
-
#
|
|
1570
|
+
# delete_marker: true,
|
|
1571
|
+
# delete_marker_version_id: "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt",
|
|
1572
|
+
# key: "objectkey2",
|
|
1567
1573
|
# },
|
|
1568
1574
|
# ],
|
|
1569
1575
|
# }
|
|
1570
1576
|
#
|
|
1571
|
-
# @example Example: To delete multiple
|
|
1577
|
+
# @example Example: To delete multiple object versions from a versioned bucket
|
|
1572
1578
|
#
|
|
1573
|
-
# # The following example deletes objects from a bucket. The
|
|
1574
|
-
# #
|
|
1579
|
+
# # The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object
|
|
1580
|
+
# # versions and returns the key and versions of deleted objects in the response.
|
|
1575
1581
|
#
|
|
1576
1582
|
# resp = client.delete_objects({
|
|
1577
1583
|
# bucket: "examplebucket",
|
|
1578
1584
|
# delete: {
|
|
1579
1585
|
# objects: [
|
|
1580
1586
|
# {
|
|
1581
|
-
# key: "
|
|
1587
|
+
# key: "HappyFace.jpg",
|
|
1588
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
|
1582
1589
|
# },
|
|
1583
1590
|
# {
|
|
1584
|
-
# key: "
|
|
1591
|
+
# key: "HappyFace.jpg",
|
|
1592
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
|
1585
1593
|
# },
|
|
1586
1594
|
# ],
|
|
1587
1595
|
# quiet: false,
|
|
@@ -1592,14 +1600,12 @@ module Aws::S3
|
|
|
1592
1600
|
# {
|
|
1593
1601
|
# deleted: [
|
|
1594
1602
|
# {
|
|
1595
|
-
#
|
|
1596
|
-
#
|
|
1597
|
-
# key: "objectkey1",
|
|
1603
|
+
# key: "HappyFace.jpg",
|
|
1604
|
+
# version_id: "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd",
|
|
1598
1605
|
# },
|
|
1599
1606
|
# {
|
|
1600
|
-
#
|
|
1601
|
-
#
|
|
1602
|
-
# key: "objectkey2",
|
|
1607
|
+
# key: "HappyFace.jpg",
|
|
1608
|
+
# version_id: "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b",
|
|
1603
1609
|
# },
|
|
1604
1610
|
# ],
|
|
1605
1611
|
# }
|
|
@@ -1907,7 +1913,7 @@ module Aws::S3
|
|
|
1907
1913
|
# resp.inventory_configuration.id #=> String
|
|
1908
1914
|
# resp.inventory_configuration.included_object_versions #=> String, one of "All", "Current"
|
|
1909
1915
|
# resp.inventory_configuration.optional_fields #=> Array
|
|
1910
|
-
# resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus"
|
|
1916
|
+
# resp.inventory_configuration.optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
|
|
1911
1917
|
# resp.inventory_configuration.schedule.frequency #=> String, one of "Daily", "Weekly"
|
|
1912
1918
|
#
|
|
1913
1919
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/GetBucketInventoryConfiguration AWS API Documentation
|
|
@@ -2793,49 +2799,49 @@ module Aws::S3
|
|
|
2793
2799
|
# * {Types::GetObjectOutput#object_lock_legal_hold_status #object_lock_legal_hold_status} => String
|
|
2794
2800
|
#
|
|
2795
2801
|
#
|
|
2796
|
-
# @example Example: To retrieve an object
|
|
2802
|
+
# @example Example: To retrieve a byte range of an object
|
|
2797
2803
|
#
|
|
2798
|
-
# # The following example retrieves an object for an S3 bucket.
|
|
2804
|
+
# # The following example retrieves an object for an S3 bucket. The request specifies the range header to retrieve a
|
|
2805
|
+
# # specific byte range.
|
|
2799
2806
|
#
|
|
2800
2807
|
# resp = client.get_object({
|
|
2801
2808
|
# bucket: "examplebucket",
|
|
2802
|
-
# key: "
|
|
2809
|
+
# key: "SampleFile.txt",
|
|
2810
|
+
# range: "bytes=0-9",
|
|
2803
2811
|
# })
|
|
2804
2812
|
#
|
|
2805
2813
|
# resp.to_h outputs the following:
|
|
2806
2814
|
# {
|
|
2807
2815
|
# accept_ranges: "bytes",
|
|
2808
|
-
# content_length:
|
|
2809
|
-
#
|
|
2810
|
-
#
|
|
2811
|
-
#
|
|
2816
|
+
# content_length: 10,
|
|
2817
|
+
# content_range: "bytes 0-9/43",
|
|
2818
|
+
# content_type: "text/plain",
|
|
2819
|
+
# etag: "\"0d94420ffd0bc68cd3d152506b97a9cc\"",
|
|
2820
|
+
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
|
2812
2821
|
# metadata: {
|
|
2813
2822
|
# },
|
|
2814
|
-
# tag_count: 2,
|
|
2815
2823
|
# version_id: "null",
|
|
2816
2824
|
# }
|
|
2817
2825
|
#
|
|
2818
|
-
# @example Example: To retrieve
|
|
2826
|
+
# @example Example: To retrieve an object
|
|
2819
2827
|
#
|
|
2820
|
-
# # The following example retrieves an object for an S3 bucket.
|
|
2821
|
-
# # specific byte range.
|
|
2828
|
+
# # The following example retrieves an object for an S3 bucket.
|
|
2822
2829
|
#
|
|
2823
2830
|
# resp = client.get_object({
|
|
2824
2831
|
# bucket: "examplebucket",
|
|
2825
|
-
# key: "
|
|
2826
|
-
# range: "bytes=0-9",
|
|
2832
|
+
# key: "HappyFace.jpg",
|
|
2827
2833
|
# })
|
|
2828
2834
|
#
|
|
2829
2835
|
# resp.to_h outputs the following:
|
|
2830
2836
|
# {
|
|
2831
2837
|
# accept_ranges: "bytes",
|
|
2832
|
-
# content_length:
|
|
2833
|
-
#
|
|
2834
|
-
#
|
|
2835
|
-
#
|
|
2836
|
-
# last_modified: Time.parse("Thu, 09 Oct 2014 22:57:28 GMT"),
|
|
2838
|
+
# content_length: 3191,
|
|
2839
|
+
# content_type: "image/jpeg",
|
|
2840
|
+
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
2841
|
+
# last_modified: Time.parse("Thu, 15 Dec 2016 01:19:41 GMT"),
|
|
2837
2842
|
# metadata: {
|
|
2838
2843
|
# },
|
|
2844
|
+
# tag_count: 2,
|
|
2839
2845
|
# version_id: "null",
|
|
2840
2846
|
# }
|
|
2841
2847
|
#
|
|
@@ -3182,49 +3188,49 @@ module Aws::S3
|
|
|
3182
3188
|
# * {Types::GetObjectTaggingOutput#tag_set #tag_set} => Array<Types::Tag>
|
|
3183
3189
|
#
|
|
3184
3190
|
#
|
|
3185
|
-
# @example Example: To retrieve tag set of
|
|
3191
|
+
# @example Example: To retrieve tag set of an object
|
|
3186
3192
|
#
|
|
3187
|
-
# # The following example retrieves tag set of an object.
|
|
3193
|
+
# # The following example retrieves tag set of an object.
|
|
3188
3194
|
#
|
|
3189
3195
|
# resp = client.get_object_tagging({
|
|
3190
3196
|
# bucket: "examplebucket",
|
|
3191
|
-
# key: "
|
|
3192
|
-
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
|
3197
|
+
# key: "HappyFace.jpg",
|
|
3193
3198
|
# })
|
|
3194
3199
|
#
|
|
3195
3200
|
# resp.to_h outputs the following:
|
|
3196
3201
|
# {
|
|
3197
3202
|
# tag_set: [
|
|
3198
3203
|
# {
|
|
3199
|
-
# key: "
|
|
3200
|
-
# value: "
|
|
3204
|
+
# key: "Key4",
|
|
3205
|
+
# value: "Value4",
|
|
3206
|
+
# },
|
|
3207
|
+
# {
|
|
3208
|
+
# key: "Key3",
|
|
3209
|
+
# value: "Value3",
|
|
3201
3210
|
# },
|
|
3202
3211
|
# ],
|
|
3203
|
-
# version_id: "
|
|
3212
|
+
# version_id: "null",
|
|
3204
3213
|
# }
|
|
3205
3214
|
#
|
|
3206
|
-
# @example Example: To retrieve tag set of
|
|
3215
|
+
# @example Example: To retrieve tag set of a specific object version
|
|
3207
3216
|
#
|
|
3208
|
-
# # The following example retrieves tag set of an object.
|
|
3217
|
+
# # The following example retrieves tag set of an object. The request specifies object version.
|
|
3209
3218
|
#
|
|
3210
3219
|
# resp = client.get_object_tagging({
|
|
3211
3220
|
# bucket: "examplebucket",
|
|
3212
|
-
# key: "
|
|
3221
|
+
# key: "exampleobject",
|
|
3222
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
|
3213
3223
|
# })
|
|
3214
3224
|
#
|
|
3215
3225
|
# resp.to_h outputs the following:
|
|
3216
3226
|
# {
|
|
3217
3227
|
# tag_set: [
|
|
3218
3228
|
# {
|
|
3219
|
-
# key: "
|
|
3220
|
-
# value: "
|
|
3221
|
-
# },
|
|
3222
|
-
# {
|
|
3223
|
-
# key: "Key3",
|
|
3224
|
-
# value: "Value3",
|
|
3229
|
+
# key: "Key1",
|
|
3230
|
+
# value: "Value1",
|
|
3225
3231
|
# },
|
|
3226
3232
|
# ],
|
|
3227
|
-
# version_id: "
|
|
3233
|
+
# version_id: "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI",
|
|
3228
3234
|
# }
|
|
3229
3235
|
#
|
|
3230
3236
|
# @example Request syntax with placeholder values
|
|
@@ -3641,7 +3647,7 @@ module Aws::S3
|
|
|
3641
3647
|
# resp.inventory_configuration_list[0].id #=> String
|
|
3642
3648
|
# resp.inventory_configuration_list[0].included_object_versions #=> String, one of "All", "Current"
|
|
3643
3649
|
# resp.inventory_configuration_list[0].optional_fields #=> Array
|
|
3644
|
-
# resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus"
|
|
3650
|
+
# resp.inventory_configuration_list[0].optional_fields[0] #=> String, one of "Size", "LastModifiedDate", "StorageClass", "ETag", "IsMultipartUploaded", "ReplicationStatus", "EncryptionStatus", "ObjectLockRetainUntilDate", "ObjectLockMode", "ObjectLockLegalHoldStatus", "IntelligentTieringAccessTier"
|
|
3645
3651
|
# resp.inventory_configuration_list[0].schedule.frequency #=> String, one of "Daily", "Weekly"
|
|
3646
3652
|
# resp.is_truncated #=> Boolean
|
|
3647
3653
|
# resp.next_continuation_token #=> String
|
|
@@ -3811,97 +3817,97 @@ module Aws::S3
|
|
|
3811
3817
|
# * {Types::ListMultipartUploadsOutput#encoding_type #encoding_type} => String
|
|
3812
3818
|
#
|
|
3813
3819
|
#
|
|
3814
|
-
# @example Example:
|
|
3820
|
+
# @example Example: To list in-progress multipart uploads on a bucket
|
|
3815
3821
|
#
|
|
3816
|
-
# # The following example
|
|
3817
|
-
# # setup of multipart uploads.
|
|
3822
|
+
# # The following example lists in-progress multipart uploads on a specific bucket.
|
|
3818
3823
|
#
|
|
3819
3824
|
# resp = client.list_multipart_uploads({
|
|
3820
3825
|
# bucket: "examplebucket",
|
|
3821
|
-
# key_marker: "nextkeyfrompreviousresponse",
|
|
3822
|
-
# max_uploads: 2,
|
|
3823
|
-
# upload_id_marker: "valuefrompreviousresponse",
|
|
3824
3826
|
# })
|
|
3825
3827
|
#
|
|
3826
3828
|
# resp.to_h outputs the following:
|
|
3827
3829
|
# {
|
|
3828
|
-
# bucket: "acl1",
|
|
3829
|
-
# is_truncated: true,
|
|
3830
|
-
# key_marker: "",
|
|
3831
|
-
# max_uploads: 2,
|
|
3832
|
-
# next_key_marker: "someobjectkey",
|
|
3833
|
-
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
3834
|
-
# upload_id_marker: "",
|
|
3835
3830
|
# uploads: [
|
|
3836
3831
|
# {
|
|
3837
3832
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
|
3838
3833
|
# initiator: {
|
|
3839
|
-
# display_name: "
|
|
3834
|
+
# display_name: "display-name",
|
|
3840
3835
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3841
3836
|
# },
|
|
3842
3837
|
# key: "JavaFile",
|
|
3843
3838
|
# owner: {
|
|
3844
|
-
# display_name: "
|
|
3845
|
-
# id: "
|
|
3839
|
+
# display_name: "display-name",
|
|
3840
|
+
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3846
3841
|
# },
|
|
3847
3842
|
# storage_class: "STANDARD",
|
|
3848
|
-
# upload_id: "
|
|
3843
|
+
# upload_id: "examplelUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
|
3849
3844
|
# },
|
|
3850
3845
|
# {
|
|
3851
3846
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
|
3852
3847
|
# initiator: {
|
|
3853
|
-
# display_name: "
|
|
3848
|
+
# display_name: "display-name",
|
|
3854
3849
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3855
3850
|
# },
|
|
3856
3851
|
# key: "JavaFile",
|
|
3857
3852
|
# owner: {
|
|
3858
|
-
# display_name: "
|
|
3853
|
+
# display_name: "display-name",
|
|
3859
3854
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3860
3855
|
# },
|
|
3861
3856
|
# storage_class: "STANDARD",
|
|
3862
|
-
# upload_id: "
|
|
3857
|
+
# upload_id: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
3863
3858
|
# },
|
|
3864
3859
|
# ],
|
|
3865
3860
|
# }
|
|
3866
3861
|
#
|
|
3867
|
-
# @example Example:
|
|
3862
|
+
# @example Example: List next set of multipart uploads when previous result is truncated
|
|
3868
3863
|
#
|
|
3869
|
-
# # The following example
|
|
3864
|
+
# # The following example specifies the upload-id-marker and key-marker from previous truncated response to retrieve next
|
|
3865
|
+
# # setup of multipart uploads.
|
|
3870
3866
|
#
|
|
3871
3867
|
# resp = client.list_multipart_uploads({
|
|
3872
3868
|
# bucket: "examplebucket",
|
|
3869
|
+
# key_marker: "nextkeyfrompreviousresponse",
|
|
3870
|
+
# max_uploads: 2,
|
|
3871
|
+
# upload_id_marker: "valuefrompreviousresponse",
|
|
3873
3872
|
# })
|
|
3874
3873
|
#
|
|
3875
3874
|
# resp.to_h outputs the following:
|
|
3876
3875
|
# {
|
|
3876
|
+
# bucket: "acl1",
|
|
3877
|
+
# is_truncated: true,
|
|
3878
|
+
# key_marker: "",
|
|
3879
|
+
# max_uploads: 2,
|
|
3880
|
+
# next_key_marker: "someobjectkey",
|
|
3881
|
+
# next_upload_id_marker: "examplelo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
3882
|
+
# upload_id_marker: "",
|
|
3877
3883
|
# uploads: [
|
|
3878
3884
|
# {
|
|
3879
3885
|
# initiated: Time.parse("2014-05-01T05:40:58.000Z"),
|
|
3880
3886
|
# initiator: {
|
|
3881
|
-
# display_name: "display-name",
|
|
3887
|
+
# display_name: "ownder-display-name",
|
|
3882
3888
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3883
3889
|
# },
|
|
3884
3890
|
# key: "JavaFile",
|
|
3885
3891
|
# owner: {
|
|
3886
|
-
# display_name: "
|
|
3887
|
-
# id: "
|
|
3892
|
+
# display_name: "mohanataws",
|
|
3893
|
+
# id: "852b113e7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3888
3894
|
# },
|
|
3889
3895
|
# storage_class: "STANDARD",
|
|
3890
|
-
# upload_id: "
|
|
3896
|
+
# upload_id: "gZ30jIqlUa.CInXklLQtSMJITdUnoZ1Y5GACB5UckOtspm5zbDMCkPF_qkfZzMiFZ6dksmcnqxJyIBvQMG9X9Q--",
|
|
3891
3897
|
# },
|
|
3892
3898
|
# {
|
|
3893
3899
|
# initiated: Time.parse("2014-05-01T05:41:27.000Z"),
|
|
3894
3900
|
# initiator: {
|
|
3895
|
-
# display_name: "display-name",
|
|
3901
|
+
# display_name: "ownder-display-name",
|
|
3896
3902
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3897
3903
|
# },
|
|
3898
3904
|
# key: "JavaFile",
|
|
3899
3905
|
# owner: {
|
|
3900
|
-
# display_name: "display-name",
|
|
3906
|
+
# display_name: "ownder-display-name",
|
|
3901
3907
|
# id: "examplee7a2f25102679df27bb0ae12b3f85be6f290b936c4393484be31bebcc",
|
|
3902
3908
|
# },
|
|
3903
3909
|
# storage_class: "STANDARD",
|
|
3904
|
-
# upload_id: "
|
|
3910
|
+
# upload_id: "b7tZSqIlo91lv1iwvWpvCiJWugw2xXLPAD7Z8cJyX9.WiIRgNrdG6Ldsn.9FtS63TCl1Uf5faTB.1U5Ckcbmdw--",
|
|
3905
3911
|
# },
|
|
3906
3912
|
# ],
|
|
3907
3913
|
# }
|
|
@@ -4828,7 +4834,7 @@ module Aws::S3
|
|
|
4828
4834
|
# },
|
|
4829
4835
|
# id: "InventoryId", # required
|
|
4830
4836
|
# included_object_versions: "All", # required, accepts All, Current
|
|
4831
|
-
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus
|
|
4837
|
+
# optional_fields: ["Size"], # accepts Size, LastModifiedDate, StorageClass, ETag, IsMultipartUploaded, ReplicationStatus, EncryptionStatus, ObjectLockRetainUntilDate, ObjectLockMode, ObjectLockLegalHoldStatus, IntelligentTieringAccessTier
|
|
4832
4838
|
# schedule: { # required
|
|
4833
4839
|
# frequency: "Daily", # required, accepts Daily, Weekly
|
|
4834
4840
|
# },
|
|
@@ -5785,96 +5791,96 @@ module Aws::S3
|
|
|
5785
5791
|
# version_id: "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr",
|
|
5786
5792
|
# }
|
|
5787
5793
|
#
|
|
5788
|
-
# @example Example: To upload an object
|
|
5794
|
+
# @example Example: To upload an object
|
|
5789
5795
|
#
|
|
5790
|
-
# # The following example uploads an object
|
|
5791
|
-
# # S3 returns
|
|
5796
|
+
# # The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file
|
|
5797
|
+
# # syntax. S3 returns VersionId of the newly created object.
|
|
5792
5798
|
#
|
|
5793
5799
|
# resp = client.put_object({
|
|
5794
|
-
# body: "
|
|
5800
|
+
# body: "HappyFace.jpg",
|
|
5795
5801
|
# bucket: "examplebucket",
|
|
5796
5802
|
# key: "HappyFace.jpg",
|
|
5797
|
-
# tagging: "key1=value1&key2=value2",
|
|
5798
5803
|
# })
|
|
5799
5804
|
#
|
|
5800
5805
|
# resp.to_h outputs the following:
|
|
5801
5806
|
# {
|
|
5802
5807
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
5803
|
-
# version_id: "
|
|
5808
|
+
# version_id: "tpf3zF08nBplQK1XLOefGskR7mGDwcDk",
|
|
5804
5809
|
# }
|
|
5805
5810
|
#
|
|
5806
|
-
# @example Example: To
|
|
5811
|
+
# @example Example: To create an object.
|
|
5807
5812
|
#
|
|
5808
|
-
# # The following example creates an object.
|
|
5809
|
-
# # enabled, S3 returns version ID in response.
|
|
5813
|
+
# # The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
5810
5814
|
#
|
|
5811
5815
|
# resp = client.put_object({
|
|
5812
5816
|
# body: "filetoupload",
|
|
5813
5817
|
# bucket: "examplebucket",
|
|
5814
|
-
# key: "
|
|
5815
|
-
# metadata: {
|
|
5816
|
-
# "metadata1" => "value1",
|
|
5817
|
-
# "metadata2" => "value2",
|
|
5818
|
-
# },
|
|
5818
|
+
# key: "objectkey",
|
|
5819
5819
|
# })
|
|
5820
5820
|
#
|
|
5821
5821
|
# resp.to_h outputs the following:
|
|
5822
5822
|
# {
|
|
5823
5823
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
5824
|
-
# version_id: "
|
|
5824
|
+
# version_id: "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ",
|
|
5825
5825
|
# }
|
|
5826
5826
|
#
|
|
5827
|
-
# @example Example: To upload
|
|
5827
|
+
# @example Example: To upload object and specify user-defined metadata
|
|
5828
5828
|
#
|
|
5829
|
-
# # The following example
|
|
5830
|
-
# #
|
|
5829
|
+
# # The following example creates an object. The request also specifies optional metadata. If the bucket is versioning
|
|
5830
|
+
# # enabled, S3 returns version ID in response.
|
|
5831
5831
|
#
|
|
5832
5832
|
# resp = client.put_object({
|
|
5833
5833
|
# body: "filetoupload",
|
|
5834
5834
|
# bucket: "examplebucket",
|
|
5835
5835
|
# key: "exampleobject",
|
|
5836
|
-
#
|
|
5837
|
-
#
|
|
5836
|
+
# metadata: {
|
|
5837
|
+
# "metadata1" => "value1",
|
|
5838
|
+
# "metadata2" => "value2",
|
|
5839
|
+
# },
|
|
5838
5840
|
# })
|
|
5839
5841
|
#
|
|
5840
5842
|
# resp.to_h outputs the following:
|
|
5841
5843
|
# {
|
|
5842
5844
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
5843
|
-
#
|
|
5844
|
-
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
|
5845
|
+
# version_id: "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0",
|
|
5845
5846
|
# }
|
|
5846
5847
|
#
|
|
5847
|
-
# @example Example: To
|
|
5848
|
+
# @example Example: To upload an object and specify optional tags
|
|
5848
5849
|
#
|
|
5849
|
-
# # The following example
|
|
5850
|
+
# # The following example uploads an object. The request specifies optional object tags. The bucket is versioned, therefore
|
|
5851
|
+
# # S3 returns version ID of the newly created object.
|
|
5850
5852
|
#
|
|
5851
5853
|
# resp = client.put_object({
|
|
5852
|
-
# body: "
|
|
5854
|
+
# body: "c:\\HappyFace.jpg",
|
|
5853
5855
|
# bucket: "examplebucket",
|
|
5854
|
-
# key: "
|
|
5856
|
+
# key: "HappyFace.jpg",
|
|
5857
|
+
# tagging: "key1=value1&key2=value2",
|
|
5855
5858
|
# })
|
|
5856
5859
|
#
|
|
5857
5860
|
# resp.to_h outputs the following:
|
|
5858
5861
|
# {
|
|
5859
5862
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
5860
|
-
# version_id: "
|
|
5863
|
+
# version_id: "psM2sYY4.o1501dSx8wMvnkOzSBB.V4a",
|
|
5861
5864
|
# }
|
|
5862
5865
|
#
|
|
5863
|
-
# @example Example: To upload an object
|
|
5866
|
+
# @example Example: To upload an object and specify server-side encryption and object tags
|
|
5864
5867
|
#
|
|
5865
|
-
# # The following example uploads
|
|
5866
|
-
# #
|
|
5868
|
+
# # The following example uploads and object. The request specifies the optional server-side encryption option. The request
|
|
5869
|
+
# # also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.
|
|
5867
5870
|
#
|
|
5868
5871
|
# resp = client.put_object({
|
|
5869
|
-
# body: "
|
|
5872
|
+
# body: "filetoupload",
|
|
5870
5873
|
# bucket: "examplebucket",
|
|
5871
|
-
# key: "
|
|
5874
|
+
# key: "exampleobject",
|
|
5875
|
+
# server_side_encryption: "AES256",
|
|
5876
|
+
# tagging: "key1=value1&key2=value2",
|
|
5872
5877
|
# })
|
|
5873
5878
|
#
|
|
5874
5879
|
# resp.to_h outputs the following:
|
|
5875
5880
|
# {
|
|
5876
5881
|
# etag: "\"6805f2cfc46c0f04559748bb039d69ae\"",
|
|
5877
|
-
#
|
|
5882
|
+
# server_side_encryption: "AES256",
|
|
5883
|
+
# version_id: "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt",
|
|
5878
5884
|
# }
|
|
5879
5885
|
#
|
|
5880
5886
|
# @example Example: To upload an object (specify optional headers)
|
|
@@ -6574,6 +6580,13 @@ module Aws::S3
|
|
|
6574
6580
|
# Describes the format of the data that you want Amazon S3 to return in
|
|
6575
6581
|
# response.
|
|
6576
6582
|
#
|
|
6583
|
+
# @option params [Types::ScanRange] :scan_range
|
|
6584
|
+
# Specifies the byte range of the object to get the records from. A
|
|
6585
|
+
# record is processed when its first byte is contained by the range.
|
|
6586
|
+
# This parameter is optional, but when specified, it must not be empty.
|
|
6587
|
+
# See RFC 2616, Section 14.35.1 about how to specify the start and end
|
|
6588
|
+
# of the range.
|
|
6589
|
+
#
|
|
6577
6590
|
# @return [Types::SelectObjectContentOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6578
6591
|
#
|
|
6579
6592
|
# * {Types::SelectObjectContentOutput#payload #payload} => Types::SelectObjectContentEventStream
|
|
@@ -6740,6 +6753,10 @@ module Aws::S3
|
|
|
6740
6753
|
# record_delimiter: "RecordDelimiter",
|
|
6741
6754
|
# },
|
|
6742
6755
|
# },
|
|
6756
|
+
# scan_range: {
|
|
6757
|
+
# start: 1,
|
|
6758
|
+
# end: 1,
|
|
6759
|
+
# },
|
|
6743
6760
|
# })
|
|
6744
6761
|
#
|
|
6745
6762
|
# @example Response structure
|
|
@@ -7002,45 +7019,45 @@ module Aws::S3
|
|
|
7002
7019
|
# * {Types::UploadPartCopyOutput#request_charged #request_charged} => String
|
|
7003
7020
|
#
|
|
7004
7021
|
#
|
|
7005
|
-
# @example Example: To upload a part by copying
|
|
7022
|
+
# @example Example: To upload a part by copying byte range from an existing object as data source
|
|
7006
7023
|
#
|
|
7007
|
-
# # The following example uploads a part of a multipart upload by copying
|
|
7024
|
+
# # The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as
|
|
7025
|
+
# # data source.
|
|
7008
7026
|
#
|
|
7009
7027
|
# resp = client.upload_part_copy({
|
|
7010
7028
|
# bucket: "examplebucket",
|
|
7011
7029
|
# copy_source: "/bucketname/sourceobjectkey",
|
|
7030
|
+
# copy_source_range: "bytes=1-100000",
|
|
7012
7031
|
# key: "examplelargeobject",
|
|
7013
|
-
# part_number:
|
|
7032
|
+
# part_number: 2,
|
|
7014
7033
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
|
7015
7034
|
# })
|
|
7016
7035
|
#
|
|
7017
7036
|
# resp.to_h outputs the following:
|
|
7018
7037
|
# {
|
|
7019
7038
|
# copy_part_result: {
|
|
7020
|
-
# etag: "\"
|
|
7021
|
-
# last_modified: Time.parse("2016-12-29T21:
|
|
7039
|
+
# etag: "\"65d16d19e65a7508a51f043180edcc36\"",
|
|
7040
|
+
# last_modified: Time.parse("2016-12-29T21:44:28.000Z"),
|
|
7022
7041
|
# },
|
|
7023
7042
|
# }
|
|
7024
7043
|
#
|
|
7025
|
-
# @example Example: To upload a part by copying
|
|
7044
|
+
# @example Example: To upload a part by copying data from an existing object as data source
|
|
7026
7045
|
#
|
|
7027
|
-
# # The following example uploads a part of a multipart upload by copying
|
|
7028
|
-
# # data source.
|
|
7046
|
+
# # The following example uploads a part of a multipart upload by copying data from an existing object as data source.
|
|
7029
7047
|
#
|
|
7030
7048
|
# resp = client.upload_part_copy({
|
|
7031
7049
|
# bucket: "examplebucket",
|
|
7032
7050
|
# copy_source: "/bucketname/sourceobjectkey",
|
|
7033
|
-
# copy_source_range: "bytes=1-100000",
|
|
7034
7051
|
# key: "examplelargeobject",
|
|
7035
|
-
# part_number:
|
|
7052
|
+
# part_number: 1,
|
|
7036
7053
|
# upload_id: "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--",
|
|
7037
7054
|
# })
|
|
7038
7055
|
#
|
|
7039
7056
|
# resp.to_h outputs the following:
|
|
7040
7057
|
# {
|
|
7041
7058
|
# copy_part_result: {
|
|
7042
|
-
# etag: "\"
|
|
7043
|
-
# last_modified: Time.parse("2016-12-29T21:
|
|
7059
|
+
# etag: "\"b0c6f0e7e054ab8fa2536a2677f8734d\"",
|
|
7060
|
+
# last_modified: Time.parse("2016-12-29T21:24:43.000Z"),
|
|
7044
7061
|
# },
|
|
7045
7062
|
# }
|
|
7046
7063
|
#
|
|
@@ -7099,7 +7116,7 @@ module Aws::S3
|
|
|
7099
7116
|
params: params,
|
|
7100
7117
|
config: config)
|
|
7101
7118
|
context[:gem_name] = 'aws-sdk-s3'
|
|
7102
|
-
context[:gem_version] = '1.
|
|
7119
|
+
context[:gem_version] = '1.54.0'
|
|
7103
7120
|
Seahorse::Client::Request.new(handlers, context)
|
|
7104
7121
|
end
|
|
7105
7122
|
|