module Aws
utility classes
Constants
- CORE_GEM_VERSION
Attributes
@return [Hash] Returns a hash of default configuration options shared
by all constructed clients.
Public Class Methods
Source
# 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
@param [Hash] config
Source
# 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
@api private
Source
# File lib/aws-sdk-core.rb, line 148 def empty_connection_pools! Seahorse::Client::NetHttp::ConnectionPool.pools.each do |pool| pool.empty! end 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]
Source
# File lib/aws-sdk-core.rb, line 105 def partition(partition_name) Aws::Partitions.partition(partition_name) end
@see (Aws::Partitions.partition)
Source
# File lib/aws-sdk-core.rb, line 110 def partitions Aws::Partitions.partitions end
@see (Aws::Partitions.partitions)
Source
# 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
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.