def rename(self, name):
        """Set the name of the machine."""
        self.ec2.create_tags(Resources = [self.instance_id],
                             Tags      = [{'Key':   'Name',
                                           'Value':  name}])
        self.refresh_info()
def rename ( self , name ) : self . ec2 . create_tags ( Resources = [ self . instance_id ] , Tags = [ { 'Key' : 'Name' , 'Value' : name } ] ) self . refresh_info ( )
Set the name of the machine.