Sha256: 10c192713d653fb7ef6ce745a72f33e443a03eb864b1a4f5b95c079fef85cfb3
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
module Aws module Plugins # @api private class SQSQueueUrls < Seahorse::Client::Plugin class Handler < Seahorse::Client::Handler def call(context) if url = context.params[:queue_url] update_endpoint(context, url) update_region(context, url) end @handler.call(context) end def update_endpoint(context, url) context.http_request.endpoint = url end def update_region(context, url) region = url.split('.')[1] context.config = context.config.dup context.config.region = region context.config.sigv4_region = region end end handler(Handler) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-sdk-core-2.0.0.rc2 | lib/aws/plugins/sqs_queue_urls.rb |
aws-sdk-core-2.0.0.rc1 | lib/aws/plugins/sqs_queue_urls.rb |