Skip to content

Instantly share code, notes, and snippets.

@awswithdotnet
Created March 9, 2022 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awswithdotnet/964f41454815838fc7722e5998dd298c to your computer and use it in GitHub Desktop.
Save awswithdotnet/964f41454815838fc7722e5998dd298c to your computer and use it in GitHub Desktop.
lambda Handler Handle
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