-
Notifications
You must be signed in to change notification settings - Fork 55
/
consts.go
executable file
·86 lines (69 loc) · 3.69 KB
/
consts.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
package elastigroup_aws
import "github.com/spotinst/terraform-provider-spotinst/spotinst/commons"
type BalancerType string
const (
BalancerTypeClassic BalancerType = "CLASSIC"
BalancerTypeTargetGroup BalancerType = "TARGET_GROUP"
BalancerTypeMultaiTargetSet BalancerType = "MULTAI_TARGET_SET"
)
type TagField string
const (
TagKey TagField = "key"
TagValue TagField = "value"
)
const (
ResourceOnRoll commons.LogFormat = "onRoll() -> started for group %v..."
)
const (
Name commons.FieldName = "name"
Description commons.FieldName = "description"
Product commons.FieldName = "product"
MaxSize commons.FieldName = "max_size"
MinSize commons.FieldName = "min_size"
DesiredCapacity commons.FieldName = "desired_capacity"
CapacityUnit commons.FieldName = "capacity_unit"
HealthCheckGracePeriod commons.FieldName = "health_check_grace_period"
HealthCheckType commons.FieldName = "health_check_type"
HealthCheckUnhealthyDurationBeforeReplacement commons.FieldName = "health_check_unhealthy_duration_before_replacement"
Region commons.FieldName = "region"
SubnetIDs commons.FieldName = "subnet_ids"
AvailabilityZones commons.FieldName = "availability_zones"
PreferredAvailabilityZones commons.FieldName = "preferred_availability_zones"
ElasticLoadBalancers commons.FieldName = "elastic_load_balancers"
TargetGroupArns commons.FieldName = "target_group_arns"
MultaiTargetSets commons.FieldName = "multai_target_sets"
MultaiTargetSetID commons.FieldName = "target_set_id"
MultaiBalancerID commons.FieldName = "balancer_id"
Tags commons.FieldName = "tags"
RevertToSpot commons.FieldName = "revert_to_spot"
PerformAt commons.FieldName = "perform_at"
TimeWindow commons.FieldName = "time_windows"
// ***********************************************************************
// ********************* Spotinst Unique Properties **********************
// ***********************************************************************
ElasticIps commons.FieldName = "elastic_ips"
Signal commons.FieldName = "signal"
SignalName commons.FieldName = "name"
SignalTimeout commons.FieldName = "timeout"
UpdatePolicy commons.FieldName = "update_policy"
ShouldResumeStateful commons.FieldName = "should_resume_stateful"
AutoApplyTags commons.FieldName = "auto_apply_tags"
ShouldRoll commons.FieldName = "should_roll"
RollConfig commons.FieldName = "roll_config"
BatchSizePercentage commons.FieldName = "batch_size_percentage"
GracePeriod commons.FieldName = "grace_period"
Strategy commons.FieldName = "strategy"
Action commons.FieldName = "action"
ShouldDrainInstances commons.FieldName = "should_drain_instances"
BatchMinHealthyPercentage commons.FieldName = "batch_min_healthy_percentage"
OnFailure commons.FieldName = "on_failure"
ActionType commons.FieldName = "action_type"
ShouldHandleAllBatches commons.FieldName = "should_handle_all_batches"
BatchNum commons.FieldName = "batch_num"
DrainingTimeout commons.FieldName = "draining_timeout"
ShouldDecrementTargetCapacity commons.FieldName = "should_decrement_target_capacity"
WaitForCapacity commons.FieldName = "wait_for_capacity"
WaitForCapacityTimeout commons.FieldName = "wait_for_capacity_timeout"
WaitForRollPct commons.FieldName = "wait_for_roll_percentage"
WaitForRollTimeout commons.FieldName = "wait_for_roll_timeout"
)