Skip to content

Commit

Permalink
feat: add MessageAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mckadesorensen committed May 3, 2024
1 parent 1a27b1c commit 3708f10
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 3708f10

Please sign in to comment.