-
Notifications
You must be signed in to change notification settings - Fork 4
/
targets-config.ts
56 lines (52 loc) · 1.75 KB
/
targets-config.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 { AccountId, IamRoleName } from "../aws/common/model.js"
import { Vars } from "../common/model.js"
import {
ConfigSet,
ConfigSetInstruction,
ConfigSetInstructionsHolder,
} from "../config-sets/config-set-model.js"
import { CommandRole } from "../takomo-core/command.js"
import {
DeploymentGroupName,
DeploymentGroupPath,
DeploymentStatus,
DeploymentTargetName,
Label,
} from "../targets/targets-model.js"
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 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 labels: ReadonlyArray<Label>
readonly children: ReadonlyArray<DeploymentGroupConfig>
readonly deploymentRole?: CommandRole
readonly deploymentRoleName?: 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
}