class Aws::EndpointCache

def _request_endpoint(ctx)

def _request_endpoint(ctx)
  params = {}
  if _endpoint_operation_identifier(ctx)
    # build identifier params when available
    params[:operation] = ctx.operation.name
    ctx.operation.input.shape.members.inject(params) do |p, (name, ref)|
      if ref["endpointdiscoveryid"]
        p[:identifiers] ||= {}
        p[:identifiers][ref.location_name] = ctx.params[name]
      end
      p
    end
  end
  begin
    endpoint_operation_name = ctx.config.api.endpoint_operation
    ctx.client.send(endpoint_operation_name, params)
  rescue Aws::Errors::ServiceError
    nil 
  end
end