aws-sdk-s3 1.162.0 → 1.167.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 and the object is uploaded
528
- # with a [checksum][1] and encrypted with an Key Management Service
529
- # (KMS) key, you must have permission to use the `kms:Decrypt` action to
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
- # In addition, if you enable checksum mode and the object is uploaded
714
- # with a [checksum][1] and encrypted with an Key Management Service
715
- # (KMS) key, you must have permission to use the `kms:Decrypt` action to
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: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::S3::EndpointParameters`'
22
- ) do |cfg|
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
- default: nil,
30
- docstring: "Parameter to indicate whether S3Express session auth should be disabled")
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