2011-02-03 20:09:04 -05:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class SNS
|
|
|
|
class Real
|
|
|
|
|
|
|
|
require 'fog/aws/parsers/sns/set_topic_attributes'
|
|
|
|
|
2011-07-19 18:53:26 -04:00
|
|
|
# Set attributes of a topic
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * arn<~Hash> - The Arn of the topic to get attributes for
|
|
|
|
# * attribute_name<~String> - Name of attribute to set, in ['DisplayName', 'Policy']
|
|
|
|
# * attribute_value<~String> - Value to set attribute to
|
|
|
|
#
|
|
|
|
# ==== See Also
|
|
|
|
# http://docs.amazonwebservices.com/sns/latest/api/API_SetTopicAttributes.html
|
|
|
|
#
|
|
|
|
|
|
|
|
def set_topic_attributes(arn, attribute_name, attribute_value)
|
2011-02-03 20:09:04 -05:00
|
|
|
request({
|
2011-07-19 18:53:26 -04:00
|
|
|
'Action' => 'SetTopicAttributes',
|
|
|
|
'AttributeName' => attribute_name,
|
|
|
|
'AttributeValue' => attribute_value,
|
2012-02-27 16:15:25 -05:00
|
|
|
'TopicArn' => arn.strip,
|
2011-07-19 18:53:26 -04:00
|
|
|
:parser => Fog::Parsers::AWS::SNS::SetTopicAttributes.new
|
|
|
|
})
|
2011-02-03 20:09:04 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|