Searched refs:scaling_policy (Results 1 – 1 of 1) sorted by relevance
302 def create_scaling_policy(self, scaling_policy): argument309 params = {'AdjustmentType': scaling_policy.adjustment_type,310 'AutoScalingGroupName': scaling_policy.as_name,311 'PolicyName': scaling_policy.name,312 'ScalingAdjustment': scaling_policy.scaling_adjustment}314 if scaling_policy.adjustment_type == "PercentChangeInCapacity" and \315 scaling_policy.min_adjustment_step is not None:316 params['MinAdjustmentStep'] = scaling_policy.min_adjustment_step318 if scaling_policy.cooldown is not None:319 params['Cooldown'] = scaling_policy.cooldown