'Creates a new Scaling Policy.
:type scaling_policy: :class:`boto.ec2.autoscale.policy.ScalingPolicy`
:param scaling_policy: ScalingPolicy object.'

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.adjustment_type == 'PercentChangeInCapacity') and (scaling_policy.min_adjustment_step is not None)):
        params['MinAdjustmentStep'] = scaling_policy.min_adjustment_step
    if (scaling_policy.cooldown is not None):
        params['Cooldown'] = scaling_policy.cooldown
    return self.get_object('PutScalingPolicy', params, Request)
