Documentation
¶
Index ¶
Constants ¶
View Source
const (
Type scaler.Type = "aws_ec2_asg"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceDistribution ¶
type InstanceDistribution struct {
OnDemandAllocationStrategy *string `koanf:"on_demand_allocation_strategy"`
OnDemandBaseCapacity *int64 `koanf:"on_demand_base_capacity"`
OnDemandPercentAboveBaseCapacity *int64 `koanf:"on_demand_percentage_above_base_capacity"`
SpotAllocationStrategy *string `koanf:"spot_allocation_strategy"`
SpotInstancePools *int64 `koanf:"spot_instance_pools"`
SpotMaxPrice *string `koanf:"spot_max_price"`
}
type LaunchTemplate ¶
type LaunchTemplate struct {
LaunchTemplateSpecification *LaunchTemplateSpecification `koanf:"launch_template_specification"`
Overrides []*LaunchTemplateOverrides `koanf:"overrides"`
}
type LaunchTemplateOverrides ¶
type LaunchTemplateOverrides struct {
InstanceType *string `koanf:"instance_type" json:"instance_type"`
LaunchTemplateSpecification *LaunchTemplateSpecification `koanf:"launch_template_specification" json:"launch_template_specification"`
WeightedCapacity *string `koanf:"weighted_capacity" json:"weighted_capacity"`
}
type MixedInstancesPolicy ¶
type MixedInstancesPolicy struct {
InstanceDistribution *InstanceDistribution `koanf:"instances_distribution"`
LaunchTemplate *LaunchTemplate `koanf:"launch_template"`
}
type Scaler ¶
type Scaler struct {
ID string `koanf:"id"`
Region *string `koanf:"region"`
AllowCreate bool `koanf:"allow_create"`
DisableScaleIn *bool `koanf:"disable_scale_in"`
DisableScaleOut *bool `koanf:"disable_scale_out"`
MinSize *int64 `koanf:"min_size"`
MaxSize *int64 `koanf:"max_size"`
CapacityRebalance *bool `koanf:"capacity_rebalance"`
DefaultCooldown *int64 `koanf:"default_cooldown"`
VpcZoneIdentifier []string `koanf:"vpc_zone_identifier"`
PlacementGroup *string `koanf:"placement_group"`
Tags []ASGTag `koanf:"tags"`
MixedInstancesPolicy *MixedInstancesPolicy `koanf:"mixed_instances_policy"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.