Sha256: e17d4ef8956322e1c9498cac7a084c927a4d43a8675024b8733b6211a8976970

Contents?: true

Size: 784 Bytes

Versions: 5

Compression:

Stored size: 784 Bytes

Contents

# frozen_string_literal: true

require 'openssl'

module Aws
  module S3
    module Plugins
      # @api private
      # This plugin is deprecated in favor of modeled
      # httpChecksumRequired traits.
      class Md5s < Seahorse::Client::Plugin
        option(:compute_checksums,
               default: true,
               doc_type: 'Boolean',
               docstring: <<~DOCS)
                 This option is deprecated. Please use `:request_checksum_calculation` instead.
                 When `false`, `request_checksum_calculation` is overridden to `when_required`.
               DOCS

        def after_initialize(client)
          client.config.request_checksum_calculation = 'when_required' unless client.config.compute_checksums
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws-sdk-s3-1.182.0 lib/aws-sdk-s3/plugins/md5s.rb
aws-sdk-s3-1.181.0 lib/aws-sdk-s3/plugins/md5s.rb
aws-sdk-s3-1.180.0 lib/aws-sdk-s3/plugins/md5s.rb
aws-sdk-s3-1.179.0 lib/aws-sdk-s3/plugins/md5s.rb
aws-sdk-s3-1.178.0 lib/aws-sdk-s3/plugins/md5s.rb