* Provide the possibility to override this method for an mock implementation
*
* @return AmazonSNSClient
*/
AmazonSNSClient createSNSClient() {
AWSCredentials credentials = new BasicAWSCredentials(configuration.getAccessKey(), configuration.getSecretKey());
AmazonSNSClient client = new AmazonSNSClient(credentials);
if (configuration.getAmazonSNSEndpoint() != null) {
client.setEndpoint(configuration.getAmazonSNSEndpoint());
}
return client;