Container for the parameters to the PutScalingPolicy operation.
Namespace: Amazon.AutoScaling.ModelCreates 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.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class PutScalingPolicyRequest : AmazonWebServiceRequest
Public Class PutScalingPolicyRequest _ Inherits AmazonWebServiceRequest
public ref class PutScalingPolicyRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| 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.
Constraints: | |
| AutoScalingGroupName |
The name or ARN of the Auto Scaling Group.
Constraints: | |
| Cooldown |
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.
| |
| Equals(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.) | |
| PolicyName |
The name of the policy you want to create or update.
Constraints: | |
| 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()()()() | (Inherited from Object.) | |
| WithAdjustmentType(String) |
Sets the AdjustmentType property
| |
| WithAutoScalingGroupName(String) |
Sets the AutoScalingGroupName property
| |
| WithCooldown(Int32) |
Sets the Cooldown property
| |
| WithPolicyName(String) |
Sets the PolicyName property
| |
| WithScalingAdjustment(Int32) |
Sets the ScalingAdjustment property
|
Inheritance Hierarchy
System..::..Object
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..PutScalingPolicyRequest
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..PutScalingPolicyRequest