1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
2011-09-30 14:49:10 -04:00

30 lines
No EOL
841 B
Ruby

module Fog
module AWS
class CloudWatch
class Real
require 'fog/aws/parsers/cloud_watch/delete_alarms'
# Delete a list of alarms
# ==== Options
# * AlarmNames<~Array>: A list of alarms to be deleted
#
# ==== Returns
# * response<~Excon::Response>:
#
# ==== See Also
# http://docs.amazonwebservices.com/AmazonCloudWatch/latest/APIReference/index.html?API_DeleteAlarms.html
#
def delete_alarms(alarm_names)
options = {}
options.merge!(AWS.indexed_param('AlarmNames.member.%d', [*alarm_names]))
request({
'Action' => 'DeleteAlarms',
:parser => Fog::Parsers::AWS::CloudWatch::DeleteAlarms.new
}.merge(options))
end
end
end
end
end