forked from BlueBlock/MoonMail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paths-templates.json
executable file
·196 lines (196 loc) · 6.05 KB
/
s-templates.json
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"logsStatementTemplate": {
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:${region}:*:*"
},
"sqsStatementTemplate": {
"Effect": "Allow",
"Action": [
"sqs:ChangeMessageVisibility",
"sqs:ChangeMessageVisibilityBatch",
"sqs:DeleteMessage",
"sqs:DeleteMessageBatch",
"sqs:GetQueueAttributes",
"sqs:GetQueueUrl",
"sqs:ReceiveMessage",
"sqs:CreateQueue",
"sqs:SendMessage",
"sqs:PurgeQueue"
],
"Resource": "arn:aws:sqs:${region}:*:*"
},
"sesStatementTemplate": {
"Effect": "Allow",
"Action": [
"ses:SendEmail",
"ses:SendRawEmail"
],
"Resource": "*"
},
"kinesisStatementTemplate": {
"Effect": "Allow",
"Action": [
"kinesis:PutRecord",
"kinesis:GetRecords",
"kinesis:GetShardIterator",
"kinesis:DescribeStream",
"kinesis:ListStreams"
],
"Resource": "*"
},
"lambdaStatementTemplate": {
"Effect": "Allow",
"Action": [
"lambda:InvokeAsync",
"lambda:InvokeFunction",
"dynamodb:BatchGetItem",
"dynamodb:BatchWriteItem",
"dynamodb:DeleteItem",
"dynamodb:GetItem",
"dynamodb:GetRecords",
"dynamodb:PutItem",
"dynamodb:Query",
"dynamodb:Scan",
"dynamodb:UpdateItem",
"sns:Publish",
"cloudwatch:PutMetricAlarm"
],
"Resource": [
"*"
]
},
"sendEmailsTopic": "${project}-${stage}-sendEmails",
"emailAdminsTopic": "${project}-${stage}-emailAdmins",
"sentEmailsTopic": "${project}-${stage}-sentEmails",
"emailNotificationsTopic": "${project}-${stage}-emailNotifications",
"precompileCampaignTopic": "${project}-${stage}-precompileCampaign",
"precompileEmailTopic": "${project}-${stage}-precompileEmail",
"sendCampaignTopic": "${project}-${stage}-sendCampaign",
"linksTable": "${project}-${stage}-links",
"opensTable": "${project}-${stage}-opens",
"clicksTable": "${project}-${stage}-clicks",
"opensReportTable": "${project}-${stage}-opens-report",
"clicksReportTable": "${project}-${stage}-clicks-report",
"scheduledCampaignsTable": "${project}-${stage}-scheduledCampaigns",
"campaignsTable": "${project}-${stage}-campaigns",
"campaignsSentAtIndex": "${project}-${stage}-campaignsSentAtIndex",
"campaignsScheduledAtIndex": "${project}-${stage}-campaignsScheduledAtIndex",
"recipientsEmailIndex": "${project}-${stage}-recipientsEmailIndex",
"recipientsStatusIndex": "${project}-${stage}-recipientsStatusIndex",
"usersTable": "${project}-${stage}-users",
"sentEmailsTable": "${project}-${stage}-sentEmails",
"listsTable": "${project}-${stage}-lists",
"recipientsTable": "${project}-${stage}-recipients",
"reportsTable": "${project}-${stage}-reports",
"templatesTable": "${project}-${stage}-templates",
"attachRecipientsTopic": "${project}-${stage}-attachRecipients",
"attachListRecipientsTopic": "${project}-${stage}-attachListRecipients",
"attachRecipientsCountTopic": "${project}-${stage}-attachRecipientsCount",
"updateUserReputationTopic": "${project}-${stage}-updateUserReputation",
"attachSenderTopic": "${project}-${stage}-attachSender",
"updateUserRepuationTopic": "${project}-${stage}-updateUserReputation",
"updateCampaignTopic": "${project}-${stage}-updateCampaign",
"unsubscribedRecipientTopic": "${project}-${stage}-unsubscribedRecipient",
"updateListImportStatusTopic": "${project}-${stage}-updateListImportStatus",
"staticDataBucket": "static.moonmail.${stage}.${region}",
"recipientsImportBucket": "recipients.moonmail.${stage}.${region}",
"listsExportBucket": "list-exports.moonmail.${stage}.${region}",
"responses": {
"302": {
"statusCode": "302",
"selectionPattern": "http.*",
"responseParameters": {
"method.response.header.Location" : "integration.response.body.errorMessage"
},
"responseModels": {
"application/json": "Empty"
},
"responseTemplates": {
"application/json": "$input.path('$')",
"application/x-www-form-urlencoded": "$input.path('$')"
}
},
"400": {
"statusCode": "400",
"selectionPattern": ".*\"status\":400.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"401": {
"statusCode": "401",
"selectionPattern": ".*\"status\":401.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"403": {
"statusCode": "403",
"selectionPattern": ".*\"status\":403.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"404": {
"statusCode": "404",
"selectionPattern": ".*\"status\":404.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"409": {
"statusCode": "409",
"selectionPattern": ".*\"status\":409.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"500": {
"statusCode": "500",
"selectionPattern": ".*\"status\":500.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"503": {
"statusCode": "503",
"selectionPattern": ".*\"status\":503.*",
"responseParameters": {},
"responseTemplates": {
"application/json": "$input.path('$.errorMessage')"
}
},
"default": {
"statusCode": "200",
"responseModels": {
"application/json": "Empty"
},
"responseTemplates": {
"application/json": ""
}
}
},
"corsSettings": {
"allowOrigin": "*",
"allowHeaders": [
"X-Amz-Security-Token",
"Authorization",
"Content-Type",
"X-Amz-Date",
"X-Api-Key",
"authToken",
"Accept"
]
}
}