class Aws::Errors::NoSuchEndpointError
of configuring an invalid ‘:region`.
is received from the HTTP client. This error is typically the result
Raised when attempting to connect to an endpoint and a `SocketError`
def initialize(options = {})
def initialize(options = {}) @context = options[:context] @endpoint = @context.http_request.endpoint @original_error = options[:original_error] super(<<-MSG) tered a `SocketError` while attempting to connect to: dpoint} s typically the result of an invalid `:region` option or a formatted `:endpoint` option. d configuring the `:endpoint` option directly. Endpoints are constructed the `:region`. The `:endpoint` option is reserved for certain services or connecting to non-standard test endpoints. every service is available in every region. r suffix region names with availability zones. "us-east-1", not "us-east-1a" AWS regions include (not specific to this service): ible_regions} MSG end
def possible_regions
def possible_regions Aws.partitions.each_with_object([]) do |partition, region_names| partition.regions.each do |region| region_names << region.name end end.join("\n") end