Sha256: e07c562eb256cb3967638551af91908348796397fd041825bea492779d0baa93

Contents?: true

Size: 934 Bytes

Versions: 7

Compression:

Stored size: 934 Bytes

Contents

Aws.add_service(:S3, {
  api: File.join(Aws::API_DIR, 'S3.api.json'),
  docs: File.join(Aws::API_DIR, 'S3.docs.json'),
  paginators: File.join(Aws::API_DIR, 'S3.paginators.json'),
  resources: File.join(Aws::API_DIR, 'S3.resources.json'),
  waiters: File.join(Aws::API_DIR, 'S3.waiters.json'),
})

module Aws
  module S3

    autoload :Presigner, 'aws-sdk-core/s3/presigner'
    autoload :BucketRegionCache, 'aws-sdk-core/s3/bucket_region_cache'

    # A cache of discovered bucket regions. You can call `#bucket_added`
    # on this to be notified when you must configure the proper region
    # to access a bucket.
    #
    # This cache is considered an implementation detail.
    #
    # @api private
    BUCKET_REGIONS = BucketRegionCache.new

    # @param [String] region
    # @return [Boolean]
    # @api private
    def self.sigv2_region?(region)
      Client.api.metadata('sigv2Regions').include?(region)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aws-sdk-core-2.0.10 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.9 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.8 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.7 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.6 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.5 lib/aws-sdk-core/s3.rb
aws-sdk-core-2.0.4 lib/aws-sdk-core/s3.rb