Sha256: b22a91f98b33c1c3a96c8602af8f64d59fe11d133d1411e5f3f1f813eba068f1

Contents?: true

Size: 974 Bytes

Versions: 1

Compression:

Stored size: 974 Bytes

Contents

module Fog
  module AWS
    class SNS
      class Real

        require 'rackspace-fog/aws/parsers/sns/set_topic_attributes'

        # 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)
          request({
            'Action'          => 'SetTopicAttributes',
            'AttributeName'   => attribute_name,
            'AttributeValue'  => attribute_value,
            'TopicArn'        => arn.strip,
            :parser     => Fog::Parsers::AWS::SNS::SetTopicAttributes.new
          })
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/sns/set_topic_attributes.rb