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

.dns_suffix_for(region) ⇒ 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.



92
93
94
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 92

def dns_suffix_for(region)
  default_provider.dns_suffix_for(region)
end

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



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

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.



88
89
90
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 88

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

Instance Method Details

#dns_suffix_for(region) ⇒ 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.



23
24
25
26
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 23

def dns_suffix_for(region)
  partition = get_partition(region)
  partition['dnsSuffix']
end

#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