aws-sdk-s3 1.126.0 → 1.127.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 +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +27 -19
- data/lib/aws-sdk-s3/client.rb +193 -171
- data/lib/aws-sdk-s3/client_api.rb +16 -0
- data/lib/aws-sdk-s3/object_summary.rb +14 -0
- data/lib/aws-sdk-s3/object_version.rb +14 -0
- data/lib/aws-sdk-s3/presigner.rb +4 -2
- data/lib/aws-sdk-s3/types.rb +211 -118
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcc1d32cbbc04b2e3bab104857b5975ecf07dbff33cb6a6ee79ba97e25436fc5
|
4
|
+
data.tar.gz: 449eb917753eee99d663b30f7ebc8992c758d5621833afd34ed49d0b8041bed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee2ce90272e174701d10e31f736eb746b6a1d39fec5098997b7f5721c090ecb1f527fae30b35318d5329513db926421411812e32679bb39cb517c1b6fbcb691
|
7
|
+
data.tar.gz: 5a5a737663fdd585ba1c114976c9064b9d88ecdee2346eae9c4af2b89d6ba9bff7e2e62f86fc8087105a22891a92ef556f6fffe1aa1effba8bd80480aa53b626
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.127.0 (2023-06-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - The S3 LISTObjects, ListObjectsV2 and ListObjectVersions API now supports a new optional header x-amz-optional-object-attributes. If header contains RestoreStatus as the value, then S3 will include Glacier restore status i.e. isRestoreInProgress and RestoreExpiryDate in List response.
|
8
|
+
|
9
|
+
* Feature - Select minimum expiration time for presigned urls between the expiration time option and the credential expiration time.
|
10
|
+
|
4
11
|
1.126.0 (2023-06-16)
|
5
12
|
------------------
|
6
13
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.127.0
|
data/lib/aws-sdk-s3/bucket.rb
CHANGED
@@ -754,14 +754,14 @@ module Aws::S3
|
|
754
754
|
# result element are not returned elsewhere in the response.
|
755
755
|
# @option options [String] :encoding_type
|
756
756
|
# Requests Amazon S3 to encode the object keys in the response and
|
757
|
-
# specifies the encoding method to use. An object key
|
758
|
-
# Unicode character; however, XML 1.0 parser cannot parse some
|
757
|
+
# specifies the encoding method to use. An object key can contain any
|
758
|
+
# Unicode character; however, the XML 1.0 parser cannot parse some
|
759
759
|
# characters, such as characters with an ASCII value from 0 to 10. For
|
760
760
|
# characters that are not supported in XML 1.0, you can add this
|
761
761
|
# parameter to request that Amazon S3 encode the keys in the response.
|
762
762
|
# @option options [String] :key_marker
|
763
|
-
# Together with upload-id-marker
|
764
|
-
# upload after which listing should begin.
|
763
|
+
# Together with `upload-id-marker`, this parameter specifies the
|
764
|
+
# multipart upload after which listing should begin.
|
765
765
|
#
|
766
766
|
# If `upload-id-marker` is not specified, only the keys
|
767
767
|
# lexicographically greater than the specified `key-marker` will be
|
@@ -774,8 +774,8 @@ module Aws::S3
|
|
774
774
|
# @option options [String] :prefix
|
775
775
|
# Lists in-progress uploads only for those keys that begin with the
|
776
776
|
# specified prefix. You can use prefixes to separate a bucket into
|
777
|
-
# different grouping of keys. (You can think of using prefix to make
|
778
|
-
# groups in the same way you'd use a folder in a file system.)
|
777
|
+
# different grouping of keys. (You can think of using `prefix` to make
|
778
|
+
# groups in the same way that you'd use a folder in a file system.)
|
779
779
|
# @option options [String] :upload_id_marker
|
780
780
|
# Together with key-marker, specifies the multipart upload after which
|
781
781
|
# listing should begin. If key-marker is not specified, the
|
@@ -849,19 +849,20 @@ module Aws::S3
|
|
849
849
|
# version_id_marker: "VersionIdMarker",
|
850
850
|
# expected_bucket_owner: "AccountId",
|
851
851
|
# request_payer: "requester", # accepts requester
|
852
|
+
# optional_object_attributes: ["RestoreStatus"], # accepts RestoreStatus
|
852
853
|
# })
|
853
854
|
# @param [Hash] options ({})
|
854
855
|
# @option options [String] :delimiter
|
855
856
|
# A delimiter is a character that you specify to group keys. All keys
|
856
857
|
# that contain the same string between the `prefix` and the first
|
857
858
|
# occurrence of the delimiter are grouped under a single result element
|
858
|
-
# in CommonPrefixes
|
859
|
-
# max-keys limitation. These keys are not returned elsewhere in
|
860
|
-
# response.
|
859
|
+
# in `CommonPrefixes`. These groups are counted as one result against
|
860
|
+
# the `max-keys` limitation. These keys are not returned elsewhere in
|
861
|
+
# the response.
|
861
862
|
# @option options [String] :encoding_type
|
862
863
|
# Requests Amazon S3 to encode the object keys in the response and
|
863
|
-
# specifies the encoding method to use. An object key
|
864
|
-
# Unicode character; however, XML 1.0 parser cannot parse some
|
864
|
+
# specifies the encoding method to use. An object key can contain any
|
865
|
+
# Unicode character; however, the XML 1.0 parser cannot parse some
|
865
866
|
# characters, such as characters with an ASCII value from 0 to 10. For
|
866
867
|
# characters that are not supported in XML 1.0, you can add this
|
867
868
|
# parameter to request that Amazon S3 encode the keys in the response.
|
@@ -870,10 +871,10 @@ module Aws::S3
|
|
870
871
|
# @option options [String] :prefix
|
871
872
|
# Use this parameter to select only those keys that begin with the
|
872
873
|
# specified prefix. You can use prefixes to separate a bucket into
|
873
|
-
# different groupings of keys. (You can think of using prefix to make
|
874
|
-
# groups in the same way you'd use a folder in a file system.) You
|
875
|
-
# use prefix with delimiter to roll up numerous objects into a
|
876
|
-
# result under CommonPrefixes
|
874
|
+
# different groupings of keys. (You can think of using `prefix` to make
|
875
|
+
# groups in the same way that you'd use a folder in a file system.) You
|
876
|
+
# can use `prefix` with `delimiter` to roll up numerous objects into a
|
877
|
+
# single result under `CommonPrefixes`.
|
877
878
|
# @option options [String] :version_id_marker
|
878
879
|
# Specifies the object version you want to start listing from.
|
879
880
|
# @option options [String] :expected_bucket_owner
|
@@ -890,6 +891,9 @@ module Aws::S3
|
|
890
891
|
#
|
891
892
|
#
|
892
893
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
894
|
+
# @option options [Array<String>] :optional_object_attributes
|
895
|
+
# Specifies the optional fields that you want returned in the response.
|
896
|
+
# Fields that you do not specify are not returned.
|
893
897
|
# @return [ObjectVersion::Collection]
|
894
898
|
def object_versions(options = {})
|
895
899
|
batches = Enumerator.new do |y|
|
@@ -924,18 +928,19 @@ module Aws::S3
|
|
924
928
|
# start_after: "StartAfter",
|
925
929
|
# request_payer: "requester", # accepts requester
|
926
930
|
# expected_bucket_owner: "AccountId",
|
931
|
+
# optional_object_attributes: ["RestoreStatus"], # accepts RestoreStatus
|
927
932
|
# })
|
928
933
|
# @param [Hash] options ({})
|
929
934
|
# @option options [String] :delimiter
|
930
|
-
# A delimiter is a character you use to group keys.
|
935
|
+
# A delimiter is a character that you use to group keys.
|
931
936
|
# @option options [String] :encoding_type
|
932
937
|
# Encoding type used by Amazon S3 to encode object keys in the response.
|
933
938
|
# @option options [String] :prefix
|
934
939
|
# Limits the response to keys that begin with the specified prefix.
|
935
940
|
# @option options [Boolean] :fetch_owner
|
936
|
-
# The owner field is not present in
|
937
|
-
# return owner field with each key in the result then set
|
938
|
-
#
|
941
|
+
# The owner field is not present in `ListObjectsV2` by default. If you
|
942
|
+
# want to return the owner field with each key in the result, then set
|
943
|
+
# the `FetchOwner` field to `true`.
|
939
944
|
# @option options [String] :start_after
|
940
945
|
# StartAfter is where you want Amazon S3 to start listing from. Amazon
|
941
946
|
# S3 starts listing after this specified key. StartAfter can be any key
|
@@ -948,6 +953,9 @@ module Aws::S3
|
|
948
953
|
# The account ID of the expected bucket owner. If the bucket is owned by
|
949
954
|
# a different account, the request fails with the HTTP status code `403
|
950
955
|
# Forbidden` (access denied).
|
956
|
+
# @option options [Array<String>] :optional_object_attributes
|
957
|
+
# Specifies the optional fields that you want returned in the response.
|
958
|
+
# Fields that you do not specify are not returned.
|
951
959
|
# @return [ObjectSummary::Collection]
|
952
960
|
def objects(options = {})
|
953
961
|
batches = Enumerator.new do |y|
|