def ListImages(args: 'argparse.Namespace') -> None:
  """List AMI images and filter on AMI image 'name'.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.
  """
  aws_account = account.AWSAccount(args.zone)

  qfilter = []
  if args.filter:
    qfilter = [{'Name': 'name', 'Values': [args.filter]}]

  images = aws_account.ec2.ListImages(qfilter)

  for image in images:
    logger.info('Name: {0:s}, ImageId: {1:s}, Location: {2:s}'.format(
        image['Name'], image['ImageId'], image['ImageLocation']))
List AMI images and filter on AMI image 'name'.

Args:
args (argparse.Namespace): Arguments from ArgumentParser.
tools/aws_cli.py