It should not be possible to delete a Lambda Function that belongs to a CloudFormation stack. This was overlooked during #190.
To Reproduce
Create a CloudFormation Stack that contains a Lambda Function
Go to the AWS Explorer
Open the CloudFormation Stack and right click on the function. Notice there is no Delete menu item (good)
Locate the "Lambda Functions" node for the same function, and right click on it. Notice there is a Delete menu item (bad). Delete the Lambda Function
Function gets deleted
Expected behavior
It should not be possible to delete the function.
Ideal: the context menu does not appear on these nodes
Next best: an error message is shown indicating that the function cannot be deleted because it is associated with (insert CloudFormation Stack name here)
Desktop (please complete the following information):
Describe the bug
It should not be possible to delete a Lambda Function that belongs to a CloudFormation stack. This was overlooked during #190.
To Reproduce
Expected behavior
It should not be possible to delete the function.
Desktop (please complete the following information):