original_docstring: 
      Move messages from dead-queue to source-queue
      
docstring: Move messages from dead-queue to source-queue
docstring_tokens: Move messages from dead - queue to source - queue
code: def reborn_messages(context, queue, msglimit, quiet):
      '''
      Move messages from dead-queue to source-queue
      '''
      source = SQSQueue.get(queue)
      policy = source._aws_queue.attributes.get('RedrivePolicy')
      if policy is None:
          click.echo(
              'Error: the given queue does have a dead-letter-queue configured',
              err=True)
          return
  
      policy_data = json.loads(policy)
      dq_name = policy_data['deadLetterTargetArn'].split(':')[-1]
      return context.invoke(
          move_messages,
          source_queue=dq_name,
          destination_queue=source.url,
          msglimit=msglimit,
          quiet=quiet,
      )
code_tokens: def reborn_messages ( context , queue , msglimit , quiet ) : source = SQSQueue . get ( queue ) policy = source . _aws_queue . attributes . get ( 'RedrivePolicy' ) if policy is None : click . echo ( 'Error: the given queue does have a dead-letter-queue configured' , err = True ) return policy_data = json . loads ( policy ) dq_name = policy_data [ 'deadLetterTargetArn' ] . split ( ':' ) [ - 1 ] return context . invoke ( move_messages , source_queue = dq_name , destination_queue = source . url , msglimit = msglimit , quiet = quiet , )
short_docstring: Move messages from dead-queue to source-queue
short_docstring_tokens: Move messages from dead - queue to source - queue
comment: '''
      Move messages from dead-queue to source-queue
      '''