Class | AWS::ELB::Listener |
In: |
lib/aws/elb/listener.rb
|
Parent: | Object |
load_balancer | [R] | @return [LoadBalancer] |
port | [R] | @return [Integer] |
@param [LoadBalancer] load_balancer The load balancer this listener
belongs to.
@param [Integer] port The external load balancer port number.
@param [Hash] options
@option (see ListenerCollection#create)
Returns true if this listener exists.
load_balancer = ELB.new.load_balancers['my-load-balancer'] listener = load_balancer.listeners[80] # port 80 listener.exists?
@return [Boolean] Returns true if the load balancer has a listener
on this port.
@return [LoadBalancerPolicy,nil] Returns the current policy for this
listener. Returns nil if no load balancer policy has been associated with it.
@param [String,LoadBalancerPolicy] policy_or_policy_name Sets
the policy for this listener.
@return [LoadBalancerPolicy]
@return [IAM::ServerCertificate,nil] Returns the IAM::ServerCertificate
associated with this listener, or nil if there is none.
Sets the certificate that terminates the specified listener‘s SSL connections. The specified certificate replaces any prior certificate for this listener.
@param [String,IAM::ServerCertificate] server_certificate The ARN
of an IAM::ServerCertificate or an IAM::ServerCertificate object.
@return [nil]