summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJann Kleen <jann@pocketvillage.com>2011-04-01 12:43:45 +0200
committerJann Kleen <jann@pocketvillage.com>2011-04-01 12:43:45 +0200
commit4776df40b639a77e76459d4b4b19834ad362b29a (patch)
tree343d666b5b85ce5905ad8c8c442a7b0d124bcc88
parenta5a67bd61d0f5a12821ddd423d6ade708b63830c (diff)
downloadboto-4776df40b639a77e76459d4b4b19834ad362b29a.tar.gz
added parameter description to ScalingPolicy
-rw-r--r--boto/ec2/autoscale/policy.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/boto/ec2/autoscale/policy.py b/boto/ec2/autoscale/policy.py
index f30eb6cb..a36ae32e 100644
--- a/boto/ec2/autoscale/policy.py
+++ b/boto/ec2/autoscale/policy.py
@@ -105,8 +105,20 @@ class ScalingPolicy(object):
Scaling Policy
:type name: str
- :param name: Name of scaling policy
- XXX docs XXX
+ :param name: Name of scaling policy.
+
+ :type adjustment_type: str
+ :param adjustment_type: Specifies the type of adjustment. Valid values are `ChangeInCapacity`, `ExactCapacity` and `PercentChangeInCapacity`.
+
+ :type as_name: str or int
+ :param as_name: Name or ARN of the Auto Scaling Group.
+
+ :type scaling_adjustment: int
+ :param scaling_adjustment: Value of adjustment (type specified in `adjustment_type`).
+
+ :type cooldown: int
+ :param cooldown: Time (in seconds) before Alarm related Scaling Activities can start after the previous Scaling Activity ends.
+
"""
self.name = kwargs.get('name', None)
self.adjustment_type = kwargs.get('adjustment_type', None)