Sha256: 06656428756de027c0a5aed00b8bf0db81f1fdc070f4c593496a2ec56648a993
Contents?: true
Size: 1007 Bytes
Versions: 1017
Compression:
Stored size: 1007 Bytes
Contents
module Aws module Plugins # Makes it possible to conditional sign {Aws::CloudSearchDomain::Client} # requests. When credentials are configured, requests are signed. # When they are omitted, the request is sent anonymously. # # @seahorse.client.option [String] :sigv4_region Only needed when sending # authenticated/signed requests to a Cloud Search domain and the # endpoint does not contain the region name. # class CSDConditionalSigning < Seahorse::Client::Plugin # Adding region as an option to avoid an issue when `Aws.config[:region]` # is populated and the global configuration plugin merges options onto # this client. option(:region) option(:sigv4_region) do |cfg| # extract the region name from the cloud search domain endpoint if cfg.endpoint cfg.endpoint.to_s.split('.')[1] else raise ArgumentError, 'missing required option :endpoint' end end end end end
Version data entries
1,017 entries across 1,017 versions & 2 rubygems