AWSAutoScalingScalingPolicy

@interface AWSAutoScalingScalingPolicy

Describes a scaling policy.

  • The adjustment type, which specifies how ScalingAdjustment is interpreted. The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable adjustmentType;

    Swift

    var adjustmentType: String? { get set }
  • The CloudWatch alarms related to the policy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSArray<AWSAutoScalingAlarm *> *_Nullable alarms;

    Swift

    var alarms: [AWSAutoScalingAlarm]? { get set }
  • The name of the Auto Scaling group.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSString *_Nullable autoScalingGroupName;

    Swift

    var autoScalingGroupName: String? { get set }
  • The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable cooldown;

    Swift

    var cooldown: NSNumber? { get set }
  • Indicates whether the policy is enabled (true) or disabled (false).

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable enabled;

    Swift

    var enabled: NSNumber? { get set }
  • The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSNumber *_Nullable estimatedInstanceWarmup;

    Swift

    var estimatedInstanceWarmup: NSNumber? { get set }
  • The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSString *_Nullable metricAggregationType;

    Swift

    var metricAggregationType: String? { get set }
  • The minimum number of instances to scale. If the value of AdjustmentType is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity of the Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSNumber *_Nullable minAdjustmentMagnitude;

    Swift

    var minAdjustmentMagnitude: NSNumber? { get set }
  • Available for backward compatibility. Use MinAdjustmentMagnitude instead.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable minAdjustmentStep;

    Swift

    var minAdjustmentStep: NSNumber? { get set }
  • The Amazon Resource Name (ARN) of the policy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable policyARN;

    Swift

    var policyARN: String? { get set }
  • The name of the scaling policy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable policyName;

    Swift

    var policyName: String? { get set }
  • The policy type. The valid values are SimpleScaling, StepScaling, and TargetTrackingScaling.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nullable policyType;

    Swift

    var policyType: String? { get set }
  • The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSNumber *_Nullable scalingAdjustment;

    Swift

    var scalingAdjustment: NSNumber? { get set }
  • A set of adjustments that enable you to scale based on the size of the alarm breach.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        NSArray<AWSAutoScalingStepAdjustment *> *_Nullable stepAdjustments;

    Swift

    var stepAdjustments: [AWSAutoScalingStepAdjustment]? { get set }
  • A target tracking scaling policy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        AWSAutoScalingTargetTrackingConfiguration
            *_Nullable targetTrackingConfiguration;

    Swift

    var targetTrackingConfiguration: AWSAutoScalingTargetTrackingConfiguration? { get set }