@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    public SmsSender smsSender(final CasConfigurationProperties casProperties) {
        val sns = casProperties.getSmsProvider().getSns();
        val clientBuilder = SnsClient.builder();
        AmazonClientConfigurationBuilder.prepareSyncClientBuilder(clientBuilder,
            ChainingAWSCredentialsProvider.getInstance(sns.getCredentialAccessKey(), sns.getCredentialSecretKey(), sns.getProfilePath(), sns.getProfileName()), sns);
        return new AmazonSimpleNotificationServiceSmsSender(clientBuilder.build(), sns);
    }
This is {@link CasAmazonSimpleNotificationServiceSmsAutoConfiguration}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-sms-aws-sns/src/main/java/org/apereo/cas/config/CasAmazonSimpleNotificationServiceSmsAutoConfiguration.java