-
Notifications
You must be signed in to change notification settings - Fork 4
/
model.ts
62 lines (58 loc) · 2 KB
/
model.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
60
61
62
import { AccountId, IamRoleName } from "../takomo-aws-model"
import {
ConfigSet,
ConfigSetInstruction,
ConfigSetInstructionsHolder,
} from "../takomo-config-sets"
import { CommandRole, Vars } from "../takomo-core"
import {
DeploymentGroupName,
DeploymentGroupPath,
DeploymentStatus,
DeploymentTargetName,
Label,
} from "../takomo-deployment-targets-model"
export interface SchemaConfig {
readonly name: string
readonly [key: string]: unknown
}
export interface DeploymentTargetConfig extends ConfigSetInstructionsHolder {
readonly status: DeploymentStatus
readonly name: DeploymentTargetName
readonly description?: string
readonly vars: Vars
readonly labels: ReadonlyArray<Label>
readonly deploymentRole?: CommandRole
readonly deploymentRoleName?: IamRoleName
readonly bootstrapRole?: CommandRole
readonly bootstrapRoleName?: IamRoleName
readonly accountId?: AccountId
}
export interface DeploymentGroupConfig {
readonly name: DeploymentGroupName
readonly path: DeploymentGroupPath
readonly description?: string
readonly targets: ReadonlyArray<DeploymentTargetConfig>
readonly priority: number
readonly status: DeploymentStatus
readonly vars: Vars
readonly targetsSchema: ReadonlyArray<SchemaConfig>
readonly configSets: ReadonlyArray<ConfigSetInstruction>
readonly bootstrapConfigSets: ReadonlyArray<ConfigSetInstruction>
readonly labels: ReadonlyArray<Label>
readonly children: ReadonlyArray<DeploymentGroupConfig>
readonly deploymentRole?: CommandRole
readonly deploymentRoleName?: IamRoleName
readonly bootstrapRole?: CommandRole
readonly bootstrapRoleName?: IamRoleName
}
export interface DeploymentConfig {
readonly targetsSchema: ReadonlyArray<SchemaConfig>
readonly configSets: ReadonlyArray<ConfigSet>
readonly vars: Vars
readonly deploymentGroups: ReadonlyArray<DeploymentGroupConfig>
readonly deploymentRole?: CommandRole
readonly deploymentRoleName?: IamRoleName
readonly bootstrapRole?: CommandRole
readonly bootstrapRoleName?: IamRoleName
}