class RDSRaiderImpl implements RDSRaider {

    @Override
    public List<String> getSecurityGroups(String dbName) {
        List<String> secGroupIds = new ArrayList<String>();
        List<VpcSecurityGroupMembership> securityGroupMemberships = rdsDelegator.getAmazonRds().describeDBInstances(new DescribeDBInstancesRequest().withDBInstanceIdentifier(dbName)).getDBInstances().get(0).getVpcSecurityGroups();
        securityGroupMemberships.forEach(securityGroupMembership -> secGroupIds.add(securityGroupMembership.getVpcSecurityGroupId()));
        return secGroupIds;
    }

    public  RDSRaiderImpl();

}