aws-sdk-s3 1.162.0 → 1.167.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 +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/bucket.rb +135 -55
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +38 -1
- data/lib/aws-sdk-s3/bucket_policy.rb +4 -4
- data/lib/aws-sdk-s3/client.rb +1124 -398
- data/lib/aws-sdk-s3/client_api.rb +17 -1
- data/lib/aws-sdk-s3/customizations/object.rb +6 -0
- data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
- data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
- data/lib/aws-sdk-s3/customizations.rb +24 -38
- data/lib/aws-sdk-s3/errors.rb +3 -0
- data/lib/aws-sdk-s3/multipart_upload.rb +7 -4
- data/lib/aws-sdk-s3/multipart_upload_part.rb +8 -8
- data/lib/aws-sdk-s3/object.rb +353 -143
- data/lib/aws-sdk-s3/object_summary.rb +339 -121
- data/lib/aws-sdk-s3/object_version.rb +21 -12
- data/lib/aws-sdk-s3/plugins/endpoints.rb +13 -7
- data/lib/aws-sdk-s3/types.rb +755 -350
- data/lib/aws-sdk-s3.rb +35 -31
- data/sig/bucket_lifecycle_configuration.rbs +7 -3
- data/sig/client.rbs +19 -4
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +17 -2
- metadata +5 -4
@@ -524,10 +524,10 @@ module Aws::S3
|
|
524
524
|
# @option options [String] :checksum_mode
|
525
525
|
# To retrieve the checksum, this mode must be enabled.
|
526
526
|
#
|
527
|
-
# In addition, if you enable checksum mode
|
528
|
-
# with a [checksum][1] and encrypted with an
|
529
|
-
# (KMS) key, you must have permission to use the
|
530
|
-
# retrieve the checksum.
|
527
|
+
# **General purpose buckets** - In addition, if you enable checksum mode
|
528
|
+
# and the object is uploaded with a [checksum][1] and encrypted with an
|
529
|
+
# Key Management Service (KMS) key, you must have permission to use the
|
530
|
+
# `kms:Decrypt` action to retrieve the checksum.
|
531
531
|
#
|
532
532
|
#
|
533
533
|
#
|
@@ -710,10 +710,16 @@ module Aws::S3
|
|
710
710
|
# @option options [String] :checksum_mode
|
711
711
|
# To retrieve the checksum, this parameter must be enabled.
|
712
712
|
#
|
713
|
-
#
|
714
|
-
# with a [checksum][1] and encrypted with an Key
|
715
|
-
# (KMS) key, you must have permission to use the
|
716
|
-
# retrieve the checksum.
|
713
|
+
# **General purpose buckets** - If you enable checksum mode and the
|
714
|
+
# object is uploaded with a [checksum][1] and encrypted with an Key
|
715
|
+
# Management Service (KMS) key, you must have permission to use the
|
716
|
+
# `kms:Decrypt` action to retrieve the checksum.
|
717
|
+
#
|
718
|
+
# **Directory buckets** - If you enable `ChecksumMode` and the object is
|
719
|
+
# encrypted with Amazon Web Services Key Management Service (Amazon Web
|
720
|
+
# Services KMS), you must also have the `kms:GenerateDataKey` and
|
721
|
+
# `kms:Decrypt` permissions in IAM identity-based policies and KMS key
|
722
|
+
# policies for the KMS key to retrieve the checksum of the object.
|
717
723
|
#
|
718
724
|
#
|
719
725
|
#
|
@@ -863,13 +869,13 @@ module Aws::S3
|
|
863
869
|
# For the `x-amz-checksum-algorithm ` header, replace ` algorithm ` with
|
864
870
|
# the supported algorithm from the following list:
|
865
871
|
#
|
866
|
-
# * CRC32
|
872
|
+
# * `CRC32`
|
867
873
|
#
|
868
|
-
# * CRC32C
|
874
|
+
# * `CRC32C`
|
869
875
|
#
|
870
|
-
# * SHA1
|
876
|
+
# * `SHA1`
|
871
877
|
#
|
872
|
-
# * SHA256
|
878
|
+
# * `SHA256`
|
873
879
|
#
|
874
880
|
# For more information, see [Checking object integrity][1] in the
|
875
881
|
# *Amazon S3 User Guide*.
|
@@ -911,3 +917,6 @@ module Aws::S3
|
|
911
917
|
end
|
912
918
|
end
|
913
919
|
end
|
920
|
+
|
921
|
+
# Load customizations if they exist
|
922
|
+
require 'aws-sdk-s3/customizations/object_version'
|
@@ -15,19 +15,22 @@ module Aws::S3
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::S3::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::S3::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::S3::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
26
26
|
option(
|
27
27
|
:disable_s3_express_session_auth,
|
28
28
|
doc_type: 'Boolean',
|
29
|
-
|
30
|
-
|
29
|
+
docstring: <<~DOCS) do |cfg|
|
30
|
+
Parameter to indicate whether S3Express session auth should be disabled
|
31
|
+
DOCS
|
32
|
+
nil
|
33
|
+
end
|
31
34
|
|
32
35
|
# @api private
|
33
36
|
class Handler < Seahorse::Client::Handler
|
@@ -57,6 +60,9 @@ module Aws::S3
|
|
57
60
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
58
61
|
metrics << 'SIGV4A_SIGNING'
|
59
62
|
end
|
63
|
+
if context.config.credentials&.credentials&.account_id
|
64
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
65
|
+
end
|
60
66
|
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
61
67
|
end
|
62
68
|
|