SnsPublishOperator

Amazon

Publish a message to Amazon SNS.

View on GitHub

Last Updated: Jan. 12, 2023

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

aws_conn_idaws connection to use
target_arnRequiredeither a TopicArn or an EndpointArn
messageRequiredthe default message you want to send (templated)
subjectthe message subject you want to send (templated)
message_attributesthe message attributes you want to send as a flat dict (data type will be determined automatically)

Documentation

Publish a message to Amazon SNS.

See also

For more information on how to use this operator, take a look at the guide: Publish a message to an existing SNS topic

Was this page helpful?