java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.SnsConfiguration

@Configuration(proxyBeanMethods=false) @Profile("sns") public class SnsConfiguration extends Object
Wires the Amazon SNS sender when the sns profile is active. Region and credentials come from the AWS default provider chains (environment, profile, instance role); nothing is configured here.
  • Constructor Details

    • SnsConfiguration

      public SnsConfiguration()
  • Method Details

    • snsClient

      @Bean public software.amazon.awssdk.services.sns.SnsClient snsClient()
      Creates the SNS client.
      Returns:
      a client using the default region and credentials chains.
    • snsSmsSender

      @Bean public SmsSender snsSmsSender(software.amazon.awssdk.services.sns.SnsClient client)
      Creates the sender.
      Parameters:
      client - SNS client.
      Returns:
      the SNS sender.