forked from kenpachiii/serverless-domain-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
59 lines (57 loc) · 1.57 KB
/
types.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
57
58
59
export interface Domain { // tslint:disable-line
domainName: string;
basePath?: string | undefined;
stage?: string | undefined;
certificateName?: string | undefined;
certificateArn?: string | undefined;
securityPolicy?: string | undefined;
createRoute53Record?: boolean | undefined;
endpointType?: string | undefined;
hostedZoneId?: string | undefined;
hostedZonePrivate?: boolean | undefined;
enabled?: boolean | string | undefined;
websocket?: boolean | string | undefined;
aliasTarget?: string | undefined;
}
export interface ServerlessInstance { // tslint:disable-line
service: {
service: string
provider: {
stage: string
stackName: string
compiledCloudFormationTemplate: {
Outputs: any,
},
apiGateway: {
restApiId: string,
websocketApiId: string,
},
}
custom: {
customDomain: Domain[],
},
};
providers: {
aws: {
sdk: {
APIGateway: any,
ApiGatewayV2: any,
Route53: any,
CloudFormation: any,
ACM: any,
config: {
update(toUpdate: object): void,
},
},
getCredentials(),
getRegion(),
},
};
cli: {
log(str: string, entity?: string),
consoleLog(str: any),
};
}
export interface ServerlessOptions { // tslint:disable-line
stage: string;
}