class Aws::Plugins::SQSQueueUrls::Handler
def call(context)
def call(context) if url = context.params[:queue_url] update_region(context, url) update_endpoint(context, url) end @handler.call(context) end
def update_endpoint(context, url)
def update_endpoint(context, url) context.http_request.endpoint = url end
def update_region(context, url)
def update_region(context, url) if region = url.to_s.split('.')[1] context.config = context.config.dup context.config.region = region context.config.sigv4_region = region end end