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.to_s}
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 connecting to
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.inject([]) do |region_names, partition|
    partition.regions.each do |region|
      region_names << region.name
    end
    region_names
  end.join("\n")
end