Created
March 9, 2022 01:40
-
-
Save awswithdotnet/964f41454815838fc7722e5998dd298c to your computer and use it in GitHub Desktop.
lambda Handler Handle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Amazon.Lambda.CloudWatchEvents.ScheduledEvents; | |
using Amazon.Lambda.Core; | |
namespace simplelambda{ | |
public class Handler | |
{ | |
[LambdaSerializer(typeof(Amazon.Lambda.Serialization.Json.JsonSerializer))] | |
public void Handle(ScheduledEvent cloudWatchEvent) | |
{ | |
Console.WriteLine("Message: " + cloudWatchEvent.Source); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment