'AWS Autoscaling Lifecycle Hook Invoke Lambda function c# sample

I need to invoke a lambda function when an instance is launched in a AutoScalingGruop. I Know how to configure EventBridge to invoke the function. but I am looking for a Sample C# function handler which is similar to the below.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/tutorial-lifecycle-hook-lambda.html#lambda-create-hello-world-function

var aws = require("aws-sdk");
exports.handler = (event, context, callback) => {}

In the above sample, the event object is passed to the handler function, I am wondering which class to use in c# for the event type. I couldn't find it in Amazon SDK for Dotnet documentation



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source