class SnsConfiguration {

  @Bean
  AmazonSNSAsync amazonSNS(ListenerConfig config, AWSCredentialsProvider awsCredentialsProvider) {
    return AmazonSNSAsyncClient.asyncBuilder()
        .withCredentials(awsCredentialsProvider)
        .withRegion(config.getRegion())
        .build();
  }

}