Class: AWS::ELB::Listener

Inherits:
Object
  • Object
show all
Defined in:
lib/kelbim/ext/elb-listener-ext.rb

Instance Method Summary collapse

Instance Method Details

#policiesObject



10
11
12
13
14
15
16
17
18
# File 'lib/kelbim/ext/elb-listener-ext.rb', line 10

def policies
  if AWS.memoizing? and @policy_list
    return @policy_list
  end

  @policy_list = policy_names.map do |name|
    load_balancer.policies.find {|i| i.name == name }
  end
end

#policy_namesObject



6
7
8
# File 'lib/kelbim/ext/elb-listener-ext.rb', line 6

def policy_names
  _description[:policy_names]
end

#ssl_certificate_idObject



20
21
22
# File 'lib/kelbim/ext/elb-listener-ext.rb', line 20

def ssl_certificate_id
  _description[:listener][:ssl_certificate_id]
end

#ssl_certificate_id=(arn) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/kelbim/ext/elb-listener-ext.rb', line 24

def ssl_certificate_id=(arn)
  client.set_load_balancer_listener_ssl_certificate(
    :load_balancer_name => load_balancer.name,
    :load_balancer_port => port,
    :ssl_certificate_id => arn)
  nil
end