add subject support (#1387)
This commit is contained in:
parent
279efc6b12
commit
9d087b0729
3 changed files with 19 additions and 18 deletions
|
|
@ -603,7 +603,7 @@ class LambdaBackend(BaseBackend):
|
|||
def list_functions(self):
|
||||
return self._lambdas.all()
|
||||
|
||||
def send_message(self, function_name, message):
|
||||
def send_message(self, function_name, message, subject=None):
|
||||
event = {
|
||||
"Records": [
|
||||
{
|
||||
|
|
@ -630,7 +630,7 @@ class LambdaBackend(BaseBackend):
|
|||
"Type": "Notification",
|
||||
"UnsubscribeUrl": "EXAMPLE",
|
||||
"TopicArn": "arn:aws:sns:EXAMPLE",
|
||||
"Subject": "TestInvoke"
|
||||
"Subject": subject or "TestInvoke"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue