Class: Aws::EndpointProvider Private
- Inherits:
-
Object
- Object
- Aws::EndpointProvider
- 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.
Constant Summary collapse
- STS_LEGACY_REGIONS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
when sts_regional_endpoint set to ‘legacy` endpoint pattern stays global for following regions
%w( ap-northeast-1 ap-south-1 ap-southeast-1 ap-southeast-2 aws-global ca-central-1 eu-central-1 eu-north-1 eu-west-1 eu-west-2 eu-west-3 sa-east-1 us-east-1 us-east-2 us-west-1 us-west-2 )
Class Method Summary collapse
- .dns_suffix_for(region) ⇒ Object private
- .resolve(region, service, sts_regional_endpoints = nil) ⇒ Object private
- .signing_region(region, service) ⇒ Object private
Instance Method Summary collapse
- #dns_suffix_for(region) ⇒ Object private
-
#initialize(rules) ⇒ EndpointProvider
constructor
private
A new instance of EndpointProvider.
- #resolve(region, service, sts_regional_endpoints = nil) ⇒ Object private
- #signing_region(region, service) ⇒ Object private
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.
27 28 29 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 27 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.
119 120 121 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 119 def dns_suffix_for(region) default_provider.dns_suffix_for(region) end |
.resolve(region, service, sts_regional_endpoints = nil) ⇒ 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.
111 112 113 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 111 def resolve(region, service, sts_regional_endpoints = nil) default_provider.resolve(region, service, sts_regional_endpoints) 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.
115 116 117 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 115 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.
45 46 47 48 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 45 def dns_suffix_for(region) partition = get_partition(region) partition['dnsSuffix'] end |
#resolve(region, service, sts_regional_endpoints = nil) ⇒ 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.
31 32 33 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 31 def resolve(region, service, sts_regional_endpoints = nil) "https://" + endpoint_for(region, service, sts_regional_endpoints) 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.
35 36 37 38 39 40 41 42 43 |
# File 'lib/aws-sdk-core/endpoint_provider.rb', line 35 def signing_region(region, service) get_partition(region). fetch("services", {}). fetch(service, {}). fetch("endpoints", {}). fetch(region, {}). fetch("credentialScope", {}). fetch("region", region) end |