class Aws::Plugins::EndpointDiscovery::Handler
def call(context)
def call(context) if context.operation.endpoint_operation context.http_request.headers['x-amz-api-version'] = context.config.api.version _apply_endpoint_discovery_user_agent(context) elsif discovery_cfg = context.operation.endpoint_discovery endpoint = _discover_endpoint( context, Aws::Util.str_2_bool(discovery_cfg["required"]) ) context.http_request.endpoint = _valid_uri(endpoint.address) if endpoint if endpoint || context.config.endpoint_discovery _apply_endpoint_discovery_user_agent(context) end end @handler.call(context) end