AWS SDK for .NET Documentation
PutScalingPolicyRequest Class
AmazonAmazon.AutoScaling.ModelPutScalingPolicyRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the PutScalingPolicy operation.

Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameter(s) you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

Declaration Syntax
C#
public class PutScalingPolicyRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
PutScalingPolicyRequest()()()()
Initializes a new instance of the PutScalingPolicyRequest class

AdjustmentType
Specifies whether the ScalingAdjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. For more information about the adjustment types supported by Auto Scaling, see Scale Based on Demand.

Constraints:

Length
1 - 255
Pattern
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*


AutoScalingGroupName
The name or ARN of the Auto Scaling group.

Constraints:

Length
1 - 1600
Pattern
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*


Cooldown
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. For more information, see Cooldown Period

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
MinAdjustmentStep
Used with AdjustmentType with the value PercentChangeInCapacity, the scaling policy changes the DesiredCapacity of the Auto Scaling group by at least the number of instances specified in the value. You will get a ValidationError if you use MinAdjustmentStep on a policy with an AdjustmentType other than PercentChangeInCapacity.

PolicyName
The name of the policy you want to create or update.

Constraints:

Length
1 - 255
Pattern
[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*


ScalingAdjustment
The number of instances by which to scale. AdjustmentType determines the interpretation of this number (e.g., as an absolute number or as a percentage of the existing Auto Scaling group size). A positive increment adds to the current capacity and a negative value removes from the current capacity.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAdjustmentType(String) Obsolete.
Sets the AdjustmentType property

WithAutoScalingGroupName(String) Obsolete.
Sets the AutoScalingGroupName property

WithCooldown(Int32) Obsolete.
Sets the Cooldown property

WithMinAdjustmentStep(Int32) Obsolete.
Sets the MinAdjustmentStep property

WithPolicyName(String) Obsolete.
Sets the PolicyName property

WithScalingAdjustment(Int32) Obsolete.
Sets the ScalingAdjustment property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 PutScalingPolicyRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)