Versions in this module Expand all Collapse all v1 v1.0.0 Sep 25, 2024 Changes in this version + type AutoScalingAPIClient interface + DescribeAutoScalingInstances func(context.Context, *autoscaling.DescribeAutoScalingInstancesInput, ...) (*autoscaling.DescribeAutoScalingInstancesOutput, error) + SetInstanceProtection func(context.Context, *autoscaling.SetInstanceProtectionInput, ...) (*autoscaling.SetInstanceProtectionOutput, error) + type ScaleInProtector struct + AutoScaling AutoScalingAPIClient + AutoScalingGroupName string + IdleAtLeast time.Duration + InstanceId string + Logger *log.Logger + func (s *ScaleInProtector) IsProtectedFromScaleIn() bool + func (s *ScaleInProtector) SignalActive(id string) + func (s *ScaleInProtector) SignalIdle(id string) + func (s *ScaleInProtector) StartMonitoring(ctx context.Context) (err error)