Class: Aws::Endpoints::RulesProvider Private

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

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This class is deprecated. It is used by the Runtime endpoint resolution approach. It has been replaced by a code generated approach in each service gem. It can be removed in a new major version. It has to exist because old service gems can use a new core version.

Instance Method Summary collapse

Constructor Details

#initialize(rule_set) ⇒ RulesProvider

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of RulesProvider.



10
11
12
# File 'lib/aws-sdk-core/endpoints/rules_provider.rb', line 10

def initialize(rule_set)
  @rule_set = rule_set
end

Instance Method Details

#resolve_endpoint(parameters) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/aws-sdk-core/endpoints/rules_provider.rb', line 14

def resolve_endpoint(parameters)
  obj = resolve_rules(parameters)
  case obj
  when Endpoint
    obj
  when ArgumentError
    raise obj
  else
    raise ArgumentError, 'No endpoint could be resolved'
  end
end