1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #414 from bensie/set_load_balancer_listener_ssl_certificate

[aws|elb] Add set_load_balancer_listener_ssl_certificate
This commit is contained in:
Wesley Beary 2011-07-11 15:05:30 -07:00
commit d7438b98e7
2 changed files with 41 additions and 1 deletions

View file

@ -23,7 +23,7 @@ module Fog
request :disable_availability_zones_for_load_balancer
request :enable_availability_zones_for_load_balancer
request :register_instances_with_load_balancer
#request :set_load_balancer_listener_ssl_certificate
request :set_load_balancer_listener_ssl_certificate
request :set_load_balancer_policies_of_listener
model_path 'fog/aws/models/elb'

View file

@ -0,0 +1,40 @@
module Fog
module AWS
class ELB
class Real
require 'fog/aws/parsers/elb/empty'
# Sets the certificate that terminates the specified listener's SSL
# connections. The specified certificate replaces any prior certificate
# that was used on the same LoadBalancer and port.
#
# ==== Parameters
# * lb_name<~String> - Name of the ELB
# * load_balancer_port<~Integer> - The external port of the LoadBalancer
# with which this policy has to be associated.
# * ssl_certificate_id<~String> - ID of the SSL certificate chain to use
# example: arn:aws:iam::322191361670:server-certificate/newCert
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'ResponseMetadata'<~Hash>:
# * 'RequestId'<~String> - Id of request
def set_load_balancer_listener_ssl_certificate(lb_name, load_balancer_port, ssl_certificate_id)
request({
'Action' => 'SetLoadBalancerListenerSSLCertificate',
'LoadBalancerName' => lb_name,
'LoadBalancerPort' => load_balancer_port,
'SSLCertificateId' => ssl_certificate_id,
:parser => Fog::Parsers::AWS::ELB::Empty.new
})
end
end
class Mock
end
end
end
end