Class SnsConfiguration
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.SnsConfiguration
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.services.sns.SnsClientCreates the SNS client.snsSmsSender(software.amazon.awssdk.services.sns.SnsClient client) Creates the sender.
-
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
Creates the sender.- Parameters:
client- SNS client.- Returns:
- the SNS sender.
-