Sha256: 9ff4aa629ba75ff2e0bb19afaf67aceaec6949cc723cd90d9f3a8011360f86fa
Contents?: true
Size: 565 Bytes
Versions: 139
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Aws module EC2 module Plugins # @api private class RegionValidation < Seahorse::Client::Plugin def after_initialize(client) if region = client.config.region if matches = region.match(/^(\w+-\w+-\d+)[a-z]$/) msg = ":region option must be a region name, not an availability "\ "zone name; try `#{matches[1]}' instead of `#{matches[0]}'" raise ArgumentError, msg end end end end end end end
Version data entries
139 entries across 139 versions & 1 rubygems