-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
80 lines (74 loc) · 1.99 KB
/
config.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from enum import Enum
TEMPLATES = {
"REJUVE_DATA_EXPORT": {
"TEMPLATE_NAME": "rejuveDataExport",
"SUBJECT": "Your Rejuve Data Export"
},
"SNET_WEBSITE_INFO": {
"TEMPLATE_NAME": "snetWebsiteInfo",
"SUBJECT": "Inquiry from the website"
}
}
DB_DETAILS = {
"driver": "mysql+pymysql",
"host": "localhost",
"user": "unittest_root",
"password": "unittest_pwd",
"name": "notification_unittest_db",
"port": 3306
}
class AllowedActions(Enum):
EMAIL = "EMAIL"
SLACK = "SLACK"
RegisteredApplication = {
"PUBLISHER_PORTAL": {
AllowedActions.EMAIL.value: {
"email-addresses": ["[email protected]"],
"template": ""
}
},
"BRIDGE": {
AllowedActions.EMAIL.value: {
"email-addresses": ["[email protected]"],
"template": ""
}
},
"TOKEN_TRANSFER": {
AllowedActions.EMAIL.value: {
"email-addresses": ["[email protected]"],
"template": ""
}
}
}
NOTIFICATION_ARN = ""
AWS_REGION = "us-east-1"
ALERT_CONFIG = {
"rt-v2": {
"/aws/lambda/converterservices-rt-v2-": {
"default": {
"slack": [
{
"webhook_url": "",
"imageUrl": "https://d2adhoc2vrfpqj.cloudfront.net/2020/02/1zBSAFh5KIA72dmf1j9vfZQ.jpeg",
"buttonName": "Open Cloudwatch",
"buttonUrl": ""
}
]
}
}
},
"mt-v2": {
"/aws/lambda/converterservices-mt-v2": {
"default": {
"slack": [
{
"webhook_url": "",
"imageUrl": "https://d2adhoc2vrfpqj.cloudfront.net/2020/02/1zBSAFh5KIA72dmf1j9vfZQ.jpeg",
"buttonName": "Open Cloudwatch",
"buttonUrl": ""
}
]
}
}
}
}