forked from aliyun/terraform-provider-alicloud
/
extension_ess.go
95 lines (70 loc) · 1.7 KB
/
extension_ess.go
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package alicloud
const UserId = "userId"
const ScalingGroup = "scaling_group"
const GroupId = "groupId"
type BatchSize int
const (
AttachDetachLoadbalancersBatchsize = BatchSize(5)
AttachDetachDbinstancesBatchsize = BatchSize(5)
)
type ComparisonOperator string
const (
Gt = ComparisonOperator(">")
Gte = ComparisonOperator(">=")
Lt = ComparisonOperator("<")
Lte = ComparisonOperator("<=")
)
type Statistics string
const (
Avg = Statistics("Average")
Min = Statistics("Minimum")
Max = Statistics("Maximum")
)
type Period int
const (
OneMinite = Period(60)
TwoMinite = Period(120)
FiveMinite = Period(300)
FifteenMinite = Period(900)
)
type MetricType string
const (
System = MetricType("system")
Custom = MetricType("custom")
)
type MaxItems int
const (
MaxScalingConfigurationInstanceTypes = MaxItems(10)
)
type ActionResult string
const (
Continue = ActionResult("CONTINUE")
Abandon = ActionResult("ABANDON")
)
type LifecycleTransition string
const (
ScaleOut = LifecycleTransition("SCALE_OUT")
ScaleIn = LifecycleTransition("SCALE_IN")
)
type AdjustmentType string
const (
QuantityChangeInCapacity = AdjustmentType("QuantityChangeInCapacity")
PercentChangeInCapacity = AdjustmentType("PercentChangeInCapacity")
TotalCapacity = AdjustmentType("TotalCapacity")
)
type RecurrenceType string
const (
Daily = RecurrenceType("Daily")
Weekly = RecurrenceType("Weekly")
Monthly = RecurrenceType("Monthly")
)
type InstanceCreationType string
const (
AutoCreated = InstanceCreationType("AutoCreated")
Attached = InstanceCreationType("Attached")
)
type MultiAzPolicy string
const (
Priority = MultiAzPolicy("PRIORITY")
Balance = MultiAzPolicy("BALANCE")
)