class ElastiCacheRaiderImpl implements ElastiCacheRaider {

    @Override
    public List<String> getSecurityGroups(String clusterName) {
        List<String> secGroupIds = elastiCacheDelegator.getAmazonElastiCache().describeCacheClusters(new DescribeCacheClustersRequest()
                .withCacheClusterId(clusterName))
                .getCacheClusters()
                .get(0)
                .getSecurityGroups()
                .stream()
                .map(SecurityGroupMembership::getSecurityGroupId)
                .collect(Collectors.toList());

        return secGroupIds;

    }

    public  ElastiCacheRaiderImpl();

}