-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprototyping.d.ts
56 lines (52 loc) · 2.18 KB
/
prototyping.d.ts
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
import { Cpu, Memory } from '@aws-cdk/aws-apprunner-alpha';
import { Duration } from 'aws-cdk-lib';
import { ServiceProps } from 'sst/constructs';
import { ConfigOptions } from 'sst/project';
export interface ProtoConfigOptions extends ConfigOptions {
allowedIps?: string[];
allowedCountries?: string[]; // WAF allowed country list, ISO 3166-2.
}
export interface RedCapConfig extends ProtoConfigOptions {
phpTimezone?: string;
redCapS3Path?: string; // if specified, target an s3 path
redCapLocalVersion?: string; // if specified, refer the local package file
domain?: string;
subdomain?: string;
hostInRoute53: boolean | string; // if string, this will perform a lookup in Route 53 for the provided domain name. If true, it will create a new Hosted Zone in Route 53.
email?: string; // used for AWS appRunner notifications and SES if no domain is provided.
appRunnerConcurrency?: number;
appRunnerMaxSize?: number;
appRunnerMinSize?: number;
autoDeploymentsEnabled?: boolean;
cpu?: Cpu;
memory?: Memory;
cronSecret?: string; // protect cron.php endpoint with a secret parameter https://endpoint/cron.php?secret=<secret>
port?: number;
deployTag?: string; // forces a new AppRunner deployment and tags ECR docker image with this value
rebuildImage?: boolean;
ec2ServerStack?: {
// an EC2 server running the REDCap docker image, used for long running server requests
ec2StackDuration: Duration; // after this time, the EC2 stack will be destroyed
};
ecs?: {
//Override AppRunner deployment and use Amazon ECS Fargate
memory: ServiceProps['memory'];
cpu: ServiceProps['cpu'];
scaling: ServiceProps['scaling'];
};
// The number of additional aurora readers, by deafault 1 reader is added. Use 0 to use single writer/reader
dbReaders?: number;
dbSnapshotId?: string;
generalLogRetention?: ServiceProps['logRetention']; // Optional general log retention period for <ecs fargate, aurora rds, vpc>
bounceNotificationEmail?: string;
}
interface DomainAppConfig {
name: string;
nsRecords: Array<string>;
}
export interface DomainAppsConfig extends ConfigOptions {
apps: Array<DomainAppConfig>;
domain: string;
profile: string;
region: string;
}