Documentation ¶
Overview ¶
Package s3 loads configuration from AWS S3.
It requires following permissions to access object from AWS S3:
- s3:GetObject
Change notification ¶
By default, it's periodically polls the configuration. It also listens to change events by register it to SNS notifier with one of following setups:
- EventBridge with SNS target
- SNS
Only ObjectCreated:* events trigger polling the configuration and other type of events are ignored.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(options *options)
Option configures the a S3 with specific options.
func WithAWSConfig ¶
WithAWSConfig provides the AWS Config for the AWS SDK.
By default, it loads the default AWS Config.
func WithPollInterval ¶
WithPollInterval provides the interval for polling the configuration.
The default interval is 1 minute.
Click to show internal directories.
Click to hide internal directories.