feluelle commented on a change in pull request #7451: [AIRFLOW-6830] Add 
Subject/MessageAttributes to SNS hook and operator
URL: https://github.com/apache/airflow/pull/7451#discussion_r380840971
 
 

 ##########
 File path: airflow/providers/amazon/aws/hooks/sns.py
 ##########
 @@ -50,24 +63,33 @@ def publish_to_target(self, target_arn, message, 
subject=None):
         :param message: str
         :param subject: subject of message
         :type subject: str
+        :param message_attributes: additional attributes to publish for 
message filtering. This should be
+            a flat dict; the DataType to be sent depends on the type of the 
value:
+
+            - bytes = Binary
+            - str = String
+            - int, float = Number
+            - iterable = String.Array
+
+        :type message_attributes: mapping
 
 Review comment:
   ```suggestion
           :type message_attributes: dict
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to