-
Notifications
You must be signed in to change notification settings - Fork 721
Expand file tree
/
Copy pathrunners.d.ts
More file actions
53 lines (48 loc) · 1.25 KB
/
runners.d.ts
File metadata and controls
53 lines (48 loc) · 1.25 KB
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
import { DefaultTargetCapacityType, SpotAllocationStrategy } from '@aws-sdk/client-ec2';
import { LambdaRunnerSource } from '../scale-runners/scale-up';
export type RunnerType = 'Org' | 'Repo' | 'Enterprise';
export interface RunnerList {
instanceId: string;
launchTime?: Date;
owner?: string;
type?: string;
repo?: string;
org?: string;
enterprise?: string;
orphan?: boolean;
runnerId?: string;
bypassRemoval?: boolean;
}
export interface RunnerInfo {
instanceId: string;
launchTime?: Date;
owner: string;
type: string;
}
export interface ListRunnerFilters {
runnerType?: RunnerType;
runnerOwner?: string;
environment?: string;
orphan?: boolean;
statuses?: string[];
}
export interface RunnerInputParameters {
environment: string;
runnerType: RunnerType;
runnerOwner: string;
enterpriseSlug?: string;
subnets: string[];
launchTemplateName: string;
ec2instanceCriteria: {
instanceTypes: string[];
targetCapacityType: DefaultTargetCapacityType;
maxSpotPrice?: string;
instanceAllocationStrategy: SpotAllocationStrategy;
};
numberOfRunners: number;
source: LambdaRunnerSource;
amiIdSsmParameterName?: string;
tracingEnabled?: boolean;
onDemandFailoverOnError?: string[];
scaleErrors: string[];
}