Documentation ¶
Overview ¶
Package sns provides a notifier that subscribes to a SNS topic that watches change of configuration on AWS.
It Fanout SNS topic to Amazon SQS queues, which requires following permissions:
- sns:Subscribe
- sns:Unsubscribe
- sns:CreateTopic
- sqs:CreateQueue
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier that watches change events on given SNS topic.
To create a new Notifier, call NewNotifier.
func NewNotifier ¶
NewNotifier creates a Notifier with the given SNS topic Name or ARN.
type Option ¶
type Option func(options *options)
Option configures the Notifier with specific options.
func WithAWSConfig ¶
WithAWSConfig provides the AWS Config for the AWS SDK.
By default, it loads the default AWS Config.
func WithLogHandler ¶
WithLogHandler provides the slog.Handler for logs from notifier.
By default, it uses handler from slog.Default().
Click to show internal directories.
Click to hide internal directories.