MousaZeidBaker / aws-lambda-typing

Python type hints for AWS Lambda
MIT License
106 stars 19 forks source link

feat: add EC2 Auto Scaling Group custom termination policy event #94

Closed yukinobu closed 1 year ago

yukinobu commented 1 year ago

In EC2 Auto Scaling Groups (ASG), we can set a custom termination policy. When doing so, we need to write a Lambda function to handle the termination events. The format of the event to this Lambda is defined by AWS.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/lambda-custom-termination-policy.html

I've created a "type" that corresponds to this event. I'd be grateful if you could consider merging it.

MousaZeidBaker commented 1 year ago

Thanks for your contribution. One tiny thing before we merge, could you add EC2ASGCustomTerminationPolicyEvent to the list of events in the README here

yukinobu commented 1 year ago

Thank you for taking the time to review. I've fixed my commit. Please check again at your convenience.