diff template.yaml @ 8:6541622b6127

add tweet analysis method
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Fri, 17 Sep 2021 21:10:02 +0200
parents 54e71cf6e324
children
line wrap: on
line diff
--- a/template.yaml	Fri Sep 17 17:42:54 2021 +0200
+++ b/template.yaml	Fri Sep 17 21:10:02 2021 +0200
@@ -152,13 +152,13 @@
   ##
 
   # Define lambda functions
-  GetTweetSentimentFunction:
+  TweetSentimentHandler:
     Type: AWS::Serverless::Function
     Properties:
       FunctionName: GetTweetSentimentFunction
       Description: Fetch tweets and analyse sentiment using AWS Comprehend
       CodeUri: src/
-      Handler: handlers/sentiment.get_tweet_sentiment
+      Handler: handlers/tweet_sentiment_handler.get_tweet_sentiment
       Runtime: python3.9
       Policies:
         - AWSSecretsManagerGetSecretValuePolicy: