airflow.providers.amazon.aws.operators.sns
¶
Publish message to SNS queue.
Module Contents¶
Classes¶
Publish a message to Amazon SNS. |
- class airflow.providers.amazon.aws.operators.sns.SnsPublishOperator(*, target_arn, message, subject=None, message_attributes=None, **kwargs)[source]¶
Bases:
airflow.providers.amazon.aws.operators.base_aws.AwsBaseOperator
[airflow.providers.amazon.aws.hooks.sns.SnsHook
]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
- Parameters
target_arn (str) – either a TopicArn or an EndpointArn
message (str) – the default message you want to send (templated)
subject (str | None) – the message subject you want to send (templated)
message_attributes (dict | None) – the message attributes you want to send as a flat dict (data type will be determined automatically)
aws_conn_id – The Airflow connection used for AWS credentials. If this is
None
or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).region_name – AWS region_name. If not specified then the default boto3 behaviour is used.
verify – Whether or not to verify SSL certificates. See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
botocore_config – Configuration dictionary (key-values) for botocore client. See: https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html