mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
42 lines
1.1 KiB
Ruby
42 lines
1.1 KiB
Ruby
module Fog
|
|
module AWS
|
|
class ELB
|
|
class Real
|
|
|
|
require 'fog/aws/parsers/elb/delete_load_balancer'
|
|
|
|
# Delete an existing Elastic Load Balancer
|
|
#
|
|
# Note that this API call, as defined by Amazon, is idempotent.
|
|
# That is, it will not return an error if you try to delete an
|
|
# ELB that does not exist.
|
|
#
|
|
# ==== Parameters
|
|
# * lb_name<~String> - Name of the ELB to be deleted
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Hash>:
|
|
# * 'DeleteLoadBalancerResponse'<~nil>
|
|
# * 'ResponseMetadata'<~Hash>:
|
|
# * 'RequestId'<~String> - Id of request
|
|
def delete_load_balancer(lb_name)
|
|
request({
|
|
'Action' => 'DeleteLoadBalancer',
|
|
'LoadBalancerName' => lb_name,
|
|
:parser => Fog::Parsers::AWS::ELB::DeleteLoadBalancer.new
|
|
})
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def delete_load_balancer(lb_name)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|