forked from amplify-education/serverless-domain-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
53 lines (52 loc) · 1.48 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
export interface ServerlessInstance { // tslint:disable-line
service: {
service: string
provider: {
stage: string
stackName: string
compiledCloudFormationTemplate: {
Outputs: any,
},
apiGateway: {
restApiId: string,
},
}
custom: {
customDomain: {
domainName: string,
basePath: string | undefined,
stage: string | undefined,
certificateName: string | undefined,
certificateArn: string | undefined,
createRoute53Record: boolean | undefined,
endpointType: string | undefined,
hostedZoneId: string | undefined,
hostedZonePrivate: boolean | undefined,
enabled: boolean | string | undefined,
securityPolicy: string | undefined,
},
},
};
providers: {
aws: {
sdk: {
APIGateway: 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;
}