'Reboot the specified instances.
:type instance_ids: list
:param instance_ids: The instances to terminate and reboot
:type dry_run: bool
:param dry_run: Set to True if the operation should not actually run.'

def reboot_instances(self, instance_ids=None, dry_run=False):

    params = {}
    if instance_ids:
        self.build_list_params(params, instance_ids, 'InstanceId')
    if dry_run:
        params['DryRun'] = 'true'
    return self.get_status('RebootInstances', params)
