Skip to content

Provide a securityGroupExists(String name) method similar to the S3 bucketExists() one #93

@axelfontaine

Description

@axelfontaine

Currently checking if a security group exists, one must catch an Exception:

try {
    amazonEC2.describeSecurityGroups(new DescribeSecurityGroupsRequest().withGroupNames(ec2SecurityGroup));
    return; //Success, it already exists.
} catch (AmazonServiceException e) {
    //The security group doesn't exist.
}

Having a dedicated method would make this much better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions