class_docstr: Amazon SNS (Simple Notification Service) Notifier.
  
  .. seealso::
      For more information on how to use this notifier, take a look at the guide:
      :ref:`howto/notifier:SnsNotifier`
  
  :param aws_conn_id: The :ref:`Amazon Web Services Connection id <howto/connection:aws>`
      used for AWS credentials. If this is None or empty then the default boto3 behaviour is used.
  :param target_arn: Either a TopicArn or an EndpointArn.
  :param message: The message you want to send.
  :param subject: The message subject you want to send.
  :param message_attributes: The message attributes you want to send as a flat dict (data type will be
      determined automatically).
  :param region_name: AWS region_name. If not specified then the default boto3 behaviour is used.
docstr: Publish the notification message to Amazon SNS.
code: def notify(self, context):
      """Publish the notification message to Amazon SNS."""
      self.hook.publish_to_target(
          target_arn=self.target_arn,
          message=self.message,
          subject=self.subject,
          message_attributes=self.message_attributes,
      )
  
file_path: airflow/airflow/providers/amazon/aws/notifications/sns.py
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Sequence
  from airflow.notifications.basenotifier import BaseNotifier
  from airflow.providers.amazon.aws.hooks.sns import SnsHook
label_desc: Use image node_id 3 for calling the SnsNotifier obj's underlying member method code with example usage: obj.notify(context) without return types