def create_scaling_policy(self, scaling_policy):
        """
        Creates a new Scaling Policy.

        :type scaling_policy: :class:`boto.ec2.autoscale.policy.ScalingPolicy`
        :param scaling_policy: ScalingPolicy object.
        """
        params = {'AdjustmentType': scaling_policy.adjustment_type,
                  'AutoScalingGroupName': scaling_policy.as_name,
                  'PolicyName': scaling_policy.name,
                  'ScalingAdjustment': scaling_policy.scaling_adjustment}
        if scaling_policy.cooldown is not None:
            params['Cooldown'] = scaling_policy.cooldown

        return self.get_object('PutScalingPolicy', params, Request)
def create_scaling_policy ( self , scaling_policy ) : params = { 'AdjustmentType' : scaling_policy . adjustment_type , 'AutoScalingGroupName' : scaling_policy . as_name , 'PolicyName' : scaling_policy . name , 'ScalingAdjustment' : scaling_policy . scaling_adjustment } if scaling_policy . cooldown is not None : params [ 'Cooldown' ] = scaling_policy . cooldown return self . get_object ( 'PutScalingPolicy' , params , Request )
Creates a new Scaling Policy.

        :type scaling_policy: :class:`boto.ec2.autoscale.policy.ScalingPolicy`
        :param scaling_policy: ScalingPolicy object.