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/sns/delete_topic.rb

30 lines
604 B
Ruby
Raw Normal View History

2011-02-02 23:26:28 -08:00
module Fog
module AWS
class SNS
class Real
require 'fog/aws/parsers/sns/delete_topic'
2011-07-19 17:53:26 -05:00
# Delete a topic
#
# ==== Parameters
# * arn<~String> - The Arn of the topic to delete
#
# ==== See Also
# http://docs.amazonwebservices.com/sns/latest/api/API_DeleteTopic.html
#
def delete_topic(arn)
2011-02-02 23:26:28 -08:00
request({
2011-07-19 17:53:26 -05:00
'Action' => 'DeleteTopic',
'TopicArn' => arn.strip,
2011-07-19 17:53:26 -05:00
:parser => Fog::Parsers::AWS::SNS::DeleteTopic.new
})
2011-02-02 23:26:28 -08:00
end
end
end
end
end