class Aws::Plugins::CSDConditionalSigning

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.

Public Instance Methods

after_initialize(client) click to toggle source
# File lib/aws-sdk-core/plugins/csd_conditional_signing.rb, line 28
def after_initialize(client)
  # disable request singing when credentials are not set
  if client.config.credentials.nil? or !client.config.credentials.set?
    client.config.signature_version = nil
  end
end