class Aws::Plugins::RegionalEndpoint
def resolve_endpoint(cfg)
When the `regional_endpoint` config is set to true - this indicates to
parameter.
Additional behavior controls the setting of the custom SDK::Endpoint
we must preserve that behavior.
but because new old service gems may depend on new core versions
NOTE: with Endpoints 2.0, some of this logic is deprecated
def resolve_endpoint(cfg) endpoint = resolve_custom_config_endpoint(cfg) endpoint_prefix = cfg.api.metadata['endpointPrefix'] return endpoint unless endpoint.nil? && cfg.region && endpoint_prefix validate_region!(cfg.region) handle_legacy_pseudo_regions(cfg) # set regional_endpoint flag - this indicates to Endpoints 2.0 # that a custom endpoint has NOT been configured by the user cfg.override_config(:regional_endpoint, true) # a default endpoint is resolved in after_initialize nil end