AWSAutoScalingTargetTrackingConfiguration
Objective-C
@interface AWSAutoScalingTargetTrackingConfiguration
Swift
class AWSAutoScalingTargetTrackingConfiguration
Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto Scaling.
Required parameters: [TargetValue]
-
A customized metric. You must specify either a predefined metric or a customized metric.
Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingCustomizedMetricSpecification *_Nullable customizedMetricSpecification;
Swift
var customizedMetricSpecification: AWSAutoScalingCustomizedMetricSpecification? { get set }
-
Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn’t remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. The default is
false
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable disableScaleIn;
Swift
var disableScaleIn: NSNumber? { get set }
-
A predefined metric. You must specify either a predefined metric or a customized metric.
Declaration
Objective-C
@property (nonatomic, strong) AWSAutoScalingPredefinedMetricSpecification *_Nullable predefinedMetricSpecification;
Swift
var predefinedMetricSpecification: AWSAutoScalingPredefinedMetricSpecification? { get set }
-
The target value for the metric.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable targetValue;
Swift
var targetValue: NSNumber? { get set }