@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={software.amazon.awssdk.services.sns.SnsClient.class,io.awspring.cloud.sns.core.SnsTemplate.class}) @EnableConfigurationProperties(value=SnsProperties.class) @AutoConfigureAfter(value={CredentialsProviderAutoConfiguration.class,RegionProviderAutoConfiguration.class}) @ConditionalOnProperty(name="spring.cloud.aws.sns.enabled", havingValue="true", matchIfMissing=true) public class SnsAutoConfiguration extends Object
Auto-configuration for SNS integration.| Constructor and Description |
|---|
SnsAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
software.amazon.awssdk.services.sns.SnsClient |
snsClient(SnsProperties properties,
AwsClientBuilderConfigurer awsClientBuilderConfigurer,
ObjectProvider<AwsClientCustomizer<software.amazon.awssdk.services.sns.SnsClientBuilder>> configurer) |
SnsTemplate |
snsTemplate(software.amazon.awssdk.services.sns.SnsClient snsClient,
Optional<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
Optional<TopicArnResolver> topicArnResolver) |
@ConditionalOnMissingBean @Bean public software.amazon.awssdk.services.sns.SnsClient snsClient(SnsProperties properties, AwsClientBuilderConfigurer awsClientBuilderConfigurer, ObjectProvider<AwsClientCustomizer<software.amazon.awssdk.services.sns.SnsClientBuilder>> configurer)
@ConditionalOnMissingBean @Bean public SnsTemplate snsTemplate(software.amazon.awssdk.services.sns.SnsClient snsClient, Optional<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, Optional<TopicArnResolver> topicArnResolver)
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.