Sha256: 291fcf2a21c6dc07db94e4767b752d0788367cdcdc84ed1117f0f3031651b74d

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

module Fog
  module AWS
    module ELB
      class Real

        # 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)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.1.2 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.1.1 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.1.0 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.100 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.99 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.98 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.97 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.96 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.95 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.94 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.93 lib/fog/aws/requests/elb/delete_load_balancer.rb
fog-0.0.92 lib/fog/aws/requests/elb/delete_load_balancer.rb