Skip to content

Commit

Permalink
fix: use event.details to get parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sbstjn committed Mar 10, 2021
1 parent 27ee076 commit b9ea615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/notifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Resources:
print("received event")
print(event)
print(event['requestParameters']['title'])
print(event['requestParameters']['description'])
print(event['detail']['requestParameters']['title'])
print(event['detail']['requestParameters']['description'])
print("https://${AWS::Region}.console.aws.amazon.com/systems-manager/opsitems/{}".format(event['responseElements']['opsItemId']))
print("https://${AWS::Region}.console.aws.amazon.com/systems-manager/opsitems/{}".format(event['detail']['responseElements']['opsItemId']))

0 comments on commit b9ea615

Please sign in to comment.