class Aws::Errors::InvalidRegionError
Raised when a client is contsructed and the region is not valid.
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/aws-sdk-core/errors.rb, line 250 def initialize(*args) super(<<-MSG) Invalid `:region` option was provided. * Not every service is available in every region. * Never suffix region names with availability zones. Use "us-east-1", not "us-east-1a" Known AWS regions include (not specific to this service): #{possible_regions} MSG end
Private Instance Methods
possible_regions()
click to toggle source
# File lib/aws-sdk-core/errors.rb, line 267 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