original_docstring:  Decorator that will publish messages to SNS Topics. This decorator looks for a 'messages'
      key in the result of the wrapper decorator. It expects result['messages'] to be a dict where
      key is Topic Name or ARN and value is the message to be sent. It will publish each message to
      its respective Topic.
  
      For example:
  
      response['messages'] = {
          'topic-1': 'string message',
          'topic-2': {'dictionary': 'message'},
      }
  
      Args:
          handler (func): lambda handler whose result will be checked for messages to publish
  
      Returns:
          handler (func): a publishing lambda handler
      
docstring: Decorator that will publish messages to SNS Topics. This decorator looks for a 'messages'
  key in the result of the wrapper decorator. It expects result['messages'] to be a dict where
  key is Topic Name or ARN and value is the message to be sent. It will publish each message to
  its respective Topic.
  
  For example.
  
  
docstring_tokens: Decorator that will publish messages to SNS Topics . This decorator looks for a ' messages ' key in the result of the wrapper decorator . It expects result [ ' messages ' ] to be a dict where key is Topic Name or ARN and value is the message to be sent . It will publish each message to its respective Topic . For example .
code: def publisher(handler):
      """ Decorator that will publish messages to SNS Topics. This decorator looks for a 'messages'
      key in the result of the wrapper decorator. It expects result['messages'] to be a dict where
      key is Topic Name or ARN and value is the message to be sent. It will publish each message to
      its respective Topic.
  
      For example:
  
      response['messages'] = {
          'topic-1': 'string message',
          'topic-2': {'dictionary': 'message'},
      }
  
      Args:
          handler (func): lambda handler whose result will be checked for messages to publish
  
      Returns:
          handler (func): a publishing lambda handler
      """
  
      @account_id_aware
      @namespace_aware
      @region_aware
      def handler_wrapper(event, context, **kwargs):
          result = handler(event, context, **kwargs)
          conn = publish.conn(kwargs['region'], kwargs['account_id'], kwargs['NAMESPACE'])
          publish.publish(conn, result.get('messages', {}))
          return result
  
      return handler_wrapper
code_tokens: def publisher ( handler ) : @ account_id_aware @ namespace_aware @ region_aware def handler_wrapper ( event , context , ** kwargs ) : result = handler ( event , context , ** kwargs ) conn = publish . conn ( kwargs [ 'region' ] , kwargs [ 'account_id' ] , kwargs [ 'NAMESPACE' ] ) publish . publish ( conn , result . get ( 'messages' , { } ) ) return result return handler_wrapper
short_docstring: Decorator that will publish messages to SNS Topics.
short_docstring_tokens: Decorator that will publish messages to SNS Topics .
comment: """ Decorator that will publish messages to SNS Topics. This decorator looks for a 'messages'
      key in the result of the wrapper decorator. It expects result['messages'] to be a dict where
      key is Topic Name or ARN and value is the message to be sent. It will publish each message to
      its respective Topic.
  
      For example:
  
      response['messages'] = {
          'topic-1': 'string message',
          'topic-2': {'dictionary': 'message'},
      }
  
      Args:
          handler (func): lambda handler whose result will be checked for messages to publish
  
      Returns:
          handler (func): a publishing lambda handler
      """