Created
January 29, 2023 13:38
-
-
Save qmaruf/50c4d3ffabeee233d89043ad169816f4 to your computer and use it in GitHub Desktop.
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
def lambda_function_exist(function_name): | |
try: | |
lambda_client.get_function(FunctionName=function_name) | |
return True | |
except lambda_client.exceptions.ResourceNotFoundException: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment