@pattform/api-kit 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FormComponent.d.ts +0 -1
- package/dist/FormComponent.js +0 -29
- package/package.json +1 -1
package/dist/FormComponent.d.ts
CHANGED
package/dist/FormComponent.js
CHANGED
|
@@ -127,35 +127,6 @@ class FormComponent extends pulumi.ComponentResource {
|
|
|
127
127
|
provider: awsProvider,
|
|
128
128
|
parent: this,
|
|
129
129
|
});
|
|
130
|
-
const alarmTopic = new aws.sns.Topic(`${baseName}-alarms-${env}`, {}, {
|
|
131
|
-
provider: awsProvider,
|
|
132
|
-
parent: this,
|
|
133
|
-
});
|
|
134
|
-
// The email subscription must be confirmed once from the inbox.
|
|
135
|
-
new aws.sns.TopicSubscription(`${baseName}-alarm-email-${env}`, {
|
|
136
|
-
topic: alarmTopic.arn,
|
|
137
|
-
protocol: "email",
|
|
138
|
-
endpoint: args.alarmEmail || "contact@pattform.io",
|
|
139
|
-
}, {
|
|
140
|
-
provider: awsProvider,
|
|
141
|
-
parent: this,
|
|
142
|
-
});
|
|
143
|
-
new aws.cloudwatch.MetricAlarm(`${baseName}-errors-${env}`, {
|
|
144
|
-
namespace: "AWS/Lambda",
|
|
145
|
-
metricName: "Errors",
|
|
146
|
-
dimensions: { FunctionName: this.lambda.name },
|
|
147
|
-
statistic: "Sum",
|
|
148
|
-
period: 300,
|
|
149
|
-
evaluationPeriods: 1,
|
|
150
|
-
comparisonOperator: "GreaterThanOrEqualToThreshold",
|
|
151
|
-
threshold: 1,
|
|
152
|
-
treatMissingData: "notBreaching",
|
|
153
|
-
alarmDescription: `Form endpoint ${baseName} is returning errors`,
|
|
154
|
-
alarmActions: [alarmTopic.arn],
|
|
155
|
-
}, {
|
|
156
|
-
provider: awsProvider,
|
|
157
|
-
parent: this,
|
|
158
|
-
});
|
|
159
130
|
this.endpoint = this.functionUrl.functionUrl;
|
|
160
131
|
this.turnstileSiteKey = pulumi.output(turnstileSiteKey);
|
|
161
132
|
this.registerOutputs({
|