module Aws

utility classes

Constants

CORE_GEM_VERSION

Attributes

config[R]

@return [Hash] Returns a hash of default configuration options shared

by all constructed clients.

Public Class Methods

config=(config) click to toggle source

@param [Hash] config

# File lib/aws-sdk-core.rb, line 96
def config=(config)
  if Hash === config
    @config = config
  else
    raise ArgumentError, 'configuration object must be a hash'
  end
end
eager_autoload!(*args) click to toggle source

@api private

# File lib/aws-sdk-core.rb, line 155
def eager_autoload!(*args)
  msg = 'Aws.eager_autoload is no longer needed, usage of '\
        'autoload has been replaced with require statements'
  warn(msg)
end
empty_connection_pools!() click to toggle source

Close any long-lived connections maintained by the SDK’s internal connection pool.

Applications that rely heavily on the ‘fork()` system call on POSIX systems should call this method in the child process directly after fork to ensure there are no race conditions between the parent process and its children for the pooled TCP connections.

Child processes that make multi-threaded calls to the SDK should block on this call before beginning work.

@return [nil]

# File lib/aws-sdk-core.rb, line 148
def empty_connection_pools!
  Seahorse::Client::NetHttp::ConnectionPool.pools.each do |pool|
    pool.empty!
  end
end
partition(partition_name) click to toggle source

@see (Aws::Partitions.partition)

# File lib/aws-sdk-core.rb, line 105
def partition(partition_name)
  Aws::Partitions.partition(partition_name)
end
partitions() click to toggle source

@see (Aws::Partitions.partitions)

# File lib/aws-sdk-core.rb, line 110
def partitions
  Aws::Partitions.partitions
end
shared_config() click to toggle source

@api private

# File lib/aws-sdk-core.rb, line 86
def shared_config
  enabled = ENV["AWS_SDK_CONFIG_OPT_OUT"] ? false : true
  @shared_config ||= SharedConfig.new(config_enabled: enabled)
end
use_bundled_cert!() click to toggle source

The SDK ships with a ca certificate bundle to use when verifying SSL peer certificates. By default, this cert bundle is NOT used. The SDK will rely on the default cert available to OpenSSL. This ensures the cert provided by your OS is used.

For cases where the default cert is unavailable, e.g. Windows, you can call this method.

Aws.use_bundled_cert!

@return [String] Returns the path to the bundled cert.

# File lib/aws-sdk-core.rb, line 125
def use_bundled_cert!
  config.delete(:ssl_ca_directory)
  config.delete(:ssl_ca_store)
  config[:ssl_ca_bundle] = File.expand_path(File.join(
    File.dirname(__FILE__),
    '..',
    'ca-bundle.crt'
  ))
end