gems/aws-sdk-sqs/lib/aws-sdk-sqs/plugins/queue_urls.rb
def update_region(context, queue_url)
            if queue_region = queue_url.to_s.split('.')[1]
              if queue_region != context.config.region
                config = context.config.dup
                config.region = queue_region
                config.sigv4_region = queue_region
                config.sigv4_signer = Aws::Plugins::SignatureV4.build_signer(config)
                context.config = config
              end
            end
          end
# If the region in the queue url is not the configured
# region, then we will modify the request to have
# a sigv4 signer for the proper region.
If the region in the queue url is not the configured
region, then we will modify the request to have
a sigv4 signer for the proper region.
If the region in the queue url is not the configured region then we will modify the request to have a sigv4 signer for the proper region .
def update_region(context, queue_url)
            if queue_region = queue_url.to_s.split('.')[1]
              if queue_region != context.config.region
                config = context.config.dup
                config.region = queue_region
                config.sigv4_region = queue_region
                config.sigv4_signer = Aws::Plugins::SignatureV4.build_signer(config)
                context.config = config
              end
            end
          end
def update_region ( context , queue_url ) if queue_region = queue_url . to_s . split ( '.' ) [ 1 ] if queue_region != context . config . region config = context . config . dup config . region = queue_region config . sigv4_region = queue_region config . sigv4_signer = Aws :: Plugins :: SignatureV4 . build_signer ( config ) context . config = config end end end
If the region in the queue url is not the configured
region, then we will modify the request to have
a sigv4 signer for the proper region.
If the region in the queue url is not the configured region then we will modify the request to have a sigv4 signer for the proper region .
context
queue_url