blob: 85a3aee812652fae6ff538a6694d778ee822e4f2 [file] [log] [blame]
:py:mod:`airflow.providers.amazon.aws.operators.sns`
====================================================
.. py:module:: airflow.providers.amazon.aws.operators.sns
.. autoapi-nested-parse::
Publish message to SNS queue
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.providers.amazon.aws.operators.sns.SnsPublishOperator
.. py:class:: SnsPublishOperator(*, target_arn, message, subject = None, message_attributes = None, aws_conn_id = 'aws_default', **kwargs)
Bases: :py:obj:`airflow.models.BaseOperator`
Publish a message to Amazon SNS.
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:SnsPublishOperator`
:param aws_conn_id: aws connection to use
:param target_arn: either a TopicArn or an EndpointArn
:param message: the default message you want to send (templated)
:param subject: the message subject you want to send (templated)
:param message_attributes: the message attributes you want to send as a flat dict (data type will be
determined automatically)
.. py:attribute:: template_fields
:annotation: :Sequence[str] = ['target_arn', 'message', 'subject', 'message_attributes', 'aws_conn_id']
.. py:attribute:: template_ext
:annotation: :Sequence[str] = []
.. py:attribute:: template_fields_renderers
.. py:method:: execute(context)
This is the main method to derive when creating an operator.
Context is the same dictionary used as when rendering jinja templates.
Refer to get_template_context for more context.