Module: Aws::S3

Defined in:
lib/aws-sdk-core/s3.rb,
lib/aws-sdk-core/s3/presigner.rb,
lib/aws-sdk-core/s3/bucket_region_cache.rb

Defined Under Namespace

Classes: BucketRegionCache, Presigner

Constant Summary collapse

BUCKET_REGIONS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

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.

BucketRegionCache.new

Class Method Summary collapse

Class Method Details

.sigv2_region?(region) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • region (String)

Returns:

  • (Boolean)


27
28
29
# File 'lib/aws-sdk-core/s3.rb', line 27

def self.sigv2_region?(region)
  Client.api.('sigv2Regions').include?(region)
end