Class SecurityGroupUtils
java.lang.Object
com.amazonaws.services.ec2.util.SecurityGroupUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandoesSecurityGroupExist(AmazonEC2 ec2, String securityGroupName) Provides a quick answer to whether a security group exists.
-
Constructor Details
-
SecurityGroupUtils
public SecurityGroupUtils()
-
-
Method Details
-
doesSecurityGroupExist
public static boolean doesSecurityGroupExist(AmazonEC2 ec2, String securityGroupName) throws AmazonClientException, AmazonServiceException Provides a quick answer to whether a security group exists.- Parameters:
ec2- the EC2 client to use for making service requestssecurityGroupName- the name of the security group being queried- Throws:
AmazonClientException- 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.AmazonServiceException- If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.
-