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.
code: def __init__(
      self,
      *,
      aws_conn_id: str | None = SnsHook.default_conn_name,
      target_arn: str,
      message: str,
      subject: str | None = None,
      message_attributes: dict | None = None,
      region_name: str | None = None,
  ):
      super().__init__()
      self.aws_conn_id = aws_conn_id
      self.region_name = region_name
      self.target_arn = target_arn
      self.message = message
      self.subject = subject
      self.message_attributes = 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 1 to create a new SnsNotifier object from inherited base classes: BaseNotifier with example: obj = SnsNotifier()