-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
dependencies { | ||
implementation(project(":domain")) | ||
compileOnly("org.springframework:spring-tx") | ||
implementation(platform("io.awspring.cloud:spring-cloud-aws-dependencies:3.0.3")) | ||
implementation("io.awspring.cloud:spring-cloud-aws-starter-sns") | ||
} |
11 changes: 11 additions & 0 deletions
11
out-message/src/main/kotlin/gloddy/sns/config/SnsConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
package gloddy.sns.config | ||
|
||
import io.awspring.cloud.sns.core.TopicArnResolver | ||
import io.awspring.cloud.sns.core.TopicsListingTopicArnResolver | ||
import org.springframework.boot.context.properties.EnableConfigurationProperties | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import software.amazon.awssdk.services.sns.SnsClient | ||
|
||
@Configuration | ||
@EnableConfigurationProperties(SnsProperties::class) | ||
class SnsConfig { | ||
|
||
@Bean | ||
fun topicArnResolver(snsClient: SnsClient): TopicArnResolver { | ||
return TopicsListingTopicArnResolver(snsClient) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters