Provides a quick answer to whether a security group exists.
the EC2 client to use for making service requests
the name of the security group being queried
If any internal errors are encountered inside the client
while attempting to make the request or handle the response.
For example if a network connection is not available.
If an error response is returned by AmazonEC2 indicating
either a problem with the data in the request, or a server