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 PutScalingPolicyResponse PutScalingPolicy( PutScalingPolicyRequest putScalingPolicyRequest )
Parameters
- putScalingPolicyRequest (PutScalingPolicyRequest)
- Container for the necessary parameters to execute the PutScalingPolicy service method on AmazonAutoScaling.
Return Value
The response from the PutScalingPolicy service method, as returned by AmazonAutoScaling.
Exceptions
Exception | Condition |
---|---|
LimitExceededException |