module Aws
Constants
- CORE_GEM_VERSION
Attributes
@return [Hash] Returns a hash of default configuration options shared
by all constructed clients.
Public Class Methods
@param [Hash] config
# File lib/aws-sdk-core.rb, line 122 def config=(config) if Hash === config @config = config else raise ArgumentError, 'configuration object must be a hash' end end
@api private
# File lib/aws-sdk-core.rb, line 181 def eager_autoload!(*args) msg = 'Aws.eager_autoload is no longer needed, usage of '\ 'autoload has been replaced with require statements' warn(msg) end
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 174 def empty_connection_pools! Seahorse::Client::NetHttp::ConnectionPool.pools.each do |pool| pool.empty! end end
@see (Aws::Partitions.partition)
# File lib/aws-sdk-core.rb, line 131 def partition(partition_name) Aws::Partitions.partition(partition_name) end
@see (Aws::Partitions.partitions)
# File lib/aws-sdk-core.rb, line 136 def partitions Aws::Partitions.partitions end
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 151 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