File: delete_health_check.rb

package info (click to toggle)
ruby-fog-aws 3.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,816 kB
  • sloc: ruby: 68,587; makefile: 6
file content (24 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module Fog
  module AWS
    class DNS
      class Real
        # This action deletes a health check.
        # http://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteHealthCheck.html
        #
        # ==== Parameters
        # * id<~String> - Health check ID
        # === Returns
        # * response<~Excon::Response>:
        #   * status<~Integer> - 200 when successful

        def delete_health_check(id)
          request({
            :expects => 200,
            :method  => 'DELETE',
            :path    => "healthcheck/#{id}"
          })
        end
      end
    end
  end
end