@@ -20,6 +20,7 @@ import (
2020 "time"
2121
2222 "github.com/pkg/errors"
23+ "github.com/prometheus/common/sigv4"
2324
2425 commoncfg "github.com/prometheus/common/config"
2526)
@@ -589,25 +590,13 @@ func (c *PushoverConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
589590 return nil
590591}
591592
592- // SigV4Config is the configuration for signing remote write requests with
593- // AWS's SigV4 verification process. Empty values will be retrieved using the
594- // AWS default credentials chain.
595- // TODO: Move to common.
596- type SigV4Config struct {
597- Region string `yaml:"region,omitempty"`
598- AccessKey string `yaml:"access_key,omitempty"`
599- SecretKey Secret `yaml:"secret_key,omitempty"`
600- Profile string `yaml:"profile,omitempty"`
601- RoleARN string `yaml:"role_arn,omitempty"`
602- }
603-
604593type SNSConfig struct {
605594 NotifierConfig `yaml:",inline" json:",inline"`
606595
607596 HTTPConfig * commoncfg.HTTPClientConfig `yaml:"http_config,omitempty" json:"http_config,omitempty"`
608597
609598 APIUrl string `yaml:"api_url,omitempty" json:"api_url,omitempty"`
610- Sigv4 SigV4Config `yaml:"sigv4" json:"sigv4"`
599+ Sigv4 sigv4. SigV4Config `yaml:"sigv4" json:"sigv4"`
611600 TopicARN string `yaml:"topic_arn,omitempty" json:"topic_arn,omitempty"`
612601 PhoneNumber string `yaml:"phone_number,omitempty" json:"phone_number,omitempty"`
613602 TargetARN string `yaml:"target_arn,omitempty" json:"target_arn,omitempty"`
0 commit comments