-
Notifications
You must be signed in to change notification settings - Fork 11
/
UpdatePolicy.dhall
43 lines (37 loc) · 1.48 KB
/
UpdatePolicy.dhall
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
let JSON = (./Prelude.dhall).JSON
let CodeDeployPolicyType =
{ AfterAllowTrafficHook : Optional JSON.Type
, ApplicationName : JSON.Type
, BeforeAllowTrafficHook : Optional JSON.Type
, DeploymentGroupName : JSON.Type
}
let ScheduledActionType =
{ IgnoreUnmodifiedGroupSizeProperties : Optional Bool }
let RollineUpdateType =
{ MaxBatchSize : Optional Integer
, MinInstancesInService : Optional Integer
, MinSuccessfulInstancesPercent : Optional Integer
, PauseTime : Optional Text
, SuspendProcesses : Optional (List JSON.Type)
, WaitOnResourceSignals : Optional Bool
}
let ReplacingUpdateType = { WillReplace : Optional Bool }
let Policy =
{ Type =
{ AutoScalingReplacingUpdate : Optional ReplacingUpdateType
, AutoScalingRollingUpdate : Optional RollineUpdateType
, AutoScalingScheduledAction : Optional ScheduledActionType
, UseOnlineResharding : Optional Bool
, EnableVersionUpgrade : Optional Bool
, CodeDeployLambdaAliasUpdate : Optional CodeDeployPolicyType
}
, default =
{ AutoScalingReplacingUpdate = None ReplacingUpdateType
, AutoScalingRollingUpdate = None RollineUpdateType
, AutoScalingScheduledAction = None ScheduledActionType
, UseOnlineResharding = None Bool
, EnableVersionUpgrade = None Bool
, CodeDeployLambdaAliasUpdate = None CodeDeployPolicyType
}
}
in Policy