code: 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)
docs: Creates a new Scaling Policy.
  
          :type scaling_policy: :class:`boto.ec2.autoscale.policy.ScalingPolicy`
          :param scaling_policy: ScalingPolicy object.