Documentation ¶
Overview ¶
Package appconfig loads configuration from AWS AppConfig.
It requires following permissions to access AWS AppConfig:
- appconfig:StartConfigurationSession
- appconfig:GetLatestConfiguration
If change notification is enabled, it also requires following permissions:
- appconfig:GetApplication
- appconfig:GetEnvironment
Change notification ¶
By default, it periodically polls the configuration only. It also listens to change events by register it to SNS notifier with one of following extensions:
- EventBridge extension With SNS target
- SNS extension
Only ON_DEPLOYMENT_ROLLED_BACK 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 AppConfig ¶
type AppConfig struct {
// contains filtered or unexported fields
}
AppConfig is a Provider that loads configuration from AWS AppConfig.
To create a new AppConfig, call New.
type Option ¶
type Option func(options *options)
Option configures the a AppConfig 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 minimum interval required by AWS AppConfig SDK is 15 seconds.
The default interval is 1 minute.