JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.ec2.util

Class SecurityGroupUtils



  • public class SecurityGroupUtils
    extends Object 
    • Constructor Detail

      • SecurityGroupUtils

        public SecurityGroupUtils()
    • Method Detail

      • 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 requests
        securityGroupName - 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.
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /