# File lib/fog/aws/parsers/storage/get_bucket_notification.rb, line 29
          def end_element(name)
            case @configuration
            when 'topic'
              case name
              when 'Id', 'Event', 'Topic'
                @topic[name] = value
              when 'TopicConfiguration'
                @response['Topics'] << @topic
                @topic = {}
              end
            when 'queue'
              case name
              when 'Id', 'Queue', 'Event'
                @queue[name] = value
              when 'QueueConfiguration'
                @response['Queues'] << @queue
                @queue = {}
              end
            when 'func'
              case name
              when 'Id', 'CloudFunction', 'InvocationRule', 'Event'
                @func[name] = value
              when 'CloudFunctionConfiguration'
                @response['CloudFunctions'] << @func
                @func = {}
              end
            end
          end