class S3Helper {

    String populateBucketPolicy(final String name,
                                final String policy,
                                final List<String> allowedCidrs,
                                final boolean shared) throws IOException {
        return S3PolicyBuilder.builder()
                .bucketName(name)
                .allowedCidrs(allowedCidrs)
                .shared(shared)
                .build()
                .buildPolicy(policy);
    }

}