From a44ec1211570dec4147b650447baf67436969821 Mon Sep 17 00:00:00 2001 From: Zuhaib Siddique Date: Mon, 7 May 2012 23:13:11 -0700 Subject: [PATCH] Adds new method delete_notification_configuration which allows you notifications created by put_notification_configuration. --- .../delete_notification_configuration.rb | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/fog/aws/requests/auto_scaling/delete_notification_configuration.rb diff --git a/lib/fog/aws/requests/auto_scaling/delete_notification_configuration.rb b/lib/fog/aws/requests/auto_scaling/delete_notification_configuration.rb new file mode 100644 index 000000000..49b51b50a --- /dev/null +++ b/lib/fog/aws/requests/auto_scaling/delete_notification_configuration.rb @@ -0,0 +1,47 @@ +module Fog + module AWS + class AutoScaling + + class Real + + require 'fog/aws/parsers/auto_scaling/basic' + + # Deletes notifications created by put_notification_configuration. + # + # ==== Parameters + # * auto_scaling_group_name<~String> - The name of the Auto Scaling + # group. + # * topic_arn<~String> - The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic + # you wish to delete. + # + # ==== Returns + # * response<~Excon::Response>: + # * body<~Hash>: + # * 'ResponseMetadata'<~Hash>: + # * 'RequestId'<~String> - Id of request + # + # ==== See Also + # http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/API_DeleteNotificationConfiguration.html + # + def delete_notification_configuration(auto_scaling_group_name, topic_arn) + request({ + 'Action' => 'DeleteNotificationConfiguration', + 'AutoScalingGroupName' => auto_scaling_group_name, + 'TopicARN' => topic_arn, + :parser => Fog::Parsers::AWS::AutoScaling::Basic.new + }) + end + + end + + class Mock + + def delete_notification_configuration(auto_scaling_group_name, topic_arn) + Fog::Mock.not_implemented + end + + end + + end + end +end