lib/fog/aws/rds.rb in fog-aws-0.7.4 vs lib/fog/aws/rds.rb in fog-aws-0.7.5
- old
+ new
@@ -2,10 +2,11 @@
module AWS
class RDS < Fog::Service
extend Fog::AWS::CredentialFetcher::ServiceMethods
class IdentifierTaken < Fog::Errors::Error; end
+ class InvalidParameterCombination < Fog::Errors::Error; end
class AuthorizationAlreadyExists < Fog::Errors::Error; end
requires :aws_access_key_id, :aws_secret_access_key
recognizes :region, :host, :path, :port, :scheme, :persistent, :use_iam_profile, :aws_session_token, :aws_credentials_expire_at, :version, :instrumentor, :instrumentor_name
@@ -140,12 +141,10 @@
def initialize(options={})
@use_iam_profile = options[:use_iam_profile]
@region = options[:region] || 'us-east-1'
- unless ['ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-central-1', 'eu-west-1', 'us-east-1', 'us-west-1', 'us-west-2', 'sa-east-1'].include?(@region)
- raise ArgumentError, "Unknown region: #{@region.inspect}"
- end
+ Fog::AWS.validate_region!(@region)
setup_credentials(options)
end
def data