ScalingPolicy
public struct ScalingPolicy : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
Declaration
Swift
public let adjustmentType: String?
-
The CloudWatch alarms related to the policy.
Declaration
Swift
public let alarms: [Alarm]?
-
The name of the Auto Scaling group.
Declaration
Swift
public let autoScalingGroupName: String?
-
The duration of the policy’s cooldown period, in seconds.
Declaration
Swift
public let cooldown: Int?
-
Indicates whether the policy is enabled (true) or disabled (false).
Declaration
Swift
public let enabled: Bool?
-
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
Declaration
Swift
public let estimatedInstanceWarmup: Int?
-
The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.
Declaration
Swift
public let metricAggregationType: String?
-
The minimum value to scale by when the adjustment type is PercentChangeInCapacity.
Declaration
Swift
public let minAdjustmentMagnitude: Int?
-
Available for backward compatibility. Use MinAdjustmentMagnitude instead.
Declaration
Swift
public let minAdjustmentStep: Int?
-
The Amazon Resource Name (ARN) of the policy.
Declaration
Swift
public let policyARN: String?
-
The name of the scaling policy.
Declaration
Swift
public let policyName: String?
-
One of the following policy types: TargetTrackingScaling StepScaling SimpleScaling (default) For more information, see Target Tracking Scaling Policies and Step and Simple Scaling Policies in the Amazon EC2 Auto Scaling User Guide.
Declaration
Swift
public let policyType: String?
-
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
Swift
public let scalingAdjustment: Int?
-
A set of adjustments that enable you to scale based on the size of the alarm breach.
Declaration
Swift
public let stepAdjustments: [StepAdjustment]?
-
A target tracking scaling policy.
Declaration
Swift
public let targetTrackingConfiguration: TargetTrackingConfiguration?
-
init(adjustmentType:alarms:autoScalingGroupName:cooldown:enabled:estimatedInstanceWarmup:metricAggregationType:minAdjustmentMagnitude:minAdjustmentStep:policyARN:policyName:policyType:scalingAdjustment:stepAdjustments:targetTrackingConfiguration:)
Undocumented
Declaration
Swift
public init(adjustmentType: String? = nil, alarms: [Alarm]? = nil, autoScalingGroupName: String? = nil, cooldown: Int? = nil, enabled: Bool? = nil, estimatedInstanceWarmup: Int? = nil, metricAggregationType: String? = nil, minAdjustmentMagnitude: Int? = nil, minAdjustmentStep: Int? = nil, policyARN: String? = nil, policyName: String? = nil, policyType: String? = nil, scalingAdjustment: Int? = nil, stepAdjustments: [StepAdjustment]? = nil, targetTrackingConfiguration: TargetTrackingConfiguration? = nil)