def set_capacity(self, capacity):
        """
        Set the desired capacity for the group.
        """
        params = {'AutoScalingGroupName' : self.name,
                  'DesiredCapacity'      : capacity}
        req = self.connection.get_object('SetDesiredCapacity', params,
                                         Request)
        self.connection.last_request = req
        return req
def set_capacity ( self , capacity ) : params = { 'AutoScalingGroupName' : self . name , 'DesiredCapacity' : capacity } req = self . connection . get_object ( 'SetDesiredCapacity' , params , Request ) self . connection . last_request = req return req
Set the desired capacity for the group.