Class: Aws::EndpointProvider Private

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

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.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules) ⇒ EndpointProvider

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 EndpointProvider.



5
6
7
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 5

def initialize(rules)
  @rules = rules
end

Class Method Details

.resolve(region, service) ⇒ 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.



79
80
81
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 79

def resolve(region, service)
  default_provider.resolve(region, service)
end

.signing_region(region, service) ⇒ 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.



83
84
85
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 83

def signing_region(region, service)
  default_provider.signing_region(region, service)
end

Instance Method Details

#resolve(region, service) ⇒ 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.



9
10
11
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 9

def resolve(region, service)
  "https://" + endpoint_for(region, service)
end

#signing_region(region, service) ⇒ 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.



13
14
15
16
17
18
19
20
21
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 13

def signing_region(region, service)
  get_partition(region).
    fetch("services", {}).
    fetch(service, {}).
    fetch("endpoints", {}).
    fetch(region, {}).
    fetch("credentialScope", {}).
    fetch("region", region)
end