def UploadToBucket(args: 'argparse.Namespace') -> None:
  """Upload a file to an S3 bucket.

  Args:
    args (argparse.Namespace): Arguments from ArgumentParser.
  """
  aws_account = account.AWSAccount(args.zone)
  aws_account.s3.Put(args.bucket, args.filepath)

  logger.info('File successfully uploaded.')
Upload a file to an S3 bucket.

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