Exception: Aws::Errors::InvalidRegionError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/aws-sdk-core/errors.rb

Overview

Raised when a client is contsructed and the region is not valid.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ InvalidRegionError

Returns a new instance of InvalidRegionError.


228
229
230
231
232
233
234
235
236
237
238
239
240
241
# File 'lib/aws-sdk-core/errors.rb', line 228

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