/
config.go
34 lines (31 loc) · 1.01 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package controller
type Config struct {
LogLevel string `yaml:"log_level"`
SecretID string `yaml:"secret_id"`
SecretVersionID string `yaml:"secret_version_id"`
AWSAccountID string `yaml:"-"`
Region string
Message string
MessageForSystemUser string `yaml:"message_for_system_user"`
Slack SlackConfig
InitialPasswordLength int `yaml:"initial_password_length"`
WhenLoginProfileExist string `yaml:"when_login_profile_exist"`
DynamoDBTableName string `yaml:"dynamodb_table_name"`
DynamoDBTTL int `yaml:"dynamodb_ttl"`
}
type SlackConfig struct {
ChannelIDForSystemUser string `yaml:"channel_id_for_system_user"`
}
type Param struct {
ConfigFilePath string
LogLevel string
SlackBotAccessToken string
MessageTemplateString string
InitalPasswordLength int
// user filter
// user mapping
// notifier (slack, SES, etc)
// integration (datadog, sentry, etc)
DryRun bool
UserName string
}