Skip to content

Commit

Permalink
Merge pull request #7 from asfadmin/dms/feat/attributes
Browse files Browse the repository at this point in the history
PR-5870: Add MessageAttribute
  • Loading branch information
mckadesorensen authored May 3, 2024
2 parents 1a27b1c + 3708f10 commit f3f4d4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/granule_to_sns.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ def granule_to_sns(event: dict, _) -> dict:
client.publish(
TopicArn=sns_topic_arn,
Message=message,
MessageAttributes={
"collection": {
"DataType": "String",
"StringValue": granule["dataType"],
},
},
)

return event
Expand Down

0 comments on commit f3f4d4d

Please sign in to comment.