Class: CfnEvents::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/cfn-events/client.rb

Class Method Summary collapse

Class Method Details

.configureObject



5
6
7
# File 'lib/cfn-events/client.rb', line 5

def self.configure
  Aws.config.merge! core_v2_options
end

.core_v2_optionsObject



9
10
11
12
13
14
15
# File 'lib/cfn-events/client.rb', line 9

def self.core_v2_options
  {
	http_proxy: get_proxy,
	user_agent_suffix: "cfn-events #{VERSION}",
	# http_wire_trace: true,
  }
end

.get_proxyObject



17
18
19
20
21
# File 'lib/cfn-events/client.rb', line 17

def self.get_proxy
  e = ENV['https_proxy']
  e = "https://#{e}" if e && !e.empty? && !e.start_with?('http')
  return e
end